Files
mermaid-live-editor/_app/chunks/vendor-e606199c.js
T
2021-12-28 18:20:56 +00:00

1194 lines
1.2 MiB
Plaintext

function Gc(){}const xw=a=>a;function H8(a,h){for(const s in h)a[s]=h[s];return a}function ww(a){return a()}function kw(){return Object.create(null)}function vd(a){a.forEach(ww)}function kx(a){return typeof a=="function"}function q8(a,h){return a!=a?h==h:a!==h||a&&typeof a=="object"||typeof a=="function"}function $8(a){return Object.keys(a).length===0}function Tx(a,...h){if(a==null)return Gc;const s=a.subscribe(...h);return s.unsubscribe?()=>s.unsubscribe():s}function VE(a){let h;return Tx(a,s=>h=s)(),h}function GE(a,h,s){a.$$.on_destroy.push(Tx(h,s))}function XE(a,h,s,f){if(a){const l=Tw(a,h,s,f);return a[0](l)}}function Tw(a,h,s,f){return a[1]&&f?H8(s.ctx.slice(),a[1](f(h))):s.ctx}function ZE(a,h,s,f){if(a[2]&&f){const l=a[2](f(s));if(h.dirty===void 0)return l;if(typeof l=="object"){const _=[],y=Math.max(h.dirty.length,l.length);for(let x=0;x<y;x+=1)_[x]=h.dirty[x]|l[x];return _}return h.dirty|l}return h.dirty}function QE(a,h,s,f,l,_){if(l){const y=Tw(h,s,f,_);a.p(y,l)}}function JE(a){if(a.ctx.length>32){const h=[],s=a.ctx.length/32;for(let f=0;f<s;f++)h[f]=-1;return h}return-1}function KE(a){return a==null?"":a}function tS(a,h,s){return a.set(s),h}const Ew=typeof window!="undefined";let V8=Ew?()=>window.performance.now():()=>Date.now(),Ex=Ew?a=>requestAnimationFrame(a):Gc;const op=new Set;function Sw(a){op.forEach(h=>{h.c(a)||(op.delete(h),h.f())}),op.size!==0&&Ex(Sw)}function G8(a){let h;return op.size===0&&Ex(Sw),{promise:new Promise(s=>{op.add(h={c:a,f:s})}),abort(){op.delete(h)}}}let Ab=!1;function X8(){Ab=!0}function Z8(){Ab=!1}function Q8(a,h,s,f){for(;a<h;){const l=a+(h-a>>1);s(l)<=f?a=l+1:h=l}return a}function J8(a){if(a.hydrate_init)return;a.hydrate_init=!0;let h=a.childNodes;if(a.nodeName==="HEAD"){const E=[];for(let A=0;A<h.length;A++){const I=h[A];I.claim_order!==void 0&&E.push(I)}h=E}const s=new Int32Array(h.length+1),f=new Int32Array(h.length);s[0]=-1;let l=0;for(let E=0;E<h.length;E++){const A=h[E].claim_order,I=(l>0&&h[s[l]].claim_order<=A?l+1:Q8(1,l,P=>h[s[P]].claim_order,A))-1;f[E]=s[I]+1;const N=I+1;s[N]=E,l=Math.max(N,l)}const _=[],y=[];let x=h.length-1;for(let E=s[l]+1;E!=0;E=f[E-1]){for(_.push(h[E-1]);x>=E;x--)y.push(h[x]);x--}for(;x>=0;x--)y.push(h[x]);_.reverse(),y.sort((E,A)=>E.claim_order-A.claim_order);for(let E=0,A=0;E<y.length;E++){for(;A<_.length&&y[E].claim_order>=_[A].claim_order;)A++;const I=A<_.length?_[A]:null;a.insertBefore(y[E],I)}}function K8(a,h){a.appendChild(h)}function Cw(a){if(!a)return document;const h=a.getRootNode?a.getRootNode():a.ownerDocument;return h&&h.host?h:a.ownerDocument}function t7(a){const h=Mw("style");return e7(Cw(a),h),h}function e7(a,h){K8(a.head||a,h)}function n7(a,h){if(Ab){for(J8(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 eS(a,h,s){Ab&&!s?n7(a,h):(h.parentNode!==a||h.nextSibling!=s)&&a.insertBefore(h,s||null)}function r7(a){a.parentNode.removeChild(a)}function nS(a,h){for(let s=0;s<a.length;s+=1)a[s]&&a[s].d(h)}function Mw(a){return document.createElement(a)}function i7(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function Sx(a){return document.createTextNode(a)}function rS(){return Sx(" ")}function iS(){return Sx("")}function aS(a,h,s,f){return a.addEventListener(h,s,f),()=>a.removeEventListener(h,s,f)}function oS(a){return function(h){return h.stopPropagation(),a.call(this,h)}}function sS(a,h,s){s==null?a.removeAttribute(h):a.getAttribute(h)!==s&&a.setAttribute(h,s)}function cS(a){return a===""?null:+a}function a7(a){return Array.from(a.childNodes)}function o7(a){a.claim_info===void 0&&(a.claim_info={last_index:0,total_claimed:0})}function Aw(a,h,s,f,l=!1){o7(a);const _=(()=>{for(let y=a.claim_info.last_index;y<a.length;y++){const x=a[y];if(h(x)){const E=s(x);return E===void 0?a.splice(y,1):a[y]=E,l||(a.claim_info.last_index=y),x}}for(let y=a.claim_info.last_index-1;y>=0;y--){const x=a[y];if(h(x)){const E=s(x);return E===void 0?a.splice(y,1):a[y]=E,l?E===void 0&&a.claim_info.last_index--:a.claim_info.last_index=y,x}}return f()})();return _.claim_order=a.claim_info.total_claimed,a.claim_info.total_claimed+=1,_}function Dw(a,h,s,f){return Aw(a,l=>l.nodeName===h,l=>{const _=[];for(let y=0;y<l.attributes.length;y++){const x=l.attributes[y];s[x.name]||_.push(x.name)}_.forEach(y=>l.removeAttribute(y))},()=>f(h))}function uS(a,h,s){return Dw(a,h,s,Mw)}function lS(a,h,s){return Dw(a,h,s,i7)}function s7(a,h){return Aw(a,s=>s.nodeType===3,s=>{const f=""+h;if(s.data.startsWith(f)){if(s.data.length!==f.length)return s.splitText(f.length)}else s.data=f},()=>Sx(h),!0)}function hS(a){return s7(a," ")}function fS(a,h){h=""+h,a.wholeText!==h&&(a.data=h)}function dS(a,h){a.value=h==null?"":h}function pS(a,h,s,f){a.style.setProperty(h,s,f?"important":"")}function gS(a,h,s){a.classList[s?"add":"remove"](h)}function Nw(a,h,s=!1){const f=document.createEvent("CustomEvent");return f.initCustomEvent(a,s,!1,h),f}const Cx=new Set;let Db=0;function c7(a){let h=5381,s=a.length;for(;s--;)h=(h<<5)-h^a.charCodeAt(s);return h>>>0}function Ow(a,h,s,f,l,_,y,x=0){const E=16.666/f;let A=`{
`;for(let X=0;X<=1;X+=E){const K=h+(s-h)*_(X);A+=X*100+`%{${y(K,1-K)}}
`}const I=A+`100% {${y(s,1-s)}}
}`,N=`__svelte_${c7(I)}_${x}`,P=Cw(a);Cx.add(P);const W=P.__svelte_stylesheet||(P.__svelte_stylesheet=t7(a).sheet),H=P.__svelte_rules||(P.__svelte_rules={});H[N]||(H[N]=!0,W.insertRule(`@keyframes ${N} ${I}`,W.cssRules.length));const V=a.style.animation||"";return a.style.animation=`${V?`${V}, `:""}${N} ${f}ms linear ${l}ms 1 both`,Db+=1,N}function u7(a,h){const s=(a.style.animation||"").split(", "),f=s.filter(h?_=>_.indexOf(h)<0:_=>_.indexOf("__svelte")===-1),l=s.length-f.length;l&&(a.style.animation=f.join(", "),Db-=l,Db||l7())}function l7(){Ex(()=>{Db||(Cx.forEach(a=>{const h=a.__svelte_stylesheet;let s=h.cssRules.length;for(;s--;)h.deleteRule(s);a.__svelte_rules={}}),Cx.clear())})}let K2;function tm(a){K2=a}function Nb(){if(!K2)throw new Error("Function called outside component initialization");return K2}function yS(a){Nb().$$.on_mount.push(a)}function mS(a){Nb().$$.after_update.push(a)}function vS(){const a=Nb();return(h,s)=>{const f=a.$$.callbacks[h];if(f){const l=Nw(h,s);f.slice().forEach(_=>{_.call(a,l)})}}}function _S(a,h){Nb().$$.context.set(a,h)}function bS(a,h){const s=a.$$.callbacks[h.type];s&&s.slice().forEach(f=>f.call(this,h))}const em=[],Bw=[],Ob=[],Mx=[],h7=Promise.resolve();let Ax=!1;function f7(){Ax||(Ax=!0,h7.then(Lw))}function Bb(a){Ob.push(a)}function xS(a){Mx.push(a)}const Dx=new Set;let Lb=0;function Lw(){const a=K2;do{for(;Lb<em.length;){const h=em[Lb];Lb++,tm(h),d7(h.$$)}for(tm(null),em.length=0,Lb=0;Bw.length;)Bw.pop()();for(let h=0;h<Ob.length;h+=1){const s=Ob[h];Dx.has(s)||(Dx.add(s),s())}Ob.length=0}while(em.length);for(;Mx.length;)Mx.pop()();Ax=!1,Dx.clear(),tm(a)}function d7(a){if(a.fragment!==null){a.update(),vd(a.before_update);const h=a.dirty;a.dirty=[-1],a.fragment&&a.fragment.p(a.ctx,h),a.after_update.forEach(Bb)}}let nm;function p7(){return nm||(nm=Promise.resolve(),nm.then(()=>{nm=null})),nm}function Nx(a,h,s){a.dispatchEvent(Nw(`${h?"intro":"outro"}${s}`))}const Ib=new Set;let qu;function wS(){qu={r:0,c:[],p:qu}}function kS(){qu.r||vd(qu.c),qu=qu.p}function g7(a,h){a&&a.i&&(Ib.delete(a),a.i(h))}function TS(a,h,s,f){if(a&&a.o){if(Ib.has(a))return;Ib.add(a),qu.c.push(()=>{Ib.delete(a),f&&(s&&a.d(1),f())}),a.o(h)}}const y7={duration:0};function ES(a,h,s,f){let l=h(a,s),_=f?0:1,y=null,x=null,E=null;function A(){E&&u7(a,E)}function I(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=xw,tick:X=Gc,css:K}=l||y7,ut={start:V8()+W,b:P};P||(ut.group=qu,qu.r+=1),y||x?x=ut:(K&&(A(),E=Ow(a,_,P,H,W,V,K)),P&&X(0,1),y=I(ut,H),Bb(()=>Nx(a,P,"start")),G8(tt=>{if(x&&tt>x.start&&(y=I(x,H),x=null,Nx(a,y.b,"start"),K&&(A(),E=Ow(a,_,y.b,y.duration,0,V,l.css))),y){if(tt>=y.end)X(_=y.b,1-_),Nx(a,y.b,"end"),x||(y.b?A():--y.group.r||vd(y.group.c)),y=null;else if(tt>=y.start){const Tt=tt-y.start;_=y.a+y.d*V(Tt/y.duration),X(_,1-_)}}return!!(y||x)}))}return{run(P){kx(l)?p7().then(()=>{l=l(),N(P)}):N(P)},end(){A(),y=x=null}}}function SS(a,h){const s={},f={},l={$$scope:1};let _=a.length;for(;_--;){const y=a[_],x=h[_];if(x){for(const E in y)E in x||(f[E]=1);for(const E in x)l[E]||(s[E]=x[E],l[E]=1);a[_]=x}else for(const E in y)l[E]=1}for(const y in f)y in s||(s[y]=void 0);return s}function CS(a){return typeof a=="object"&&a!==null?a:{}}function MS(a,h,s){const f=a.$$.props[h];f!==void 0&&(a.$$.bound[f]=s,s(a.$$.ctx[f]))}function AS(a){a&&a.c()}function DS(a,h){a&&a.l(h)}function m7(a,h,s,f){const{fragment:l,on_mount:_,on_destroy:y,after_update:x}=a.$$;l&&l.m(h,s),f||Bb(()=>{const E=_.map(ww).filter(kx);y?y.push(...E):vd(E),a.$$.on_mount=[]}),x.forEach(Bb)}function v7(a,h){const s=a.$$;s.fragment!==null&&(vd(s.on_destroy),s.fragment&&s.fragment.d(h),s.on_destroy=s.fragment=null,s.ctx=[])}function _7(a,h){a.$$.dirty[0]===-1&&(em.push(a),f7(),a.$$.dirty.fill(0)),a.$$.dirty[h/31|0]|=1<<h%31}function NS(a,h,s,f,l,_,y,x=[-1]){const E=K2;tm(a);const A=a.$$={fragment:null,ctx:null,props:_,update:Gc,not_equal:l,bound:kw(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(h.context||(E?E.$$.context:[])),callbacks:kw(),dirty:x,skip_bound:!1,root:h.target||E.$$.root};y&&y(A.root);let I=!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),I&&_7(a,N)),P}):[],A.update(),I=!0,vd(A.before_update),A.fragment=f?f(A.ctx):!1,h.target){if(h.hydrate){X8();const N=a7(h.target);A.fragment&&A.fragment.l(N),N.forEach(r7)}else A.fragment&&A.fragment.c();h.intro&&g7(a.$$.fragment),m7(a,h.target,h.anchor,h.customElement),Z8(),Lw()}tm(E)}class OS{$destroy(){v7(this,1),this.$destroy=Gc}$on(h,s){const f=this.$$.callbacks[h]||(this.$$.callbacks[h]=[]);return f.push(s),()=>{const l=f.indexOf(s);l!==-1&&f.splice(l,1)}}$set(h){this.$$set&&!$8(h)&&(this.$$.skip_bound=!0,this.$$set(h),this.$$.skip_bound=!1)}}const sp=[];function b7(a,h){return{subscribe:x7(a,h).subscribe}}function x7(a,h=Gc){let s;const f=new Set;function l(x){if(q8(a,x)&&(a=x,s)){const E=!sp.length;for(const A of f)A[1](),sp.push(A,a);if(E){for(let A=0;A<sp.length;A+=2)sp[A][0](sp[A+1]);sp.length=0}}}function _(x){l(x(a))}function y(x,E=Gc){const A=[x,E];return f.add(A),f.size===1&&(s=h(l)||Gc),x(a),()=>{f.delete(A),f.size===0&&(s(),s=null)}}return{set:l,update:_,subscribe:y}}function BS(a,h,s){const f=!Array.isArray(a),l=f?[a]:a,_=h.length<2;return b7(s,y=>{let x=!1;const E=[];let A=0,I=Gc;const N=()=>{if(A)return;I();const W=h(f?E[0]:E,y);_?y(W):I=kx(W)?W:Gc},P=l.map((W,H)=>Tx(W,V=>{E[H]=V,A&=~(1<<H),x&&N()},()=>{A|=1<<H}));return x=!0,N(),function(){vd(P),I()}})}var w7={};(function(a){a.defaults={},a.set=function(h,s,f){var l=f||{},_=a.defaults,y=l.expires||_.expires,x=l.domain||_.domain,E=l.path!==void 0?l.path:_.path!==void 0?_.path:"/",A=l.secure!==void 0?l.secure:_.secure,I=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():"")+(x?";domain="+x:"")+(E?";path="+E:"")+(A?";secure":"")+(I?";httponly":"")+(N?";samesite="+N:"")},a.get=function(h){for(var s=document.cookie.split(";");s.length;){var f=s.pop(),l=f.indexOf("=");l=l<0?f.length:l;var _=decodeURIComponent(f.slice(0,l).replace(/^\s+/,""));if(_===h)return decodeURIComponent(f.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 f=s.pop(),l=f.indexOf("=");l=l<0?f.length:l;var _=decodeURIComponent(f.slice(0,l).replace(/^\s+/,""));h[_]=decodeURIComponent(f.slice(l+1))}return h}})(w7);function LS(a,h,s){const f=h.getValue(s);return f!==null&&a.set(f),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 k7(a,h=!1){const s=[],f=y=>{const x=y.key;y.storageArea===a&&s.filter(({key:E})=>E===x).forEach(({listener:E})=>{let A=y.newValue;try{A=JSON.parse(y.newValue)}catch{}E(A)})},l=()=>{h&&typeof window!="undefined"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",f)},_=()=>{h&&typeof window!="undefined"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",f)};return{addListener(y,x){s.push({key:y,listener:x}),s.length===1&&l()},removeListener(y,x){const E=s.indexOf({key:y,listener:x});E!==-1&&s.splice(E,1),s.length===0&&_()},getValue(y){let x=a.getItem(y);if(x!=null)try{x=JSON.parse(x)}catch{}return x},deleteValue(y){a.removeItem(y)},setValue(y,x){a.setItem(y,JSON.stringify(x))}}}function IS(a=!1){return typeof window!="undefined"&&(window==null?void 0:window.localStorage)?k7(window.localStorage,a):(console.warn("Unable to find the localStorage. No data will be persisted."),T7())}function T7(){return{getValue(){return null},deleteValue(){},setValue(){}}}const E7=typeof atob=="function",S7=typeof btoa=="function",cp=typeof Buffer=="function",Iw=typeof TextDecoder=="function"?new TextDecoder:void 0,Rw=typeof TextEncoder=="function"?new TextEncoder:void 0,C7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rm=Array.prototype.slice.call(C7),Rb=(a=>{let h={};return a.forEach((s,f)=>h[s]=f),h})(rm),M7=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Oa=String.fromCharCode.bind(String),Fw=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(a,h=s=>s)=>new Uint8Array(Array.prototype.slice.call(a,0).map(h)),A7=a=>a.replace(/=/g,"").replace(/[+\/]/g,h=>h=="+"?"-":"_"),Pw=a=>a.replace(/[^A-Za-z0-9\+\/]/g,""),D7=a=>{let h,s,f,l,_="";const y=a.length%3;for(let x=0;x<a.length;){if((s=a.charCodeAt(x++))>255||(f=a.charCodeAt(x++))>255||(l=a.charCodeAt(x++))>255)throw new TypeError("invalid character found");h=s<<16|f<<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):_},Yw=S7?a=>btoa(a):cp?a=>Buffer.from(a,"binary").toString("base64"):D7,N7=cp?a=>Buffer.from(a).toString("base64"):a=>{const h=4096;let s=[];for(let f=0,l=a.length;f<l;f+=h)s.push(Oa.apply(null,a.subarray(f,f+h)));return Yw(s.join(""))},O7=a=>{if(a.length<2){var h=a.charCodeAt(0);return h<128?a:h<2048?Oa(192|h>>>6)+Oa(128|h&63):Oa(224|h>>>12&15)+Oa(128|h>>>6&63)+Oa(128|h&63)}else{var h=65536+(a.charCodeAt(0)-55296)*1024+(a.charCodeAt(1)-56320);return Oa(240|h>>>18&7)+Oa(128|h>>>12&63)+Oa(128|h>>>6&63)+Oa(128|h&63)}},B7=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,L7=a=>a.replace(B7,O7),jw=cp?a=>Buffer.from(a,"utf8").toString("base64"):Rw?a=>N7(Rw.encode(a)):a=>Yw(L7(a)),RS=(a,h=!1)=>h?A7(jw(a)):jw(a),I7=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,R7=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 Oa((s>>>10)+55296)+Oa((s&1023)+56320);case 3:return Oa((15&a.charCodeAt(0))<<12|(63&a.charCodeAt(1))<<6|63&a.charCodeAt(2));default:return Oa((31&a.charCodeAt(0))<<6|63&a.charCodeAt(1))}},F7=a=>a.replace(I7,R7),P7=a=>{if(a=a.replace(/\s+/g,""),!M7.test(a))throw new TypeError("malformed base64.");a+="==".slice(2-(a.length&3));let h,s="",f,l;for(let _=0;_<a.length;)h=Rb[a.charAt(_++)]<<18|Rb[a.charAt(_++)]<<12|(f=Rb[a.charAt(_++)])<<6|(l=Rb[a.charAt(_++)]),s+=f===64?Oa(h>>16&255):l===64?Oa(h>>16&255,h>>8&255):Oa(h>>16&255,h>>8&255,h&255);return s},Uw=E7?a=>atob(Pw(a)):cp?a=>Buffer.from(a,"base64").toString("binary"):P7,Y7=cp?a=>Fw(Buffer.from(a,"base64")):a=>Fw(Uw(a),h=>h.charCodeAt(0)),j7=cp?a=>Buffer.from(a,"base64").toString("utf8"):Iw?a=>Iw.decode(Y7(a)):a=>F7(Uw(a)),U7=a=>Pw(a.replace(/[-_]/g,h=>h=="-"?"+":"/")),FS=a=>j7(U7(a)),PS="8.13.7";function z7(a){const h=a-1;return h*h*h+1}function YS(a,{delay:h=0,duration:s=400,easing:f=xw}={}){const l=+getComputedStyle(a).opacity;return{delay:h,duration:s,easing:f,css:_=>`opacity: ${_*l}`}}function jS(a,{delay:h=0,duration:s=400,easing:f=z7}={}){const l=getComputedStyle(a),_=+l.opacity,y=parseFloat(l.height),x=parseFloat(l.paddingTop),E=parseFloat(l.paddingBottom),A=parseFloat(l.marginTop),I=parseFloat(l.marginBottom),N=parseFloat(l.borderTopWidth),P=parseFloat(l.borderBottomWidth);return{delay:h,duration:s,easing:f,css:W=>`overflow: hidden;opacity: ${Math.min(W*20,1)*_};height: ${W*y}px;padding-top: ${W*x}px;padding-bottom: ${W*E}px;margin-top: ${W*A}px;margin-bottom: ${W*I}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 zw;function rn(){return zw.apply(null,arguments)}function W7(a){zw=a}function ic(a){return a instanceof Array||Object.prototype.toString.call(a)==="[object Array]"}function _d(a){return a!=null&&Object.prototype.toString.call(a)==="[object Object]"}function Mr(a,h){return Object.prototype.hasOwnProperty.call(a,h)}function Ox(a){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(a).length===0;var h;for(h in a)if(Mr(a,h))return!1;return!0}function wo(a){return a===void 0}function $u(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 Ww(a,h){var s=[],f;for(f=0;f<a.length;++f)s.push(h(a[f],f));return s}function wh(a,h){for(var s in h)Mr(h,s)&&(a[s]=h[s]);return Mr(h,"toString")&&(a.toString=h.toString),Mr(h,"valueOf")&&(a.valueOf=h.valueOf),a}function Xc(a,h,s,f){return g8(a,h,s,f,!0).utc()}function H7(){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 sr(a){return a._pf==null&&(a._pf=H7()),a._pf}var Bx;Array.prototype.some?Bx=Array.prototype.some:Bx=function(a){var h=Object(this),s=h.length>>>0,f;for(f=0;f<s;f++)if(f in h&&a.call(this,h[f],f,h))return!0;return!1};function Lx(a){if(a._isValid==null){var h=sr(a),s=Bx.call(h.parsedDateParts,function(l){return l!=null}),f=!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&&(f=f&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(a))a._isValid=f;else return f}return a._isValid}function Fb(a){var h=Xc(NaN);return a!=null?wh(sr(h),a):sr(h).userInvalidated=!0,h}var Ix=rn.momentProperties=[],Rx=!1;function Fx(a,h){var s,f,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=sr(h)),wo(h._locale)||(a._locale=h._locale),Ix.length>0)for(s=0;s<Ix.length;s++)f=Ix[s],l=h[f],wo(l)||(a[f]=l);return a}function am(a){Fx(this,a),this._d=new Date(a._d!=null?a._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Rx===!1&&(Rx=!0,rn.updateOffset(this),Rx=!1)}function ac(a){return a instanceof am||a!=null&&a._isAMomentObject!=null}function Hw(a){rn.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+a)}function Cs(a,h){var s=!0;return wh(function(){if(rn.deprecationHandler!=null&&rn.deprecationHandler(null,a),s){var f=[],l,_,y;for(_=0;_<arguments.length;_++){if(l="",typeof arguments[_]=="object"){l+=`
[`+_+"] ";for(y in arguments[0])Mr(arguments[0],y)&&(l+=y+": "+arguments[0][y]+", ");l=l.slice(0,-2)}else l=arguments[_];f.push(l)}Hw(a+`
Arguments: `+Array.prototype.slice.call(f).join("")+`
`+new Error().stack),s=!1}return h.apply(this,arguments)},h)}var qw={};function $w(a,h){rn.deprecationHandler!=null&&rn.deprecationHandler(a,h),qw[a]||(Hw(h),qw[a]=!0)}rn.suppressDeprecationWarnings=!1;rn.deprecationHandler=null;function Zc(a){return typeof Function!="undefined"&&a instanceof Function||Object.prototype.toString.call(a)==="[object Function]"}function q7(a){var h,s;for(s in a)Mr(a,s)&&(h=a[s],Zc(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 Px(a,h){var s=wh({},a),f;for(f in h)Mr(h,f)&&(_d(a[f])&&_d(h[f])?(s[f]={},wh(s[f],a[f]),wh(s[f],h[f])):h[f]!=null?s[f]=h[f]:delete s[f]);for(f in a)Mr(a,f)&&!Mr(h,f)&&_d(a[f])&&(s[f]=wh({},s[f]));return s}function Yx(a){a!=null&&this.set(a)}var jx;Object.keys?jx=Object.keys:jx=function(a){var h,s=[];for(h in a)Mr(a,h)&&s.push(h);return s};var $7={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function V7(a,h,s){var f=this._calendar[a]||this._calendar.sameElse;return Zc(f)?f.call(h,s):f}function Qc(a,h,s){var f=""+Math.abs(a),l=h-f.length,_=a>=0;return(_?s?"+":"":"-")+Math.pow(10,Math.max(0,l)).toString().substr(1)+f}var Ux=/(\[[^\[]*\])|(\\)?([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,Pb=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zx={},up={};function Cn(a,h,s,f){var l=f;typeof f=="string"&&(l=function(){return this[f]()}),a&&(up[a]=l),h&&(up[h[0]]=function(){return Qc(l.apply(this,arguments),h[1],h[2])}),s&&(up[s]=function(){return this.localeData().ordinal(l.apply(this,arguments),a)})}function G7(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function X7(a){var h=a.match(Ux),s,f;for(s=0,f=h.length;s<f;s++)up[h[s]]?h[s]=up[h[s]]:h[s]=G7(h[s]);return function(l){var _="",y;for(y=0;y<f;y++)_+=Zc(h[y])?h[y].call(l,a):h[y];return _}}function Yb(a,h){return a.isValid()?(h=Vw(h,a.localeData()),zx[h]=zx[h]||X7(h),zx[h](a)):a.localeData().invalidDate()}function Vw(a,h){var s=5;function f(l){return h.longDateFormat(l)||l}for(Pb.lastIndex=0;s>=0&&Pb.test(a);)a=a.replace(Pb,f),Pb.lastIndex=0,s-=1;return a}var Z7={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 Q7(a){var h=this._longDateFormat[a],s=this._longDateFormat[a.toUpperCase()];return h||!s?h:(this._longDateFormat[a]=s.match(Ux).map(function(f){return f==="MMMM"||f==="MM"||f==="DD"||f==="dddd"?f.slice(1):f}).join(""),this._longDateFormat[a])}var J7="Invalid date";function K7(){return this._invalidDate}var tk="%d",ek=/\d{1,2}/;function nk(a){return this._ordinal.replace("%d",a)}var rk={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 ik(a,h,s,f){var l=this._relativeTime[s];return Zc(l)?l(a,h,s,f):l.replace(/%d/i,a)}function ak(a,h){var s=this._relativeTime[a>0?"future":"past"];return Zc(s)?s(h):s.replace(/%s/i,h)}var om={};function za(a,h){var s=a.toLowerCase();om[s]=om[s+"s"]=om[h]=a}function Ms(a){return typeof a=="string"?om[a]||om[a.toLowerCase()]:void 0}function Wx(a){var h={},s,f;for(f in a)Mr(a,f)&&(s=Ms(f),s&&(h[s]=a[f]));return h}var Gw={};function Wa(a,h){Gw[a]=h}function ok(a){var h=[],s;for(s in a)Mr(a,s)&&h.push({unit:s,priority:Gw[s]});return h.sort(function(f,l){return f.priority-l.priority}),h}function jb(a){return a%4==0&&a%100!=0||a%400==0}function As(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function fr(a){var h=+a,s=0;return h!==0&&isFinite(h)&&(s=As(h)),s}function lp(a,h){return function(s){return s!=null?(Xw(this,a,s),rn.updateOffset(this,h),this):Ub(this,a)}}function Ub(a,h){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+h]():NaN}function Xw(a,h,s){a.isValid()&&!isNaN(s)&&(h==="FullYear"&&jb(a.year())&&a.month()===1&&a.date()===29?(s=fr(s),a._d["set"+(a._isUTC?"UTC":"")+h](s,a.month(),Gb(s,a.month()))):a._d["set"+(a._isUTC?"UTC":"")+h](s))}function sk(a){return a=Ms(a),Zc(this[a])?this[a]():this}function ck(a,h){if(typeof a=="object"){a=Wx(a);var s=ok(a),f;for(f=0;f<s.length;f++)this[s[f].unit](a[s[f].unit])}else if(a=Ms(a),Zc(this[a]))return this[a](h);return this}var Zw=/\d/,Qo=/\d\d/,Qw=/\d{3}/,Hx=/\d{4}/,zb=/[+-]?\d{6}/,ui=/\d\d?/,Jw=/\d\d\d\d?/,Kw=/\d\d\d\d\d\d?/,Wb=/\d{1,3}/,qx=/\d{1,4}/,Hb=/[+-]?\d{1,6}/,hp=/\d+/,qb=/[+-]?\d+/,uk=/Z|[+-]\d\d:?\d\d/gi,$b=/Z|[+-]\d\d(?::?\d\d)?/gi,lk=/[+-]?\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,Vb;Vb={};function sn(a,h,s){Vb[a]=Zc(h)?h:function(f,l){return f&&s?s:h}}function hk(a,h){return Mr(Vb,a)?Vb[a](h._strict,h._locale):new RegExp(fk(a))}function fk(a){return Jo(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,s,f,l,_){return s||f||l||_}))}function Jo(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var $x={};function Gr(a,h){var s,f=h;for(typeof a=="string"&&(a=[a]),$u(h)&&(f=function(l,_){_[h]=fr(l)}),s=0;s<a.length;s++)$x[a[s]]=f}function cm(a,h){Gr(a,function(s,f,l,_){l._w=l._w||{},h(s,l._w,l,_)})}function dk(a,h,s){h!=null&&Mr($x,a)&&$x[a](h,s._a,s,a)}var Ha=0,Vu=1,Jc=2,ha=3,oc=4,Gu=5,bd=6,pk=7,gk=8;function yk(a,h){return(a%h+h)%h}var zi;Array.prototype.indexOf?zi=Array.prototype.indexOf:zi=function(a){var h;for(h=0;h<this.length;++h)if(this[h]===a)return h;return-1};function Gb(a,h){if(isNaN(a)||isNaN(h))return NaN;var s=yk(h,12);return a+=(h-s)/12,s===1?jb(a)?29:28:31-s%7%2}Cn("M",["MM",2],"Mo",function(){return this.month()+1});Cn("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)});Cn("MMMM",0,0,function(a){return this.localeData().months(this,a)});za("month","M");Wa("month",8);sn("M",ui);sn("MM",ui,Qo);sn("MMM",function(a,h){return h.monthsShortRegex(a)});sn("MMMM",function(a,h){return h.monthsRegex(a)});Gr(["M","MM"],function(a,h){h[Vu]=fr(a)-1});Gr(["MMM","MMMM"],function(a,h,s,f){var l=s._locale.monthsParse(a,f,s._strict);l!=null?h[Vu]=l:sr(s).invalidMonth=a});var mk="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),t8="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),e8=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vk=sm,_k=sm;function bk(a,h){return a?ic(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||e8).test(h)?"format":"standalone"][a.month()]:ic(this._months)?this._months:this._months.standalone}function xk(a,h){return a?ic(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[e8.test(h)?"format":"standalone"][a.month()]:ic(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function wk(a,h,s){var f,l,_,y=a.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],f=0;f<12;++f)_=Xc([2e3,f]),this._shortMonthsParse[f]=this.monthsShort(_,"").toLocaleLowerCase(),this._longMonthsParse[f]=this.months(_,"").toLocaleLowerCase();return s?h==="MMM"?(l=zi.call(this._shortMonthsParse,y),l!==-1?l:null):(l=zi.call(this._longMonthsParse,y),l!==-1?l:null):h==="MMM"?(l=zi.call(this._shortMonthsParse,y),l!==-1?l:(l=zi.call(this._longMonthsParse,y),l!==-1?l:null)):(l=zi.call(this._longMonthsParse,y),l!==-1?l:(l=zi.call(this._shortMonthsParse,y),l!==-1?l:null))}function kk(a,h,s){var f,l,_;if(this._monthsParseExact)return wk.call(this,a,h,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),f=0;f<12;f++){if(l=Xc([2e3,f]),s&&!this._longMonthsParse[f]&&(this._longMonthsParse[f]=new RegExp("^"+this.months(l,"").replace(".","")+"$","i"),this._shortMonthsParse[f]=new RegExp("^"+this.monthsShort(l,"").replace(".","")+"$","i")),!s&&!this._monthsParse[f]&&(_="^"+this.months(l,"")+"|^"+this.monthsShort(l,""),this._monthsParse[f]=new RegExp(_.replace(".",""),"i")),s&&h==="MMMM"&&this._longMonthsParse[f].test(a))return f;if(s&&h==="MMM"&&this._shortMonthsParse[f].test(a))return f;if(!s&&this._monthsParse[f].test(a))return f}}function n8(a,h){var s;if(!a.isValid())return a;if(typeof h=="string"){if(/^\d+$/.test(h))h=fr(h);else if(h=a.localeData().monthsParse(h),!$u(h))return a}return s=Math.min(a.date(),Gb(a.year(),h)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](h,s),a}function r8(a){return a!=null?(n8(this,a),rn.updateOffset(this,!0),this):Ub(this,"Month")}function Tk(){return Gb(this.year(),this.month())}function Ek(a){return this._monthsParseExact?(Mr(this,"_monthsRegex")||i8.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):(Mr(this,"_monthsShortRegex")||(this._monthsShortRegex=vk),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function Sk(a){return this._monthsParseExact?(Mr(this,"_monthsRegex")||i8.call(this),a?this._monthsStrictRegex:this._monthsRegex):(Mr(this,"_monthsRegex")||(this._monthsRegex=_k),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function i8(){function a(y,x){return x.length-y.length}var h=[],s=[],f=[],l,_;for(l=0;l<12;l++)_=Xc([2e3,l]),h.push(this.monthsShort(_,"")),s.push(this.months(_,"")),f.push(this.months(_,"")),f.push(this.monthsShort(_,""));for(h.sort(a),s.sort(a),f.sort(a),l=0;l<12;l++)h[l]=Jo(h[l]),s[l]=Jo(s[l]);for(l=0;l<24;l++)f[l]=Jo(f[l]);this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}Cn("Y",0,0,function(){var a=this.year();return a<=9999?Qc(a,4):"+"+a});Cn(0,["YY",2],0,function(){return this.year()%100});Cn(0,["YYYY",4],0,"year");Cn(0,["YYYYY",5],0,"year");Cn(0,["YYYYYY",6,!0],0,"year");za("year","y");Wa("year",1);sn("Y",qb);sn("YY",ui,Qo);sn("YYYY",qx,Hx);sn("YYYYY",Hb,zb);sn("YYYYYY",Hb,zb);Gr(["YYYYY","YYYYYY"],Ha);Gr("YYYY",function(a,h){h[Ha]=a.length===2?rn.parseTwoDigitYear(a):fr(a)});Gr("YY",function(a,h){h[Ha]=rn.parseTwoDigitYear(a)});Gr("Y",function(a,h){h[Ha]=parseInt(a,10)});function um(a){return jb(a)?366:365}rn.parseTwoDigitYear=function(a){return fr(a)+(fr(a)>68?1900:2e3)};var a8=lp("FullYear",!0);function Ck(){return jb(this.year())}function Mk(a,h,s,f,l,_,y){var x;return a<100&&a>=0?(x=new Date(a+400,h,s,f,l,_,y),isFinite(x.getFullYear())&&x.setFullYear(a)):x=new Date(a,h,s,f,l,_,y),x}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 Xb(a,h,s){var f=7+h-s,l=(7+lm(a,0,f).getUTCDay()-h)%7;return-l+f-1}function o8(a,h,s,f,l){var _=(7+s-f)%7,y=Xb(a,f,l),x=1+7*(h-1)+_+y,E,A;return x<=0?(E=a-1,A=um(E)+x):x>um(a)?(E=a+1,A=x-um(a)):(E=a,A=x),{year:E,dayOfYear:A}}function hm(a,h,s){var f=Xb(a.year(),h,s),l=Math.floor((a.dayOfYear()-f-1)/7)+1,_,y;return l<1?(y=a.year()-1,_=l+Xu(y,h,s)):l>Xu(a.year(),h,s)?(_=l-Xu(a.year(),h,s),y=a.year()+1):(y=a.year(),_=l),{week:_,year:y}}function Xu(a,h,s){var f=Xb(a,h,s),l=Xb(a+1,h,s);return(um(a)-f+l)/7}Cn("w",["ww",2],"wo","week");Cn("W",["WW",2],"Wo","isoWeek");za("week","w");za("isoWeek","W");Wa("week",5);Wa("isoWeek",5);sn("w",ui);sn("ww",ui,Qo);sn("W",ui);sn("WW",ui,Qo);cm(["w","ww","W","WW"],function(a,h,s,f){h[f.substr(0,1)]=fr(a)});function Ak(a){return hm(a,this._week.dow,this._week.doy).week}var Dk={dow:0,doy:6};function Nk(){return this._week.dow}function Ok(){return this._week.doy}function Bk(a){var h=this.localeData().week(this);return a==null?h:this.add((a-h)*7,"d")}function Lk(a){var h=hm(this,1,4).week;return a==null?h:this.add((a-h)*7,"d")}Cn("d",0,"do","day");Cn("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)});Cn("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)});Cn("dddd",0,0,function(a){return this.localeData().weekdays(this,a)});Cn("e",0,0,"weekday");Cn("E",0,0,"isoWeekday");za("day","d");za("weekday","e");za("isoWeekday","E");Wa("day",11);Wa("weekday",11);Wa("isoWeekday",11);sn("d",ui);sn("e",ui);sn("E",ui);sn("dd",function(a,h){return h.weekdaysMinRegex(a)});sn("ddd",function(a,h){return h.weekdaysShortRegex(a)});sn("dddd",function(a,h){return h.weekdaysRegex(a)});cm(["dd","ddd","dddd"],function(a,h,s,f){var l=s._locale.weekdaysParse(a,f,s._strict);l!=null?h.d=l:sr(s).invalidWeekday=a});cm(["d","e","E"],function(a,h,s,f){h[f]=fr(a)});function Ik(a,h){return typeof a!="string"?a:isNaN(a)?(a=h.weekdaysParse(a),typeof a=="number"?a:null):parseInt(a,10)}function Rk(a,h){return typeof a=="string"?h.weekdaysParse(a)%7||7:isNaN(a)?null:a}function Vx(a,h){return a.slice(h,7).concat(a.slice(0,h))}var Fk="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),s8="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pk="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yk=sm,jk=sm,Uk=sm;function zk(a,h){var s=ic(this._weekdays)?this._weekdays:this._weekdays[a&&a!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return a===!0?Vx(s,this._week.dow):a?s[a.day()]:s}function Wk(a){return a===!0?Vx(this._weekdaysShort,this._week.dow):a?this._weekdaysShort[a.day()]:this._weekdaysShort}function Hk(a){return a===!0?Vx(this._weekdaysMin,this._week.dow):a?this._weekdaysMin[a.day()]:this._weekdaysMin}function qk(a,h,s){var f,l,_,y=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)_=Xc([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(_,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(_,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(_,"").toLocaleLowerCase();return s?h==="dddd"?(l=zi.call(this._weekdaysParse,y),l!==-1?l:null):h==="ddd"?(l=zi.call(this._shortWeekdaysParse,y),l!==-1?l:null):(l=zi.call(this._minWeekdaysParse,y),l!==-1?l:null):h==="dddd"?(l=zi.call(this._weekdaysParse,y),l!==-1||(l=zi.call(this._shortWeekdaysParse,y),l!==-1)?l:(l=zi.call(this._minWeekdaysParse,y),l!==-1?l:null)):h==="ddd"?(l=zi.call(this._shortWeekdaysParse,y),l!==-1||(l=zi.call(this._weekdaysParse,y),l!==-1)?l:(l=zi.call(this._minWeekdaysParse,y),l!==-1?l:null)):(l=zi.call(this._minWeekdaysParse,y),l!==-1||(l=zi.call(this._weekdaysParse,y),l!==-1)?l:(l=zi.call(this._shortWeekdaysParse,y),l!==-1?l:null))}function $k(a,h,s){var f,l,_;if(this._weekdaysParseExact)return qk.call(this,a,h,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),f=0;f<7;f++){if(l=Xc([2e3,1]).day(f),s&&!this._fullWeekdaysParse[f]&&(this._fullWeekdaysParse[f]=new RegExp("^"+this.weekdays(l,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[f]=new RegExp("^"+this.weekdaysShort(l,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[f]=new RegExp("^"+this.weekdaysMin(l,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[f]||(_="^"+this.weekdays(l,"")+"|^"+this.weekdaysShort(l,"")+"|^"+this.weekdaysMin(l,""),this._weekdaysParse[f]=new RegExp(_.replace(".",""),"i")),s&&h==="dddd"&&this._fullWeekdaysParse[f].test(a))return f;if(s&&h==="ddd"&&this._shortWeekdaysParse[f].test(a))return f;if(s&&h==="dd"&&this._minWeekdaysParse[f].test(a))return f;if(!s&&this._weekdaysParse[f].test(a))return f}}function Vk(a){if(!this.isValid())return a!=null?this:NaN;var h=this._isUTC?this._d.getUTCDay():this._d.getDay();return a!=null?(a=Ik(a,this.localeData()),this.add(a-h,"d")):h}function Gk(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 Xk(a){if(!this.isValid())return a!=null?this:NaN;if(a!=null){var h=Rk(a,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function Zk(a){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||Gx.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(Mr(this,"_weekdaysRegex")||(this._weekdaysRegex=Yk),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function Qk(a){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||Gx.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Mr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jk),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jk(a){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||Gx.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Mr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Uk),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Gx(){function a(I,N){return N.length-I.length}var h=[],s=[],f=[],l=[],_,y,x,E,A;for(_=0;_<7;_++)y=Xc([2e3,1]).day(_),x=Jo(this.weekdaysMin(y,"")),E=Jo(this.weekdaysShort(y,"")),A=Jo(this.weekdays(y,"")),h.push(x),s.push(E),f.push(A),l.push(x),l.push(E),l.push(A);h.sort(a),s.sort(a),f.sort(a),l.sort(a),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Xx(){return this.hours()%12||12}function Kk(){return this.hours()||24}Cn("H",["HH",2],0,"hour");Cn("h",["hh",2],0,Xx);Cn("k",["kk",2],0,Kk);Cn("hmm",0,0,function(){return""+Xx.apply(this)+Qc(this.minutes(),2)});Cn("hmmss",0,0,function(){return""+Xx.apply(this)+Qc(this.minutes(),2)+Qc(this.seconds(),2)});Cn("Hmm",0,0,function(){return""+this.hours()+Qc(this.minutes(),2)});Cn("Hmmss",0,0,function(){return""+this.hours()+Qc(this.minutes(),2)+Qc(this.seconds(),2)});function c8(a,h){Cn(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}c8("a",!0);c8("A",!1);za("hour","h");Wa("hour",13);function u8(a,h){return h._meridiemParse}sn("a",u8);sn("A",u8);sn("H",ui);sn("h",ui);sn("k",ui);sn("HH",ui,Qo);sn("hh",ui,Qo);sn("kk",ui,Qo);sn("hmm",Jw);sn("hmmss",Kw);sn("Hmm",Jw);sn("Hmmss",Kw);Gr(["H","HH"],ha);Gr(["k","kk"],function(a,h,s){var f=fr(a);h[ha]=f===24?0:f});Gr(["a","A"],function(a,h,s){s._isPm=s._locale.isPM(a),s._meridiem=a});Gr(["h","hh"],function(a,h,s){h[ha]=fr(a),sr(s).bigHour=!0});Gr("hmm",function(a,h,s){var f=a.length-2;h[ha]=fr(a.substr(0,f)),h[oc]=fr(a.substr(f)),sr(s).bigHour=!0});Gr("hmmss",function(a,h,s){var f=a.length-4,l=a.length-2;h[ha]=fr(a.substr(0,f)),h[oc]=fr(a.substr(f,2)),h[Gu]=fr(a.substr(l)),sr(s).bigHour=!0});Gr("Hmm",function(a,h,s){var f=a.length-2;h[ha]=fr(a.substr(0,f)),h[oc]=fr(a.substr(f))});Gr("Hmmss",function(a,h,s){var f=a.length-4,l=a.length-2;h[ha]=fr(a.substr(0,f)),h[oc]=fr(a.substr(f,2)),h[Gu]=fr(a.substr(l))});function t9(a){return(a+"").toLowerCase().charAt(0)==="p"}var e9=/[ap]\.?m?\.?/i,n9=lp("Hours",!0);function r9(a,h,s){return a>11?s?"pm":"PM":s?"am":"AM"}var l8={calendar:$7,longDateFormat:Z7,invalidDate:J7,ordinal:tk,dayOfMonthOrdinalParse:ek,relativeTime:rk,months:mk,monthsShort:t8,week:Dk,weekdays:Fk,weekdaysMin:Pk,weekdaysShort:s8,meridiemParse:e9},_i={},fm={},dm;function i9(a,h){var s,f=Math.min(a.length,h.length);for(s=0;s<f;s+=1)if(a[s]!==h[s])return s;return f}function h8(a){return a&&a.toLowerCase().replace("_","-")}function a9(a){for(var h=0,s,f,l,_;h<a.length;){for(_=h8(a[h]).split("-"),s=_.length,f=h8(a[h+1]),f=f?f.split("-"):null;s>0;){if(l=Zb(_.slice(0,s).join("-")),l)return l;if(f&&f.length>=s&&i9(_,f)>=s-1)break;s--}h++}return dm}function Zb(a){var h=null,s;if(_i[a]===void 0&&typeof module!="undefined"&&module&&module.exports)try{h=dm._abbr,s=require,s("./locale/"+a),kh(h)}catch{_i[a]=null}return _i[a]}function kh(a,h){var s;return a&&(wo(h)?s=Zu(a):s=Zx(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 Zx(a,h){if(h!==null){var s,f=l8;if(h.abbr=a,_i[a]!=null)$w("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."),f=_i[a]._config;else if(h.parentLocale!=null)if(_i[h.parentLocale]!=null)f=_i[h.parentLocale]._config;else if(s=Zb(h.parentLocale),s!=null)f=s._config;else return fm[h.parentLocale]||(fm[h.parentLocale]=[]),fm[h.parentLocale].push({name:a,config:h}),null;return _i[a]=new Yx(Px(f,h)),fm[a]&&fm[a].forEach(function(l){Zx(l.name,l.config)}),kh(a),_i[a]}else return delete _i[a],null}function o9(a,h){if(h!=null){var s,f,l=l8;_i[a]!=null&&_i[a].parentLocale!=null?_i[a].set(Px(_i[a]._config,h)):(f=Zb(a),f!=null&&(l=f._config),h=Px(l,h),f==null&&(h.abbr=a),s=new Yx(h),s.parentLocale=_i[a],_i[a]=s),kh(a)}else _i[a]!=null&&(_i[a].parentLocale!=null?(_i[a]=_i[a].parentLocale,a===kh()&&kh(a)):_i[a]!=null&&delete _i[a]);return _i[a]}function Zu(a){var h;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return dm;if(!ic(a)){if(h=Zb(a),h)return h;a=[a]}return a9(a)}function s9(){return jx(_i)}function Qx(a){var h,s=a._a;return s&&sr(a).overflow===-2&&(h=s[Vu]<0||s[Vu]>11?Vu:s[Jc]<1||s[Jc]>Gb(s[Ha],s[Vu])?Jc:s[ha]<0||s[ha]>24||s[ha]===24&&(s[oc]!==0||s[Gu]!==0||s[bd]!==0)?ha:s[oc]<0||s[oc]>59?oc:s[Gu]<0||s[Gu]>59?Gu:s[bd]<0||s[bd]>999?bd:-1,sr(a)._overflowDayOfYear&&(h<Ha||h>Jc)&&(h=Jc),sr(a)._overflowWeeks&&h===-1&&(h=pk),sr(a)._overflowWeekday&&h===-1&&(h=gk),sr(a).overflow=h),a}var c9=/^\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)?)?$/,u9=/^\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)?)?$/,l9=/Z|[+-]\d\d(?::?\d\d)?/,Qb=[["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]],Jx=[["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/]],h9=/^\/?Date\((-?\d+)/i,f9=/^(?:(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}))$/,d9={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 f8(a){var h,s,f=a._i,l=c9.exec(f)||u9.exec(f),_,y,x,E;if(l){for(sr(a).iso=!0,h=0,s=Qb.length;h<s;h++)if(Qb[h][1].exec(l[1])){y=Qb[h][0],_=Qb[h][2]!==!1;break}if(y==null){a._isValid=!1;return}if(l[3]){for(h=0,s=Jx.length;h<s;h++)if(Jx[h][1].exec(l[3])){x=(l[2]||" ")+Jx[h][0];break}if(x==null){a._isValid=!1;return}}if(!_&&x!=null){a._isValid=!1;return}if(l[4])if(l9.exec(l[4]))E="Z";else{a._isValid=!1;return}a._f=y+(x||"")+(E||""),tw(a)}else a._isValid=!1}function p9(a,h,s,f,l,_){var y=[g9(a),t8.indexOf(h),parseInt(s,10),parseInt(f,10),parseInt(l,10)];return _&&y.push(parseInt(_,10)),y}function g9(a){var h=parseInt(a,10);return h<=49?2e3+h:h<=999?1900+h:h}function y9(a){return a.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function m9(a,h,s){if(a){var f=s8.indexOf(a),l=new Date(h[0],h[1],h[2]).getDay();if(f!==l)return sr(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function v9(a,h,s){if(a)return d9[a];if(h)return 0;var f=parseInt(s,10),l=f%100,_=(f-l)/100;return _*60+l}function d8(a){var h=f9.exec(y9(a._i)),s;if(h){if(s=p9(h[4],h[3],h[2],h[5],h[6],h[7]),!m9(h[1],s,a))return;a._a=s,a._tzm=v9(h[8],h[9],h[10]),a._d=lm.apply(null,a._a),a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),sr(a).rfc2822=!0}else a._isValid=!1}function _9(a){var h=h9.exec(a._i);if(h!==null){a._d=new Date(+h[1]);return}if(f8(a),a._isValid===!1)delete a._isValid;else return;if(d8(a),a._isValid===!1)delete a._isValid;else return;a._strict?a._isValid=!1:rn.createFromInputFallback(a)}rn.createFromInputFallback=Cs("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 fp(a,h,s){return a!=null?a:h!=null?h:s}function b9(a){var h=new Date(rn.now());return a._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Kx(a){var h,s,f=[],l,_,y;if(!a._d){for(l=b9(a),a._w&&a._a[Jc]==null&&a._a[Vu]==null&&x9(a),a._dayOfYear!=null&&(y=fp(a._a[Ha],l[Ha]),(a._dayOfYear>um(y)||a._dayOfYear===0)&&(sr(a)._overflowDayOfYear=!0),s=lm(y,0,a._dayOfYear),a._a[Vu]=s.getUTCMonth(),a._a[Jc]=s.getUTCDate()),h=0;h<3&&a._a[h]==null;++h)a._a[h]=f[h]=l[h];for(;h<7;h++)a._a[h]=f[h]=a._a[h]==null?h===2?1:0:a._a[h];a._a[ha]===24&&a._a[oc]===0&&a._a[Gu]===0&&a._a[bd]===0&&(a._nextDay=!0,a._a[ha]=0),a._d=(a._useUTC?lm:Mk).apply(null,f),_=a._useUTC?a._d.getUTCDay():a._d.getDay(),a._tzm!=null&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[ha]=24),a._w&&typeof a._w.d!="undefined"&&a._w.d!==_&&(sr(a).weekdayMismatch=!0)}}function x9(a){var h,s,f,l,_,y,x,E,A;h=a._w,h.GG!=null||h.W!=null||h.E!=null?(_=1,y=4,s=fp(h.GG,a._a[Ha],hm(li(),1,4).year),f=fp(h.W,1),l=fp(h.E,1),(l<1||l>7)&&(E=!0)):(_=a._locale._week.dow,y=a._locale._week.doy,A=hm(li(),_,y),s=fp(h.gg,a._a[Ha],A.year),f=fp(h.w,A.week),h.d!=null?(l=h.d,(l<0||l>6)&&(E=!0)):h.e!=null?(l=h.e+_,(h.e<0||h.e>6)&&(E=!0)):l=_),f<1||f>Xu(s,_,y)?sr(a)._overflowWeeks=!0:E!=null?sr(a)._overflowWeekday=!0:(x=o8(s,f,l,_,y),a._a[Ha]=x.year,a._dayOfYear=x.dayOfYear)}rn.ISO_8601=function(){};rn.RFC_2822=function(){};function tw(a){if(a._f===rn.ISO_8601){f8(a);return}if(a._f===rn.RFC_2822){d8(a);return}a._a=[],sr(a).empty=!0;var h=""+a._i,s,f,l,_,y,x=h.length,E=0,A;for(l=Vw(a._f,a._locale).match(Ux)||[],s=0;s<l.length;s++)_=l[s],f=(h.match(hk(_,a))||[])[0],f&&(y=h.substr(0,h.indexOf(f)),y.length>0&&sr(a).unusedInput.push(y),h=h.slice(h.indexOf(f)+f.length),E+=f.length),up[_]?(f?sr(a).empty=!1:sr(a).unusedTokens.push(_),dk(_,f,a)):a._strict&&!f&&sr(a).unusedTokens.push(_);sr(a).charsLeftOver=x-E,h.length>0&&sr(a).unusedInput.push(h),a._a[ha]<=12&&sr(a).bigHour===!0&&a._a[ha]>0&&(sr(a).bigHour=void 0),sr(a).parsedDateParts=a._a.slice(0),sr(a).meridiem=a._meridiem,a._a[ha]=w9(a._locale,a._a[ha],a._meridiem),A=sr(a).era,A!==null&&(a._a[Ha]=a._locale.erasConvertYear(A,a._a[Ha])),Kx(a),Qx(a)}function w9(a,h,s){var f;return s==null?h:a.meridiemHour!=null?a.meridiemHour(h,s):(a.isPM!=null&&(f=a.isPM(s),f&&h<12&&(h+=12),!f&&h===12&&(h=0)),h)}function k9(a){var h,s,f,l,_,y,x=!1;if(a._f.length===0){sr(a).invalidFormat=!0,a._d=new Date(NaN);return}for(l=0;l<a._f.length;l++)_=0,y=!1,h=Fx({},a),a._useUTC!=null&&(h._useUTC=a._useUTC),h._f=a._f[l],tw(h),Lx(h)&&(y=!0),_+=sr(h).charsLeftOver,_+=sr(h).unusedTokens.length*10,sr(h).score=_,x?_<f&&(f=_,s=h):(f==null||_<f||y)&&(f=_,s=h,y&&(x=!0));wh(a,s||h)}function T9(a){if(!a._d){var h=Wx(a._i),s=h.day===void 0?h.date:h.day;a._a=Ww([h.year,h.month,s,h.hour,h.minute,h.second,h.millisecond],function(f){return f&&parseInt(f,10)}),Kx(a)}}function E9(a){var h=new am(Qx(p8(a)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function p8(a){var h=a._i,s=a._f;return a._locale=a._locale||Zu(a._l),h===null||s===void 0&&h===""?Fb({nullInput:!0}):(typeof h=="string"&&(a._i=h=a._locale.preparse(h)),ac(h)?new am(Qx(h)):(im(h)?a._d=h:ic(s)?k9(a):s?tw(a):S9(a),Lx(a)||(a._d=null),a))}function S9(a){var h=a._i;wo(h)?a._d=new Date(rn.now()):im(h)?a._d=new Date(h.valueOf()):typeof h=="string"?_9(a):ic(h)?(a._a=Ww(h.slice(0),function(s){return parseInt(s,10)}),Kx(a)):_d(h)?T9(a):$u(h)?a._d=new Date(h):rn.createFromInputFallback(a)}function g8(a,h,s,f,l){var _={};return(h===!0||h===!1)&&(f=h,h=void 0),(s===!0||s===!1)&&(f=s,s=void 0),(_d(a)&&Ox(a)||ic(a)&&a.length===0)&&(a=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=l,_._l=s,_._i=a,_._f=h,_._strict=f,E9(_)}function li(a,h,s,f){return g8(a,h,s,f,!1)}var C9=Cs("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=li.apply(null,arguments);return this.isValid()&&a.isValid()?a<this?this:a:Fb()}),M9=Cs("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=li.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:Fb()});function y8(a,h){var s,f;if(h.length===1&&ic(h[0])&&(h=h[0]),!h.length)return li();for(s=h[0],f=1;f<h.length;++f)(!h[f].isValid()||h[f][a](s))&&(s=h[f]);return s}function A9(){var a=[].slice.call(arguments,0);return y8("isBefore",a)}function D9(){var a=[].slice.call(arguments,0);return y8("isAfter",a)}var N9=function(){return Date.now?Date.now():+new Date},pm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function O9(a){var h,s=!1,f;for(h in a)if(Mr(a,h)&&!(zi.call(pm,h)!==-1&&(a[h]==null||!isNaN(a[h]))))return!1;for(f=0;f<pm.length;++f)if(a[pm[f]]){if(s)return!1;parseFloat(a[pm[f]])!==fr(a[pm[f]])&&(s=!0)}return!0}function B9(){return this._isValid}function L9(){return sc(NaN)}function Jb(a){var h=Wx(a),s=h.year||0,f=h.quarter||0,l=h.month||0,_=h.week||h.isoWeek||0,y=h.day||0,x=h.hour||0,E=h.minute||0,A=h.second||0,I=h.millisecond||0;this._isValid=O9(h),this._milliseconds=+I+A*1e3+E*6e4+x*1e3*60*60,this._days=+y+_*7,this._months=+l+f*3+s*12,this._data={},this._locale=Zu(),this._bubble()}function Kb(a){return a instanceof Jb}function ew(a){return a<0?Math.round(-1*a)*-1:Math.round(a)}function I9(a,h,s){var f=Math.min(a.length,h.length),l=Math.abs(a.length-h.length),_=0,y;for(y=0;y<f;y++)(s&&a[y]!==h[y]||!s&&fr(a[y])!==fr(h[y]))&&_++;return _+l}function m8(a,h){Cn(a,0,0,function(){var s=this.utcOffset(),f="+";return s<0&&(s=-s,f="-"),f+Qc(~~(s/60),2)+h+Qc(~~s%60,2)})}m8("Z",":");m8("ZZ","");sn("Z",$b);sn("ZZ",$b);Gr(["Z","ZZ"],function(a,h,s){s._useUTC=!0,s._tzm=nw($b,a)});var R9=/([\+\-]|\d\d)/gi;function nw(a,h){var s=(h||"").match(a),f,l,_;return s===null?null:(f=s[s.length-1]||[],l=(f+"").match(R9)||["-",0,0],_=+(l[1]*60)+fr(l[2]),_===0?0:l[0]==="+"?_:-_)}function rw(a,h){var s,f;return h._isUTC?(s=h.clone(),f=(ac(a)||im(a)?a.valueOf():li(a).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+f),rn.updateOffset(s,!1),s):li(a).local()}function iw(a){return-Math.round(a._d.getTimezoneOffset())}rn.updateOffset=function(){};function F9(a,h,s){var f=this._offset||0,l;if(!this.isValid())return a!=null?this:NaN;if(a!=null){if(typeof a=="string"){if(a=nw($b,a),a===null)return this}else Math.abs(a)<16&&!s&&(a=a*60);return!this._isUTC&&h&&(l=iw(this)),this._offset=a,this._isUTC=!0,l!=null&&this.add(l,"m"),f!==a&&(!h||this._changeInProgress?x8(this,sc(a-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,rn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?f:iw(this)}function P9(a,h){return a!=null?(typeof a!="string"&&(a=-a),this.utcOffset(a,h),this):-this.utcOffset()}function Y9(a){return this.utcOffset(0,a)}function j9(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(iw(this),"m")),this}function U9(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var a=nw(uk,this._i);a!=null?this.utcOffset(a):this.utcOffset(0,!0)}return this}function z9(a){return this.isValid()?(a=a?li(a).utcOffset():0,(this.utcOffset()-a)%60==0):!1}function W9(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function H9(){if(!wo(this._isDSTShifted))return this._isDSTShifted;var a={},h;return Fx(a,this),a=p8(a),a._a?(h=a._isUTC?Xc(a._a):li(a._a),this._isDSTShifted=this.isValid()&&I9(a._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function q9(){return this.isValid()?!this._isUTC:!1}function $9(){return this.isValid()?this._isUTC:!1}function v8(){return this.isValid()?this._isUTC&&this._offset===0:!1}var V9=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,G9=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function sc(a,h){var s=a,f=null,l,_,y;return Kb(a)?s={ms:a._milliseconds,d:a._days,M:a._months}:$u(a)||!isNaN(+a)?(s={},h?s[h]=+a:s.milliseconds=+a):(f=V9.exec(a))?(l=f[1]==="-"?-1:1,s={y:0,d:fr(f[Jc])*l,h:fr(f[ha])*l,m:fr(f[oc])*l,s:fr(f[Gu])*l,ms:fr(ew(f[bd]*1e3))*l}):(f=G9.exec(a))?(l=f[1]==="-"?-1:1,s={y:xd(f[2],l),M:xd(f[3],l),w:xd(f[4],l),d:xd(f[5],l),h:xd(f[6],l),m:xd(f[7],l),s:xd(f[8],l)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(y=X9(li(s.from),li(s.to)),s={},s.ms=y.milliseconds,s.M=y.months),_=new Jb(s),Kb(a)&&Mr(a,"_locale")&&(_._locale=a._locale),Kb(a)&&Mr(a,"_isValid")&&(_._isValid=a._isValid),_}sc.fn=Jb.prototype;sc.invalid=L9;function xd(a,h){var s=a&&parseFloat(a.replace(",","."));return(isNaN(s)?0:s)*h}function _8(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 X9(a,h){var s;return a.isValid()&&h.isValid()?(h=rw(h,a),a.isBefore(h)?s=_8(a,h):(s=_8(h,a),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function b8(a,h){return function(s,f){var l,_;return f!==null&&!isNaN(+f)&&($w(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=f,f=_),l=sc(s,f),x8(this,l,a),this}}function x8(a,h,s,f){var l=h._milliseconds,_=ew(h._days),y=ew(h._months);!a.isValid()||(f=f==null?!0:f,y&&n8(a,Ub(a,"Month")+y*s),_&&Xw(a,"Date",Ub(a,"Date")+_*s),l&&a._d.setTime(a._d.valueOf()+l*s),f&&rn.updateOffset(a,_||y))}var Z9=b8(1,"add"),Q9=b8(-1,"subtract");function w8(a){return typeof a=="string"||a instanceof String}function J9(a){return ac(a)||im(a)||w8(a)||$u(a)||tT(a)||K9(a)||a===null||a===void 0}function K9(a){var h=_d(a)&&!Ox(a),s=!1,f=["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<f.length;l+=1)_=f[l],s=s||Mr(a,_);return h&&s}function tT(a){var h=ic(a),s=!1;return h&&(s=a.filter(function(f){return!$u(f)&&w8(a)}).length===0),h&&s}function eT(a){var h=_d(a)&&!Ox(a),s=!1,f=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],l,_;for(l=0;l<f.length;l+=1)_=f[l],s=s||Mr(a,_);return h&&s}function nT(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 rT(a,h){arguments.length===1&&(arguments[0]?J9(arguments[0])?(a=arguments[0],h=void 0):eT(arguments[0])&&(h=arguments[0],a=void 0):(a=void 0,h=void 0));var s=a||li(),f=rw(s,this).startOf("day"),l=rn.calendarFormat(this,f)||"sameElse",_=h&&(Zc(h[l])?h[l].call(this,s):h[l]);return this.format(_||this.localeData().calendar(l,this,li(s)))}function iT(){return new am(this)}function aT(a,h){var s=ac(a)?a:li(a);return this.isValid()&&s.isValid()?(h=Ms(h)||"millisecond",h==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(h).valueOf()):!1}function oT(a,h){var s=ac(a)?a:li(a);return this.isValid()&&s.isValid()?(h=Ms(h)||"millisecond",h==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(h).valueOf()<s.valueOf()):!1}function sT(a,h,s,f){var l=ac(a)?a:li(a),_=ac(h)?h:li(h);return this.isValid()&&l.isValid()&&_.isValid()?(f=f||"()",(f[0]==="("?this.isAfter(l,s):!this.isBefore(l,s))&&(f[1]===")"?this.isBefore(_,s):!this.isAfter(_,s))):!1}function cT(a,h){var s=ac(a)?a:li(a),f;return this.isValid()&&s.isValid()?(h=Ms(h)||"millisecond",h==="millisecond"?this.valueOf()===s.valueOf():(f=s.valueOf(),this.clone().startOf(h).valueOf()<=f&&f<=this.clone().endOf(h).valueOf())):!1}function uT(a,h){return this.isSame(a,h)||this.isAfter(a,h)}function lT(a,h){return this.isSame(a,h)||this.isBefore(a,h)}function hT(a,h,s){var f,l,_;if(!this.isValid())return NaN;if(f=rw(a,this),!f.isValid())return NaN;switch(l=(f.utcOffset()-this.utcOffset())*6e4,h=Ms(h),h){case"year":_=t4(this,f)/12;break;case"month":_=t4(this,f);break;case"quarter":_=t4(this,f)/3;break;case"second":_=(this-f)/1e3;break;case"minute":_=(this-f)/6e4;break;case"hour":_=(this-f)/36e5;break;case"day":_=(this-f-l)/864e5;break;case"week":_=(this-f-l)/6048e5;break;default:_=this-f}return s?_:As(_)}function t4(a,h){if(a.date()<h.date())return-t4(h,a);var s=(h.year()-a.year())*12+(h.month()-a.month()),f=a.clone().add(s,"months"),l,_;return h-f<0?(l=a.clone().add(s-1,"months"),_=(h-f)/(f-l)):(l=a.clone().add(s+1,"months"),_=(h-f)/(l-f)),-(s+_)||0}rn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";rn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function fT(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dT(a){if(!this.isValid())return null;var h=a!==!0,s=h?this.clone().utc():this;return s.year()<0||s.year()>9999?Yb(s,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Zc(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Yb(s,"Z")):Yb(s,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pT(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",h="",s,f,l,_;return this.isLocal()||(a=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),s="["+a+'("]',f=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",l="-MM-DD[T]HH:mm:ss.SSS",_=h+'[")]',this.format(s+f+l+_)}function gT(a){a||(a=this.isUtc()?rn.defaultFormatUtc:rn.defaultFormat);var h=Yb(this,a);return this.localeData().postformat(h)}function yT(a,h){return this.isValid()&&(ac(a)&&a.isValid()||li(a).isValid())?sc({to:this,from:a}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function mT(a){return this.from(li(),a)}function vT(a,h){return this.isValid()&&(ac(a)&&a.isValid()||li(a).isValid())?sc({from:this,to:a}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function _T(a){return this.to(li(),a)}function k8(a){var h;return a===void 0?this._locale._abbr:(h=Zu(a),h!=null&&(this._locale=h),this)}var T8=Cs("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 E8(){return this._locale}var e4=1e3,dp=60*e4,n4=60*dp,S8=(365*400+97)*24*n4;function pp(a,h){return(a%h+h)%h}function C8(a,h,s){return a<100&&a>=0?new Date(a+400,h,s)-S8:new Date(a,h,s).valueOf()}function M8(a,h,s){return a<100&&a>=0?Date.UTC(a+400,h,s)-S8:Date.UTC(a,h,s)}function bT(a){var h,s;if(a=Ms(a),a===void 0||a==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?M8:C8,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-=pp(h+(this._isUTC?0:this.utcOffset()*dp),n4);break;case"minute":h=this._d.valueOf(),h-=pp(h,dp);break;case"second":h=this._d.valueOf(),h-=pp(h,e4);break}return this._d.setTime(h),rn.updateOffset(this,!0),this}function xT(a){var h,s;if(a=Ms(a),a===void 0||a==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?M8:C8,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+=n4-pp(h+(this._isUTC?0:this.utcOffset()*dp),n4)-1;break;case"minute":h=this._d.valueOf(),h+=dp-pp(h,dp)-1;break;case"second":h=this._d.valueOf(),h+=e4-pp(h,e4)-1;break}return this._d.setTime(h),rn.updateOffset(this,!0),this}function wT(){return this._d.valueOf()-(this._offset||0)*6e4}function kT(){return Math.floor(this.valueOf()/1e3)}function TT(){return new Date(this.valueOf())}function ET(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function ST(){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 CT(){return this.isValid()?this.toISOString():null}function MT(){return Lx(this)}function AT(){return wh({},sr(this))}function DT(){return sr(this).overflow}function NT(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Cn("N",0,0,"eraAbbr");Cn("NN",0,0,"eraAbbr");Cn("NNN",0,0,"eraAbbr");Cn("NNNN",0,0,"eraName");Cn("NNNNN",0,0,"eraNarrow");Cn("y",["y",1],"yo","eraYear");Cn("y",["yy",2],0,"eraYear");Cn("y",["yyy",3],0,"eraYear");Cn("y",["yyyy",4],0,"eraYear");sn("N",aw);sn("NN",aw);sn("NNN",aw);sn("NNNN",zT);sn("NNNNN",WT);Gr(["N","NN","NNN","NNNN","NNNNN"],function(a,h,s,f){var l=s._locale.erasParse(a,f,s._strict);l?sr(s).era=l:sr(s).invalidEra=a});sn("y",hp);sn("yy",hp);sn("yyy",hp);sn("yyyy",hp);sn("yo",HT);Gr(["y","yy","yyy","yyyy"],Ha);Gr(["yo"],function(a,h,s,f){var l;s._locale._eraYearOrdinalRegex&&(l=a.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?h[Ha]=s._locale.eraYearOrdinalParse(a,l):h[Ha]=parseInt(a,10)});function OT(a,h){var s,f,l,_=this._eras||Zu("en")._eras;for(s=0,f=_.length;s<f;++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 BT(a,h,s){var f,l,_=this.eras(),y,x,E;for(a=a.toUpperCase(),f=0,l=_.length;f<l;++f)if(y=_[f].name.toUpperCase(),x=_[f].abbr.toUpperCase(),E=_[f].narrow.toUpperCase(),s)switch(h){case"N":case"NN":case"NNN":if(x===a)return _[f];break;case"NNNN":if(y===a)return _[f];break;case"NNNNN":if(E===a)return _[f];break}else if([y,x,E].indexOf(a)>=0)return _[f]}function LT(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 IT(){var a,h,s,f=this.localeData().eras();for(a=0,h=f.length;a<h;++a)if(s=this.clone().startOf("day").valueOf(),f[a].since<=s&&s<=f[a].until||f[a].until<=s&&s<=f[a].since)return f[a].name;return""}function RT(){var a,h,s,f=this.localeData().eras();for(a=0,h=f.length;a<h;++a)if(s=this.clone().startOf("day").valueOf(),f[a].since<=s&&s<=f[a].until||f[a].until<=s&&s<=f[a].since)return f[a].narrow;return""}function FT(){var a,h,s,f=this.localeData().eras();for(a=0,h=f.length;a<h;++a)if(s=this.clone().startOf("day").valueOf(),f[a].since<=s&&s<=f[a].until||f[a].until<=s&&s<=f[a].since)return f[a].abbr;return""}function PT(){var a,h,s,f,l=this.localeData().eras();for(a=0,h=l.length;a<h;++a)if(s=l[a].since<=l[a].until?1:-1,f=this.clone().startOf("day").valueOf(),l[a].since<=f&&f<=l[a].until||l[a].until<=f&&f<=l[a].since)return(this.year()-rn(l[a].since).year())*s+l[a].offset;return this.year()}function YT(a){return Mr(this,"_erasNameRegex")||ow.call(this),a?this._erasNameRegex:this._erasRegex}function jT(a){return Mr(this,"_erasAbbrRegex")||ow.call(this),a?this._erasAbbrRegex:this._erasRegex}function UT(a){return Mr(this,"_erasNarrowRegex")||ow.call(this),a?this._erasNarrowRegex:this._erasRegex}function aw(a,h){return h.erasAbbrRegex(a)}function zT(a,h){return h.erasNameRegex(a)}function WT(a,h){return h.erasNarrowRegex(a)}function HT(a,h){return h._eraYearOrdinalRegex||hp}function ow(){var a=[],h=[],s=[],f=[],l,_,y=this.eras();for(l=0,_=y.length;l<_;++l)h.push(Jo(y[l].name)),a.push(Jo(y[l].abbr)),s.push(Jo(y[l].narrow)),f.push(Jo(y[l].name)),f.push(Jo(y[l].abbr)),f.push(Jo(y[l].narrow));this._erasRegex=new RegExp("^("+f.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}Cn(0,["gg",2],0,function(){return this.weekYear()%100});Cn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function r4(a,h){Cn(0,[a,a.length],0,h)}r4("gggg","weekYear");r4("ggggg","weekYear");r4("GGGG","isoWeekYear");r4("GGGGG","isoWeekYear");za("weekYear","gg");za("isoWeekYear","GG");Wa("weekYear",1);Wa("isoWeekYear",1);sn("G",qb);sn("g",qb);sn("GG",ui,Qo);sn("gg",ui,Qo);sn("GGGG",qx,Hx);sn("gggg",qx,Hx);sn("GGGGG",Hb,zb);sn("ggggg",Hb,zb);cm(["gggg","ggggg","GGGG","GGGGG"],function(a,h,s,f){h[f.substr(0,2)]=fr(a)});cm(["gg","GG"],function(a,h,s,f){h[f]=rn.parseTwoDigitYear(a)});function qT(a){return A8.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function $T(a){return A8.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function VT(){return Xu(this.year(),1,4)}function GT(){return Xu(this.isoWeekYear(),1,4)}function XT(){var a=this.localeData()._week;return Xu(this.year(),a.dow,a.doy)}function ZT(){var a=this.localeData()._week;return Xu(this.weekYear(),a.dow,a.doy)}function A8(a,h,s,f,l){var _;return a==null?hm(this,f,l).year:(_=Xu(a,f,l),h>_&&(h=_),QT.call(this,a,h,s,f,l))}function QT(a,h,s,f,l){var _=o8(a,h,s,f,l),y=lm(_.year,0,_.dayOfYear);return this.year(y.getUTCFullYear()),this.month(y.getUTCMonth()),this.date(y.getUTCDate()),this}Cn("Q",0,"Qo","quarter");za("quarter","Q");Wa("quarter",7);sn("Q",Zw);Gr("Q",function(a,h){h[Vu]=(fr(a)-1)*3});function JT(a){return a==null?Math.ceil((this.month()+1)/3):this.month((a-1)*3+this.month()%3)}Cn("D",["DD",2],"Do","date");za("date","D");Wa("date",9);sn("D",ui);sn("DD",ui,Qo);sn("Do",function(a,h){return a?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient});Gr(["D","DD"],Jc);Gr("Do",function(a,h){h[Jc]=fr(a.match(ui)[0])});var D8=lp("Date",!0);Cn("DDD",["DDDD",3],"DDDo","dayOfYear");za("dayOfYear","DDD");Wa("dayOfYear",4);sn("DDD",Wb);sn("DDDD",Qw);Gr(["DDD","DDDD"],function(a,h,s){s._dayOfYear=fr(a)});function KT(a){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return a==null?h:this.add(a-h,"d")}Cn("m",["mm",2],0,"minute");za("minute","m");Wa("minute",14);sn("m",ui);sn("mm",ui,Qo);Gr(["m","mm"],oc);var tE=lp("Minutes",!1);Cn("s",["ss",2],0,"second");za("second","s");Wa("second",15);sn("s",ui);sn("ss",ui,Qo);Gr(["s","ss"],Gu);var eE=lp("Seconds",!1);Cn("S",0,0,function(){return~~(this.millisecond()/100)});Cn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Cn(0,["SSS",3],0,"millisecond");Cn(0,["SSSS",4],0,function(){return this.millisecond()*10});Cn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Cn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Cn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Cn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Cn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});za("millisecond","ms");Wa("millisecond",16);sn("S",Wb,Zw);sn("SS",Wb,Qo);sn("SSS",Wb,Qw);var Th,N8;for(Th="SSSS";Th.length<=9;Th+="S")sn(Th,hp);function nE(a,h){h[bd]=fr(("0."+a)*1e3)}for(Th="S";Th.length<=9;Th+="S")Gr(Th,nE);N8=lp("Milliseconds",!1);Cn("z",0,0,"zoneAbbr");Cn("zz",0,0,"zoneName");function rE(){return this._isUTC?"UTC":""}function iE(){return this._isUTC?"Coordinated Universal Time":""}var Le=am.prototype;Le.add=Z9;Le.calendar=rT;Le.clone=iT;Le.diff=hT;Le.endOf=xT;Le.format=gT;Le.from=yT;Le.fromNow=mT;Le.to=vT;Le.toNow=_T;Le.get=sk;Le.invalidAt=DT;Le.isAfter=aT;Le.isBefore=oT;Le.isBetween=sT;Le.isSame=cT;Le.isSameOrAfter=uT;Le.isSameOrBefore=lT;Le.isValid=MT;Le.lang=T8;Le.locale=k8;Le.localeData=E8;Le.max=M9;Le.min=C9;Le.parsingFlags=AT;Le.set=ck;Le.startOf=bT;Le.subtract=Q9;Le.toArray=ET;Le.toObject=ST;Le.toDate=TT;Le.toISOString=dT;Le.inspect=pT;typeof Symbol!="undefined"&&Symbol.for!=null&&(Le[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Le.toJSON=CT;Le.toString=fT;Le.unix=kT;Le.valueOf=wT;Le.creationData=NT;Le.eraName=IT;Le.eraNarrow=RT;Le.eraAbbr=FT;Le.eraYear=PT;Le.year=a8;Le.isLeapYear=Ck;Le.weekYear=qT;Le.isoWeekYear=$T;Le.quarter=Le.quarters=JT;Le.month=r8;Le.daysInMonth=Tk;Le.week=Le.weeks=Bk;Le.isoWeek=Le.isoWeeks=Lk;Le.weeksInYear=XT;Le.weeksInWeekYear=ZT;Le.isoWeeksInYear=VT;Le.isoWeeksInISOWeekYear=GT;Le.date=D8;Le.day=Le.days=Vk;Le.weekday=Gk;Le.isoWeekday=Xk;Le.dayOfYear=KT;Le.hour=Le.hours=n9;Le.minute=Le.minutes=tE;Le.second=Le.seconds=eE;Le.millisecond=Le.milliseconds=N8;Le.utcOffset=F9;Le.utc=Y9;Le.local=j9;Le.parseZone=U9;Le.hasAlignedHourOffset=z9;Le.isDST=W9;Le.isLocal=q9;Le.isUtcOffset=$9;Le.isUtc=v8;Le.isUTC=v8;Le.zoneAbbr=rE;Le.zoneName=iE;Le.dates=Cs("dates accessor is deprecated. Use date instead.",D8);Le.months=Cs("months accessor is deprecated. Use month instead",r8);Le.years=Cs("years accessor is deprecated. Use year instead",a8);Le.zone=Cs("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",P9);Le.isDSTShifted=Cs("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",H9);function aE(a){return li(a*1e3)}function oE(){return li.apply(null,arguments).parseZone()}function O8(a){return a}var Ar=Yx.prototype;Ar.calendar=V7;Ar.longDateFormat=Q7;Ar.invalidDate=K7;Ar.ordinal=nk;Ar.preparse=O8;Ar.postformat=O8;Ar.relativeTime=ik;Ar.pastFuture=ak;Ar.set=q7;Ar.eras=OT;Ar.erasParse=BT;Ar.erasConvertYear=LT;Ar.erasAbbrRegex=jT;Ar.erasNameRegex=YT;Ar.erasNarrowRegex=UT;Ar.months=bk;Ar.monthsShort=xk;Ar.monthsParse=kk;Ar.monthsRegex=Sk;Ar.monthsShortRegex=Ek;Ar.week=Ak;Ar.firstDayOfYear=Ok;Ar.firstDayOfWeek=Nk;Ar.weekdays=zk;Ar.weekdaysMin=Hk;Ar.weekdaysShort=Wk;Ar.weekdaysParse=$k;Ar.weekdaysRegex=Zk;Ar.weekdaysShortRegex=Qk;Ar.weekdaysMinRegex=Jk;Ar.isPM=t9;Ar.meridiem=r9;function i4(a,h,s,f){var l=Zu(),_=Xc().set(f,h);return l[s](_,a)}function B8(a,h,s){if($u(a)&&(h=a,a=void 0),a=a||"",h!=null)return i4(a,h,s,"month");var f,l=[];for(f=0;f<12;f++)l[f]=i4(a,f,s,"month");return l}function sw(a,h,s,f){typeof a=="boolean"?($u(h)&&(s=h,h=void 0),h=h||""):(h=a,s=h,a=!1,$u(h)&&(s=h,h=void 0),h=h||"");var l=Zu(),_=a?l._week.dow:0,y,x=[];if(s!=null)return i4(h,(s+_)%7,f,"day");for(y=0;y<7;y++)x[y]=i4(h,(y+_)%7,f,"day");return x}function sE(a,h){return B8(a,h,"months")}function cE(a,h){return B8(a,h,"monthsShort")}function uE(a,h,s){return sw(a,h,s,"weekdays")}function lE(a,h,s){return sw(a,h,s,"weekdaysShort")}function hE(a,h,s){return sw(a,h,s,"weekdaysMin")}kh("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=fr(a%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return a+s}});rn.lang=Cs("moment.lang is deprecated. Use moment.locale instead.",kh);rn.langData=Cs("moment.langData is deprecated. Use moment.localeData instead.",Zu);var Qu=Math.abs;function fE(){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 L8(a,h,s,f){var l=sc(h,s);return a._milliseconds+=f*l._milliseconds,a._days+=f*l._days,a._months+=f*l._months,a._bubble()}function dE(a,h){return L8(this,a,h,1)}function pE(a,h){return L8(this,a,h,-1)}function I8(a){return a<0?Math.floor(a):Math.ceil(a)}function gE(){var a=this._milliseconds,h=this._days,s=this._months,f=this._data,l,_,y,x,E;return a>=0&&h>=0&&s>=0||a<=0&&h<=0&&s<=0||(a+=I8(cw(s)+h)*864e5,h=0,s=0),f.milliseconds=a%1e3,l=As(a/1e3),f.seconds=l%60,_=As(l/60),f.minutes=_%60,y=As(_/60),f.hours=y%24,h+=As(y/24),E=As(R8(h)),s+=E,h-=I8(cw(E)),x=As(s/12),s%=12,f.days=h,f.months=s,f.years=x,this}function R8(a){return a*4800/146097}function cw(a){return a*146097/4800}function yE(a){if(!this.isValid())return NaN;var h,s,f=this._milliseconds;if(a=Ms(a),a==="month"||a==="quarter"||a==="year")switch(h=this._days+f/864e5,s=this._months+R8(h),a){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(h=this._days+Math.round(cw(this._months)),a){case"week":return h/7+f/6048e5;case"day":return h+f/864e5;case"hour":return h*24+f/36e5;case"minute":return h*1440+f/6e4;case"second":return h*86400+f/1e3;case"millisecond":return Math.floor(h*864e5)+f;default:throw new Error("Unknown unit "+a)}}function mE(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+fr(this._months/12)*31536e6:NaN}function Ju(a){return function(){return this.as(a)}}var vE=Ju("ms"),_E=Ju("s"),bE=Ju("m"),xE=Ju("h"),wE=Ju("d"),kE=Ju("w"),TE=Ju("M"),EE=Ju("Q"),SE=Ju("y");function CE(){return sc(this)}function ME(a){return a=Ms(a),this.isValid()?this[a+"s"]():NaN}function wd(a){return function(){return this.isValid()?this._data[a]:NaN}}var AE=wd("milliseconds"),DE=wd("seconds"),NE=wd("minutes"),OE=wd("hours"),BE=wd("days"),LE=wd("months"),IE=wd("years");function RE(){return As(this.days()/7)}var Ku=Math.round,gp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function FE(a,h,s,f,l){return l.relativeTime(h||1,!!s,a,f)}function PE(a,h,s,f){var l=sc(a).abs(),_=Ku(l.as("s")),y=Ku(l.as("m")),x=Ku(l.as("h")),E=Ku(l.as("d")),A=Ku(l.as("M")),I=Ku(l.as("w")),N=Ku(l.as("y")),P=_<=s.ss&&["s",_]||_<s.s&&["ss",_]||y<=1&&["m"]||y<s.m&&["mm",y]||x<=1&&["h"]||x<s.h&&["hh",x]||E<=1&&["d"]||E<s.d&&["dd",E];return s.w!=null&&(P=P||I<=1&&["w"]||I<s.w&&["ww",I]),P=P||A<=1&&["M"]||A<s.M&&["MM",A]||N<=1&&["y"]||["yy",N],P[2]=h,P[3]=+a>0,P[4]=f,FE.apply(null,P)}function YE(a){return a===void 0?Ku:typeof a=="function"?(Ku=a,!0):!1}function jE(a,h){return gp[a]===void 0?!1:h===void 0?gp[a]:(gp[a]=h,a==="s"&&(gp.ss=h-1),!0)}function UE(a,h){if(!this.isValid())return this.localeData().invalidDate();var s=!1,f=gp,l,_;return typeof a=="object"&&(h=a,a=!1),typeof a=="boolean"&&(s=a),typeof h=="object"&&(f=Object.assign({},gp,h),h.s!=null&&h.ss==null&&(f.ss=h.s-1)),l=this.localeData(),_=PE(this,!s,f,l),s&&(_=l.pastFuture(+this,_)),l.postformat(_)}var uw=Math.abs;function yp(a){return(a>0)-(a<0)||+a}function a4(){if(!this.isValid())return this.localeData().invalidDate();var a=uw(this._milliseconds)/1e3,h=uw(this._days),s=uw(this._months),f,l,_,y,x=this.asSeconds(),E,A,I,N;return x?(f=As(a/60),l=As(f/60),a%=60,f%=60,_=As(s/12),s%=12,y=a?a.toFixed(3).replace(/\.?0+$/,""):"",E=x<0?"-":"",A=yp(this._months)!==yp(x)?"-":"",I=yp(this._days)!==yp(x)?"-":"",N=yp(this._milliseconds)!==yp(x)?"-":"",E+"P"+(_?A+_+"Y":"")+(s?A+s+"M":"")+(h?I+h+"D":"")+(l||f||a?"T":"")+(l?N+l+"H":"")+(f?N+f+"M":"")+(a?N+y+"S":"")):"P0D"}var Er=Jb.prototype;Er.isValid=B9;Er.abs=fE;Er.add=dE;Er.subtract=pE;Er.as=yE;Er.asMilliseconds=vE;Er.asSeconds=_E;Er.asMinutes=bE;Er.asHours=xE;Er.asDays=wE;Er.asWeeks=kE;Er.asMonths=TE;Er.asQuarters=EE;Er.asYears=SE;Er.valueOf=mE;Er._bubble=gE;Er.clone=CE;Er.get=ME;Er.milliseconds=AE;Er.seconds=DE;Er.minutes=NE;Er.hours=OE;Er.days=BE;Er.weeks=RE;Er.months=LE;Er.years=IE;Er.humanize=UE;Er.toISOString=a4;Er.toString=a4;Er.toJSON=a4;Er.locale=k8;Er.localeData=E8;Er.toIsoString=Cs("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",a4);Er.lang=T8;Cn("X",0,0,"unix");Cn("x",0,0,"valueOf");sn("x",qb);sn("X",lk);Gr("X",function(a,h,s){s._d=new Date(parseFloat(a)*1e3)});Gr("x",function(a,h,s){s._d=new Date(fr(a))});//! moment.js
rn.version="2.29.1";W7(li);rn.fn=Le;rn.min=A9;rn.max=D9;rn.now=N9;rn.utc=Xc;rn.unix=aE;rn.months=sE;rn.isDate=im;rn.locale=kh;rn.invalid=Fb;rn.duration=sc;rn.isMoment=ac;rn.weekdays=uE;rn.parseZone=oE;rn.localeData=Zu;rn.isDuration=Kb;rn.monthsShort=cE;rn.weekdaysMin=hE;rn.defineLocale=Zx;rn.updateLocale=o9;rn.locales=s9;rn.weekdaysShort=lE;rn.normalizeUnits=Ms;rn.relativeTimeRounding=YE;rn.relativeTimeThreshold=jE;rn.calendarFormat=nT;rn.prototype=Le;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 zE={1362:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(Wt,Gt,rt,re){for(rt=rt||{},re=Wt.length;re--;rt[Wt[re]]=Gt);return rt},_=[1,6],y=[1,7],x=[1,8],E=[1,9],A=[1,12],I=[1,11],N=[1,15,24],P=[1,19],W=[1,31],H=[1,34],V=[1,32],X=[1,33],K=[1,35],ut=[1,36],tt=[1,37],Tt=[1,38],ht=[1,41],dt=[1,42],_t=[1,43],J=[1,44],bt=[15,24],Pt=[1,56],kt=[1,57],Ot=[1,58],st=[1,59],ae=[1,60],Yt=[1,61],_e=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],pe=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],de=[7,8,9,10,15,18,22,24],Bt=[47,77,78,79,80],zt=[47,54,55,77,78,79,80],ce=[47,50,51,52,53,77,78,79,80],he=[15,24,31],ge=[1,93],It={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(Wt,Gt,rt,re,Mt,qt,$t){var At=qt.length-1;switch(Mt){case 4:re.setDirection("TB");break;case 5:re.setDirection("BT");break;case 6:re.setDirection("RL");break;case 7:re.setDirection("LR");break;case 11:re.parseDirective("%%{","open_directive");break;case 12:re.parseDirective(qt[At],"type_directive");break;case 13:qt[At]=qt[At].trim().replace(/'/g,'"'),re.parseDirective(qt[At],"arg_directive");break;case 14:re.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=qt[At];break;case 21:this.$=qt[At-1]+qt[At];break;case 22:case 23:this.$=qt[At-1]+"~"+qt[At];break;case 24:re.addRelation(qt[At]);break;case 25:qt[At-1].title=re.cleanupLabel(qt[At]),re.addRelation(qt[At-1]);break;case 33:re.addClass(qt[At]);break;case 34:re.addClass(qt[At-2]),re.setCssClass(qt[At-2],qt[At]);break;case 35:re.addClass(qt[At-3]),re.addMembers(qt[At-3],qt[At-1]);break;case 36:re.addClass(qt[At-5]),re.setCssClass(qt[At-5],qt[At-3]),re.addMembers(qt[At-5],qt[At-1]);break;case 37:re.addAnnotation(qt[At],qt[At-2]);break;case 38:this.$=[qt[At]];break;case 39:qt[At].push(qt[At-1]),this.$=qt[At];break;case 40:case 42:case 43:break;case 41:re.addMember(qt[At-1],re.cleanupLabel(qt[At]));break;case 44:this.$={id1:qt[At-2],id2:qt[At],relation:qt[At-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:qt[At-3],id2:qt[At],relation:qt[At-1],relationTitle1:qt[At-2],relationTitle2:"none"};break;case 46:this.$={id1:qt[At-3],id2:qt[At],relation:qt[At-2],relationTitle1:"none",relationTitle2:qt[At-1]};break;case 47:this.$={id1:qt[At-4],id2:qt[At],relation:qt[At-2],relationTitle1:qt[At-3],relationTitle2:qt[At-1]};break;case 48:this.$={type1:qt[At-2],type2:qt[At],lineType:qt[At-1]};break;case 49:this.$={type1:"none",type2:qt[At],lineType:qt[At-1]};break;case 50:this.$={type1:qt[At-1],type2:"none",lineType:qt[At]};break;case 51:this.$={type1:"none",type2:"none",lineType:qt[At]};break;case 52:this.$=re.relationType.AGGREGATION;break;case 53:this.$=re.relationType.EXTENSION;break;case 54:this.$=re.relationType.COMPOSITION;break;case 55:this.$=re.relationType.DEPENDENCY;break;case 56:this.$=re.lineType.LINE;break;case 57:this.$=re.lineType.DOTTED_LINE;break;case 58:case 64:this.$=qt[At-2],re.setClickEvent(qt[At-1],qt[At]);break;case 59:case 65:this.$=qt[At-3],re.setClickEvent(qt[At-2],qt[At-1]),re.setTooltip(qt[At-2],qt[At]);break;case 60:case 68:this.$=qt[At-2],re.setLink(qt[At-1],qt[At]);break;case 61:case 69:this.$=qt[At-3],re.setLink(qt[At-2],qt[At-1],qt[At]);break;case 62:case 70:this.$=qt[At-3],re.setLink(qt[At-2],qt[At-1]),re.setTooltip(qt[At-2],qt[At]);break;case 63:case 71:this.$=qt[At-4],re.setLink(qt[At-3],qt[At-2],qt[At]),re.setTooltip(qt[At-3],qt[At-1]);break;case 66:this.$=qt[At-3],re.setClickEvent(qt[At-2],qt[At-1],qt[At]);break;case 67:this.$=qt[At-4],re.setClickEvent(qt[At-3],qt[At-2],qt[At-1]),re.setTooltip(qt[At-3],qt[At]);break;case 72:re.setCssClass(qt[At-1],qt[At])}},table:[{3:1,4:2,5:3,6:4,7:_,8:y,9:x,10:E,11:5,12:10,18:A,22:I},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:_,8:y,9:x,10:E,11:5,12:10,18:A,22:I},{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:x,10:E,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:K,57:ut,59:tt,63:Tt,77:ht,78:dt,79:_t,80:J},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},l(bt,[2,24],{31:[1,50]}),l(bt,[2,26]),l(bt,[2,27]),l(bt,[2,28]),l(bt,[2,29]),l(bt,[2,30]),l(bt,[2,31]),l(bt,[2,32]),l(bt,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:Pt,51:kt,52:Ot,53:st,54:ae,55:Yt}),{26:62,27:39,28:40,77:ht,78:dt,79:_t,80:J},l(bt,[2,42]),l(bt,[2,43]),{27:63,77:ht,78:dt,79:_t},{26:64,27:39,28:40,77:ht,78:dt,79:_t,80:J},{26:65,27:39,28:40,77:ht,78:dt,79:_t,80:J},{26:66,27:39,28:40,77:ht,78:dt,79:_t,80:J},{47:[1,67]},l(_e,[2,19],{27:39,28:40,26:68,29:[1,69],77:ht,78:dt,79:_t,80:J}),l(_e,[2,20],{29:[1,70]}),l(pe,[2,86]),l(pe,[2,87]),l(pe,[2,88]),l([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),l(de,[2,9]),{14:71,21:P},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:_,8:y,9:x,10:E,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:K,57:ut,59:tt,63:Tt,77:ht,78:dt,79:_t,80:J},l(bt,[2,25]),{26:73,27:39,28:40,47:[1,74],77:ht,78:dt,79:_t,80:J},{46:75,48:54,49:55,50:Pt,51:kt,52:Ot,53:st,54:ae,55:Yt},l(bt,[2,41]),{49:76,54:ae,55:Yt},l(Bt,[2,51],{48:77,50:Pt,51:kt,52:Ot,53:st}),l(zt,[2,52]),l(zt,[2,53]),l(zt,[2,54]),l(zt,[2,55]),l(ce,[2,56]),l(ce,[2,57]),l(bt,[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:ht,78:dt,79:_t},l(_e,[2,21]),l(_e,[2,22]),l(_e,[2,23]),{15:[1,86]},{24:[2,18]},l(he,[2,44]),{26:87,27:39,28:40,77:ht,78:dt,79:_t,80:J},{26:88,27:39,28:40,47:[1,89],77:ht,78:dt,79:_t,80:J},l(Bt,[2,50],{48:90,50:Pt,51:kt,52:Ot,53:st}),l(Bt,[2,49]),{27:91,77:ht,78:dt,79:_t},{40:92,44:ge},{26:94,27:39,28:40,77:ht,78:dt,79:_t,80:J},l(bt,[2,58],{47:[1,95]}),l(bt,[2,60],{47:[1,97],58:[1,96]}),l(bt,[2,64],{47:[1,98],61:[1,99]}),l(bt,[2,68],{47:[1,101],58:[1,100]}),l(bt,[2,72]),l(de,[2,10]),l(he,[2,46]),l(he,[2,45]),{26:102,27:39,28:40,77:ht,78:dt,79:_t,80:J},l(Bt,[2,48]),l(bt,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:ge},l(bt,[2,37]),l(bt,[2,59]),l(bt,[2,61]),l(bt,[2,62],{58:[1,106]}),l(bt,[2,65]),l(bt,[2,66],{47:[1,107]}),l(bt,[2,69]),l(bt,[2,70],{58:[1,108]}),l(he,[2,47]),{40:109,44:ge},l(bt,[2,35]),{41:[2,39]},l(bt,[2,63]),l(bt,[2,67]),l(bt,[2,71]),{41:[1,110]},l(bt,[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(Wt,Gt){if(!Gt.recoverable){var rt=new Error(Wt);throw rt.hash=Gt,rt}this.trace(Wt)},parse:function(Wt){var Gt=this,rt=[0],re=[],Mt=[null],qt=[],$t=this.table,At="",ne=0,tn=0,ye=0,Re=2,un=1,Ve=qt.slice.call(arguments,1),Oe=Object.create(this.lexer),ke={yy:{}};for(var Ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ke)&&(ke.yy[Ke]=this.yy[Ke]);Oe.setInput(Wt,ke.yy),ke.yy.lexer=Oe,ke.yy.parser=this,Oe.yylloc===void 0&&(Oe.yylloc={});var Ye=Oe.yylloc;qt.push(Ye);var Ge=Oe.options&&Oe.options.ranges;function Xe(){var Sn;return typeof(Sn=re.pop()||Oe.lex()||un)!="number"&&(Sn instanceof Array&&(Sn=(re=Sn).pop()),Sn=Gt.symbols_[Sn]||Sn),Sn}typeof ke.yy.parseError=="function"?this.parseError=ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var De,Un,Te,en,bn,Ir,xn,tr,cn,yn={};;){if(Te=rt[rt.length-1],this.defaultActions[Te]?en=this.defaultActions[Te]:(De==null&&(De=Xe()),en=$t[Te]&&$t[Te][De]),en===void 0||!en.length||!en[0]){var Ze="";for(Ir in cn=[],$t[Te])this.terminals_[Ir]&&Ir>Re&&cn.push("'"+this.terminals_[Ir]+"'");Ze=Oe.showPosition?"Parse error on line "+(ne+1)+`:
`+Oe.showPosition()+`
Expecting `+cn.join(", ")+", got '"+(this.terminals_[De]||De)+"'":"Parse error on line "+(ne+1)+": Unexpected "+(De==un?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(Ze,{text:Oe.match,token:this.terminals_[De]||De,line:Oe.yylineno,loc:Ye,expected:cn})}if(en[0]instanceof Array&&en.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Te+", token: "+De);switch(en[0]){case 1:rt.push(De),Mt.push(Oe.yytext),qt.push(Oe.yylloc),rt.push(en[1]),De=null,Un?(De=Un,Un=null):(tn=Oe.yyleng,At=Oe.yytext,ne=Oe.yylineno,Ye=Oe.yylloc,ye>0);break;case 2:if(xn=this.productions_[en[1]][1],yn.$=Mt[Mt.length-xn],yn._$={first_line:qt[qt.length-(xn||1)].first_line,last_line:qt[qt.length-1].last_line,first_column:qt[qt.length-(xn||1)].first_column,last_column:qt[qt.length-1].last_column},Ge&&(yn._$.range=[qt[qt.length-(xn||1)].range[0],qt[qt.length-1].range[1]]),(bn=this.performAction.apply(yn,[At,tn,ne,ke.yy,en[1],Mt,qt].concat(Ve)))!==void 0)return bn;xn&&(rt=rt.slice(0,-1*xn*2),Mt=Mt.slice(0,-1*xn),qt=qt.slice(0,-1*xn)),rt.push(this.productions_[en[1]][0]),Mt.push(yn.$),qt.push(yn._$),tr=$t[rt[rt.length-2]][rt[rt.length-1]],rt.push(tr);break;case 3:return!0}}return!0}},We={EOF:1,parseError:function(Wt,Gt){if(!this.yy.parser)throw new Error(Wt);this.yy.parser.parseError(Wt,Gt)},setInput:function(Wt,Gt){return this.yy=Gt||this.yy||{},this._input=Wt,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 Wt=this._input[0];return this.yytext+=Wt,this.yyleng++,this.offset++,this.match+=Wt,this.matched+=Wt,Wt.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),Wt},unput:function(Wt){var Gt=Wt.length,rt=Wt.split(/(?:\r\n?|\n)/g);this._input=Wt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Gt),this.offset-=Gt;var re=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 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:rt?(rt.length===re.length?this.yylloc.first_column:0)+re[re.length-rt.length].length-rt[0].length:this.yylloc.first_column-Gt},this.options.ranges&&(this.yylloc.range=[Mt[0],Mt[0]+this.yyleng-Gt]),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(Wt){this.unput(this.match.slice(Wt))},pastInput:function(){var Wt=this.matched.substr(0,this.matched.length-this.match.length);return(Wt.length>20?"...":"")+Wt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Wt=this.match;return Wt.length<20&&(Wt+=this._input.substr(0,20-Wt.length)),(Wt.substr(0,20)+(Wt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Wt=this.pastInput(),Gt=new Array(Wt.length+1).join("-");return Wt+this.upcomingInput()+`
`+Gt+"^"},test_match:function(Wt,Gt){var rt,re,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))),(re=Wt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:re?re[re.length-1].length-re[re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Wt[0].length},this.yytext+=Wt[0],this.match+=Wt[0],this.matches=Wt,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(Wt[0].length),this.matched+=Wt[0],rt=this.performAction.call(this,this.yy,this,Gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),rt)return rt;if(this._backtrack){for(var qt in Mt)this[qt]=Mt[qt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Wt,Gt,rt,re;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Mt=this._currentRules(),qt=0;qt<Mt.length;qt++)if((rt=this._input.match(this.rules[Mt[qt]]))&&(!Gt||rt[0].length>Gt[0].length)){if(Gt=rt,re=qt,this.options.backtrack_lexer){if((Wt=this.test_match(rt,Mt[qt]))!==!1)return Wt;if(this._backtrack){Gt=!1;continue}return!1}if(!this.options.flex)break}return Gt?(Wt=this.test_match(Gt,Mt[re]))!==!1&&Wt: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(Wt){this.conditionStack.push(Wt)},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(Wt){return(Wt=this.conditionStack.length-1-Math.abs(Wt||0))>=0?this.conditionStack[Wt]:"INITIAL"},pushState:function(Wt){this.begin(Wt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Wt,Gt,rt,re){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:case 12:case 19:break;case 11:return 15;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 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:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;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 oe(){this.yy={}}return It.lexer=We,oe.prototype=It,It.Parser=oe,new oe}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},5890:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(dt,_t,J,bt){for(J=J||{},bt=dt.length;bt--;J[dt[bt]]=_t);return J},_=[1,2],y=[1,5],x=[6,9,11,23,40],E=[1,17],A=[1,20],I=[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],K=[33,34,35,36],ut=[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(dt,_t,J,bt,Pt,kt,Ot){var st=kt.length-1;switch(Pt){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:kt[st-1].push(kt[st]),this.$=kt[st-1];break;case 5:case 6:case 16:case 23:case 24:case 25:case 34:this.$=kt[st];break;case 12:bt.addEntity(kt[st-4]),bt.addEntity(kt[st-2]),bt.addRelationship(kt[st-4],kt[st],kt[st-2],kt[st-3]);break;case 13:bt.addEntity(kt[st-3]),bt.addAttributes(kt[st-3],kt[st-1]);break;case 14:bt.addEntity(kt[st-2]);break;case 15:bt.addEntity(kt[st]);break;case 17:this.$=[kt[st]];break;case 18:kt[st].push(kt[st-1]),this.$=kt[st];break;case 19:this.$={attributeType:kt[st-1],attributeName:kt[st]};break;case 20:this.$={attributeType:kt[st-2],attributeName:kt[st-1],attributeKeyType:kt[st]};break;case 21:this.$={attributeType:kt[st-2],attributeName:kt[st-1],attributeComment:kt[st]};break;case 22:this.$={attributeType:kt[st-3],attributeName:kt[st-2],attributeKeyType:kt[st-1],attributeComment:kt[st]};break;case 26:this.$={cardA:kt[st],relType:kt[st-1],cardB:kt[st-2]};break;case 27:this.$=bt.Cardinality.ZERO_OR_ONE;break;case 28:this.$=bt.Cardinality.ZERO_OR_MORE;break;case 29:this.$=bt.Cardinality.ONE_OR_MORE;break;case 30:this.$=bt.Cardinality.ONLY_ONE;break;case 31:this.$=bt.Identification.NON_IDENTIFYING;break;case 32:this.$=bt.Identification.IDENTIFYING;break;case 33:this.$=kt[st].replace(/"/g,"");break;case 35:bt.parseDirective("%%{","open_directive");break;case 36:bt.parseDirective(kt[st],"type_directive");break;case 37:kt[st]=kt[st].trim().replace(/'/g,'"'),bt.parseDirective(kt[st],"arg_directive");break;case 38:bt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:_,7:3,12:4,40:y},{1:[3]},l(x,[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:E,40:y},{1:[2,2]},{14:18,15:[1,19],43:A},l([15,43],[2,36]),l(x,[2,8],{1:[2,1]}),l(x,[2,4]),{7:15,10:21,12:4,17:16,23:E,40:y},l(x,[2,6]),l(x,[2,7]),l(x,[2,11]),l(x,[2,15],{18:22,31:24,20:[1,23],33:I,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(x,[2,5]),{17:32,23:E},{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(x,[2,14]),{21:44,22:[2,17],24:35,25:36,29:H},{26:45,29:[1,46]},{29:[2,23]},{31:47,33:I,34:N,35:P,36:W},l(K,[2,31]),l(K,[2,32]),{11:[1,48]},{19:49,23:[1,51],39:[1,50]},l(x,[2,13]),{22:[2,18]},l(ut,[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(x,[2,12]),l(x,[2,33]),l(x,[2,34]),l(ut,[2,20],{28:[1,55]}),l(ut,[2,21]),l([22,28,29],[2,25]),l(ut,[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(dt,_t){if(!_t.recoverable){var J=new Error(dt);throw J.hash=_t,J}this.trace(dt)},parse:function(dt){var _t=this,J=[0],bt=[],Pt=[null],kt=[],Ot=this.table,st="",ae=0,Yt=0,_e=0,pe=2,de=1,Bt=kt.slice.call(arguments,1),zt=Object.create(this.lexer),ce={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(ce.yy[he]=this.yy[he]);zt.setInput(dt,ce.yy),ce.yy.lexer=zt,ce.yy.parser=this,zt.yylloc===void 0&&(zt.yylloc={});var ge=zt.yylloc;kt.push(ge);var It=zt.options&&zt.options.ranges;function We(){var ye;return typeof(ye=bt.pop()||zt.lex()||de)!="number"&&(ye instanceof Array&&(ye=(bt=ye).pop()),ye=_t.symbols_[ye]||ye),ye}typeof ce.yy.parseError=="function"?this.parseError=ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var oe,Wt,Gt,rt,re,Mt,qt,$t,At,ne={};;){if(Gt=J[J.length-1],this.defaultActions[Gt]?rt=this.defaultActions[Gt]:(oe==null&&(oe=We()),rt=Ot[Gt]&&Ot[Gt][oe]),rt===void 0||!rt.length||!rt[0]){var tn="";for(Mt in At=[],Ot[Gt])this.terminals_[Mt]&&Mt>pe&&At.push("'"+this.terminals_[Mt]+"'");tn=zt.showPosition?"Parse error on line "+(ae+1)+`:
`+zt.showPosition()+`
Expecting `+At.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":"Parse error on line "+(ae+1)+": Unexpected "+(oe==de?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(tn,{text:zt.match,token:this.terminals_[oe]||oe,line:zt.yylineno,loc:ge,expected:At})}if(rt[0]instanceof Array&&rt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Gt+", token: "+oe);switch(rt[0]){case 1:J.push(oe),Pt.push(zt.yytext),kt.push(zt.yylloc),J.push(rt[1]),oe=null,Wt?(oe=Wt,Wt=null):(Yt=zt.yyleng,st=zt.yytext,ae=zt.yylineno,ge=zt.yylloc,_e>0);break;case 2:if(qt=this.productions_[rt[1]][1],ne.$=Pt[Pt.length-qt],ne._$={first_line:kt[kt.length-(qt||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(qt||1)].first_column,last_column:kt[kt.length-1].last_column},It&&(ne._$.range=[kt[kt.length-(qt||1)].range[0],kt[kt.length-1].range[1]]),(re=this.performAction.apply(ne,[st,Yt,ae,ce.yy,rt[1],Pt,kt].concat(Bt)))!==void 0)return re;qt&&(J=J.slice(0,-1*qt*2),Pt=Pt.slice(0,-1*qt),kt=kt.slice(0,-1*qt)),J.push(this.productions_[rt[1]][0]),Pt.push(ne.$),kt.push(ne._$),$t=Ot[J[J.length-2]][J[J.length-1]],J.push($t);break;case 3:return!0}}return!0}},Tt={EOF:1,parseError:function(dt,_t){if(!this.yy.parser)throw new Error(dt);this.yy.parser.parseError(dt,_t)},setInput:function(dt,_t){return this.yy=_t||this.yy||{},this._input=dt,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 dt=this._input[0];return this.yytext+=dt,this.yyleng++,this.offset++,this.match+=dt,this.matched+=dt,dt.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),dt},unput:function(dt){var _t=dt.length,J=dt.split(/(?:\r\n?|\n)/g);this._input=dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_t),this.offset-=_t;var bt=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),J.length-1&&(this.yylineno-=J.length-1);var Pt=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:J?(J.length===bt.length?this.yylloc.first_column:0)+bt[bt.length-J.length].length-J[0].length:this.yylloc.first_column-_t},this.options.ranges&&(this.yylloc.range=[Pt[0],Pt[0]+this.yyleng-_t]),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(dt){this.unput(this.match.slice(dt))},pastInput:function(){var dt=this.matched.substr(0,this.matched.length-this.match.length);return(dt.length>20?"...":"")+dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var dt=this.match;return dt.length<20&&(dt+=this._input.substr(0,20-dt.length)),(dt.substr(0,20)+(dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var dt=this.pastInput(),_t=new Array(dt.length+1).join("-");return dt+this.upcomingInput()+`
`+_t+"^"},test_match:function(dt,_t){var J,bt,Pt;if(this.options.backtrack_lexer&&(Pt={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&&(Pt.yylloc.range=this.yylloc.range.slice(0))),(bt=dt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=bt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:bt?bt[bt.length-1].length-bt[bt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+dt[0].length},this.yytext+=dt[0],this.match+=dt[0],this.matches=dt,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(dt[0].length),this.matched+=dt[0],J=this.performAction.call(this,this.yy,this,_t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),J)return J;if(this._backtrack){for(var kt in Pt)this[kt]=Pt[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var dt,_t,J,bt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Pt=this._currentRules(),kt=0;kt<Pt.length;kt++)if((J=this._input.match(this.rules[Pt[kt]]))&&(!_t||J[0].length>_t[0].length)){if(_t=J,bt=kt,this.options.backtrack_lexer){if((dt=this.test_match(J,Pt[kt]))!==!1)return dt;if(this._backtrack){_t=!1;continue}return!1}if(!this.options.flex)break}return _t?(dt=this.test_match(_t,Pt[bt]))!==!1&&dt: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(dt){this.conditionStack.push(dt)},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(dt){return(dt=this.conditionStack.length-1-Math.abs(dt||0))>=0?this.conditionStack[dt]:"INITIAL"},pushState:function(dt){this.begin(dt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(dt,_t,J,bt){switch(J){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:case 8:case 13:case 17:break;case 7:return 11;case 9:return 9;case 10:return 39;case 11:return 4;case 12:return this.begin("block"),20;case 14:return 30;case 15:return 29;case 16:return 28;case 18:return this.popState(),22;case 19:case 32:return _t.yytext[0];case 20:case 24:return 33;case 21:case 25:return 34;case 22:case 26:return 35;case 23:return 36;case 27:case 29:case 30:return 37;case 28:return 38;case 31:return 23;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 ht(){this.yy={}}return tt.lexer=Tt,ht.prototype=tt,tt.Parser=ht,new ht}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},3602:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(nn,Zn,Mn,Be){for(Mn=Mn||{},Be=nn.length;Be--;Mn[nn[Be]]=Zn);return Mn},_=[1,9],y=[1,7],x=[1,6],E=[1,8],A=[1,20,21,22,23,38,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],I=[2,10],N=[1,20],P=[1,21],W=[1,22],H=[1,23],V=[1,30],X=[1,59],K=[1,45],ut=[1,49],tt=[1,33],Tt=[1,34],ht=[1,35],dt=[1,36],_t=[1,37],J=[1,53],bt=[1,60],Pt=[1,48],kt=[1,50],Ot=[1,52],st=[1,56],ae=[1,57],Yt=[1,38],_e=[1,39],pe=[1,40],de=[1,41],Bt=[1,58],zt=[1,47],ce=[1,51],he=[1,54],ge=[1,55],It=[1,46],We=[1,63],oe=[1,68],Wt=[1,20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Gt=[1,72],rt=[1,71],re=[1,73],Mt=[20,21,23,74,75],qt=[1,94],$t=[1,99],At=[1,102],ne=[1,103],tn=[1,96],ye=[1,101],Re=[1,104],un=[1,97],Ve=[1,109],Oe=[1,108],ke=[1,98],Ke=[1,100],Ye=[1,105],Ge=[1,106],Xe=[1,107],De=[1,110],Un=[20,21,22,23,74,75],Te=[20,21,22,23,48,74,75],en=[20,21,22,23,40,47,48,50,52,54,56,58,59,60,62,64,66,67,69,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],bn=[20,21,23],Ir=[20,21,23,47,59,60,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],xn=[1,12,20,21,22,23,24,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],tr=[47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],cn=[1,143],yn=[1,151],Ze=[1,152],Sn=[1,153],Tn=[1,154],zn=[1,138],Wn=[1,139],Dr=[1,135],En=[1,146],qn=[1,147],Pn=[1,148],Gn=[1,149],Xn=[1,150],er=[1,155],Nn=[1,156],Ln=[1,141],ln=[1,144],Yn=[1,140],vn=[1,137],ii=[20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],yr=[1,159],Ji=[20,21,22,23,26,47,59,60,84,98,99,102,104,105,115,116,117,118,119,120],In=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,60,61,63,65,66,68,70,74,75,79,80,81,82,83,84,85,88,98,99,102,104,105,106,107,115,116,117,118,119,120],ko=[12,21,22,24],ga=[22,99],ai=[1,242],Rr=[1,237],zr=[1,238],Xr=[1,246],Jr=[1,243],Nr=[1,240],Kr=[1,239],Fr=[1,241],Li=[1,244],hi=[1,245],rr=[1,247],$r=[1,265],ya=[20,21,23,99],ti=[20,21,22,23,59,60,79,95,98,99,102,103,104,105,106],ma={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,VERTEX_WITH_PROPS_START:58,ALPHA:59,COLON:60,PIPE:61,CYLINDERSTART:62,CYLINDEREND:63,DIAMOND_START:64,DIAMOND_STOP:65,TAGEND:66,TRAPSTART:67,TRAPEND:68,INVTRAPSTART:69,INVTRAPEND:70,linkStatement:71,arrowText:72,TESTSTR:73,START_LINK:74,LINK:75,textToken:76,STR:77,keywords:78,STYLE:79,LINKSTYLE:80,CLASSDEF:81,CLASS:82,CLICK:83,DOWN:84,UP:85,textNoTags:86,textNoTagsToken:87,DEFAULT:88,stylesOpt:89,alphaNum:90,CALLBACKNAME:91,CALLBACKARGS:92,HREF:93,LINK_TARGET:94,HEX:95,numList:96,INTERPOLATE:97,NUM:98,COMMA:99,style:100,styleComponent:101,MINUS:102,UNIT:103,BRKT:104,DOT:105,PCT:106,TAGSTART:107,alphaNumToken:108,idStringToken:109,alphaNumStatement: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:120,graphCodeTokens:121,ARROW_CROSS:122,ARROW_POINT:123,ARROW_CIRCLE:124,ARROW_OPEN:125,QUOTE:126,$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:"VERTEX_WITH_PROPS_START",59:"ALPHA",60:"COLON",61:"PIPE",62:"CYLINDERSTART",63:"CYLINDEREND",64:"DIAMOND_START",65:"DIAMOND_STOP",66:"TAGEND",67:"TRAPSTART",68:"TRAPEND",69:"INVTRAPSTART",70:"INVTRAPEND",73:"TESTSTR",74:"START_LINK",75:"LINK",77:"STR",79:"STYLE",80:"LINKSTYLE",81:"CLASSDEF",82:"CLASS",83:"CLICK",84:"DOWN",85:"UP",88:"DEFAULT",91:"CALLBACKNAME",92:"CALLBACKARGS",93:"HREF",94:"LINK_TARGET",95:"HEX",97:"INTERPOLATE",98:"NUM",99:"COMMA",102:"MINUS",103:"UNIT",104:"BRKT",105:"DOT",106:"PCT",107:"TAGSTART",111:"direction_tb",112:"direction_bt",113:"direction_rl",114:"direction_lr",115:"PUNCTUATION",116:"UNICODE_TEXT",117:"PLUS",118:"EQUALS",119:"MULT",120:"UNDERSCORE",122:"ARROW_CROSS",123:"ARROW_POINT",124:"ARROW_CIRCLE",125:"ARROW_OPEN",126:"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,8],[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],[71,1],[72,3],[39,1],[39,2],[39,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[86,1],[86,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],[96,1],[96,3],[89,1],[89,3],[100,1],[100,2],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[87,1],[87,1],[87,1],[87,1],[49,1],[49,2],[90,1],[90,2],[110,1],[110,1],[110,1],[110,1],[43,1],[43,1],[43,1],[43,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],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1]],performAction:function(nn,Zn,Mn,Be,Qn,gt,Zr){var Xt=gt.length-1;switch(Qn){case 5:Be.parseDirective("%%{","open_directive");break;case 6:Be.parseDirective(gt[Xt],"type_directive");break;case 7:gt[Xt]=gt[Xt].trim().replace(/'/g,'"'),Be.parseDirective(gt[Xt],"arg_directive");break;case 8:Be.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:gt[Xt]!==[]&&gt[Xt-1].push(gt[Xt]),this.$=gt[Xt-1];break;case 12:case 78:case 80:case 92:case 148:case 150:case 151:case 74:case 146:this.$=gt[Xt];break;case 19:Be.setDirection("TB"),this.$="TB";break;case 20:Be.setDirection(gt[Xt-1]),this.$=gt[Xt-1];break;case 35:this.$=gt[Xt-1].nodes;break;case 41:this.$=Be.addSubGraph(gt[Xt-6],gt[Xt-1],gt[Xt-4]);break;case 42:this.$=Be.addSubGraph(gt[Xt-3],gt[Xt-1],gt[Xt-3]);break;case 43:this.$=Be.addSubGraph(void 0,gt[Xt-1],void 0);break;case 48:Be.addLink(gt[Xt-2].stmt,gt[Xt],gt[Xt-1]),this.$={stmt:gt[Xt],nodes:gt[Xt].concat(gt[Xt-2].nodes)};break;case 49:Be.addLink(gt[Xt-3].stmt,gt[Xt-1],gt[Xt-2]),this.$={stmt:gt[Xt-1],nodes:gt[Xt-1].concat(gt[Xt-3].nodes)};break;case 50:this.$={stmt:gt[Xt-1],nodes:gt[Xt-1]};break;case 51:this.$={stmt:gt[Xt],nodes:gt[Xt]};break;case 52:case 119:case 121:this.$=[gt[Xt]];break;case 53:this.$=gt[Xt-4].concat(gt[Xt]);break;case 54:this.$=[gt[Xt-2]],Be.setClass(gt[Xt-2],gt[Xt]);break;case 55:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"square");break;case 56:this.$=gt[Xt-5],Be.addVertex(gt[Xt-5],gt[Xt-2],"circle");break;case 57:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"ellipse");break;case 58:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"stadium");break;case 59:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"subroutine");break;case 60:this.$=gt[Xt-7],Be.addVertex(gt[Xt-7],gt[Xt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[gt[Xt-5],gt[Xt-3]]]));break;case 61:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"cylinder");break;case 62:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"round");break;case 63:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"diamond");break;case 64:this.$=gt[Xt-5],Be.addVertex(gt[Xt-5],gt[Xt-2],"hexagon");break;case 65:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"odd");break;case 66:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"trapezoid");break;case 67:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"inv_trapezoid");break;case 68:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"lean_right");break;case 69:this.$=gt[Xt-3],Be.addVertex(gt[Xt-3],gt[Xt-1],"lean_left");break;case 70:this.$=gt[Xt],Be.addVertex(gt[Xt]);break;case 71:gt[Xt-1].text=gt[Xt],this.$=gt[Xt-1];break;case 72:case 73:gt[Xt-2].text=gt[Xt-1],this.$=gt[Xt-2];break;case 75:var Ii=Be.destructLink(gt[Xt],gt[Xt-2]);this.$={type:Ii.type,stroke:Ii.stroke,length:Ii.length,text:gt[Xt-1]};break;case 76:Ii=Be.destructLink(gt[Xt]),this.$={type:Ii.type,stroke:Ii.stroke,length:Ii.length};break;case 77:this.$=gt[Xt-1];break;case 79:case 93:case 149:case 147:this.$=gt[Xt-1]+""+gt[Xt];break;case 94:case 95:this.$=gt[Xt-4],Be.addClass(gt[Xt-2],gt[Xt]);break;case 96:this.$=gt[Xt-4],Be.setClass(gt[Xt-2],gt[Xt]);break;case 97:case 105:this.$=gt[Xt-1],Be.setClickEvent(gt[Xt-1],gt[Xt]);break;case 98:case 106:this.$=gt[Xt-3],Be.setClickEvent(gt[Xt-3],gt[Xt-2]),Be.setTooltip(gt[Xt-3],gt[Xt]);break;case 99:this.$=gt[Xt-2],Be.setClickEvent(gt[Xt-2],gt[Xt-1],gt[Xt]);break;case 100:this.$=gt[Xt-4],Be.setClickEvent(gt[Xt-4],gt[Xt-3],gt[Xt-2]),Be.setTooltip(gt[Xt-4],gt[Xt]);break;case 101:case 107:this.$=gt[Xt-1],Be.setLink(gt[Xt-1],gt[Xt]);break;case 102:case 108:this.$=gt[Xt-3],Be.setLink(gt[Xt-3],gt[Xt-2]),Be.setTooltip(gt[Xt-3],gt[Xt]);break;case 103:case 109:this.$=gt[Xt-3],Be.setLink(gt[Xt-3],gt[Xt-2],gt[Xt]);break;case 104:case 110:this.$=gt[Xt-5],Be.setLink(gt[Xt-5],gt[Xt-4],gt[Xt]),Be.setTooltip(gt[Xt-5],gt[Xt-2]);break;case 111:this.$=gt[Xt-4],Be.addVertex(gt[Xt-2],void 0,void 0,gt[Xt]);break;case 112:case 114:this.$=gt[Xt-4],Be.updateLink(gt[Xt-2],gt[Xt]);break;case 113:this.$=gt[Xt-4],Be.updateLink([gt[Xt-2]],gt[Xt]);break;case 115:this.$=gt[Xt-8],Be.updateLinkInterpolate([gt[Xt-6]],gt[Xt-2]),Be.updateLink([gt[Xt-6]],gt[Xt]);break;case 116:this.$=gt[Xt-8],Be.updateLinkInterpolate(gt[Xt-6],gt[Xt-2]),Be.updateLink(gt[Xt-6],gt[Xt]);break;case 117:this.$=gt[Xt-6],Be.updateLinkInterpolate([gt[Xt-4]],gt[Xt]);break;case 118:this.$=gt[Xt-6],Be.updateLinkInterpolate(gt[Xt-4],gt[Xt]);break;case 120:case 122:gt[Xt-2].push(gt[Xt]),this.$=gt[Xt-2];break;case 124:this.$=gt[Xt-1]+gt[Xt];break;case 152:this.$="v";break;case 153:this.$="-";break;case 154:this.$={stmt:"dir",value:"TB"};break;case 155:this.$={stmt:"dir",value:"BT"};break;case 156:this.$={stmt:"dir",value:"RL"};break;case 157:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:_,16:4,21:y,22:x,24:E},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:_,16:4,21:y,22:x,24:E},l(A,I,{17:11}),{7:12,13:[1,13]},{16:14,21:y,22:x,24:E},{16:15,21:y,22:x,24:E},{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,59:K,60:ut,79:tt,80:Tt,81:ht,82:dt,83:_t,84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,109:44,111:Yt,112:_e,113:pe,114:de,115:Bt,116:zt,117:ce,118:he,119:ge,120:It},{8:61,10:[1,62],15:We},l([10,15],[2,6]),l(A,[2,17]),l(A,[2,18]),l(A,[2,19]),{20:[1,65],21:[1,66],22:oe,27:64,30:67},l(Wt,[2,11]),l(Wt,[2,12]),l(Wt,[2,13]),l(Wt,[2,14]),l(Wt,[2,15]),l(Wt,[2,16]),{9:69,20:Gt,21:rt,23:re,44:70,71:74,74:[1,75],75:[1,76]},{9:77,20:Gt,21:rt,23:re},{9:78,20:Gt,21:rt,23:re},{9:79,20:Gt,21:rt,23:re},{9:80,20:Gt,21:rt,23:re},{9:81,20:Gt,21:rt,23:re},{9:83,20:Gt,21:rt,22:[1,82],23:re},l(Wt,[2,44]),l(Mt,[2,51],{30:84,22:oe}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:qt,47:$t,59:At,60:ne,77:[1,92],84:tn,90:91,91:[1,89],93:[1,90],98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:93,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(Wt,[2,154]),l(Wt,[2,155]),l(Wt,[2,156]),l(Wt,[2,157]),l(Un,[2,52],{48:[1,111]}),l(Te,[2,70],{109:123,40:[1,112],47:X,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],59:K,60:ut,62:[1,118],64:[1,119],66:[1,120],67:[1,121],69:[1,122],84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,115:Bt,116:zt,117:ce,118:he,119:ge,120:It}),l(en,[2,146]),l(en,[2,171]),l(en,[2,172]),l(en,[2,173]),l(en,[2,174]),l(en,[2,175]),l(en,[2,176]),l(en,[2,177]),l(en,[2,178]),l(en,[2,179]),l(en,[2,180]),l(en,[2,181]),l(en,[2,182]),l(en,[2,183]),l(en,[2,184]),l(en,[2,185]),l(en,[2,186]),{9:124,20:Gt,21:rt,23:re},{11:125,14:[1,126]},l(bn,[2,8]),l(A,[2,20]),l(A,[2,26]),l(A,[2,27]),{21:[1,127]},l(Ir,[2,34],{30:128,22:oe}),l(Wt,[2,35]),{45:129,46:42,47:X,49:43,59:K,60:ut,84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,109:44,115:Bt,116:zt,117:ce,118:he,119:ge,120:It},l(xn,[2,45]),l(xn,[2,46]),l(xn,[2,47]),l(tr,[2,74],{72:130,61:[1,132],73:[1,131]}),{22:cn,24:yn,26:Ze,38:Sn,39:133,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l([47,59,60,61,73,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,76]),l(Wt,[2,36]),l(Wt,[2,37]),l(Wt,[2,38]),l(Wt,[2,39]),l(Wt,[2,40]),{22:cn,24:yn,26:Ze,38:Sn,39:157,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(ii,I,{17:158}),l(Mt,[2,50],{47:yr}),{26:qt,47:$t,59:At,60:ne,84:tn,90:160,95:[1,161],98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:93,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{88:[1,162],96:163,98:[1,164]},{26:qt,47:$t,59:At,60:ne,84:tn,88:[1,165],90:166,98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:93,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{26:qt,47:$t,59:At,60:ne,84:tn,90:167,98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:93,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(bn,[2,97],{22:[1,168],92:[1,169]}),l(bn,[2,101],{22:[1,170]}),l(bn,[2,105],{108:95,110:172,22:[1,171],26:qt,47:$t,59:At,60:ne,84:tn,98:ye,99:Re,102:un,104:Ve,105:Oe,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De}),l(bn,[2,107],{22:[1,173]}),l(Ji,[2,148]),l(Ji,[2,150]),l(Ji,[2,151]),l(Ji,[2,152]),l(Ji,[2,153]),l(In,[2,158]),l(In,[2,159]),l(In,[2,160]),l(In,[2,161]),l(In,[2,162]),l(In,[2,163]),l(In,[2,164]),l(In,[2,165]),l(In,[2,166]),l(In,[2,167]),l(In,[2,168]),l(In,[2,169]),l(In,[2,170]),{47:X,49:174,59:K,60:ut,84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,109:44,115:Bt,116:zt,117:ce,118:he,119:ge,120:It},{22:cn,24:yn,26:Ze,38:Sn,39:175,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:177,42:Tn,47:$t,50:[1,176],59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:178,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:179,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:180,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{59:[1,181]},{22:cn,24:yn,26:Ze,38:Sn,39:182,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:183,42:Tn,47:$t,59:At,60:ne,64:[1,184],66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:185,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:186,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:187,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(en,[2,147]),l(ko,[2,3]),{8:188,15:We},{15:[2,7]},l(A,[2,28]),l(Ir,[2,33]),l(Mt,[2,48],{30:189,22:oe}),l(tr,[2,71],{22:[1,190]}),{22:[1,191]},{22:cn,24:yn,26:Ze,38:Sn,39:192,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,75:[1,193],76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(In,[2,78]),l(In,[2,80]),l(In,[2,136]),l(In,[2,137]),l(In,[2,138]),l(In,[2,139]),l(In,[2,140]),l(In,[2,141]),l(In,[2,142]),l(In,[2,143]),l(In,[2,144]),l(In,[2,145]),l(In,[2,81]),l(In,[2,82]),l(In,[2,83]),l(In,[2,84]),l(In,[2,85]),l(In,[2,86]),l(In,[2,87]),l(In,[2,88]),l(In,[2,89]),l(In,[2,90]),l(In,[2,91]),{9:196,20:Gt,21:rt,22:cn,23:re,24:yn,26:Ze,38:Sn,40:[1,195],42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{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,197],43:31,45:32,46:42,47:X,49:43,59:K,60:ut,79:tt,80:Tt,81:ht,82:dt,83:_t,84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,109:44,111:Yt,112:_e,113:pe,114:de,115:Bt,116:zt,117:ce,118:he,119:ge,120:It},{22:oe,30:198},{22:[1,199],26:qt,47:$t,59:At,60:ne,84:tn,98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:172,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:[1,200]},{22:[1,201]},{22:[1,202],99:[1,203]},l(ga,[2,119]),{22:[1,204]},{22:[1,205],26:qt,47:$t,59:At,60:ne,84:tn,98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:172,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:[1,206],26:qt,47:$t,59:At,60:ne,84:tn,98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:172,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{77:[1,207]},l(bn,[2,99],{22:[1,208]}),{77:[1,209],94:[1,210]},{77:[1,211]},l(Ji,[2,149]),{77:[1,212],94:[1,213]},l(Un,[2,54],{109:123,47:X,59:K,60:ut,84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,115:Bt,116:zt,117:ce,118:he,119:ge,120:It}),{22:cn,24:yn,26:Ze,38:Sn,41:[1,214],42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:215,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,51:[1,216],59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,53:[1,217],59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,55:[1,218],59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,57:[1,219],59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{60:[1,220]},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,59:At,60:ne,63:[1,221],66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,59:At,60:ne,65:[1,222],66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,39:223,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,41:[1,224],42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,59:At,60:ne,66:zn,68:[1,225],70:[1,226],74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,59:At,60:ne,66:zn,68:[1,228],70:[1,227],74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{9:229,20:Gt,21:rt,23:re},l(Mt,[2,49],{47:yr}),l(tr,[2,73]),l(tr,[2,72]),{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,59:At,60:ne,61:[1,230],66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(tr,[2,75]),l(In,[2,79]),{22:cn,24:yn,26:Ze,38:Sn,39:231,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(ii,I,{17:232}),l(Wt,[2,43]),{46:233,47:X,49:43,59:K,60:ut,84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,109:44,115:Bt,116:zt,117:ce,118:he,119:ge,120:It},{22:ai,59:Rr,60:zr,79:Xr,89:234,95:Jr,98:Nr,100:235,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},{22:ai,59:Rr,60:zr,79:Xr,89:248,95:Jr,98:Nr,100:235,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},{22:ai,59:Rr,60:zr,79:Xr,89:249,95:Jr,97:[1,250],98:Nr,100:235,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},{22:ai,59:Rr,60:zr,79:Xr,89:251,95:Jr,97:[1,252],98:Nr,100:235,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},{98:[1,253]},{22:ai,59:Rr,60:zr,79:Xr,89:254,95:Jr,98:Nr,100:235,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},{22:ai,59:Rr,60:zr,79:Xr,89:255,95:Jr,98:Nr,100:235,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},{26:qt,47:$t,59:At,60:ne,84:tn,90:256,98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:93,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(bn,[2,98]),{77:[1,257]},l(bn,[2,102],{22:[1,258]}),l(bn,[2,103]),l(bn,[2,106]),l(bn,[2,108],{22:[1,259]}),l(bn,[2,109]),l(Te,[2,55]),{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,51:[1,260],59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(Te,[2,62]),l(Te,[2,57]),l(Te,[2,58]),l(Te,[2,59]),{59:[1,261]},l(Te,[2,61]),l(Te,[2,63]),{22:cn,24:yn,26:Ze,38:Sn,42:Tn,47:$t,59:At,60:ne,65:[1,262],66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(Te,[2,65]),l(Te,[2,66]),l(Te,[2,68]),l(Te,[2,67]),l(Te,[2,69]),l(ko,[2,4]),l([22,47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,77]),{22:cn,24:yn,26:Ze,38:Sn,41:[1,263],42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{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,264],43:31,45:32,46:42,47:X,49:43,59:K,60:ut,79:tt,80:Tt,81:ht,82:dt,83:_t,84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,109:44,111:Yt,112:_e,113:pe,114:de,115:Bt,116:zt,117:ce,118:he,119:ge,120:It},l(Un,[2,53]),l(bn,[2,111],{99:$r}),l(ya,[2,121],{101:266,22:ai,59:Rr,60:zr,79:Xr,95:Jr,98:Nr,102:Kr,103:Fr,104:Li,105:hi,106:rr}),l(ti,[2,123]),l(ti,[2,125]),l(ti,[2,126]),l(ti,[2,127]),l(ti,[2,128]),l(ti,[2,129]),l(ti,[2,130]),l(ti,[2,131]),l(ti,[2,132]),l(ti,[2,133]),l(ti,[2,134]),l(ti,[2,135]),l(bn,[2,112],{99:$r}),l(bn,[2,113],{99:$r}),{22:[1,267]},l(bn,[2,114],{99:$r}),{22:[1,268]},l(ga,[2,120]),l(bn,[2,94],{99:$r}),l(bn,[2,95],{99:$r}),l(bn,[2,96],{108:95,110:172,26:qt,47:$t,59:At,60:ne,84:tn,98:ye,99:Re,102:un,104:Ve,105:Oe,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De}),l(bn,[2,100]),{94:[1,269]},{94:[1,270]},{51:[1,271]},{61:[1,272]},{65:[1,273]},{9:274,20:Gt,21:rt,23:re},l(Wt,[2,42]),{22:ai,59:Rr,60:zr,79:Xr,95:Jr,98:Nr,100:275,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},l(ti,[2,124]),{26:qt,47:$t,59:At,60:ne,84:tn,90:276,98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:93,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{26:qt,47:$t,59:At,60:ne,84:tn,90:277,98:ye,99:Re,102:un,104:Ve,105:Oe,108:95,110:93,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(bn,[2,104]),l(bn,[2,110]),l(Te,[2,56]),{22:cn,24:yn,26:Ze,38:Sn,39:278,42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:134,77:Dr,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},l(Te,[2,64]),l(ii,I,{17:279}),l(ya,[2,122],{101:266,22:ai,59:Rr,60:zr,79:Xr,95:Jr,98:Nr,102:Kr,103:Fr,104:Li,105:hi,106:rr}),l(bn,[2,117],{108:95,110:172,22:[1,280],26:qt,47:$t,59:At,60:ne,84:tn,98:ye,99:Re,102:un,104:Ve,105:Oe,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De}),l(bn,[2,118],{108:95,110:172,22:[1,281],26:qt,47:$t,59:At,60:ne,84:tn,98:ye,99:Re,102:un,104:Ve,105:Oe,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De}),{22:cn,24:yn,26:Ze,38:Sn,41:[1,282],42:Tn,47:$t,59:At,60:ne,66:zn,74:Wn,76:194,78:145,79:En,80:qn,81:Pn,82:Gn,83:Xn,84:er,85:Nn,87:136,88:Ln,98:ye,99:Re,102:ln,104:Ve,105:Oe,106:Yn,107:vn,108:142,115:ke,116:Ke,117:Ye,118:Ge,119:Xe,120:De},{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,283],43:31,45:32,46:42,47:X,49:43,59:K,60:ut,79:tt,80:Tt,81:ht,82:dt,83:_t,84:J,88:bt,98:Pt,99:kt,102:Ot,104:st,105:ae,109:44,111:Yt,112:_e,113:pe,114:de,115:Bt,116:zt,117:ce,118:he,119:ge,120:It},{22:ai,59:Rr,60:zr,79:Xr,89:284,95:Jr,98:Nr,100:235,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},{22:ai,59:Rr,60:zr,79:Xr,89:285,95:Jr,98:Nr,100:235,101:236,102:Kr,103:Fr,104:Li,105:hi,106:rr},l(Te,[2,60]),l(Wt,[2,41]),l(bn,[2,115],{99:$r}),l(bn,[2,116],{99:$r})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],126:[2,7]},parseError:function(nn,Zn){if(!Zn.recoverable){var Mn=new Error(nn);throw Mn.hash=Zn,Mn}this.trace(nn)},parse:function(nn){var Zn=this,Mn=[0],Be=[],Qn=[null],gt=[],Zr=this.table,Xt="",Ii=0,fa=0,qa=0,ho=2,To=1,Eo=gt.slice.call(arguments,1),Vr=Object.create(this.lexer),Ki={yy:{}};for(var An in this.yy)Object.prototype.hasOwnProperty.call(this.yy,An)&&(Ki.yy[An]=this.yy[An]);Vr.setInput(nn,Ki.yy),Ki.yy.lexer=Vr,Ki.yy.parser=this,Vr.yylloc===void 0&&(Vr.yylloc={});var Ba=Vr.yylloc;gt.push(Ba);var $a=Vr.options&&Vr.options.ranges;function mr(){var Rt;return typeof(Rt=Be.pop()||Vr.lex()||To)!="number"&&(Rt instanceof Array&&(Rt=(Be=Rt).pop()),Rt=Zn.symbols_[Rt]||Rt),Rt}typeof Ki.yy.parseError=="function"?this.parseError=Ki.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Sr,bi,ei,Wr,Hr,di,Qr,ta,Wi,Ri={};;){if(ei=Mn[Mn.length-1],this.defaultActions[ei]?Wr=this.defaultActions[ei]:(Sr==null&&(Sr=mr()),Wr=Zr[ei]&&Zr[ei][Sr]),Wr===void 0||!Wr.length||!Wr[0]){var fo="";for(di in Wi=[],Zr[ei])this.terminals_[di]&&di>ho&&Wi.push("'"+this.terminals_[di]+"'");fo=Vr.showPosition?"Parse error on line "+(Ii+1)+`:
`+Vr.showPosition()+`
Expecting `+Wi.join(", ")+", got '"+(this.terminals_[Sr]||Sr)+"'":"Parse error on line "+(Ii+1)+": Unexpected "+(Sr==To?"end of input":"'"+(this.terminals_[Sr]||Sr)+"'"),this.parseError(fo,{text:Vr.match,token:this.terminals_[Sr]||Sr,line:Vr.yylineno,loc:Ba,expected:Wi})}if(Wr[0]instanceof Array&&Wr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ei+", token: "+Sr);switch(Wr[0]){case 1:Mn.push(Sr),Qn.push(Vr.yytext),gt.push(Vr.yylloc),Mn.push(Wr[1]),Sr=null,bi?(Sr=bi,bi=null):(fa=Vr.yyleng,Xt=Vr.yytext,Ii=Vr.yylineno,Ba=Vr.yylloc,qa>0);break;case 2:if(Qr=this.productions_[Wr[1]][1],Ri.$=Qn[Qn.length-Qr],Ri._$={first_line:gt[gt.length-(Qr||1)].first_line,last_line:gt[gt.length-1].last_line,first_column:gt[gt.length-(Qr||1)].first_column,last_column:gt[gt.length-1].last_column},$a&&(Ri._$.range=[gt[gt.length-(Qr||1)].range[0],gt[gt.length-1].range[1]]),(Hr=this.performAction.apply(Ri,[Xt,fa,Ii,Ki.yy,Wr[1],Qn,gt].concat(Eo)))!==void 0)return Hr;Qr&&(Mn=Mn.slice(0,-1*Qr*2),Qn=Qn.slice(0,-1*Qr),gt=gt.slice(0,-1*Qr)),Mn.push(this.productions_[Wr[1]][0]),Qn.push(Ri.$),gt.push(Ri._$),ta=Zr[Mn[Mn.length-2]][Mn[Mn.length-1]],Mn.push(ta);break;case 3:return!0}}return!0}},lo={EOF:1,parseError:function(nn,Zn){if(!this.yy.parser)throw new Error(nn);this.yy.parser.parseError(nn,Zn)},setInput:function(nn,Zn){return this.yy=Zn||this.yy||{},this._input=nn,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 nn=this._input[0];return this.yytext+=nn,this.yyleng++,this.offset++,this.match+=nn,this.matched+=nn,nn.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),nn},unput:function(nn){var Zn=nn.length,Mn=nn.split(/(?:\r\n?|\n)/g);this._input=nn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zn),this.offset-=Zn;var Be=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),Mn.length-1&&(this.yylineno-=Mn.length-1);var Qn=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:Mn?(Mn.length===Be.length?this.yylloc.first_column:0)+Be[Be.length-Mn.length].length-Mn[0].length:this.yylloc.first_column-Zn},this.options.ranges&&(this.yylloc.range=[Qn[0],Qn[0]+this.yyleng-Zn]),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(nn){this.unput(this.match.slice(nn))},pastInput:function(){var nn=this.matched.substr(0,this.matched.length-this.match.length);return(nn.length>20?"...":"")+nn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var nn=this.match;return nn.length<20&&(nn+=this._input.substr(0,20-nn.length)),(nn.substr(0,20)+(nn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var nn=this.pastInput(),Zn=new Array(nn.length+1).join("-");return nn+this.upcomingInput()+`
`+Zn+"^"},test_match:function(nn,Zn){var Mn,Be,Qn;if(this.options.backtrack_lexer&&(Qn={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&&(Qn.yylloc.range=this.yylloc.range.slice(0))),(Be=nn[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Be?Be[Be.length-1].length-Be[Be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+nn[0].length},this.yytext+=nn[0],this.match+=nn[0],this.matches=nn,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(nn[0].length),this.matched+=nn[0],Mn=this.performAction.call(this,this.yy,this,Zn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Mn)return Mn;if(this._backtrack){for(var gt in Qn)this[gt]=Qn[gt];return!1}return!1},next:function(){if(this.done)return this.EOF;var nn,Zn,Mn,Be;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Qn=this._currentRules(),gt=0;gt<Qn.length;gt++)if((Mn=this._input.match(this.rules[Qn[gt]]))&&(!Zn||Mn[0].length>Zn[0].length)){if(Zn=Mn,Be=gt,this.options.backtrack_lexer){if((nn=this.test_match(Mn,Qn[gt]))!==!1)return nn;if(this._backtrack){Zn=!1;continue}return!1}if(!this.options.flex)break}return Zn?(nn=this.test_match(Zn,Qn[Be]))!==!1&&nn: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(nn){this.conditionStack.push(nn)},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(nn){return(nn=this.conditionStack.length-1-Math.abs(nn||0))>=0?this.conditionStack[nn]:"INITIAL"},pushState:function(nn){this.begin(nn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(nn,Zn,Mn,Be){switch(Mn){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:case 17:case 20:case 23:case 26:this.popState();break;case 9:return"STR";case 10:return 79;case 11:return 88;case 12:return 80;case 13:return 97;case 14:return 81;case 15:return 82;case 16:this.begin("href");break;case 18:return 93;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 91;case 24:return 92;case 25:this.begin("click");break;case 27:return 83;case 28:case 29:return nn.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 94;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 111;case 48:return 112;case 49:return 113;case 50:return 114;case 51:return 98;case 52:return 104;case 53:return 48;case 54:return 60;case 55:return 47;case 56:return 20;case 57:return 99;case 58:return 119;case 59:case 60:case 61:return 75;case 62:case 63:case 64:return 74;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 62;case 73:return 63;case 74:return 102;case 75:return 105;case 76:return 120;case 77:return 117;case 78:return 106;case 79:case 80:return 118;case 81:return 107;case 82:return 66;case 83:return 85;case 84:return"SEP";case 85:return 84;case 86:return 59;case 87:return 68;case 88:return 67;case 89:return 70;case 90:return 69;case 91:return 115;case 92:return 116;case 93:return 61;case 94:return 50;case 95:return 51;case 96:return 40;case 97:return 41;case 98:return 64;case 99:return 65;case 100:return 126;case 101:return 21;case 102:return 22;case 103: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,103],inclusive:!0}}};function fi(){this.yy={}}return ma.lexer=lo,fi.prototype=ma,ma.Parser=fi,new fi}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},9959:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(J,bt,Pt,kt){for(Pt=Pt||{},kt=J.length;kt--;Pt[J[kt]]=bt);return Pt},_=[1,3],y=[1,5],x=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],E=[1,15],A=[1,16],I=[1,17],N=[1,18],P=[1,19],W=[1,20],H=[1,21],V=[1,22],X=[1,23],K=[1,25],ut=[1,27],tt=[1,30],Tt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],ht={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,includes:17,todayMarker:18,title:19,section:20,clickStatement:21,taskTxt:22,taskData:23,openDirective:24,typeDirective:25,closeDirective:26,":":27,argDirective:28,click:29,callbackname:30,callbackargs:31,href:32,clickStatementDebug:33,open_directive:34,type_directive:35,arg_directive:36,close_directive:37,$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:"includes",18:"todayMarker",19:"title",20:"section",22:"taskTxt",23:"taskData",27:":",29:"click",30:"callbackname",31:"callbackargs",32:"href",34:"open_directive",35:"type_directive",36:"arg_directive",37:"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,1],[10,2],[10,1],[4,4],[4,6],[21,2],[21,3],[21,3],[21,4],[21,3],[21,4],[21,2],[33,2],[33,3],[33,3],[33,4],[33,3],[33,4],[33,2],[24,1],[25,1],[28,1],[26,1]],performAction:function(J,bt,Pt,kt,Ot,st,ae){var Yt=st.length-1;switch(Ot){case 2:return st[Yt-1];case 3:case 7:case 8:this.$=[];break;case 4:st[Yt-1].push(st[Yt]),this.$=st[Yt-1];break;case 5:case 6:this.$=st[Yt];break;case 9:kt.setDateFormat(st[Yt].substr(11)),this.$=st[Yt].substr(11);break;case 10:kt.enableInclusiveEndDates(),this.$=st[Yt].substr(18);break;case 11:kt.TopAxis(),this.$=st[Yt].substr(8);break;case 12:kt.setAxisFormat(st[Yt].substr(11)),this.$=st[Yt].substr(11);break;case 13:kt.setExcludes(st[Yt].substr(9)),this.$=st[Yt].substr(9);break;case 14:kt.setIncludes(st[Yt].substr(9)),this.$=st[Yt].substr(9);break;case 15:kt.setTodayMarker(st[Yt].substr(12)),this.$=st[Yt].substr(12);break;case 16:kt.setTitle(st[Yt].substr(6)),this.$=st[Yt].substr(6);break;case 17:kt.addSection(st[Yt].substr(8)),this.$=st[Yt].substr(8);break;case 19:kt.addTask(st[Yt-1],st[Yt]),this.$="task";break;case 23:this.$=st[Yt-1],kt.setClickEvent(st[Yt-1],st[Yt],null);break;case 24:this.$=st[Yt-2],kt.setClickEvent(st[Yt-2],st[Yt-1],st[Yt]);break;case 25:this.$=st[Yt-2],kt.setClickEvent(st[Yt-2],st[Yt-1],null),kt.setLink(st[Yt-2],st[Yt]);break;case 26:this.$=st[Yt-3],kt.setClickEvent(st[Yt-3],st[Yt-2],st[Yt-1]),kt.setLink(st[Yt-3],st[Yt]);break;case 27:this.$=st[Yt-2],kt.setClickEvent(st[Yt-2],st[Yt],null),kt.setLink(st[Yt-2],st[Yt-1]);break;case 28:this.$=st[Yt-3],kt.setClickEvent(st[Yt-3],st[Yt-1],st[Yt]),kt.setLink(st[Yt-3],st[Yt-2]);break;case 29:this.$=st[Yt-1],kt.setLink(st[Yt-1],st[Yt]);break;case 30:case 36:this.$=st[Yt-1]+" "+st[Yt];break;case 31:case 32:case 34:this.$=st[Yt-2]+" "+st[Yt-1]+" "+st[Yt];break;case 33:case 35:this.$=st[Yt-3]+" "+st[Yt-2]+" "+st[Yt-1]+" "+st[Yt];break;case 37:kt.parseDirective("%%{","open_directive");break;case 38:kt.parseDirective(st[Yt],"type_directive");break;case 39:st[Yt]=st[Yt].trim().replace(/'/g,'"'),kt.parseDirective(st[Yt],"arg_directive");break;case 40:kt.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:_,24:4,34:y},{1:[3]},{3:6,4:2,5:_,24:4,34:y},l(x,[2,3],{6:7}),{25:8,35:[1,9]},{35:[2,37]},{1:[2,1]},{4:26,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:E,13:A,14:I,15:N,16:P,17:W,18:H,19:V,20:X,21:24,22:K,24:4,29:ut,34:y},{26:28,27:[1,29],37:tt},l([27,37],[2,38]),l(x,[2,8],{1:[2,2]}),l(x,[2,4]),{4:26,10:31,12:E,13:A,14:I,15:N,16:P,17:W,18:H,19:V,20:X,21:24,22:K,24:4,29:ut,34:y},l(x,[2,6]),l(x,[2,7]),l(x,[2,9]),l(x,[2,10]),l(x,[2,11]),l(x,[2,12]),l(x,[2,13]),l(x,[2,14]),l(x,[2,15]),l(x,[2,16]),l(x,[2,17]),l(x,[2,18]),{23:[1,32]},l(x,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},l(x,[2,5]),l(x,[2,19]),l(x,[2,23],{31:[1,38],32:[1,39]}),l(x,[2,29],{30:[1,40]}),l(Tt,[2,21]),{26:41,37:tt},{37:[2,39]},l(x,[2,24],{32:[1,42]}),l(x,[2,25]),l(x,[2,27],{31:[1,43]}),{11:[1,44]},l(x,[2,26]),l(x,[2,28]),l(Tt,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(J,bt){if(!bt.recoverable){var Pt=new Error(J);throw Pt.hash=bt,Pt}this.trace(J)},parse:function(J){var bt=this,Pt=[0],kt=[],Ot=[null],st=[],ae=this.table,Yt="",_e=0,pe=0,de=0,Bt=2,zt=1,ce=st.slice.call(arguments,1),he=Object.create(this.lexer),ge={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(ge.yy[It]=this.yy[It]);he.setInput(J,ge.yy),ge.yy.lexer=he,ge.yy.parser=this,he.yylloc===void 0&&(he.yylloc={});var We=he.yylloc;st.push(We);var oe=he.options&&he.options.ranges;function Wt(){var un;return typeof(un=kt.pop()||he.lex()||zt)!="number"&&(un instanceof Array&&(un=(kt=un).pop()),un=bt.symbols_[un]||un),un}typeof ge.yy.parseError=="function"?this.parseError=ge.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Gt,rt,re,Mt,qt,$t,At,ne,tn,ye={};;){if(re=Pt[Pt.length-1],this.defaultActions[re]?Mt=this.defaultActions[re]:(Gt==null&&(Gt=Wt()),Mt=ae[re]&&ae[re][Gt]),Mt===void 0||!Mt.length||!Mt[0]){var Re="";for($t in tn=[],ae[re])this.terminals_[$t]&&$t>Bt&&tn.push("'"+this.terminals_[$t]+"'");Re=he.showPosition?"Parse error on line "+(_e+1)+`:
`+he.showPosition()+`
Expecting `+tn.join(", ")+", got '"+(this.terminals_[Gt]||Gt)+"'":"Parse error on line "+(_e+1)+": Unexpected "+(Gt==zt?"end of input":"'"+(this.terminals_[Gt]||Gt)+"'"),this.parseError(Re,{text:he.match,token:this.terminals_[Gt]||Gt,line:he.yylineno,loc:We,expected:tn})}if(Mt[0]instanceof Array&&Mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+re+", token: "+Gt);switch(Mt[0]){case 1:Pt.push(Gt),Ot.push(he.yytext),st.push(he.yylloc),Pt.push(Mt[1]),Gt=null,rt?(Gt=rt,rt=null):(pe=he.yyleng,Yt=he.yytext,_e=he.yylineno,We=he.yylloc,de>0);break;case 2:if(At=this.productions_[Mt[1]][1],ye.$=Ot[Ot.length-At],ye._$={first_line:st[st.length-(At||1)].first_line,last_line:st[st.length-1].last_line,first_column:st[st.length-(At||1)].first_column,last_column:st[st.length-1].last_column},oe&&(ye._$.range=[st[st.length-(At||1)].range[0],st[st.length-1].range[1]]),(qt=this.performAction.apply(ye,[Yt,pe,_e,ge.yy,Mt[1],Ot,st].concat(ce)))!==void 0)return qt;At&&(Pt=Pt.slice(0,-1*At*2),Ot=Ot.slice(0,-1*At),st=st.slice(0,-1*At)),Pt.push(this.productions_[Mt[1]][0]),Ot.push(ye.$),st.push(ye._$),ne=ae[Pt[Pt.length-2]][Pt[Pt.length-1]],Pt.push(ne);break;case 3:return!0}}return!0}},dt={EOF:1,parseError:function(J,bt){if(!this.yy.parser)throw new Error(J);this.yy.parser.parseError(J,bt)},setInput:function(J,bt){return this.yy=bt||this.yy||{},this._input=J,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 J=this._input[0];return this.yytext+=J,this.yyleng++,this.offset++,this.match+=J,this.matched+=J,J.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),J},unput:function(J){var bt=J.length,Pt=J.split(/(?:\r\n?|\n)/g);this._input=J+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-bt),this.offset-=bt;var kt=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),Pt.length-1&&(this.yylineno-=Pt.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:Pt?(Pt.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-Pt.length].length-Pt[0].length:this.yylloc.first_column-bt},this.options.ranges&&(this.yylloc.range=[Ot[0],Ot[0]+this.yyleng-bt]),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(J){this.unput(this.match.slice(J))},pastInput:function(){var J=this.matched.substr(0,this.matched.length-this.match.length);return(J.length>20?"...":"")+J.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var J=this.match;return J.length<20&&(J+=this._input.substr(0,20-J.length)),(J.substr(0,20)+(J.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var J=this.pastInput(),bt=new Array(J.length+1).join("-");return J+this.upcomingInput()+`
`+bt+"^"},test_match:function(J,bt){var Pt,kt,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))),(kt=J[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:kt?kt[kt.length-1].length-kt[kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+J[0].length},this.yytext+=J[0],this.match+=J[0],this.matches=J,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(J[0].length),this.matched+=J[0],Pt=this.performAction.call(this,this.yy,this,bt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Pt)return Pt;if(this._backtrack){for(var st in Ot)this[st]=Ot[st];return!1}return!1},next:function(){if(this.done)return this.EOF;var J,bt,Pt,kt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ot=this._currentRules(),st=0;st<Ot.length;st++)if((Pt=this._input.match(this.rules[Ot[st]]))&&(!bt||Pt[0].length>bt[0].length)){if(bt=Pt,kt=st,this.options.backtrack_lexer){if((J=this.test_match(Pt,Ot[st]))!==!1)return J;if(this._backtrack){bt=!1;continue}return!1}if(!this.options.flex)break}return bt?(J=this.test_match(bt,Ot[kt]))!==!1&&J: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(J){this.conditionStack.push(J)},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(J){return(J=this.conditionStack.length-1-Math.abs(J||0))>=0?this.conditionStack[J]:"INITIAL"},pushState:function(J){this.begin(J)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(J,bt,Pt,kt){switch(Pt){case 0:return this.begin("open_directive"),34;case 1:return this.begin("type_directive"),35;case 2:return this.popState(),this.begin("arg_directive"),27;case 3:return this.popState(),this.popState(),37;case 4:return 36;case 5:case 6:case 7:case 9:case 10:case 11:break;case 8:return 11;case 12:this.begin("href");break;case 13:case 16:case 19:case 22:this.popState();break;case 14:return 32;case 15:this.begin("callbackname");break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 30;case 20:return 31;case 21:this.begin("click");break;case 23:return 29;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 17;case 30:return 16;case 31:return 18;case 32:return"date";case 33:return 19;case 34:return 20;case 35:return 22;case 36:return 23;case 37:return 27;case 38:return 7;case 39: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,/^(?:includes\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,39],inclusive:!0}}};function _t(){this.yy={}}return ht.lexer=dt,_t.prototype=ht,ht.Parser=_t,new _t}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},2553:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(H,V,X,K){for(X=X||{},K=H.length;K--;X[H[K]]=V);return X},_=[2,3],y=[1,7],x=[7,12,15,17,19,20,21],E=[7,11,12,15,17,19,20,21],A=[2,20],I=[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,K,ut,tt,Tt){var ht=tt.length-1;switch(ut){case 1:return tt[ht-1];case 2:return K.setDirection(tt[ht-3]),tt[ht-1];case 4:K.setOptions(tt[ht-1]),this.$=tt[ht];break;case 5:tt[ht-1]+=tt[ht],this.$=tt[ht-1];break;case 7:this.$=[];break;case 8:tt[ht-1].push(tt[ht]),this.$=tt[ht-1];break;case 9:this.$=tt[ht-1];break;case 11:K.commit(tt[ht]);break;case 12:K.branch(tt[ht]);break;case 13:K.checkout(tt[ht]);break;case 14:K.merge(tt[ht]);break;case 15:K.reset(tt[ht]);break;case 16:this.$="";break;case 17:this.$=tt[ht];break;case 18:this.$=tt[ht-1]+":"+tt[ht];break;case 19:this.$=tt[ht-1]+":"+K.count,K.count=0;break;case 20:K.count=0;break;case 21:K.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(x,[2,7],{10:10,11:[1,11]}),l(E,[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(E,[2,5]),{7:[1,21]},l(x,[2,8]),{12:[1,22]},l(x,[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(x,[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:I},{12:A,25:33,26:I},{12:[2,18]},{12:A,25:34,26:I},{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],K=[],ut=[null],tt=[],Tt=this.table,ht="",dt=0,_t=0,J=0,bt=2,Pt=1,kt=tt.slice.call(arguments,1),Ot=Object.create(this.lexer),st={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(st.yy[ae]=this.yy[ae]);Ot.setInput(H,st.yy),st.yy.lexer=Ot,st.yy.parser=this,Ot.yylloc===void 0&&(Ot.yylloc={});var Yt=Ot.yylloc;tt.push(Yt);var _e=Ot.options&&Ot.options.ranges;function pe(){var rt;return typeof(rt=K.pop()||Ot.lex()||Pt)!="number"&&(rt instanceof Array&&(rt=(K=rt).pop()),rt=V.symbols_[rt]||rt),rt}typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var de,Bt,zt,ce,he,ge,It,We,oe,Wt={};;){if(zt=X[X.length-1],this.defaultActions[zt]?ce=this.defaultActions[zt]:(de==null&&(de=pe()),ce=Tt[zt]&&Tt[zt][de]),ce===void 0||!ce.length||!ce[0]){var Gt="";for(ge in oe=[],Tt[zt])this.terminals_[ge]&&ge>bt&&oe.push("'"+this.terminals_[ge]+"'");Gt=Ot.showPosition?"Parse error on line "+(dt+1)+`:
`+Ot.showPosition()+`
Expecting `+oe.join(", ")+", got '"+(this.terminals_[de]||de)+"'":"Parse error on line "+(dt+1)+": Unexpected "+(de==Pt?"end of input":"'"+(this.terminals_[de]||de)+"'"),this.parseError(Gt,{text:Ot.match,token:this.terminals_[de]||de,line:Ot.yylineno,loc:Yt,expected:oe})}if(ce[0]instanceof Array&&ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+zt+", token: "+de);switch(ce[0]){case 1:X.push(de),ut.push(Ot.yytext),tt.push(Ot.yylloc),X.push(ce[1]),de=null,Bt?(de=Bt,Bt=null):(_t=Ot.yyleng,ht=Ot.yytext,dt=Ot.yylineno,Yt=Ot.yylloc,J>0);break;case 2:if(It=this.productions_[ce[1]][1],Wt.$=ut[ut.length-It],Wt._$={first_line:tt[tt.length-(It||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(It||1)].first_column,last_column:tt[tt.length-1].last_column},_e&&(Wt._$.range=[tt[tt.length-(It||1)].range[0],tt[tt.length-1].range[1]]),(he=this.performAction.apply(Wt,[ht,_t,dt,st.yy,ce[1],ut,tt].concat(kt)))!==void 0)return he;It&&(X=X.slice(0,-1*It*2),ut=ut.slice(0,-1*It),tt=tt.slice(0,-1*It)),X.push(this.productions_[ce[1]][0]),ut.push(Wt.$),tt.push(Wt._$),We=Tt[X[X.length-2]][X[X.length-1]],X.push(We);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 K=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 ut=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===K.length?this.yylloc.first_column:0)+K[K.length-X.length].length-X[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[ut[0],ut[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,K,ut;if(this.options.backtrack_lexer&&(ut={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&&(ut.yylloc.range=this.yylloc.range.slice(0))),(K=H[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=K.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:K?K[K.length-1].length-K[K.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 ut)this[tt]=ut[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var H,V,X,K;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ut=this._currentRules(),tt=0;tt<ut.length;tt++)if((X=this._input.match(this.rules[ut[tt]]))&&(!V||X[0].length>V[0].length)){if(V=X,K=tt,this.options.backtrack_lexer){if((H=this.test_match(X,ut[tt]))!==!1)return H;if(this._backtrack){V=!1;continue}return!1}if(!this.options.flex)break}return V?(H=this.test_match(V,ut[K]))!==!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,K){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:case 18:this.popState();break;case 16:return 11;case 17:this.begin("string");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=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},6765:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(A,I,N,P){for(N=N||{},P=A.length;P--;N[A[P]]=I);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,I,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,I){if(!I.recoverable){var N=new Error(A);throw N.hash=I,N}this.trace(A)},parse:function(A){var I=this,N=[0],P=[],W=[null],H=[],V=this.table,X="",K=0,ut=0,tt=0,Tt=2,ht=1,dt=H.slice.call(arguments,1),_t=Object.create(this.lexer),J={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&(J.yy[bt]=this.yy[bt]);_t.setInput(A,J.yy),J.yy.lexer=_t,J.yy.parser=this,_t.yylloc===void 0&&(_t.yylloc={});var Pt=_t.yylloc;H.push(Pt);var kt=_t.options&&_t.options.ranges;function Ot(){var It;return typeof(It=P.pop()||_t.lex()||ht)!="number"&&(It instanceof Array&&(It=(P=It).pop()),It=I.symbols_[It]||It),It}typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var st,ae,Yt,_e,pe,de,Bt,zt,ce,he={};;){if(Yt=N[N.length-1],this.defaultActions[Yt]?_e=this.defaultActions[Yt]:(st==null&&(st=Ot()),_e=V[Yt]&&V[Yt][st]),_e===void 0||!_e.length||!_e[0]){var ge="";for(de in ce=[],V[Yt])this.terminals_[de]&&de>Tt&&ce.push("'"+this.terminals_[de]+"'");ge=_t.showPosition?"Parse error on line "+(K+1)+`:
`+_t.showPosition()+`
Expecting `+ce.join(", ")+", got '"+(this.terminals_[st]||st)+"'":"Parse error on line "+(K+1)+": Unexpected "+(st==ht?"end of input":"'"+(this.terminals_[st]||st)+"'"),this.parseError(ge,{text:_t.match,token:this.terminals_[st]||st,line:_t.yylineno,loc:Pt,expected:ce})}if(_e[0]instanceof Array&&_e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yt+", token: "+st);switch(_e[0]){case 1:N.push(st),W.push(_t.yytext),H.push(_t.yylloc),N.push(_e[1]),st=null,ae?(st=ae,ae=null):(ut=_t.yyleng,X=_t.yytext,K=_t.yylineno,Pt=_t.yylloc,tt>0);break;case 2:if(Bt=this.productions_[_e[1]][1],he.$=W[W.length-Bt],he._$={first_line:H[H.length-(Bt||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(Bt||1)].first_column,last_column:H[H.length-1].last_column},kt&&(he._$.range=[H[H.length-(Bt||1)].range[0],H[H.length-1].range[1]]),(pe=this.performAction.apply(he,[X,ut,K,J.yy,_e[1],W,H].concat(dt)))!==void 0)return pe;Bt&&(N=N.slice(0,-1*Bt*2),W=W.slice(0,-1*Bt),H=H.slice(0,-1*Bt)),N.push(this.productions_[_e[1]][0]),W.push(he.$),H.push(he._$),zt=V[N[N.length-2]][N[N.length-1]],N.push(zt);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(A,I){if(!this.yy.parser)throw new Error(A);this.yy.parser.parseError(A,I)},setInput:function(A,I){return this.yy=I||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 I=A.length,N=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;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-I},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-I]),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(),I=new Array(A.length+1).join("-");return A+this.upcomingInput()+`
`+I+"^"},test_match:function(A,I){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,I,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,I,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]]))&&(!I||N[0].length>I[0].length)){if(I=N,P=H,this.options.backtrack_lexer){if((A=this.test_match(N,W[H]))!==!1)return A;if(this._backtrack){I=!1;continue}return!1}if(!this.options.flex)break}return I?(A=this.test_match(I,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,I,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 E(){this.yy={}}return y.lexer=x,E.prototype=y,y.Parser=E,new E}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},7062:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(dt,_t,J,bt){for(J=J||{},bt=dt.length;bt--;J[dt[bt]]=_t);return J},_=[1,4],y=[1,5],x=[1,6],E=[1,7],A=[1,9],I=[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],K=[1,24],ut=[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(dt,_t,J,bt,Pt,kt,Ot){var st=kt.length-1;switch(Pt){case 4:bt.setShowData(!0);break;case 7:this.$=kt[st-1];break;case 9:bt.addSection(kt[st-1],bt.cleanupValue(kt[st]));break;case 10:this.$=kt[st].trim(),bt.setTitle(this.$);break;case 17:bt.parseDirective("%%{","open_directive");break;case 18:bt.parseDirective(kt[st],"type_directive");break;case 19:kt[st]=kt[st].trim().replace(/'/g,'"'),bt.parseDirective(kt[st],"arg_directive");break;case 20:bt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:_,15:8,20:y,21:x,22:E,23:A},{1:[3]},{3:10,4:2,5:3,6:_,15:8,20:y,21:x,22:E,23:A},{3:11,4:2,5:3,6:_,15:8,20:y,21:x,22:E,23:A},l(I,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(I,N,{7:21}),{17:22,18:[1,23],26:K},l([18,26],[2,18]),l(I,[2,6]),{4:25,20:y,21:x,22:E},{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(ut,[2,12]),{19:28,25:[1,29]},l(ut,[2,20]),l(I,[2,7]),l(W,[2,9]),l(W,[2,10]),{17:30,26:K},{26:[2,19]},l(ut,[2,13])],defaultActions:{9:[2,17],10:[2,1],11:[2,2],29:[2,19]},parseError:function(dt,_t){if(!_t.recoverable){var J=new Error(dt);throw J.hash=_t,J}this.trace(dt)},parse:function(dt){var _t=this,J=[0],bt=[],Pt=[null],kt=[],Ot=this.table,st="",ae=0,Yt=0,_e=0,pe=2,de=1,Bt=kt.slice.call(arguments,1),zt=Object.create(this.lexer),ce={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(ce.yy[he]=this.yy[he]);zt.setInput(dt,ce.yy),ce.yy.lexer=zt,ce.yy.parser=this,zt.yylloc===void 0&&(zt.yylloc={});var ge=zt.yylloc;kt.push(ge);var It=zt.options&&zt.options.ranges;function We(){var ye;return typeof(ye=bt.pop()||zt.lex()||de)!="number"&&(ye instanceof Array&&(ye=(bt=ye).pop()),ye=_t.symbols_[ye]||ye),ye}typeof ce.yy.parseError=="function"?this.parseError=ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var oe,Wt,Gt,rt,re,Mt,qt,$t,At,ne={};;){if(Gt=J[J.length-1],this.defaultActions[Gt]?rt=this.defaultActions[Gt]:(oe==null&&(oe=We()),rt=Ot[Gt]&&Ot[Gt][oe]),rt===void 0||!rt.length||!rt[0]){var tn="";for(Mt in At=[],Ot[Gt])this.terminals_[Mt]&&Mt>pe&&At.push("'"+this.terminals_[Mt]+"'");tn=zt.showPosition?"Parse error on line "+(ae+1)+`:
`+zt.showPosition()+`
Expecting `+At.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":"Parse error on line "+(ae+1)+": Unexpected "+(oe==de?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(tn,{text:zt.match,token:this.terminals_[oe]||oe,line:zt.yylineno,loc:ge,expected:At})}if(rt[0]instanceof Array&&rt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Gt+", token: "+oe);switch(rt[0]){case 1:J.push(oe),Pt.push(zt.yytext),kt.push(zt.yylloc),J.push(rt[1]),oe=null,Wt?(oe=Wt,Wt=null):(Yt=zt.yyleng,st=zt.yytext,ae=zt.yylineno,ge=zt.yylloc,_e>0);break;case 2:if(qt=this.productions_[rt[1]][1],ne.$=Pt[Pt.length-qt],ne._$={first_line:kt[kt.length-(qt||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(qt||1)].first_column,last_column:kt[kt.length-1].last_column},It&&(ne._$.range=[kt[kt.length-(qt||1)].range[0],kt[kt.length-1].range[1]]),(re=this.performAction.apply(ne,[st,Yt,ae,ce.yy,rt[1],Pt,kt].concat(Bt)))!==void 0)return re;qt&&(J=J.slice(0,-1*qt*2),Pt=Pt.slice(0,-1*qt),kt=kt.slice(0,-1*qt)),J.push(this.productions_[rt[1]][0]),Pt.push(ne.$),kt.push(ne._$),$t=Ot[J[J.length-2]][J[J.length-1]],J.push($t);break;case 3:return!0}}return!0}},Tt={EOF:1,parseError:function(dt,_t){if(!this.yy.parser)throw new Error(dt);this.yy.parser.parseError(dt,_t)},setInput:function(dt,_t){return this.yy=_t||this.yy||{},this._input=dt,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 dt=this._input[0];return this.yytext+=dt,this.yyleng++,this.offset++,this.match+=dt,this.matched+=dt,dt.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),dt},unput:function(dt){var _t=dt.length,J=dt.split(/(?:\r\n?|\n)/g);this._input=dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_t),this.offset-=_t;var bt=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),J.length-1&&(this.yylineno-=J.length-1);var Pt=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:J?(J.length===bt.length?this.yylloc.first_column:0)+bt[bt.length-J.length].length-J[0].length:this.yylloc.first_column-_t},this.options.ranges&&(this.yylloc.range=[Pt[0],Pt[0]+this.yyleng-_t]),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(dt){this.unput(this.match.slice(dt))},pastInput:function(){var dt=this.matched.substr(0,this.matched.length-this.match.length);return(dt.length>20?"...":"")+dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var dt=this.match;return dt.length<20&&(dt+=this._input.substr(0,20-dt.length)),(dt.substr(0,20)+(dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var dt=this.pastInput(),_t=new Array(dt.length+1).join("-");return dt+this.upcomingInput()+`
`+_t+"^"},test_match:function(dt,_t){var J,bt,Pt;if(this.options.backtrack_lexer&&(Pt={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&&(Pt.yylloc.range=this.yylloc.range.slice(0))),(bt=dt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=bt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:bt?bt[bt.length-1].length-bt[bt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+dt[0].length},this.yytext+=dt[0],this.match+=dt[0],this.matches=dt,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(dt[0].length),this.matched+=dt[0],J=this.performAction.call(this,this.yy,this,_t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),J)return J;if(this._backtrack){for(var kt in Pt)this[kt]=Pt[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var dt,_t,J,bt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Pt=this._currentRules(),kt=0;kt<Pt.length;kt++)if((J=this._input.match(this.rules[Pt[kt]]))&&(!_t||J[0].length>_t[0].length)){if(_t=J,bt=kt,this.options.backtrack_lexer){if((dt=this.test_match(J,Pt[kt]))!==!1)return dt;if(this._backtrack){_t=!1;continue}return!1}if(!this.options.flex)break}return _t?(dt=this.test_match(_t,Pt[bt]))!==!1&&dt: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(dt){this.conditionStack.push(dt)},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(dt){return(dt=this.conditionStack.length-1-Math.abs(dt||0))>=0?this.conditionStack[dt]:"INITIAL"},pushState:function(dt){this.begin(dt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(dt,_t,J,bt){switch(J){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:case 8:case 9:break;case 7:return 20;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 ht(){this.yy={}}return tt.lexer=Tt,ht.prototype=tt,tt.Parser=ht,new ht}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},3176:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(Gt,rt,re,Mt){for(re=re||{},Mt=Gt.length;Mt--;re[Gt[Mt]]=rt);return re},_=[1,3],y=[1,5],x=[1,17],E=[2,10],A=[1,21],I=[1,22],N=[1,23],P=[1,24],W=[1,25],H=[1,26],V=[1,19],X=[1,27],K=[1,28],ut=[1,31],tt=[66,67],Tt=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],ht=[5,6,8,14,35,36,37,38,39,40,48,66,67],dt=[1,51],_t=[1,52],J=[1,53],bt=[1,54],Pt=[1,55],kt=[1,56],Ot=[1,57],st=[57,58],ae=[1,69],Yt=[1,65],_e=[1,66],pe=[1,67],de=[1,68],Bt=[1,70],zt=[1,74],ce=[1,75],he=[1,72],ge=[1,73],It=[5,8,14,35,36,37,38,39,40,48,66,67],We={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(Gt,rt,re,Mt,qt,$t,At){var ne=$t.length-1;switch(qt){case 6:Mt.parseDirective("%%{","open_directive");break;case 7:Mt.parseDirective($t[ne],"type_directive");break;case 8:$t[ne]=$t[ne].trim().replace(/'/g,'"'),Mt.parseDirective($t[ne],"arg_directive");break;case 9:Mt.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:Mt.addRequirement($t[ne-3],$t[ne-4]);break;case 17:Mt.setNewReqId($t[ne-2]);break;case 18:Mt.setNewReqText($t[ne-2]);break;case 19:Mt.setNewReqRisk($t[ne-2]);break;case 20:Mt.setNewReqVerifyMethod($t[ne-2]);break;case 23:this.$=Mt.RequirementType.REQUIREMENT;break;case 24:this.$=Mt.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=Mt.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=Mt.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=Mt.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=Mt.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=Mt.RiskLevel.LOW_RISK;break;case 30:this.$=Mt.RiskLevel.MED_RISK;break;case 31:this.$=Mt.RiskLevel.HIGH_RISK;break;case 32:this.$=Mt.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=Mt.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=Mt.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=Mt.VerifyType.VERIFY_TEST;break;case 36:Mt.addElement($t[ne-3]);break;case 37:Mt.setNewElementType($t[ne-2]);break;case 38:Mt.setNewElementDocRef($t[ne-2]);break;case 41:Mt.addRelationship($t[ne-2],$t[ne],$t[ne-4]);break;case 42:Mt.addRelationship($t[ne-2],$t[ne-4],$t[ne]);break;case 43:this.$=Mt.Relationships.CONTAINS;break;case 44:this.$=Mt.Relationships.COPIES;break;case 45:this.$=Mt.Relationships.DERIVES;break;case 46:this.$=Mt.Relationships.SATISFIES;break;case 47:this.$=Mt.Relationships.VERIFIES;break;case 48:this.$=Mt.Relationships.REFINES;break;case 49:this.$=Mt.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:x,7:12,8:E,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:N,38:P,39:W,40:H,48:V,66:X,67:K},{11:29,12:[1,30],17:ut},l([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:x,7:33,8:E,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:N,38:P,39:W,40:H,48:V,66:X,67:K},{4:16,5:x,7:34,8:E,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:N,38:P,39:W,40:H,48:V,66:X,67:K},{4:16,5:x,7:35,8:E,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:N,38:P,39:W,40:H,48:V,66:X,67:K},{4:16,5:x,7:36,8:E,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:N,38:P,39:W,40:H,48:V,66:X,67:K},{4:16,5:x,7:37,8:E,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:N,38:P,39:W,40:H,48:V,66:X,67:K},{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(Tt,[2,52]),l(Tt,[2,53]),l(ht,[2,4]),{13:46,16:[1,47]},l(ht,[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:dt,60:_t,61:J,62:bt,63:Pt,64:kt,65:Ot},{56:58,59:dt,60:_t,61:J,62:bt,63:Pt,64:kt,65:Ot},{11:59,17:ut},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},l(st,[2,43]),l(st,[2,44]),l(st,[2,45]),l(st,[2,46]),l(st,[2,47]),l(st,[2,48]),l(st,[2,49]),{58:[1,63]},l(ht,[2,5]),{5:ae,24:64,25:Yt,28:_e,30:pe,32:de,34:Bt},{5:zt,34:ce,50:71,51:he,53:ge},{27:76,66:X,67:K},{27:77,66:X,67:K},l(It,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:ae,24:82,25:Yt,28:_e,30:pe,32:de,34:Bt},l(It,[2,22]),l(It,[2,36]),{26:[1,83]},{26:[1,84]},{5:zt,34:ce,50:85,51:he,53:ge},l(It,[2,40]),l(It,[2,41]),l(It,[2,42]),{27:86,66:X,67:K},{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(It,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},l(It,[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:ae,24:111,25:Yt,28:_e,30:pe,32:de,34:Bt},{5:ae,24:112,25:Yt,28:_e,30:pe,32:de,34:Bt},{5:ae,24:113,25:Yt,28:_e,30:pe,32:de,34:Bt},{5:ae,24:114,25:Yt,28:_e,30:pe,32:de,34:Bt},{5:zt,34:ce,50:115,51:he,53:ge},{5:zt,34:ce,50:116,51:he,53:ge},l(It,[2,17]),l(It,[2,18]),l(It,[2,19]),l(It,[2,20]),l(It,[2,37]),l(It,[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(Gt,rt){if(!rt.recoverable){var re=new Error(Gt);throw re.hash=rt,re}this.trace(Gt)},parse:function(Gt){var rt=this,re=[0],Mt=[],qt=[null],$t=[],At=this.table,ne="",tn=0,ye=0,Re=0,un=2,Ve=1,Oe=$t.slice.call(arguments,1),ke=Object.create(this.lexer),Ke={yy:{}};for(var Ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ye)&&(Ke.yy[Ye]=this.yy[Ye]);ke.setInput(Gt,Ke.yy),Ke.yy.lexer=ke,Ke.yy.parser=this,ke.yylloc===void 0&&(ke.yylloc={});var Ge=ke.yylloc;$t.push(Ge);var Xe=ke.options&&ke.options.ranges;function De(){var Tn;return typeof(Tn=Mt.pop()||ke.lex()||Ve)!="number"&&(Tn instanceof Array&&(Tn=(Mt=Tn).pop()),Tn=rt.symbols_[Tn]||Tn),Tn}typeof Ke.yy.parseError=="function"?this.parseError=Ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Un,Te,en,bn,Ir,xn,tr,cn,yn,Ze={};;){if(en=re[re.length-1],this.defaultActions[en]?bn=this.defaultActions[en]:(Un==null&&(Un=De()),bn=At[en]&&At[en][Un]),bn===void 0||!bn.length||!bn[0]){var Sn="";for(xn in yn=[],At[en])this.terminals_[xn]&&xn>un&&yn.push("'"+this.terminals_[xn]+"'");Sn=ke.showPosition?"Parse error on line "+(tn+1)+`:
`+ke.showPosition()+`
Expecting `+yn.join(", ")+", got '"+(this.terminals_[Un]||Un)+"'":"Parse error on line "+(tn+1)+": Unexpected "+(Un==Ve?"end of input":"'"+(this.terminals_[Un]||Un)+"'"),this.parseError(Sn,{text:ke.match,token:this.terminals_[Un]||Un,line:ke.yylineno,loc:Ge,expected:yn})}if(bn[0]instanceof Array&&bn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+en+", token: "+Un);switch(bn[0]){case 1:re.push(Un),qt.push(ke.yytext),$t.push(ke.yylloc),re.push(bn[1]),Un=null,Te?(Un=Te,Te=null):(ye=ke.yyleng,ne=ke.yytext,tn=ke.yylineno,Ge=ke.yylloc,Re>0);break;case 2:if(tr=this.productions_[bn[1]][1],Ze.$=qt[qt.length-tr],Ze._$={first_line:$t[$t.length-(tr||1)].first_line,last_line:$t[$t.length-1].last_line,first_column:$t[$t.length-(tr||1)].first_column,last_column:$t[$t.length-1].last_column},Xe&&(Ze._$.range=[$t[$t.length-(tr||1)].range[0],$t[$t.length-1].range[1]]),(Ir=this.performAction.apply(Ze,[ne,ye,tn,Ke.yy,bn[1],qt,$t].concat(Oe)))!==void 0)return Ir;tr&&(re=re.slice(0,-1*tr*2),qt=qt.slice(0,-1*tr),$t=$t.slice(0,-1*tr)),re.push(this.productions_[bn[1]][0]),qt.push(Ze.$),$t.push(Ze._$),cn=At[re[re.length-2]][re[re.length-1]],re.push(cn);break;case 3:return!0}}return!0}},oe={EOF:1,parseError:function(Gt,rt){if(!this.yy.parser)throw new Error(Gt);this.yy.parser.parseError(Gt,rt)},setInput:function(Gt,rt){return this.yy=rt||this.yy||{},this._input=Gt,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 Gt=this._input[0];return this.yytext+=Gt,this.yyleng++,this.offset++,this.match+=Gt,this.matched+=Gt,Gt.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),Gt},unput:function(Gt){var rt=Gt.length,re=Gt.split(/(?:\r\n?|\n)/g);this._input=Gt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rt),this.offset-=rt;var Mt=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),re.length-1&&(this.yylineno-=re.length-1);var qt=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:re?(re.length===Mt.length?this.yylloc.first_column:0)+Mt[Mt.length-re.length].length-re[0].length:this.yylloc.first_column-rt},this.options.ranges&&(this.yylloc.range=[qt[0],qt[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(Gt){this.unput(this.match.slice(Gt))},pastInput:function(){var Gt=this.matched.substr(0,this.matched.length-this.match.length);return(Gt.length>20?"...":"")+Gt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Gt=this.match;return Gt.length<20&&(Gt+=this._input.substr(0,20-Gt.length)),(Gt.substr(0,20)+(Gt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Gt=this.pastInput(),rt=new Array(Gt.length+1).join("-");return Gt+this.upcomingInput()+`
`+rt+"^"},test_match:function(Gt,rt){var re,Mt,qt;if(this.options.backtrack_lexer&&(qt={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&&(qt.yylloc.range=this.yylloc.range.slice(0))),(Mt=Gt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Mt?Mt[Mt.length-1].length-Mt[Mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Gt[0].length},this.yytext+=Gt[0],this.match+=Gt[0],this.matches=Gt,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(Gt[0].length),this.matched+=Gt[0],re=this.performAction.call(this,this.yy,this,rt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var $t in qt)this[$t]=qt[$t];return!1}return!1},next:function(){if(this.done)return this.EOF;var Gt,rt,re,Mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var qt=this._currentRules(),$t=0;$t<qt.length;$t++)if((re=this._input.match(this.rules[qt[$t]]))&&(!rt||re[0].length>rt[0].length)){if(rt=re,Mt=$t,this.options.backtrack_lexer){if((Gt=this.test_match(re,qt[$t]))!==!1)return Gt;if(this._backtrack){rt=!1;continue}return!1}if(!this.options.flex)break}return rt?(Gt=this.test_match(rt,qt[Mt]))!==!1&&Gt: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(Gt){this.conditionStack.push(Gt)},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(Gt){return(Gt=this.conditionStack.length-1-Math.abs(Gt||0))>=0?this.conditionStack[Gt]:"INITIAL"},pushState:function(Gt){this.begin(Gt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Gt,rt,re,Mt){switch(re){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 Wt(){this.yy={}}return We.lexer=oe,Wt.prototype=We,We.Parser=Wt,new Wt}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},6876:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(It,We,oe,Wt){for(oe=oe||{},Wt=It.length;Wt--;oe[It[Wt]]=We);return oe},_=[1,2],y=[1,3],x=[1,5],E=[1,7],A=[2,5],I=[1,15],N=[1,17],P=[1,18],W=[1,19],H=[1,21],V=[1,22],X=[1,23],K=[1,29],ut=[1,30],tt=[1,31],Tt=[1,32],ht=[1,33],dt=[1,34],_t=[1,37],J=[1,38],bt=[1,39],Pt=[1,40],kt=[1,41],Ot=[1,42],st=[1,45],ae=[1,4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],Yt=[1,58],_e=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,42,46,47,48,49,57,67],pe=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,41,42,46,47,48,49,57,67],de=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,42,46,47,48,49,57,67],Bt=[55,56,57],zt=[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],ce={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(It,We,oe,Wt,Gt,rt,re){var Mt=rt.length-1;switch(Gt){case 4:return Wt.apply(rt[Mt]),rt[Mt];case 5:case 9:this.$=[];break;case 6:rt[Mt-1].push(rt[Mt]),this.$=rt[Mt-1];break;case 7:case 8:case 45:this.$=rt[Mt];break;case 12:rt[Mt-3].type="addParticipant",rt[Mt-3].description=Wt.parseMessage(rt[Mt-1]),this.$=rt[Mt-3];break;case 13:rt[Mt-1].type="addParticipant",this.$=rt[Mt-1];break;case 14:rt[Mt-3].type="addActor",rt[Mt-3].description=Wt.parseMessage(rt[Mt-1]),this.$=rt[Mt-3];break;case 15:rt[Mt-1].type="addActor",this.$=rt[Mt-1];break;case 17:Wt.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:Wt.LINETYPE.ACTIVE_START,actor:rt[Mt-1]};break;case 19:this.$={type:"activeEnd",signalType:Wt.LINETYPE.ACTIVE_END,actor:rt[Mt-1]};break;case 25:this.$=[{type:"setTitle",text:rt[Mt-1]}];break;case 26:rt[Mt-1].unshift({type:"loopStart",loopText:Wt.parseMessage(rt[Mt-2]),signalType:Wt.LINETYPE.LOOP_START}),rt[Mt-1].push({type:"loopEnd",loopText:rt[Mt-2],signalType:Wt.LINETYPE.LOOP_END}),this.$=rt[Mt-1];break;case 27:rt[Mt-1].unshift({type:"rectStart",color:Wt.parseMessage(rt[Mt-2]),signalType:Wt.LINETYPE.RECT_START}),rt[Mt-1].push({type:"rectEnd",color:Wt.parseMessage(rt[Mt-2]),signalType:Wt.LINETYPE.RECT_END}),this.$=rt[Mt-1];break;case 28:rt[Mt-1].unshift({type:"optStart",optText:Wt.parseMessage(rt[Mt-2]),signalType:Wt.LINETYPE.OPT_START}),rt[Mt-1].push({type:"optEnd",optText:Wt.parseMessage(rt[Mt-2]),signalType:Wt.LINETYPE.OPT_END}),this.$=rt[Mt-1];break;case 29:rt[Mt-1].unshift({type:"altStart",altText:Wt.parseMessage(rt[Mt-2]),signalType:Wt.LINETYPE.ALT_START}),rt[Mt-1].push({type:"altEnd",signalType:Wt.LINETYPE.ALT_END}),this.$=rt[Mt-1];break;case 30:rt[Mt-1].unshift({type:"parStart",parText:Wt.parseMessage(rt[Mt-2]),signalType:Wt.LINETYPE.PAR_START}),rt[Mt-1].push({type:"parEnd",signalType:Wt.LINETYPE.PAR_END}),this.$=rt[Mt-1];break;case 33:this.$=rt[Mt-3].concat([{type:"and",parText:Wt.parseMessage(rt[Mt-1]),signalType:Wt.LINETYPE.PAR_AND},rt[Mt]]);break;case 35:this.$=rt[Mt-3].concat([{type:"else",altText:Wt.parseMessage(rt[Mt-1]),signalType:Wt.LINETYPE.ALT_ELSE},rt[Mt]]);break;case 36:this.$=[rt[Mt-1],{type:"addNote",placement:rt[Mt-2],actor:rt[Mt-1].actor,text:rt[Mt]}];break;case 37:rt[Mt-2]=[].concat(rt[Mt-1],rt[Mt-1]).slice(0,2),rt[Mt-2][0]=rt[Mt-2][0].actor,rt[Mt-2][1]=rt[Mt-2][1].actor,this.$=[rt[Mt-1],{type:"addNote",placement:Wt.PLACEMENT.OVER,actor:rt[Mt-2].slice(0,2),text:rt[Mt]}];break;case 38:this.$=[rt[Mt-1],{type:"addLinks",actor:rt[Mt-1].actor,text:rt[Mt]}];break;case 39:this.$=[rt[Mt-1],{type:"addALink",actor:rt[Mt-1].actor,text:rt[Mt]}];break;case 40:this.$=[rt[Mt-1],{type:"addProperties",actor:rt[Mt-1].actor,text:rt[Mt]}];break;case 41:this.$=[rt[Mt-1],{type:"addDetails",actor:rt[Mt-1].actor,text:rt[Mt]}];break;case 44:this.$=[rt[Mt-2],rt[Mt]];break;case 46:this.$=Wt.PLACEMENT.LEFTOF;break;case 47:this.$=Wt.PLACEMENT.RIGHTOF;break;case 48:this.$=[rt[Mt-4],rt[Mt-1],{type:"addMessage",from:rt[Mt-4].actor,to:rt[Mt-1].actor,signalType:rt[Mt-3],msg:rt[Mt]},{type:"activeStart",signalType:Wt.LINETYPE.ACTIVE_START,actor:rt[Mt-1]}];break;case 49:this.$=[rt[Mt-4],rt[Mt-1],{type:"addMessage",from:rt[Mt-4].actor,to:rt[Mt-1].actor,signalType:rt[Mt-3],msg:rt[Mt]},{type:"activeEnd",signalType:Wt.LINETYPE.ACTIVE_END,actor:rt[Mt-4]}];break;case 50:this.$=[rt[Mt-3],rt[Mt-1],{type:"addMessage",from:rt[Mt-3].actor,to:rt[Mt-1].actor,signalType:rt[Mt-2],msg:rt[Mt]}];break;case 51:this.$={type:"addParticipant",actor:rt[Mt]};break;case 52:this.$=Wt.LINETYPE.SOLID_OPEN;break;case 53:this.$=Wt.LINETYPE.DOTTED_OPEN;break;case 54:this.$=Wt.LINETYPE.SOLID;break;case 55:this.$=Wt.LINETYPE.DOTTED;break;case 56:this.$=Wt.LINETYPE.SOLID_CROSS;break;case 57:this.$=Wt.LINETYPE.DOTTED_CROSS;break;case 58:this.$=Wt.LINETYPE.SOLID_POINT;break;case 59:this.$=Wt.LINETYPE.DOTTED_POINT;break;case 60:this.$=Wt.parseMessage(rt[Mt].trim().substring(1));break;case 61:Wt.parseDirective("%%{","open_directive");break;case 62:Wt.parseDirective(rt[Mt],"type_directive");break;case 63:rt[Mt]=rt[Mt].trim().replace(/'/g,'"'),Wt.parseDirective(rt[Mt],"arg_directive");break;case 64:Wt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:_,5:y,6:4,7:x,11:6,67:E},{1:[3]},{3:8,4:_,5:y,6:4,7:x,11:6,67:E},{3:9,4:_,5:y,6:4,7:x,11:6,67:E},{3:10,4:_,5:y,6:4,7:x,11:6,67:E},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:I,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:K,32:ut,34:tt,35:Tt,36:ht,38:dt,42:_t,46:J,47:bt,48:Pt,49:kt,57:Ot,67:E},{13:43,14:[1,44],70:st},l([14,70],[2,62]),l(ae,[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:K,32:ut,34:tt,35:Tt,36:ht,38:dt,42:_t,46:J,47:bt,48:Pt,49:kt,57:Ot,67:E},l(ae,[2,8]),l(ae,[2,9]),{17:47,57:Ot},{17:48,57:Ot},{5:[1,49]},l(ae,[2,17]),{17:50,57:Ot},{17:51,57:Ot},{5:[1,52]},{5:[1,53]},{5:[1,54]},{5:[1,55]},{5:[1,56]},{31:57,66:Yt},{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},l(ae,[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:Ot},{17:78,57:Ot},{17:79,57:Ot},{17:80,57:Ot},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(ae,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},l(ae,[2,16]),{5:[1,88]},{5:[1,89]},l(ae,[2,20]),l(ae,[2,21]),l(ae,[2,22]),l(ae,[2,23]),l(ae,[2,24]),{5:[1,90]},{5:[2,60]},l(_e,A,{8:91}),l(_e,A,{8:92}),l(_e,A,{8:93}),l(pe,A,{37:94,8:95}),l(de,A,{39:96,8:97}),{17:100,55:[1,98],56:[1,99],57:Ot},l(Bt,[2,52]),l(Bt,[2,53]),l(Bt,[2,54]),l(Bt,[2,55]),l(Bt,[2,56]),l(Bt,[2,57]),l(Bt,[2,58]),l(Bt,[2,59]),{17:101,57:Ot},{17:103,45:102,57:Ot},{57:[2,46]},{57:[2,47]},{31:104,66:Yt},{31:105,66:Yt},{31:106,66:Yt},{31:107,66:Yt},l(zt,[2,10]),{13:108,70:st},{70:[2,63]},{19:[1,109]},l(ae,[2,13]),{19:[1,110]},l(ae,[2,15]),l(ae,[2,18]),l(ae,[2,19]),l(ae,[2,25]),{4:I,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:K,32:ut,33:[1,111],34:tt,35:Tt,36:ht,38:dt,42:_t,46:J,47:bt,48:Pt,49:kt,57:Ot,67:E},{4:I,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:K,32:ut,33:[1,112],34:tt,35:Tt,36:ht,38:dt,42:_t,46:J,47:bt,48:Pt,49:kt,57:Ot,67:E},{4:I,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:K,32:ut,33:[1,113],34:tt,35:Tt,36:ht,38:dt,42:_t,46:J,47:bt,48:Pt,49:kt,57:Ot,67:E},{33:[1,114]},{4:I,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:K,32:ut,33:[2,34],34:tt,35:Tt,36:ht,38:dt,41:[1,115],42:_t,46:J,47:bt,48:Pt,49:kt,57:Ot,67:E},{33:[1,116]},{4:I,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:K,32:ut,33:[2,32],34:tt,35:Tt,36:ht,38:dt,40:[1,117],42:_t,46:J,47:bt,48:Pt,49:kt,57:Ot,67:E},{17:118,57:Ot},{17:119,57:Ot},{31:120,66:Yt},{31:121,66:Yt},{31:122,66:Yt},{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(ae,[2,26]),l(ae,[2,27]),l(ae,[2,28]),l(ae,[2,29]),{19:[1,127]},l(ae,[2,30]),{19:[1,128]},{31:129,66:Yt},{31:130,66:Yt},{5:[2,50]},{5:[2,36]},{5:[2,37]},{17:131,57:Ot},l(zt,[2,11]),l(ae,[2,12]),l(ae,[2,14]),l(pe,A,{8:95,37:132}),l(de,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(It,We){if(!We.recoverable){var oe=new Error(It);throw oe.hash=We,oe}this.trace(It)},parse:function(It){var We=this,oe=[0],Wt=[],Gt=[null],rt=[],re=this.table,Mt="",qt=0,$t=0,At=0,ne=2,tn=1,ye=rt.slice.call(arguments,1),Re=Object.create(this.lexer),un={yy:{}};for(var Ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ve)&&(un.yy[Ve]=this.yy[Ve]);Re.setInput(It,un.yy),un.yy.lexer=Re,un.yy.parser=this,Re.yylloc===void 0&&(Re.yylloc={});var Oe=Re.yylloc;rt.push(Oe);var ke=Re.options&&Re.options.ranges;function Ke(){var cn;return typeof(cn=Wt.pop()||Re.lex()||tn)!="number"&&(cn instanceof Array&&(cn=(Wt=cn).pop()),cn=We.symbols_[cn]||cn),cn}typeof un.yy.parseError=="function"?this.parseError=un.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ye,Ge,Xe,De,Un,Te,en,bn,Ir,xn={};;){if(Xe=oe[oe.length-1],this.defaultActions[Xe]?De=this.defaultActions[Xe]:(Ye==null&&(Ye=Ke()),De=re[Xe]&&re[Xe][Ye]),De===void 0||!De.length||!De[0]){var tr="";for(Te in Ir=[],re[Xe])this.terminals_[Te]&&Te>ne&&Ir.push("'"+this.terminals_[Te]+"'");tr=Re.showPosition?"Parse error on line "+(qt+1)+`:
`+Re.showPosition()+`
Expecting `+Ir.join(", ")+", got '"+(this.terminals_[Ye]||Ye)+"'":"Parse error on line "+(qt+1)+": Unexpected "+(Ye==tn?"end of input":"'"+(this.terminals_[Ye]||Ye)+"'"),this.parseError(tr,{text:Re.match,token:this.terminals_[Ye]||Ye,line:Re.yylineno,loc:Oe,expected:Ir})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+Ye);switch(De[0]){case 1:oe.push(Ye),Gt.push(Re.yytext),rt.push(Re.yylloc),oe.push(De[1]),Ye=null,Ge?(Ye=Ge,Ge=null):($t=Re.yyleng,Mt=Re.yytext,qt=Re.yylineno,Oe=Re.yylloc,At>0);break;case 2:if(en=this.productions_[De[1]][1],xn.$=Gt[Gt.length-en],xn._$={first_line:rt[rt.length-(en||1)].first_line,last_line:rt[rt.length-1].last_line,first_column:rt[rt.length-(en||1)].first_column,last_column:rt[rt.length-1].last_column},ke&&(xn._$.range=[rt[rt.length-(en||1)].range[0],rt[rt.length-1].range[1]]),(Un=this.performAction.apply(xn,[Mt,$t,qt,un.yy,De[1],Gt,rt].concat(ye)))!==void 0)return Un;en&&(oe=oe.slice(0,-1*en*2),Gt=Gt.slice(0,-1*en),rt=rt.slice(0,-1*en)),oe.push(this.productions_[De[1]][0]),Gt.push(xn.$),rt.push(xn._$),bn=re[oe[oe.length-2]][oe[oe.length-1]],oe.push(bn);break;case 3:return!0}}return!0}},he={EOF:1,parseError:function(It,We){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,We)},setInput:function(It,We){return this.yy=We||this.yy||{},this._input=It,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 It=this._input[0];return this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It,It.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),It},unput:function(It){var We=It.length,oe=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-We),this.offset-=We;var Wt=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),oe.length-1&&(this.yylineno-=oe.length-1);var Gt=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:oe?(oe.length===Wt.length?this.yylloc.first_column:0)+Wt[Wt.length-oe.length].length-oe[0].length:this.yylloc.first_column-We},this.options.ranges&&(this.yylloc.range=[Gt[0],Gt[0]+this.yyleng-We]),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(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),We=new Array(It.length+1).join("-");return It+this.upcomingInput()+`
`+We+"^"},test_match:function(It,We){var oe,Wt,Gt;if(this.options.backtrack_lexer&&(Gt={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&&(Gt.yylloc.range=this.yylloc.range.slice(0))),(Wt=It[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Wt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Wt?Wt[Wt.length-1].length-Wt[Wt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,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(It[0].length),this.matched+=It[0],oe=this.performAction.call(this,this.yy,this,We,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var rt in Gt)this[rt]=Gt[rt];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,We,oe,Wt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Gt=this._currentRules(),rt=0;rt<Gt.length;rt++)if((oe=this._input.match(this.rules[Gt[rt]]))&&(!We||oe[0].length>We[0].length)){if(We=oe,Wt=rt,this.options.backtrack_lexer){if((It=this.test_match(oe,Gt[rt]))!==!1)return It;if(this._backtrack){We=!1;continue}return!1}if(!this.options.flex)break}return We?(It=this.test_match(We,Gt[Wt]))!==!1&&It: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(It){this.conditionStack.push(It)},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(It){return(It=this.conditionStack.length-1-Math.abs(It||0))>=0?this.conditionStack[It]:"INITIAL"},pushState:function(It){this.begin(It)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(It,We,oe,Wt){switch(oe){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:case 39:case 52: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 We.yytext=We.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 40:return We.yytext=We.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 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 ce.lexer=he,ge.prototype=ce,ce.Parser=ge,new ge}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},3584:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(Bt,zt,ce,he){for(ce=ce||{},he=Bt.length;he--;ce[Bt[he]]=zt);return ce},_=[1,2],y=[1,3],x=[1,5],E=[1,7],A=[2,5],I=[1,15],N=[1,17],P=[1,19],W=[1,20],H=[1,21],V=[1,22],X=[1,30],K=[1,23],ut=[1,24],tt=[1,25],Tt=[1,26],ht=[1,27],dt=[1,32],_t=[1,33],J=[1,34],bt=[1,35],Pt=[1,31],kt=[1,38],Ot=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],st=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],ae=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Yt=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],_e={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(Bt,zt,ce,he,ge,It,We){var oe=It.length-1;switch(ge){case 4:return he.setRootDoc(It[oe]),It[oe];case 5:this.$=[];break;case 6:It[oe]!="nl"&&(It[oe-1].push(It[oe]),this.$=It[oe-1]);break;case 7:case 8:case 36:case 37:this.$=It[oe];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:It[oe],type:"default",description:""};break;case 11:this.$={stmt:"state",id:It[oe-1],type:"default",description:he.trimColon(It[oe])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:It[oe-2],type:"default",description:""},state2:{stmt:"state",id:It[oe],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:It[oe-3],type:"default",description:""},state2:{stmt:"state",id:It[oe-1],type:"default",description:""},description:It[oe].substr(1).trim()};break;case 17:this.$={stmt:"state",id:It[oe-3],type:"default",description:"",doc:It[oe-1]};break;case 18:var Wt=It[oe],Gt=It[oe-2].trim();if(It[oe].match(":")){var rt=It[oe].split(":");Wt=rt[0],Gt=[Gt,rt[1]]}this.$={stmt:"state",id:Wt,type:"default",description:Gt};break;case 19:this.$={stmt:"state",id:It[oe-3],type:"default",description:It[oe-5],doc:It[oe-1]};break;case 20:this.$={stmt:"state",id:It[oe],type:"fork"};break;case 21:this.$={stmt:"state",id:It[oe],type:"join"};break;case 22:this.$={stmt:"state",id:It[oe],type:"choice"};break;case 23:this.$={stmt:"state",id:he.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:It[oe-1].trim(),note:{position:It[oe-2].trim(),text:It[oe].trim()}};break;case 30:he.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:he.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:he.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:he.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:he.parseDirective("%%{","open_directive");break;case 41:he.parseDirective(It[oe],"type_directive");break;case 42:It[oe]=It[oe].trim().replace(/'/g,'"'),he.parseDirective(It[oe],"arg_directive");break;case 43:he.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:_,5:y,6:4,7:x,31:6,45:E},{1:[3]},{3:8,4:_,5:y,6:4,7:x,31:6,45:E},{3:9,4:_,5:y,6:4,7:x,31:6,45:E},{3:10,4:_,5:y,6:4,7:x,31:6,45:E},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:I,5:N,6:28,9:14,10:16,11:18,14:P,15:W,17:H,20:V,22:X,23:K,24:ut,25:tt,26:Tt,27:ht,30:29,31:6,36:dt,37:_t,38:J,39:bt,42:Pt,45:E},{33:36,34:[1,37],48:kt},l([34,48],[2,41]),l(Ot,[2,6]),{6:28,10:39,11:18,14:P,15:W,17:H,20:V,22:X,23:K,24:ut,25:tt,26:Tt,27:ht,30:29,31:6,36:dt,37:_t,38:J,39:bt,42:Pt,45:E},l(Ot,[2,8]),l(Ot,[2,9]),l(Ot,[2,10],{12:[1,40],13:[1,41]}),l(Ot,[2,14]),{16:[1,42]},l(Ot,[2,16],{18:[1,43]}),{21:[1,44]},l(Ot,[2,20]),l(Ot,[2,21]),l(Ot,[2,22]),l(Ot,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},l(Ot,[2,26]),l(Ot,[2,27]),l(st,[2,36]),l(st,[2,37]),l(Ot,[2,30]),l(Ot,[2,31]),l(Ot,[2,32]),l(Ot,[2,33]),l(ae,[2,28]),{35:49,47:[1,50]},l(ae,[2,43]),l(Ot,[2,7]),l(Ot,[2,11]),{11:51,22:X,42:Pt},l(Ot,[2,15]),l(Yt,A,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:kt},{48:[2,42]},l(Ot,[2,12],{12:[1,57]}),{4:I,5:N,6:28,9:14,10:16,11:18,14:P,15:W,17:H,19:[1,58],20:V,22:X,23:K,24:ut,25:tt,26:Tt,27:ht,30:29,31:6,36:dt,37:_t,38:J,39:bt,42:Pt,45:E},l(Ot,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},l(ae,[2,29]),l(Ot,[2,13]),l(Ot,[2,17]),l(Yt,A,{8:62}),l(Ot,[2,24]),l(Ot,[2,25]),{4:I,5:N,6:28,9:14,10:16,11:18,14:P,15:W,17:H,19:[1,63],20:V,22:X,23:K,24:ut,25:tt,26:Tt,27:ht,30:29,31:6,36:dt,37:_t,38:J,39:bt,42:Pt,45:E},l(Ot,[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(Bt,zt){if(!zt.recoverable){var ce=new Error(Bt);throw ce.hash=zt,ce}this.trace(Bt)},parse:function(Bt){var zt=this,ce=[0],he=[],ge=[null],It=[],We=this.table,oe="",Wt=0,Gt=0,rt=0,re=2,Mt=1,qt=It.slice.call(arguments,1),$t=Object.create(this.lexer),At={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(At.yy[ne]=this.yy[ne]);$t.setInput(Bt,At.yy),At.yy.lexer=$t,At.yy.parser=this,$t.yylloc===void 0&&($t.yylloc={});var tn=$t.yylloc;It.push(tn);var ye=$t.options&&$t.options.ranges;function Re(){var en;return typeof(en=he.pop()||$t.lex()||Mt)!="number"&&(en instanceof Array&&(en=(he=en).pop()),en=zt.symbols_[en]||en),en}typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var un,Ve,Oe,ke,Ke,Ye,Ge,Xe,De,Un={};;){if(Oe=ce[ce.length-1],this.defaultActions[Oe]?ke=this.defaultActions[Oe]:(un==null&&(un=Re()),ke=We[Oe]&&We[Oe][un]),ke===void 0||!ke.length||!ke[0]){var Te="";for(Ye in De=[],We[Oe])this.terminals_[Ye]&&Ye>re&&De.push("'"+this.terminals_[Ye]+"'");Te=$t.showPosition?"Parse error on line "+(Wt+1)+`:
`+$t.showPosition()+`
Expecting `+De.join(", ")+", got '"+(this.terminals_[un]||un)+"'":"Parse error on line "+(Wt+1)+": Unexpected "+(un==Mt?"end of input":"'"+(this.terminals_[un]||un)+"'"),this.parseError(Te,{text:$t.match,token:this.terminals_[un]||un,line:$t.yylineno,loc:tn,expected:De})}if(ke[0]instanceof Array&&ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+un);switch(ke[0]){case 1:ce.push(un),ge.push($t.yytext),It.push($t.yylloc),ce.push(ke[1]),un=null,Ve?(un=Ve,Ve=null):(Gt=$t.yyleng,oe=$t.yytext,Wt=$t.yylineno,tn=$t.yylloc,rt>0);break;case 2:if(Ge=this.productions_[ke[1]][1],Un.$=ge[ge.length-Ge],Un._$={first_line:It[It.length-(Ge||1)].first_line,last_line:It[It.length-1].last_line,first_column:It[It.length-(Ge||1)].first_column,last_column:It[It.length-1].last_column},ye&&(Un._$.range=[It[It.length-(Ge||1)].range[0],It[It.length-1].range[1]]),(Ke=this.performAction.apply(Un,[oe,Gt,Wt,At.yy,ke[1],ge,It].concat(qt)))!==void 0)return Ke;Ge&&(ce=ce.slice(0,-1*Ge*2),ge=ge.slice(0,-1*Ge),It=It.slice(0,-1*Ge)),ce.push(this.productions_[ke[1]][0]),ge.push(Un.$),It.push(Un._$),Xe=We[ce[ce.length-2]][ce[ce.length-1]],ce.push(Xe);break;case 3:return!0}}return!0}},pe={EOF:1,parseError:function(Bt,zt){if(!this.yy.parser)throw new Error(Bt);this.yy.parser.parseError(Bt,zt)},setInput:function(Bt,zt){return this.yy=zt||this.yy||{},this._input=Bt,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 Bt=this._input[0];return this.yytext+=Bt,this.yyleng++,this.offset++,this.match+=Bt,this.matched+=Bt,Bt.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),Bt},unput:function(Bt){var zt=Bt.length,ce=Bt.split(/(?:\r\n?|\n)/g);this._input=Bt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-zt),this.offset-=zt;var he=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),ce.length-1&&(this.yylineno-=ce.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:ce?(ce.length===he.length?this.yylloc.first_column:0)+he[he.length-ce.length].length-ce[0].length:this.yylloc.first_column-zt},this.options.ranges&&(this.yylloc.range=[ge[0],ge[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(Bt){this.unput(this.match.slice(Bt))},pastInput:function(){var Bt=this.matched.substr(0,this.matched.length-this.match.length);return(Bt.length>20?"...":"")+Bt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Bt=this.match;return Bt.length<20&&(Bt+=this._input.substr(0,20-Bt.length)),(Bt.substr(0,20)+(Bt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Bt=this.pastInput(),zt=new Array(Bt.length+1).join("-");return Bt+this.upcomingInput()+`
`+zt+"^"},test_match:function(Bt,zt){var ce,he,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))),(he=Bt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=he.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:he?he[he.length-1].length-he[he.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Bt[0].length},this.yytext+=Bt[0],this.match+=Bt[0],this.matches=Bt,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(Bt[0].length),this.matched+=Bt[0],ce=this.performAction.call(this,this.yy,this,zt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ce)return ce;if(this._backtrack){for(var It in ge)this[It]=ge[It];return!1}return!1},next:function(){if(this.done)return this.EOF;var Bt,zt,ce,he;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),It=0;It<ge.length;It++)if((ce=this._input.match(this.rules[ge[It]]))&&(!zt||ce[0].length>zt[0].length)){if(zt=ce,he=It,this.options.backtrack_lexer){if((Bt=this.test_match(ce,ge[It]))!==!1)return Bt;if(this._backtrack){zt=!1;continue}return!1}if(!this.options.flex)break}return zt?(Bt=this.test_match(zt,ge[he]))!==!1&&Bt: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(Bt){this.conditionStack.push(Bt)},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(Bt){return(Bt=this.conditionStack.length-1-Math.abs(Bt||0))>=0?this.conditionStack[Bt]:"INITIAL"},pushState:function(Bt){this.begin(Bt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Bt,zt,ce,he){switch(ce){case 0:case 26:return 36;case 1:case 27:return 37;case 2:case 28:return 38;case 3:case 29: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:case 12:case 13:case 14:case 15:case 39:case 45:break;case 11:case 59:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 33:case 36:this.popState();break;case 19:this.pushState("STATE");break;case 20:case 23:return this.popState(),zt.yytext=zt.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),zt.yytext=zt.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),zt.yytext=zt.yytext.slice(0,-10).trim(),25;case 30:this.begin("STATE_STRING");break;case 31:return this.popState(),this.pushState("STATE_ID"),"AS";case 32:case 47:return this.popState(),"ID";case 34:return"STATE_DESCR";case 35:return 17;case 37:return this.popState(),this.pushState("struct"),18;case 38:return this.popState(),19;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 46:return"NOTE_TEXT";case 48:return this.popState(),this.pushState("NOTE_TEXT"),22;case 49:return this.popState(),zt.yytext=zt.yytext.substr(2).trim(),29;case 50:return this.popState(),zt.yytext=zt.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 zt.yytext=zt.yytext.trim(),12;case 57:return 13;case 58:return 26;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 de(){this.yy={}}return _e.lexer=pe,de.prototype=_e,_e.Parser=de,new de}();h.parser=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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))},9763:(a,h,s)=>{a=s.nmd(a);var f=function(){var l=function(X,K,ut,tt){for(ut=ut||{},tt=X.length;tt--;ut[X[tt]]=K);return ut},_=[1,2],y=[1,5],x=[6,9,11,17,18,19,21],E=[1,15],A=[1,16],I=[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,K,ut,tt,Tt,ht,dt){var _t=ht.length-1;switch(Tt){case 1:return ht[_t-1];case 3:case 7:case 8:this.$=[];break;case 4:ht[_t-1].push(ht[_t]),this.$=ht[_t-1];break;case 5:case 6:this.$=ht[_t];break;case 11:tt.setTitle(ht[_t].substr(6)),this.$=ht[_t].substr(6);break;case 12:tt.addSection(ht[_t].substr(8)),this.$=ht[_t].substr(8);break;case 13:tt.addTask(ht[_t-1],ht[_t]),this.$="task";break;case 15:tt.parseDirective("%%{","open_directive");break;case 16:tt.parseDirective(ht[_t],"type_directive");break;case 17:ht[_t]=ht[_t].trim().replace(/'/g,'"'),tt.parseDirective(ht[_t],"arg_directive");break;case 18:tt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:_,7:3,12:4,21:y},{1:[3]},l(x,[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:E,18:A,19:I,21:y},{1:[2,2]},{14:19,15:[1,20],24:N},l([15,24],[2,16]),l(x,[2,8],{1:[2,1]}),l(x,[2,4]),{7:18,10:22,12:4,17:E,18:A,19:I,21:y},l(x,[2,6]),l(x,[2,7]),l(x,[2,11]),l(x,[2,12]),{20:[1,23]},l(x,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},l(x,[2,5]),l(x,[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,K){if(!K.recoverable){var ut=new Error(X);throw ut.hash=K,ut}this.trace(X)},parse:function(X){var K=this,ut=[0],tt=[],Tt=[null],ht=[],dt=this.table,_t="",J=0,bt=0,Pt=0,kt=2,Ot=1,st=ht.slice.call(arguments,1),ae=Object.create(this.lexer),Yt={yy:{}};for(var _e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_e)&&(Yt.yy[_e]=this.yy[_e]);ae.setInput(X,Yt.yy),Yt.yy.lexer=ae,Yt.yy.parser=this,ae.yylloc===void 0&&(ae.yylloc={});var pe=ae.yylloc;ht.push(pe);var de=ae.options&&ae.options.ranges;function Bt(){var Mt;return typeof(Mt=tt.pop()||ae.lex()||Ot)!="number"&&(Mt instanceof Array&&(Mt=(tt=Mt).pop()),Mt=K.symbols_[Mt]||Mt),Mt}typeof Yt.yy.parseError=="function"?this.parseError=Yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var zt,ce,he,ge,It,We,oe,Wt,Gt,rt={};;){if(he=ut[ut.length-1],this.defaultActions[he]?ge=this.defaultActions[he]:(zt==null&&(zt=Bt()),ge=dt[he]&&dt[he][zt]),ge===void 0||!ge.length||!ge[0]){var re="";for(We in Gt=[],dt[he])this.terminals_[We]&&We>kt&&Gt.push("'"+this.terminals_[We]+"'");re=ae.showPosition?"Parse error on line "+(J+1)+`:
`+ae.showPosition()+`
Expecting `+Gt.join(", ")+", got '"+(this.terminals_[zt]||zt)+"'":"Parse error on line "+(J+1)+": Unexpected "+(zt==Ot?"end of input":"'"+(this.terminals_[zt]||zt)+"'"),this.parseError(re,{text:ae.match,token:this.terminals_[zt]||zt,line:ae.yylineno,loc:pe,expected:Gt})}if(ge[0]instanceof Array&&ge.length>1)throw new Error("Parse Error: multiple actions possible at state: "+he+", token: "+zt);switch(ge[0]){case 1:ut.push(zt),Tt.push(ae.yytext),ht.push(ae.yylloc),ut.push(ge[1]),zt=null,ce?(zt=ce,ce=null):(bt=ae.yyleng,_t=ae.yytext,J=ae.yylineno,pe=ae.yylloc,Pt>0);break;case 2:if(oe=this.productions_[ge[1]][1],rt.$=Tt[Tt.length-oe],rt._$={first_line:ht[ht.length-(oe||1)].first_line,last_line:ht[ht.length-1].last_line,first_column:ht[ht.length-(oe||1)].first_column,last_column:ht[ht.length-1].last_column},de&&(rt._$.range=[ht[ht.length-(oe||1)].range[0],ht[ht.length-1].range[1]]),(It=this.performAction.apply(rt,[_t,bt,J,Yt.yy,ge[1],Tt,ht].concat(st)))!==void 0)return It;oe&&(ut=ut.slice(0,-1*oe*2),Tt=Tt.slice(0,-1*oe),ht=ht.slice(0,-1*oe)),ut.push(this.productions_[ge[1]][0]),Tt.push(rt.$),ht.push(rt._$),Wt=dt[ut[ut.length-2]][ut[ut.length-1]],ut.push(Wt);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(X,K){if(!this.yy.parser)throw new Error(X);this.yy.parser.parseError(X,K)},setInput:function(X,K){return this.yy=K||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 K=X.length,ut=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;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),ut.length-1&&(this.yylineno-=ut.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:ut?(ut.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-ut.length].length-ut[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(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(),K=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
`+K+"^"},test_match:function(X,K){var ut,tt,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))),(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],ut=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ut)return ut;if(this._backtrack){for(var ht in Tt)this[ht]=Tt[ht];return!1}return!1},next:function(){if(this.done)return this.EOF;var X,K,ut,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Tt=this._currentRules(),ht=0;ht<Tt.length;ht++)if((ut=this._input.match(this.rules[Tt[ht]]))&&(!K||ut[0].length>K[0].length)){if(K=ut,tt=ht,this.options.backtrack_lexer){if((X=this.test_match(ut,Tt[ht]))!==!1)return X;if(this._backtrack){K=!1;continue}return!1}if(!this.options.flex)break}return K?(X=this.test_match(K,Tt[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,K,ut,tt){switch(ut){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:case 8:case 9:break;case 7:return 11;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=f,h.Parser=f.Parser,h.parse=function(){return f.parse.apply(f,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,f=/^([^:]+):/gm,l=[".","/"];a.exports={sanitizeUrl:function(_){if(!_)return"about:blank";var y,x,E=_.replace(s,"").trim();return function(A){return l.indexOf(A[0])>-1}(E)?E:(x=E.match(f))?(y=x[0],h.test(y)?"about:blank":E):"about:blank"}}},3841:a=>{a.exports=function(h,s){return h.intersect(s)}},7458:(a,h,s)=>{s.d(h,{Z:()=>W8});var f=s(1941),l=s.n(f),_={debug:1,info:2,warn:3,error:4,fatal:5},y={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},x=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,E("FATAL"),"color: orange"):console.log.bind(console,"",E("FATAL"))),t<=_.error&&(y.error=console.error?console.error.bind(console,E("ERROR"),"color: orange"):console.log.bind(console,"",E("ERROR"))),t<=_.warn&&(y.warn=console.warn?console.warn.bind(console,E("WARN"),"color: orange"):console.log.bind(console,"",E("WARN"))),t<=_.info&&(y.info=console.info?console.info.bind(console,E("INFO"),"color: lightblue"):console.log.bind(console,"",E("INFO"))),t<=_.debug&&(y.debug=console.debug?console.debug.bind(console,E("DEBUG"),"color: lightgreen"):console.log.bind(console,"",E("DEBUG")))},E=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 d of t)(d=e(d,++o,t))!=null&&(r<d||r===void 0&&d>=d)&&(r=d)}return r}function I(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 d of t)(d=e(d,++o,t))!=null&&(r>d||r===void 0&&d>=d)&&(r=d)}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 K(){return!this.__axis}function ut(t,e){var r=[],o=null,d=null,p=6,m=6,b=3,S=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,T=t===1||t===4?-1:1,O=t===4||t===2?"x":"y",j=t===1||t===3?W:H;function F(U){var it=o==null?e.ticks?e.ticks.apply(e,r):e.domain():o,yt=d==null?e.tickFormat?e.tickFormat.apply(e,r):N:d,vt=Math.max(p,0)+b,xt=e.range(),mt=+xt[0]+S,ot=+xt[xt.length-1]+S,Ht=(e.bandwidth?X:V)(e.copy(),S),Dt=U.selection?U.selection():U,ft=Dt.selectAll(".domain").data([null]),Nt=Dt.selectAll(".tick").data(it,e).order(),Kt=Nt.exit(),St=Nt.enter().append("g").attr("class","tick"),wt=Nt.select("line"),jt=Nt.select("text");ft=ft.merge(ft.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Nt=Nt.merge(St),wt=wt.merge(St.append("line").attr("stroke","currentColor").attr(O+"2",T*p)),jt=jt.merge(St.append("text").attr("fill","currentColor").attr(O,T*vt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),U!==Dt&&(ft=ft.transition(U),Nt=Nt.transition(U),wt=wt.transition(U),jt=jt.transition(U),Kt=Kt.transition(U).attr("opacity",P).attr("transform",function(Ct){return isFinite(Ct=Ht(Ct))?j(Ct+S):this.getAttribute("transform")}),St.attr("opacity",P).attr("transform",function(Ct){var Jt=this.parentNode.__axis;return j((Jt&&isFinite(Jt=Jt(Ct))?Jt:Ht(Ct))+S)})),Kt.remove(),ft.attr("d",t===4||t===2?m?"M"+T*m+","+mt+"H"+S+"V"+ot+"H"+T*m:"M"+S+","+mt+"V"+ot:m?"M"+mt+","+T*m+"V"+S+"H"+ot+"V"+T*m:"M"+mt+","+S+"H"+ot),Nt.attr("opacity",1).attr("transform",function(Ct){return j(Ht(Ct)+S)}),wt.attr(O+"2",T*p),jt.attr(O,T*vt).text(yt),Dt.filter(K).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),Dt.each(function(){this.__axis=Ht})}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?(d=U,F):d},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 Tt(t){return t==null?tt:function(){return this.querySelector(t)}}function ht(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function dt(){return[]}function _t(t){return t==null?dt:function(){return this.querySelectorAll(t)}}function J(t){return function(){return this.matches(t)}}function bt(t){return function(e){return e.matches(t)}}var Pt=Array.prototype.find;function kt(){return this.firstElementChild}var Ot=Array.prototype.filter;function st(){return Array.from(this.children)}function ae(t){return new Array(t.length)}function Yt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function _e(t){return function(){return t}}function pe(t,e,r,o,d,p){for(var m,b=0,S=e.length,T=p.length;b<T;++b)(m=e[b])?(m.__data__=p[b],o[b]=m):r[b]=new Yt(t,p[b]);for(;b<S;++b)(m=e[b])&&(d[b]=m)}function de(t,e,r,o,d,p,m){var b,S,T,O=new Map,j=e.length,F=p.length,U=new Array(j);for(b=0;b<j;++b)(S=e[b])&&(U[b]=T=m.call(S,S.__data__,b,e)+"",O.has(T)?d[b]=S:O.set(T,S));for(b=0;b<F;++b)T=m.call(t,p[b],b,p)+"",(S=O.get(T))?(o[b]=S,S.__data__=p[b],O.delete(T)):r[b]=new Yt(t,p[b]);for(b=0;b<j;++b)(S=e[b])&&O.get(U[b])===S&&(d[b]=S)}function Bt(t){return t.__data__}function zt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ce(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Yt.prototype={constructor:Yt,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 he="http://www.w3.org/1999/xhtml";const ge={svg:"http://www.w3.org/2000/svg",xhtml:he,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function It(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 We(t){return function(){this.removeAttribute(t)}}function oe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Wt(t,e){return function(){this.setAttribute(t,e)}}function Gt(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 re(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 Mt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function qt(t){return function(){this.style.removeProperty(t)}}function $t(t,e,r){return function(){this.style.setProperty(t,e,r)}}function At(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)||Mt(t).getComputedStyle(t,null).getPropertyValue(e)}function tn(t){return function(){delete this[t]}}function ye(t,e){return function(){this[t]=e}}function Re(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function un(t){return t.trim().split(/^|\s+/)}function Ve(t){return t.classList||new Oe(t)}function Oe(t){this._node=t,this._names=un(t.getAttribute("class")||"")}function ke(t,e){for(var r=Ve(t),o=-1,d=e.length;++o<d;)r.add(e[o])}function Ke(t,e){for(var r=Ve(t),o=-1,d=e.length;++o<d;)r.remove(e[o])}function Ye(t){return function(){ke(this,t)}}function Ge(t){return function(){Ke(this,t)}}function Xe(t,e){return function(){(e.apply(this,arguments)?ke:Ke)(this,t)}}function De(){this.textContent=""}function Un(t){return function(){this.textContent=t}}function Te(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function en(){this.innerHTML=""}function bn(t){return function(){this.innerHTML=t}}function Ir(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function xn(){this.nextSibling&&this.parentNode.appendChild(this)}function tr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cn(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===he&&e.documentElement.namespaceURI===he?e.createElement(t):e.createElementNS(r,t)}}function yn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ze(t){var e=It(t);return(e.local?yn:cn)(e)}function Sn(){return null}function Tn(){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 Wn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Dr(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 En(t){return function(){var e=this.__on;if(e){for(var r,o=0,d=-1,p=e.length;o<p;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++d]=r:this.removeEventListener(r.type,r.listener,r.options);++d?e.length=d:delete this.__on}}}function qn(t,e,r){return function(){var o,d=this.__on,p=function(S){return function(T){S.call(this,T,this.__data__)}}(e);if(d){for(var m=0,b=d.length;m<b;++m)if((o=d[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},d?d.push(o):this.__on=[o]}}function Pn(t,e,r){var o=Mt(t),d=o.CustomEvent;typeof d=="function"?d=new d(e,r):(d=o.document.createEvent("Event"),r?(d.initEvent(e,r.bubbles,r.cancelable),d.detail=r.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function Gn(t,e){return function(){return Pn(this,t,e)}}function Xn(t,e){return function(){return Pn(this,t,e.apply(this,arguments))}}Oe.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 er=[null];function Nn(t,e){this._groups=t,this._parents=e}function Ln(){return new Nn([[document.documentElement]],er)}Nn.prototype=Ln.prototype={constructor:Nn,select:function(t){typeof t!="function"&&(t=Tt(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m,b=e[d],S=b.length,T=o[d]=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__),T[O]=m);return new Nn(o,this._parents)},selectAll:function(t){t=typeof t=="function"?function(O){return function(){return ht(O.apply(this,arguments))}}(t):_t(t);for(var e=this._groups,r=e.length,o=[],d=[],p=0;p<r;++p)for(var m,b=e[p],S=b.length,T=0;T<S;++T)(m=b[T])&&(o.push(t.call(m,m.__data__,T,b)),d.push(m));return new Nn(o,d)},selectChild:function(t){return this.select(t==null?kt:function(e){return function(){return Pt.call(this.children,e)}}(typeof t=="function"?t:bt(t)))},selectChildren:function(t){return this.selectAll(t==null?st:function(e){return function(){return Ot.call(this.children,e)}}(typeof t=="function"?t:bt(t)))},filter:function(t){typeof t!="function"&&(t=J(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m=e[d],b=m.length,S=o[d]=[],T=0;T<b;++T)(p=m[T])&&t.call(p,p.__data__,T,m)&&S.push(p);return new Nn(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Bt);var r=e?de:pe,o=this._parents,d=this._groups;typeof t!="function"&&(t=_e(t));for(var p=d.length,m=new Array(p),b=new Array(p),S=new Array(p),T=0;T<p;++T){var O=o[T],j=d[T],F=j.length,U=zt(t.call(O,O&&O.__data__,T,o)),it=U.length,yt=b[T]=new Array(it),vt=m[T]=new Array(it),xt=S[T]=new Array(F);r(O,j,yt,vt,xt,U,e);for(var mt,ot,Ht=0,Dt=0;Ht<it;++Ht)if(mt=yt[Ht]){for(Ht>=Dt&&(Dt=Ht+1);!(ot=vt[Dt])&&++Dt<it;);mt._next=ot||null}}return(m=new Nn(m,o))._enter=b,m._exit=S,m},enter:function(){return new Nn(this._enter||this._groups.map(ae),this._parents)},exit:function(){return new Nn(this._exit||this._groups.map(ae),this._parents)},join:function(t,e,r){var o=this.enter(),d=this,p=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),r==null?p.remove():r(p),o&&d?o.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,d=r.length,p=o.length,m=Math.min(d,p),b=new Array(d),S=0;S<m;++S)for(var T,O=r[S],j=o[S],F=O.length,U=b[S]=new Array(F),it=0;it<F;++it)(T=O[it]||j[it])&&(U[it]=T);for(;S<d;++S)b[S]=r[S];return new Nn(b,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,d=t[e],p=d.length-1,m=d[p];--p>=0;)(o=d[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=ce);for(var r=this._groups,o=r.length,d=new Array(o),p=0;p<o;++p){for(var m,b=r[p],S=b.length,T=d[p]=new Array(S),O=0;O<S;++O)(m=b[O])&&(T[O]=m);T.sort(e)}return new Nn(d,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],d=0,p=o.length;d<p;++d){var m=o[d];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 d,p=e[r],m=0,b=p.length;m<b;++m)(d=p[m])&&t.call(d,d.__data__,m,p);return this},attr:function(t,e){var r=It(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?oe:We:typeof e=="function"?r.local?re:rt:r.local?Gt:Wt)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?qt:typeof e=="function"?At:$t)(t,e,r==null?"":r)):ne(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?tn:typeof e=="function"?Re:ye)(t,e)):this.node()[t]},classed:function(t,e){var r=un(t+"");if(arguments.length<2){for(var o=Ve(this.node()),d=-1,p=r.length;++d<p;)if(!o.contains(r[d]))return!1;return!0}return this.each((typeof e=="function"?Xe:e?Ye:Ge)(r,e))},text:function(t){return arguments.length?this.each(t==null?De:(typeof t=="function"?Te:Un)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?en:(typeof t=="function"?Ir:bn)(t)):this.node().innerHTML},raise:function(){return this.each(xn)},lower:function(){return this.each(tr)},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?Sn:typeof e=="function"?e:Tt(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function(){return this.each(Tn)},clone:function(t){return this.select(t?Wn:zn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,d,p=Dr(t+""),m=p.length;if(!(arguments.length<2)){for(b=e?qn:En,o=0;o<m;++o)this.each(b(p[o],e,r));return this}var b=this.node().__on;if(b){for(var S,T=0,O=b.length;T<O;++T)for(o=0,S=b[T];o<m;++o)if((d=p[o]).type===S.type&&d.name===S.name)return S.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Xn:Gn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,d=t[e],p=0,m=d.length;p<m;++p)(o=d[p])&&(yield o)}};const ln=Ln;var Yn={value:()=>{}};function vn(){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 ii(o)}function ii(t){this._=t}function yr(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",d=r.indexOf(".");if(d>=0&&(o=r.slice(d+1),r=r.slice(0,d)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}function Ji(t,e){for(var r,o=0,d=t.length;o<d;++o)if((r=t[o]).name===e)return r.value}function In(t,e,r){for(var o=0,d=t.length;o<d;++o)if(t[o].name===e){t[o]=Yn,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}ii.prototype=vn.prototype={constructor:ii,on:function(t,e){var r,o=this._,d=yr(t+"",o),p=-1,m=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++p<m;)if(r=(t=d[p]).type)o[r]=In(o[r],t.name,e);else if(e==null)for(r in o)o[r]=In(o[r],t.name,null);return this}for(;++p<m;)if((r=(t=d[p]).type)&&(r=Ji(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ii(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,d=new Array(r),p=0;p<r;++p)d[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,d)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],d=0,p=o.length;d<p;++d)o[d].value.apply(e,r)}};const ko=vn;var ga,ai,Rr=0,zr=0,Xr=0,Jr=0,Nr=0,Kr=0,Fr=typeof performance=="object"&&performance.now?performance:Date,Li=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function hi(){return Nr||(Li(rr),Nr=Fr.now()+Kr)}function rr(){Nr=0}function $r(){this._call=this._time=this._next=null}function ya(t,e,r){var o=new $r;return o.restart(t,e,r),o}function ti(){Nr=(Jr=Fr.now())+Kr,Rr=zr=0;try{(function(){hi(),++Rr;for(var t,e=ga;e;)(t=Nr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rr})()}finally{Rr=0,function(){for(var t,e,r=ga,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:ga=e);ai=t,lo(o)}(),Nr=0}}function ma(){var t=Fr.now(),e=t-Jr;e>1e3&&(Kr-=e,Jr=t)}function lo(t){Rr||(zr&&(zr=clearTimeout(zr)),t-Nr>24?(t<1/0&&(zr=setTimeout(ti,t-Fr.now()-Kr)),Xr&&(Xr=clearInterval(Xr))):(Xr||(Jr=Fr.now(),Xr=setInterval(ma,1e3)),Rr=1,Li(ti)))}function fi(t,e,r){var o=new $r;return e=e==null?0:+e,o.restart(d=>{o.stop(),t(d+e)},e,r),o}$r.prototype=ya.prototype={constructor:$r,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?hi():+r)+(e==null?0:+e),this._next||ai===this||(ai?ai._next=this:ga=this,ai=this),this._call=t,this._time=r,lo()},stop:function(){this._call&&(this._call=null,this._time=1/0,lo())}};var nn=ko("start","end","cancel","interrupt"),Zn=[];function Mn(t,e,r,o,d,p){var m=t.__transition;if(m){if(r in m)return}else t.__transition={};(function(b,S,T){var O,j=b.__transition;function F(yt){var vt,xt,mt,ot;if(T.state!==1)return it();for(vt in j)if((ot=j[vt]).name===T.name){if(ot.state===3)return fi(F);ot.state===4?(ot.state=6,ot.timer.stop(),ot.on.call("interrupt",b,b.__data__,ot.index,ot.group),delete j[vt]):+vt<S&&(ot.state=6,ot.timer.stop(),ot.on.call("cancel",b,b.__data__,ot.index,ot.group),delete j[vt])}if(fi(function(){T.state===3&&(T.state=4,T.timer.restart(U,T.delay,T.time),U(yt))}),T.state=2,T.on.call("start",b,b.__data__,T.index,T.group),T.state===2){for(T.state=3,O=new Array(mt=T.tween.length),vt=0,xt=-1;vt<mt;++vt)(ot=T.tween[vt].value.call(b,b.__data__,T.index,T.group))&&(O[++xt]=ot);O.length=xt+1}}function U(yt){for(var vt=yt<T.duration?T.ease.call(null,yt/T.duration):(T.timer.restart(it),T.state=5,1),xt=-1,mt=O.length;++xt<mt;)O[xt].call(b,vt);T.state===5&&(T.on.call("end",b,b.__data__,T.index,T.group),it())}function it(){for(var yt in T.state=6,T.timer.stop(),delete j[S],j)return;delete b.__transition}j[S]=T,T.timer=ya(function(yt){T.state=1,T.timer.restart(F,T.delay,T.time),T.delay<=yt&&F(yt-T.delay)},0,T.time)})(t,r,{name:e,index:o,group:d,on:nn,tween:Zn,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function Be(t,e){var r=gt(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Qn(t,e){var r=gt(t,e);if(r.state>3)throw new Error("too late; already running");return r}function gt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Zr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Xt,Ii=180/Math.PI,fa={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qa(t,e,r,o,d,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:d,translateY:p,rotate:Math.atan2(e,t)*Ii,skewX:Math.atan(S)*Ii,scaleX:m,scaleY:b}}function ho(t,e,r,o){function d(p){return p.length?p.pop()+" ":""}return function(p,m){var b=[],S=[];return p=t(p),m=t(m),function(T,O,j,F,U,it){if(T!==j||O!==F){var yt=U.push("translate(",null,e,null,r);it.push({i:yt-4,x:Zr(T,j)},{i:yt-2,x:Zr(O,F)})}else(j||F)&&U.push("translate("+j+e+F+r)}(p.translateX,p.translateY,m.translateX,m.translateY,b,S),function(T,O,j,F){T!==O?(T-O>180?O+=360:O-T>180&&(T+=360),F.push({i:j.push(d(j)+"rotate(",null,o)-2,x:Zr(T,O)})):O&&j.push(d(j)+"rotate("+O+o)}(p.rotate,m.rotate,b,S),function(T,O,j,F){T!==O?F.push({i:j.push(d(j)+"skewX(",null,o)-2,x:Zr(T,O)}):O&&j.push(d(j)+"skewX("+O+o)}(p.skewX,m.skewX,b,S),function(T,O,j,F,U,it){if(T!==j||O!==F){var yt=U.push(d(U)+"scale(",null,",",null,")");it.push({i:yt-4,x:Zr(T,j)},{i:yt-2,x:Zr(O,F)})}else j===1&&F===1||U.push(d(U)+"scale("+j+","+F+")")}(p.scaleX,p.scaleY,m.scaleX,m.scaleY,b,S),p=m=null,function(T){for(var O,j=-1,F=S.length;++j<F;)b[(O=S[j]).i]=O.x(T);return b.join("")}}}var To=ho(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?fa:qa(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Eo=ho(function(t){return t==null?fa:(Xt||(Xt=document.createElementNS("http://www.w3.org/2000/svg","g")),Xt.setAttribute("transform",t),(t=Xt.transform.baseVal.consolidate())?qa((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):fa)},", ",")",")");function Vr(t,e){var r,o;return function(){var d=Qn(this,t),p=d.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}}d.tween=o}}function Ki(t,e,r){var o,d;if(typeof r!="function")throw new Error;return function(){var p=Qn(this,t),m=p.tween;if(m!==o){d=(o=m).slice();for(var b={name:e,value:r},S=0,T=d.length;S<T;++S)if(d[S].name===e){d[S]=b;break}S===T&&d.push(b)}p.tween=d}}function An(t,e,r){var o=t._id;return t.each(function(){var d=Qn(this,o);(d.value||(d.value={}))[e]=r.apply(this,arguments)}),function(d){return gt(d,o).value[e]}}function Ba(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function $a(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function mr(){}var Sr=.7,bi=1/Sr,ei="\\s*([+-]?\\d+)\\s*",Wr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",di=/^#([0-9a-f]{3,8})$/,Qr=new RegExp("^rgb\\("+[ei,ei,ei]+"\\)$"),ta=new RegExp("^rgb\\("+[Hr,Hr,Hr]+"\\)$"),Wi=new RegExp("^rgba\\("+[ei,ei,ei,Wr]+"\\)$"),Ri=new RegExp("^rgba\\("+[Hr,Hr,Hr,Wr]+"\\)$"),fo=new RegExp("^hsl\\("+[Wr,Hr,Hr]+"\\)$"),Rt=new RegExp("^hsla\\("+[Wr,Hr,Hr,Wr]+"\\)$"),je={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 vr(){return this.rgb().formatRgb()}function _r(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=di.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?xi(e):r===3?new Ai(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?ni(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?ni(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=Qr.exec(t))?new Ai(e[1],e[2],e[3],1):(e=ta.exec(t))?new Ai(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Wi.exec(t))?ni(e[1],e[2],e[3],e[4]):(e=Ri.exec(t))?ni(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=fo.exec(t))?po(e[1],e[2]/100,e[3]/100,1):(e=Rt.exec(t))?po(e[1],e[2]/100,e[3]/100,e[4]):je.hasOwnProperty(t)?xi(je[t]):t==="transparent"?new Ai(NaN,NaN,NaN,0):null}function xi(t){return new Ai(t>>16&255,t>>8&255,255&t,1)}function ni(t,e,r,o){return o<=0&&(t=e=r=NaN),new Ai(t,e,r,o)}function cc(t){return t instanceof mr||(t=_r(t)),t?new Ai((t=t.rgb()).r,t.g,t.b,t.opacity):new Ai}function wi(t,e,r,o){return arguments.length===1?cc(t):new Ai(t,e,r,o==null?1:o)}function Ai(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function uc(){return"#"+Kc(this.r)+Kc(this.g)+Kc(this.b)}function Va(){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 Kc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function po(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 tu(t){if(t instanceof Hi)return new Hi(t.h,t.s,t.l,t.opacity);if(t instanceof mr||(t=_r(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,d=Math.min(e,r,o),p=Math.max(e,r,o),m=NaN,b=p-d,S=(p+d)/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+d:2-p-d,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 ri(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Ba(mr,_r,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHsl:function(){return tu(this).formatHsl()},formatRgb:vr,toString:vr}),Ba(Ai,wi,$a(mr,{brighter:function(t){return t=t==null?bi:Math.pow(bi,t),new Ai(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Sr:Math.pow(Sr,t),new Ai(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:uc,formatHex:uc,formatRgb:Va,toString:Va})),Ba(Hi,function(t,e,r,o){return arguments.length===1?tu(t):new Hi(t,e,r,o==null?1:o)},$a(mr,{brighter:function(t){return t=t==null?bi:Math.pow(bi,t),new Hi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Sr:Math.pow(Sr,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,d=2*r-o;return new Ai(ri(t>=240?t-240:t+120,d,o),ri(t,d,o),ri(t<120?t+240:t-120,d,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 tl=t=>()=>t;function el(t,e){var r=e-t;return r?function(o,d){return function(p){return o+p*d}}(t,r):tl(isNaN(t)?e:t)}const nl=function t(e){var r=function(d){return(d=+d)==1?el:function(p,m){return m-p?function(b,S,T){return b=Math.pow(b,T),S=Math.pow(S,T)-b,T=1/T,function(O){return Math.pow(b+O*S,T)}}(p,m,d):tl(isNaN(p)?m:p)}}(e);function o(d,p){var m=r((d=wi(d)).r,(p=wi(p)).r),b=r(d.g,p.g),S=r(d.b,p.b),T=el(d.opacity,p.opacity);return function(O){return d.r=m(O),d.g=b(O),d.b=S(O),d.opacity=T(O),d+""}}return o.gamma=t,o}(1);var Ga=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rl=new RegExp(Ga.source,"g");function il(t,e){var r,o,d,p=Ga.lastIndex=rl.lastIndex=0,m=-1,b=[],S=[];for(t+="",e+="";(r=Ga.exec(t))&&(o=rl.exec(e));)(d=o.index)>p&&(d=e.slice(p,d),b[m]?b[m]+=d:b[++m]=d),(r=r[0])===(o=o[0])?b[m]?b[m]+=o:b[++m]=o:(b[++m]=null,S.push({i:m,x:Zr(r,o)})),p=rl.lastIndex;return p<e.length&&(d=e.slice(p),b[m]?b[m]+=d:b[++m]=d),b.length<2?S[0]?function(T){return function(O){return T(O)+""}}(S[0].x):function(T){return function(){return T}}(e):(e=S.length,function(T){for(var O,j=0;j<e;++j)b[(O=S[j]).i]=O.x(T);return b.join("")})}function Xa(t,e){var r;return(typeof e=="number"?Zr:e instanceof _r?nl:(r=_r(e))?(e=r,nl):il)(t,e)}function Ie(t){return function(){this.removeAttribute(t)}}function Eh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Or(t,e,r){var o,d,p=r+"";return function(){var m=this.getAttribute(t);return m===p?null:m===o?d:d=e(o=m,r)}}function eu(t,e,r){var o,d,p=r+"";return function(){var m=this.getAttributeNS(t.space,t.local);return m===p?null:m===o?d:d=e(o=m,r)}}function nu(t,e,r){var o,d,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttribute(t))===(b=S+"")?null:m===o&&b===d?p:(d=b,p=e(o=m,S));this.removeAttribute(t)}}function al(t,e,r){var o,d,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===d?p:(d=b,p=e(o=m,S));this.removeAttributeNS(t.space,t.local)}}function La(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function ki(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function lc(t,e){var r,o;function d(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&ki(t,p)),r}return d._value=e,d}function Sh(t,e){var r,o;function d(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&La(t,p)),r}return d._value=e,d}function ol(t,e){return function(){Be(this,t).delay=+e.apply(this,arguments)}}function So(t,e){return e=+e,function(){Be(this,t).delay=e}}function Ch(t,e){return function(){Qn(this,t).duration=+e.apply(this,arguments)}}function kd(t,e){return e=+e,function(){Qn(this,t).duration=e}}function mp(t,e){if(typeof e!="function")throw new Error;return function(){Qn(this,t).ease=e}}function Td(t,e,r){var o,d,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)?Be:Qn;return function(){var m=p(this,t),b=m.on;b!==o&&(d=(o=b).copy()).on(e,r),m.on=d}}var Ed=ln.prototype.constructor;function va(t){return function(){this.style.removeProperty(t)}}function Sd(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Mh(t,e,r){var o,d;function p(){var m=e.apply(this,arguments);return m!==d&&(o=(d=m)&&Sd(t,m,r)),o}return p._value=e,p}function Ah(t){return function(e){this.textContent=t.call(this,e)}}function Co(t){var e,r;function o(){var d=t.apply(this,arguments);return d!==r&&(e=(r=d)&&Ah(d)),e}return o._value=t,o}var ru=0;function Za(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function iu(){return++ru}var _a=ln.prototype;Za.prototype={constructor:Za,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Tt(t));for(var o=this._groups,d=o.length,p=new Array(d),m=0;m<d;++m)for(var b,S,T=o[m],O=T.length,j=p[m]=new Array(O),F=0;F<O;++F)(b=T[F])&&(S=t.call(b,b.__data__,F,T))&&("__data__"in b&&(S.__data__=b.__data__),j[F]=S,Mn(j[F],e,r,F,j,gt(b,r)));return new Za(p,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=_t(t));for(var o=this._groups,d=o.length,p=[],m=[],b=0;b<d;++b)for(var S,T=o[b],O=T.length,j=0;j<O;++j)if(S=T[j]){for(var F,U=t.call(S,S.__data__,j,T),it=gt(S,r),yt=0,vt=U.length;yt<vt;++yt)(F=U[yt])&&Mn(F,e,r,yt,U,it);p.push(U),m.push(S)}return new Za(p,m,e,r)},selectChild:_a.selectChild,selectChildren:_a.selectChildren,filter:function(t){typeof t!="function"&&(t=J(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m=e[d],b=m.length,S=o[d]=[],T=0;T<b;++T)(p=m[T])&&t.call(p,p.__data__,T,m)&&S.push(p);return new Za(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,d=r.length,p=Math.min(o,d),m=new Array(o),b=0;b<p;++b)for(var S,T=e[b],O=r[b],j=T.length,F=m[b]=new Array(j),U=0;U<j;++U)(S=T[U]||O[U])&&(F[U]=S);for(;b<o;++b)m[b]=e[b];return new Za(m,this._parents,this._name,this._id)},selection:function(){return new Ed(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=iu(),o=this._groups,d=o.length,p=0;p<d;++p)for(var m,b=o[p],S=b.length,T=0;T<S;++T)if(m=b[T]){var O=gt(m,e);Mn(m,t,r,T,b,{time:O.time+O.delay+O.duration,delay:0,duration:O.duration,ease:O.ease})}return new Za(o,this._parents,t,r)},call:_a.call,nodes:_a.nodes,node:_a.node,size:_a.size,empty:_a.empty,each:_a.each,on:function(t,e){var r=this._id;return arguments.length<2?gt(this.node(),r).on.on(t):this.each(Td(r,t,e))},attr:function(t,e){var r=It(t),o=r==="transform"?Eo:Xa;return this.attrTween(t,typeof e=="function"?(r.local?al:nu)(r,o,An(this,"attr."+t,e)):e==null?(r.local?Eh:Ie)(r):(r.local?eu:Or)(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=It(t);return this.tween(r,(o.local?lc:Sh)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?To:Xa;return e==null?this.styleTween(t,function(d,p){var m,b,S;return function(){var T=ne(this,d),O=(this.style.removeProperty(d),ne(this,d));return T===O?null:T===m&&O===b?S:S=p(m=T,b=O)}}(t,o)).on("end.style."+t,va(t)):typeof e=="function"?this.styleTween(t,function(d,p,m){var b,S,T;return function(){var O=ne(this,d),j=m(this),F=j+"";return j==null&&(this.style.removeProperty(d),F=j=ne(this,d)),O===F?null:O===b&&F===S?T:(S=F,T=p(b=O,j))}}(t,o,An(this,"style."+t,e))).each(function(d,p){var m,b,S,T,O="style."+p,j="end."+O;return function(){var F=Qn(this,d),U=F.on,it=F.value[O]==null?T||(T=va(p)):void 0;U===m&&S===it||(b=(m=U).copy()).on(j,S=it),F.on=b}}(this._id,t)):this.styleTween(t,function(d,p,m){var b,S,T=m+"";return function(){var O=ne(this,d);return O===T?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,Mh(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}}(An(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,Co(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,d=gt(this.node(),r).tween,p=0,m=d.length;p<m;++p)if((o=d[p]).name===t)return o.value;return null}return this.each((e==null?Vr:Ki)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ol:So)(e,t)):gt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Ch:kd)(e,t)):gt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(mp(e,t)):gt(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;Qn(this,e).ease=o}}(this._id,t))},end:function(){var t,e,r=this,o=r._id,d=r.size();return new Promise(function(p,m){var b={value:m},S={value:function(){--d==0&&p()}};r.each(function(){var T=Qn(this,o),O=T.on;O!==t&&((e=(t=O).copy())._.cancel.push(b),e._.interrupt.push(b),e._.end.push(S)),T.on=e}),d===0&&p()})},[Symbol.iterator]:_a[Symbol.iterator]};var Ds={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function sl(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}ln.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var o,d,p,m=e.__transition,b=!0;if(m){for(p in r=r==null?null:r+"",m)(o=m[p]).name===r?(d=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(d?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete m[p]):b=!1;b&&delete e.__transition}})(this,t)})},ln.prototype.transition=function(t){var e,r;t instanceof Za?(e=t._id,t=t._name):(e=iu(),(r=Ds).time=hi(),t=t==null?null:t+"");for(var o=this._groups,d=o.length,p=0;p<d;++p)for(var m,b=o[p],S=b.length,T=0;T<S;++T)(m=b[T])&&Mn(m,t,e,T,b,r||sl(m,e));return new Za(o,this._parents,t,e)};function Mo(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function qi(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function pi(){}var Qa=.7,Ia=1/Qa,ea="\\s*([+-]?\\d+)\\s*",Hn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",M="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R=/^#([0-9a-f]{3,8})$/,$=new RegExp("^rgb\\("+[ea,ea,ea]+"\\)$"),at=new RegExp("^rgb\\("+[M,M,M]+"\\)$"),Vt=new RegExp("^rgba\\("+[ea,ea,ea,Hn]+"\\)$"),fe=new RegExp("^rgba\\("+[M,M,M,Hn]+"\\)$"),xe=new RegExp("^hsl\\("+[Hn,M,M]+"\\)$"),Ee=new RegExp("^hsla\\("+[Hn,M,M,Hn]+"\\)$"),Ce={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 Pe(){return this.rgb().formatHex()}function qe(){return this.rgb().formatRgb()}function kn(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 ur(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?hr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?hr(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=$.exec(t))?new ur(e[1],e[2],e[3],1):(e=at.exec(t))?new ur(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Vt.exec(t))?hr(e[1],e[2],e[3],e[4]):(e=fe.exec(t))?hr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=xe.exec(t))?vp(e[1],e[2]/100,e[3]/100,1):(e=Ee.exec(t))?vp(e[1],e[2]/100,e[3]/100,e[4]):Ce.hasOwnProperty(t)?dn(Ce[t]):t==="transparent"?new ur(NaN,NaN,NaN,0):null}function dn(t){return new ur(t>>16&255,t>>8&255,255&t,1)}function hr(t,e,r,o){return o<=0&&(t=e=r=NaN),new ur(t,e,r,o)}function dr(t){return t instanceof pi||(t=kn(t)),t?new ur((t=t.rgb()).r,t.g,t.b,t.opacity):new ur}function Br(t,e,r,o){return arguments.length===1?dr(t):new ur(t,e,r,o==null?1:o)}function ur(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function ba(){return"#"+Dh(this.r)+Dh(this.g)+Dh(this.b)}function Ns(){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 Dh(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function vp(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ao(t,e,r,o)}function Nh(t){if(t instanceof Ao)return new Ao(t.h,t.s,t.l,t.opacity);if(t instanceof pi||(t=kn(t)),!t)return new Ao;if(t instanceof Ao)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,d=Math.min(e,r,o),p=Math.max(e,r,o),m=NaN,b=p-d,S=(p+d)/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+d:2-p-d,m*=60):b=S>0&&S<1?0:m,new Ao(m,b,S,t.opacity)}function Ao(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function Oh(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Mo(pi,kn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Pe,formatHex:Pe,formatHsl:function(){return Nh(this).formatHsl()},formatRgb:qe,toString:qe}),Mo(ur,Br,qi(pi,{brighter:function(t){return t=t==null?Ia:Math.pow(Ia,t),new ur(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Qa:Math.pow(Qa,t),new ur(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:ba,formatHex:ba,formatRgb:Ns,toString:Ns})),Mo(Ao,function(t,e,r,o){return arguments.length===1?Nh(t):new Ao(t,e,r,o==null?1:o)},qi(pi,{brighter:function(t){return t=t==null?Ia:Math.pow(Ia,t),new Ao(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Qa:Math.pow(Qa,t),new Ao(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,d=2*r-o;return new ur(Oh(t>=240?t-240:t+120,d,o),Oh(t,d,o),Oh(t<120?t+240:t-120,d,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,_p=.96422,bp=.82521,vm=4/29,xp=6/29,Cd=3*xp*xp;function wp(t){if(t instanceof ts)return new ts(t.l,t.a,t.b,t.opacity);if(t instanceof Os)return _m(t);t instanceof ur||(t=dr(t));var e,r,o=Sp(t.r),d=Sp(t.g),p=Sp(t.b),m=kp((.2225045*o+.7168786*d+.0606169*p)/1);return o===d&&d===p?e=r=m:(e=kp((.4360747*o+.3850649*d+.1430804*p)/_p),r=kp((.0139322*o+.0971045*d+.7141733*p)/bp)),new ts(116*m-16,500*(e-m),200*(m-r),t.opacity)}function ts(t,e,r,o){this.l=+t,this.a=+e,this.b=+r,this.opacity=+o}function kp(t){return t>.008856451679035631?Math.pow(t,1/3):t/Cd+vm}function Tp(t){return t>xp?t*t*t:Cd*(t-vm)}function Ep(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Sp(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function c4(t){if(t instanceof Os)return new Os(t.h,t.c,t.l,t.opacity);if(t instanceof ts||(t=wp(t)),t.a===0&&t.b===0)return new Os(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*mm;return new Os(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Cp(t,e,r,o){return arguments.length===1?c4(t):new Os(t,e,r,o==null?1:o)}function Os(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 ts(t.l,0,0,t.opacity);var e=t.h*ym;return new ts(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Mo(ts,function(t,e,r,o){return arguments.length===1?wp(t):new ts(t,e,r,o==null?1:o)},qi(pi,{brighter:function(t){return new ts(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new ts(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 ur(Ep(3.1338561*(e=_p*Tp(e))-1.6168667*(t=1*Tp(t))-.4906146*(r=bp*Tp(r))),Ep(-.9787684*e+1.9161415*t+.033454*r),Ep(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),Mo(Os,Cp,qi(pi,{brighter:function(t){return new Os(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new Os(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return _m(this).rgb()}}));const Mp=t=>()=>t;function bm(t,e){return function(r){return t+r*e}}function Bh(t,e){var r=e-t;return r?bm(t,r):Mp(isNaN(t)?e:t)}function u4(t){return function(e,r){var o=t((e=Cp(e)).h,(r=Cp(r)).h),d=Bh(e.c,r.c),p=Bh(e.l,r.l),m=Bh(e.opacity,r.opacity);return function(b){return e.h=o(b),e.c=d(b),e.l=p(b),e.opacity=m(b),e+""}}}const l4=u4(function(t,e){var r=e-t;return r?bm(t,r>180||r<-180?r-360*Math.round(r/360):r):Mp(isNaN(t)?e:t)});var Ap=Math.sqrt(50),Dp=Math.sqrt(10),Np=Math.sqrt(2);function Op(t,e,r){var o=(e-t)/Math.max(0,r),d=Math.floor(Math.log(o)/Math.LN10),p=o/Math.pow(10,d);return d>=0?(p>=Ap?10:p>=Dp?5:p>=Np?2:1)*Math.pow(10,d):-Math.pow(10,-d)/(p>=Ap?10:p>=Dp?5:p>=Np?2:1)}function Bp(t,e,r){var o=Math.abs(e-t)/Math.max(0,r),d=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),p=o/d;return p>=Ap?d*=10:p>=Dp?d*=5:p>=Np&&(d*=2),e<t?-d:d}function Lp(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ip(t){let e=t,r=t,o=t;function d(p,m,b=0,S=p.length){if(b<S){if(r(m,m)!==0)return S;do{const T=b+S>>>1;o(p[T],m)<0?b=T+1:S=T}while(b<S)}return b}return t.length!==2&&(e=(p,m)=>t(p)-m,r=Lp,o=(p,m)=>Lp(t(p),m)),{left:d,center:function(p,m,b=0,S=p.length){const T=d(p,m,b,S-1);return T>b&&e(p[T-1],m)>-e(p[T],m)?T-1:T},right:function(p,m,b=0,S=p.length){if(b<S){if(r(m,m)!==0)return S;do{const T=b+S>>>1;o(p[T],m)<=0?b=T+1:S=T}while(b<S)}return b}}}const h4=Ip(Lp),f4=h4.right,es=(Ip(function(t){return t===null?NaN:+t}).center,f4);function Md(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Rp(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function ns(){}var Ad=.7,Dd=1.4285714285714286,hc="\\s*([+-]?\\d+)\\s*",au="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d4=/^#([0-9a-f]{3,8})$/,p4=new RegExp("^rgb\\("+[hc,hc,hc]+"\\)$"),Fp=new RegExp("^rgb\\("+[rs,rs,rs]+"\\)$"),g4=new RegExp("^rgba\\("+[hc,hc,hc,au]+"\\)$"),xm=new RegExp("^rgba\\("+[rs,rs,rs,au]+"\\)$"),Pp=new RegExp("^hsl\\("+[au,rs,rs]+"\\)$"),wm=new RegExp("^hsla\\("+[au,rs,rs,au]+"\\)$"),Nd={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 ou(){return this.rgb().formatHex()}function su(){return this.rgb().formatRgb()}function cl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=d4.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Od(e):r===3?new Ja(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Bd(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Bd(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=p4.exec(t))?new Ja(e[1],e[2],e[3],1):(e=Fp.exec(t))?new Ja(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=g4.exec(t))?Bd(e[1],e[2],e[3],e[4]):(e=xm.exec(t))?Bd(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Pp.exec(t))?km(e[1],e[2]/100,e[3]/100,1):(e=wm.exec(t))?km(e[1],e[2]/100,e[3]/100,e[4]):Nd.hasOwnProperty(t)?Od(Nd[t]):t==="transparent"?new Ja(NaN,NaN,NaN,0):null}function Od(t){return new Ja(t>>16&255,t>>8&255,255&t,1)}function Bd(t,e,r,o){return o<=0&&(t=e=r=NaN),new Ja(t,e,r,o)}function Ld(t){return t instanceof ns||(t=cl(t)),t?new Ja((t=t.rgb()).r,t.g,t.b,t.opacity):new Ja}function ul(t,e,r,o){return arguments.length===1?Ld(t):new Ja(t,e,r,o==null?1:o)}function Ja(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function is(){return"#"+Id(this.r)+Id(this.g)+Id(this.b)}function Yp(){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 Id(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function km(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ra(t,e,r,o)}function Tm(t){if(t instanceof Ra)return new Ra(t.h,t.s,t.l,t.opacity);if(t instanceof ns||(t=cl(t)),!t)return new Ra;if(t instanceof Ra)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,d=Math.min(e,r,o),p=Math.max(e,r,o),m=NaN,b=p-d,S=(p+d)/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+d:2-p-d,m*=60):b=S>0&&S<1?0:m,new Ra(m,b,S,t.opacity)}function Ra(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function jp(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Md(ns,cl,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ou,formatHex:ou,formatHsl:function(){return Tm(this).formatHsl()},formatRgb:su,toString:su}),Md(Ja,ul,Rp(ns,{brighter:function(t){return t=t==null?Dd:Math.pow(Dd,t),new Ja(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Ad:Math.pow(Ad,t),new Ja(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:is,formatHex:is,formatRgb:Yp,toString:Yp})),Md(Ra,function(t,e,r,o){return arguments.length===1?Tm(t):new Ra(t,e,r,o==null?1:o)},Rp(ns,{brighter:function(t){return t=t==null?Dd:Math.pow(Dd,t),new Ra(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Ad:Math.pow(Ad,t),new Ra(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,d=2*r-o;return new Ja(jp(t>=240?t-240:t+120,d,o),jp(t,d,o),jp(t<120?t+240:t-120,d,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 Up=t=>()=>t;function Em(t,e){var r=e-t;return r?function(o,d){return function(p){return o+p*d}}(t,r):Up(isNaN(t)?e:t)}const Rd=function t(e){var r=function(d){return(d=+d)==1?Em:function(p,m){return m-p?function(b,S,T){return b=Math.pow(b,T),S=Math.pow(S,T)-b,T=1/T,function(O){return Math.pow(b+O*S,T)}}(p,m,d):Up(isNaN(p)?m:p)}}(e);function o(d,p){var m=r((d=ul(d)).r,(p=ul(p)).r),b=r(d.g,p.g),S=r(d.b,p.b),T=Em(d.opacity,p.opacity);return function(O){return d.r=m(O),d.g=b(O),d.b=S(O),d.opacity=T(O),d+""}}return o.gamma=t,o}(1);function y4(t,e){var r,o=e?e.length:0,d=t?Math.min(o,t.length):0,p=new Array(d),m=new Array(o);for(r=0;r<d;++r)p[r]=Pd(t[r],e[r]);for(;r<o;++r)m[r]=e[r];return function(b){for(r=0;r<d;++r)m[r]=p[r](b);return m}}function m4(t,e){var r=new Date;return t=+t,e=+e,function(o){return r.setTime(t*(1-o)+e*o),r}}function Fd(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function v4(t,e){var r,o={},d={};for(r in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)r in t?o[r]=Pd(t[r],e[r]):d[r]=e[r];return function(p){for(r in o)d[r]=o[r](p);return d}}var zp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lh=new RegExp(zp.source,"g");function Sm(t,e){var r,o,d,p=zp.lastIndex=Lh.lastIndex=0,m=-1,b=[],S=[];for(t+="",e+="";(r=zp.exec(t))&&(o=Lh.exec(e));)(d=o.index)>p&&(d=e.slice(p,d),b[m]?b[m]+=d:b[++m]=d),(r=r[0])===(o=o[0])?b[m]?b[m]+=o:b[++m]=o:(b[++m]=null,S.push({i:m,x:Fd(r,o)})),p=Lh.lastIndex;return p<e.length&&(d=e.slice(p),b[m]?b[m]+=d:b[++m]=d),b.length<2?S[0]?function(T){return function(O){return T(O)+""}}(S[0].x):function(T){return function(){return T}}(e):(e=S.length,function(T){for(var O,j=0;j<e;++j)b[(O=S[j]).i]=O.x(T);return b.join("")})}function Cm(t,e){e||(e=[]);var r,o=t?Math.min(e.length,t.length):0,d=e.slice();return function(p){for(r=0;r<o;++r)d[r]=t[r]*(1-p)+e[r]*p;return d}}function Pd(t,e){var r,o,d=typeof e;return e==null||d==="boolean"?Up(e):(d==="number"?Fd:d==="string"?(r=cl(e))?(e=r,Rd):Sm:e instanceof cl?Rd:e instanceof Date?m4:(o=e,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(e)?y4:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?v4:Fd:Cm))(t,e)}function Yd(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Mm(t){return+t}var Wp=[0,1];function ll(t){return t}function Hp(t,e){return(e-=t=+t)?function(o){return(o-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function _4(t,e,r){var o=t[0],d=t[1],p=e[0],m=e[1];return d<o?(o=Hp(d,o),p=r(m,p)):(o=Hp(o,d),p=r(p,m)),function(b){return p(o(b))}}function qp(t,e,r){var o=Math.min(t.length,e.length)-1,d=new Array(o),p=new Array(o),m=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++m<o;)d[m]=Hp(t[m],t[m+1]),p[m]=r(e[m],e[m+1]);return function(b){var S=es(t,b,1,o)-1;return p[S](d[S](b))}}function jd(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ud(){return function(){var t,e,r,o,d,p,m=Wp,b=Wp,S=Pd,T=ll;function O(){var F,U,it,yt=Math.min(m.length,b.length);return T!==ll&&(F=m[0],U=m[yt-1],F>U&&(it=F,F=U,U=it),T=function(vt){return Math.max(F,Math.min(U,vt))}),o=yt>2?qp:_4,d=p=null,j}function j(F){return F==null||isNaN(F=+F)?r:(d||(d=o(m.map(t),b,S)))(t(T(F)))}return j.invert=function(F){return T(e((p||(p=o(b,m.map(t),Fd)))(F)))},j.domain=function(F){return arguments.length?(m=Array.from(F,Mm),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=Yd,O()},j.clamp=function(F){return arguments.length?(T=!!F||ll,O()):T!==ll},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()}}()(ll,ll)}function Bs(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Am,$p=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ih(t){if(!(e=$p.exec(t)))throw new Error("invalid format: "+t);var e;return new Ls({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 Ls(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 zd(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 hl(t){return(t=zd(Math.abs(t)))?t[1]:NaN}function Dm(t,e){var r=zd(t,e);if(!r)return t+"";var o=r[0],d=r[1];return d<0?"0."+new Array(-d).join("0")+o:o.length>d+1?o.slice(0,d+1)+"."+o.slice(d+1):o+new Array(d-o.length+2).join("0")}Ih.prototype=Ls.prototype,Ls.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 Nm={"%":(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)=>Dm(100*t,e),r:Dm,s:function(t,e){var r=zd(t,e);if(!r)return t+"";var o=r[0],d=r[1],p=d-(Am=3*Math.max(-8,Math.min(8,Math.floor(d/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")+zd(t,Math.max(0,e+p-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Om(t){return t}var Vp,Ka,Rh,Gp=Array.prototype.map,Is=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b4(t){var e=t.domain;return t.ticks=function(r){var o=e();return function(d,p,m){var b,S,T,O,j=-1;if(m=+m,(d=+d)==(p=+p)&&m>0)return[d];if((b=p<d)&&(S=d,d=p,p=S),(O=Op(d,p,m))===0||!isFinite(O))return[];if(O>0){let F=Math.round(d/O),U=Math.round(p/O);for(F*O<d&&++F,U*O>p&&--U,T=new Array(S=U-F+1);++j<S;)T[j]=(F+j)*O}else{O=-O;let F=Math.round(d*O),U=Math.round(p*O);for(F/O<d&&++F,U/O>p&&--U,T=new Array(S=U-F+1);++j<S;)T[j]=(F+j)/O}return b&&T.reverse(),T}(o[0],o[o.length-1],r==null?10:r)},t.tickFormat=function(r,o){var d=e();return function(p,m,b,S){var T,O=Bp(p,m,b);switch((S=Ih(S==null?",f":S)).type){case"s":var j=Math.max(Math.abs(p),Math.abs(m));return S.precision!=null||isNaN(T=function(F,U){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(hl(U)/3)))-hl(Math.abs(F)))}(O,j))||(S.precision=T),Rh(S,j);case"":case"e":case"g":case"p":case"r":S.precision!=null||isNaN(T=function(F,U){return F=Math.abs(F),U=Math.abs(U)-F,Math.max(0,hl(U)-hl(F))+1}(O,Math.max(Math.abs(p),Math.abs(m))))||(S.precision=T-(S.type==="e"));break;case"f":case"%":S.precision!=null||isNaN(T=function(F){return Math.max(0,-hl(Math.abs(F)))}(O))||(S.precision=T-2*(S.type==="%"))}return Ka(S)}(d[0],d[d.length-1],r==null?10:r,o)},t.nice=function(r){r==null&&(r=10);var o,d,p=e(),m=0,b=p.length-1,S=p[m],T=p[b],O=10;for(T<S&&(d=S,S=T,T=d,d=m,m=b,b=d);O-- >0;){if((d=Op(S,T,r))===o)return p[m]=S,p[b]=T,e(p);if(d>0)S=Math.floor(S/d)*d,T=Math.ceil(T/d)*d;else{if(!(d<0))break;S=Math.ceil(S*d)/d,T=Math.floor(T*d)/d}o=d}return t},t}function Bm(){var t=Ud();return t.copy=function(){return jd(t,Bm())},Bs.apply(t,arguments),b4(t)}Vp=function(t){var e,r,o=t.grouping===void 0||t.thousands===void 0?Om:(e=Gp.call(t.grouping,Number),r=t.thousands+"",function(F,U){for(var it=F.length,yt=[],vt=0,xt=e[0],mt=0;it>0&&xt>0&&(mt+xt+1>U&&(xt=Math.max(1,U-mt)),yt.push(F.substring(it-=xt,it+xt)),!((mt+=xt+1)>U));)xt=e[vt=(vt+1)%e.length];return yt.reverse().join(r)}),d=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?Om:function(F){return function(U){return U.replace(/[0-9]/g,function(it){return F[+it]})}}(Gp.call(t.numerals,String)),S=t.percent===void 0?"%":t.percent+"",T=t.minus===void 0?"\u2212":t.minus+"",O=t.nan===void 0?"NaN":t.nan+"";function j(F){var U=(F=Ih(F)).fill,it=F.align,yt=F.sign,vt=F.symbol,xt=F.zero,mt=F.width,ot=F.comma,Ht=F.precision,Dt=F.trim,ft=F.type;ft==="n"?(ot=!0,ft="g"):Nm[ft]||(Ht===void 0&&(Ht=12),Dt=!0,ft="g"),(xt||U==="0"&&it==="=")&&(xt=!0,U="0",it="=");var Nt=vt==="$"?d:vt==="#"&&/[boxX]/.test(ft)?"0"+ft.toLowerCase():"",Kt=vt==="$"?p:/[%p]/.test(ft)?S:"",St=Nm[ft],wt=/[defgprs%]/.test(ft);function jt(Ct){var Jt,pt,le,ve=Nt,me=Kt;if(ft==="c")me=St(Ct)+me,Ct="";else{var Me=(Ct=+Ct)<0||1/Ct<0;if(Ct=isNaN(Ct)?O:St(Math.abs(Ct),Ht),Dt&&(Ct=function(fn){t:for(var Ae,Vn=fn.length,_n=1,mn=-1;_n<Vn;++_n)switch(fn[_n]){case".":mn=Ae=_n;break;case"0":mn===0&&(mn=_n),Ae=_n;break;default:if(!+fn[_n])break t;mn>0&&(mn=0)}return mn>0?fn.slice(0,mn)+fn.slice(Ae+1):fn}(Ct)),Me&&+Ct==0&&yt!=="+"&&(Me=!1),ve=(Me?yt==="("?yt:T:yt==="-"||yt==="("?"":yt)+ve,me=(ft==="s"?Is[8+Am/3]:"")+me+(Me&&yt==="("?")":""),wt){for(Jt=-1,pt=Ct.length;++Jt<pt;)if(48>(le=Ct.charCodeAt(Jt))||le>57){me=(le===46?m+Ct.slice(Jt+1):Ct.slice(Jt))+me,Ct=Ct.slice(0,Jt);break}}}ot&&!xt&&(Ct=o(Ct,1/0));var He=ve.length+Ct.length+me.length,ze=He<mt?new Array(mt-He+1).join(U):"";switch(ot&&xt&&(Ct=o(ze+Ct,ze.length?mt-me.length:1/0),ze=""),it){case"<":Ct=ve+Ct+me+ze;break;case"=":Ct=ve+ze+Ct+me;break;case"^":Ct=ze.slice(0,He=ze.length>>1)+ve+Ct+me+ze.slice(He);break;default:Ct=ze+ve+Ct+me}return b(Ct)}return Ht=Ht===void 0?6:/[gprs]/.test(ft)?Math.max(1,Math.min(21,Ht)):Math.max(0,Math.min(20,Ht)),jt.toString=function(){return F+""},jt}return{format:j,formatPrefix:function(F,U){var it=j(((F=Ih(F)).type="f",F)),yt=3*Math.max(-8,Math.min(8,Math.floor(hl(U)/3))),vt=Math.pow(10,-yt),xt=Is[8+yt/3];return function(mt){return it(vt*mt)+xt}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ka=Vp.format,Rh=Vp.formatPrefix;class Lm extends Map{constructor(e,r=Im){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[o,d]of e)this.set(o,d)}get(e){return super.get(Xp(this,e))}has(e){return super.has(Xp(this,e))}set(e,r){return super.set(function({_intern:o,_key:d},p){const m=d(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},d){const p=o(d);return r.has(p)&&(d=r.get(p),r.delete(p)),d}(this,e))}}function Xp({_intern:t,_key:e},r){const o=e(r);return t.has(o)?t.get(o):r}function Im(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Fh=Symbol("implicit");function fc(){var t=new Lm,e=[],r=[],o=Fh;function d(p){let m=t.get(p);if(m===void 0){if(o!==Fh)return o;t.set(p,m=e.push(p)-1)}return r[m%r.length]}return d.domain=function(p){if(!arguments.length)return e.slice();e=[],t=new Lm;for(const m of p)t.has(m)||t.set(m,e.push(m)-1);return d},d.range=function(p){return arguments.length?(r=Array.from(p),d):r.slice()},d.unknown=function(p){return arguments.length?(o=p,d):o},d.copy=function(){return fc(e,r).unknown(o)},Bs.apply(d,arguments),d}const fl=1e3,dc=6e4,Ph=36e5,Zp=864e5,Qp=6048e5,Wd=31536e6;var Hd=new Date,qd=new Date;function Fi(t,e,r,o){function d(p){return t(p=arguments.length===0?new Date:new Date(+p)),p}return d.floor=function(p){return t(p=new Date(+p)),p},d.ceil=function(p){return t(p=new Date(p-1)),e(p,1),t(p),p},d.round=function(p){var m=d(p),b=d.ceil(p);return p-m<b-p?m:b},d.offset=function(p,m){return e(p=new Date(+p),m==null?1:Math.floor(m)),p},d.range=function(p,m,b){var S,T=[];if(p=d.ceil(p),b=b==null?1:Math.floor(b),!(p<m&&b>0))return T;do T.push(S=new Date(+p)),e(p,b),t(p);while(S<p&&p<m);return T},d.filter=function(p){return Fi(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&&(d.count=function(p,m){return Hd.setTime(+p),qd.setTime(+m),t(Hd),t(qd),Math.floor(r(Hd,qd))},d.every=function(p){return p=Math.floor(p),isFinite(p)&&p>0?p>1?d.filter(o?function(m){return o(m)%p==0}:function(m){return d.count(0,m)%p==0}):d:null}),d}var $d=Fi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});$d.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Fi(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):$d:null};const Jp=$d;var Rm=Fi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*fl)},function(t,e){return(e-t)/fl},function(t){return t.getUTCSeconds()});const dl=Rm;var x4=Fi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*fl)},function(t,e){t.setTime(+t+e*dc)},function(t,e){return(e-t)/dc},function(t){return t.getMinutes()});const Yh=x4;var Do=Fi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*fl-t.getMinutes()*dc)},function(t,e){t.setTime(+t+e*Ph)},function(t,e){return(e-t)/Ph},function(t){return t.getHours()});const Vd=Do;var Kp=Fi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*dc)/Zp,t=>t.getDate()-1);const pl=Kp;function Rs(t){return Fi(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())*dc)/Qp})}var Gd=Rs(0),tg=Rs(1);Rs(2),Rs(3);var pc=Rs(4);Rs(5),Rs(6);var as=Fi(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 eg=as;var ng=Fi(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()});ng.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Fi(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 Fs=ng;Fi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*dc)},function(t,e){return(e-t)/dc},function(t){return t.getUTCMinutes()}),Fi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Ph)},function(t,e){return(e-t)/Ph},function(t){return t.getUTCHours()});var rg=Fi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Zp},function(t){return t.getUTCDate()-1});const jh=rg;function No(t){return Fi(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)/Qp})}var Fm=No(0),Xd=No(1);No(2),No(3);var gl=No(4);No(5),No(6),Fi(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 Pm=Fi(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()});Pm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Fi(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 xa=Pm;function cu(t,e,r,o,d,p){const m=[[dl,1,fl],[dl,5,5e3],[dl,15,15e3],[dl,30,3e4],[p,1,dc],[p,5,3e5],[p,15,9e5],[p,30,18e5],[d,1,Ph],[d,3,108e5],[d,6,216e5],[d,12,432e5],[o,1,Zp],[o,2,1728e5],[r,1,Qp],[e,1,2592e6],[e,3,7776e6],[t,1,Wd]];function b(S,T,O){const j=Math.abs(T-S)/O,F=Ip(([,,yt])=>yt).right(m,j);if(F===m.length)return t.every(Bp(S/Wd,T/Wd,O));if(F===0)return Jp.every(Math.max(Bp(S,T,O),1));const[U,it]=m[j/m[F-1][2]<m[F][2]/j?F-1:F];return U.every(it)}return[function(S,T,O){const j=T<S;j&&([S,T]=[T,S]);const F=O&&typeof O.range=="function"?O:b(S,T,O),U=F?F.range(S,+T+1):[];return j?U.reverse():U},b]}const[Ym,w4]=cu(Fs,eg,Gd,pl,Vd,Yh);function os(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 ig(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 Uh(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var zh,jm,ss={"-":"",_:" ",0:"0"},Pi=/^\s*\d+/,ag=/^%/,og=/[\\^$*+?|[\]().{}]/g;function br(t,e,r){var o=t<0?"-":"",d=(o?-t:t)+"",p=d.length;return o+(p<r?new Array(r-p+1).join(e)+d:d)}function k4(t){return t.replace(og,"\\$&")}function Wh(t){return new RegExp("^(?:"+t.map(k4).join("|")+")","i")}function Hh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Zd(t,e,r){var o=Pi.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function sg(t,e,r){var o=Pi.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function T4(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function E4(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function S4(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function Um(t,e,r){var o=Pi.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function zm(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function Wm(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 cg(t,e,r){var o=Pi.exec(e.slice(r,r+1));return o?(t.q=3*o[0]-3,r+o[0].length):-1}function Hm(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function ug(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function Fa(t,e,r){var o=Pi.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function qh(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function uu(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function qm(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function C4(t,e,r){var o=Pi.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function M4(t,e,r){var o=Pi.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function A4(t,e,r){var o=ag.exec(e.slice(r,r+1));return o?r+o[0].length:-1}function D4(t,e,r){var o=Pi.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function N4(t,e,r){var o=Pi.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function $m(t,e){return br(t.getDate(),e,2)}function lu(t,e){return br(t.getHours(),e,2)}function Vm(t,e){return br(t.getHours()%12||12,e,2)}function O4(t,e){return br(1+pl.count(Fs(t),t),e,3)}function Gm(t,e){return br(t.getMilliseconds(),e,3)}function B4(t,e){return Gm(t,e)+"000"}function L4(t,e){return br(t.getMonth()+1,e,2)}function I4(t,e){return br(t.getMinutes(),e,2)}function R4(t,e){return br(t.getSeconds(),e,2)}function F4(t){var e=t.getDay();return e===0?7:e}function P4(t,e){return br(Gd.count(Fs(t)-1,t),e,2)}function Xm(t){var e=t.getDay();return e>=4||e===0?pc(t):pc.ceil(t)}function Y4(t,e){return t=Xm(t),br(pc.count(Fs(t),t)+(Fs(t).getDay()===4),e,2)}function j4(t){return t.getDay()}function Zm(t,e){return br(tg.count(Fs(t)-1,t),e,2)}function U4(t,e){return br(t.getFullYear()%100,e,2)}function z4(t,e){return br((t=Xm(t)).getFullYear()%100,e,2)}function Qm(t,e){return br(t.getFullYear()%1e4,e,4)}function Jm(t,e){var r=t.getDay();return br((t=r>=4||r===0?pc(t):pc.ceil(t)).getFullYear()%1e4,e,4)}function Km(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+br(e/60|0,"0",2)+br(e%60,"0",2)}function tv(t,e){return br(t.getUTCDate(),e,2)}function W4(t,e){return br(t.getUTCHours(),e,2)}function ev(t,e){return br(t.getUTCHours()%12||12,e,2)}function gc(t,e){return br(1+jh.count(xa(t),t),e,3)}function nv(t,e){return br(t.getUTCMilliseconds(),e,3)}function H4(t,e){return nv(t,e)+"000"}function rv(t,e){return br(t.getUTCMonth()+1,e,2)}function q4(t,e){return br(t.getUTCMinutes(),e,2)}function $4(t,e){return br(t.getUTCSeconds(),e,2)}function iv(t){var e=t.getUTCDay();return e===0?7:e}function Qd(t,e){return br(Fm.count(xa(t)-1,t),e,2)}function av(t){var e=t.getUTCDay();return e>=4||e===0?gl(t):gl.ceil(t)}function $h(t,e){return t=av(t),br(gl.count(xa(t),t)+(xa(t).getUTCDay()===4),e,2)}function V4(t){return t.getUTCDay()}function lg(t,e){return br(Xd.count(xa(t)-1,t),e,2)}function G4(t,e){return br(t.getUTCFullYear()%100,e,2)}function X4(t,e){return br((t=av(t)).getUTCFullYear()%100,e,2)}function ov(t,e){return br(t.getUTCFullYear()%1e4,e,4)}function yl(t,e){var r=t.getUTCDay();return br((t=r>=4||r===0?gl(t):gl.ceil(t)).getUTCFullYear()%1e4,e,4)}function Z4(){return"+0000"}function hg(){return"%"}function sv(t){return+t}function cv(t){return Math.floor(+t/1e3)}function Q4(t){return new Date(t)}function J4(t){return t instanceof Date?+t:+new Date(+t)}function uv(t,e,r,o,d,p,m,b,S,T){var O=Ud(),j=O.invert,F=O.domain,U=T(".%L"),it=T(":%S"),yt=T("%I:%M"),vt=T("%I %p"),xt=T("%a %d"),mt=T("%b %d"),ot=T("%B"),Ht=T("%Y");function Dt(ft){return(S(ft)<ft?U:b(ft)<ft?it:m(ft)<ft?yt:p(ft)<ft?vt:o(ft)<ft?d(ft)<ft?xt:mt:r(ft)<ft?ot:Ht)(ft)}return O.invert=function(ft){return new Date(j(ft))},O.domain=function(ft){return arguments.length?F(Array.from(ft,J4)):F().map(Q4)},O.ticks=function(ft){var Nt=F();return t(Nt[0],Nt[Nt.length-1],ft==null?10:ft)},O.tickFormat=function(ft,Nt){return Nt==null?Dt:T(Nt)},O.nice=function(ft){var Nt=F();return ft&&typeof ft.range=="function"||(ft=e(Nt[0],Nt[Nt.length-1],ft==null?10:ft)),ft?F(function(Kt,St){var wt,jt=0,Ct=(Kt=Kt.slice()).length-1,Jt=Kt[jt],pt=Kt[Ct];return pt<Jt&&(wt=jt,jt=Ct,Ct=wt,wt=Jt,Jt=pt,pt=wt),Kt[jt]=St.floor(Jt),Kt[Ct]=St.ceil(pt),Kt}(Nt,ft)):O},O.copy=function(){return jd(O,uv(t,e,r,o,d,p,m,b,S,T))},O}function K4(){}function ml(t){return t==null?K4:function(){return this.querySelector(t)}}function fg(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function t5(){return[]}function lv(t){return t==null?t5:function(){return this.querySelectorAll(t)}}function hv(t){return function(){return this.matches(t)}}function fv(t){return function(e){return e.matches(t)}}zh=function(t){var e=t.dateTime,r=t.date,o=t.time,d=t.periods,p=t.days,m=t.shortDays,b=t.months,S=t.shortMonths,T=Wh(d),O=Hh(d),j=Wh(p),F=Hh(p),U=Wh(m),it=Hh(m),yt=Wh(b),vt=Hh(b),xt=Wh(S),mt=Hh(S),ot={a:function(St){return m[St.getDay()]},A:function(St){return p[St.getDay()]},b:function(St){return S[St.getMonth()]},B:function(St){return b[St.getMonth()]},c:null,d:$m,e:$m,f:B4,g:z4,G:Jm,H:lu,I:Vm,j:O4,L:Gm,m:L4,M:I4,p:function(St){return d[+(St.getHours()>=12)]},q:function(St){return 1+~~(St.getMonth()/3)},Q:sv,s:cv,S:R4,u:F4,U:P4,V:Y4,w:j4,W:Zm,x:null,X:null,y:U4,Y:Qm,Z:Km,"%":hg},Ht={a:function(St){return m[St.getUTCDay()]},A:function(St){return p[St.getUTCDay()]},b:function(St){return S[St.getUTCMonth()]},B:function(St){return b[St.getUTCMonth()]},c:null,d:tv,e:tv,f:H4,g:X4,G:yl,H:W4,I:ev,j:gc,L:nv,m:rv,M:q4,p:function(St){return d[+(St.getUTCHours()>=12)]},q:function(St){return 1+~~(St.getUTCMonth()/3)},Q:sv,s:cv,S:$4,u:iv,U:Qd,V:$h,w:V4,W:lg,x:null,X:null,y:G4,Y:ov,Z:Z4,"%":hg},Dt={a:function(St,wt,jt){var Ct=U.exec(wt.slice(jt));return Ct?(St.w=it.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},A:function(St,wt,jt){var Ct=j.exec(wt.slice(jt));return Ct?(St.w=F.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},b:function(St,wt,jt){var Ct=xt.exec(wt.slice(jt));return Ct?(St.m=mt.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},B:function(St,wt,jt){var Ct=yt.exec(wt.slice(jt));return Ct?(St.m=vt.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},c:function(St,wt,jt){return Kt(St,e,wt,jt)},d:ug,e:ug,f:M4,g:zm,G:Um,H:qh,I:qh,j:Fa,L:C4,m:Hm,M:uu,p:function(St,wt,jt){var Ct=T.exec(wt.slice(jt));return Ct?(St.p=O.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},q:cg,Q:D4,s:N4,S:qm,u:sg,U:T4,V:E4,w:Zd,W:S4,x:function(St,wt,jt){return Kt(St,r,wt,jt)},X:function(St,wt,jt){return Kt(St,o,wt,jt)},y:zm,Y:Um,Z:Wm,"%":A4};function ft(St,wt){return function(jt){var Ct,Jt,pt,le=[],ve=-1,me=0,Me=St.length;for(jt instanceof Date||(jt=new Date(+jt));++ve<Me;)St.charCodeAt(ve)===37&&(le.push(St.slice(me,ve)),(Jt=ss[Ct=St.charAt(++ve)])!=null?Ct=St.charAt(++ve):Jt=Ct==="e"?" ":"0",(pt=wt[Ct])&&(Ct=pt(jt,Jt)),le.push(Ct),me=ve+1);return le.push(St.slice(me,ve)),le.join("")}}function Nt(St,wt){return function(jt){var Ct,Jt,pt=Uh(1900,void 0,1);if(Kt(pt,St,jt+="",0)!=jt.length)return null;if("Q"in pt)return new Date(pt.Q);if("s"in pt)return new Date(1e3*pt.s+("L"in pt?pt.L:0));if(wt&&!("Z"in pt)&&(pt.Z=0),"p"in pt&&(pt.H=pt.H%12+12*pt.p),pt.m===void 0&&(pt.m="q"in pt?pt.q:0),"V"in pt){if(pt.V<1||pt.V>53)return null;"w"in pt||(pt.w=1),"Z"in pt?(Jt=(Ct=ig(Uh(pt.y,0,1))).getUTCDay(),Ct=Jt>4||Jt===0?Xd.ceil(Ct):Xd(Ct),Ct=jh.offset(Ct,7*(pt.V-1)),pt.y=Ct.getUTCFullYear(),pt.m=Ct.getUTCMonth(),pt.d=Ct.getUTCDate()+(pt.w+6)%7):(Jt=(Ct=os(Uh(pt.y,0,1))).getDay(),Ct=Jt>4||Jt===0?tg.ceil(Ct):tg(Ct),Ct=pl.offset(Ct,7*(pt.V-1)),pt.y=Ct.getFullYear(),pt.m=Ct.getMonth(),pt.d=Ct.getDate()+(pt.w+6)%7)}else("W"in pt||"U"in pt)&&("w"in pt||(pt.w="u"in pt?pt.u%7:"W"in pt?1:0),Jt="Z"in pt?ig(Uh(pt.y,0,1)).getUTCDay():os(Uh(pt.y,0,1)).getDay(),pt.m=0,pt.d="W"in pt?(pt.w+6)%7+7*pt.W-(Jt+5)%7:pt.w+7*pt.U-(Jt+6)%7);return"Z"in pt?(pt.H+=pt.Z/100|0,pt.M+=pt.Z%100,ig(pt)):os(pt)}}function Kt(St,wt,jt,Ct){for(var Jt,pt,le=0,ve=wt.length,me=jt.length;le<ve;){if(Ct>=me)return-1;if((Jt=wt.charCodeAt(le++))===37){if(Jt=wt.charAt(le++),!(pt=Dt[Jt in ss?wt.charAt(le++):Jt])||(Ct=pt(St,jt,Ct))<0)return-1}else if(Jt!=jt.charCodeAt(Ct++))return-1}return Ct}return ot.x=ft(r,ot),ot.X=ft(o,ot),ot.c=ft(e,ot),Ht.x=ft(r,Ht),Ht.X=ft(o,Ht),Ht.c=ft(e,Ht),{format:function(St){var wt=ft(St+="",ot);return wt.toString=function(){return St},wt},parse:function(St){var wt=Nt(St+="",!1);return wt.toString=function(){return St},wt},utcFormat:function(St){var wt=ft(St+="",Ht);return wt.toString=function(){return St},wt},utcParse:function(St){var wt=Nt(St+="",!0);return wt.toString=function(){return St},wt}}}({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"]}),jm=zh.format,zh.parse,zh.utcFormat,zh.utcParse;var e5=Array.prototype.find;function n5(){return this.firstElementChild}var dg=Array.prototype.filter;function r5(){return Array.from(this.children)}function dv(t){return new Array(t.length)}function Jd(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function i5(t){return function(){return t}}function Yi(t,e,r,o,d,p){for(var m,b=0,S=e.length,T=p.length;b<T;++b)(m=e[b])?(m.__data__=p[b],o[b]=m):r[b]=new Jd(t,p[b]);for(;b<S;++b)(m=e[b])&&(d[b]=m)}function yc(t,e,r,o,d,p,m){var b,S,T,O=new Map,j=e.length,F=p.length,U=new Array(j);for(b=0;b<j;++b)(S=e[b])&&(U[b]=T=m.call(S,S.__data__,b,e)+"",O.has(T)?d[b]=S:O.set(T,S));for(b=0;b<F;++b)T=m.call(t,p[b],b,p)+"",(S=O.get(T))?(o[b]=S,S.__data__=p[b],O.delete(T)):r[b]=new Jd(t,p[b]);for(b=0;b<j;++b)(S=e[b])&&O.get(U[b])===S&&(d[b]=S)}function pv(t){return t.__data__}function wa(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function a5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Jd.prototype={constructor:Jd,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 pg="http://www.w3.org/1999/xhtml";const Vh={svg:"http://www.w3.org/2000/svg",xhtml:pg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vl(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Vh.hasOwnProperty(e)?{space:Vh[e],local:t}:t}function gv(t){return function(){this.removeAttribute(t)}}function ka(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o5(t,e){return function(){this.setAttribute(t,e)}}function s5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function c5(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function u5(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 gg(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function l5(t){return function(){this.style.removeProperty(t)}}function h5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function f5(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function _l(t,e){return t.style.getPropertyValue(e)||gg(t).getComputedStyle(t,null).getPropertyValue(e)}function d5(t){return function(){delete this[t]}}function p5(t,e){return function(){this[t]=e}}function g5(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function yv(t){return t.trim().split(/^|\s+/)}function yg(t){return t.classList||new Gh(t)}function Gh(t){this._node=t,this._names=yv(t.getAttribute("class")||"")}function hu(t,e){for(var r=yg(t),o=-1,d=e.length;++o<d;)r.add(e[o])}function mg(t,e){for(var r=yg(t),o=-1,d=e.length;++o<d;)r.remove(e[o])}function y5(t){return function(){hu(this,t)}}function Xh(t){return function(){mg(this,t)}}function Kd(t,e){return function(){(e.apply(this,arguments)?hu:mg)(this,t)}}function mv(){this.textContent=""}function vv(t){return function(){this.textContent=t}}function _v(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function t1(){this.innerHTML=""}function e1(t){return function(){this.innerHTML=t}}function vg(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function bv(){this.nextSibling&&this.parentNode.appendChild(this)}function xv(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wv(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===pg&&e.documentElement.namespaceURI===pg?e.createElement(t):e.createElementNS(r,t)}}function kv(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _g(t){var e=vl(t);return(e.local?kv:wv)(e)}function Tv(){return null}function Ev(){var t=this.parentNode;t&&t.removeChild(this)}function mc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function n1(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function r1(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 Sv(t){return function(){var e=this.__on;if(e){for(var r,o=0,d=-1,p=e.length;o<p;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++d]=r:this.removeEventListener(r.type,r.listener,r.options);++d?e.length=d:delete this.__on}}}function Rn(t,e,r){return function(){var o,d=this.__on,p=function(S){return function(T){S.call(this,T,this.__data__)}}(e);if(d){for(var m=0,b=d.length;m<b;++m)if((o=d[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},d?d.push(o):this.__on=[o]}}function Zh(t,e,r){var o=gg(t),d=o.CustomEvent;typeof d=="function"?d=new d(e,r):(d=o.document.createEvent("Event"),r?(d.initEvent(e,r.bubbles,r.cancelable),d.detail=r.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function ir(t,e){return function(){return Zh(this,t,e)}}function gi(t,e){return function(){return Zh(this,t,e.apply(this,arguments))}}Gh.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 bl=[null];function Lr(t,e){this._groups=t,this._parents=e}function Pr(){return new Lr([[document.documentElement]],bl)}Lr.prototype=Pr.prototype={constructor:Lr,select:function(t){typeof t!="function"&&(t=ml(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m,b=e[d],S=b.length,T=o[d]=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__),T[O]=m);return new Lr(o,this._parents)},selectAll:function(t){t=typeof t=="function"?function(O){return function(){return fg(O.apply(this,arguments))}}(t):lv(t);for(var e=this._groups,r=e.length,o=[],d=[],p=0;p<r;++p)for(var m,b=e[p],S=b.length,T=0;T<S;++T)(m=b[T])&&(o.push(t.call(m,m.__data__,T,b)),d.push(m));return new Lr(o,d)},selectChild:function(t){return this.select(t==null?n5:function(e){return function(){return e5.call(this.children,e)}}(typeof t=="function"?t:fv(t)))},selectChildren:function(t){return this.selectAll(t==null?r5:function(e){return function(){return dg.call(this.children,e)}}(typeof t=="function"?t:fv(t)))},filter:function(t){typeof t!="function"&&(t=hv(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m=e[d],b=m.length,S=o[d]=[],T=0;T<b;++T)(p=m[T])&&t.call(p,p.__data__,T,m)&&S.push(p);return new Lr(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,pv);var r=e?yc:Yi,o=this._parents,d=this._groups;typeof t!="function"&&(t=i5(t));for(var p=d.length,m=new Array(p),b=new Array(p),S=new Array(p),T=0;T<p;++T){var O=o[T],j=d[T],F=j.length,U=wa(t.call(O,O&&O.__data__,T,o)),it=U.length,yt=b[T]=new Array(it),vt=m[T]=new Array(it),xt=S[T]=new Array(F);r(O,j,yt,vt,xt,U,e);for(var mt,ot,Ht=0,Dt=0;Ht<it;++Ht)if(mt=yt[Ht]){for(Ht>=Dt&&(Dt=Ht+1);!(ot=vt[Dt])&&++Dt<it;);mt._next=ot||null}}return(m=new Lr(m,o))._enter=b,m._exit=S,m},enter:function(){return new Lr(this._enter||this._groups.map(dv),this._parents)},exit:function(){return new Lr(this._exit||this._groups.map(dv),this._parents)},join:function(t,e,r){var o=this.enter(),d=this,p=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),r==null?p.remove():r(p),o&&d?o.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,d=r.length,p=o.length,m=Math.min(d,p),b=new Array(d),S=0;S<m;++S)for(var T,O=r[S],j=o[S],F=O.length,U=b[S]=new Array(F),it=0;it<F;++it)(T=O[it]||j[it])&&(U[it]=T);for(;S<d;++S)b[S]=r[S];return new Lr(b,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,d=t[e],p=d.length-1,m=d[p];--p>=0;)(o=d[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=a5);for(var r=this._groups,o=r.length,d=new Array(o),p=0;p<o;++p){for(var m,b=r[p],S=b.length,T=d[p]=new Array(S),O=0;O<S;++O)(m=b[O])&&(T[O]=m);T.sort(e)}return new Lr(d,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],d=0,p=o.length;d<p;++d){var m=o[d];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 d,p=e[r],m=0,b=p.length;m<b;++m)(d=p[m])&&t.call(d,d.__data__,m,p);return this},attr:function(t,e){var r=vl(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?ka:gv:typeof e=="function"?r.local?u5:c5:r.local?s5:o5)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?l5:typeof e=="function"?f5:h5)(t,e,r==null?"":r)):_l(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?d5:typeof e=="function"?g5:p5)(t,e)):this.node()[t]},classed:function(t,e){var r=yv(t+"");if(arguments.length<2){for(var o=yg(this.node()),d=-1,p=r.length;++d<p;)if(!o.contains(r[d]))return!1;return!0}return this.each((typeof e=="function"?Kd:e?y5:Xh)(r,e))},text:function(t){return arguments.length?this.each(t==null?mv:(typeof t=="function"?_v:vv)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?t1:(typeof t=="function"?vg:e1)(t)):this.node().innerHTML},raise:function(){return this.each(bv)},lower:function(){return this.each(xv)},append:function(t){var e=typeof t=="function"?t:_g(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:_g(t),o=e==null?Tv:typeof e=="function"?e:ml(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function(){return this.each(Ev)},clone:function(t){return this.select(t?n1:mc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,d,p=r1(t+""),m=p.length;if(!(arguments.length<2)){for(b=e?Rn:Sv,o=0;o<m;++o)this.each(b(p[o],e,r));return this}var b=this.node().__on;if(b){for(var S,T=0,O=b.length;T<O;++T)for(o=0,S=b[T];o<m;++o)if((d=p[o]).type===S.type&&d.name===S.name)return S.value}},dispatch:function(t,e){return this.each((typeof e=="function"?gi:ir)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,d=t[e],p=0,m=d.length;p<m;++p)(o=d[p])&&(yield o)}};const wn=Pr;function Se(t){return typeof t=="string"?new Lr([[document.querySelector(t)]],[document.documentElement]):new Lr([[t]],bl)}function vc(t){return typeof t=="string"?new Lr([document.querySelectorAll(t)],[document.documentElement]):new Lr([fg(t)],bl)}const na=Math.PI,hn=2*na,cs=1e-6,Cv=hn-cs;function xl(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function i1(){return new xl}xl.prototype=i1.prototype={constructor:xl,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,d,p){this._+="C"+ +t+","+ +e+","+ +r+","+ +o+","+(this._x1=+d)+","+(this._y1=+p)},arcTo:function(t,e,r,o,d){t=+t,e=+e,r=+r,o=+o,d=+d;var p=this._x1,m=this._y1,b=r-t,S=o-e,T=p-t,O=m-e,j=T*T+O*O;if(d<0)throw new Error("negative radius: "+d);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(j>cs)if(Math.abs(O*b-S*T)>cs&&d){var F=r-p,U=o-m,it=b*b+S*S,yt=F*F+U*U,vt=Math.sqrt(it),xt=Math.sqrt(j),mt=d*Math.tan((na-Math.acos((it+j-yt)/(2*vt*xt)))/2),ot=mt/xt,Ht=mt/vt;Math.abs(ot-1)>cs&&(this._+="L"+(t+ot*T)+","+(e+ot*O)),this._+="A"+d+","+d+",0,0,"+ +(O*F>T*U)+","+(this._x1=t+Ht*b)+","+(this._y1=e+Ht*S)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,o,d,p){t=+t,e=+e,p=!!p;var m=(r=+r)*Math.cos(o),b=r*Math.sin(o),S=t+m,T=e+b,O=1^p,j=p?o-d:d-o;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+S+","+T:(Math.abs(this._x1-S)>cs||Math.abs(this._y1-T)>cs)&&(this._+="L"+S+","+T),r&&(j<0&&(j=j%hn+hn),j>Cv?this._+="A"+r+","+r+",0,1,"+O+","+(t-m)+","+(e-b)+"A"+r+","+r+",0,1,"+O+","+(this._x1=S)+","+(this._y1=T):j>cs&&(this._+="A"+r+","+r+",0,"+ +(j>=na)+","+O+","+(this._x1=t+r*Math.cos(d))+","+(this._y1=e+r*Math.sin(d))))},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 an=i1;function xr(t){return function(){return t}}var Ti=Math.abs,$i=Math.atan2,_c=Math.cos,Ta=Math.max,a1=Math.min,wr=Math.sin,Ps=Math.sqrt,Ea=1e-12,wl=Math.PI,kl=wl/2,Qh=2*wl;function Oo(t){return t>1?0:t<-1?wl:Math.acos(t)}function bg(t){return t>=1?kl:t<=-1?-kl:Math.asin(t)}function Mv(t){return t.innerRadius}function xg(t){return t.outerRadius}function wg(t){return t.startAngle}function kg(t){return t.endAngle}function o1(t){return t&&t.padAngle}function s1(t,e,r,o,d,p,m,b){var S=r-t,T=o-e,O=m-d,j=b-p,F=j*S-O*T;if(!(F*F<Ea))return[t+(F=(O*(e-p)-j*(t-d))/F)*S,e+F*T]}function to(t,e,r,o,d,p,m){var b=t-r,S=e-o,T=(m?p:-p)/Ps(b*b+S*S),O=T*S,j=-T*b,F=t+O,U=e+j,it=r+O,yt=o+j,vt=(F+it)/2,xt=(U+yt)/2,mt=it-F,ot=yt-U,Ht=mt*mt+ot*ot,Dt=d-p,ft=F*yt-it*U,Nt=(ot<0?-1:1)*Ps(Ta(0,Dt*Dt*Ht-ft*ft)),Kt=(ft*ot-mt*Nt)/Ht,St=(-ft*mt-ot*Nt)/Ht,wt=(ft*ot+mt*Nt)/Ht,jt=(-ft*mt+ot*Nt)/Ht,Ct=Kt-vt,Jt=St-xt,pt=wt-vt,le=jt-xt;return Ct*Ct+Jt*Jt>pt*pt+le*le&&(Kt=wt,St=jt),{cx:Kt,cy:St,x01:-O,y01:-j,x11:Kt*(d/Dt-1),y11:St*(d/Dt-1)}}function Tg(){var t=Mv,e=xg,r=xr(0),o=null,d=wg,p=kg,m=o1,b=null;function S(){var T,O,j=+t.apply(this,arguments),F=+e.apply(this,arguments),U=d.apply(this,arguments)-kl,it=p.apply(this,arguments)-kl,yt=Ti(it-U),vt=it>U;if(b||(b=T=an()),F<j&&(O=F,F=j,j=O),F>Ea)if(yt>Qh-Ea)b.moveTo(F*_c(U),F*wr(U)),b.arc(0,0,F,U,it,!vt),j>Ea&&(b.moveTo(j*_c(it),j*wr(it)),b.arc(0,0,j,it,U,vt));else{var xt,mt,ot=U,Ht=it,Dt=U,ft=it,Nt=yt,Kt=yt,St=m.apply(this,arguments)/2,wt=St>Ea&&(o?+o.apply(this,arguments):Ps(j*j+F*F)),jt=a1(Ti(F-j)/2,+r.apply(this,arguments)),Ct=jt,Jt=jt;if(wt>Ea){var pt=bg(wt/j*wr(St)),le=bg(wt/F*wr(St));(Nt-=2*pt)>Ea?(Dt+=pt*=vt?1:-1,ft-=pt):(Nt=0,Dt=ft=(U+it)/2),(Kt-=2*le)>Ea?(ot+=le*=vt?1:-1,Ht-=le):(Kt=0,ot=Ht=(U+it)/2)}var ve=F*_c(ot),me=F*wr(ot),Me=j*_c(ft),He=j*wr(ft);if(jt>Ea){var ze,fn=F*_c(Ht),Ae=F*wr(Ht),Vn=j*_c(Dt),_n=j*wr(Dt);if(yt<wl&&(ze=s1(ve,me,Vn,_n,fn,Ae,Me,He))){var mn=ve-ze[0],gn=me-ze[1],on=fn-ze[0],nr=Ae-ze[1],jn=1/wr(Oo((mn*on+gn*nr)/(Ps(mn*mn+gn*gn)*Ps(on*on+nr*nr)))/2),Bn=Ps(ze[0]*ze[0]+ze[1]*ze[1]);Ct=a1(jt,(j-Bn)/(jn-1)),Jt=a1(jt,(F-Bn)/(jn+1))}}Kt>Ea?Jt>Ea?(xt=to(Vn,_n,ve,me,F,Jt,vt),mt=to(fn,Ae,Me,He,F,Jt,vt),b.moveTo(xt.cx+xt.x01,xt.cy+xt.y01),Jt<jt?b.arc(xt.cx,xt.cy,Jt,$i(xt.y01,xt.x01),$i(mt.y01,mt.x01),!vt):(b.arc(xt.cx,xt.cy,Jt,$i(xt.y01,xt.x01),$i(xt.y11,xt.x11),!vt),b.arc(0,0,F,$i(xt.cy+xt.y11,xt.cx+xt.x11),$i(mt.cy+mt.y11,mt.cx+mt.x11),!vt),b.arc(mt.cx,mt.cy,Jt,$i(mt.y11,mt.x11),$i(mt.y01,mt.x01),!vt))):(b.moveTo(ve,me),b.arc(0,0,F,ot,Ht,!vt)):b.moveTo(ve,me),j>Ea&&Nt>Ea?Ct>Ea?(xt=to(Me,He,fn,Ae,j,-Ct,vt),mt=to(ve,me,Vn,_n,j,-Ct,vt),b.lineTo(xt.cx+xt.x01,xt.cy+xt.y01),Ct<jt?b.arc(xt.cx,xt.cy,Ct,$i(xt.y01,xt.x01),$i(mt.y01,mt.x01),!vt):(b.arc(xt.cx,xt.cy,Ct,$i(xt.y01,xt.x01),$i(xt.y11,xt.x11),!vt),b.arc(0,0,j,$i(xt.cy+xt.y11,xt.cx+xt.x11),$i(mt.cy+mt.y11,mt.cx+mt.x11),vt),b.arc(mt.cx,mt.cy,Ct,$i(mt.y11,mt.x11),$i(mt.y01,mt.x01),!vt))):b.arc(0,0,j,ft,Dt,vt):b.lineTo(Me,He)}else b.moveTo(0,0);if(b.closePath(),T)return b=null,T+""||null}return S.centroid=function(){var T=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,O=(+d.apply(this,arguments)+ +p.apply(this,arguments))/2-wl/2;return[_c(O)*T,wr(O)*T]},S.innerRadius=function(T){return arguments.length?(t=typeof T=="function"?T:xr(+T),S):t},S.outerRadius=function(T){return arguments.length?(e=typeof T=="function"?T:xr(+T),S):e},S.cornerRadius=function(T){return arguments.length?(r=typeof T=="function"?T:xr(+T),S):r},S.padRadius=function(T){return arguments.length?(o=T==null?null:typeof T=="function"?T:xr(+T),S):o},S.startAngle=function(T){return arguments.length?(d=typeof T=="function"?T:xr(+T),S):d},S.endAngle=function(T){return arguments.length?(p=typeof T=="function"?T:xr(+T),S):p},S.padAngle=function(T){return arguments.length?(m=typeof T=="function"?T:xr(+T),S):m},S.context=function(T){return arguments.length?(b=T==null?null:T,S):b},S}function Av(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Dv(t){this._context=t}function go(t){return new Dv(t)}function m5(t){return t[0]}function c1(t){return t[1]}function yo(t,e){var r=xr(!0),o=null,d=go,p=null;function m(b){var S,T,O,j=(b=Av(b)).length,F=!1;for(o==null&&(p=d(O=an())),S=0;S<=j;++S)!(S<j&&r(T=b[S],S,b))===F&&((F=!F)?p.lineStart():p.lineEnd()),F&&p.point(+t(T,S,b),+e(T,S,b));if(O)return p=null,O+""||null}return t=typeof t=="function"?t:t===void 0?m5:xr(t),e=typeof e=="function"?e:e===void 0?c1:xr(e),m.x=function(b){return arguments.length?(t=typeof b=="function"?b:xr(+b),m):t},m.y=function(b){return arguments.length?(e=typeof b=="function"?b:xr(+b),m):e},m.defined=function(b){return arguments.length?(r=typeof b=="function"?b:xr(!!b),m):r},m.curve=function(b){return arguments.length?(d=b,o!=null&&(p=d(o)),m):d},m.context=function(b){return arguments.length?(b==null?o=p=null:p=d(o=b),m):o},m}function u1(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Tl(t){return t}function El(){}function fu(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 Jh(t){this._context=t}function Yr(t){return new Jh(t)}function Sa(t){this._context=t}function oi(t){this._context=t}function Pa(t){this._context=t}function bc(t){return t<0?-1:1}function Eg(t,e,r){var o=t._x1-t._x0,d=e-t._x1,p=(t._y1-t._y0)/(o||d<0&&-0),m=(r-t._y1)/(d||o<0&&-0),b=(p*d+m*o)/(o+d);return(bc(p)+bc(m))*Math.min(Math.abs(p),Math.abs(m),.5*Math.abs(b))||0}function Sg(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function xc(t,e,r){var o=t._x0,d=t._y0,p=t._x1,m=t._y1,b=(p-o)/3;t._context.bezierCurveTo(o+b,d+b*e,p-b,m-b*r,p,m)}function Bo(t){this._context=t}function us(t){this._context=new Sl(t)}function Sl(t){this._context=t}function Kh(t){this._context=t}function tf(t){var e,r,o=t.length-1,d=new Array(o),p=new Array(o),m=new Array(o);for(d[0]=0,p[0]=2,m[0]=t[0]+2*t[1],e=1;e<o-1;++e)d[e]=1,p[e]=4,m[e]=4*t[e]+2*t[e+1];for(d[o-1]=2,p[o-1]=7,m[o-1]=8*t[o-1]+t[o],e=1;e<o;++e)r=d[e]/p[e-1],p[e]-=r,m[e]-=r*m[e-1];for(d[o-1]=m[o-1]/p[o-1],e=o-2;e>=0;--e)d[e]=(m[e]-d[e+1])/p[e];for(p[o-1]=(t[o]+d[o-1])/2,e=0;e<o-1;++e)p[e]=2*t[e+1]-d[e+1];return[d,p]}function du(t,e){this._context=t,this._t=e}Dv.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)}}},Jh.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:fu(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:fu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Sa.prototype={areaStart:El,areaEnd:El,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:fu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},oi.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:fu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Pa.prototype={areaStart:El,areaEnd:El,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))}},Bo.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:xc(this,this._t0,Sg(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,xc(this,Sg(this,r=Eg(this,t,e)),r);break;default:xc(this,this._t0,r=Eg(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(us.prototype=Object.create(Bo.prototype)).point=function(t,e){Bo.prototype.point.call(this,e,t)},Sl.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,d,p){this._context.bezierCurveTo(e,t,o,r,p,d)}},Kh.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=tf(t),d=tf(e),p=0,m=1;m<r;++p,++m)this._context.bezierCurveTo(o[0][p],d[0][p],o[1][p],d[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)}},du.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 Cl=new Date,Ml=new Date;function mo(t,e,r,o){function d(p){return t(p=arguments.length===0?new Date:new Date(+p)),p}return d.floor=function(p){return t(p=new Date(+p)),p},d.ceil=function(p){return t(p=new Date(p-1)),e(p,1),t(p),p},d.round=function(p){var m=d(p),b=d.ceil(p);return p-m<b-p?m:b},d.offset=function(p,m){return e(p=new Date(+p),m==null?1:Math.floor(m)),p},d.range=function(p,m,b){var S,T=[];if(p=d.ceil(p),b=b==null?1:Math.floor(b),!(p<m&&b>0))return T;do T.push(S=new Date(+p)),e(p,b),t(p);while(S<p&&p<m);return T},d.filter=function(p){return mo(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&&(d.count=function(p,m){return Cl.setTime(+p),Ml.setTime(+m),t(Cl),t(Ml),Math.floor(r(Cl,Ml))},d.every=function(p){return p=Math.floor(p),isFinite(p)&&p>0?p>1?d.filter(o?function(m){return o(m)%p==0}:function(m){return d.count(0,m)%p==0}):d:null}),d}const ef=864e5,l1=6048e5;function Ys(t){return mo(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)/l1})}var Cg=Ys(0),h1=Ys(1);Ys(2),Ys(3);var Al=Ys(4);Ys(5),Ys(6);var Ca=mo(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/ef},function(t){return t.getUTCDate()-1});const da=Ca;function Ei(t){return mo(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()))/l1})}var nf=Ei(0),Lo=Ei(1);Ei(2),Ei(3);var pu=Ei(4);Ei(5),Ei(6);var Nv=mo(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/ef,t=>t.getDate()-1);const Mg=Nv;var Ag=mo(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()});Ag.every=function(t){return isFinite(t=Math.floor(t))&&t>0?mo(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 Dl=Ag;var Ov=mo(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()});Ov.every=function(t){return isFinite(t=Math.floor(t))&&t>0?mo(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 rf=Ov;function Ma(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 Dg(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 Nl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var af,eo,f1={"-":"",_:" ",0:"0"},yi=/^\s*\d+/,Bv=/^%/,v5=/[\\^$*+?|[\]().{}]/g;function kr(t,e,r){var o=t<0?"-":"",d=(o?-t:t)+"",p=d.length;return o+(p<r?new Array(r-p+1).join(e)+d:d)}function Lv(t){return t.replace(v5,"\\$&")}function of(t){return new RegExp("^(?:"+t.map(Lv).join("|")+")","i")}function sf(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function _5(t,e,r){var o=yi.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function Iv(t,e,r){var o=yi.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function b5(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function Ol(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function Ng(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function d1(t,e,r){var o=yi.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function p1(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function Rv(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 Fv(t,e,r){var o=yi.exec(e.slice(r,r+1));return o?(t.q=3*o[0]-3,r+o[0].length):-1}function Pv(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function Og(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function Yv(t,e,r){var o=yi.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function Bg(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function x5(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function jv(t,e,r){var o=yi.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function g1(t,e,r){var o=yi.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function y1(t,e,r){var o=yi.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function Uv(t,e,r){var o=Bv.exec(e.slice(r,r+1));return o?r+o[0].length:-1}function zv(t,e,r){var o=yi.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function Lg(t,e,r){var o=yi.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function m1(t,e){return kr(t.getDate(),e,2)}function Wv(t,e){return kr(t.getHours(),e,2)}function Hv(t,e){return kr(t.getHours()%12||12,e,2)}function w5(t,e){return kr(1+Mg.count(Dl(t),t),e,3)}function qv(t,e){return kr(t.getMilliseconds(),e,3)}function Ig(t,e){return qv(t,e)+"000"}function $v(t,e){return kr(t.getMonth()+1,e,2)}function cf(t,e){return kr(t.getMinutes(),e,2)}function v1(t,e){return kr(t.getSeconds(),e,2)}function _1(t){var e=t.getDay();return e===0?7:e}function k5(t,e){return kr(nf.count(Dl(t)-1,t),e,2)}function b1(t){var e=t.getDay();return e>=4||e===0?pu(t):pu.ceil(t)}function x1(t,e){return t=b1(t),kr(pu.count(Dl(t),t)+(Dl(t).getDay()===4),e,2)}function w1(t){return t.getDay()}function Rg(t,e){return kr(Lo.count(Dl(t)-1,t),e,2)}function Bl(t,e){return kr(t.getFullYear()%100,e,2)}function T5(t,e){return kr((t=b1(t)).getFullYear()%100,e,2)}function E5(t,e){return kr(t.getFullYear()%1e4,e,4)}function S5(t,e){var r=t.getDay();return kr((t=r>=4||r===0?pu(t):pu.ceil(t)).getFullYear()%1e4,e,4)}function Vv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+kr(e/60|0,"0",2)+kr(e%60,"0",2)}function k1(t,e){return kr(t.getUTCDate(),e,2)}function C5(t,e){return kr(t.getUTCHours(),e,2)}function T1(t,e){return kr(t.getUTCHours()%12||12,e,2)}function Gv(t,e){return kr(1+da.count(rf(t),t),e,3)}function Fg(t,e){return kr(t.getUTCMilliseconds(),e,3)}function E1(t,e){return Fg(t,e)+"000"}function Xv(t,e){return kr(t.getUTCMonth()+1,e,2)}function Zv(t,e){return kr(t.getUTCMinutes(),e,2)}function Qv(t,e){return kr(t.getUTCSeconds(),e,2)}function M5(t){var e=t.getUTCDay();return e===0?7:e}function Jv(t,e){return kr(Cg.count(rf(t)-1,t),e,2)}function Kv(t){var e=t.getUTCDay();return e>=4||e===0?Al(t):Al.ceil(t)}function t_(t,e){return t=Kv(t),kr(Al.count(rf(t),t)+(rf(t).getUTCDay()===4),e,2)}function e_(t){return t.getUTCDay()}function n_(t,e){return kr(h1.count(rf(t)-1,t),e,2)}function A5(t,e){return kr(t.getUTCFullYear()%100,e,2)}function D5(t,e){return kr((t=Kv(t)).getUTCFullYear()%100,e,2)}function uf(t,e){return kr(t.getUTCFullYear()%1e4,e,4)}function r_(t,e){var r=t.getUTCDay();return kr((t=r>=4||r===0?Al(t):Al.ceil(t)).getUTCFullYear()%1e4,e,4)}function i_(){return"+0000"}function S1(){return"%"}function C1(t){return+t}function M1(t){return Math.floor(+t/1e3)}af=function(t){var e=t.dateTime,r=t.date,o=t.time,d=t.periods,p=t.days,m=t.shortDays,b=t.months,S=t.shortMonths,T=of(d),O=sf(d),j=of(p),F=sf(p),U=of(m),it=sf(m),yt=of(b),vt=sf(b),xt=of(S),mt=sf(S),ot={a:function(St){return m[St.getDay()]},A:function(St){return p[St.getDay()]},b:function(St){return S[St.getMonth()]},B:function(St){return b[St.getMonth()]},c:null,d:m1,e:m1,f:Ig,g:T5,G:S5,H:Wv,I:Hv,j:w5,L:qv,m:$v,M:cf,p:function(St){return d[+(St.getHours()>=12)]},q:function(St){return 1+~~(St.getMonth()/3)},Q:C1,s:M1,S:v1,u:_1,U:k5,V:x1,w:w1,W:Rg,x:null,X:null,y:Bl,Y:E5,Z:Vv,"%":S1},Ht={a:function(St){return m[St.getUTCDay()]},A:function(St){return p[St.getUTCDay()]},b:function(St){return S[St.getUTCMonth()]},B:function(St){return b[St.getUTCMonth()]},c:null,d:k1,e:k1,f:E1,g:D5,G:r_,H:C5,I:T1,j:Gv,L:Fg,m:Xv,M:Zv,p:function(St){return d[+(St.getUTCHours()>=12)]},q:function(St){return 1+~~(St.getUTCMonth()/3)},Q:C1,s:M1,S:Qv,u:M5,U:Jv,V:t_,w:e_,W:n_,x:null,X:null,y:A5,Y:uf,Z:i_,"%":S1},Dt={a:function(St,wt,jt){var Ct=U.exec(wt.slice(jt));return Ct?(St.w=it.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},A:function(St,wt,jt){var Ct=j.exec(wt.slice(jt));return Ct?(St.w=F.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},b:function(St,wt,jt){var Ct=xt.exec(wt.slice(jt));return Ct?(St.m=mt.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},B:function(St,wt,jt){var Ct=yt.exec(wt.slice(jt));return Ct?(St.m=vt.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},c:function(St,wt,jt){return Kt(St,e,wt,jt)},d:Og,e:Og,f:y1,g:p1,G:d1,H:Bg,I:Bg,j:Yv,L:g1,m:Pv,M:x5,p:function(St,wt,jt){var Ct=T.exec(wt.slice(jt));return Ct?(St.p=O.get(Ct[0].toLowerCase()),jt+Ct[0].length):-1},q:Fv,Q:zv,s:Lg,S:jv,u:Iv,U:b5,V:Ol,w:_5,W:Ng,x:function(St,wt,jt){return Kt(St,r,wt,jt)},X:function(St,wt,jt){return Kt(St,o,wt,jt)},y:p1,Y:d1,Z:Rv,"%":Uv};function ft(St,wt){return function(jt){var Ct,Jt,pt,le=[],ve=-1,me=0,Me=St.length;for(jt instanceof Date||(jt=new Date(+jt));++ve<Me;)St.charCodeAt(ve)===37&&(le.push(St.slice(me,ve)),(Jt=f1[Ct=St.charAt(++ve)])!=null?Ct=St.charAt(++ve):Jt=Ct==="e"?" ":"0",(pt=wt[Ct])&&(Ct=pt(jt,Jt)),le.push(Ct),me=ve+1);return le.push(St.slice(me,ve)),le.join("")}}function Nt(St,wt){return function(jt){var Ct,Jt,pt=Nl(1900,void 0,1);if(Kt(pt,St,jt+="",0)!=jt.length)return null;if("Q"in pt)return new Date(pt.Q);if("s"in pt)return new Date(1e3*pt.s+("L"in pt?pt.L:0));if(wt&&!("Z"in pt)&&(pt.Z=0),"p"in pt&&(pt.H=pt.H%12+12*pt.p),pt.m===void 0&&(pt.m="q"in pt?pt.q:0),"V"in pt){if(pt.V<1||pt.V>53)return null;"w"in pt||(pt.w=1),"Z"in pt?(Jt=(Ct=Dg(Nl(pt.y,0,1))).getUTCDay(),Ct=Jt>4||Jt===0?h1.ceil(Ct):h1(Ct),Ct=da.offset(Ct,7*(pt.V-1)),pt.y=Ct.getUTCFullYear(),pt.m=Ct.getUTCMonth(),pt.d=Ct.getUTCDate()+(pt.w+6)%7):(Jt=(Ct=Ma(Nl(pt.y,0,1))).getDay(),Ct=Jt>4||Jt===0?Lo.ceil(Ct):Lo(Ct),Ct=Mg.offset(Ct,7*(pt.V-1)),pt.y=Ct.getFullYear(),pt.m=Ct.getMonth(),pt.d=Ct.getDate()+(pt.w+6)%7)}else("W"in pt||"U"in pt)&&("w"in pt||(pt.w="u"in pt?pt.u%7:"W"in pt?1:0),Jt="Z"in pt?Dg(Nl(pt.y,0,1)).getUTCDay():Ma(Nl(pt.y,0,1)).getDay(),pt.m=0,pt.d="W"in pt?(pt.w+6)%7+7*pt.W-(Jt+5)%7:pt.w+7*pt.U-(Jt+6)%7);return"Z"in pt?(pt.H+=pt.Z/100|0,pt.M+=pt.Z%100,Dg(pt)):Ma(pt)}}function Kt(St,wt,jt,Ct){for(var Jt,pt,le=0,ve=wt.length,me=jt.length;le<ve;){if(Ct>=me)return-1;if((Jt=wt.charCodeAt(le++))===37){if(Jt=wt.charAt(le++),!(pt=Dt[Jt in f1?wt.charAt(le++):Jt])||(Ct=pt(St,jt,Ct))<0)return-1}else if(Jt!=jt.charCodeAt(Ct++))return-1}return Ct}return ot.x=ft(r,ot),ot.X=ft(o,ot),ot.c=ft(e,ot),Ht.x=ft(r,Ht),Ht.X=ft(o,Ht),Ht.c=ft(e,Ht),{format:function(St){var wt=ft(St+="",ot);return wt.toString=function(){return St},wt},parse:function(St){var wt=Nt(St+="",!1);return wt.toString=function(){return St},wt},utcFormat:function(St){var wt=ft(St+="",Ht);return wt.toString=function(){return St},wt},utcParse:function(St){var wt=Nt(St+="",!0);return wt.toString=function(){return St},wt}}}({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"]}),eo=af.format,af.parse,af.utcFormat,af.utcParse;var Pg={value:()=>{}};function js(){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 A1(o)}function A1(t){this._=t}function N5(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",d=r.indexOf(".");if(d>=0&&(o=r.slice(d+1),r=r.slice(0,d)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}function a_(t,e){for(var r,o=0,d=t.length;o<d;++o)if((r=t[o]).name===e)return r.value}function o_(t,e,r){for(var o=0,d=t.length;o<d;++o)if(t[o].name===e){t[o]=Pg,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}A1.prototype=js.prototype={constructor:A1,on:function(t,e){var r,o=this._,d=N5(t+"",o),p=-1,m=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++p<m;)if(r=(t=d[p]).type)o[r]=o_(o[r],t.name,e);else if(e==null)for(r in o)o[r]=o_(o[r],t.name,null);return this}for(;++p<m;)if((r=(t=d[p]).type)&&(r=a_(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new A1(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,d=new Array(r),p=0;p<r;++p)d[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,d)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],d=0,p=o.length;d<p;++d)o[d].value.apply(e,r)}};const s_=js;var Us,wc,ls=0,kc=0,lf=0,gu=0,Tc=0,hf=0,Ya=typeof performance=="object"&&performance.now?performance:Date,Io=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ff(){return Tc||(Io(Yg),Tc=Ya.now()+hf)}function Yg(){Tc=0}function Ec(){this._call=this._time=this._next=null}function df(t,e,r){var o=new Ec;return o.restart(t,e,r),o}function pf(){Tc=(gu=Ya.now())+hf,ls=kc=0;try{(function(){ff(),++ls;for(var t,e=Us;e;)(t=Tc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ls})()}finally{ls=0,function(){for(var t,e,r=Us,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:Us=e);wc=t,gf(o)}(),Tc=0}}function Ll(){var t=Ya.now(),e=t-gu;e>1e3&&(hf-=e,gu=t)}function gf(t){ls||(kc&&(kc=clearTimeout(kc)),t-Tc>24?(t<1/0&&(kc=setTimeout(pf,t-Ya.now()-hf)),lf&&(lf=clearInterval(lf))):(lf||(gu=Ya.now(),lf=setInterval(Ll,1e3)),ls=1,Io(pf)))}function D1(t,e,r){var o=new Ec;return e=e==null?0:+e,o.restart(d=>{o.stop(),t(d+e)},e,r),o}Ec.prototype=df.prototype={constructor:Ec,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?ff():+r)+(e==null?0:+e),this._next||wc===this||(wc?wc._next=this:Us=this,wc=this),this._call=t,this._time=r,gf()},stop:function(){this._call&&(this._call=null,this._time=1/0,gf())}};var yf=s_("start","end","cancel","interrupt"),Ro=[];function hs(t,e,r,o,d,p){var m=t.__transition;if(m){if(r in m)return}else t.__transition={};(function(b,S,T){var O,j=b.__transition;function F(yt){var vt,xt,mt,ot;if(T.state!==1)return it();for(vt in j)if((ot=j[vt]).name===T.name){if(ot.state===3)return D1(F);ot.state===4?(ot.state=6,ot.timer.stop(),ot.on.call("interrupt",b,b.__data__,ot.index,ot.group),delete j[vt]):+vt<S&&(ot.state=6,ot.timer.stop(),ot.on.call("cancel",b,b.__data__,ot.index,ot.group),delete j[vt])}if(D1(function(){T.state===3&&(T.state=4,T.timer.restart(U,T.delay,T.time),U(yt))}),T.state=2,T.on.call("start",b,b.__data__,T.index,T.group),T.state===2){for(T.state=3,O=new Array(mt=T.tween.length),vt=0,xt=-1;vt<mt;++vt)(ot=T.tween[vt].value.call(b,b.__data__,T.index,T.group))&&(O[++xt]=ot);O.length=xt+1}}function U(yt){for(var vt=yt<T.duration?T.ease.call(null,yt/T.duration):(T.timer.restart(it),T.state=5,1),xt=-1,mt=O.length;++xt<mt;)O[xt].call(b,vt);T.state===5&&(T.on.call("end",b,b.__data__,T.index,T.group),it())}function it(){for(var yt in T.state=6,T.timer.stop(),delete j[S],j)return;delete b.__transition}j[S]=T,T.timer=df(function(yt){T.state=1,T.timer.restart(F,T.delay,T.time),T.delay<=yt&&F(yt-T.delay)},0,T.time)})(t,r,{name:e,index:o,group:d,on:yf,tween:Ro,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function N1(t,e){var r=Fo(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function fs(t,e){var r=Fo(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Fo(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 O1,c_=180/Math.PI,jg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ug(t,e,r,o,d,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:d,translateY:p,rotate:Math.atan2(e,t)*c_,skewX:Math.atan(S)*c_,scaleX:m,scaleY:b}}function zg(t,e,r,o){function d(p){return p.length?p.pop()+" ":""}return function(p,m){var b=[],S=[];return p=t(p),m=t(m),function(T,O,j,F,U,it){if(T!==j||O!==F){var yt=U.push("translate(",null,e,null,r);it.push({i:yt-4,x:zs(T,j)},{i:yt-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(T,O,j,F){T!==O?(T-O>180?O+=360:O-T>180&&(T+=360),F.push({i:j.push(d(j)+"rotate(",null,o)-2,x:zs(T,O)})):O&&j.push(d(j)+"rotate("+O+o)}(p.rotate,m.rotate,b,S),function(T,O,j,F){T!==O?F.push({i:j.push(d(j)+"skewX(",null,o)-2,x:zs(T,O)}):O&&j.push(d(j)+"skewX("+O+o)}(p.skewX,m.skewX,b,S),function(T,O,j,F,U,it){if(T!==j||O!==F){var yt=U.push(d(U)+"scale(",null,",",null,")");it.push({i:yt-4,x:zs(T,j)},{i:yt-2,x:zs(O,F)})}else j===1&&F===1||U.push(d(U)+"scale("+j+","+F+")")}(p.scaleX,p.scaleY,m.scaleX,m.scaleY,b,S),p=m=null,function(T){for(var O,j=-1,F=S.length;++j<F;)b[(O=S[j]).i]=O.x(T);return b.join("")}}}var u_=zg(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?jg:Ug(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Wg=zg(function(t){return t==null?jg:(O1||(O1=document.createElementNS("http://www.w3.org/2000/svg","g")),O1.setAttribute("transform",t),(t=O1.transform.baseVal.consolidate())?Ug((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):jg)},", ",")",")");function l_(t,e){var r,o;return function(){var d=fs(this,t),p=d.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}}d.tween=o}}function h_(t,e,r){var o,d;if(typeof r!="function")throw new Error;return function(){var p=fs(this,t),m=p.tween;if(m!==o){d=(o=m).slice();for(var b={name:e,value:r},S=0,T=d.length;S<T;++S)if(d[S].name===e){d[S]=b;break}S===T&&d.push(b)}p.tween=d}}function yu(t,e,r){var o=t._id;return t.each(function(){var d=fs(this,o);(d.value||(d.value={}))[e]=r.apply(this,arguments)}),function(d){return Fo(d,o).value[e]}}const Il=function t(e){var r=function(d){return(d=+d)==1?Bh:function(p,m){return m-p?function(b,S,T){return b=Math.pow(b,T),S=Math.pow(S,T)-b,T=1/T,function(O){return Math.pow(b+O*S,T)}}(p,m,d):Mp(isNaN(p)?m:p)}}(e);function o(d,p){var m=r((d=Br(d)).r,(p=Br(p)).r),b=r(d.g,p.g),S=r(d.b,p.b),T=Bh(d.opacity,p.opacity);return function(O){return d.r=m(O),d.g=b(O),d.b=S(O),d.opacity=T(O),d+""}}return o.gamma=t,o}(1);var mf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rl=new RegExp(mf.source,"g");function O5(t,e){var r,o,d,p=mf.lastIndex=Rl.lastIndex=0,m=-1,b=[],S=[];for(t+="",e+="";(r=mf.exec(t))&&(o=Rl.exec(e));)(d=o.index)>p&&(d=e.slice(p,d),b[m]?b[m]+=d:b[++m]=d),(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=Rl.lastIndex;return p<e.length&&(d=e.slice(p),b[m]?b[m]+=d:b[++m]=d),b.length<2?S[0]?function(T){return function(O){return T(O)+""}}(S[0].x):function(T){return function(){return T}}(e):(e=S.length,function(T){for(var O,j=0;j<e;++j)b[(O=S[j]).i]=O.x(T);return b.join("")})}function Hg(t,e){var r;return(typeof e=="number"?zs:e instanceof kn?Il:(r=kn(e))?(e=r,Il):O5)(t,e)}function f_(t){return function(){this.removeAttribute(t)}}function d_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p_(t,e,r){var o,d,p=r+"";return function(){var m=this.getAttribute(t);return m===p?null:m===o?d:d=e(o=m,r)}}function B5(t,e,r){var o,d,p=r+"";return function(){var m=this.getAttributeNS(t.space,t.local);return m===p?null:m===o?d:d=e(o=m,r)}}function L5(t,e,r){var o,d,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttribute(t))===(b=S+"")?null:m===o&&b===d?p:(d=b,p=e(o=m,S));this.removeAttribute(t)}}function vf(t,e,r){var o,d,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===d?p:(d=b,p=e(o=m,S));this.removeAttributeNS(t.space,t.local)}}function qg(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function $g(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function B1(t,e){var r,o;function d(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&$g(t,p)),r}return d._value=e,d}function Vg(t,e){var r,o;function d(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&qg(t,p)),r}return d._value=e,d}function Gg(t,e){return function(){N1(this,t).delay=+e.apply(this,arguments)}}function Xg(t,e){return e=+e,function(){N1(this,t).delay=e}}function I5(t,e){return function(){fs(this,t).duration=+e.apply(this,arguments)}}function g_(t,e){return e=+e,function(){fs(this,t).duration=e}}function R5(t,e){if(typeof e!="function")throw new Error;return function(){fs(this,t).ease=e}}function F5(t,e,r){var o,d,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)?N1:fs;return function(){var m=p(this,t),b=m.on;b!==o&&(d=(o=b).copy()).on(e,r),m.on=d}}var y_=wn.prototype.constructor;function Po(t){return function(){this.style.removeProperty(t)}}function Zg(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Qg(t,e,r){var o,d;function p(){var m=e.apply(this,arguments);return m!==d&&(o=(d=m)&&Zg(t,m,r)),o}return p._value=e,p}function m_(t){return function(e){this.textContent=t.call(this,e)}}function L1(t){var e,r;function o(){var d=t.apply(this,arguments);return d!==r&&(e=(r=d)&&m_(d)),e}return o._value=t,o}var v_=0;function Ws(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function Jg(){return++v_}var no=wn.prototype;Ws.prototype={constructor:Ws,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=ml(t));for(var o=this._groups,d=o.length,p=new Array(d),m=0;m<d;++m)for(var b,S,T=o[m],O=T.length,j=p[m]=new Array(O),F=0;F<O;++F)(b=T[F])&&(S=t.call(b,b.__data__,F,T))&&("__data__"in b&&(S.__data__=b.__data__),j[F]=S,hs(j[F],e,r,F,j,Fo(b,r)));return new Ws(p,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=lv(t));for(var o=this._groups,d=o.length,p=[],m=[],b=0;b<d;++b)for(var S,T=o[b],O=T.length,j=0;j<O;++j)if(S=T[j]){for(var F,U=t.call(S,S.__data__,j,T),it=Fo(S,r),yt=0,vt=U.length;yt<vt;++yt)(F=U[yt])&&hs(F,e,r,yt,U,it);p.push(U),m.push(S)}return new Ws(p,m,e,r)},selectChild:no.selectChild,selectChildren:no.selectChildren,filter:function(t){typeof t!="function"&&(t=hv(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m=e[d],b=m.length,S=o[d]=[],T=0;T<b;++T)(p=m[T])&&t.call(p,p.__data__,T,m)&&S.push(p);return new Ws(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,d=r.length,p=Math.min(o,d),m=new Array(o),b=0;b<p;++b)for(var S,T=e[b],O=r[b],j=T.length,F=m[b]=new Array(j),U=0;U<j;++U)(S=T[U]||O[U])&&(F[U]=S);for(;b<o;++b)m[b]=e[b];return new Ws(m,this._parents,this._name,this._id)},selection:function(){return new y_(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Jg(),o=this._groups,d=o.length,p=0;p<d;++p)for(var m,b=o[p],S=b.length,T=0;T<S;++T)if(m=b[T]){var O=Fo(m,e);hs(m,t,r,T,b,{time:O.time+O.delay+O.duration,delay:0,duration:O.duration,ease:O.ease})}return new Ws(o,this._parents,t,r)},call:no.call,nodes:no.nodes,node:no.node,size:no.size,empty:no.empty,each:no.each,on:function(t,e){var r=this._id;return arguments.length<2?Fo(this.node(),r).on.on(t):this.each(F5(r,t,e))},attr:function(t,e){var r=vl(t),o=r==="transform"?Wg:Hg;return this.attrTween(t,typeof e=="function"?(r.local?vf:L5)(r,o,yu(this,"attr."+t,e)):e==null?(r.local?d_:f_)(r):(r.local?B5:p_)(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=vl(t);return this.tween(r,(o.local?B1:Vg)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?u_:Hg;return e==null?this.styleTween(t,function(d,p){var m,b,S;return function(){var T=_l(this,d),O=(this.style.removeProperty(d),_l(this,d));return T===O?null:T===m&&O===b?S:S=p(m=T,b=O)}}(t,o)).on("end.style."+t,Po(t)):typeof e=="function"?this.styleTween(t,function(d,p,m){var b,S,T;return function(){var O=_l(this,d),j=m(this),F=j+"";return j==null&&(this.style.removeProperty(d),F=j=_l(this,d)),O===F?null:O===b&&F===S?T:(S=F,T=p(b=O,j))}}(t,o,yu(this,"style."+t,e))).each(function(d,p){var m,b,S,T,O="style."+p,j="end."+O;return function(){var F=fs(this,d),U=F.on,it=F.value[O]==null?T||(T=Po(p)):void 0;U===m&&S===it||(b=(m=U).copy()).on(j,S=it),F.on=b}}(this._id,t)):this.styleTween(t,function(d,p,m){var b,S,T=m+"";return function(){var O=_l(this,d);return O===T?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,Qg(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}}(yu(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,L1(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,d=Fo(this.node(),r).tween,p=0,m=d.length;p<m;++p)if((o=d[p]).name===t)return o.value;return null}return this.each((e==null?l_:h_)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Gg:Xg)(e,t)):Fo(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?I5:g_)(e,t)):Fo(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(R5(e,t)):Fo(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;fs(this,e).ease=o}}(this._id,t))},end:function(){var t,e,r=this,o=r._id,d=r.size();return new Promise(function(p,m){var b={value:m},S={value:function(){--d==0&&p()}};r.each(function(){var T=fs(this,o),O=T.on;O!==t&&((e=(t=O).copy())._.cancel.push(b),e._.interrupt.push(b),e._.end.push(S)),T.on=e}),d===0&&p()})},[Symbol.iterator]:no[Symbol.iterator]};var Kg={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function P5(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 ty(){}function ey(t){return t==null?ty:function(){return this.querySelector(t)}}function _f(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Y5(){return[]}function ny(t){return t==null?Y5:function(){return this.querySelectorAll(t)}}function bf(t){return function(){return this.matches(t)}}function ry(t){return function(e){return e.matches(t)}}wn.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var o,d,p,m=e.__transition,b=!0;if(m){for(p in r=r==null?null:r+"",m)(o=m[p]).name===r?(d=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(d?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete m[p]):b=!1;b&&delete e.__transition}})(this,t)})},wn.prototype.transition=function(t){var e,r;t instanceof Ws?(e=t._id,t=t._name):(e=Jg(),(r=Kg).time=ff(),t=t==null?null:t+"");for(var o=this._groups,d=o.length,p=0;p<d;++p)for(var m,b=o[p],S=b.length,T=0;T<S;++T)(m=b[T])&&hs(m,t,e,T,b,r||P5(m,e));return new Ws(o,this._parents,t,e)};var j5=Array.prototype.find;function xf(){return this.firstElementChild}var U5=Array.prototype.filter;function __(){return Array.from(this.children)}function b_(t){return new Array(t.length)}function Sc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function wf(t){return function(){return t}}function kf(t,e,r,o,d,p){for(var m,b=0,S=e.length,T=p.length;b<T;++b)(m=e[b])?(m.__data__=p[b],o[b]=m):r[b]=new Sc(t,p[b]);for(;b<S;++b)(m=e[b])&&(d[b]=m)}function Tf(t,e,r,o,d,p,m){var b,S,T,O=new Map,j=e.length,F=p.length,U=new Array(j);for(b=0;b<j;++b)(S=e[b])&&(U[b]=T=m.call(S,S.__data__,b,e)+"",O.has(T)?d[b]=S:O.set(T,S));for(b=0;b<F;++b)T=m.call(t,p[b],b,p)+"",(S=O.get(T))?(o[b]=S,S.__data__=p[b],O.delete(T)):r[b]=new Sc(t,p[b]);for(b=0;b<j;++b)(S=e[b])&&O.get(U[b])===S&&(d[b]=S)}function I1(t){return t.__data__}function iy(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function z5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Sc.prototype={constructor:Sc,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 Ef="http://www.w3.org/1999/xhtml";const x_={svg:"http://www.w3.org/2000/svg",xhtml:Ef,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function R1(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),x_.hasOwnProperty(e)?{space:x_[e],local:t}:t}function ay(t){return function(){this.removeAttribute(t)}}function W5(t){return function(){this.removeAttributeNS(t.space,t.local)}}function oy(t,e){return function(){this.setAttribute(t,e)}}function H5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function sy(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function q5(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 F1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $5(t){return function(){this.style.removeProperty(t)}}function V5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function G5(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Fl(t,e){return t.style.getPropertyValue(e)||F1(t).getComputedStyle(t,null).getPropertyValue(e)}function X5(t){return function(){delete this[t]}}function Z5(t,e){return function(){this[t]=e}}function cy(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function w_(t){return t.trim().split(/^|\s+/)}function uy(t){return t.classList||new ly(t)}function ly(t){this._node=t,this._names=w_(t.getAttribute("class")||"")}function mu(t,e){for(var r=uy(t),o=-1,d=e.length;++o<d;)r.add(e[o])}function k_(t,e){for(var r=uy(t),o=-1,d=e.length;++o<d;)r.remove(e[o])}function T_(t){return function(){mu(this,t)}}function Q5(t){return function(){k_(this,t)}}function P1(t,e){return function(){(e.apply(this,arguments)?mu:k_)(this,t)}}function E_(){this.textContent=""}function hy(t){return function(){this.textContent=t}}function J5(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Sf(){this.innerHTML=""}function S_(t){return function(){this.innerHTML=t}}function C_(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function M_(){this.nextSibling&&this.parentNode.appendChild(this)}function A_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Y1(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Ef&&e.documentElement.namespaceURI===Ef?e.createElement(t):e.createElementNS(r,t)}}function D_(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function N_(t){var e=R1(t);return(e.local?D_:Y1)(e)}function K5(){return null}function j1(){var t=this.parentNode;t&&t.removeChild(this)}function vu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Pl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function t6(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 e6(t){return function(){var e=this.__on;if(e){for(var r,o=0,d=-1,p=e.length;o<p;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++d]=r:this.removeEventListener(r.type,r.listener,r.options);++d?e.length=d:delete this.__on}}}function O_(t,e,r){return function(){var o,d=this.__on,p=function(S){return function(T){S.call(this,T,this.__data__)}}(e);if(d){for(var m=0,b=d.length;m<b;++m)if((o=d[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},d?d.push(o):this.__on=[o]}}function U1(t,e,r){var o=F1(t),d=o.CustomEvent;typeof d=="function"?d=new d(e,r):(d=o.document.createEvent("Event"),r?(d.initEvent(e,r.bubbles,r.cancelable),d.detail=r.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function B_(t,e){return function(){return U1(this,t,e)}}function L_(t,e){return function(){return U1(this,t,e.apply(this,arguments))}}ly.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 Cf=[null];function Yo(t,e){this._groups=t,this._parents=e}function I_(){return new Yo([[document.documentElement]],Cf)}Yo.prototype=I_.prototype={constructor:Yo,select:function(t){typeof t!="function"&&(t=ey(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m,b=e[d],S=b.length,T=o[d]=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__),T[O]=m);return new Yo(o,this._parents)},selectAll:function(t){t=typeof t=="function"?function(O){return function(){return _f(O.apply(this,arguments))}}(t):ny(t);for(var e=this._groups,r=e.length,o=[],d=[],p=0;p<r;++p)for(var m,b=e[p],S=b.length,T=0;T<S;++T)(m=b[T])&&(o.push(t.call(m,m.__data__,T,b)),d.push(m));return new Yo(o,d)},selectChild:function(t){return this.select(t==null?xf:function(e){return function(){return j5.call(this.children,e)}}(typeof t=="function"?t:ry(t)))},selectChildren:function(t){return this.selectAll(t==null?__:function(e){return function(){return U5.call(this.children,e)}}(typeof t=="function"?t:ry(t)))},filter:function(t){typeof t!="function"&&(t=bf(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m=e[d],b=m.length,S=o[d]=[],T=0;T<b;++T)(p=m[T])&&t.call(p,p.__data__,T,m)&&S.push(p);return new Yo(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,I1);var r=e?Tf:kf,o=this._parents,d=this._groups;typeof t!="function"&&(t=wf(t));for(var p=d.length,m=new Array(p),b=new Array(p),S=new Array(p),T=0;T<p;++T){var O=o[T],j=d[T],F=j.length,U=iy(t.call(O,O&&O.__data__,T,o)),it=U.length,yt=b[T]=new Array(it),vt=m[T]=new Array(it),xt=S[T]=new Array(F);r(O,j,yt,vt,xt,U,e);for(var mt,ot,Ht=0,Dt=0;Ht<it;++Ht)if(mt=yt[Ht]){for(Ht>=Dt&&(Dt=Ht+1);!(ot=vt[Dt])&&++Dt<it;);mt._next=ot||null}}return(m=new Yo(m,o))._enter=b,m._exit=S,m},enter:function(){return new Yo(this._enter||this._groups.map(b_),this._parents)},exit:function(){return new Yo(this._exit||this._groups.map(b_),this._parents)},join:function(t,e,r){var o=this.enter(),d=this,p=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),r==null?p.remove():r(p),o&&d?o.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,d=r.length,p=o.length,m=Math.min(d,p),b=new Array(d),S=0;S<m;++S)for(var T,O=r[S],j=o[S],F=O.length,U=b[S]=new Array(F),it=0;it<F;++it)(T=O[it]||j[it])&&(U[it]=T);for(;S<d;++S)b[S]=r[S];return new Yo(b,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,d=t[e],p=d.length-1,m=d[p];--p>=0;)(o=d[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=z5);for(var r=this._groups,o=r.length,d=new Array(o),p=0;p<o;++p){for(var m,b=r[p],S=b.length,T=d[p]=new Array(S),O=0;O<S;++O)(m=b[O])&&(T[O]=m);T.sort(e)}return new Yo(d,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],d=0,p=o.length;d<p;++d){var m=o[d];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 d,p=e[r],m=0,b=p.length;m<b;++m)(d=p[m])&&t.call(d,d.__data__,m,p);return this},attr:function(t,e){var r=R1(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?W5:ay:typeof e=="function"?r.local?q5:sy:r.local?H5:oy)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?$5:typeof e=="function"?G5:V5)(t,e,r==null?"":r)):Fl(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?X5:typeof e=="function"?cy:Z5)(t,e)):this.node()[t]},classed:function(t,e){var r=w_(t+"");if(arguments.length<2){for(var o=uy(this.node()),d=-1,p=r.length;++d<p;)if(!o.contains(r[d]))return!1;return!0}return this.each((typeof e=="function"?P1:e?T_:Q5)(r,e))},text:function(t){return arguments.length?this.each(t==null?E_:(typeof t=="function"?J5:hy)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Sf:(typeof t=="function"?C_:S_)(t)):this.node().innerHTML},raise:function(){return this.each(M_)},lower:function(){return this.each(A_)},append:function(t){var e=typeof t=="function"?t:N_(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:N_(t),o=e==null?K5:typeof e=="function"?e:ey(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function(){return this.each(j1)},clone:function(t){return this.select(t?Pl:vu)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,d,p=t6(t+""),m=p.length;if(!(arguments.length<2)){for(b=e?O_:e6,o=0;o<m;++o)this.each(b(p[o],e,r));return this}var b=this.node().__on;if(b){for(var S,T=0,O=b.length;T<O;++T)for(o=0,S=b[T];o<m;++o)if((d=p[o]).type===S.type&&d.name===S.name)return S.value}},dispatch:function(t,e){return this.each((typeof e=="function"?L_:B_)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,d=t[e],p=0,m=d.length;p<m;++p)(o=d[p])&&(yield o)}};const Mf=I_;var n6={value:()=>{}};function R_(){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 z1(o)}function z1(t){this._=t}function r6(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",d=r.indexOf(".");if(d>=0&&(o=r.slice(d+1),r=r.slice(0,d)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}function fy(t,e){for(var r,o=0,d=t.length;o<d;++o)if((r=t[o]).name===e)return r.value}function W1(t,e,r){for(var o=0,d=t.length;o<d;++o)if(t[o].name===e){t[o]=n6,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}z1.prototype=R_.prototype={constructor:z1,on:function(t,e){var r,o=this._,d=r6(t+"",o),p=-1,m=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++p<m;)if(r=(t=d[p]).type)o[r]=W1(o[r],t.name,e);else if(e==null)for(r in o)o[r]=W1(o[r],t.name,null);return this}for(;++p<m;)if((r=(t=d[p]).type)&&(r=fy(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new z1(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,d=new Array(r),p=0;p<r;++p)d[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,d)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],d=0,p=o.length;d<p;++d)o[d].value.apply(e,r)}};const i6=R_;var H1,Cc,Yl=0,Mc=0,jl=0,Af=0,Ac=0,q1=0,Df=typeof performance=="object"&&performance.now?performance:Date,F_=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function dy(){return Ac||(F_(a6),Ac=Df.now()+q1)}function a6(){Ac=0}function $1(){this._call=this._time=this._next=null}function py(t,e,r){var o=new $1;return o.restart(t,e,r),o}function Ul(){Ac=(Af=Df.now())+q1,Yl=Mc=0;try{(function(){dy(),++Yl;for(var t,e=H1;e;)(t=Ac-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yl})()}finally{Yl=0,function(){for(var t,e,r=H1,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:H1=e);Cc=t,V1(o)}(),Ac=0}}function P_(){var t=Df.now(),e=t-Af;e>1e3&&(q1-=e,Af=t)}function V1(t){Yl||(Mc&&(Mc=clearTimeout(Mc)),t-Ac>24?(t<1/0&&(Mc=setTimeout(Ul,t-Df.now()-q1)),jl&&(jl=clearInterval(jl))):(jl||(Af=Df.now(),jl=setInterval(P_,1e3)),Yl=1,F_(Ul)))}function gy(t,e,r){var o=new $1;return e=e==null?0:+e,o.restart(d=>{o.stop(),t(d+e)},e,r),o}$1.prototype=py.prototype={constructor:$1,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?dy():+r)+(e==null?0:+e),this._next||Cc===this||(Cc?Cc._next=this:H1=this,Cc=this),this._call=t,this._time=r,V1()},stop:function(){this._call&&(this._call=null,this._time=1/0,V1())}};var o6=i6("start","end","cancel","interrupt"),s6=[];function G1(t,e,r,o,d,p){var m=t.__transition;if(m){if(r in m)return}else t.__transition={};(function(b,S,T){var O,j=b.__transition;function F(yt){var vt,xt,mt,ot;if(T.state!==1)return it();for(vt in j)if((ot=j[vt]).name===T.name){if(ot.state===3)return gy(F);ot.state===4?(ot.state=6,ot.timer.stop(),ot.on.call("interrupt",b,b.__data__,ot.index,ot.group),delete j[vt]):+vt<S&&(ot.state=6,ot.timer.stop(),ot.on.call("cancel",b,b.__data__,ot.index,ot.group),delete j[vt])}if(gy(function(){T.state===3&&(T.state=4,T.timer.restart(U,T.delay,T.time),U(yt))}),T.state=2,T.on.call("start",b,b.__data__,T.index,T.group),T.state===2){for(T.state=3,O=new Array(mt=T.tween.length),vt=0,xt=-1;vt<mt;++vt)(ot=T.tween[vt].value.call(b,b.__data__,T.index,T.group))&&(O[++xt]=ot);O.length=xt+1}}function U(yt){for(var vt=yt<T.duration?T.ease.call(null,yt/T.duration):(T.timer.restart(it),T.state=5,1),xt=-1,mt=O.length;++xt<mt;)O[xt].call(b,vt);T.state===5&&(T.on.call("end",b,b.__data__,T.index,T.group),it())}function it(){for(var yt in T.state=6,T.timer.stop(),delete j[S],j)return;delete b.__transition}j[S]=T,T.timer=py(function(yt){T.state=1,T.timer.restart(F,T.delay,T.time),T.delay<=yt&&F(yt-T.delay)},0,T.time)})(t,r,{name:e,index:o,group:d,on:o6,tween:s6,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function X1(t,e){var r=jo(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function ds(t,e){var r=jo(t,e);if(r.state>3)throw new Error("too late; already running");return r}function jo(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Hs(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Z1,Nf=180/Math.PI,yy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Y_(t,e,r,o,d,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:d,translateY:p,rotate:Math.atan2(e,t)*Nf,skewX:Math.atan(S)*Nf,scaleX:m,scaleY:b}}function j_(t,e,r,o){function d(p){return p.length?p.pop()+" ":""}return function(p,m){var b=[],S=[];return p=t(p),m=t(m),function(T,O,j,F,U,it){if(T!==j||O!==F){var yt=U.push("translate(",null,e,null,r);it.push({i:yt-4,x:Hs(T,j)},{i:yt-2,x:Hs(O,F)})}else(j||F)&&U.push("translate("+j+e+F+r)}(p.translateX,p.translateY,m.translateX,m.translateY,b,S),function(T,O,j,F){T!==O?(T-O>180?O+=360:O-T>180&&(T+=360),F.push({i:j.push(d(j)+"rotate(",null,o)-2,x:Hs(T,O)})):O&&j.push(d(j)+"rotate("+O+o)}(p.rotate,m.rotate,b,S),function(T,O,j,F){T!==O?F.push({i:j.push(d(j)+"skewX(",null,o)-2,x:Hs(T,O)}):O&&j.push(d(j)+"skewX("+O+o)}(p.skewX,m.skewX,b,S),function(T,O,j,F,U,it){if(T!==j||O!==F){var yt=U.push(d(U)+"scale(",null,",",null,")");it.push({i:yt-4,x:Hs(T,j)},{i:yt-2,x:Hs(O,F)})}else j===1&&F===1||U.push(d(U)+"scale("+j+","+F+")")}(p.scaleX,p.scaleY,m.scaleX,m.scaleY,b,S),p=m=null,function(T){for(var O,j=-1,F=S.length;++j<F;)b[(O=S[j]).i]=O.x(T);return b.join("")}}}var c6=j_(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?yy:Y_(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),u6=j_(function(t){return t==null?yy:(Z1||(Z1=document.createElementNS("http://www.w3.org/2000/svg","g")),Z1.setAttribute("transform",t),(t=Z1.transform.baseVal.consolidate())?Y_((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):yy)},", ",")",")");function l6(t,e){var r,o;return function(){var d=ds(this,t),p=d.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}}d.tween=o}}function U_(t,e,r){var o,d;if(typeof r!="function")throw new Error;return function(){var p=ds(this,t),m=p.tween;if(m!==o){d=(o=m).slice();for(var b={name:e,value:r},S=0,T=d.length;S<T;++S)if(d[S].name===e){d[S]=b;break}S===T&&d.push(b)}p.tween=d}}function my(t,e,r){var o=t._id;return t.each(function(){var d=ds(this,o);(d.value||(d.value={}))[e]=r.apply(this,arguments)}),function(d){return jo(d,o).value[e]}}function vy(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function z_(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function ps(){}var Q1=.7,Of=1.4285714285714286,zl="\\s*([+-]?\\d+)\\s*",Wl="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h6=/^#([0-9a-f]{3,8})$/,Uo=new RegExp("^rgb\\("+[zl,zl,zl]+"\\)$"),qs=new RegExp("^rgb\\("+[gs,gs,gs]+"\\)$"),W_=new RegExp("^rgba\\("+[zl,zl,zl,Wl]+"\\)$"),J1=new RegExp("^rgba\\("+[gs,gs,gs,Wl]+"\\)$"),_u=new RegExp("^hsl\\("+[Wl,gs,gs]+"\\)$"),_y=new RegExp("^hsla\\("+[Wl,gs,gs,Wl]+"\\)$"),K1={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 t0(){return this.rgb().formatHex()}function by(){return this.rgb().formatRgb()}function Bf(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=h6.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?e0(e):r===3?new ja(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Lf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Lf(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=Uo.exec(t))?new ja(e[1],e[2],e[3],1):(e=qs.exec(t))?new ja(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=W_.exec(t))?Lf(e[1],e[2],e[3],e[4]):(e=J1.exec(t))?Lf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=_u.exec(t))?Rf(e[1],e[2]/100,e[3]/100,1):(e=_y.exec(t))?Rf(e[1],e[2]/100,e[3]/100,e[4]):K1.hasOwnProperty(t)?e0(K1[t]):t==="transparent"?new ja(NaN,NaN,NaN,0):null}function e0(t){return new ja(t>>16&255,t>>8&255,255&t,1)}function Lf(t,e,r,o){return o<=0&&(t=e=r=NaN),new ja(t,e,r,o)}function ra(t){return t instanceof ps||(t=Bf(t)),t?new ja((t=t.rgb()).r,t.g,t.b,t.opacity):new ja}function If(t,e,r,o){return arguments.length===1?ra(t):new ja(t,e,r,o==null?1:o)}function ja(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function H_(){return"#"+bu(this.r)+bu(this.g)+bu(this.b)}function q_(){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 bu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Rf(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new zo(t,e,r,o)}function xy(t){if(t instanceof zo)return new zo(t.h,t.s,t.l,t.opacity);if(t instanceof ps||(t=Bf(t)),!t)return new zo;if(t instanceof zo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,d=Math.min(e,r,o),p=Math.max(e,r,o),m=NaN,b=p-d,S=(p+d)/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+d:2-p-d,m*=60):b=S>0&&S<1?0:m,new zo(m,b,S,t.opacity)}function zo(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function $s(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}vy(ps,Bf,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:t0,formatHex:t0,formatHsl:function(){return xy(this).formatHsl()},formatRgb:by,toString:by}),vy(ja,If,z_(ps,{brighter:function(t){return t=t==null?Of:Math.pow(Of,t),new ja(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Q1:Math.pow(Q1,t),new ja(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:H_,formatHex:H_,formatRgb:q_,toString:q_})),vy(zo,function(t,e,r,o){return arguments.length===1?xy(t):new zo(t,e,r,o==null?1:o)},z_(ps,{brighter:function(t){return t=t==null?Of:Math.pow(Of,t),new zo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Q1:Math.pow(Q1,t),new zo(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,d=2*r-o;return new ja($s(t>=240?t-240:t+120,d,o),$s(t,d,o),$s(t<120?t+240:t-120,d,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 wy=t=>()=>t;function ky(t,e){var r=e-t;return r?function(o,d){return function(p){return o+p*d}}(t,r):wy(isNaN(t)?e:t)}const Ty=function t(e){var r=function(d){return(d=+d)==1?ky:function(p,m){return m-p?function(b,S,T){return b=Math.pow(b,T),S=Math.pow(S,T)-b,T=1/T,function(O){return Math.pow(b+O*S,T)}}(p,m,d):wy(isNaN(p)?m:p)}}(e);function o(d,p){var m=r((d=If(d)).r,(p=If(p)).r),b=r(d.g,p.g),S=r(d.b,p.b),T=ky(d.opacity,p.opacity);return function(O){return d.r=m(O),d.g=b(O),d.b=S(O),d.opacity=T(O),d+""}}return o.gamma=t,o}(1);var n0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,r0=new RegExp(n0.source,"g");function f6(t,e){var r,o,d,p=n0.lastIndex=r0.lastIndex=0,m=-1,b=[],S=[];for(t+="",e+="";(r=n0.exec(t))&&(o=r0.exec(e));)(d=o.index)>p&&(d=e.slice(p,d),b[m]?b[m]+=d:b[++m]=d),(r=r[0])===(o=o[0])?b[m]?b[m]+=o:b[++m]=o:(b[++m]=null,S.push({i:m,x:Hs(r,o)})),p=r0.lastIndex;return p<e.length&&(d=e.slice(p),b[m]?b[m]+=d:b[++m]=d),b.length<2?S[0]?function(T){return function(O){return T(O)+""}}(S[0].x):function(T){return function(){return T}}(e):(e=S.length,function(T){for(var O,j=0;j<e;++j)b[(O=S[j]).i]=O.x(T);return b.join("")})}function $_(t,e){var r;return(typeof e=="number"?Hs:e instanceof Bf?Ty:(r=Bf(e))?(e=r,Ty):f6)(t,e)}function d6(t){return function(){this.removeAttribute(t)}}function V_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ey(t,e,r){var o,d,p=r+"";return function(){var m=this.getAttribute(t);return m===p?null:m===o?d:d=e(o=m,r)}}function G_(t,e,r){var o,d,p=r+"";return function(){var m=this.getAttributeNS(t.space,t.local);return m===p?null:m===o?d:d=e(o=m,r)}}function X_(t,e,r){var o,d,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttribute(t))===(b=S+"")?null:m===o&&b===d?p:(d=b,p=e(o=m,S));this.removeAttribute(t)}}function Z_(t,e,r){var o,d,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===d?p:(d=b,p=e(o=m,S));this.removeAttributeNS(t.space,t.local)}}function Sy(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Q_(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function J_(t,e){var r,o;function d(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&Q_(t,p)),r}return d._value=e,d}function p6(t,e){var r,o;function d(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&Sy(t,p)),r}return d._value=e,d}function g6(t,e){return function(){X1(this,t).delay=+e.apply(this,arguments)}}function Cy(t,e){return e=+e,function(){X1(this,t).delay=e}}function My(t,e){return function(){ds(this,t).duration=+e.apply(this,arguments)}}function y6(t,e){return e=+e,function(){ds(this,t).duration=e}}function K_(t,e){if(typeof e!="function")throw new Error;return function(){ds(this,t).ease=e}}function t3(t,e,r){var o,d,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)?X1:ds;return function(){var m=p(this,t),b=m.on;b!==o&&(d=(o=b).copy()).on(e,r),m.on=d}}var e3=Mf.prototype.constructor;function i0(t){return function(){this.style.removeProperty(t)}}function Ay(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function ji(t,e,r){var o,d;function p(){var m=e.apply(this,arguments);return m!==d&&(o=(d=m)&&Ay(t,m,r)),o}return p._value=e,p}function Dy(t){return function(e){this.textContent=t.call(this,e)}}function xu(t){var e,r;function o(){var d=t.apply(this,arguments);return d!==r&&(e=(r=d)&&Dy(d)),e}return o._value=t,o}var m6=0;function ys(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function Ny(){return++m6}var Vs=Mf.prototype;ys.prototype={constructor:ys,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=ey(t));for(var o=this._groups,d=o.length,p=new Array(d),m=0;m<d;++m)for(var b,S,T=o[m],O=T.length,j=p[m]=new Array(O),F=0;F<O;++F)(b=T[F])&&(S=t.call(b,b.__data__,F,T))&&("__data__"in b&&(S.__data__=b.__data__),j[F]=S,G1(j[F],e,r,F,j,jo(b,r)));return new ys(p,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=ny(t));for(var o=this._groups,d=o.length,p=[],m=[],b=0;b<d;++b)for(var S,T=o[b],O=T.length,j=0;j<O;++j)if(S=T[j]){for(var F,U=t.call(S,S.__data__,j,T),it=jo(S,r),yt=0,vt=U.length;yt<vt;++yt)(F=U[yt])&&G1(F,e,r,yt,U,it);p.push(U),m.push(S)}return new ys(p,m,e,r)},selectChild:Vs.selectChild,selectChildren:Vs.selectChildren,filter:function(t){typeof t!="function"&&(t=bf(t));for(var e=this._groups,r=e.length,o=new Array(r),d=0;d<r;++d)for(var p,m=e[d],b=m.length,S=o[d]=[],T=0;T<b;++T)(p=m[T])&&t.call(p,p.__data__,T,m)&&S.push(p);return new ys(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,d=r.length,p=Math.min(o,d),m=new Array(o),b=0;b<p;++b)for(var S,T=e[b],O=r[b],j=T.length,F=m[b]=new Array(j),U=0;U<j;++U)(S=T[U]||O[U])&&(F[U]=S);for(;b<o;++b)m[b]=e[b];return new ys(m,this._parents,this._name,this._id)},selection:function(){return new e3(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Ny(),o=this._groups,d=o.length,p=0;p<d;++p)for(var m,b=o[p],S=b.length,T=0;T<S;++T)if(m=b[T]){var O=jo(m,e);G1(m,t,r,T,b,{time:O.time+O.delay+O.duration,delay:0,duration:O.duration,ease:O.ease})}return new ys(o,this._parents,t,r)},call:Vs.call,nodes:Vs.nodes,node:Vs.node,size:Vs.size,empty:Vs.empty,each:Vs.each,on:function(t,e){var r=this._id;return arguments.length<2?jo(this.node(),r).on.on(t):this.each(t3(r,t,e))},attr:function(t,e){var r=R1(t),o=r==="transform"?u6:$_;return this.attrTween(t,typeof e=="function"?(r.local?Z_:X_)(r,o,my(this,"attr."+t,e)):e==null?(r.local?V_:d6)(r):(r.local?G_:Ey)(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=R1(t);return this.tween(r,(o.local?J_:p6)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?c6:$_;return e==null?this.styleTween(t,function(d,p){var m,b,S;return function(){var T=Fl(this,d),O=(this.style.removeProperty(d),Fl(this,d));return T===O?null:T===m&&O===b?S:S=p(m=T,b=O)}}(t,o)).on("end.style."+t,i0(t)):typeof e=="function"?this.styleTween(t,function(d,p,m){var b,S,T;return function(){var O=Fl(this,d),j=m(this),F=j+"";return j==null&&(this.style.removeProperty(d),F=j=Fl(this,d)),O===F?null:O===b&&F===S?T:(S=F,T=p(b=O,j))}}(t,o,my(this,"style."+t,e))).each(function(d,p){var m,b,S,T,O="style."+p,j="end."+O;return function(){var F=ds(this,d),U=F.on,it=F.value[O]==null?T||(T=i0(p)):void 0;U===m&&S===it||(b=(m=U).copy()).on(j,S=it),F.on=b}}(this._id,t)):this.styleTween(t,function(d,p,m){var b,S,T=m+"";return function(){var O=Fl(this,d);return O===T?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,ji(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}}(my(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,xu(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,d=jo(this.node(),r).tween,p=0,m=d.length;p<m;++p)if((o=d[p]).name===t)return o.value;return null}return this.each((e==null?l6:U_)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?g6:Cy)(e,t)):jo(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?My:y6)(e,t)):jo(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(K_(e,t)):jo(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;ds(this,e).ease=o}}(this._id,t))},end:function(){var t,e,r=this,o=r._id,d=r.size();return new Promise(function(p,m){var b={value:m},S={value:function(){--d==0&&p()}};r.each(function(){var T=ds(this,o),O=T.on;O!==t&&((e=(t=O).copy())._.cancel.push(b),e._.interrupt.push(b),e._.end.push(S)),T.on=e}),d===0&&p()})},[Symbol.iterator]:Vs[Symbol.iterator]};var a0={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function wu(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Mf.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var o,d,p,m=e.__transition,b=!0;if(m){for(p in r=r==null?null:r+"",m)(o=m[p]).name===r?(d=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(d?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete m[p]):b=!1;b&&delete e.__transition}})(this,t)})},Mf.prototype.transition=function(t){var e,r;t instanceof ys?(e=t._id,t=t._name):(e=Ny(),(r=a0).time=dy(),t=t==null?null:t+"");for(var o=this._groups,d=o.length,p=0;p<d;++p)for(var m,b=o[p],S=b.length,T=0;T<S;++T)(m=b[T])&&G1(m,t,e,T,b,r||wu(m,e));return new ys(o,this._parents,t,e)};var Ff="comm",Oy="rule",By="decl",ku=Math.abs,Tu=String.fromCharCode;function Hl(t){return t.trim()}function o0(t,e,r){return t.replace(e,r)}function n3(t,e){return t.indexOf(e)}function Gs(t,e){return 0|t.charCodeAt(e)}function ql(t,e,r){return t.slice(e,r)}function Xs(t){return t.length}function Ly(t){return t.length}function s0(t,e){return e.push(t),t}function Iy(t,e){for(var r="",o=Ly(t),d=0;d<o;d++)r+=e(t[d],d,t,e)||"";return r}function v6(t,e,r,o){switch(t.type){case"@import":case By:return t.return=t.return||t.value;case Ff:return"";case"@keyframes":return t.return=t.value+"{"+Iy(t.children,o)+"}";case Oy:t.value=t.props.join(",")}return Xs(r=Iy(t.children,o))?t.return=t.value+"{"+r+"}":""}var c0=1,$l=1,r3=0,ro=0,si=0,Vl="";function u0(t,e,r,o,d,p,m){return{value:t,root:e,parent:r,type:o,props:d,children:p,line:c0,column:$l,length:m,return:""}}function i3(){return si=ro>0?Gs(Vl,--ro):0,$l--,si===10&&($l=1,c0--),si}function Wo(){return si=ro<r3?Gs(Vl,ro++):0,$l++,si===10&&($l=1,c0++),si}function Dc(){return Gs(Vl,ro)}function Pf(){return ro}function l0(t,e){return ql(Vl,t,e)}function h0(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 Gl(t){return Hl(l0(ro-1,Xl(t===91?t+2:t===40?t+1:t)))}function a3(t){for(;(si=Dc())&&si<33;)Wo();return h0(t)>2||h0(si)>3?"":" "}function f0(t,e){for(;--e&&Wo()&&!(si<48||si>102||si>57&&si<65||si>70&&si<97););return l0(t,Pf()+(e<6&&Dc()==32&&Wo()==32))}function Xl(t){for(;Wo();)switch(si){case t:return ro;case 34:case 39:t!==34&&t!==39&&Xl(si);break;case 40:t===41&&Xl(t);break;case 92:Wo()}return ro}function o3(t,e){for(;Wo()&&t+si!==57&&(t+si!==84||Dc()!==47););return"/*"+l0(e,ro-1)+"*"+Tu(t===47?t:Wo())}function Eu(t){for(;!h0(Dc());)Wo();return l0(t,ro)}function Yf(t){return function(e){return Vl="",e}(Nc("",null,null,null,[""],t=function(e){return c0=$l=1,r3=Xs(Vl=e),ro=0,[]}(t),0,[0],t))}function Nc(t,e,r,o,d,p,m,b,S){for(var T=0,O=0,j=m,F=0,U=0,it=0,yt=1,vt=1,xt=1,mt=0,ot="",Ht=d,Dt=p,ft=o,Nt=ot;vt;)switch(it=mt,mt=Wo()){case 40:if(it!=108&&Nt.charCodeAt(j-1)==58){n3(Nt+=o0(Gl(mt),"&","&\f"),"&\f")!=-1&&(xt=-1);break}case 34:case 39:case 91:Nt+=Gl(mt);break;case 9:case 10:case 13:case 32:Nt+=a3(it);break;case 92:Nt+=f0(Pf()-1,7);continue;case 47:switch(Dc()){case 42:case 47:s0(s3(o3(Wo(),Pf()),e,r),S);break;default:Nt+="/"}break;case 123*yt:b[T++]=Xs(Nt)*xt;case 125*yt:case 59:case 0:switch(mt){case 0:case 125:vt=0;case 59+O:U>0&&Xs(Nt)-j&&s0(U>32?Oc(Nt+";",o,r,j-1):Oc(o0(Nt," ","")+";",o,r,j-2),S);break;case 59:Nt+=";";default:if(s0(ft=Ry(Nt,e,r,T,O,d,b,ot,Ht=[],Dt=[],j),p),mt===123)if(O===0)Nc(Nt,e,ft,ft,Ht,p,j,b,Dt);else switch(F){case 100:case 109:case 115:Nc(t,ft,ft,o&&s0(Ry(t,ft,ft,0,0,d,b,ot,d,Ht=[],j),Dt),d,Dt,j,b,o?Ht:Dt);break;default:Nc(Nt,ft,ft,ft,[""],Dt,0,b,Dt)}}T=O=U=0,yt=xt=1,ot=Nt="",j=m;break;case 58:j=1+Xs(Nt),U=it;default:if(yt<1){if(mt==123)--yt;else if(mt==125&&yt++==0&&i3()==125)continue}switch(Nt+=Tu(mt),mt*yt){case 38:xt=O>0?1:(Nt+="\f",-1);break;case 44:b[T++]=(Xs(Nt)-1)*xt,xt=1;break;case 64:Dc()===45&&(Nt+=Gl(Wo())),F=Dc(),O=j=Xs(ot=Nt+=Eu(Pf())),mt++;break;case 45:it===45&&Xs(Nt)==2&&(yt=0)}}return p}function Ry(t,e,r,o,d,p,m,b,S,T,O){for(var j=d-1,F=d===0?p:[""],U=Ly(F),it=0,yt=0,vt=0;it<o;++it)for(var xt=0,mt=ql(t,j+1,j=ku(yt=m[it])),ot=t;xt<U;++xt)(ot=Hl(yt>0?F[xt]+" "+mt:o0(mt,/&\f/g,F[xt])))&&(S[vt++]=ot);return u0(t,e,r,d===0?Oy:b,S,T,O)}function s3(t,e,r){return u0(t,e,r,Ff,Tu(si),ql(t,2,-2),0)}function Oc(t,e,r,o){return u0(t,e,r,By,ql(t,0,o),ql(t,o+1,-1),o)}const Fy="8.13.7";var Py=s(9609),c3=s(7856),_6=s.n(c3),u3=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\u/g,""),16))});return console.log(e),e=(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,function(r,o){return String.fromCharCode(parseInt(o,16))})).replace(/\\[\d\d\d]{3}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})},l3=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))}var o=u3(e);return(o=(o=(o=o.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},Su=function(t,e){if(!t)return t;var r=_6().sanitize(function(o,d){var p=o,m=!0;if(!d.flowchart||d.flowchart.htmlLabels!==!1&&d.flowchart.htmlLabels!=="false"||(m=!1),m){var b=d.securityLevel;b==="antiscript"||b==="strict"?p=l3(p):b!=="loose"&&(p=(p=(p=Yy(p)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),p=b6(p))}return p}(t,e));return r},d0=/<br\s*\/?>/gi,b6=function(t){return t.replace(/#br#/g,"<br/>")},Yy=function(t){return t.replace(d0,"#br#")},Di=function(t){return t!=="false"&&t!==!1};const Cr={getRows:function(t){if(!t)return 1;var e=Yy(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:Su,sanitizeTextOrArray:function(t,e){return typeof t=="string"?Su(t,e):t.flat().map(function(r){return Su(r,e)})},hasBreaks:function(t){return d0.test(t)},splitBreaks:function(t){return t.split(d0)},lineBreakRegex:d0,removeScript:l3,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:Di,removeEscapes:u3};var we=s(8613),mi=function(t,e){return e?(0,we.adjust)(t,{s:-40,l:10}):(0,we.adjust)(t,{s:-40,l:-10})};function jy(t){return jy=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},jy(t)}function Uy(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 zy=function(){function t(){(function(o,d){if(!(o instanceof d))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,we.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,we.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,we.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,we.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,we.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,we.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,we.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,we.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.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,we.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,we.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,we.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,we.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,we.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,we.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,we.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,we.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,we.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,we.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,we.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,we.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,we.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,we.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,we.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,we.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,we.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var d=this;if(jy(o)==="object"){var p=Object.keys(o);p.forEach(function(m){d[m]=o[m]}),this.updateColors(),p.forEach(function(m){d[m]=o[m]})}else this.updateColors()}}],r&&Uy(e.prototype,r),t}();function Cu(t){return Cu=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},Cu(t)}function h3(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 Zl=function(){function t(){(function(o,d){if(!(o instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,we.lighten)(this.primaryColor,16),this.tertiaryColor=(0,we.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=mi(this.primaryColor,this.darkMode),this.secondaryBorderColor=mi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,we.invert)(this.primaryColor),this.secondaryTextColor=(0,we.invert)(this.secondaryColor),this.tertiaryTextColor=(0,we.invert)(this.tertiaryColor),this.lineColor=(0,we.invert)(this.background),this.textColor=(0,we.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,we.lighten)((0,we.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,we.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,we.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,we.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,we.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,we.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,we.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,we.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,we.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,we.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,we.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,we.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,we.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,we.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,we.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var d=this;if(Cu(o)==="object"){var p=Object.keys(o);p.forEach(function(m){d[m]=o[m]}),this.updateColors(),p.forEach(function(m){d[m]=o[m]})}else this.updateColors()}}],r&&h3(e.prototype,r),t}();function jf(t){return jf=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},jf(t)}function f3(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 p0=function(){function t(){(function(o,d){if(!(o instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,we.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,we.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=mi(this.primaryColor,this.darkMode),this.secondaryBorderColor=mi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,we.invert)(this.primaryColor),this.secondaryTextColor=(0,we.invert)(this.secondaryColor),this.tertiaryTextColor=(0,we.invert)(this.tertiaryColor),this.lineColor=(0,we.invert)(this.background),this.textColor=(0,we.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.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,we.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,we.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,we.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,we.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,we.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,we.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,we.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,we.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,we.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,we.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,we.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,we.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,we.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,we.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,we.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,we.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,we.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,we.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 d=this;if(jf(o)==="object"){var p=Object.keys(o);p.forEach(function(m){d[m]=o[m]}),this.updateColors(),p.forEach(function(m){d[m]=o[m]})}else this.updateColors()}}],r&&f3(e.prototype,r),t}();function Uf(t){return Uf=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},Uf(t)}function d3(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 Vi=function(){function t(){(function(o,d){if(!(o instanceof d))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,we.lighten)("#cde498",10),this.primaryBorderColor=mi(this.primaryColor,this.darkMode),this.secondaryBorderColor=mi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,we.invert)(this.primaryColor),this.secondaryTextColor=(0,we.invert)(this.secondaryColor),this.tertiaryTextColor=(0,we.invert)(this.primaryColor),this.lineColor=(0,we.invert)(this.background),this.textColor=(0,we.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.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.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,we.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,we.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,we.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,we.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,we.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,we.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,we.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,we.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,we.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,we.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,we.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,we.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,we.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,we.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,we.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,we.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 d=this;if(Uf(o)==="object"){var p=Object.keys(o);p.forEach(function(m){d[m]=o[m]}),this.updateColors(),p.forEach(function(m){d[m]=o[m]})}else this.updateColors()}}],r&&d3(e.prototype,r),t}();function Wy(t){return Wy=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},Wy(t)}function x6(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 Tr=function(){function t(){(function(o,d){if(!(o instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,we.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,we.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=mi(this.primaryColor,this.darkMode),this.secondaryBorderColor=mi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,we.invert)(this.primaryColor),this.secondaryTextColor=(0,we.invert)(this.secondaryColor),this.tertiaryTextColor=(0,we.invert)(this.tertiaryColor),this.lineColor=(0,we.invert)(this.background),this.textColor=(0,we.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.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=(0,we.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,we.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,we.lighten)(this.contrast,30),this.sectionBkgColor2=(0,we.lighten)(this.contrast,30),this.taskBorderColor=(0,we.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,we.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,we.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,we.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,we.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,we.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,we.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,we.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,we.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 d=this;if(Wy(o)==="object"){var p=Object.keys(o);p.forEach(function(m){d[m]=o[m]}),this.updateColors(),p.forEach(function(m){d[m]=o[m]})}else this.updateColors()}}],r&&x6(e.prototype,r),t}();const Ql={base:{getThemeVariables:function(t){var e=new zy;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new Zl;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new p0;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new Vi;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new Tr;return e.calculate(t),e}}};function Mu(t){return function(e){if(Array.isArray(e))return Au(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 Au(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)?Au(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 Au(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 Hy(t){return Hy=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},Hy(t)}var Jl={theme:"default",themeVariables:Ql.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,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}};Jl.class.arrowMarkerAbsolute=Jl.arrowMarkerAbsolute,Jl.git.arrowMarkerAbsolute=Jl.arrowMarkerAbsolute;var w6=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce(function(o,d){return Array.isArray(e[d])?o:Hy(e[d])==="object"&&e[d]!==null?[].concat(Mu(o),[r+d],Mu(t(e[d],""))):[].concat(Mu(o),[r+d])},[])}(Jl,"");const k6=Jl;var T6=void 0;function p3(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 qy(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=y3(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var o=0,d=function(){};return{s:d,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(S){throw S},f:d}}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 vo(t){return vo=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},vo(t)}function g3(t){return function(e){if(Array.isArray(e))return g0(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||y3(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 y3(t,e){if(t){if(typeof t=="string")return g0(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)?g0(t,e):void 0}}function g0(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,m3={curveBasis:Yr,curveBasisClosed:function(t){return new Sa(t)},curveBasisOpen:function(t){return new oi(t)},curveLinear:go,curveLinearClosed:function(t){return new Pa(t)},curveMonotoneX:function(t){return new Bo(t)},curveMonotoneY:function(t){return new us(t)},curveNatural:function(t){return new Kh(t)},curveStep:function(t){return new du(t,.5)},curveStepAfter:function(t){return new du(t,1)},curveStepBefore:function(t){return new du(t,0)}},m0=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,E6=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,S6=/\s*%%.*\n/gm,v3=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var r=new RegExp("[%]{2}(?![{]".concat(E6.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,d=[];(o=m0.exec(t))!==null;)if(o.index===m0.lastIndex&&m0.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;d.push({type:p,args:m})}return d.length===0&&d.push({type:t,args:null}),d.length===1?d[0]:d}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}}},_3=function(t,e){return(t=t.replace(m0,"").replace(S6,`
`)).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"},v0=function(t,e){var r={};return function(){for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];var m=e?e.apply(T6,d):d[0];if(m in r)return r[m];var b=t.apply(void 0,d);return r[m]=b,b}},Ho=function(t,e){if(!t)return e;var r="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return m3[r]||e},Du=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},Bc=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}},b3=0,x3=function(){return b3++,"id-"+Math.random().toString(36).substr(2,12)+"-"+b3},$y=function(t){return function(e){for(var r="",o="0123456789abcdef",d=o.length,p=0;p<e;p++)r+=o.charAt(Math.floor(Math.random()*d));return r}(t.length)},Gi=function t(e,r,o){var d=Object.assign({depth:2,clobber:!1},o),p=d.depth,m=d.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&&vo(e)==="object"&&vo(r)==="object"?Object.assign(e,r):r:(r!==void 0&&vo(e)==="object"&&vo(r)==="object"&&Object.keys(r).forEach(function(b){vo(r[b])!=="object"||e[b]!==void 0&&vo(e[b])!=="object"?(m||vo(e[b])!=="object"&&vo(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)},C6=function(t,e){var r=e.text.replace(Cr.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 d=o.append("tspan");return d.attr("x",e.x+2*e.textMargin),d.attr("fill",e.fill),d.text(r),o},M6=v0(function(t,e,r){if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Cr.lineBreakRegex.test(t)))return t;var o=t.split(" "),d=[],p="";return o.forEach(function(m,b){var S=_0("".concat(m," "),r),T=_0(p,r);if(S>e){var O=A6(m,e,"-",r),j=O.hyphenatedStrings,F=O.remainingWord;d.push.apply(d,[p].concat(g3(j))),p=F}else T+S>=e?(d.push(p),p=m):p=[p,m].filter(Boolean).join(" ");b+1===o.length&&d.push(p)}),d.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)}),A6=v0(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 d=t.split(""),p=[],m="";return d.forEach(function(b,S){var T="".concat(m).concat(b);if(_0(T,o)>=e){var O=S+1,j=d.length===O,F="".concat(T).concat(r);p.push(j?T:F),m=""}else m=T}),{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)}),_0=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),Vy(t,e).width},Vy=v0(function(t,e){var r=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),o=r.fontSize,d=r.fontFamily,p=r.fontWeight;if(!t)return{width:0,height:0};var m=["sans-serif",d],b=t.split(Cr.lineBreakRegex),S=[],T=Se("body");if(!T.remove)return{width:0,height:0,lineHeight:0};for(var O=T.append("svg"),j=0,F=m;j<F.length;j++){var U,it=F[j],yt=0,vt={width:0,height:0,lineHeight:0},xt=qy(b);try{for(xt.s();!(U=xt.n()).done;){var mt=U.value,ot={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};ot.text=mt;var Ht=C6(O,ot).style("font-size",o).style("font-weight",p).style("font-family",it),Dt=(Ht._groups||Ht)[0][0].getBBox();vt.width=Math.round(Math.max(vt.width,Dt.width)),yt=Math.round(Dt.height),vt.height+=yt,vt.lineHeight=Math.round(Math.max(vt.lineHeight,yt))}}catch(ft){xt.e(ft)}finally{xt.f()}S.push(vt)}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)}),Gy=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},io=function(t,e,r,o){(function(d,p){var m,b=qy(p);try{for(b.s();!(m=b.n()).done;){var S=m.value;d.attr(S[0],S[1])}}catch(T){b.e(T)}finally{b.f()}})(t,Gy(e,r,o))},b0=function t(e){y.debug("directiveSanitizer called with",e),vo(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]),r.indexOf("themeCSS")>=0&&(y.debug("sanitizing themeCss option"),e[r]=w3(e[r])),w6.indexOf(r)<0?(y.debug("sanitize deleting option",r),delete e[r]):vo(e[r])==="object"&&(y.debug("sanitize deleting object",r),t(e[r]))}))},w3=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const Jn={assignWithDepth:Gi,wrapLabel:M6,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),Vy(t,e).height},calculateTextWidth:_0,calculateTextDimensions:Vy,calculateSvgSizeAttrs:Gy,configureSvgSize:io,detectInit:function(t,e){var r=v3(t,/(?:init\b)|(?:initialize\b)/),o={};if(Array.isArray(r)){var d=r.map(function(m){return m.args});b0(d),o=Gi(o,g3(d))}else o=r.args;if(o){var p=_3(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:v3,detectType:_3,isSubstringInArray:function(t,e){for(var r=0;r<e.length;r++)if(e[r].match(t))return r;return-1},interpolateToCurve:Ho,calcLabelPosition:function(t){return function(e){var r,o=0;e.forEach(function(m){o+=Du(m,r),r=m});var d=o/2,p=void 0;return r=void 0,e.forEach(function(m){if(r&&!p){var b=Du(m,r);if(b<d)d-=b;else{var S=d/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(T){Du(T,o),o=T});var d,p=25;o=void 0,e.forEach(function(T){if(o&&!d){var O=Du(T,o);if(O<p)p-=O;else{var j=p/O;j<=0&&(d=o),j>=1&&(d={x:T.x,y:T.y}),j>0&&j<1&&(d={x:(1-j)*o.x+j*T.x,y:(1-j)*o.y+j*T.y})}}o=T});var m=t?10:5,b=Math.atan2(e[0].y-d.y,e[0].x-d.x),S={x:0,y:0};return S.x=Math.sin(b)*m+(e[0].x+d.x)/2,S.y=-Math.cos(b)*m+(e[0].y+d.y)/2,S},calcTerminalLabelPosition:function(t,e,r){var o,d=JSON.parse(JSON.stringify(r));y.info("our points",d),e!=="start_left"&&e!=="start_right"&&(d=d.reverse()),d.forEach(function(O){Du(O,o),o=O});var p,m=25+t;o=void 0,d.forEach(function(O){if(o&&!p){var j=Du(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(d[0].y-p.y,d[0].x-p.x),T={x:0,y:0};return T.x=Math.sin(S)*b+(d[0].x+p.x)/2,T.y=-Math.cos(S)*b+(d[0].y+p.y)/2,e==="start_left"&&(T.x=Math.sin(S+Math.PI)*b+(d[0].x+p.x)/2,T.y=-Math.cos(S+Math.PI)*b+(d[0].y+p.y)/2),e==="end_right"&&(T.x=Math.sin(S-Math.PI)*b+(d[0].x+p.x)/2-5,T.y=-Math.cos(S-Math.PI)*b+(d[0].y+p.y)/2-5),e==="end_left"&&(T.x=Math.sin(S)*b+(d[0].x+p.x)/2-5,T.y=-Math.cos(S)*b+(d[0].y+p.y)/2-5),T},formatUrl:function(t,e){var r=t.trim();if(r)return e.securityLevel!=="loose"?(0,Py.sanitizeUrl)(r):r},getStylesFromArray:Bc,generateId:x3,random:$y,memoize:v0,runFunc:function(t){for(var e,r=t.split("."),o=r.length-1,d=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),T=1;T<b;T++)S[T-1]=arguments[T];(e=p)[d].apply(e,S)},entityDecode:function(t){return y0=y0||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),y0.innerHTML=t,unescape(y0.textContent)},initIdGeneratior:function(){function t(o,d){(function(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")})(this,t),this.deterministic=o,this.seed=d,this.count=d?d.length:0}var e,r;return e=t,(r=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&p3(e.prototype,r),t}(),directiveSanitizer:b0,sanitizeCss:w3};function Xy(t){return Xy=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},Xy(t)}var k3,zf=Object.freeze(k6),Xi=Gi({},zf),Kl=[],x0=Gi({},zf),w0=function(t,e){for(var r=Gi({},t),o={},d=0;d<e.length;d++){var p=e[d];D6(p),o=Gi(o,p)}if(r=Gi(r,o),o.theme){var m=Gi({},k3),b=Gi(m.themeVariables||{},o.themeVariables);r.themeVariables=Ql[r.theme].getThemeVariables(b)}return x0=r,r},T3=function(){return Gi({},Xi)},ie=function(){return Gi({},x0)},D6=function t(e){Object.keys(Xi.secure).forEach(function(r){e[Xi.secure[r]]!==void 0&&(y.debug("Denied attempt to modify a secure key ".concat(Xi.secure[r]),e[Xi.secure[r]]),delete e[Xi.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],Xy(e[r])==="object"&&t(e[r])})},E3=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),Kl.push(t),w0(Xi,Kl)},k0=function(){w0(Xi,Kl=[])};function Zy(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 Qy="classid-",Jy=[],Ui={},S3=0,T0=[],Wf=function(t){var e="",r=t;if(t.indexOf("~")>0){var o=t.split("~");r=o[0],e=Cr.sanitizeText(o[1],ie())}return{className:r,type:e}},Ky=function(t){var e=Wf(t);Ui[e.className]===void 0&&(Ui[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:Qy+e.className+"-"+S3},S3++)},E0=function(t){for(var e=Object.keys(Ui),r=0;r<e.length;r++)if(Ui[e[r]].id===t)return Ui[e[r]].domId},C3=function(t,e){var r=Wf(t).className,o=Ui[r];if(typeof e=="string"){var d=e.trim();d.startsWith("<<")&&d.endsWith(">>")?o.annotations.push(d.substring(2,d.length-2)):d.indexOf(")")>0?o.methods.push(d):d&&o.members.push(d)}},t2=function(t,e){t.split(",").forEach(function(r){var o=r;r[0].match(/\d/)&&(o=Qy+o),Ui[o]!==void 0&&Ui[o].cssClasses.push(e)})},N6=function(t,e,r){var o=ie(),d=t,p=E0(d);if(o.securityLevel==="loose"&&e!==void 0&&Ui[d]!==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),T0.push(function(){var T=document.querySelector('[id="'.concat(p,'"]'));T!==null&&T.addEventListener("click",function(){var O;Jn.runFunc.apply(Jn,[e].concat(function(j){if(Array.isArray(j))return Zy(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 Zy(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)?Zy(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)})}},th={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},e2=function(t){var e=Se(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Se(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Se(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),Se(this).classed("hover",!1)})};T0.push(e2);var n2="TB";const qo={parseDirective:function(t,e,r){ca.parseDirective(this,t,e,r)},getConfig:function(){return ie().class},addClass:Ky,bindFunctions:function(t){T0.forEach(function(e){e(t)})},clear:function(){Jy=[],Ui={},(T0=[]).push(e2)},getClass:function(t){return Ui[t]},getClasses:function(){return Ui},addAnnotation:function(t,e){var r=Wf(t).className;Ui[r].annotations.push(e)},getRelations:function(){return Jy},addRelation:function(t){y.debug("Adding relation: "+JSON.stringify(t)),Ky(t.id1),Ky(t.id2),t.id1=Wf(t.id1).className,t.id2=Wf(t.id2).className,Jy.push(t)},getDirection:function(){return n2},setDirection:function(t){n2=t},addMember:C3,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(function(r){return C3(t,r)}))},cleanupLabel:function(t){return t.substring(0,1)===":"?Cr.sanitizeText(t.substr(1).trim(),ie()):t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:th,setClickEvent:function(t,e,r){t.split(",").forEach(function(o){N6(o,e,r),Ui[o].haveCallback=!0}),t2(t,"clickable")},setCssClass:t2,setLink:function(t,e,r){var o=ie();t.split(",").forEach(function(d){var p=d;d[0].match(/\d/)&&(p=Qy+p),Ui[p]!==void 0&&(Ui[p].link=Jn.formatUrl(e,o),Ui[p].linkTarget=typeof r=="string"?r:"_blank")}),t2(t,"clickable")},setTooltip:function(t,e){var r=ie();t.split(",").forEach(function(o){e!==void 0&&(Ui[o].tooltip=Cr.sanitizeText(e,r))})},lookUpDomId:E0};var r2=s(681),Hf=s.n(r2),O6=s(8282),Si=s.n(O6),eh=s(1362),M3=s.n(eh),i2=0,a2=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),r=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!r?A3(e):r?D3(r):B6(t)},A3=function(t){var e="",r="";try{var o=t[1]?t[1].trim():"",d=t[2]?t[2].trim():"",p=t[3]?Nu(t[3].trim()):"",m=t[4]?t[4].trim():"",b=t[5]?t[5].trim():"";r=o+d+p+" "+m,e=s2(b)}catch{r=t}return{displayText:r,cssStyle:e}},D3=function(t){var e="",r="";try{var o=t[1]?t[1].trim():"",d=t[2]?t[2].trim():"",p=t[3]?Nu(t[3].trim()):"",m=t[4]?t[4].trim():"";r=o+d+"("+p+")"+(t[5]?" : "+Nu(t[5]).trim():""),e=s2(m)}catch{r=t}return{displayText:r,cssStyle:e}},B6=function(t){var e="",r="",o="",d=t.indexOf("("),p=t.indexOf(")");if(d>1&&p>d&&p<=t.length){var m="",b="",S=t.substring(0,1);S.match(/\w/)?b=t.substring(0,d).trim():(S.match(/\+|-|~|#/)&&(m=S),b=t.substring(1,d).trim());var T=t.substring(d+1,p),O=t.substring(p+1,1);r=s2(O),e=m+b+"("+Nu(T.trim())+")",p<"".length&&(o=t.substring(p+2).trim())!==""&&(o=" : "+Nu(o))}else e=Nu(t);return{displayText:e,cssStyle:r}},o2=function(t,e,r,o){var d=a2(e),p=t.append("tspan").attr("x",o.padding).text(d.displayText);d.cssStyle!==""&&p.attr("style",d.cssStyle),r||p.attr("dy",o.textHeight)},Nu=function t(e){var r=e;return e.indexOf("~")!=-1?t(r=(r=r.replace("~","<")).replace("~",">")):r},s2=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const L6=function(t,e,r){y.info("Rendering class "+e);var o,d=e.id,p={id:d,label:e.id,width:0,height:0},m=t.append("g").attr("id",E0(d)).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(ot){var Ht=o.append("tspan").text("\xAB"+ot+"\xBB");b||Ht.attr("dy",r.textHeight),b=!1});var S=e.id;e.type!==void 0&&e.type!==""&&(S+="<"+e.type+">");var T=o.append("tspan").text(S).attr("class","title");b||T.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(ot){o2(F,ot,b,r),b=!1});var U=F.node().getBBox(),it=m.append("line").attr("x1",0).attr("y1",r.padding+O+r.dividerMargin+U.height).attr("y2",r.padding+O+r.dividerMargin+U.height),yt=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(ot){o2(yt,ot,b,r),b=!1});var vt=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",vt.width+2*r.padding).attr("height",vt.height+r.padding+.5*r.dividerMargin).attr("class",xt).node().getBBox().width;return o.node().childNodes.forEach(function(ot){ot.setAttribute("x",(mt-ot.getBBox().width)/2)}),e.tooltip&&o.insert("title").text(e.tooltip),j.attr("x2",mt),it.attr("x2",mt),p.width=mt,p.height=vt.height+r.padding+.5*r.dividerMargin,p};eh.parser.yy=qo;var nh={},$o={dividerMargin:10,padding:5,textHeight:10},qf=function(t){var e=Object.entries(nh).find(function(r){return r[1].label===t});if(e)return e[0]};const c2=function(t){Object.keys(t).forEach(function(e){$o[e]=t[e]})},N3=function(t,e){nh={},eh.parser.yy.clear(),eh.parser.parse(t),y.info("Rendering diagram "+t);var r,o=Se("[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 d=new(Si()).Graph({multigraph:!0});d.setGraph({isMultiGraph:!0}),d.setDefaultEdgeLabel(function(){return{}});for(var p=qo.getClasses(),m=Object.keys(p),b=0;b<m.length;b++){var S=p[m[b]],T=L6(o,S,$o);nh[T.id]=T,d.setNode(T.id,T),y.info("Org height: "+T.height)}qo.getRelations().forEach(function(it){y.info("tjoho"+qf(it.id1)+qf(it.id2)+JSON.stringify(it)),d.setEdge(qf(it.id1),qf(it.id2),{relation:it},it.title||"DEFAULT")}),Hf().layout(d),d.nodes().forEach(function(it){it!==void 0&&d.node(it)!==void 0&&(y.debug("Node "+it+": "+JSON.stringify(d.node(it))),Se("#"+E0(it)).attr("transform","translate("+(d.node(it).x-d.node(it).width/2)+","+(d.node(it).y-d.node(it).height/2)+" )"))}),d.edges().forEach(function(it){it!==void 0&&d.edge(it)!==void 0&&(y.debug("Edge "+it.v+" -> "+it.w+": "+JSON.stringify(d.edge(it))),function(yt,vt,xt,mt){var ot=function(fn){switch(fn){case th.AGGREGATION:return"aggregation";case th.EXTENSION:return"extension";case th.COMPOSITION:return"composition";case th.DEPENDENCY:return"dependency"}};vt.points=vt.points.filter(function(fn){return!Number.isNaN(fn.y)});var Ht,Dt,ft=vt.points,Nt=yo().x(function(fn){return fn.x}).y(function(fn){return fn.y}).curve(Yr),Kt=yt.append("path").attr("d",Nt(ft)).attr("id","edge"+i2).attr("class","relation"),St="";mt.arrowMarkerAbsolute&&(St=(St=(St=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),xt.relation.lineType==1&&Kt.attr("class","relation dashed-line"),xt.relation.type1!=="none"&&Kt.attr("marker-start","url("+St+"#"+ot(xt.relation.type1)+"Start)"),xt.relation.type2!=="none"&&Kt.attr("marker-end","url("+St+"#"+ot(xt.relation.type2)+"End)");var wt,jt,Ct,Jt,pt=vt.points.length,le=Jn.calcLabelPosition(vt.points);if(Ht=le.x,Dt=le.y,pt%2!=0&&pt>1){var ve=Jn.calcCardinalityPosition(xt.relation.type1!=="none",vt.points,vt.points[0]),me=Jn.calcCardinalityPosition(xt.relation.type2!=="none",vt.points,vt.points[pt-1]);y.debug("cardinality_1_point "+JSON.stringify(ve)),y.debug("cardinality_2_point "+JSON.stringify(me)),wt=ve.x,jt=ve.y,Ct=me.x,Jt=me.y}if(xt.title!==void 0){var Me=yt.append("g").attr("class","classLabel"),He=Me.append("text").attr("class","label").attr("x",Ht).attr("y",Dt).attr("fill","red").attr("text-anchor","middle").text(xt.title);window.label=He;var ze=He.node().getBBox();Me.insert("rect",":first-child").attr("class","box").attr("x",ze.x-mt.padding/2).attr("y",ze.y-mt.padding/2).attr("width",ze.width+mt.padding).attr("height",ze.height+mt.padding)}y.info("Rendering relation "+JSON.stringify(xt)),xt.relationTitle1!==void 0&&xt.relationTitle1!=="none"&&yt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",wt).attr("y",jt).attr("fill","black").attr("font-size","6").text(xt.relationTitle1),xt.relationTitle2!==void 0&&xt.relationTitle2!=="none"&&yt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Ct).attr("y",Jt).attr("fill","black").attr("font-size","6").text(xt.relationTitle2),i2++}(o,d.edge(it),d.edge(it).relation,$o))});var O=o.node().getBBox(),j=O.width+40,F=O.height+40;io(o,F,j,$o.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 u2={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 I6=function(t,e,r,o){e.forEach(function(d){u2[d](t,r,o)})};function S0(t){return S0=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},S0(t)}const ia=function(t,e,r,o){var d,p,m,b,S,T,O=t||"";if(S0(O)==="object"&&(O=O[0]),Di(ie().flowchart.htmlLabels))return O=O.replace(/\\n|\n/g,"<br />"),y.info("vertexText"+O),d={isNode:o,label:O.replace(/fa[lrsb]?:fa-[\w-]+/g,function(yt){return"<i class='".concat(yt.replace(":"," "),"'></i>")}),labelStyle:e.replace("fill:","color:")},m=Se(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),b=m.append("xhtml:div"),S=d.label,T=d.isNode?"nodeLabel":"edgeLabel",b.html('<span class="'+T+'" '+(d.labelStyle?'style="'+d.labelStyle+'"':"")+">"+S+"</span>"),(p=d.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 it=document.createElementNS("http://www.w3.org/2000/svg","tspan");it.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),it.setAttribute("dy","1em"),it.setAttribute("x","0"),r?it.setAttribute("class","title-row"):it.setAttribute("class","row"),it.textContent=F[U].trim(),j.appendChild(it)}return j};var Aa=function(t,e,r,o){var d;d=r||"node default";var p=t.insert("g").attr("class",d).attr("id",e.domId||e.id),m=p.insert("g").attr("class","label").attr("style",e.labelStyle),b=typeof e.labelText=="string"?e.labelText:e.labelText[0],S=m.node().appendChild(ia(Su(pw(b),ie()),e.labelStyle,!1,o)),T=S.getBBox();if(Di(ie().flowchart.htmlLabels)){var O=S.children[0],j=Se(S);T=O.getBoundingClientRect(),j.attr("width",T.width),j.attr("height",T.height)}var F=e.padding/2;return m.attr("transform","translate("+-T.width/2+", "+-T.height/2+")"),{shapeSvg:p,bbox:T,halfPadding:F,label:m}},Ni=function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height};function ms(t,e,r,o){return t.insert("polygon",":first-child").attr("points",o.map(function(d){return d.x+","+d.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var pr={},Vo={},$n={},C0=function(t,e){return y.trace("In isDecendant",e," ",t," = ",Vo[e].indexOf(t)>=0),Vo[e].indexOf(t)>=0},R6=function t(e,r,o,d){y.warn("Copying children of ",e,"root",d,"data",r.node(e),d);var p=r.children(e)||[];e!==d&&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,d);else{var b=r.node(m);y.info("cp ",m," to ",d," with parent ",e),o.setNode(m,b),d!==r.parent(m)&&(y.warn("Setting parent",m,r.parent(m)),o.setParent(m,r.parent(m))),e!==d&&m!==e?(y.debug("Setting parent",m,e),o.setParent(m,e)):(y.info("In copy ",e,"root",d,"data",r.node(e),d),y.debug("Not Setting parent for node=",m,"cluster!==rootId",e!==d,"node!==clusterId",m!==e));var S=r.edges(m);y.debug("Copying Edges",S),S.forEach(function(T){y.info("Edge",T);var O=r.edge(T.v,T.w,T.name);y.info("Edge data",O,d);try{(function(j,F){return y.info("Decendants of ",F," is ",Vo[F]),y.info("Edge is ",j),j.v!==F&&j.w!==F&&(Vo[F]?(y.info("Here "),Vo[F].indexOf(j.v)>=0||!!C0(j.v,F)||!!C0(j.w,F)||Vo[F].indexOf(j.w)>=0):(y.debug("Tilt, ",F,",not in decendants"),!1))})(T,d)?(y.info("Copying as ",T.v,T.w,O,T.name),o.setEdge(T.v,T.w,O,T.name),y.info("newGraph edges ",o.edges(),o.edge(o.edges()[0]))):y.info("Skipping copy of edge ",T.v,"-->",T.w," rootId: ",d," clusterId:",e)}catch(j){y.error(j)}})}y.debug("Removing node",m),r.removeNode(m)})},F6=function t(e,r){for(var o=r.children(e),d=[].concat(o),p=0;p<o.length;p++)$n[o[p]]=e,d=d.concat(t(o[p],r));return d},M0=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 d=0;d<o.length;d++){var p=t(o[d],r);if(p)return y.trace("Found replacement for",e," => ",p),p}},O3=function(t){return pr[t]&&pr[t].externalConnections&&pr[t]?pr[t].id:t},P6=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: ",M0(r,t)),Vo[r]=F6(r,t),pr[r]={id:M0(r,t),clusterData:t.node(r)})}),t.nodes().forEach(function(r){var o=t.children(r),d=t.edges();o.length>0?(y.debug("Cluster identified",r,Vo),d.forEach(function(p){p.v!==r&&p.w!==r&&C0(p.v,r)^C0(p.w,r)&&(y.warn("Edge: ",p," leaves cluster ",r),y.warn("Decendants of XXX ",r,": ",Vo[r]),pr[r].externalConnections=!0)})):y.debug("Not a cluster ",r,Vo)}),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 d=r.v,p=r.w;y.warn("Fix XXX",pr,"ids:",r.v,r.w,"Translateing: ",pr[r.v]," --- ",pr[r.w]),(pr[r.v]||pr[r.w])&&(y.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),d=O3(r.v),p=O3(r.w),t.removeEdge(r.v,r.w,r.name),d!==r.v&&(o.fromCluster=r.v),p!==r.w&&(o.toCluster=r.w),y.warn("Fix Replacing with XXX",d,p,r.name),t.setEdge(d,p,o,r.name))}),y.warn("Adjusted Graph",Si().json.write(t)),Y6(t,0),y.trace(pr))},Y6=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(),d=!1,p=0;p<o.length;p++){var m=o[p],b=e.children(m);d=d||b.length>0}if(d){y.debug("Nodes = ",o,r);for(var S=0;S<o.length;S++){var T=o[S];if(y.debug("Extracting node",T,pr,pr[T]&&!pr[T].externalConnections,!e.parent(T),e.node(T),e.children("D")," Depth ",r),pr[T])if(!pr[T].externalConnections&&e.children(T)&&e.children(T).length>0){y.warn("Cluster without external connections, without a parent and with children",T,r);var O=e.graph().rankdir==="TB"?"LR":"TB";pr[T]&&pr[T].clusterData&&pr[T].clusterData.dir&&(O=pr[T].clusterData.dir,y.warn("Fixing dir",pr[T].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)),R6(T,e,j,T),e.setNode(T,{clusterNode:!0,id:T,clusterData:pr[T].clusterData,labelText:pr[T].labelText,graph:j}),y.warn("New graph after copy node: (",T,")",Si().json.write(j)),y.debug("Old graph after copy",Si().json.write(e))}else y.warn("Cluster ** ",T," **not meeting the criteria !externalConnections:",!pr[T].externalConnections," no parent: ",!e.parent(T)," children ",e.children(T)&&e.children(T).length>0,e.children("D"),r),y.debug(pr);else y.debug("Not a cluster",T,r)}o=e.nodes(),y.warn("New list of nodes",o);for(var F=0;F<o.length;F++){var U=o[F],it=e.node(U);y.warn(" Now next level",U,it),it.clusterNode&&t(it.graph,r+1)}}else y.debug("Done, no node has children",e.nodes())}},j6=function t(e,r){if(r.length===0)return[];var o=Object.assign(r);return r.forEach(function(d){var p=e.children(d),m=t(e,p);o=o.concat(m)}),o},U6=function(t){return j6(t,t.children())},z6=s(3841);const qr=function(t,e,r,o){var d=t.x,p=t.y,m=d-o.x,b=p-o.y,S=Math.sqrt(e*e*b*b+r*r*m*m),T=Math.abs(e*r*m/S);o.x<d&&(T=-T);var O=Math.abs(e*r*b/S);return o.y<p&&(O=-O),{x:d+T,y:p+O}};function l2(t,e){return t*e>0}const W6=function(t,e,r,o){var d,p,m,b,S,T,O,j,F,U,it,yt,vt;if(d=e.y-t.y,m=t.x-e.x,S=e.x*t.y-t.x*e.y,F=d*r.x+m*r.y+S,U=d*o.x+m*o.y+S,!(F!==0&&U!==0&&l2(F,U)||(p=o.y-r.y,b=r.x-o.x,T=o.x*r.y-r.x*o.y,O=p*t.x+b*t.y+T,j=p*e.x+b*e.y+T,O!==0&&j!==0&&l2(O,j)||(it=d*b-p*m)==0)))return yt=Math.abs(it/2),{x:(vt=m*T-b*S)<0?(vt-yt)/it:(vt+yt)/it,y:(vt=p*S-d*T)<0?(vt-yt)/it:(vt+yt)/it}},rh=function(t,e){var r,o,d=t.x,p=t.y,m=e.x-d,b=e.y-p,S=t.width/2,T=t.height/2;return Math.abs(b)*S>Math.abs(m)*T?(b<0&&(T=-T),r=b===0?0:T*m/b,o=T):(m<0&&(S=-S),r=S,o=m===0?0:S*b/m),{x:d+r,y:p+o}},A0=(s.n(z6)(),function(t,e,r){return qr(t,e,e,r)}),vs=function(t,e,r){var o=t.x,d=t.y,p=[],m=Number.POSITIVE_INFINITY,b=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(it){m=Math.min(m,it.x),b=Math.min(b,it.y)}):(m=Math.min(m,e.x),b=Math.min(b,e.y));for(var S=o-t.width/2-m,T=d-t.height/2-b,O=0;O<e.length;O++){var j=e[O],F=e[O<e.length-1?O+1:0],U=W6(t,r,{x:S+j.x,y:T+j.y},{x:S+F.x,y:T+F.y});U&&p.push(U)}return p.length?(p.length>1&&p.sort(function(it,yt){var vt=it.x-r.x,xt=it.y-r.y,mt=Math.sqrt(vt*vt+xt*xt),ot=yt.x-r.x,Ht=yt.y-r.y,Dt=Math.sqrt(ot*ot+Ht*Ht);return mt<Dt?-1:mt===Dt?0:1}),p[0]):t},Ou=rh;function $f(t){return $f=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},$f(t)}var B3=function(t,e,r){var o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),d=70,p=10;r==="LR"&&(d=10,p=70);var m=o.append("rect").attr("x",-1*d/2).attr("y",-1*p/2).attr("width",d).attr("height",p).attr("class","fork-join");return Ni(e,m),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(b){return Ou(e,b)},o},h2={question:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding+(d.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=ms(o,p,p,m);return b.attr("style",e.style),Ni(e,b),e.intersect=function(S){return y.warn("Intersect called"),vs(e,m,S)},o},rect:function(t,e){var r=Aa(t,e,"node "+e.classes,!0),o=r.shapeSvg,d=r.bbox,p=r.halfPadding;y.trace("Classes = ",e.classes);var m=o.insert("rect",":first-child"),b=d.width+e.padding,S=d.height+e.padding;if(m.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-d.width/2-p).attr("y",-d.height/2-p).attr("width",b).attr("height",S),e.props){var T=new Set(Object.keys(e.props));e.props.borders&&(function(O,j,F,U){var it=[],yt=function(xt){it.push(xt),it.push(0)},vt=function(xt){it.push(0),it.push(xt)};j.includes("t")?(y.debug("add top border"),yt(F)):vt(F),j.includes("r")?(y.debug("add right border"),yt(U)):vt(U),j.includes("b")?(y.debug("add bottom border"),yt(F)):vt(F),j.includes("l")?(y.debug("add left border"),yt(U)):vt(U),O.attr("stroke-dasharray",it.join(" "))}(m,e.props.borders,b,S),T.delete("borders")),T.forEach(function(O){y.warn("Unknown node property ".concat(O))})}return Ni(e,m),e.intersect=function(O){return Ou(e,O)},o},rectWithTitle:function(t,e){var r;r=e.classes?"node "+e.classes:"node default";var o,d=t.insert("g").attr("class",r).attr("id",e.domId||e.id),p=d.insert("rect",":first-child"),m=d.insert("line"),b=d.insert("g").attr("class","label"),S=e.labelText.flat?e.labelText.flat():e.labelText;o=$f(S)==="object"?S[0]:S,y.info("Label text abc79",o,S,$f(S)==="object");var T=b.node().appendChild(ia(o,e.labelStyle,!0,!0)),O={width:0,height:0};if(Di(ie().flowchart.htmlLabels)){var j=T.children[0],F=Se(T);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),it=T.getBBox(),yt=b.node().appendChild(ia(U.join?U.join("<br/>"):U,e.labelStyle,!0,!0));if(Di(ie().flowchart.htmlLabels)){var vt=yt.children[0],xt=Se(yt);O=vt.getBoundingClientRect(),xt.attr("width",O.width),xt.attr("height",O.height)}var mt=e.padding/2;return Se(yt).attr("transform","translate( "+(O.width>it.width?0:(it.width-O.width)/2)+", "+(it.height+mt+5)+")"),Se(T).attr("transform","translate( "+(O.width<it.width?0:-(it.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+it.height+mt).attr("y2",-O.height/2-mt+it.height+mt),Ni(e,p),e.intersect=function(ot){return Ou(e,ot)},d},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 A0(e,14,o)},r},circle:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=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",d.width/2+p).attr("width",d.width+e.padding).attr("height",d.height+e.padding),y.info("Circle main"),Ni(e,m),e.intersect=function(b){return y.info("Circle intersect",e,d.width/2+p,b),A0(e,d.width/2+p,b)},o},stadium:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.height+e.padding,m=d.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 Ni(e,b),e.intersect=function(S){return Ou(e,S)},o},hexagon:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.height+e.padding,m=p/4,b=d.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}],T=ms(o,b,p,S);return T.attr("style",e.style),Ni(e,T),e.intersect=function(O){return vs(e,S,O)},o},rect_left_inv_arrow:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding,m=d.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 ms(o,p,m,b).attr("style",e.style),e.width=p+m,e.height=m,e.intersect=function(S){return vs(e,b,S)},o},lean_right:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding,m=d.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=ms(o,p,m,b);return S.attr("style",e.style),Ni(e,S),e.intersect=function(T){return vs(e,b,T)},o},lean_left:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding,m=d.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=ms(o,p,m,b);return S.attr("style",e.style),Ni(e,S),e.intersect=function(T){return vs(e,b,T)},o},trapezoid:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding,m=d.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=ms(o,p,m,b);return S.attr("style",e.style),Ni(e,S),e.intersect=function(T){return vs(e,b,T)},o},inv_trapezoid:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding,m=d.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=ms(o,p,m,b);return S.attr("style",e.style),Ni(e,S),e.intersect=function(T){return vs(e,b,T)},o},rect_right_inv_arrow:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding,m=d.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=ms(o,p,m,b);return S.attr("style",e.style),Ni(e,S),e.intersect=function(T){return vs(e,b,T)},o},cylinder:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding,m=p/2,b=m/(2.5+p/50),S=d.height+b+e.padding,T="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",T).attr("transform","translate("+-p/2+","+-(S/2+b)+")");return Ni(e,O),e.intersect=function(j){var F=Ou(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 it=b*b*(1-U*U/(m*m));it!=0&&(it=Math.sqrt(it)),it=b-it,j.y-e.y>0&&(it=-it),F.y+=it}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),Ni(e,o),e.intersect=function(d){return A0(e,7,d)},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"),d=r.insert("circle",":first-child");return d.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),Ni(e,d),e.intersect=function(p){return A0(e,7,p)},r},note:function(t,e){var r=Aa(t,e,"node "+e.classes,!0),o=r.shapeSvg,d=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",-d.width/2-p).attr("y",-d.height/2-p).attr("width",d.width+e.padding).attr("height",d.height+e.padding),Ni(e,m),e.intersect=function(b){return Ou(e,b)},o},subroutine:function(t,e){var r=Aa(t,e,void 0,!0),o=r.shapeSvg,d=r.bbox,p=d.width+e.padding,m=d.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=ms(o,p,m,b);return S.attr("style",e.style),Ni(e,S),e.intersect=function(T){return vs(e,b,T)},o},fork:B3,join:B3,class_box:function(t,e){var r,o=e.padding/2;r=e.classes?"node "+e.classes:"node default";var d=t.insert("g").attr("class",r).attr("id",e.domId||e.id),p=d.insert("rect",":first-child"),m=d.insert("line"),b=d.insert("line"),S=0,T=4,O=d.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":"",it=O.node().appendChild(ia(U,e.labelStyle,!0,!0)),yt=it.getBBox();if(Di(ie().flowchart.htmlLabels)){var vt=it.children[0],xt=Se(it);yt=vt.getBoundingClientRect(),xt.attr("width",yt.width),xt.attr("height",yt.height)}e.classData.annotations[0]&&(T+=yt.height+4,S+=yt.width);var mt=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&(ie().flowchart.htmlLabels?mt+="&lt;"+e.classData.type+"&gt;":mt+="<"+e.classData.type+">");var ot=O.node().appendChild(ia(mt,e.labelStyle,!0,!0));Se(ot).attr("class","classTitle");var Ht=ot.getBBox();if(Di(ie().flowchart.htmlLabels)){var Dt=ot.children[0],ft=Se(ot);Ht=Dt.getBoundingClientRect(),ft.attr("width",Ht.width),ft.attr("height",Ht.height)}T+=Ht.height+4,Ht.width>S&&(S=Ht.width);var Nt=[];e.classData.members.forEach(function(jt){var Ct=a2(jt),Jt=Ct.displayText;ie().flowchart.htmlLabels&&(Jt=Jt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var pt=O.node().appendChild(ia(Jt,Ct.cssStyle?Ct.cssStyle:e.labelStyle,!0,!0)),le=pt.getBBox();if(Di(ie().flowchart.htmlLabels)){var ve=pt.children[0],me=Se(pt);le=ve.getBoundingClientRect(),me.attr("width",le.width),me.attr("height",le.height)}le.width>S&&(S=le.width),T+=le.height+4,Nt.push(pt)}),T+=8;var Kt=[];if(e.classData.methods.forEach(function(jt){var Ct=a2(jt),Jt=Ct.displayText;ie().flowchart.htmlLabels&&(Jt=Jt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var pt=O.node().appendChild(ia(Jt,Ct.cssStyle?Ct.cssStyle:e.labelStyle,!0,!0)),le=pt.getBBox();if(Di(ie().flowchart.htmlLabels)){var ve=pt.children[0],me=Se(pt);le=ve.getBoundingClientRect(),me.attr("width",le.width),me.attr("height",le.height)}le.width>S&&(S=le.width),T+=le.height+4,Kt.push(pt)}),T+=8,F){var St=(S-yt.width)/2;Se(it).attr("transform","translate( "+(-1*S/2+St)+", "+-1*T/2+")"),j=yt.height+4}var wt=(S-Ht.width)/2;return Se(ot).attr("transform","translate( "+(-1*S/2+wt)+", "+(-1*T/2+j)+")"),j+=Ht.height+4,m.attr("class","divider").attr("x1",-S/2-o).attr("x2",S/2+o).attr("y1",-T/2-o+8+j).attr("y2",-T/2-o+8+j),j+=8,Nt.forEach(function(jt){Se(jt).attr("transform","translate( "+-S/2+", "+(-1*T/2+j+4)+")"),j+=Ht.height+4}),j+=8,b.attr("class","divider").attr("x1",-S/2-o).attr("x2",S/2+o).attr("y1",-T/2-o+8+j).attr("y2",-T/2-o+8+j),j+=8,Kt.forEach(function(jt){Se(jt).attr("transform","translate( "+-S/2+", "+(-1*T/2+j)+")"),j+=Ht.height+4}),p.attr("class","outer title-state").attr("x",-S/2-o).attr("y",-T/2-o).attr("width",S+e.padding).attr("height",T+e.padding),Ni(e,p),e.intersect=function(jt){return Ou(e,jt)},d}},ih={},f2=function(t){var e=ih[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},H6={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"),d=r.insert("g").attr("class","cluster-label"),p=d.node().appendChild(ia(e.labelText,e.labelStyle,void 0,!0)),m=p.getBBox();if(Di(ie().flowchart.htmlLabels)){var b=p.children[0],S=Se(p);m=b.getBoundingClientRect(),S.attr("width",m.width),S.attr("height",m.height)}var T=0*e.padding,O=T/2,j=e.width<=m.width+T?m.width+T:e.width;e.width<=m.width+T?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+T),d.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 rh(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"),d=r.insert("g").attr("class","cluster-label"),p=r.append("rect"),m=d.node().appendChild(ia(e.labelText,e.labelStyle,void 0,!0)),b=m.getBBox();if(Di(ie().flowchart.htmlLabels)){var S=m.children[0],T=Se(m);b=S.getBoundingClientRect(),T.attr("width",b.width),T.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),d.attr("transform","translate("+(e.x-b.width/2)+", "+(e.y-e.height/2-e.padding/3+(Di(ie().flowchart.htmlLabels)?5:3))+")");var U=o.node().getBBox();return e.height=U.height,e.intersect=function(it){return rh(e,it)},r},noteGroup:function(t,e){var r=t.insert("g").attr("class","note-cluster").attr("id",e.id),o=r.insert("rect",":first-child"),d=0*e.padding,p=d/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+d).attr("height",e.height+d).attr("fill","none");var m=o.node().getBBox();return e.width=m.width,e.height=m.height,e.intersect=function(b){return rh(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"),d=0*e.padding,p=d/2;o.attr("class","divider").attr("x",e.x-e.width/2-p).attr("y",e.y-e.height/2).attr("width",e.width+d).attr("height",e.height+d);var m=o.node().getBBox();return e.width=m.width,e.height=m.height,e.diff=-e.padding/2,e.intersect=function(b){return rh(e,b)},r}},d2={},D0={},Zi={},q6=function(t,e){var r=ia(e.label,e.labelStyle),o=t.insert("g").attr("class","edgeLabel"),d=o.insert("g").attr("class","label");d.node().appendChild(r);var p,m=r.getBBox();if(Di(ie().flowchart.htmlLabels)){var b=r.children[0],S=Se(r);m=b.getBoundingClientRect(),S.attr("width",m.width),S.attr("height",m.height)}if(d.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),D0[e.id]=o,e.width=m.width,e.height=m.height,e.startLabelLeft){var T=ia(e.startLabelLeft,e.labelStyle),O=t.insert("g").attr("class","edgeTerminals"),j=O.insert("g").attr("class","inner");p=j.node().appendChild(T);var F=T.getBBox();j.attr("transform","translate("+-F.width/2+", "+-F.height/2+")"),Zi[e.id]||(Zi[e.id]={}),Zi[e.id].startLeft=O,Vf(p,e.startLabelLeft)}if(e.startLabelRight){var U=ia(e.startLabelRight,e.labelStyle),it=t.insert("g").attr("class","edgeTerminals"),yt=it.insert("g").attr("class","inner");p=it.node().appendChild(U),yt.node().appendChild(U);var vt=U.getBBox();yt.attr("transform","translate("+-vt.width/2+", "+-vt.height/2+")"),Zi[e.id]||(Zi[e.id]={}),Zi[e.id].startRight=it,Vf(p,e.startLabelRight)}if(e.endLabelLeft){var xt=ia(e.endLabelLeft,e.labelStyle),mt=t.insert("g").attr("class","edgeTerminals"),ot=mt.insert("g").attr("class","inner");p=ot.node().appendChild(xt);var Ht=xt.getBBox();ot.attr("transform","translate("+-Ht.width/2+", "+-Ht.height/2+")"),mt.node().appendChild(xt),Zi[e.id]||(Zi[e.id]={}),Zi[e.id].endLeft=mt,Vf(p,e.endLabelLeft)}if(e.endLabelRight){var Dt=ia(e.endLabelRight,e.labelStyle),ft=t.insert("g").attr("class","edgeTerminals"),Nt=ft.insert("g").attr("class","inner");p=Nt.node().appendChild(Dt);var Kt=Dt.getBBox();Nt.attr("transform","translate("+-Kt.width/2+", "+-Kt.height/2+")"),ft.node().appendChild(Dt),Zi[e.id]||(Zi[e.id]={}),Zi[e.id].endRight=ft,Vf(p,e.endLabelRight)}};function Vf(t,e){ie().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var $6=function(t,e){y.info("Moving label abc78 ",t.id,t.label,D0[t.id]);var r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var o=D0[t.id],d=t.x,p=t.y;if(r){var m=Jn.calcLabelPosition(r);y.info("Moving label from (",d,",",p,") to (",m.x,",",m.y,") abc78")}o.attr("transform","translate("+d+", "+p+")")}if(t.startLabelLeft){var b=Zi[t.id].startLeft,S=t.x,T=t.y;if(r){var O=Jn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);S=O.x,T=O.y}b.attr("transform","translate("+S+", "+T+")")}if(t.startLabelRight){var j=Zi[t.id].startRight,F=t.x,U=t.y;if(r){var it=Jn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);F=it.x,U=it.y}j.attr("transform","translate("+F+", "+U+")")}if(t.endLabelLeft){var yt=Zi[t.id].endLeft,vt=t.x,xt=t.y;if(r){var mt=Jn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);vt=mt.x,xt=mt.y}yt.attr("transform","translate("+vt+", "+xt+")")}if(t.endLabelRight){var ot=Zi[t.id].endRight,Ht=t.x,Dt=t.y;if(r){var ft=Jn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);Ht=ft.x,Dt=ft.y}ot.attr("transform","translate("+Ht+", "+Dt+")")}},p2=function(t,e){y.warn("abc88 cutPathAtIntersect",t,e);var r=[],o=t[0],d=!1;return t.forEach(function(p){if(y.info("abc88 checking point",p,e),function(S,T){var O=S.x,j=S.y,F=Math.abs(T.x-O),U=Math.abs(T.y-j),it=S.width/2,yt=S.height/2;return F>=it||U>=yt}(e,p)||d)y.warn("abc88 outside",p,o),o=p,d||r.push(p);else{var m=function(S,T,O){y.warn(`intersection calc abc89:
outsidePoint: `.concat(JSON.stringify(T),`
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),it=S.width/2,yt=O.x<T.x?it-U:it+U,vt=S.height/2,xt=Math.abs(T.y-O.y),mt=Math.abs(T.x-O.x);if(Math.abs(F-T.y)*it>Math.abs(j-T.x)*vt){var ot=O.y<T.y?T.y-vt-F:F-vt-T.y;yt=mt*ot/xt;var Ht={x:O.x<T.x?O.x+yt:O.x-mt+yt,y:O.y<T.y?O.y+xt-ot:O.y-xt+ot};return yt===0&&(Ht.x=T.x,Ht.y=T.y),mt===0&&(Ht.x=T.x),xt===0&&(Ht.y=T.y),y.warn("abc89 topp/bott calc, Q ".concat(xt,", q ").concat(ot,", R ").concat(mt,", r ").concat(yt),Ht),Ht}var Dt=xt*(yt=O.x<T.x?T.x-it-j:j-it-T.x)/mt,ft=O.x<T.x?O.x+mt-yt:O.x-mt+yt,Nt=O.y<T.y?O.y+Dt:O.y-Dt;return y.warn("sides calc abc89, Q ".concat(xt,", q ").concat(Dt,", R ").concat(mt,", r ").concat(yt),{_x:ft,_y:Nt}),yt===0&&(ft=T.x,Nt=T.y),mt===0&&(ft=T.x),xt===0&&(Nt=T.y),{x:ft,y:Nt}}(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),d=!0}}),y.warn("abc88 returning points",r),r},V6=function t(e,r,o,d){y.info("Graph in recursive render: XXX",Si().json.write(r),d);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"),T=m.insert("g").attr("class","edgeLabels"),O=m.insert("g").attr("class","nodes");r.nodes().forEach(function(F){var U=r.node(F);if(d!==void 0){var it=JSON.parse(JSON.stringify(d.clusterData));y.info("Setting data for cluster XXX (",F,") ",it,d),r.setNode(d.id,it),r.parent(F)||(y.trace("Setting parent",F,d.id),r.setParent(F,d.id,it))}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 yt=t(O,U.graph,o,r.node(F)),vt=yt.elem;Ni(U,vt),U.diff=yt.diff||0,y.info("Node bounds (abc123)",F,U,U.width,U.x,U.y),function(xt,mt){ih[mt.id]=xt}(vt,U),y.warn("Recursive render complete ",vt,U)}else r.children(F).length>0?(y.info("Cluster - the non recursive path XXX",F,U.id,U,r),y.info(M0(U.id,r)),pr[U.id]={id:M0(U.id,r),node:U}):(y.info("Node - the non recursive path",F,U.id,U),function(xt,mt,ot){var Ht,Dt;mt.link?(Ht=xt.insert("svg:a").attr("xlink:href",mt.link).attr("target",mt.linkTarget||"_blank"),Dt=h2[mt.shape](Ht,mt,ot)):Ht=Dt=h2[mt.shape](xt,mt,ot),mt.tooltip&&Dt.attr("title",mt.tooltip),mt.class&&Dt.attr("class","node default "+mt.class),ih[mt.id]=Ht,mt.haveCallback&&ih[mt.id].attr("class",ih[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",pr,"ids:",F.v,F.w,"Translateing: ",pr[F.v],pr[F.w]),q6(T,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),Hf().layout(r),y.info("Graph after layout:",Si().json.write(r));var j=0;return U6(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?f2(U):r.children(F).length>0?(function(it,yt){y.trace("Inserting cluster");var vt=yt.shape||"rect";d2[yt.id]=H6[vt](it,yt)}(b,U),pr[U.id].node=U):f2(U)}),r.edges().forEach(function(F){var U=r.edge(F);y.info("Edge "+F.v+" -> "+F.w+": "+JSON.stringify(U),U);var it=function(yt,vt,xt,mt,ot,Ht){var Dt=xt.points,ft=!1,Nt=Ht.node(vt.v),Kt=Ht.node(vt.w);y.info("abc88 InsertEdge: ",xt),Kt.intersect&&Nt.intersect&&((Dt=Dt.slice(1,xt.points.length-1)).unshift(Nt.intersect(Dt[0])),y.info("Last point",Dt[Dt.length-1],Kt,Kt.intersect(Dt[Dt.length-1])),Dt.push(Kt.intersect(Dt[Dt.length-1]))),xt.toCluster&&(y.info("to cluster abc88",mt[xt.toCluster]),Dt=p2(xt.points,mt[xt.toCluster].node),ft=!0),xt.fromCluster&&(y.info("from cluster abc88",mt[xt.fromCluster]),Dt=p2(Dt.reverse(),mt[xt.fromCluster].node).reverse(),ft=!0);var St,wt=Dt.filter(function(ve){return!Number.isNaN(ve.y)});St=(ot==="graph"||ot==="flowchart")&&xt.curve||Yr;var jt,Ct=yo().x(function(ve){return ve.x}).y(function(ve){return ve.y}).curve(St);switch(xt.thickness){case"normal":jt="edge-thickness-normal";break;case"thick":jt="edge-thickness-thick";break;default:jt=""}switch(xt.pattern){case"solid":jt+=" edge-pattern-solid";break;case"dotted":jt+=" edge-pattern-dotted";break;case"dashed":jt+=" edge-pattern-dashed"}var Jt=yt.append("path").attr("d",Ct(wt)).attr("id",xt.id).attr("class"," "+jt+(xt.classes?" "+xt.classes:"")).attr("style",xt.style),pt="";switch(ie().state.arrowMarkerAbsolute&&(pt=(pt=(pt=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("+pt+"#"+ot+"-crossStart)");break;case"arrow_point":Jt.attr("marker-start","url("+pt+"#"+ot+"-pointStart)");break;case"arrow_barb":Jt.attr("marker-start","url("+pt+"#"+ot+"-barbStart)");break;case"arrow_circle":Jt.attr("marker-start","url("+pt+"#"+ot+"-circleStart)");break;case"aggregation":Jt.attr("marker-start","url("+pt+"#"+ot+"-aggregationStart)");break;case"extension":Jt.attr("marker-start","url("+pt+"#"+ot+"-extensionStart)");break;case"composition":Jt.attr("marker-start","url("+pt+"#"+ot+"-compositionStart)");break;case"dependency":Jt.attr("marker-start","url("+pt+"#"+ot+"-dependencyStart)")}switch(xt.arrowTypeEnd){case"arrow_cross":Jt.attr("marker-end","url("+pt+"#"+ot+"-crossEnd)");break;case"arrow_point":Jt.attr("marker-end","url("+pt+"#"+ot+"-pointEnd)");break;case"arrow_barb":Jt.attr("marker-end","url("+pt+"#"+ot+"-barbEnd)");break;case"arrow_circle":Jt.attr("marker-end","url("+pt+"#"+ot+"-circleEnd)");break;case"aggregation":Jt.attr("marker-end","url("+pt+"#"+ot+"-aggregationEnd)");break;case"extension":Jt.attr("marker-end","url("+pt+"#"+ot+"-extensionEnd)");break;case"composition":Jt.attr("marker-end","url("+pt+"#"+ot+"-compositionEnd)");break;case"dependency":Jt.attr("marker-end","url("+pt+"#"+ot+"-dependencyEnd)")}var le={};return ft&&(le.updatedPath=Dt),le.originalPath=xt.points,le}(S,F,U,pr,o,r);$6(U,it)}),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}},N0=function(t,e,r,o,d){I6(t,r,o,d),ih={},D0={},Zi={},d2={},Vo={},$n={},pr={},y.warn("Graph at first:",Si().json.write(e)),P6(e),y.warn("Graph after:",Si().json.write(e)),V6(t,e,o)};eh.parser.yy=qo;var L3={dividerMargin:10,padding:5,textHeight:10};function g2(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 Gf={},O0=[],y2="",m2=function(t){return Gf[t]===void 0&&(Gf[t]={attributes:[]},y.info("Added new entity :",t)),Gf[t]};const Ua={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){ca.parseDirective(this,t,e,r)},getConfig:function(){return ie().er},addEntity:m2,addAttributes:function(t,e){var r,o=m2(t);for(r=e.length-1;r>=0;r--)o.attributes.push(e[r]),y.debug("Added attribute ",e[r].attributeName)},getEntities:function(){return Gf},addRelationship:function(t,e,r,o){var d={entityA:t,roleA:e,entityB:r,relSpec:o};O0.push(d),y.debug("Added new relationship :",d)},getRelationships:function(){return O0},clear:function(){Gf={},O0=[],y2=""},setTitle:function(t){y2=t},getTitle:function(){return y2}};var I3=s(5890),R3=s.n(I3),_s={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 Lc=_s;var jr={},F3=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},v2=0;const P3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)jr[e[r]]=t[e[r]]},Y3=function(t,e){y.info("Drawing ER diagram"),Ua.clear();var r=R3().parser;r.yy=Ua;try{r.parse(t)}catch{y.debug("Parsing failed")}var o,d=Se("[id='".concat(e,"']"));(function(j,F){var U;j.append("defs").append("marker").attr("id",_s.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",_s.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",_s.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",_s.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",_s.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",_s.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",_s.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",_s.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")})(d,jr),o=new(Si()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:jr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var p=function(j,F,U){var it;return Object.keys(F).forEach(function(yt){var vt=j.append("g").attr("id",yt);it=it===void 0?yt:it;var xt="entity-"+yt,mt=vt.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: "+ie().fontFamily+"; font-size: "+jr.fontSize+"px").text(yt),ot=function(Nt,Kt,St){var wt=jr.entityPadding/3,jt=jr.entityPadding/3,Ct=.85*jr.fontSize,Jt=Kt.node().getBBox(),pt=[],le=!1,ve=!1,me=0,Me=0,He=0,ze=0,fn=0,Ae=Jt.height+2*wt,Vn=1;St.forEach(function(nr){var jn="".concat(Kt.node().id,"-attr-").concat(Vn),Bn=0,ua=0,Hu=Nt.append("text").attr("class","er entityLabel").attr("id","".concat(jn,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+ie().fontFamily+"; font-size: "+Ct+"px").text(nr.attributeType),$c=Nt.append("text").attr("class","er entityLabel").attr("id","".concat(jn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+ie().fontFamily+"; font-size: "+Ct+"px").text(nr.attributeName),Vc={};Vc.tn=Hu,Vc.nn=$c;var la=Hu.node().getBBox(),ap=$c.node().getBBox();if(Me=Math.max(Me,la.width),He=Math.max(He,ap.width),Bn+=la.width,Bn+=ap.width,ua=Math.max(la.height,ap.height),le||nr.attributeKeyType!==void 0){var mw=Nt.append("text").attr("class","er entityLabel").attr("id","".concat(jn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+ie().fontFamily+"; font-size: "+Ct+"px").text(nr.attributeKeyType||"");Vc.kn=mw;var vw=mw.node().getBBox();Bn+=vw.width,ze=Math.max(ze,Bn),ua=Math.max(ua,vw.height),le=!0}if(ve||nr.attributeComment!==void 0){var _w=Nt.append("text").attr("class","er entityLabel").attr("id","".concat(jn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+ie().fontFamily+"; font-size: "+Ct+"px").text(nr.attributeComment||"");Vc.cn=_w;var bw=_w.node().getBBox();Bn+=bw.width,fn=Math.max(Bn,ap.width),ua=Math.max(ua,bw.height),ve=!0}Vc.height=ua,pt.push(Vc),me=Math.max(me,Bn),Ae+=ua+2*wt,Vn+=1});var _n={width:Math.max(jr.minEntityWidth,Math.max(Jt.width+2*jr.entityPadding,me+4*jt)),height:St.length>0?Ae:Math.max(jr.minEntityHeight,Jt.height+2*jr.entityPadding)},mn=Math.max(0,_n.width-me-4*jt);if(St.length>0){Kt.attr("transform","translate("+_n.width/2+","+(wt+Jt.height/2)+")");var gn=Jt.height+2*wt,on="attributeBoxOdd";pt.forEach(function(nr){var jn=gn+wt+nr.height/2;nr.tn.attr("transform","translate("+jt+","+jn+")");var Bn=Nt.insert("rect","#"+nr.tn.node().id).attr("class","er ".concat(on)).attr("fill",jr.fill).attr("fill-opacity","100%").attr("stroke",jr.stroke).attr("x",0).attr("y",gn).attr("width",2*Me+mn/2).attr("height",nr.tn.node().getBBox().height+2*wt);nr.nn.attr("transform","translate("+(parseFloat(Bn.attr("width"))+jt)+","+jn+")"),Nt.insert("rect","#"+nr.nn.node().id).attr("class","er ".concat(on)).attr("fill",jr.fill).attr("fill-opacity","100%").attr("stroke",jr.stroke).attr("x","".concat(Bn.attr("x")+Bn.attr("width"))).attr("y",gn).attr("width",He+2*jt+mn/2).attr("height",nr.nn.node().getBBox().height+2*wt),le&&(nr.kn.attr("transform","translate("+(parseFloat(Bn.attr("width"))+jt)+","+jn+")"),Nt.insert("rect","#"+nr.kn.node().id).attr("class","er ".concat(on)).attr("fill",jr.fill).attr("fill-opacity","100%").attr("stroke",jr.stroke).attr("x","".concat(Bn.attr("x")+Bn.attr("width"))).attr("y",gn).attr("width",ze+2*jt+mn/2).attr("height",nr.kn.node().getBBox().height+2*wt)),ve&&(nr.cn.attr("transform","translate("+(parseFloat(Bn.attr("width"))+jt)+","+jn+")"),Nt.insert("rect","#"+nr.cn.node().id).attr("class","er ".concat(on)).attr("fill",jr.fill).attr("fill-opacity","100%").attr("stroke",jr.stroke).attr("x","".concat(Bn.attr("x")+Bn.attr("width"))).attr("y",gn).attr("width",fn+2*jt+mn/2).attr("height",nr.cn.node().getBBox().height+2*wt)),gn+=nr.height+2*wt,on=on=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else _n.height=Math.max(jr.minEntityHeight,Ae),Kt.attr("transform","translate("+_n.width/2+","+_n.height/2+")");return _n}(vt,mt,F[yt].attributes),Ht=ot.width,Dt=ot.height,ft=vt.insert("rect","#"+xt).attr("class","er entityBox").attr("fill",jr.fill).attr("fill-opacity","100%").attr("stroke",jr.stroke).attr("x",0).attr("y",0).attr("width",Ht).attr("height",Dt).node().getBBox();U.setNode(yt,{width:ft.width,height:ft.height,shape:"rect",id:yt})}),it}(d,Ua.getEntities(),o),m=function(j,F){return j.forEach(function(U){F.setEdge(U.entityA,U.entityB,{relationship:U},F3(U))}),j}(Ua.getRelationships(),o);Hf().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)+" )")})}(d,o),m.forEach(function(j){(function(F,U,it,yt){v2++;var vt=it.edge(U.entityA,U.entityB,F3(U)),xt=yo().x(function(Kt){return Kt.x}).y(function(Kt){return Kt.y}).curve(Yr),mt=F.insert("path","#"+yt).attr("class","er relationshipLine").attr("d",xt(vt.points)).attr("stroke",jr.stroke).attr("fill","none");U.relSpec.relType===Ua.Identification.NON_IDENTIFYING&&mt.attr("stroke-dasharray","8,8");var ot="";switch(jr.arrowMarkerAbsolute&&(ot=(ot=(ot=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),U.relSpec.cardA){case Ua.Cardinality.ZERO_OR_ONE:mt.attr("marker-end","url("+ot+"#"+Lc.ZERO_OR_ONE_END+")");break;case Ua.Cardinality.ZERO_OR_MORE:mt.attr("marker-end","url("+ot+"#"+Lc.ZERO_OR_MORE_END+")");break;case Ua.Cardinality.ONE_OR_MORE:mt.attr("marker-end","url("+ot+"#"+Lc.ONE_OR_MORE_END+")");break;case Ua.Cardinality.ONLY_ONE:mt.attr("marker-end","url("+ot+"#"+Lc.ONLY_ONE_END+")")}switch(U.relSpec.cardB){case Ua.Cardinality.ZERO_OR_ONE:mt.attr("marker-start","url("+ot+"#"+Lc.ZERO_OR_ONE_START+")");break;case Ua.Cardinality.ZERO_OR_MORE:mt.attr("marker-start","url("+ot+"#"+Lc.ZERO_OR_MORE_START+")");break;case Ua.Cardinality.ONE_OR_MORE:mt.attr("marker-start","url("+ot+"#"+Lc.ONE_OR_MORE_START+")");break;case Ua.Cardinality.ONLY_ONE:mt.attr("marker-start","url("+ot+"#"+Lc.ONLY_ONE_START+")")}var Ht=mt.node().getTotalLength(),Dt=mt.node().getPointAtLength(.5*Ht),ft="rel"+v2,Nt=F.append("text").attr("class","er relationshipLabel").attr("id",ft).attr("x",Dt.x).attr("y",Dt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+ie().fontFamily+"; font-size: "+jr.fontSize+"px").text(U.roleA).node().getBBox();F.insert("rect","#"+ft).attr("class","er relationshipLabelBox").attr("x",Dt.x-Nt.width/2).attr("y",Dt.y-Nt.height/2).attr("width",Nt.width).attr("height",Nt.height).attr("fill","white").attr("fill-opacity","85%")})(d,j,o,p)});var b=jr.diagramPadding,S=d.node().getBBox(),T=S.width+2*b,O=S.height+2*b;io(d,O,T,jr.useMaxWidth),d.attr("viewBox","".concat(S.x-b," ").concat(S.y-b," ").concat(T," ").concat(O))};function _2(t){return _2=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},_2(t)}function B0(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 Zs,Xf,G6="flowchart-",b2=0,ah=ie(),ci={},Bu=[],Lu=[],bs=[],Zf={},x2={},L0=0,w2=!0,Qf=[],I0=function(t){for(var e=Object.keys(ci),r=0;r<e.length;r++)if(ci[e[r]].id===t)return ci[e[r]].domId;return t},X6=function(t,e,r,o){var d={start:t,end:e,type:void 0,text:""};(o=r.text)!==void 0&&(d.text=Cr.sanitizeText(o.trim(),ah),d.text[0]==='"'&&d.text[d.text.length-1]==='"'&&(d.text=d.text.substring(1,d.text.length-1))),r!==void 0&&(d.type=r.type,d.stroke=r.stroke,d.length=r.length),Bu.push(d)},k2=function(t,e){t.split(",").forEach(function(r){var o=r;ci[o]!==void 0&&ci[o].classes.push(e),Zf[o]!==void 0&&Zf[o].classes.push(e)})},j3=function(t){var e=Se(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Se(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Se(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),Se(this).classed("hover",!1)})};Qf.push(j3);var Z6=function(t){for(var e=0;e<bs.length;e++)if(bs[e].id===t)return e;return-1},oh=-1,U3=[],R0=function t(e,r){var o=bs[r].nodes;if(!((oh+=1)>2e3)){if(U3[oh]=r,bs[r].id===e)return{result:!0,count:0};for(var d=0,p=1;d<o.length;){var m=Z6(o[d]);if(m>=0){var b=t(e,m);if(b.result)return{result:!0,count:p+b.count};p+=b.count}d+=1}return{result:!1,count:p}}},z3=function(t,e){var r=!1;return t.forEach(function(o){o.nodes.indexOf(e)>=0&&(r=!0)}),r},W3=function(t,e){var r=[];return t.nodes.forEach(function(o,d){z3(e,o)||r.push(t.nodes[d])}),{nodes:r}};const ar={parseDirective:function(t,e,r){ca.parseDirective(this,t,e,r)},defaultConfig:function(){return zf.flowchart},addVertex:function(t,e,r,o,d,p){var m,b=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},S=t;S!==void 0&&S.trim().length!==0&&(ci[S]===void 0&&(ci[S]={id:S,domId:G6+S+"-"+b2,styles:[],classes:[]}),b2++,e!==void 0?(ah=ie(),(m=Cr.sanitizeText(e.trim(),ah))[0]==='"'&&m[m.length-1]==='"'&&(m=m.substring(1,m.length-1)),ci[S].text=m):ci[S].text===void 0&&(ci[S].text=t),r!==void 0&&(ci[S].type=r),o!=null&&o.forEach(function(T){ci[S].styles.push(T)}),d!=null&&d.forEach(function(T){ci[S].classes.push(T)}),p!==void 0&&(ci[S].dir=p),ci[S].props=b)},lookUpDomId:I0,addLink:function(t,e,r,o){var d,p;for(d=0;d<t.length;d++)for(p=0;p<e.length;p++)X6(t[d],e[p],r,o)},updateLinkInterpolate:function(t,e){t.forEach(function(r){r==="default"?Bu.defaultInterpolate=e:Bu[r].interpolate=e})},updateLink:function(t,e){t.forEach(function(r){r==="default"?Bu.defaultStyle=e:(Jn.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),Bu[r].style=e)})},addClass:function(t,e){Lu[t]===void 0&&(Lu[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(r){if(r.match("color")){var o=r.replace("fill","bgFill").replace("color","fill");Lu[t].textStyles.push(o)}Lu[t].styles.push(r)})},setDirection:function(t){(Zs=t).match(/.*</)&&(Zs="RL"),Zs.match(/.*\^/)&&(Zs="BT"),Zs.match(/.*>/)&&(Zs="LR"),Zs.match(/.*v/)&&(Zs="TB")},setClass:k2,setTooltip:function(t,e){t.split(",").forEach(function(r){e!==void 0&&(x2[Xf==="gen-1"?I0(r):r]=Cr.sanitizeText(e,ah))})},getTooltip:function(t){return x2[t]},setClickEvent:function(t,e,r){t.split(",").forEach(function(o){(function(d,p,m){var b=I0(d);if(ie().securityLevel==="loose"&&p!==void 0){var S=[];if(typeof m=="string"){S=m.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var T=0;T<S.length;T++){var O=S[T].trim();O.charAt(0)==='"'&&O.charAt(O.length-1)==='"'&&(O=O.substr(1,O.length-2)),S[T]=O}}S.length===0&&S.push(d),ci[d]!==void 0&&(ci[d].haveCallback=!0,Qf.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 B0(U)}(F=S)||function(U){if(typeof Symbol!="undefined"&&U[Symbol.iterator]!=null||U["@@iterator"]!=null)return Array.from(U)}(F)||function(U,it){if(U){if(typeof U=="string")return B0(U,it);var yt=Object.prototype.toString.call(U).slice(8,-1);return yt==="Object"&&U.constructor&&(yt=U.constructor.name),yt==="Map"||yt==="Set"?Array.from(U):yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt)?B0(U,it):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)}),k2(t,"clickable")},setLink:function(t,e,r){t.split(",").forEach(function(o){ci[o]!==void 0&&(ci[o].link=Jn.formatUrl(e,ah),ci[o].linkTarget=r)}),k2(t,"clickable")},bindFunctions:function(t){Qf.forEach(function(e){e(t)})},getDirection:function(){return Zs.trim()},getVertices:function(){return ci},getEdges:function(){return Bu},getClasses:function(){return Lu},clear:function(t){ci={},Lu={},Bu=[],(Qf=[]).push(j3),bs=[],Zf={},L0=0,x2=[],w2=!0,Xf=t||"gen-1"},setGen:function(t){Xf=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(),d=r;t===r&&r.match(/\s/)&&(o=void 0);var p=[],m=function(j){var F,U={boolean:{},number:{},string:{}},it=[],yt=j.filter(function(vt){var xt=_2(vt);return vt.stmt&&vt.stmt==="dir"?(F=vt.value,!1):vt.trim()!==""&&(xt in U?!U[xt].hasOwnProperty(vt)&&(U[xt][vt]=!0):!(it.indexOf(vt)>=0)&&it.push(vt))});return{nodeList:yt,dir:F}}(p.concat.apply(p,e)),b=m.nodeList,S=m.dir;if(p=b,Xf==="gen-1"){y.warn("LOOKING UP");for(var T=0;T<p.length;T++)p[T]=I0(p[T])}o=o||"subGraph"+L0,d=d||"",d=Cr.sanitizeText(d,ah),L0+=1;var O={id:o,nodes:p,title:d.trim(),classes:[],dir:S};return y.info("Adding",O.id,O.nodes,O.dir),O.nodes=W3(O,bs).nodes,bs.push(O),Zf[o]=O,o},getDepthFirstPos:function(t){return U3[t]},indexNodes:function(){oh=-1,bs.length>0&&R0("none",bs.length-1)},getSubGraphs:function(){return bs},destructLink:function(t,e){var r,o=function(d){var p=d.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",T=m.length-1;m[0]==="="&&(S="thick");var O=function(j,F){for(var U=F.length,it=0,yt=0;yt<U;++yt)F[yt]==="."&&++it;return it}(0,m);return O&&(S="dotted",T=O),{type:b,stroke:S,length:T}}(t);if(e){if(r=function(d){var p=d.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!!w2&&(w2=!1,!0)}},exists:z3,makeUniq:W3};var Q6=s(3602),Iu=s.n(Q6),J6=s(4949),ao=s.n(J6),K6=s(8284),H3=s.n(K6);function tx(t,e,r){var o=.9*(e.width+e.height),d=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],p=Go(t,o,o,d);return r.intersect=function(m){return ao().intersect.polygon(r,d,m)},p}function ex(t,e,r){var o=e.height,d=o/4,p=e.width+2*d,m=[{x:d,y:0},{x:p-d,y:0},{x:p,y:-o/2},{x:p-d,y:-o},{x:d,y:-o},{x:0,y:-o/2}],b=Go(t,p,o,m);return r.intersect=function(S){return ao().intersect.polygon(r,m,S)},b}function q3(t,e,r){var o=e.width,d=e.height,p=[{x:-d/2,y:0},{x:o,y:0},{x:o,y:-d},{x:-d/2,y:-d},{x:0,y:-d/2}],m=Go(t,o,d,p);return r.intersect=function(b){return ao().intersect.polygon(r,p,b)},m}function T2(t,e,r){var o=e.width,d=e.height,p=[{x:-2*d/6,y:0},{x:o-d/6,y:0},{x:o+2*d/6,y:-d},{x:d/6,y:-d}],m=Go(t,o,d,p);return r.intersect=function(b){return ao().intersect.polygon(r,p,b)},m}function nx(t,e,r){var o=e.width,d=e.height,p=[{x:2*d/6,y:0},{x:o+d/6,y:0},{x:o-2*d/6,y:-d},{x:-d/6,y:-d}],m=Go(t,o,d,p);return r.intersect=function(b){return ao().intersect.polygon(r,p,b)},m}function rx(t,e,r){var o=e.width,d=e.height,p=[{x:-2*d/6,y:0},{x:o+2*d/6,y:0},{x:o-d/6,y:-d},{x:d/6,y:-d}],m=Go(t,o,d,p);return r.intersect=function(b){return ao().intersect.polygon(r,p,b)},m}function cr(t,e,r){var o=e.width,d=e.height,p=[{x:d/6,y:0},{x:o-d/6,y:0},{x:o+2*d/6,y:-d},{x:-2*d/6,y:-d}],m=Go(t,o,d,p);return r.intersect=function(b){return ao().intersect.polygon(r,p,b)},m}function $3(t,e,r){var o=e.width,d=e.height,p=[{x:0,y:0},{x:o+d/2,y:0},{x:o,y:-d/2},{x:o+d/2,y:-d},{x:0,y:-d}],m=Go(t,o,d,p);return r.intersect=function(b){return ao().intersect.polygon(r,p,b)},m}function pa(t,e,r){var o=e.height,d=e.width+o/4,p=t.insert("rect",":first-child").attr("rx",o/2).attr("ry",o/2).attr("x",-d/2).attr("y",-o/2).attr("width",d).attr("height",o);return r.intersect=function(m){return ao().intersect.rect(r,m)},p}function Ru(t,e,r){var o=e.width,d=e.height,p=[{x:0,y:0},{x:o,y:0},{x:o,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-d},{x:-8,y:-d},{x:-8,y:0}],m=Go(t,o,d,p);return r.intersect=function(b){return ao().intersect.polygon(r,p,b)},m}function ix(t,e,r){var o=e.width,d=o/2,p=d/(2.5+o/50),m=e.height+p,b="M 0,"+p+" a "+d+","+p+" 0,0,0 "+o+" 0 a "+d+","+p+" 0,0,0 "+-o+" 0 l 0,"+m+" a "+d+","+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(T){var O=ao().intersect.rect(r,T),j=O.x-r.x;if(d!=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/(d*d));F!=0&&(F=Math.sqrt(F)),F=p-F,T.y-r.y>0&&(F=-F),O.y+=F}return O},S}function Go(t,e,r,o){return t.insert("polygon",":first-child").attr("points",o.map(function(d){return d.x+","+d.y}).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const xs=function(t){t.shapes().question=tx,t.shapes().hexagon=ex,t.shapes().stadium=pa,t.shapes().subroutine=Ru,t.shapes().cylinder=ix,t.shapes().rect_left_inv_arrow=q3,t.shapes().lean_right=T2,t.shapes().lean_left=nx,t.shapes().trapezoid=rx,t.shapes().inv_trapezoid=cr,t.shapes().rect_right_inv_arrow=$3};var Fu={};const aa=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Fu[e[r]]=t[e[r]]},Ic=function(t,e){y.info("Drawing flowchart"),ar.clear(),ar.setGen("gen-1");var r=Iu().parser;r.yy=ar,r.parse(t);var o=ar.getDirection();o===void 0&&(o="TD");for(var d,p=ie().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{}}),T=ar.getSubGraphs(),O=T.length-1;O>=0;O--)d=T[O],ar.addVertex(d.id,d.title,"group",void 0,d.classes);var j=ar.getVertices();y.warn("Get vertices",j);var F=ar.getEdges(),U=0;for(U=T.length-1;U>=0;U--){d=T[U],vc("cluster").append("text");for(var it=0;it<d.nodes.length;it++)y.warn("Setting subgraph",d.nodes[it],ar.lookUpDomId(d.nodes[it]),ar.lookUpDomId(d.id)),S.setParent(ar.lookUpDomId(d.nodes[it]),ar.lookUpDomId(d.id))}(function(He,ze,fn){var Ae=Se('[id="'.concat(fn,'"]'));Object.keys(He).forEach(function(Vn){var _n=He[Vn],mn="default";_n.classes.length>0&&(mn=_n.classes.join(" "));var gn,on=Bc(_n.styles),nr=_n.text!==void 0?_n.text:_n.id;if(Di(ie().flowchart.htmlLabels)){var jn={label:nr.replace(/fa[lrsb]?:fa-[\w-]+/g,function(ap){return"<i class='".concat(ap.replace(":"," "),"'></i>")})};(gn=H3()(Ae,jn).node()).parentNode.removeChild(gn)}else{var Bn=document.createElementNS("http://www.w3.org/2000/svg","text");Bn.setAttribute("style",on.labelStyle.replace("color:","fill:"));for(var ua=nr.split(Cr.lineBreakRegex),Hu=0;Hu<ua.length;Hu++){var $c=document.createElementNS("http://www.w3.org/2000/svg","tspan");$c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),$c.setAttribute("dy","1em"),$c.setAttribute("x","1"),$c.textContent=ua[Hu],Bn.appendChild($c)}gn=Bn}var Vc=0,la="";switch(_n.type){case"round":Vc=5,la="rect";break;case"square":case"group":default:la="rect";break;case"diamond":la="question";break;case"hexagon":la="hexagon";break;case"odd":case"odd_right":la="rect_left_inv_arrow";break;case"lean_right":la="lean_right";break;case"lean_left":la="lean_left";break;case"trapezoid":la="trapezoid";break;case"inv_trapezoid":la="inv_trapezoid";break;case"circle":la="circle";break;case"ellipse":la="ellipse";break;case"stadium":la="stadium";break;case"subroutine":la="subroutine";break;case"cylinder":la="cylinder"}y.warn("Adding node",_n.id,_n.domId),ze.setNode(ar.lookUpDomId(_n.id),{labelType:"svg",labelStyle:on.labelStyle,shape:la,label:gn,rx:Vc,ry:Vc,class:mn,style:on.style,id:ar.lookUpDomId(_n.id)})})})(j,S,e),function(He,ze){var fn,Ae,Vn=0;if(He.defaultStyle!==void 0){var _n=Bc(He.defaultStyle);fn=_n.style,Ae=_n.labelStyle}He.forEach(function(mn){Vn++;var gn="L-"+mn.start+"-"+mn.end,on="LS-"+mn.start,nr="LE-"+mn.end,jn={};mn.type==="arrow_open"?jn.arrowhead="none":jn.arrowhead="normal";var Bn="",ua="";if(mn.style!==void 0){var Hu=Bc(mn.style);Bn=Hu.style,ua=Hu.labelStyle}else switch(mn.stroke){case"normal":Bn="fill:none",fn!==void 0&&(Bn=fn),Ae!==void 0&&(ua=Ae);break;case"dotted":Bn="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Bn=" stroke-width: 3.5px;fill:none"}jn.style=Bn,jn.labelStyle=ua,mn.interpolate!==void 0?jn.curve=Ho(mn.interpolate,go):He.defaultInterpolate!==void 0?jn.curve=Ho(He.defaultInterpolate,go):jn.curve=Ho(Fu.curve,go),mn.text===void 0?mn.style!==void 0&&(jn.arrowheadStyle="fill: #333"):(jn.arrowheadStyle="fill: #333",jn.labelpos="c",Di(ie().flowchart.htmlLabels)?(jn.labelType="html",jn.label='<span id="L-'.concat(gn,'" class="edgeLabel L-').concat(on,"' L-").concat(nr,'">').concat(mn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function($c){return"<i class='".concat($c.replace(":"," "),"'></i>")}),"</span>")):(jn.labelType="text",jn.label=mn.text.replace(Cr.lineBreakRegex,`
`),mn.style===void 0&&(jn.style=jn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),jn.labelStyle=jn.labelStyle.replace("color:","fill:"))),jn.id=gn,jn.class=on+" "+nr,jn.minlen=mn.length||1,ze.setEdge(ar.lookUpDomId(mn.start),ar.lookUpDomId(mn.end),jn,Vn)})}(F,S);var yt=new(ao()).render;xs(yt),yt.arrows().none=function(He,ze,fn,Ae){var Vn=He.append("marker").attr("id",ze).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");ao().util.applyStyle(Vn,fn[Ae+"Style"])},yt.arrows().normal=function(He,ze){He.append("marker").attr("id",ze).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 vt=Se('[id="'.concat(e,'"]'));vt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),y.warn(S);var xt=Se("#"+e+" g");yt(xt,S),xt.selectAll("g.node").attr("title",function(){return ar.getTooltip(this.id)});var mt=p.diagramPadding,ot=vt.node().getBBox(),Ht=ot.width+2*mt,Dt=ot.height+2*mt;io(vt,Dt,Ht,p.useMaxWidth);var ft="".concat(ot.x-mt," ").concat(ot.y-mt," ").concat(Ht," ").concat(Dt);for(y.debug("viewBox ".concat(ft)),vt.attr("viewBox",ft),ar.indexNodes("subGraph"+U),U=0;U<T.length;U++)if((d=T[U]).title!=="undefined"){var Nt=document.querySelectorAll("#"+e+' [id="'+ar.lookUpDomId(d.id)+'"] rect'),Kt=document.querySelectorAll("#"+e+' [id="'+ar.lookUpDomId(d.id)+'"]'),St=Nt[0].x.baseVal.value,wt=Nt[0].y.baseVal.value,jt=Nt[0].width.baseVal.value,Ct=Se(Kt[0]).select(".label");Ct.attr("transform","translate(".concat(St+jt/2,", ").concat(wt+14,")")),Ct.attr("id",e+"Text");for(var Jt=0;Jt<d.classes.length;Jt++)Kt[0].classList.add(d.classes[Jt])}Di(p.htmlLabels);for(var pt=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),le=0;le<pt.length;le++){var ve=pt[le],me=ve.getBBox(),Me=document.createElementNS("http://www.w3.org/2000/svg","rect");Me.setAttribute("rx",0),Me.setAttribute("ry",0),Me.setAttribute("width",me.width),Me.setAttribute("height",me.height),ve.insertBefore(Me,ve.firstChild)}Object.keys(j).forEach(function(He){var ze=j[He];if(ze.link){var fn=Se("#"+e+' [id="'+ar.lookUpDomId(He)+'"]');if(fn){var Ae=document.createElementNS("http://www.w3.org/2000/svg","a");Ae.setAttributeNS("http://www.w3.org/2000/svg","class",ze.classes.join(" ")),Ae.setAttributeNS("http://www.w3.org/2000/svg","href",ze.link),Ae.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),ze.linkTarget&&Ae.setAttributeNS("http://www.w3.org/2000/svg","target",ze.linkTarget);var Vn=fn.insert(function(){return Ae},":first-child"),_n=fn.select(".label-container");_n&&Vn.append(function(){return _n.node()});var mn=fn.select(".label");mn&&Vn.append(function(){return mn.node()})}}})};var Jf={};const Qs=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Jf[e[r]]=t[e[r]]},ax=function(t,e){y.info("Drawing flowchart"),ar.clear(),ar.setGen("gen-2");var r=Iu().parser;r.yy=ar,r.parse(t);var o=ar.getDirection();o===void 0&&(o="TD");var d,p=ie().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{}}),T=ar.getSubGraphs();y.info("Subgraphs - ",T);for(var O=T.length-1;O>=0;O--)d=T[O],y.info("Subgraph - ",d),ar.addVertex(d.id,d.title,"group",void 0,d.classes,d.dir);var j=ar.getVertices(),F=ar.getEdges();y.info(F);var U=0;for(U=T.length-1;U>=0;U--){d=T[U],vc("cluster").append("text");for(var it=0;it<d.nodes.length;it++)y.info("Setting up subgraphs",d.nodes[it],d.id),S.setParent(d.nodes[it],d.id)}(function(wt,jt,Ct){var Jt=Se('[id="'.concat(Ct,'"]'));Object.keys(wt).forEach(function(pt){var le=wt[pt],ve="default";le.classes.length>0&&(ve=le.classes.join(" "));var me,Me=Bc(le.styles),He=le.text!==void 0?le.text:le.id;if(Di(ie().flowchart.htmlLabels)){var ze={label:He.replace(/fa[lrsb]?:fa-[\w-]+/g,function(on){return"<i class='".concat(on.replace(":"," "),"'></i>")})};(me=H3()(Jt,ze).node()).parentNode.removeChild(me)}else{var fn=document.createElementNS("http://www.w3.org/2000/svg","text");fn.setAttribute("style",Me.labelStyle.replace("color:","fill:"));for(var Ae=He.split(Cr.lineBreakRegex),Vn=0;Vn<Ae.length;Vn++){var _n=document.createElementNS("http://www.w3.org/2000/svg","tspan");_n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_n.setAttribute("dy","1em"),_n.setAttribute("x","1"),_n.textContent=Ae[Vn],fn.appendChild(_n)}me=fn}var mn=0,gn="";switch(le.type){case"round":mn=5,gn="rect";break;case"square":case"group":default:gn="rect";break;case"diamond":gn="question";break;case"hexagon":gn="hexagon";break;case"odd":case"odd_right":gn="rect_left_inv_arrow";break;case"lean_right":gn="lean_right";break;case"lean_left":gn="lean_left";break;case"trapezoid":gn="trapezoid";break;case"inv_trapezoid":gn="inv_trapezoid";break;case"circle":gn="circle";break;case"ellipse":gn="ellipse";break;case"stadium":gn="stadium";break;case"subroutine":gn="subroutine";break;case"cylinder":gn="cylinder"}jt.setNode(le.id,{labelStyle:Me.labelStyle,shape:gn,labelText:He,rx:mn,ry:mn,class:ve,style:Me.style,id:le.id,link:le.link,linkTarget:le.linkTarget,tooltip:ar.getTooltip(le.id)||"",domId:ar.lookUpDomId(le.id),haveCallback:le.haveCallback,width:le.type==="group"?500:void 0,dir:le.dir,type:le.type,props:le.props,padding:ie().flowchart.padding}),y.info("setNode",{labelStyle:Me.labelStyle,shape:gn,labelText:He,rx:mn,ry:mn,class:ve,style:Me.style,id:le.id,domId:ar.lookUpDomId(le.id),width:le.type==="group"?500:void 0,type:le.type,dir:le.dir,props:le.props,padding:ie().flowchart.padding})})})(j,S,e),function(wt,jt){y.info("abc78 edges = ",wt);var Ct,Jt,pt=0,le={};if(wt.defaultStyle!==void 0){var ve=Bc(wt.defaultStyle);Ct=ve.style,Jt=ve.labelStyle}wt.forEach(function(me){pt++;var Me="L-"+me.start+"-"+me.end;le[Me]===void 0?(le[Me]=0,y.info("abc78 new entry",Me,le[Me])):(le[Me]++,y.info("abc78 new entry",Me,le[Me]));var He=Me+"-"+le[Me];y.info("abc78 new link id to be used is",Me,He,le[Me]);var ze="LS-"+me.start,fn="LE-"+me.end,Ae={style:"",labelStyle:""};switch(Ae.minlen=me.length||1,me.type==="arrow_open"?Ae.arrowhead="none":Ae.arrowhead="normal",Ae.arrowTypeStart="arrow_open",Ae.arrowTypeEnd="arrow_open",me.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 Vn="",_n="";switch(me.stroke){case"normal":Vn="fill:none;",Ct!==void 0&&(Vn=Ct),Jt!==void 0&&(_n=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(me.style!==void 0){var mn=Bc(me.style);Vn=mn.style,_n=mn.labelStyle}Ae.style=Ae.style+=Vn,Ae.labelStyle=Ae.labelStyle+=_n,me.interpolate!==void 0?Ae.curve=Ho(me.interpolate,go):wt.defaultInterpolate!==void 0?Ae.curve=Ho(wt.defaultInterpolate,go):Ae.curve=Ho(Jf.curve,go),me.text===void 0?me.style!==void 0&&(Ae.arrowheadStyle="fill: #333"):(Ae.arrowheadStyle="fill: #333",Ae.labelpos="c"),Ae.labelType="text",Ae.label=me.text.replace(Cr.lineBreakRegex,`
`),me.style===void 0&&(Ae.style=Ae.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),Ae.labelStyle=Ae.labelStyle.replace("color:","fill:"),Ae.id=He,Ae.classes="flowchart-link "+ze+" "+fn,jt.setEdge(me.start,me.end,Ae,pt)})}(F,S);var yt=Se('[id="'.concat(e,'"]'));yt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var vt=Se("#"+e+" g");N0(vt,S,["point","circle","cross"],"flowchart",e);var xt=p.diagramPadding,mt=yt.node().getBBox(),ot=mt.width+2*xt,Ht=mt.height+2*xt;if(y.debug("new ViewBox 0 0 ".concat(ot," ").concat(Ht),"translate(".concat(xt-S._label.marginx,", ").concat(xt-S._label.marginy,")")),io(yt,Ht,ot,p.useMaxWidth),yt.attr("viewBox","0 0 ".concat(ot," ").concat(Ht)),yt.select("g").attr("transform","translate(".concat(xt-S._label.marginx,", ").concat(xt-mt.y,")")),ar.indexNodes("subGraph"+U),!p.htmlLabels)for(var Dt=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),ft=0;ft<Dt.length;ft++){var Nt=Dt[ft],Kt=Nt.getBBox(),St=document.createElementNS("http://www.w3.org/2000/svg","rect");St.setAttribute("rx",0),St.setAttribute("ry",0),St.setAttribute("width",Kt.width),St.setAttribute("height",Kt.height),Nt.insertBefore(St,Nt.firstChild)}Object.keys(j).forEach(function(wt){var jt=j[wt];if(jt.link){var Ct=Se("#"+e+' [id="'+wt+'"]');if(Ct){var Jt=document.createElementNS("http://www.w3.org/2000/svg","a");Jt.setAttributeNS("http://www.w3.org/2000/svg","class",jt.classes.join(" ")),Jt.setAttributeNS("http://www.w3.org/2000/svg","href",jt.link),Jt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),jt.linkTarget&&Jt.setAttributeNS("http://www.w3.org/2000/svg","target",jt.linkTarget);var pt=Ct.insert(function(){return Jt},":first-child"),le=Ct.select(".label-container");le&&pt.append(function(){return le.node()});var ve=Ct.select(".label");ve&&pt.append(function(){return ve.node()})}}})};function F0(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 E2,P0,ws="",S2="",C2="",Kf=[],Rc=[],M2="",Y0=[],sh=[],Fc="",j0=["active","done","crit","milestone"],ch=[],uh=!1,A2=!1,D2=0,V3=function(t,e,r,o){return!(o.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&r.indexOf("weekends")>=0||r.indexOf(t.format("dddd").toLowerCase())>=0||r.indexOf(t.format(e.trim()))>=0)},N2=function(t,e,r,o){if(r.length&&!t.manualEndTime){var d=l()(t.startTime,e,!0);d.add(1,"d");var p=l()(t.endTime,e,!0),m=G3(d,p,e,r,o);t.endTime=p.toDate(),t.renderEndTime=m}},G3=function(t,e,r,o,d){for(var p=!1,m=null;t<=e;)p||(m=e.toDate()),(p=V3(t,r,o,d))&&e.add(1,"d"),t.add(1,"d");return m},td=function(t,e,r){r=r.trim();var o=/^after\s+([\d\w- ]+)/.exec(r.trim());if(o!==null){var d=null;if(o[1].split(" ").forEach(function(b){var S=hh(b);S!==void 0&&(d?S.endTime>d.endTime&&(d=S):d=S)}),d)return d.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)},lh=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()},O2=function(t,e,r,o){o=o||!1,r=r.trim();var d=l()(r,e.trim(),!0);return d.isValid()?(o&&d.add(1,"d"),d.toDate()):lh(/^([\d]+)([wdhms])/.exec(r.trim()),l()(t))},B2=0,ks=function(t){return t===void 0?"task"+(B2+=1):t},vi=[],X3={},hh=function(t){var e=X3[t];return vi[e]},U0=function(){for(var t=function(o){var d=vi[o],p="";switch(vi[o].raw.startTime.type){case"prevTaskEnd":var m=hh(d.prevTaskId);d.startTime=m.endTime;break;case"getStartDate":(p=td(0,ws,vi[o].raw.startTime.startData))&&(vi[o].startTime=p)}return vi[o].startTime&&(vi[o].endTime=O2(vi[o].startTime,ws,vi[o].raw.endTime.data,uh),vi[o].endTime&&(vi[o].processed=!0,vi[o].manualEndTime=l()(vi[o].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),N2(vi[o],ws,Rc,Kf))),vi[o].processed},e=!0,r=0;r<vi.length;r++)t(r),e=e&&vi[r].processed;return e},Z3=function(t,e){t.split(",").forEach(function(r){var o=hh(r);o!==void 0&&o.classes.push(e)})},Q3=function(t,e){ch.push(function(){var r=document.querySelector('[id="'.concat(t,'"]'));r!==null&&r.addEventListener("click",function(){e()})}),ch.push(function(){var r=document.querySelector('[id="'.concat(t,'-text"]'));r!==null&&r.addEventListener("click",function(){e()})})};const ed={parseDirective:function(t,e,r){ca.parseDirective(this,t,e,r)},getConfig:function(){return ie().gantt},clear:function(){Y0=[],sh=[],Fc="",ch=[],M2="",B2=0,E2=void 0,P0=void 0,vi=[],ws="",S2="",C2="",Kf=[],Rc=[],uh=!1,A2=!1,D2=0},setDateFormat:function(t){ws=t},getDateFormat:function(){return ws},enableInclusiveEndDates:function(){uh=!0},endDatesAreInclusive:function(){return uh},enableTopAxis:function(){A2=!0},topAxisEnabled:function(){return A2},setAxisFormat:function(t){S2=t},getAxisFormat:function(){return S2},setTodayMarker:function(t){C2=t},getTodayMarker:function(){return C2},setTitle:function(t){M2=t},getTitle:function(){return M2},addSection:function(t){Fc=t,Y0.push(t)},getSections:function(){return Y0},getTasks:function(){for(var t=U0(),e=0;!t&&e<10;)t=U0(),e++;return sh=vi},addTask:function(t,e){var r={section:Fc,type:Fc,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={};J3(b,S,j0);for(var T=0;T<b.length;T++)b[T]=b[T].trim();switch(b.length){case 1:S.id=ks(),S.startTime={type:"prevTaskEnd",id:p},S.endTime={data:b[0]};break;case 2:S.id=ks(),S.startTime={type:"getStartDate",startData:b[0]},S.endTime={data:b[1]};break;case 3:S.id=ks(b[0]),S.startTime={type:"getStartDate",startData:b[1]},S.endTime={data:b[2]}}return S}(P0,e);r.raw.startTime=o.startTime,r.raw.endTime=o.endTime,r.id=o.id,r.prevTaskId=P0,r.active=o.active,r.done=o.done,r.crit=o.crit,r.milestone=o.milestone,r.order=D2,D2++;var d=vi.push(r);P0=r.id,X3[r.id]=d-1},findTaskById:hh,addTaskOrg:function(t,e){var r={section:Fc,type:Fc,description:t,task:t,classes:[]},o=function(d,p){var m=(p.substr(0,1)===":"?p.substr(1,p.length):p).split(","),b={};J3(m,b,j0);for(var S=0;S<m.length;S++)m[S]=m[S].trim();var T="";switch(m.length){case 1:b.id=ks(),b.startTime=d.endTime,T=m[0];break;case 2:b.id=ks(),b.startTime=td(0,ws,m[0]),T=m[1];break;case 3:b.id=ks(m[0]),b.startTime=td(0,ws,m[1]),T=m[2]}return T&&(b.endTime=O2(b.startTime,ws,T,uh),b.manualEndTime=l()(T,"YYYY-MM-DD",!0).isValid(),N2(b,ws,Rc,Kf)),b}(E2,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,E2=r,sh.push(r)},setIncludes:function(t){Kf=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return Kf},setExcludes:function(t){Rc=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Rc},setClickEvent:function(t,e,r){t.split(",").forEach(function(o){(function(d,p,m){if(ie().securityLevel==="loose"&&p!==void 0){var b=[];if(typeof m=="string"){b=m.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var S=0;S<b.length;S++){var T=b[S].trim();T.charAt(0)==='"'&&T.charAt(T.length-1)==='"'&&(T=T.substr(1,T.length-2)),b[S]=T}}b.length===0&&b.push(d),hh(d)!==void 0&&Q3(d,function(){var O;Jn.runFunc.apply(Jn,[p].concat(function(j){if(Array.isArray(j))return F0(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 F0(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)?F0(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)}),Z3(t,"clickable")},setLink:function(t,e){var r=e;ie().securityLevel!=="loose"&&(r=(0,Py.sanitizeUrl)(e)),t.split(",").forEach(function(o){hh(o)!==void 0&&Q3(o,function(){window.open(r,"_self")})}),Z3(t,"clickable")},bindFunctions:function(t){ch.forEach(function(e){e(t)})},durationToDate:lh,isInvalidDate:V3};function J3(t,e,r){for(var o=!0;o;)o=!1,r.forEach(function(d){var p=new RegExp("^\\s*"+d+"\\s*$");t[0].match(p)&&(e[d]=!0,t.shift(1),o=!0)})}var Pc,_o=s(9959),L2=s.n(_o);_o.parser.yy=ed;const K3=function(t,e){var r=ie().gantt;_o.parser.yy.clear(),_o.parser.parse(t);var o=document.getElementById(e);(Pc=o.parentElement.offsetWidth)===void 0&&(Pc=1200),r.useWidth!==void 0&&(Pc=r.useWidth);var d=_o.parser.yy.getTasks(),p=d.length*(r.barHeight+r.barGap)+2*r.topPadding;o.setAttribute("viewBox","0 0 "+Pc+" "+p);for(var m=Se('[id="'.concat(e,'"]')),b=function(){return Bs.apply(uv(Ym,w4,Fs,eg,Gd,pl,Vd,Yh,dl,jm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([I(d,function(j){return j.startTime}),A(d,function(j){return j.endTime})]).rangeRound([0,Pc-r.leftPadding-r.rightPadding]),S=[],T=0;T<d.length;T++)S.push(d[T].type);var O=S;S=function(j){for(var F={},U=[],it=0,yt=j.length;it<yt;++it)Object.prototype.hasOwnProperty.call(F,j[it])||(F[j[it]]=!0,U.push(j[it]));return U}(S),d.sort(function(j,F){var U=j.startTime,it=F.startTime,yt=0;return U>it?yt=1:U<it&&(yt=-1),yt}),function(j,F,U){var it=r.barHeight,yt=it+r.barGap,vt=r.topPadding,xt=r.leftPadding;Bm().domain([0,S.length]).range(["#00B9FA","#F95002"]).interpolate(l4),function(mt,ot,Ht,Dt,ft,Nt,Kt,St){var wt=Nt.reduce(function(ve,me){var Me=me.startTime;return ve?Math.min(ve,Me):Me},0),jt=Nt.reduce(function(ve,me){var Me=me.endTime;return ve?Math.max(ve,Me):Me},0),Ct=_o.parser.yy.getDateFormat();if(wt&&jt){for(var Jt=[],pt=null,le=l()(wt);le.valueOf()<=jt;)_o.parser.yy.isInvalidDate(le,Ct,Kt,St)?pt?pt.end=le.clone():pt={start:le.clone(),end:le.clone()}:pt&&(Jt.push(pt),pt=null),le.add(1,"d");m.append("g").selectAll("rect").data(Jt).enter().append("rect").attr("id",function(ve){return"exclude-"+ve.start.format("YYYY-MM-DD")}).attr("x",function(ve){return b(ve.start)+Ht}).attr("y",r.gridLineStartPadding).attr("width",function(ve){var me=ve.end.clone().add(1,"day");return b(me)-b(ve.start)}).attr("height",ft-ot-r.gridLineStartPadding).attr("transform-origin",function(ve,me){return(b(ve.start)+Ht+.5*(b(ve.end)-b(ve.start))).toString()+"px "+(me*mt+.5*ft).toString()+"px"}).attr("class","exclude-range")}}(yt,vt,xt,0,U,j,_o.parser.yy.getExcludes(),_o.parser.yy.getIncludes()),function(mt,ot,Ht,Dt){var ft,Nt=(ft=b,ut(3,ft)).tickSize(-Dt+ot+r.gridLineStartPadding).tickFormat(eo(_o.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(m.append("g").attr("class","grid").attr("transform","translate("+mt+", "+(Dt-50)+")").call(Nt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),ed.topAxisEnabled()||r.topAxis){var Kt=function(St){return ut(1,St)}(b).tickSize(-Dt+ot+r.gridLineStartPadding).tickFormat(eo(_o.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));m.append("g").attr("class","grid").attr("transform","translate("+mt+", "+ot+")").call(Kt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(xt,vt,0,U),function(mt,ot,Ht,Dt,ft,Nt,Kt){m.append("g").selectAll("rect").data(mt).enter().append("rect").attr("x",0).attr("y",function(wt,jt){return wt.order*ot+Ht-2}).attr("width",function(){return Kt-r.rightPadding/2}).attr("height",ot).attr("class",function(wt){for(var jt=0;jt<S.length;jt++)if(wt.type===S[jt])return"section section"+jt%r.numberSectionStyles;return"section section0"});var St=m.append("g").selectAll("rect").data(mt).enter();St.append("rect").attr("id",function(wt){return wt.id}).attr("rx",3).attr("ry",3).attr("x",function(wt){return wt.milestone?b(wt.startTime)+Dt+.5*(b(wt.endTime)-b(wt.startTime))-.5*ft:b(wt.startTime)+Dt}).attr("y",function(wt,jt){return wt.order*ot+Ht}).attr("width",function(wt){return wt.milestone?ft:b(wt.renderEndTime||wt.endTime)-b(wt.startTime)}).attr("height",ft).attr("transform-origin",function(wt,jt){return jt=wt.order,(b(wt.startTime)+Dt+.5*(b(wt.endTime)-b(wt.startTime))).toString()+"px "+(jt*ot+Ht+.5*ft).toString()+"px"}).attr("class",function(wt){var jt="";wt.classes.length>0&&(jt=wt.classes.join(" "));for(var Ct=0,Jt=0;Jt<S.length;Jt++)wt.type===S[Jt]&&(Ct=Jt%r.numberSectionStyles);var pt="";return wt.active?wt.crit?pt+=" activeCrit":pt=" active":wt.done?pt=wt.crit?" doneCrit":" done":wt.crit&&(pt+=" crit"),pt.length===0&&(pt=" task"),wt.milestone&&(pt=" milestone "+pt),"task"+(pt+=Ct)+" "+jt}),St.append("text").attr("id",function(wt){return wt.id+"-text"}).text(function(wt){return wt.task}).attr("font-size",r.fontSize).attr("x",function(wt){var jt=b(wt.startTime),Ct=b(wt.renderEndTime||wt.endTime);wt.milestone&&(jt+=.5*(b(wt.endTime)-b(wt.startTime))-.5*ft),wt.milestone&&(Ct=jt+ft);var Jt=this.getBBox().width;return Jt>Ct-jt?Ct+Jt+1.5*r.leftPadding>Kt?jt+Dt-5:Ct+Dt+5:(Ct-jt)/2+jt+Dt}).attr("y",function(wt,jt){return wt.order*ot+r.barHeight/2+(r.fontSize/2-2)+Ht}).attr("text-height",ft).attr("class",function(wt){var jt=b(wt.startTime),Ct=b(wt.endTime);wt.milestone&&(Ct=jt+ft);var Jt=this.getBBox().width,pt="";wt.classes.length>0&&(pt=wt.classes.join(" "));for(var le=0,ve=0;ve<S.length;ve++)wt.type===S[ve]&&(le=ve%r.numberSectionStyles);var me="";return wt.active&&(me=wt.crit?"activeCritText"+le:"activeText"+le),wt.done?me=wt.crit?me+" doneCritText"+le:me+" doneText"+le:wt.crit&&(me=me+" critText"+le),wt.milestone&&(me+=" milestoneText"),Jt>Ct-jt?Ct+Jt+1.5*r.leftPadding>Kt?pt+" taskTextOutsideLeft taskTextOutside"+le+" "+me:pt+" taskTextOutsideRight taskTextOutside"+le+" "+me+" width-"+Jt:pt+" taskText taskText"+le+" "+me+" width-"+Jt})}(j,yt,vt,xt,it,0,F),function(mt,ot){for(var Ht=[],Dt=0,ft=0;ft<S.length;ft++)Ht[ft]=[S[ft],(Nt=S[ft],Kt=O,function(St){for(var wt=St.length,jt={};wt;)jt[St[--wt]]=(jt[St[wt]]||0)+1;return jt}(Kt)[Nt]||0)];var Nt,Kt;m.append("g").selectAll("text").data(Ht).enter().append(function(St){var wt=St[0].split(Cr.lineBreakRegex),jt=-(wt.length-1)/2,Ct=document.createElementNS("http://www.w3.org/2000/svg","text");Ct.setAttribute("dy",jt+"em");for(var Jt=0;Jt<wt.length;Jt++){var pt=document.createElementNS("http://www.w3.org/2000/svg","tspan");pt.setAttribute("alignment-baseline","central"),pt.setAttribute("x","10"),Jt>0&&pt.setAttribute("dy","1em"),pt.textContent=wt[Jt],Ct.appendChild(pt)}return Ct}).attr("x",10).attr("y",function(St,wt){if(!(wt>0))return St[1]*mt/2+ot;for(var jt=0;jt<wt;jt++)return Dt+=Ht[wt-1][1],St[1]*mt/2+Dt*mt+ot}).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",function(St){for(var wt=0;wt<S.length;wt++)if(St[0]===S[wt])return"sectionTitle sectionTitle"+wt%r.numberSectionStyles;return"sectionTitle"})}(yt,vt),function(mt,ot,Ht,Dt){var ft=ed.getTodayMarker();if(ft!=="off"){var Nt=m.append("g").attr("class","today"),Kt=new Date,St=Nt.append("line");St.attr("x1",b(Kt)+mt).attr("x2",b(Kt)+mt).attr("y1",r.titleTopMargin).attr("y2",Dt-r.titleTopMargin).attr("class","today"),ft!==""&&St.attr("style",ft.replace(/,/g,";"))}}(xt,0,0,U)}(d,Pc,p),io(m,p,Pc,r.useMaxWidth),m.append("text").text(_o.parser.yy.getTitle()).attr("x",Pc/2).attr("y",r.titleTopMargin).attr("class","titleText")};var Ci={},Da=null,Oi={master:Da},Xo="master",tb="LR",I2=0;function R2(){return $y({length:7})}function nd(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),nd(t,Ci[e.parent[0]])||nd(t,Ci[e.parent[1]]);e=Ci[e.parent]}return y.debug(t.id,e.id),t.id===e.id}var z0={};function F2(t,e,r){var o=t.indexOf(e);o===-1?t.push(r):t.splice(o,1,r)}function oo(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,d,p,m=[r,e.id,e.seq];for(var b in Oi)Oi[b]===e.id&&m.push(b);if(y.debug(m.join(" ")),Array.isArray(e.parent)){var S=Ci[e.parent[0]];F2(t,e,S),t.push(Ci[e.parent[1]])}else{if(e.parent==null)return;var T=Ci[e.parent];F2(t,e,T)}o=t,d=function(O){return O.id},p=Object.create(null),oo(t=o.reduce(function(O,j){var F=d(j);return p[F]||(p[F]=!0,O.push(j)),O},[]))}var so=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 Yc={setDirection:function(t){tb=t},setOptions:function(t){y.debug("options str",t),t=(t=t&&t.trim())||"{}";try{z0=JSON.parse(t)}catch(e){y.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return z0},commit:function(t){var e={id:R2(),message:t,seq:I2++,parent:Da==null?null:Da.id};Da=e,Ci[e.id]=e,Oi[Xo]=e.id,y.debug("in pushCommit "+e.id)},branch:function(t){Oi[t]=Da!=null?Da.id:null,y.debug("in createBranch")},merge:function(t){var e=Ci[Oi[Xo]],r=Ci[Oi[t]];if(function(d,p){return d.seq>p.seq&&nd(p,d)}(e,r))y.debug("Already merged");else{if(nd(e,r))Oi[Xo]=Oi[t],Da=Ci[Oi[Xo]];else{var o={id:R2(),message:"merged branch "+t+" into "+Xo,seq:I2++,parent:[Da==null?null:Da.id,Oi[t]]};Da=o,Ci[o.id]=o,Oi[Xo]=o.id}y.debug(Oi),y.debug("in mergeBranch")}},checkout:function(t){y.debug("in checkout");var e=Oi[Xo=t];Da=Ci[e]},reset:function(t){y.debug("in reset",t);var e=t.split(":")[0],r=parseInt(t.split(":")[1]),o=e==="HEAD"?Da:Ci[Oi[e]];for(y.debug(o,r);r>0;)if(r--,!(o=Ci[o.parent])){var d="Critical error - unique parent commit not found during reset";throw y.error(d),d}Da=o,Oi[Xo]=o.id},prettyPrint:function(){y.debug(Ci),oo([so()[0]])},clear:function(){Ci={},Oi={master:Da=null},Xo="master",I2=0},getBranchesAsObjArray:function(){var t=[];for(var e in Oi)t.push({name:e,commit:Ci[Oi[e]]});return t},getBranches:function(){return Oi},getCommits:function(){return Ci},getCommitsArray:so,getCurrentBranch:function(){return Xo},getDirection:function(){return tb},getHead:function(){return Da}};var fh,eb=s(2553),nb=s.n(eb),jc={},Fn={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}},rd={};function Js(t,e,r,o){var d=Ho(o,Yr),p=Fn.branchColors[r%Fn.branchColors.length],m=yo().x(function(b){return Math.round(b.x)}).y(function(b){return Math.round(b.y)}).curve(d);t.append("svg:path").attr("d",m(e)).style("stroke",p).style("stroke-width",Fn.lineStrokeWidth).style("fill","none")}function rb(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,d){y.debug("svgDrawLineForCommits: ",e,r);var p=rb(t.select("#node-"+e+" circle")),m=rb(t.select("#node-"+r+" circle"));switch(o){case"LR":if(p.left-m.left>Fn.nodeSpacing){var b={x:p.left-Fn.nodeSpacing,y:m.top+m.height/2};Js(t,[b,{x:m.left+m.width,y:m.top+m.height/2}],d,"linear"),Js(t,[{x:p.left,y:p.top+p.height/2},{x:p.left-Fn.nodeSpacing/2,y:p.top+p.height/2},{x:p.left-Fn.nodeSpacing/2,y:b.y},b],d)}else Js(t,[{x:p.left,y:p.top+p.height/2},{x:p.left-Fn.nodeSpacing/2,y:p.top+p.height/2},{x:p.left-Fn.nodeSpacing/2,y:m.top+m.height/2},{x:m.left+m.width,y:m.top+m.height/2}],d);break;case"BT":if(m.top-p.top>Fn.nodeSpacing){var S={x:m.left+m.width/2,y:p.top+p.height+Fn.nodeSpacing};Js(t,[S,{x:m.left+m.width/2,y:m.top}],d,"linear"),Js(t,[{x:p.left+p.width/2,y:p.top+p.height},{x:p.left+p.width/2,y:p.top+p.height+Fn.nodeSpacing/2},{x:m.left+m.width/2,y:S.y-Fn.nodeSpacing/2},S],d)}else Js(t,[{x:p.left+p.width/2,y:p.top+p.height},{x:p.left+p.width/2,y:p.top+Fn.nodeSpacing/2},{x:m.left+m.width/2,y:m.top-Fn.nodeSpacing/2},{x:m.left+m.width/2,y:m.top}],d)}}function ox(t,e){return t.select(e).node().cloneNode(!0)}function H0(t,e,r,o){var d,p=Object.keys(jc).length;if(typeof e=="string")do{if(d=jc[e],y.debug("in renderCommitHistory",d.id,d.seq),t.select("#node-"+e).size()>0)return;t.append(function(){return ox(t,"#def-commit")}).attr("class","commit").attr("id",function(){return"node-"+d.id}).attr("transform",function(){switch(o){case"LR":return"translate("+(d.seq*Fn.nodeSpacing+Fn.leftMargin)+", "+fh*Fn.branchOffset+")";case"BT":return"translate("+(fh*Fn.branchOffset+Fn.leftMargin)+", "+(p-d.seq)*Fn.nodeSpacing+")"}}).attr("fill",Fn.nodeFillColor).attr("stroke",Fn.nodeStrokeColor).attr("stroke-width",Fn.nodeStrokeWidth);var m=void 0;for(var b in r)if(r[b].commit===d){m=r[b];break}m&&(y.debug("found branch ",m.name),t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","branch-label").text(m.name+", ")),t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","commit-id").text(d.id),d.message!==""&&o==="BT"&&t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+d.message),e=d.parent}while(e&&jc[e]);Array.isArray(e)&&(y.debug("found merge commmit",e),H0(t,e[0],r,o),fh++,H0(t,e[1],r,o),fh--)}function ib(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=jc[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),ib(t,jc[e.parent[1]],r,o+1),e.lineDrawn=!0,e=jc[e.parent[0]])}const P2=function(t){rd=t};var ab="",id=!1;const q0={setMessage:function(t){y.debug("Setting message to: "+t),ab=t},getMessage:function(){return ab},setInfo:function(t){id=t},getInfo:function(){return id}};var sx=s(6765),$0=s.n(sx),cx={};const V0=function(t){Object.keys(t).forEach(function(e){cx[e]=t[e]})};var ux=s(7062),G0=s.n(ux),ad={},Y2="",X0=!1;const j2={parseDirective:function(t,e,r){ca.parseDirective(this,t,e,r)},getConfig:function(){return ie().pie},addSection:function(t,e){ad[t]===void 0&&(ad[t]=e,y.debug("Added new section :",t))},getSections:function(){return ad},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){ad={},Y2="",X0=!1},setTitle:function(t){Y2=t},getTitle:function(){return Y2},setShowData:function(t){X0=t},getShowData:function(){return X0}};var Ks,tc=ie();const ob=function(t,e){try{tc=ie();var r=G0().parser;r.yy=j2,y.debug(`Rendering info diagram
`+t),r.yy.clear(),r.parse(t),y.debug("Parsed info diagram");var o=document.getElementById(e);(Ks=o.parentElement.offsetWidth)===void 0&&(Ks=1200),tc.useWidth!==void 0&&(Ks=tc.useWidth),tc.pie.useWidth!==void 0&&(Ks=tc.pie.useWidth);var d=Se("#"+e);io(d,450,Ks,tc.pie.useMaxWidth),o.setAttribute("viewBox","0 0 "+Ks+" 450");var p=Math.min(Ks,450)/2-40,m=d.append("g").attr("transform","translate("+Ks/2+",225)"),b=j2.getSections(),S=0;Object.keys(b).forEach(function(vt){S+=b[vt]});var T=tc.themeVariables,O=[T.pie1,T.pie2,T.pie3,T.pie4,T.pie5,T.pie6,T.pie7,T.pie8,T.pie9,T.pie10,T.pie11,T.pie12],j=fc().range(O),F=function(){var vt=Tl,xt=u1,mt=null,ot=xr(0),Ht=xr(Qh),Dt=xr(0);function ft(Nt){var Kt,St,wt,jt,Ct,Jt=(Nt=Av(Nt)).length,pt=0,le=new Array(Jt),ve=new Array(Jt),me=+ot.apply(this,arguments),Me=Math.min(Qh,Math.max(-Qh,Ht.apply(this,arguments)-me)),He=Math.min(Math.abs(Me)/Jt,Dt.apply(this,arguments)),ze=He*(Me<0?-1:1);for(Kt=0;Kt<Jt;++Kt)(Ct=ve[le[Kt]=Kt]=+vt(Nt[Kt],Kt,Nt))>0&&(pt+=Ct);for(xt!=null?le.sort(function(fn,Ae){return xt(ve[fn],ve[Ae])}):mt!=null&&le.sort(function(fn,Ae){return mt(Nt[fn],Nt[Ae])}),Kt=0,wt=pt?(Me-Jt*ze)/pt:0;Kt<Jt;++Kt,me=jt)St=le[Kt],jt=me+((Ct=ve[St])>0?Ct*wt:0)+ze,ve[St]={data:Nt[St],index:Kt,value:Ct,startAngle:me,endAngle:jt,padAngle:He};return ve}return ft.value=function(Nt){return arguments.length?(vt=typeof Nt=="function"?Nt:xr(+Nt),ft):vt},ft.sortValues=function(Nt){return arguments.length?(xt=Nt,mt=null,ft):xt},ft.sort=function(Nt){return arguments.length?(mt=Nt,xt=null,ft):mt},ft.startAngle=function(Nt){return arguments.length?(ot=typeof Nt=="function"?Nt:xr(+Nt),ft):ot},ft.endAngle=function(Nt){return arguments.length?(Ht=typeof Nt=="function"?Nt:xr(+Nt),ft):Ht},ft.padAngle=function(Nt){return arguments.length?(Dt=typeof Nt=="function"?Nt:xr(+Nt),ft):Dt},ft}().value(function(vt){return vt[1]}),U=F(Object.entries(b)),it=Tg().innerRadius(0).outerRadius(p);m.selectAll("mySlices").data(U).enter().append("path").attr("d",it).attr("fill",function(vt){return j(vt.data[0])}).attr("class","pieCircle"),m.selectAll("mySlices").data(U).enter().append("text").text(function(vt){return(vt.data[1]/S*100).toFixed(0)+"%"}).attr("transform",function(vt){return"translate("+it.centroid(vt)+")"}).style("text-anchor","middle").attr("class","slice"),m.append("text").text(r.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var yt=m.selectAll(".legend").data(j.domain()).enter().append("g").attr("class","legend").attr("transform",function(vt,xt){return"translate(216,"+(22*xt-22*j.domain().length/2)+")"});yt.append("rect").attr("width",18).attr("height",18).style("fill",j).style("stroke",j),yt.data(U).append("text").attr("x",22).attr("y",14).text(function(vt){return r.yy.getShowData()||tc.showData||tc.pie.showData?vt.data[0]+" ["+vt.data[1]+"]":vt.data[0]})}catch(vt){y.error("Error while rendering info diagram"),y.error(vt)}};var Z0=s(3176),sb=s.n(Z0),Q0=[],Na={},Pu={},Zo={},dh={};const Yu={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){ca.parseDirective(this,t,e,r)},getConfig:function(){return ie().req},addRequirement:function(t,e){return Pu[t]===void 0&&(Pu[t]={name:t,type:e,id:Na.id,text:Na.text,risk:Na.risk,verifyMethod:Na.verifyMethod}),Na={},Pu[t]},getRequirements:function(){return Pu},setNewReqId:function(t){Na!==void 0&&(Na.id=t)},setNewReqText:function(t){Na!==void 0&&(Na.text=t)},setNewReqRisk:function(t){Na!==void 0&&(Na.risk=t)},setNewReqVerifyMethod:function(t){Na!==void 0&&(Na.verifyMethod=t)},addElement:function(t){return dh[t]===void 0&&(dh[t]={name:t,type:Zo.type,docRef:Zo.docRef},y.info("Added new requirement: ",t)),Zo={},dh[t]},getElements:function(){return dh},setNewElementType:function(t){Zo!==void 0&&(Zo.type=t)},setNewElementDocRef:function(t){Zo!==void 0&&(Zo.docRef=t)},addRelationship:function(t,e,r){Q0.push({type:t,src:e,dst:r})},getRelationships:function(){return Q0},clear:function(){Q0=[],Na={},Pu={},Zo={},dh={}}};var U2={CONTAINS:"contains",ARROW:"arrow"};const lx=U2;var Mi={},z2=0,cb=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Mi.rect_min_width+"px").attr("height",Mi.rect_min_height+"px")},od=function(t,e,r){var o=Mi.rect_min_width/2,d=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",o).attr("y",Mi.rect_padding).attr("dominant-baseline","hanging"),p=0;r.forEach(function(b){p==0?d.append("tspan").attr("text-anchor","middle").attr("x",Mi.rect_min_width/2).attr("dy",0).text(b):d.append("tspan").attr("text-anchor","middle").attr("x",Mi.rect_min_width/2).attr("dy",.75*Mi.line_height).text(b),p++});var m=1.5*Mi.rect_padding+p*Mi.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Mi.rect_min_width).attr("y1",m).attr("y2",m),{titleNode:d,y:m}},ub=function(t,e,r,o){var d=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",Mi.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 T=b.substring(0,30);S=(b=b.substring(30,b.length)).length,m[m.length]=T,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){d.append("tspan").attr("x",Mi.rect_padding).attr("dy",Mi.line_height).text(b)}),d},ph=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const lb=function(t){if(t!==void 0)for(var e=Object.keys(t),r=0;r<e.length;r++)Mi[e[r]]=t[e[r]]},gh=function(t,e){Z0.parser.yy=Yu,Z0.parser.yy.clear(),Z0.parser.parse(t);var r=Se("[id='".concat(e,"']"));(function(j,F){var U=j.append("defs").append("marker").attr("id",U2.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",U2.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,Mi);var o=new(Si()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Mi.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),d=Yu.getRequirements(),p=Yu.getElements(),m=Yu.getRelationships();(function(j,F,U){Object.keys(j).forEach(function(it){var yt=j[it];it=ph(it),y.info("Added new requirement: ",it);var vt=U.append("g").attr("id",it),xt=cb(vt,"req-"+it),mt=od(vt,it+"_title",["<<".concat(yt.type,">>"),"".concat(yt.name)]);ub(vt,it+"_body",["Id: ".concat(yt.id),"Text: ".concat(yt.text),"Risk: ".concat(yt.risk),"Verification: ".concat(yt.verifyMethod)],mt.y);var ot=xt.node().getBBox();F.setNode(it,{width:ot.width,height:ot.height,shape:"rect",id:it})})})(d,o,r),function(j,F,U){Object.keys(j).forEach(function(it){var yt=j[it],vt=ph(it),xt=U.append("g").attr("id",vt),mt="element-"+vt,ot=cb(xt,mt),Ht=od(xt,mt+"_title",["<<Element>>","".concat(it)]);ub(xt,mt+"_body",["Type: ".concat(yt.type||"Not Specified"),"Doc Ref: ".concat(yt.docRef||"None")],Ht.y);var Dt=ot.node().getBBox();F.setNode(vt,{width:Dt.width,height:Dt.height,shape:"rect",id:vt})})}(p,o,r),function(j,F){j.forEach(function(U){var it=ph(U.src),yt=ph(U.dst);F.setEdge(it,yt,{relationship:U})})}(m,o),Hf().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,it,yt){var vt=it.edge(ph(U.src),ph(U.dst)),xt=yo().x(function(ot){return ot.x}).y(function(ot){return ot.y}),mt=F.insert("path","#"+yt).attr("class","er relationshipLine").attr("d",xt(vt.points)).attr("fill","none");U.type==Yu.Relationships.CONTAINS?mt.attr("marker-start","url("+Cr.getUrl(Mi.arrowMarkerAbsolute)+"#"+U.type+"_line_ending)"):(mt.attr("stroke-dasharray","10,7"),mt.attr("marker-end","url("+Cr.getUrl(Mi.arrowMarkerAbsolute)+"#"+lx.ARROW+"_line_ending)")),function(ot,Ht,Dt,ft){var Nt=Ht.node().getTotalLength(),Kt=Ht.node().getPointAtLength(.5*Nt),St="rel"+z2;z2++;var wt=ot.append("text").attr("class","req relationshipLabel").attr("id",St).attr("x",Kt.x).attr("y",Kt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(ft).node().getBBox();ot.insert("rect","#"+St).attr("class","req reqLabelBox").attr("x",Kt.x-wt.width/2).attr("y",Kt.y-wt.height/2).attr("width",wt.width).attr("height",wt.height).attr("fill","white").attr("fill-opacity","85%")}(F,mt,0,"<<".concat(U.type,">>"))})(r,j,o,e)});var b=Mi.rect_padding,S=r.node().getBBox(),T=S.width+2*b,O=S.height+2*b;io(r,O,T,Mi.useMaxWidth),r.attr("viewBox","".concat(S.x-b," ").concat(S.y-b," ").concat(T," ").concat(O))};var Qe=s(6876),hx=s.n(Qe),sd=void 0,Uc={},Ts=[],hb="",fb=!1,W2=!1,db=!1,J0=function(t,e,r,o){var d=Uc[t];d&&e===d.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&&ju()||!!r.wrap,prevActor:sd,links:{},properties:{},actorCnt:null,rectData:null,type:o||"participant"},sd&&Uc[sd]&&(Uc[sd].nextActor=t),sd=t)},pb=function(t){var e,r=0;for(e=0;e<Ts.length;e++)Ts[e].type===yh.ACTIVE_START&&Ts[e].from.actor===t&&r++,Ts[e].type===yh.ACTIVE_END&&Ts[e].from.actor===t&&r--;return r},ec=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===yh.ACTIVE_END){var d=pb(t.actor);if(d<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 Ts.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&ju()||!!r.wrap,type:o}),!0},cd=function(t){return Uc[t]},ju=function(){return db},yh={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},gb=function(t,e,r){r.text,r.wrap===void 0&&ju()||r.wrap;var o=[].concat(t,t);Ts.push({from:o[0],to:o[1],message:r.text,wrap:r.wrap===void 0&&ju()||!!r.wrap,type:yh.NOTE,placement:e})},yb=function(t,e){var r=cd(t);try{var o=Su(e.text,ie());o=(o=o.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),H2(r,JSON.parse(o))}catch(d){y.error("error while parsing actor link text",d)}};function H2(t,e){if(t.links==null)t.links=e;else for(var r in e)t.links[r]=e[r]}var mb=function(t,e){var r=cd(t);try{var o=Su(e.text,ie());vb(r,JSON.parse(o))}catch(d){y.error("error while parsing actor properties text",d)}};function vb(t,e){if(t.properties==null)t.properties=e;else for(var r in e)t.properties[r]=e[r]}var q2=function(t,e){var r=cd(t),o=document.getElementById(e.text);try{var d=o.innerHTML,p=JSON.parse(d);p.properties&&vb(r,p.properties),p.links&&H2(r,p.links)}catch(m){y.error("error while parsing actor details text",m)}},_b=function(t){hb=t.text,fb=t.wrap===void 0&&ju()||!!t.wrap};const $2={addActor:J0,addMessage:function(t,e,r,o){Ts.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&ju()||!!r.wrap,answer:o})},addSignal:ec,addLinks:yb,addDetails:q2,addProperties:mb,autoWrap:ju,setWrap:function(t){db=t},enableSequenceNumbers:function(){W2=!0},showSequenceNumbers:function(){return W2},getMessages:function(){return Ts},getActors:function(){return Uc},getActor:cd,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 hb},parseDirective:function(t,e,r){ca.parseDirective(this,t,e,r)},getConfig:function(){return ie().sequence},getTitleWrapped:function(){return fb},clear:function(){Uc={},Ts=[]},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:yh,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:gb,setTitle:_b,apply:function t(e){if(e instanceof Array)e.forEach(function(r){t(r)});else switch(e.type){case"addParticipant":J0(e.actor,e.actor,e.description,"participant");break;case"addActor":J0(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":ec(e.actor,void 0,void 0,e.signalType);break;case"addNote":gb(e.actor,e.placement,e.text);break;case"addLinks":yb(e.actor,e.text);break;case"addALink":(function(r,o){var d=cd(r);try{var p={},m=Su(o.text,ie()),b=m.indexOf("@"),S=(m=(m=m.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,b-1).trim(),T=m.slice(b+1).trim();p[S]=T,H2(d,p)}catch(O){y.error("error while parsing actor link text",O)}})(e.actor,e.text);break;case"addProperties":mb(e.actor,e.text);break;case"addDetails":q2(e.actor,e.text);break;case"addMessage":ec(e.from,e.to,e.msg,e.signalType);break;case"loopStart":ec(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":ec(void 0,void 0,void 0,e.signalType);break;case"rectStart":ec(void 0,void 0,e.color,e.signalType);break;case"optStart":ec(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":ec(void 0,void 0,e.altText,e.signalType);break;case"setTitle":_b(e.text);break;case"parStart":case"and":ec(void 0,void 0,e.parText,e.signalType)}}};var ud=[],Uu=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},zu=function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/javascript:/g,"")},mh=function(t,e){var r;r=function(){var o=document.querySelectorAll(t);o[0].addEventListener("mouseover",function(){ld("actor"+e+"_popup")}),o[0].addEventListener("mouseout",function(){hd("actor"+e+"_popup")})},ud.push(r)},bb=function(t,e,r,o){var d=t.append("image");d.attr("x",e),d.attr("y",r);var p=zu(o);d.attr("xlink:href",p)},xb=function(t,e,r,o){var d=t.append("use");d.attr("x",e),d.attr("y",r);var p=zu(o);d.attr("xlink:href","#"+p)},ld=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},hd=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},zc=function(t,e){var r=0,o=0,d=e.text.split(Cr.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<d.length;S++){var T=d[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(T)}else O.text(T);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},fx=function(t,e){var r=t.append("polygon");return r.attr("points",function(o,d,p,m,b){return o+","+d+" "+(o+p)+","+d+" "+(o+p)+","+(d+m-7)+" "+(o+p-8.4)+","+(d+m)+" "+o+","+(d+m)}(e.x,e.y,e.width,e.height)),r.attr("class","labelBox"),e.y=e.y+e.height/2,zc(t,e),r},Es=-1,dx=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},wb=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}},px=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},K0=function(){function t(d,p,m,b,S,T,O){o(p.append("text").attr("x",m+S/2).attr("y",b+T/2+5).style("text-anchor","middle").text(d),O)}function e(d,p,m,b,S,T,O,j){for(var F=j.actorFontSize,U=j.actorFontFamily,it=j.actorFontWeight,yt=d.split(Cr.lineBreakRegex),vt=0;vt<yt.length;vt++){var xt=vt*F-F*(yt.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",it).style("font-family",U);mt.append("tspan").attr("x",m+S/2).attr("dy",xt).text(yt[vt]),mt.attr("y",b+T/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(mt,O)}}function r(d,p,m,b,S,T,O,j){var F=p.append("switch"),U=F.append("foreignObject").attr("x",m).attr("y",b).attr("width",S).attr("height",T).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(d),e(d,F,m,b,S,T,O,j),o(U,O)}function o(d,p){for(var m in p)p.hasOwnProperty(m)&&d.attr(m,p[m])}return function(d){return d.textPlacement==="fo"?r:d.textPlacement==="old"?t:e}}(),kb=function(){function t(d,p,m,b,S,T,O){o(p.append("text").attr("x",m).attr("y",b).style("text-anchor","start").text(d),O)}function e(d,p,m,b,S,T,O,j){for(var F=j.actorFontSize,U=j.actorFontFamily,it=j.actorFontWeight,yt=d.split(Cr.lineBreakRegex),vt=0;vt<yt.length;vt++){var xt=vt*F-F*(yt.length-1)/2,mt=p.append("text").attr("x",m).attr("y",b).style("text-anchor","start").style("font-size",F).style("font-weight",it).style("font-family",U);mt.append("tspan").attr("x",m).attr("dy",xt).text(yt[vt]),mt.attr("y",b+T/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(mt,O)}}function r(d,p,m,b,S,T,O,j){var F=p.append("switch"),U=F.append("foreignObject").attr("x",m).attr("y",b).attr("width",S).attr("height",T).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(d),e(d,F,m,b,0,T,O,j),o(U,O)}function o(d,p){for(var m in p)p.hasOwnProperty(m)&&d.attr(m,p[m])}return function(d){return d.textPlacement==="fo"?r:d.textPlacement==="old"?t:e}}();const gx=Uu,vh=function(t,e,r){switch(e.type){case"actor":return function(o,d,p){var m=d.x+d.width/2;d.y===0&&(Es++,o.append("line").attr("id","actor"+Es).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=d.x,S.y=d.y,S.fill="#eaeaea",S.width=d.width,S.height=d.height,S.class="actor",S.rx=3,S.ry=3,b.append("line").attr("id","actor-man-torso"+Es).attr("x1",m).attr("y1",d.y+25).attr("x2",m).attr("y2",d.y+45),b.append("line").attr("id","actor-man-arms"+Es).attr("x1",m-18).attr("y1",d.y+33).attr("x2",m+18).attr("y2",d.y+33),b.append("line").attr("x1",m-18).attr("y1",d.y+60).attr("x2",m).attr("y2",d.y+45),b.append("line").attr("x1",m).attr("y1",d.y+45).attr("x2",m+16).attr("y2",d.y+60);var T=b.append("circle");T.attr("cx",d.x+d.width/2),T.attr("cy",d.y+10),T.attr("r",15),T.attr("width",d.width),T.attr("height",d.height);var O=b.node().getBBox();return d.height=O.height,K0(p)(d.description,b,S.x,S.y+35,S.width,S.height,{class:"actor"},p),d.height}(t,e,r);case"participant":return function(o,d,p){var m=d.x+d.width/2,b=o.append("g"),S=b;d.y===0&&(Es++,S.append("line").attr("id","actor"+Es).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"),d.actorCnt=Es,d.links!=null&&(S.attr("id","root-"+Es),mh("#root-"+Es,Es)));var T={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},O="actor";d.properties!=null&&d.properties.class?O=d.properties.class:T.fill="#eaeaea",T.x=d.x,T.y=d.y,T.width=d.width,T.height=d.height,T.class=O,T.rx=3,T.ry=3;var j=Uu(S,T);if(d.rectData=T,d.properties!=null&&d.properties.icon){var F=d.properties.icon.trim();F.charAt(0)==="@"?xb(S,T.x+T.width-20,T.y+10,F.substr(1)):bb(S,T.x+T.width-20,T.y+10,F)}K0(p)(d.description,S,T.x,T.y,T.width,T.height,{class:"actor"},p);var U=d.height;if(j.node){var it=j.node().getBBox();d.height=it.height,U=it.height}return U}(t,e,r)}},_h=function(t,e,r,o,d){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";d&&(S="block !important");var T=t.append("g");T.attr("id","actor"+m+"_popup"),T.attr("class","actorPopupMenu"),T.attr("display",S),mh("#actor"+m+"_popup",m);var O="";b.class!==void 0&&(O=" "+b.class);var j=b.width>r?b.width:r,F=T.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 it in p){var yt=T.append("a"),vt=zu(p[it]);yt.attr("xlink:href",vt),yt.attr("target","_blank"),kb(o)(it,yt,b.x+10,b.height+U,j,20,{class:"actor"},o),U+=30}}return F.attr("height",U),{height:b.height+U,width:j}},Tb=function(t){return t.append("g")},yx=function(t,e,r,o,d){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"+d%3,p.width=e.stopx-e.startx,p.height=r-e.starty,Uu(m,p)},fd=function(t,e,r,o){var d=o.boxMargin,p=o.boxTextMargin,m=o.labelBoxHeight,b=o.labelBoxWidth,S=o.messageFontFamily,T=o.messageFontSize,O=o.messageFontWeight,j=t.append("g"),F=function(yt,vt,xt,mt){return j.append("line").attr("x1",yt).attr("y1",vt).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(yt){F(e.startx,yt.y,e.stopx,yt.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=T,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",fx(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+d+p,U.anchor="middle",U.valign="middle",U.textMargin=p,U.class="loopText",U.fontFamily=S,U.fontSize=T,U.fontWeight=O,U.wrap=!0;var it=zc(j,U);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(yt,vt){if(yt.message){U.text=yt.message,U.x=e.startx+(e.stopx-e.startx)/2,U.y=e.sections[vt].y+d+p,U.class="loopText",U.anchor="middle",U.valign="middle",U.tspan=!1,U.fontFamily=S,U.fontSize=T,U.fontWeight=O,U.wrap=e.wrap,it=zc(j,U);var xt=Math.round(it.map(function(mt){return(mt._groups||mt)[0][0].getBBox().height}).reduce(function(mt,ot){return mt+ot}));e.sections[vt].height+=xt-(d+p)}}),e.height=Math.round(e.stopy-e.starty),j},V2=function(t,e){Uu(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},mx=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")},vx=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")},Eb=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)},_x=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")},bh=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")},co=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")},dd=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")},oa=wb,Ur=px;Qe.parser.yy=$2;var ue={},$e={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,Ss(Qe.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 d=this,p=0;function m(b){return function(S){p++;var T=d.sequenceItems.length-p+1;d.updateVal(S,"starty",e-T*ue.boxMargin,Math.min),d.updateVal(S,"stopy",o+T*ue.boxMargin,Math.max),d.updateVal($e.data,"startx",t-T*ue.boxMargin,Math.min),d.updateVal($e.data,"stopx",r+T*ue.boxMargin,Math.max),b!=="activation"&&(d.updateVal(S,"startx",t-T*ue.boxMargin,Math.min),d.updateVal(S,"stopx",r+T*ue.boxMargin,Math.max),d.updateVal($e.data,"starty",e-T*ue.boxMargin,Math.min),d.updateVal($e.data,"stopy",o+T*ue.boxMargin,Math.max))}}this.sequenceItems.forEach(m()),this.activations.forEach(m("activation"))},insert:function(t,e,r,o){var d=Math.min(t,r),p=Math.max(t,r),m=Math.min(e,o),b=Math.max(e,o);this.updateVal($e.data,"startx",d,Math.min),this.updateVal($e.data,"starty",m,Math.min),this.updateVal($e.data,"stopx",p,Math.max),this.updateVal($e.data,"stopy",b,Math.max),this.updateBounds(d,m,p,b)},newActivation:function(t,e,r){var o=r[t.from.actor],d=Wu(t.from.actor).length||0,p=o.x+o.width/2+(d-1)*ue.activationWidth/2;this.activations.push({startx:p,starty:this.verticalPos+2,stopx:p+ue.activationWidth,stopy:void 0,actor:t.from.actor,anchored:Tb(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:$e.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}}},pd=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},Wc=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},G2=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},xh=function(t,e,r,o){for(var d=0,p=0,m=0,b=0;b<r.length;b++){var S=e[r[b]];S.width=S.width||ue.width,S.height=Math.max(S.height||ue.height,ue.height),S.margin=S.margin||ue.actorMargin,S.x=d+p,S.y=o;var T=vh(t,S,ue);m=Math.max(m,T),$e.insert(S.x,o,S.x+S.width,S.height),d+=S.width,p+=S.margin,$e.models.addActor(S)}$e.bumpVerticalPos(m)},Sb=function(t,e,r){for(var o=0,d=0,p=0;p<r.length;p++){var m=e[r[p]],b=gd(m),S=_h(t,m,b,ue,ue.forceMenus);S.height>o&&(o=S.height),S.width+m.x>d&&(d=S.width+m.x)}return{maxHeight:o,maxWidth:d}},Ss=function(t){Gi(ue,t),t.fontFamily&&(ue.actorFontFamily=ue.noteFontFamily=ue.messageFontFamily=t.fontFamily),t.fontSize&&(ue.actorFontSize=ue.noteFontSize=ue.messageFontSize=t.fontSize),t.fontWeight&&(ue.actorFontWeight=ue.noteFontWeight=ue.messageFontWeight=t.fontWeight)},Wu=function(t){return $e.activations.filter(function(e){return e.actor===t})},X2=function(t,e){var r=e[t],o=Wu(t);return[o.reduce(function(d,p){return Math.min(d,p.startx)},r.x+r.width/2),o.reduce(function(d,p){return Math.max(d,p.stopx)},r.x+r.width/2)]};function nc(t,e,r,o,d){$e.bumpVerticalPos(r);var p=o;if(e.id&&e.message&&t[e.id]){var m=t[e.id].width,b=pd(ue);e.message=Jn.wrapLabel("[".concat(e.message,"]"),m-2*ue.wrapPadding,b),e.width=m,e.wrap=!0;var S=Jn.calculateTextDimensions(e.message,b),T=Math.max(S.height,ue.labelBoxHeight);p=o+T,y.debug("".concat(T," - ").concat(e.message))}d(e),$e.bumpVerticalPos(p)}var gd=function(t){var e=0,r=G2(ue);for(var o in t.links){var d=Jn.calculateTextDimensions(o,r).width+2*ue.wrapPadding+2*ue.boxMargin;e<d&&(e=d)}return e};const yd={bounds:$e,drawActors:xh,drawActorsPopup:Sb,setConf:Ss,draw:function(t,e){ue=ie().sequence,Qe.parser.yy.clear(),Qe.parser.yy.setWrap(ue.wrap),Qe.parser.parse(t+`
`),$e.init(),y.debug("C:".concat(JSON.stringify(ue,null,2)));var r=Se('[id="'.concat(e,'"]')),o=Qe.parser.yy.getActors(),d=Qe.parser.yy.getActorKeys(),p=Qe.parser.yy.getMessages(),m=Qe.parser.yy.getTitle(),b=function(xt,mt){var ot={};return mt.forEach(function(Ht){if(xt[Ht.to]&&xt[Ht.from]){var Dt=xt[Ht.to];if(Ht.placement===Qe.parser.yy.PLACEMENT.LEFTOF&&!Dt.prevActor||Ht.placement===Qe.parser.yy.PLACEMENT.RIGHTOF&&!Dt.nextActor)return;var ft=Ht.placement!==void 0,Nt=!ft,Kt=ft?Wc(ue):pd(ue),St=Ht.wrap?Jn.wrapLabel(Ht.message,ue.width-2*ue.wrapPadding,Kt):Ht.message,wt=Jn.calculateTextDimensions(St,Kt).width+2*ue.wrapPadding;Nt&&Ht.from===Dt.nextActor?ot[Ht.to]=Math.max(ot[Ht.to]||0,wt):Nt&&Ht.from===Dt.prevActor?ot[Ht.from]=Math.max(ot[Ht.from]||0,wt):Nt&&Ht.from===Ht.to?(ot[Ht.from]=Math.max(ot[Ht.from]||0,wt/2),ot[Ht.to]=Math.max(ot[Ht.to]||0,wt/2)):Ht.placement===Qe.parser.yy.PLACEMENT.RIGHTOF?ot[Ht.from]=Math.max(ot[Ht.from]||0,wt):Ht.placement===Qe.parser.yy.PLACEMENT.LEFTOF?ot[Dt.prevActor]=Math.max(ot[Dt.prevActor]||0,wt):Ht.placement===Qe.parser.yy.PLACEMENT.OVER&&(Dt.prevActor&&(ot[Dt.prevActor]=Math.max(ot[Dt.prevActor]||0,wt/2)),Dt.nextActor&&(ot[Ht.from]=Math.max(ot[Ht.from]||0,wt/2)))}}),y.debug("maxMessageWidthPerActor:",ot),ot}(o,p);ue.height=function(xt,mt){var ot=0;for(var Ht in Object.keys(xt).forEach(function(Kt){var St=xt[Kt];St.wrap&&(St.description=Jn.wrapLabel(St.description,ue.width-2*ue.wrapPadding,G2(ue)));var wt=Jn.calculateTextDimensions(St.description,G2(ue));St.width=St.wrap?ue.width:Math.max(ue.width,wt.width+2*ue.wrapPadding),St.height=St.wrap?Math.max(wt.height,ue.height):ue.height,ot=Math.max(ot,St.height)}),mt){var Dt=xt[Ht];if(Dt){var ft=xt[Dt.nextActor];if(ft){var Nt=mt[Ht]+ue.actorMargin-Dt.width/2-ft.width/2;Dt.margin=Math.max(Nt,ue.actorMargin)}}}return Math.max(ot,ue.height)}(o,b),co(r),bh(r),dd(r),xh(r,o,d,0);var S=function(xt,mt){var ot,Ht,Dt,ft={},Nt=[];return xt.forEach(function(Kt){switch(Kt.id=Jn.random({length:10}),Kt.type){case Qe.parser.yy.LINETYPE.LOOP_START:case Qe.parser.yy.LINETYPE.ALT_START:case Qe.parser.yy.LINETYPE.OPT_START:case Qe.parser.yy.LINETYPE.PAR_START:Nt.push({id:Kt.id,msg:Kt.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Qe.parser.yy.LINETYPE.ALT_ELSE:case Qe.parser.yy.LINETYPE.PAR_AND:Kt.message&&(ot=Nt.pop(),ft[ot.id]=ot,ft[Kt.id]=ot,Nt.push(ot));break;case Qe.parser.yy.LINETYPE.LOOP_END:case Qe.parser.yy.LINETYPE.ALT_END:case Qe.parser.yy.LINETYPE.OPT_END:case Qe.parser.yy.LINETYPE.PAR_END:ot=Nt.pop(),ft[ot.id]=ot;break;case Qe.parser.yy.LINETYPE.ACTIVE_START:var St=mt[Kt.from?Kt.from.actor:Kt.to.actor],wt=Wu(Kt.from?Kt.from.actor:Kt.to.actor).length,jt=St.x+St.width/2+(wt-1)*ue.activationWidth/2,Ct={startx:jt,stopx:jt+ue.activationWidth,actor:Kt.from.actor,enabled:!0};$e.activations.push(Ct);break;case Qe.parser.yy.LINETYPE.ACTIVE_END:var Jt=$e.activations.map(function(pt){return pt.actor}).lastIndexOf(Kt.from.actor);delete $e.activations.splice(Jt,1)[0]}Kt.placement!==void 0?(Ht=function(pt,le){var ve=le[pt.from].x,me=le[pt.to].x,Me=pt.wrap&&pt.message,He=Jn.calculateTextDimensions(Me?Jn.wrapLabel(pt.message,ue.width,Wc(ue)):pt.message,Wc(ue)),ze={width:Me?ue.width:Math.max(ue.width,He.width+2*ue.noteMargin),height:0,startx:le[pt.from].x,stopx:0,starty:0,stopy:0,message:pt.message};return pt.placement===Qe.parser.yy.PLACEMENT.RIGHTOF?(ze.width=Me?Math.max(ue.width,He.width):Math.max(le[pt.from].width/2+le[pt.to].width/2,He.width+2*ue.noteMargin),ze.startx=ve+(le[pt.from].width+ue.actorMargin)/2):pt.placement===Qe.parser.yy.PLACEMENT.LEFTOF?(ze.width=Math.max(Me?ue.width:le[pt.from].width/2+le[pt.to].width/2,He.width+2*ue.noteMargin),ze.startx=ve-ze.width+(le[pt.from].width-ue.actorMargin)/2):pt.to===pt.from?(He=Jn.calculateTextDimensions(Me?Jn.wrapLabel(pt.message,Math.max(ue.width,le[pt.from].width),Wc(ue)):pt.message,Wc(ue)),ze.width=Me?Math.max(ue.width,le[pt.from].width):Math.max(le[pt.from].width,ue.width,He.width+2*ue.noteMargin),ze.startx=ve+(le[pt.from].width-ze.width)/2):(ze.width=Math.abs(ve+le[pt.from].width/2-(me+le[pt.to].width/2))+ue.actorMargin,ze.startx=ve<me?ve+le[pt.from].width/2-ue.actorMargin/2:me+le[pt.to].width/2-ue.actorMargin/2),Me&&(ze.message=Jn.wrapLabel(pt.message,ze.width-2*ue.wrapPadding,Wc(ue))),y.debug("NM:[".concat(ze.startx,",").concat(ze.stopx,",").concat(ze.starty,",").concat(ze.stopy,":").concat(ze.width,",").concat(ze.height,"=").concat(pt.message,"]")),ze}(Kt,mt),Kt.noteModel=Ht,Nt.forEach(function(pt){(ot=pt).from=Math.min(ot.from,Ht.startx),ot.to=Math.max(ot.to,Ht.startx+Ht.width),ot.width=Math.max(ot.width,Math.abs(ot.from-ot.to))-ue.labelBoxWidth})):(Dt=function(pt,le){var ve=!1;if([Qe.parser.yy.LINETYPE.SOLID_OPEN,Qe.parser.yy.LINETYPE.DOTTED_OPEN,Qe.parser.yy.LINETYPE.SOLID,Qe.parser.yy.LINETYPE.DOTTED,Qe.parser.yy.LINETYPE.SOLID_CROSS,Qe.parser.yy.LINETYPE.DOTTED_CROSS,Qe.parser.yy.LINETYPE.SOLID_POINT,Qe.parser.yy.LINETYPE.DOTTED_POINT].includes(pt.type)&&(ve=!0),!ve)return{};var me=X2(pt.from,le),Me=X2(pt.to,le),He=me[0]<=Me[0]?1:0,ze=me[0]<Me[0]?0:1,fn=me.concat(Me),Ae=Math.abs(Me[ze]-me[He]);pt.wrap&&pt.message&&(pt.message=Jn.wrapLabel(pt.message,Math.max(Ae+2*ue.wrapPadding,ue.width),pd(ue)));var Vn=Jn.calculateTextDimensions(pt.message,pd(ue));return{width:Math.max(pt.wrap?0:Vn.width+2*ue.wrapPadding,Ae+2*ue.wrapPadding,ue.width),height:0,startx:me[He],stopx:Me[ze],starty:0,stopy:0,message:pt.message,type:pt.type,wrap:pt.wrap,fromBounds:Math.min.apply(null,fn),toBounds:Math.max.apply(null,fn)}}(Kt,mt),Kt.msgModel=Dt,Dt.startx&&Dt.stopx&&Nt.length>0&&Nt.forEach(function(pt){if(ot=pt,Dt.startx===Dt.stopx){var le=mt[Kt.from],ve=mt[Kt.to];ot.from=Math.min(le.x-Dt.width/2,le.x-le.width/2,ot.from),ot.to=Math.max(ve.x+Dt.width/2,ve.x+le.width/2,ot.to),ot.width=Math.max(ot.width,Math.abs(ot.to-ot.from))-ue.labelBoxWidth}else ot.from=Math.min(Dt.startx,ot.from),ot.to=Math.max(Dt.stopx,ot.to),ot.width=Math.max(ot.width,Dt.width)-ue.labelBoxWidth}))}),$e.activations=[],y.debug("Loop type widths:",ft),ft}(p,o);mx(r),_x(r),vx(r),Eb(r);var T=1;p.forEach(function(xt){var mt,ot,Ht;switch(xt.type){case Qe.parser.yy.LINETYPE.NOTE:ot=xt.noteModel,function(Dt,ft){$e.bumpVerticalPos(ue.boxMargin),ft.height=ue.boxMargin,ft.starty=$e.getVerticalPos();var Nt=Ur();Nt.x=ft.startx,Nt.y=ft.starty,Nt.width=ft.width||ue.width,Nt.class="note";var Kt=Dt.append("g"),St=gx(Kt,Nt),wt=oa();wt.x=ft.startx,wt.y=ft.starty,wt.width=Nt.width,wt.dy="1em",wt.text=ft.message,wt.class="noteText",wt.fontFamily=ue.noteFontFamily,wt.fontSize=ue.noteFontSize,wt.fontWeight=ue.noteFontWeight,wt.anchor=ue.noteAlign,wt.textMargin=ue.noteMargin,wt.valign=ue.noteAlign;var jt=zc(Kt,wt),Ct=Math.round(jt.map(function(Jt){return(Jt._groups||Jt)[0][0].getBBox().height}).reduce(function(Jt,pt){return Jt+pt}));St.attr("height",Ct+2*ue.noteMargin),ft.height+=Ct+2*ue.noteMargin,$e.bumpVerticalPos(Ct+2*ue.noteMargin),ft.stopy=ft.starty+Ct+2*ue.noteMargin,ft.stopx=ft.startx+Nt.width,$e.insert(ft.startx,ft.starty,ft.stopx,ft.stopy),$e.models.addNote(ft)}(r,ot);break;case Qe.parser.yy.LINETYPE.ACTIVE_START:$e.newActivation(xt,r,o);break;case Qe.parser.yy.LINETYPE.ACTIVE_END:(function(Dt,ft){var Nt=$e.endActivation(Dt);Nt.starty+18>ft&&(Nt.starty=ft-6,ft+=12),yx(r,Nt,ft,ue,Wu(Dt.from.actor).length),$e.insert(Nt.startx,ft-10,Nt.stopx,ft)})(xt,$e.getVerticalPos());break;case Qe.parser.yy.LINETYPE.LOOP_START:nc(S,xt,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(Dt){return $e.newLoop(Dt)});break;case Qe.parser.yy.LINETYPE.LOOP_END:mt=$e.endLoop(),fd(r,mt,"loop",ue),$e.bumpVerticalPos(mt.stopy-$e.getVerticalPos()),$e.models.addLoop(mt);break;case Qe.parser.yy.LINETYPE.RECT_START:nc(S,xt,ue.boxMargin,ue.boxMargin,function(Dt){return $e.newLoop(void 0,Dt.message)});break;case Qe.parser.yy.LINETYPE.RECT_END:mt=$e.endLoop(),V2(r,mt),$e.models.addLoop(mt),$e.bumpVerticalPos(mt.stopy-$e.getVerticalPos());break;case Qe.parser.yy.LINETYPE.OPT_START:nc(S,xt,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(Dt){return $e.newLoop(Dt)});break;case Qe.parser.yy.LINETYPE.OPT_END:mt=$e.endLoop(),fd(r,mt,"opt",ue),$e.bumpVerticalPos(mt.stopy-$e.getVerticalPos()),$e.models.addLoop(mt);break;case Qe.parser.yy.LINETYPE.ALT_START:nc(S,xt,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(Dt){return $e.newLoop(Dt)});break;case Qe.parser.yy.LINETYPE.ALT_ELSE:nc(S,xt,ue.boxMargin+ue.boxTextMargin,ue.boxMargin,function(Dt){return $e.addSectionToLoop(Dt)});break;case Qe.parser.yy.LINETYPE.ALT_END:mt=$e.endLoop(),fd(r,mt,"alt",ue),$e.bumpVerticalPos(mt.stopy-$e.getVerticalPos()),$e.models.addLoop(mt);break;case Qe.parser.yy.LINETYPE.PAR_START:nc(S,xt,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(Dt){return $e.newLoop(Dt)});break;case Qe.parser.yy.LINETYPE.PAR_AND:nc(S,xt,ue.boxMargin+ue.boxTextMargin,ue.boxMargin,function(Dt){return $e.addSectionToLoop(Dt)});break;case Qe.parser.yy.LINETYPE.PAR_END:mt=$e.endLoop(),fd(r,mt,"par",ue),$e.bumpVerticalPos(mt.stopy-$e.getVerticalPos()),$e.models.addLoop(mt);break;default:try{(Ht=xt.msgModel).starty=$e.getVerticalPos(),Ht.sequenceIndex=T,function(Dt,ft){$e.bumpVerticalPos(10);var Nt=ft.startx,Kt=ft.stopx,St=ft.starty,wt=ft.message,jt=ft.type,Ct=ft.sequenceIndex,Jt=Cr.splitBreaks(wt).length,pt=Jn.calculateTextDimensions(wt,pd(ue)),le=pt.height/Jt;ft.height+=le,$e.bumpVerticalPos(le);var ve=oa();ve.x=Nt,ve.y=St+10,ve.width=Kt-Nt,ve.class="messageText",ve.dy="1em",ve.text=wt,ve.fontFamily=ue.messageFontFamily,ve.fontSize=ue.messageFontSize,ve.fontWeight=ue.messageFontWeight,ve.anchor=ue.messageAlign,ve.valign=ue.messageAlign,ve.textMargin=ue.wrapPadding,ve.tspan=!1,zc(Dt,ve);var me,Me,He=pt.height-10,ze=pt.width;if(Nt===Kt){Me=$e.getVerticalPos()+He,ue.rightAngles?me=Dt.append("path").attr("d","M ".concat(Nt,",").concat(Me," H ").concat(Nt+Math.max(ue.width/2,ze/2)," V ").concat(Me+25," H ").concat(Nt)):(He+=ue.boxMargin,Me=$e.getVerticalPos()+He,me=Dt.append("path").attr("d","M "+Nt+","+Me+" C "+(Nt+60)+","+(Me-10)+" "+(Nt+60)+","+(Me+30)+" "+Nt+","+(Me+20))),He+=30;var fn=Math.max(ze/2,ue.width/2);$e.insert(Nt-fn,$e.getVerticalPos()-10+He,Kt+fn,$e.getVerticalPos()+30+He)}else He+=ue.boxMargin,Me=$e.getVerticalPos()+He,(me=Dt.append("line")).attr("x1",Nt),me.attr("y1",Me),me.attr("x2",Kt),me.attr("y2",Me),$e.insert(Nt,Me-10,Kt,Me);jt===Qe.parser.yy.LINETYPE.DOTTED||jt===Qe.parser.yy.LINETYPE.DOTTED_CROSS||jt===Qe.parser.yy.LINETYPE.DOTTED_POINT||jt===Qe.parser.yy.LINETYPE.DOTTED_OPEN?(me.style("stroke-dasharray","3, 3"),me.attr("class","messageLine1")):me.attr("class","messageLine0");var Ae="";ue.arrowMarkerAbsolute&&(Ae=(Ae=(Ae=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),me.attr("stroke-width",2),me.attr("stroke","none"),me.style("fill","none"),jt!==Qe.parser.yy.LINETYPE.SOLID&&jt!==Qe.parser.yy.LINETYPE.DOTTED||me.attr("marker-end","url("+Ae+"#arrowhead)"),jt!==Qe.parser.yy.LINETYPE.SOLID_POINT&&jt!==Qe.parser.yy.LINETYPE.DOTTED_POINT||me.attr("marker-end","url("+Ae+"#filled-head)"),jt!==Qe.parser.yy.LINETYPE.SOLID_CROSS&&jt!==Qe.parser.yy.LINETYPE.DOTTED_CROSS||me.attr("marker-end","url("+Ae+"#crosshead)"),($2.showSequenceNumbers()||ue.showSequenceNumbers)&&(me.attr("marker-start","url("+Ae+"#sequencenumber)"),Dt.append("text").attr("x",Nt).attr("y",Me+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(Ct)),$e.bumpVerticalPos(He),ft.height+=He,ft.stopy=ft.starty+ft.height,$e.insert(ft.fromBounds,ft.starty,ft.toBounds,ft.stopy)}(r,Ht),$e.models.addMessage(Ht)}catch(Dt){y.error("error while drawing message",Dt)}}[Qe.parser.yy.LINETYPE.SOLID_OPEN,Qe.parser.yy.LINETYPE.DOTTED_OPEN,Qe.parser.yy.LINETYPE.SOLID,Qe.parser.yy.LINETYPE.DOTTED,Qe.parser.yy.LINETYPE.SOLID_CROSS,Qe.parser.yy.LINETYPE.DOTTED_CROSS,Qe.parser.yy.LINETYPE.SOLID_POINT,Qe.parser.yy.LINETYPE.DOTTED_POINT].includes(xt.type)&&T++}),ue.mirrorActors&&($e.bumpVerticalPos(2*ue.boxMargin),xh(r,o,d,$e.getVerticalPos()),$e.bumpVerticalPos(ue.boxMargin),dx(r,$e.getVerticalPos()));var O=Sb(r,o,d),j=$e.getBounds().bounds;y.debug("For line height fix Querying: #"+e+" .actor-line"),vc("#"+e+" .actor-line").attr("y2",j.stopy);var F=j.stopy-j.starty;F<O.maxHeight&&(F=O.maxHeight);var U=F+2*ue.diagramMarginY;ue.mirrorActors&&(U=U-ue.boxMargin+ue.bottomMarginAdj);var it=j.stopx-j.startx;it<O.maxWidth&&(it=O.maxWidth);var yt=it+2*ue.diagramMarginX;m&&r.append("text").text(m).attr("x",(j.stopx-j.startx)/2-2*ue.diagramMarginX).attr("y",-25),io(r,U,yt,ue.useMaxWidth);var vt=m?40:0;r.attr("viewBox",j.startx-ue.diagramMarginX+" -"+(ue.diagramMarginY+vt)+" "+yt+" "+(U+vt)),y.debug("models:",$e.models)}};var tp=s(3584),Z2=s.n(tp);function Q2(t){return Q2=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},Q2(t)}var ep=function(t){return JSON.parse(JSON.stringify(t))},np=[],bx=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 d=[],p=0,m=[];for(p=0;p<r.doc.length;p++)if(r.doc[p].type==="divider"){var b=ep(r.doc[p]);b.doc=ep(m),d.push(b),m=[]}else m.push(r.doc[p]);if(d.length>0&&m.length>0){var S={stmt:"state",id:x3(),type:"divider",doc:ep(m)};d.push(ep(S)),r.doc=d}r.doc.forEach(function(T){return t(r,T,!0)})}},n={root:{relations:[],states:{},documents:{}}},i=n.root,c=0,u=function(t,e,r,o,d){i.states[t]===void 0?i.states[t]={id:t,descriptions:[],type:e,doc:r,note:d}:(i.states[t].doc||(i.states[t].doc=r),i.states[t].type||(i.states[t].type=e)),o&&(y.info("Adding state ",t,o),typeof o=="string"&&k(t,o.trim()),Q2(o)==="object"&&o.forEach(function(p){return k(t,p.trim())})),d&&(i.states[t].note=d,i.states[t].note.text=Cr.sanitizeText(i.states[t].note.text,ie()))},g=function(){i=(n={root:{relations:[],states:{},documents:{}}}).root,i=n.root,c=0,C=[]},v=function(t,e,r){var o=t,d=e,p="default",m="default";t==="[*]"&&(o="start"+ ++c,p="start"),e==="[*]"&&(d="end"+c,m="end"),u(o,p),u(d,m),i.relations.push({id1:o,id2:d,title:Cr.sanitizeText(r,ie())})},k=function(t,e){var r=i.states[t],o=e;o[0]===":"&&(o=o.substr(1).trim()),r.descriptions.push(Cr.sanitizeText(o,ie()))},w=0,C=[],D="TB";const B={parseDirective:function(t,e,r){ca.parseDirective(this,t,e,r)},getConfig:function(){return ie().state},addState:u,clear:g,getState:function(t){return i.states[t]},getStates:function(){return i.states},getRelations:function(){return i.relations},getClasses:function(){return C},getDirection:function(){return D},addRelation:v,getDividerId:function(){return"divider-id-"+ ++w},setDirection:function(t){D=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 = ",n)},getRootDoc:function(){return np},setRootDoc:function(t){y.info("Setting root doc",t),np=t},getRootDocV2:function(){return bx({id:"root"},{id:"root",doc:np},!0),{id:"root",doc:np}},extract:function(t){var e;e=t.doc?t.doc:t,y.info(e),g(),y.info("Extract",e),e.forEach(function(r){r.stmt==="state"&&u(r.id,r.type,r.doc,r.description,r.note),r.stmt==="relation"&&v(r.state1.id,r.state2.id,r.description)})},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()}};var Y={};function L(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 z,q=function(t,e,r){var o,d=ie().state.padding,p=2*ie().state.padding,m=t.node().getBBox(),b=m.width,S=m.x,T=t.append("text").attr("x",0).attr("y",ie().state.titleShift).attr("font-size",ie().state.fontSize).attr("class","state-title").text(e.id),O=T.node().getBBox().width+p,j=Math.max(O,b);j===b&&(j+=p);var F=t.node().getBBox();e.doc,o=S-d,O>b&&(o=(b-j)/2+d),Math.abs(S-F.x)<d&&O>b&&(o=S-(O-b)/2);var U=1-ie().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+ie().state.textHeight+ie().state.titleShift+1).attr("rx","0"),T.attr("x",o+d),O<=b&&T.attr("x",S+(j-p)/2-O/2+d),t.insert("rect",":first-child").attr("x",o).attr("y",ie().state.titleShift-ie().state.textHeight-ie().state.padding).attr("width",j).attr("height",3*ie().state.textHeight).attr("rx",ie().state.radius),t.insert("rect",":first-child").attr("x",o).attr("y",ie().state.titleShift-ie().state.textHeight-ie().state.padding).attr("width",j).attr("height",F.height+3+2*ie().state.textHeight).attr("rx",ie().state.radius),t},Q=function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",ie().state.padding),o=function(m,b,S,T){var O=0,j=T.append("text");j.style("text-anchor","start"),j.attr("class","noteText");var F,U=m.replace(/\r\n/g,"<br/>"),it=(U=U.replace(/\n/g,"<br/>")).split(Cr.lineBreakRegex),yt=1.25*ie().state.noteMargin,vt=function(ot,Ht){var Dt=typeof Symbol!="undefined"&&ot[Symbol.iterator]||ot["@@iterator"];if(!Dt){if(Array.isArray(ot)||(Dt=function(jt,Ct){if(jt){if(typeof jt=="string")return L(jt,Ct);var Jt=Object.prototype.toString.call(jt).slice(8,-1);return Jt==="Object"&&jt.constructor&&(Jt=jt.constructor.name),Jt==="Map"||Jt==="Set"?Array.from(jt):Jt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jt)?L(jt,Ct):void 0}}(ot))||Ht&&ot&&typeof ot.length=="number"){Dt&&(ot=Dt);var ft=0,Nt=function(){};return{s:Nt,n:function(){return ft>=ot.length?{done:!0}:{done:!1,value:ot[ft++]}},e:function(jt){throw jt},f:Nt}}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 Kt,St=!0,wt=!1;return{s:function(){Dt=Dt.call(ot)},n:function(){var jt=Dt.next();return St=jt.done,jt},e:function(jt){wt=!0,Kt=jt},f:function(){try{St||Dt.return==null||Dt.return()}finally{if(wt)throw Kt}}}}(it);try{for(vt.s();!(F=vt.n()).done;){var xt=F.value.trim();if(xt.length>0){var mt=j.append("tspan");mt.text(xt),yt===0&&(yt+=mt.node().getBBox().height),O+=yt,mt.attr("x",0+ie().state.noteMargin),mt.attr("y",0+O+1.25*ie().state.noteMargin)}}}catch(ot){vt.e(ot)}finally{vt.f()}return{textWidth:j.node().getBBox().width,textHeight:O}}(t,0,0,e.append("g")),d=o.textWidth,p=o.textHeight;return r.attr("height",p+2*ie().state.noteMargin),r.attr("width",d+2*ie().state.noteMargin),r},Z=function(t,e){var r=e.id,o={id:r,label:e.id,width:0,height:0},d=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&function(b){b.append("circle").attr("class","start-state").attr("r",ie().state.sizeUnit).attr("cx",ie().state.padding+ie().state.sizeUnit).attr("cy",ie().state.padding+ie().state.sizeUnit)}(d),e.type==="end"&&function(b){b.append("circle").attr("class","end-state-outer").attr("r",ie().state.sizeUnit+ie().state.miniPadding).attr("cx",ie().state.padding+ie().state.sizeUnit+ie().state.miniPadding).attr("cy",ie().state.padding+ie().state.sizeUnit+ie().state.miniPadding),b.append("circle").attr("class","end-state-inner").attr("r",ie().state.sizeUnit).attr("cx",ie().state.padding+ie().state.sizeUnit+2).attr("cy",ie().state.padding+ie().state.sizeUnit+2)}(d),e.type!=="fork"&&e.type!=="join"||function(b,S){var T=ie().state.forkWidth,O=ie().state.forkHeight;if(S.parentId){var j=T;T=O,O=j}b.append("rect").style("stroke","black").style("fill","black").attr("width",T).attr("height",O).attr("x",ie().state.padding).attr("y",ie().state.padding)}(d,e),e.type==="note"&&Q(e.note.text,d),e.type==="divider"&&function(b){b.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",ie().state.textHeight).attr("class","divider").attr("x2",2*ie().state.textHeight).attr("y1",0).attr("y2",0)}(d),e.type==="default"&&e.descriptions.length===0&&function(b,S){var T=b.append("text").attr("x",2*ie().state.padding).attr("y",ie().state.textHeight+2*ie().state.padding).attr("font-size",ie().state.fontSize).attr("class","state-title").text(S.id).node().getBBox();b.insert("rect",":first-child").attr("x",ie().state.padding).attr("y",ie().state.padding).attr("width",T.width+2*ie().state.padding).attr("height",T.height+2*ie().state.padding).attr("rx",ie().state.radius)}(d,e),e.type==="default"&&e.descriptions.length>0&&function(b,S){var T=b.append("text").attr("x",2*ie().state.padding).attr("y",ie().state.textHeight+1.3*ie().state.padding).attr("font-size",ie().state.fontSize).attr("class","state-title").text(S.descriptions[0]).node().getBBox(),O=T.height,j=b.append("text").attr("x",ie().state.padding).attr("y",O+.4*ie().state.padding+ie().state.dividerMargin+ie().state.textHeight).attr("class","state-description"),F=!0,U=!0;S.descriptions.forEach(function(xt){F||(function(mt,ot,Ht){var Dt=mt.append("tspan").attr("x",2*ie().state.padding).text(ot);Ht||Dt.attr("dy",ie().state.textHeight)}(j,xt,U),U=!1),F=!1});var it=b.append("line").attr("x1",ie().state.padding).attr("y1",ie().state.padding+O+ie().state.dividerMargin/2).attr("y2",ie().state.padding+O+ie().state.dividerMargin/2).attr("class","descr-divider"),yt=j.node().getBBox(),vt=Math.max(yt.width,T.width);it.attr("x2",vt+3*ie().state.padding),b.insert("rect",":first-child").attr("x",ie().state.padding).attr("y",ie().state.padding).attr("width",vt+2*ie().state.padding).attr("height",yt.height+O+2*ie().state.padding).attr("rx",ie().state.radius)}(d,e);var p,m=d.node().getBBox();return o.width=m.width+2*ie().state.padding,o.height=m.height+2*ie().state.padding,p=o,Y[r]=p,o},G=0;tp.parser.yy=B;var nt={},et=function t(e,r,o,d){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:z.edgeLengthFactor,nodeSep:b?1:50,isMultiGraph:!0}):m.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:b?1:z.edgeLengthFactor,nodeSep:b?1:50,ranker:"tight-tree",isMultiGraph:!0}),m.setDefaultEdgeLabel(function(){return{}}),B.extract(e);for(var S=B.getStates(),T=B.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 it=r.append("g").attr("id",F.id).attr("class","stateGroup");U=t(F.doc,it,F.id,!d);var yt=(it=q(it,F,d)).node().getBBox();U.width=yt.width,U.height=yt.height+z.padding/2,nt[F.id]={y:z.compositTitleSize}}else U=Z(r,F);if(F.note){var vt={descriptions:[],id:F.id+"-note",note:F.note,type:"note"},xt=Z(r,vt);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;T.forEach(function(ft){var Nt;mt++,y.debug("Setting edge",ft),m.setEdge(ft.id1,ft.id2,{relation:ft,width:(Nt=ft.title,Nt?Nt.length*z.fontSizeFactor:1),height:z.labelHeight*Cr.getRows(ft.title).length,labelpos:"c"},"id"+mt)}),Hf().layout(m),y.debug("Graph after layout",m.nodes());var ot=r.node();m.nodes().forEach(function(ft){ft!==void 0&&m.node(ft)!==void 0?(y.warn("Node "+ft+": "+JSON.stringify(m.node(ft))),Se("#"+ot.id+" #"+ft).attr("transform","translate("+(m.node(ft).x-m.node(ft).width/2)+","+(m.node(ft).y+(nt[ft]?nt[ft].y:0)-m.node(ft).height/2)+" )"),Se("#"+ot.id+" #"+ft).attr("data-x-shift",m.node(ft).x-m.node(ft).width/2),document.querySelectorAll("#"+ot.id+" #"+ft+" .divider").forEach(function(Nt){var Kt=Nt.parentElement,St=0,wt=0;Kt&&(Kt.parentElement&&(St=Kt.parentElement.getBBox().width),wt=parseInt(Kt.getAttribute("data-x-shift"),10),Number.isNaN(wt)&&(wt=0)),Nt.setAttribute("x1",0-wt+8),Nt.setAttribute("x2",St-wt-8)})):y.debug("No Node "+ft+": "+JSON.stringify(m.node(ft)))});var Ht=ot.getBBox();m.edges().forEach(function(ft){ft!==void 0&&m.edge(ft)!==void 0&&(y.debug("Edge "+ft.v+" -> "+ft.w+": "+JSON.stringify(m.edge(ft))),function(Nt,Kt,St){Kt.points=Kt.points.filter(function(Bn){return!Number.isNaN(Bn.y)});var wt=Kt.points,jt=yo().x(function(Bn){return Bn.x}).y(function(Bn){return Bn.y}).curve(Yr),Ct=Nt.append("path").attr("d",jt(wt)).attr("id","edge"+G).attr("class","transition"),Jt="";if(ie().state.arrowMarkerAbsolute&&(Jt=(Jt=(Jt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ct.attr("marker-end","url("+Jt+"#"+function(Bn){switch(Bn){case B.relationType.AGGREGATION:return"aggregation";case B.relationType.EXTENSION:return"extension";case B.relationType.COMPOSITION:return"composition";case B.relationType.DEPENDENCY:return"dependency"}}(B.relationType.DEPENDENCY)+"End)"),St.title!==void 0){for(var pt=Nt.append("g").attr("class","stateLabel"),le=Jn.calcLabelPosition(Kt.points),ve=le.x,me=le.y,Me=Cr.getRows(St.title),He=0,ze=[],fn=0,Ae=0,Vn=0;Vn<=Me.length;Vn++){var _n=pt.append("text").attr("text-anchor","middle").text(Me[Vn]).attr("x",ve).attr("y",me+He),mn=_n.node().getBBox();if(fn=Math.max(fn,mn.width),Ae=Math.min(Ae,mn.x),y.info(mn.x,ve,me+He),He===0){var gn=_n.node().getBBox();He=gn.height,y.info("Title height",He,me)}ze.push(_n)}var on=He*Me.length;if(Me.length>1){var nr=(Me.length-1)*He*.5;ze.forEach(function(Bn,ua){return Bn.attr("y",me+ua*He-nr)}),on=He*Me.length}var jn=pt.node().getBBox();pt.insert("rect",":first-child").attr("class","box").attr("x",ve-fn/2-ie().state.padding/2).attr("y",me-on/2-ie().state.padding/2-3.5).attr("width",fn+ie().state.padding).attr("height",on+ie().state.padding),y.info(jn)}G++}(r,m.edge(ft),m.edge(ft).relation))}),Ht=ot.getBBox();var Dt={id:o||"root",label:o||"root",width:0,height:0};return Dt.width=Ht.width+2*z.padding,Dt.height=Ht.height+2*z.padding,y.debug("Doc rendered",Dt,m),Dt};const lt=function(t,e){z=ie().state,tp.parser.yy.clear(),tp.parser.parse(t),y.debug("Rendering diagram "+t);var r=Se("[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=B.getRootDoc();et(o,r,void 0,!1);var d=z.padding,p=r.node().getBBox(),m=p.width+2*d,b=p.height+2*d;io(r,b,1.75*m,z.useMaxWidth),r.attr("viewBox","".concat(p.x-z.padding," ").concat(p.y-z.padding," ")+m+" "+b)};var Ft={},Lt={},Qt=function(t,e,r,o){if(r.id!=="root"){var d="rect";r.start===!0&&(d="start"),r.start===!1&&(d="end"),r.type!=="default"&&(d=r.type),Lt[r.id]||(Lt[r.id]={id:r.id,shape:d,description:Cr.sanitizeText(r.id,ie()),classes:"statediagram-state"}),r.description&&(Array.isArray(Lt[r.id].description)?(Lt[r.id].shape="rectWithTitle",Lt[r.id].description.push(r.description)):Lt[r.id].description.length>0?(Lt[r.id].shape="rectWithTitle",Lt[r.id].description===r.id?Lt[r.id].description=[r.description]:Lt[r.id].description=[Lt[r.id].description,r.description]):(Lt[r.id].shape="rect",Lt[r.id].description=r.description),Lt[r.id].description=Cr.sanitizeTextOrArray(Lt[r.id].description,ie())),Lt[r.id].description.length===1&&Lt[r.id].shape==="rectWithTitle"&&(Lt[r.id].shape="rect"),!Lt[r.id].type&&r.doc&&(y.info("Setting cluster for ",r.id,se(r)),Lt[r.id].type="group",Lt[r.id].dir=se(r),Lt[r.id].shape=r.type==="divider"?"divider":"roundedWithTitle",Lt[r.id].classes=Lt[r.id].classes+" "+(o?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var p={labelStyle:"",shape:Lt[r.id].shape,labelText:Lt[r.id].description,classes:Lt[r.id].classes,style:"",id:r.id,dir:Lt[r.id].dir,domId:"state-"+r.id+"-"+be,type:Lt[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-"+be,domId:"state-"+r.id+"----note-"+be,type:Lt[r.id].type,padding:15},b={labelStyle:"",shape:"noteGroup",labelText:r.note.text,classes:Lt[r.id].classes,style:"",id:r.id+"----parent",domId:"state-"+r.id+"----parent-"+be,type:"group",padding:0};be++,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,T=m.id;r.note.position==="left of"&&(S=m.id,T=r.id),t.setEdge(S,T,{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 "),Ut(t,r,r.doc,!o))},be=0,Ut=function(t,e,r,o){y.trace("items",r),r.forEach(function(d){if(d.stmt==="state"||d.stmt==="default")Qt(t,e,d,o);else if(d.stmt==="relation"){Qt(t,e,d.state1,o),Qt(t,e,d.state2,o);var p={id:"edge"+be,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:Cr.sanitizeText(d.description,ie()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},m=d.state1.id,b=d.state2.id;t.setEdge(m,b,p,be),be++}})},se=function(t,e){var r=e||"TB";if(t.doc)for(var o=0;o<t.doc.length;o++){var d=t.doc[o];d.stmt==="dir"&&(r=d.value)}return r};const ct=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Ft[e[r]]=t[e[r]]};function Et(t){return function(e){if(Array.isArray(e))return te(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 te(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)?te(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 te(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 Zt="",ee="",Ne=[],Ue=[],pn=[],Kn=function(){for(var t=!0,e=0;e<pn.length;e++)pn[e].processed,t=t&&pn[e].processed;return t};const or={parseDirective:function(t,e,r){ca.parseDirective(this,t,e,r)},getConfig:function(){return ie().journey},clear:function(){Ne.length=0,Ue.length=0,ee="",Zt="",pn.length=0},setTitle:function(t){Zt=t},getTitle:function(){return Zt},addSection:function(t){ee=t,Ne.push(t)},getSections:function(){return Ne},getTasks:function(){for(var t=Kn(),e=0;!t&&e<100;)t=Kn(),e++;return Ue.push.apply(Ue,pn),Ue},addTask:function(t,e){var r=e.substr(1).split(":"),o=0,d=[];r.length===1?(o=Number(r[0]),d=[]):(o=Number(r[0]),d=r[1].split(","));var p=d.map(function(b){return b.trim()}),m={section:ee,type:ee,people:p,task:t,score:o};pn.push(m)},addTaskOrg:function(t){var e={section:ee,type:ee,description:t,task:t,classes:[]};Ue.push(e)},getActors:function(){return t=[],Ue.forEach(function(e){e.people&&t.push.apply(t,Et(e.people))}),Et(new Set(t)).sort();var t}};var Je=s(9763),gr=s.n(Je),On=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},Dn=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},lr=-1,Qi=function(){function t(d,p,m,b,S,T,O,j){o(p.append("text").attr("x",m+S/2).attr("y",b+T/2+5).style("font-color",j).style("text-anchor","middle").text(d),O)}function e(d,p,m,b,S,T,O,j,F){for(var U=j.taskFontSize,it=j.taskFontFamily,yt=d.split(/<br\s*\/?>/gi),vt=0;vt<yt.length;vt++){var xt=vt*U-U*(yt.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",it);mt.append("tspan").attr("x",m+S/2).attr("dy",xt).text(yt[vt]),mt.attr("y",b+T/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(mt,O)}}function r(d,p,m,b,S,T,O,j){var F=p.append("switch"),U=F.append("foreignObject").attr("x",m).attr("y",b).attr("width",S).attr("height",T).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(d),e(d,F,m,b,S,T,O,j),o(U,O)}function o(d,p){for(var m in p)m in p&&d.attr(m,p[m])}return function(d){return d.textPlacement==="fo"?r:d.textPlacement==="old"?t:e}}();const Bi=Dn,rc=function(t,e,r){var o=t.append("g"),d={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};d.x=e.x,d.y=e.y,d.fill=e.fill,d.width=r.width,d.height=r.height,d.class="journey-section section-type-"+e.num,d.rx=3,d.ry=3,On(o,d),Qi(r)(e.text,o,d.x,d.y,d.width,d.height,{class:"journey-section section-type-"+e.num},r,e.colour)},Hc=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 d=o.append("tspan");return d.attr("x",e.x+2*e.textMargin),d.text(r),o},md=function(t,e,r){var o,d,p,m=e.x+r.width/2,b=t.append("g");lr++,b.append("line").attr("id","task"+lr).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,d={cx:m,cy:300+30*(5-e.score),score:e.score},o.append("circle").attr("cx",d.cx).attr("cy",d.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(p=o.append("g")).append("circle").attr("cx",d.cx-5).attr("cy",d.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),p.append("circle").attr("cx",d.cx+5).attr("cy",d.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),d.score>3?function(O){var j=Tg().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("+d.cx+","+(d.cy+2)+")")}(p):d.score<3?function(O){var j=Tg().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("+d.cx+","+(d.cy+7)+")")}(p):function(O){O.append("line").attr("class","mouth").attr("stroke",2).attr("x1",d.cx-5).attr("y1",d.cy+7).attr("x2",d.cx+5).attr("y2",d.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,On(b,S);var T=e.x+14;e.people.forEach(function(O){var j=e.actors[O].color,F={cx:T,cy:e.y,r:7,fill:j,stroke:"#000",title:O,pos:e.actors[O].position};Dn(b,F),T+=10}),Qi(r)(e.task,b,S.x,S.y,S.width,S.height,{class:"task"},r,e.colour)};Je.parser.yy=or;var uo={},rp=ie().journey,qc=ie().journey.leftMargin,sa={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 d=ie().journey,p=this,m=0;this.sequenceItems.forEach(function(b){m++;var S=p.sequenceItems.length-m+1;p.updateVal(b,"starty",e-S*d.boxMargin,Math.min),p.updateVal(b,"stopy",o+S*d.boxMargin,Math.max),p.updateVal(sa.data,"startx",t-S*d.boxMargin,Math.min),p.updateVal(sa.data,"stopx",r+S*d.boxMargin,Math.max),p.updateVal(b,"startx",t-S*d.boxMargin,Math.min),p.updateVal(b,"stopx",r+S*d.boxMargin,Math.max),p.updateVal(sa.data,"starty",e-S*d.boxMargin,Math.min),p.updateVal(sa.data,"stopy",o+S*d.boxMargin,Math.max)})},insert:function(t,e,r,o){var d=Math.min(t,r),p=Math.max(t,r),m=Math.min(e,o),b=Math.max(e,o);this.updateVal(sa.data,"startx",d,Math.min),this.updateVal(sa.data,"starty",m,Math.min),this.updateVal(sa.data,"stopx",p,Math.max),this.updateVal(sa.data,"stopy",b,Math.max),this.updateBounds(d,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}},ip=rp.sectionFills,Cb=rp.sectionColours;const Mb=function(t){Object.keys(t).forEach(function(e){rp[e]=t[e]})},bo=function(t,e){var r=ie().journey;Je.parser.yy.clear(),Je.parser.parse(t+`
`),sa.init();var o=Se("#"+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 d=Je.parser.yy.getTasks(),p=Je.parser.yy.getTitle(),m=Je.parser.yy.getActors();for(var b in uo)delete uo[b];var S=0;m.forEach(function(U){uo[U]={color:r.actorColours[S%r.actorColours.length],position:S},S++}),function(U){var it=ie().journey,yt=60;Object.keys(uo).forEach(function(vt){var xt=uo[vt].color,mt={cx:20,cy:yt,r:7,fill:xt,stroke:"#000",pos:uo[vt].position};Bi(U,mt);var ot={x:40,y:yt+7,fill:"#666",text:vt,textMargin:5|it.boxTextMargin};Hc(U,ot),yt+=20})}(o),sa.insert(0,0,qc,50*Object.keys(uo).length),function(U,it,yt){for(var vt=ie().journey,xt="",mt=yt+(2*vt.height+vt.diagramMarginY),ot=0,Ht="#CCC",Dt="black",ft=0,Nt=0;Nt<it.length;Nt++){var Kt=it[Nt];if(xt!==Kt.section){Ht=ip[ot%ip.length],ft=ot%ip.length,Dt=Cb[ot%Cb.length];var St={x:Nt*vt.taskMargin+Nt*vt.width+qc,y:50,text:Kt.section,fill:Ht,num:ft,colour:Dt};rc(U,St,vt),xt=Kt.section,ot++}var wt=Kt.people.reduce(function(jt,Ct){return uo[Ct]&&(jt[Ct]=uo[Ct]),jt},{});Kt.x=Nt*vt.taskMargin+Nt*vt.width+qc,Kt.y=mt,Kt.width=vt.diagramMarginX,Kt.height=vt.diagramMarginY,Kt.colour=Dt,Kt.fill=Ht,Kt.num=ft,Kt.actors=wt,md(U,Kt,vt),sa.insert(Kt.x,Kt.y,Kt.x+Kt.width+vt.taskMargin,450)}}(o,d,0);var T=sa.getBounds();p&&o.append("text").text(p).attr("x",qc).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var O=T.stopy-T.starty+2*r.diagramMarginY,j=qc+T.stopx+2*r.diagramMarginX;io(o,O,j,r.useMaxWidth),o.append("line").attr("x1",qc).attr("y1",4*r.height).attr("x2",j-qc-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(T.startx," -25 ").concat(j," ").concat(O+F)),o.attr("preserveAspectRatio","xMinYMin meet"),o.attr("height",O+F+25)};var j8={};const xx=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;
}
`)},fw=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;
}
`)},dw=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 U8={flowchart:fw,"flowchart-v2":fw,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);
}
.exclude-range {
fill: `.concat(t.excludeBkgColor,`;
}
.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:xx,"classDiagram-v2":xx,class:xx,stateDiagram:dw,state:dw,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 wx(t){return wx=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},wx(t)}var pw=function(t){var e=t;return(e=(e=e.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},J2={};function gw(t){var e;P2(t.git),aa(t.flowchart),Qs(t.flowchart),t.sequenceDiagram!==void 0&&yd.setConf(Gi(t.sequence,t.sequenceDiagram)),yd.setConf(t.sequence),t.gantt,c2(t.class),t.state,ct(t.state),V0(t.class),P3(t.er),Mb(t.journey),lb(t.requirement),e=t.class,Object.keys(e).forEach(function(r){j8[r]=e[r]})}var z8=Object.freeze({render:function(t,e,r,o){k0();var d=e,p=Jn.detectInit(d);p&&(b0(p),E3(p));var m=ie();if(e.length>m.maxTextSize&&(d="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),o!==void 0)o.innerHTML="",Se(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(),Se("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=d,d=d.replace(/style.*:\S*#.*;/g,function(Dt){return Dt.substring(0,Dt.length-1)}).replace(/classDef.*:\S*#.*;/g,function(Dt){return Dt.substring(0,Dt.length-1)}).replace(/#\w+;/g,function(Dt){var ft=Dt.substring(1,Dt.length-1);return/^\+?\d+$/.test(ft)?"\uFB02\xB0\xB0"+ft+"\xB6\xDF":"\uFB02\xB0"+ft+"\xB6\xDF"});var T=Se("#d"+t).node(),O=Jn.detectType(d,m),j=T.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 it=function(Dt){y.info("Extracting classes"),ar.clear();try{var ft=Iu().parser;return ft.yy=ar,ft.parse(Dt),ar.getClasses()}catch{return}}(d),yt=m.htmlLabels||m.flowchart.htmlLabels;for(var vt in it)yt?(U+=`
.`.concat(vt," > * { ").concat(it[vt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(vt," span { ").concat(it[vt].styles.join(" !important; ")," !important; }")):(U+=`
.`.concat(vt," path { ").concat(it[vt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(vt," rect { ").concat(it[vt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(vt," polygon { ").concat(it[vt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(vt," ellipse { ").concat(it[vt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(vt," circle { ").concat(it[vt].styles.join(" !important; ")," !important; }"),it[vt].textStyles&&(U+=`
.`.concat(vt," tspan { ").concat(it[vt].textStyles.join(" !important; ")," !important; }")))}var xt=function(Dt,ft){return Iy(Yf("".concat(Dt,"{").concat(ft,"}")),v6)}("#".concat(t),function(Dt,ft,Nt){return` {
font-family: `.concat(Nt.fontFamily,`;
font-size: `).concat(Nt.fontSize,`;
fill: `).concat(Nt.textColor,`
}
/* Classes common for multiple diagrams */
.error-icon {
fill: `).concat(Nt.errorBkgColor,`;
}
.error-text {
fill: `).concat(Nt.errorTextColor,`;
stroke: `).concat(Nt.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(Nt.lineColor,`;
stroke: `).concat(Nt.lineColor,`;
}
.marker.cross {
stroke: `).concat(Nt.lineColor,`;
}
svg {
font-family: `).concat(Nt.fontFamily,`;
font-size: `).concat(Nt.fontSize,`;
}
`).concat(U8[Dt](Nt),`
`).concat(ft,`
`)}(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,P2(m.git),function(Dt,ft,Nt){try{var Kt=nb().parser;Kt.yy=Yc,Kt.yy.clear(),y.debug("in gitgraph renderer",Dt+`
`,"id:",ft,Nt),Kt.parse(Dt+`
`),Fn=Object.assign(Fn,rd,Yc.getOptions()),y.debug("effective options",Fn);var St=Yc.getDirection();jc=Yc.getCommits();var wt=Yc.getBranchesAsObjArray();St==="BT"&&(Fn.nodeLabel.x=wt.length*Fn.branchOffset,Fn.nodeLabel.width="100%",Fn.nodeLabel.y=-2*Fn.nodeRadius);var jt=Se('[id="'.concat(ft,'"]'));for(var Ct in function(pt){pt.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",Fn.nodeRadius).attr("cx",0).attr("cy",0),pt.select("#def-commit").append("foreignObject").attr("width",Fn.nodeLabel.width).attr("height",Fn.nodeLabel.height).attr("x",Fn.nodeLabel.x).attr("y",Fn.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(jt),fh=1,wt){var Jt=wt[Ct];H0(jt,Jt.commit.id,wt,St),ib(jt,Jt.commit,St),fh++}jt.attr("height",function(){return St==="BT"?Object.keys(jc).length*Fn.nodeSpacing:(wt.length+1)*Fn.branchOffset})}catch(pt){y.error("Error while rendering gitgraph"),y.error(pt.message)}}(d,t,!1);break;case"flowchart":m.flowchart.arrowMarkerAbsolute=m.arrowMarkerAbsolute,aa(m.flowchart),Ic(d,t);break;case"flowchart-v2":m.flowchart.arrowMarkerAbsolute=m.arrowMarkerAbsolute,Qs(m.flowchart),ax(d,t);break;case"sequence":m.sequence.arrowMarkerAbsolute=m.arrowMarkerAbsolute,m.sequenceDiagram?(yd.setConf(Object.assign(m.sequence,m.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):yd.setConf(m.sequence),yd.draw(d,t);break;case"gantt":m.gantt.arrowMarkerAbsolute=m.arrowMarkerAbsolute,m.gantt,K3(d,t);break;case"class":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,c2(m.class),N3(d,t);break;case"classDiagram":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,function(Dt){Object.keys(Dt).forEach(function(ft){L3[ft]=Dt[ft]})}(m.class),function(Dt,ft){y.info("Drawing class"),qo.clear(),eh.parser.parse(Dt);var Nt=ie().flowchart;y.info("config:",Nt);var Kt=Nt.nodeSpacing||50,St=Nt.rankSpacing||50,wt=new(Si()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:qo.getDirection(),nodesep:Kt,ranksep:St,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),jt=qo.getClasses(),Ct=qo.getRelations();y.info(Ct),function(Vn,_n){var mn=Object.keys(Vn);y.info("keys:",mn),y.info(Vn),mn.forEach(function(gn){var on=Vn[gn],nr="";on.cssClasses.length>0&&(nr=nr+" "+on.cssClasses.join(" "));var jn,Bn={labelStyle:""},ua=on.text!==void 0?on.text:on.id;on.type,jn="class_box",_n.setNode(on.id,{labelStyle:Bn.labelStyle,shape:jn,labelText:ua,classData:on,rx:0,ry:0,class:nr,style:Bn.style,id:on.id,domId:on.domId,haveCallback:on.haveCallback,link:on.link,width:on.type==="group"?500:void 0,type:on.type,padding:ie().flowchart.padding}),y.info("setNode",{labelStyle:Bn.labelStyle,shape:jn,labelText:ua,rx:0,ry:0,class:nr,style:Bn.style,id:on.id,width:on.type==="group"?500:void 0,type:on.type,padding:ie().flowchart.padding})})}(jt,wt),function(Vn,_n){var mn=0;Vn.forEach(function(gn){mn++;var on={classes:"relation"};on.pattern=gn.relation.lineType==1?"dashed":"solid",on.id="id"+mn,gn.type==="arrow_open"?on.arrowhead="none":on.arrowhead="normal",y.info(on,gn),on.startLabelRight=gn.relationTitle1==="none"?"":gn.relationTitle1,on.endLabelLeft=gn.relationTitle2==="none"?"":gn.relationTitle2,on.arrowTypeStart=g2(gn.relation.type1),on.arrowTypeEnd=g2(gn.relation.type2);var nr="",jn="";if(gn.style!==void 0){var Bn=Bc(gn.style);nr=Bn.style,jn=Bn.labelStyle}else nr="fill:none";on.style=nr,on.labelStyle=jn,gn.interpolate!==void 0?on.curve=Ho(gn.interpolate,go):Vn.defaultInterpolate!==void 0?on.curve=Ho(Vn.defaultInterpolate,go):on.curve=Ho(L3.curve,go),gn.text=gn.title,gn.text===void 0?gn.style!==void 0&&(on.arrowheadStyle="fill: #333"):(on.arrowheadStyle="fill: #333",on.labelpos="c",ie().flowchart.htmlLabels?(on.labelType="html",on.label='<span class="edgeLabel">'+gn.text+"</span>"):(on.labelType="text",on.label=gn.text.replace(Cr.lineBreakRegex,`
`),gn.style===void 0&&(on.style=on.style||"stroke: #333; stroke-width: 1.5px;fill:none"),on.labelStyle=on.labelStyle.replace("color:","fill:"))),_n.setEdge(gn.id1,gn.id2,on,mn)})}(Ct,wt);var Jt=Se('[id="'.concat(ft,'"]'));Jt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var pt=Se("#"+ft+" g");N0(pt,wt,["aggregation","extension","composition","dependency"],"classDiagram",ft);var le=Jt.node().getBBox(),ve=le.width+16,me=le.height+16;if(y.debug("new ViewBox 0 0 ".concat(ve," ").concat(me),"translate(".concat(8-wt._label.marginx,", ").concat(8-wt._label.marginy,")")),io(Jt,me,ve,Nt.useMaxWidth),Jt.attr("viewBox","0 0 ".concat(ve," ").concat(me)),Jt.select("g").attr("transform","translate(".concat(8-wt._label.marginx,", ").concat(8-le.y,")")),!Nt.htmlLabels)for(var Me=document.querySelectorAll('[id="'+ft+'"] .edgeLabel .label'),He=0;He<Me.length;He++){var ze=Me[He],fn=ze.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),ze.insertBefore(Ae,ze.firstChild)}}(d,t);break;case"state":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,m.state,lt(d,t);break;case"stateDiagram":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,ct(m.state),function(Dt,ft){y.info("Drawing state diagram (v2)",ft),B.clear(),Lt={};var Nt=Z2().parser;Nt.yy=B,Nt.parse(Dt);var Kt=B.getDirection();Kt===void 0&&(Kt="LR");var St=ie().state,wt=St.nodeSpacing||50,jt=St.rankSpacing||50;y.info(B.getRootDocV2()),B.extract(B.getRootDocV2()),y.info(B.getRootDocV2());var Ct=new(Si()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:se(B.getRootDocV2()),nodesep:wt,ranksep:jt,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Qt(Ct,void 0,B.getRootDocV2(),!0);var Jt=Se('[id="'.concat(ft,'"]')),pt=Se("#"+ft+" g");N0(pt,Ct,["barb"],"statediagram",ft);var le=Jt.node().getBBox(),ve=le.width+16,me=le.height+16;Jt.attr("class","statediagram");var Me=Jt.node().getBBox();io(Jt,me,1.75*ve,St.useMaxWidth);var He="".concat(Me.x-8," ").concat(Me.y-8," ").concat(ve," ").concat(me);y.debug("viewBox ".concat(He)),Jt.attr("viewBox",He);for(var ze=document.querySelectorAll('[id="'+ft+'"] .edgeLabel .label'),fn=0;fn<ze.length;fn++){var Ae=ze[fn],Vn=Ae.getBBox(),_n=document.createElementNS("http://www.w3.org/2000/svg","rect");_n.setAttribute("rx",0),_n.setAttribute("ry",0),_n.setAttribute("width",Vn.width),_n.setAttribute("height",Vn.height),Ae.insertBefore(_n,Ae.firstChild)}}(d,t);break;case"info":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,V0(m.class),function(Dt,ft,Nt){try{var Kt=$0().parser;Kt.yy=q0,y.debug(`Renering info diagram
`+Dt),Kt.parse(Dt),y.debug("Parsed info diagram");var St=Se("#"+ft);St.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+Nt),St.attr("height",100),St.attr("width",400)}catch(wt){y.error("Error while rendering info diagram"),y.error(wt.message)}}(d,t,Fy);break;case"pie":ob(d,t);break;case"er":P3(m.er),Y3(d,t);break;case"journey":Mb(m.journey),bo(d,t);break;case"requirement":lb(m.requirement),gh(d,t)}}catch(Dt){throw function(ft,Nt){try{y.debug(`Renering svg for syntax error
`);var Kt=Se("#"+ft),St=Kt.append("g");St.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"),St.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"),St.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"),St.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"),St.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"),St.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"),St.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"),St.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+Nt),Kt.attr("height",100),Kt.attr("width",400),Kt.attr("viewBox","768 0 512 512")}catch(wt){y.error("Error while rendering info diagram"),y.error(wt.message)}}(t,Fy),Dt}Se('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var ot=Se("#d"+t).node().innerHTML;if(y.debug("cnf.arrowMarkerAbsolute",m.arrowMarkerAbsolute),m.arrowMarkerAbsolute&&m.arrowMarkerAbsolute!=="false"||(ot=ot.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),ot=(ot=pw(ot)).replace(/<br>/g,"<br/>"),r!==void 0)switch(O){case"flowchart":case"flowchart-v2":r(ot,ar.bindFunctions);break;case"gantt":r(ot,ed.bindFunctions);break;case"class":case"classDiagram":r(ot,qo.bindFunctions);break;default:r(ot)}else y.debug("CB = undefined!");ud.forEach(function(Dt){Dt()}),ud=[];var Ht=Se("#d"+t).node();return Ht!==null&&typeof Ht.remove=="function"&&Se("#d"+t).node().remove(),ot},parse:function(t){var e=ie(),r=Jn.detectInit(t,e);r&&y.debug("reinit ",r);var o,d=Jn.detectType(t,e);switch(y.debug("Type "+d),d){case"git":(o=nb()).parser.yy=Yc;break;case"flowchart":case"flowchart-v2":ar.clear(),(o=Iu()).parser.yy=ar;break;case"sequence":(o=hx()).parser.yy=$2;break;case"gantt":(o=L2()).parser.yy=ed;break;case"class":case"classDiagram":(o=M3()).parser.yy=qo;break;case"state":case"stateDiagram":(o=Z2()).parser.yy=B;break;case"info":y.debug("info info info"),(o=$0()).parser.yy=q0;break;case"pie":y.debug("pie"),(o=G0()).parser.yy=j2;break;case"er":y.debug("er"),(o=R3()).parser.yy=Ua;break;case"journey":y.debug("Journey"),(o=gr()).parser.yy=or;break;case"requirement":case"requirementDiagram":y.debug("RequirementDiagram"),(o=sb()).parser.yy=Yu}return o.parser.yy.graphType=d,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":J2={};break;case"type_directive":J2.type=e.toLowerCase();break;case"arg_directive":J2.args=JSON.parse(e);break;case"close_directive":(function(d,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),b0(p.args),y.debug("sanitize in handleDirective (done)",p.args),p.args,E3(p.args);break;case"wrap":case"nowrap":d&&d.setWrap&&d.setWrap(p.type==="wrap");break;case"themeCss":y.warn("themeCss encountered");break;default:y.warn("Unhandled directive: source: '%%{".concat(p.type,": ").concat(JSON.stringify(p.args?p.args:{}),"}%%"),p)}})(t,J2,o),J2=null}}catch(d){y.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(r)),y.error(d.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(r){k3=Gi({},r)}(t),t&&t.theme&&Ql[t.theme]?t.themeVariables=Ql[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Ql.default.getThemeVariables(t.themeVariables));var e=wx(t)==="object"?function(r){return Xi=Gi({},zf),Xi=Gi(Xi,r),r.theme&&(Xi.themeVariables=Ql[r.theme].getThemeVariables(r.themeVariables)),x0=w0(Xi,Kl),Xi}(t):T3();gw(e),x(e.logLevel)},reinitialize:function(){},getConfig:ie,setConfig:function(t){return Gi(x0,t),ie()},getSiteConfig:T3,updateSiteConfig:function(t){return Xi=Gi(Xi,t),w0(Xi,Kl),Xi},reset:function(){k0()},globalReset:function(){k0(),gw(ie())},defaultConfig:zf});x(ie().logLevel),k0(ie());const ca=z8;var yw=function(){xo.startOnLoad?ca.getConfig().startOnLoad&&xo.init():xo.startOnLoad===void 0&&(y.debug("In start, no config"),ca.getConfig().startOnLoad&&xo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){yw()},!1);var xo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:ca,parse:ca.parse,render:ca.render,init:function(){var t,e,r=this,o=ca.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),ca.updateSiteConfig({startOnLoad:xo.startOnLoad})),xo.ganttConfig!==void 0&&ca.updateSiteConfig({gantt:xo.ganttConfig});for(var d,p=new Jn.initIdGeneratior(o.deterministicIds,o.deterministicIDSeed),m=function(S){var T=t[S];if(T.getAttribute("data-processed"))return"continue";T.setAttribute("data-processed",!0);var O="mermaid-".concat(p.next());d=T.innerHTML,d=Jn.entityDecode(d).trim().replace(/<br\s*\/?>/gi,"<br/>");var j=Jn.detectInit(d);j&&y.debug("Detected early reinit: ",j);try{ca.render(O,d,function(F,U){T.innerHTML=F,e!==void 0&&e(O),U&&U(T)},T)}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)),ca.initialize(t)},contentLoaded:yw};const W8=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 f=s(8355);function l(_,y,x,E){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");f.applyStyle(A,x[E+"Style"]),x[E+"Class"]&&A.attr("class",x[E+"Class"])}a.exports={default:l,normal:l,vee:function(_,y,x,E){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");f.applyStyle(A,x[E+"Style"]),x[E+"Class"]&&A.attr("class",x[E+"Class"])},undirected:function(_,y,x,E){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");f.applyStyle(A,x[E+"Style"]),x[E+"Class"]&&A.attr("class",x[E+"Class"])}}},5632:(a,h,s)=>{var f=s(8355),l=s(4322),_=s(1322);a.exports=function(y,x){var E,A=x.nodes().filter(function(N){return f.isSubgraph(x,N)}),I=y.selectAll("g.cluster").data(A,function(N){return N});return I.selectAll("*").remove(),I.enter().append("g").attr("class","cluster").attr("id",function(N){return x.node(N).id}).style("opacity",0),I=y.selectAll("g.cluster"),f.applyTransition(I,x).style("opacity",1),I.each(function(N){var P=x.node(N),W=l.select(this);l.select(this).append("rect");var H=W.append("g").attr("class","label");_(H,P,P.clusterLabelPos)}),I.selectAll("rect").each(function(N){var P=x.node(N),W=l.select(this);f.applyStyle(W,P.style)}),E=I.exit?I.exit():I.selectAll(null),f.applyTransition(E,x).style("opacity",0).remove(),I}},6315:(a,h,s)=>{var f=s(1034),l=s(1322),_=s(8355),y=s(4322);a.exports=function(x,E){var A,I=x.selectAll("g.edgeLabel").data(E.edges(),function(N){return _.edgeToId(N)}).classed("update",!0);return I.exit().remove(),I.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(I=x.selectAll("g.edgeLabel")).each(function(N){var P=y.select(this);P.select(".label").remove();var W=E.edge(N),H=l(P,E.edge(N),0,0).classed("label",!0),V=H.node().getBBox();W.labelId&&H.attr("id",W.labelId),f.has(W,"width")||(W.width=V.width),f.has(W,"height")||(W.height=V.height)}),A=I.exit?I.exit():I.selectAll(null),_.applyTransition(A,E).style("opacity",0).remove(),I}},940:(a,h,s)=>{var f=s(1034),l=s(7584),_=s(8355),y=s(4322);function x(E,A){var I=(y.line||y.svg.line)().x(function(N){return N.x}).y(function(N){return N.y});return(I.curve||I.interpolate)(E.curve),I(A)}a.exports=function(E,A,I){var N=E.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(K){var ut=V.edge(K),tt=V.node(K.v).elem;return x(ut,f.range(ut.points.length).map(function(){return ht=(Tt=tt).getBBox(),{x:(dt=Tt.ownerSVGElement.getScreenCTM().inverse().multiply(Tt.getScreenCTM()).translate(ht.width/2,ht.height/2)).e,y:dt.f};var Tt,ht,dt}))}),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=f.uniqueId("arrowhead");var X=y.select(this).attr("marker-end",function(){return"url("+(K=location.href,ut=V.arrowheadId,K.split("#")[0]+"#"+ut+")");var K,ut}).style("fill","none");_.applyTransition(X,A).attr("d",function(K){return function(ut,tt){var Tt=ut.edge(tt),ht=ut.node(tt.v),dt=ut.node(tt.w),_t=Tt.points.slice(1,Tt.points.length-1);return _t.unshift(l(ht,_t[0])),_t.push(l(dt,_t[_t.length-1])),x(Tt,_t)}(A,K)}),_.applyStyle(X,V.style)}),W.selectAll("defs *").remove(),W.selectAll("defs").each(function(H){var V=A.edge(H);(0,I[V.arrowhead])(y.select(this),V.arrowheadId,V,"arrowhead")}),W}},607:(a,h,s)=>{var f=s(1034),l=s(1322),_=s(8355),y=s(4322);a.exports=function(x,E,A){var I,N=E.nodes().filter(function(W){return!_.isSubgraph(E,W)}),P=x.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=x.selectAll("g.node")).each(function(W){var H=E.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"),K=l(X,H),ut=A[H.shape],tt=f.pick(K.node().getBBox(),"width","height");H.elem=this,H.id&&V.attr("id",H.id),H.labelId&&X.attr("id",H.labelId),f.has(H,"width")&&(tt.width=H.width),f.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 Tt=y.select(this);Tt.select(".label-container").remove();var ht=ut(Tt,tt,H).classed("label-container",!0);_.applyStyle(ht,H.style);var dt=ht.node().getBBox();H.width=dt.width,H.height=dt.height}),I=P.exit?P.exit():P.selectAll(null),_.applyTransition(I,E).style("opacity",0).remove(),P}},4322:(a,h,s)=>{var f;if(!f)try{f=s(7188)}catch{}f||(f=window.d3),a.exports=f},1463:(a,h,s)=>{var f;try{f=s(681)}catch{}f||(f=window.dagre),a.exports=f},6614:(a,h,s)=>{var f;try{f=s(8282)}catch{}f||(f=window.graphlib),a.exports=f},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 f=s(3260);a.exports=function(l,_,y){return f(l,_,_,y)}},3260:a=>{a.exports=function(h,s,f,l){var _=h.x,y=h.y,x=_-l.x,E=y-l.y,A=Math.sqrt(s*s*E*E+f*f*x*x),I=Math.abs(s*f*x/A);l.x<_&&(I=-I);var N=Math.abs(s*f*E/A);return l.y<y&&(N=-N),{x:_+I,y:y+N}}},6808:a=>{function h(s,f){return s*f>0}a.exports=function(s,f,l,_){var y,x,E,A,I,N,P,W,H,V,X,K,ut;if(y=f.y-s.y,E=s.x-f.x,I=f.x*s.y-s.x*f.y,H=y*l.x+E*l.y+I,V=y*_.x+E*_.y+I,!(H!==0&&V!==0&&h(H,V)||(x=_.y-l.y,A=l.x-_.x,N=_.x*l.y-l.x*_.y,P=x*s.x+A*s.y+N,W=x*f.x+A*f.y+N,P!==0&&W!==0&&h(P,W)||(X=y*A-x*E)==0)))return K=Math.abs(X/2),{x:(ut=E*N-A*I)<0?(ut-K)/X:(ut+K)/X,y:(ut=x*I-y*N)<0?(ut-K)/X:(ut+K)/X}}},7584:a=>{a.exports=function(h,s){return h.intersect(s)}},5337:(a,h,s)=>{var f=s(6808);a.exports=function(l,_,y){var x=l.x,E=l.y,A=[],I=Number.POSITIVE_INFINITY,N=Number.POSITIVE_INFINITY;_.forEach(function(ut){I=Math.min(I,ut.x),N=Math.min(N,ut.y)});for(var P=x-l.width/2-I,W=E-l.height/2-N,H=0;H<_.length;H++){var V=_[H],X=_[H<_.length-1?H+1:0],K=f(l,y,{x:P+V.x,y:W+V.y},{x:P+X.x,y:W+X.y});K&&A.push(K)}return A.length?(A.length>1&&A.sort(function(ut,tt){var Tt=ut.x-y.x,ht=ut.y-y.y,dt=Math.sqrt(Tt*Tt+ht*ht),_t=tt.x-y.x,J=tt.y-y.y,bt=Math.sqrt(_t*_t+J*J);return dt<bt?-1:dt===bt?0:1}),A[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",l),l)}},8049:a=>{a.exports=function(h,s){var f,l,_=h.x,y=h.y,x=s.x-_,E=s.y-y,A=h.width/2,I=h.height/2;return Math.abs(E)*A>Math.abs(x)*I?(E<0&&(I=-I),f=E===0?0:I*x/E,l=I):(x<0&&(A=-A),f=A,l=x===0?0:A*E/x),{x:_+f,y:y+l}}},8284:(a,h,s)=>{var f=s(8355);a.exports=function(l,_){var y=l.append("foreignObject").attr("width","100000"),x=y.append("xhtml:div");x.attr("xmlns","http://www.w3.org/1999/xhtml");var E=_.label;switch(typeof E){case"function":x.insert(E);break;case"object":x.insert(function(){return E});break;default:x.html(E)}f.applyStyle(x,_.labelStyle),x.style("display","inline-block"),x.style("white-space","nowrap");var A=x.node().getBoundingClientRect();return y.attr("width",A.width).attr("height",A.height),y}},1322:(a,h,s)=>{var f=s(7318),l=s(8284),_=s(8287);a.exports=function(y,x,E){var A=x.label,I=y.append("g");x.labelType==="svg"?_(I,x):typeof A!="string"||x.labelType==="html"?l(I,x):f(I,x);var N,P=I.node().getBBox();switch(E){case"top":N=-x.height/2;break;case"bottom":N=x.height/2-P.height;break;default:N=-P.height/2}return I.attr("transform","translate("+-P.width/2+","+N+")"),I}},8287:(a,h,s)=>{var f=s(8355);a.exports=function(l,_){var y=l;return y.node().appendChild(_.label),f.applyStyle(y,_.labelStyle),y}},7318:(a,h,s)=>{var f=s(8355);a.exports=function(l,_){for(var y=l.append("text"),x=function(A){for(var I,N="",P=!1,W=0;W<A.length;++W)I=A[W],P?(N+=I==="n"?`
`:I,P=!1):I==="\\"?P=!0:N+=I;return N}(_.label).split(`
`),E=0;E<x.length;E++)y.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(x[E]);return f.applyStyle(y,_.labelStyle),y}},1034:(a,h,s)=>{var f;try{f={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{}f||(f=window._),a.exports=f},6381:(a,h,s)=>{var f=s(8355),l=s(4322);a.exports=function(_,y){var x=_.filter(function(){return!l.select(this).classed("update")});function E(A){var I=y.node(A);return"translate("+I.x+","+I.y+")"}x.attr("transform",E),f.applyTransition(_,y).style("opacity",1).attr("transform",E),f.applyTransition(x.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 f=s(8355),l=s(4322),_=s(1034);a.exports=function(y,x){function E(A){var I=x.edge(A);return _.has(I,"x")?"translate("+I.x+","+I.y+")":""}y.filter(function(){return!l.select(this).classed("update")}).attr("transform",E),f.applyTransition(y,x).style("opacity",1).attr("transform",E)}},4849:(a,h,s)=>{var f=s(8355),l=s(4322);a.exports=function(_,y){function x(E){var A=y.node(E);return"translate("+A.x+","+A.y+")"}_.filter(function(){return!l.select(this).classed("update")}).attr("transform",x),f.applyTransition(_,y).style("opacity",1).attr("transform",x)}},5787:(a,h,s)=>{var f=s(1034),l=s(4322),_=s(1463).layout;a.exports=function(){var A=s(607),I=s(5632),N=s(6315),P=s(940),W=s(4849),H=s(4577),V=s(6381),X=s(4418),K=s(9144),ut=function(tt,Tt){(function(kt){kt.nodes().forEach(function(Ot){var st=kt.node(Ot);f.has(st,"label")||kt.children(Ot).length||(st.label=Ot),f.has(st,"paddingX")&&f.defaults(st,{paddingLeft:st.paddingX,paddingRight:st.paddingX}),f.has(st,"paddingY")&&f.defaults(st,{paddingTop:st.paddingY,paddingBottom:st.paddingY}),f.has(st,"padding")&&f.defaults(st,{paddingLeft:st.padding,paddingRight:st.padding,paddingTop:st.padding,paddingBottom:st.padding}),f.defaults(st,y),f.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(ae){st[ae]=Number(st[ae])}),f.has(st,"width")&&(st._prevWidth=st.width),f.has(st,"height")&&(st._prevHeight=st.height)}),kt.edges().forEach(function(Ot){var st=kt.edge(Ot);f.has(st,"label")||(st.label=""),f.defaults(st,x)})})(Tt);var ht=E(tt,"output"),dt=E(ht,"clusters"),_t=E(ht,"edgePaths"),J=N(E(ht,"edgeLabels"),Tt),bt=A(E(ht,"nodes"),Tt,X);_(Tt),W(bt,Tt),H(J,Tt),P(_t,Tt,K);var Pt=I(dt,Tt);V(Pt,Tt),function(kt){f.each(kt.nodes(),function(Ot){var st=kt.node(Ot);f.has(st,"_prevWidth")?st.width=st._prevWidth:delete st.width,f.has(st,"_prevHeight")?st.height=st._prevHeight:delete st.height,delete st._prevWidth,delete st._prevHeight})}(Tt)};return ut.createNodes=function(tt){return arguments.length?(A=tt,ut):A},ut.createClusters=function(tt){return arguments.length?(I=tt,ut):I},ut.createEdgeLabels=function(tt){return arguments.length?(N=tt,ut):N},ut.createEdgePaths=function(tt){return arguments.length?(P=tt,ut):P},ut.shapes=function(tt){return arguments.length?(X=tt,ut):X},ut.arrows=function(tt){return arguments.length?(K=tt,ut):K},ut};var y={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},x={arrowhead:"normal",curve:l.curveLinear};function E(A,I){var N=A.select("g."+I);return N.empty()&&(N=A.append("g").attr("class",I)),N}},4418:(a,h,s)=>{var f=s(8049),l=s(3260),_=s(6587),y=s(5337);a.exports={rect:function(x,E,A){var I=x.insert("rect",":first-child").attr("rx",A.rx).attr("ry",A.ry).attr("x",-E.width/2).attr("y",-E.height/2).attr("width",E.width).attr("height",E.height);return A.intersect=function(N){return f(A,N)},I},ellipse:function(x,E,A){var I=E.width/2,N=E.height/2,P=x.insert("ellipse",":first-child").attr("x",-E.width/2).attr("y",-E.height/2).attr("rx",I).attr("ry",N);return A.intersect=function(W){return l(A,I,N,W)},P},circle:function(x,E,A){var I=Math.max(E.width,E.height)/2,N=x.insert("circle",":first-child").attr("x",-E.width/2).attr("y",-E.height/2).attr("r",I);return A.intersect=function(P){return _(A,I,P)},N},diamond:function(x,E,A){var I=E.width*Math.SQRT2/2,N=E.height*Math.SQRT2/2,P=[{x:0,y:-N},{x:-I,y:0},{x:0,y:N},{x:I,y:0}],W=x.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 f=s(1034);a.exports={isSubgraph:function(y,x){return!!y.children(x).length},edgeToId:function(y){return _(y.v)+":"+_(y.w)+":"+_(y.name)},applyStyle:function(y,x){x&&y.attr("style",x)},applyClass:function(y,x,E){x&&y.attr("class",x).attr("class",E+" "+y.attr("class"))},applyTransition:function(y,x){var E=x.graph();if(f.isPlainObject(E)){var A=E.transition;if(f.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:()=>Kd,active:()=>p4,arc:()=>M2,area:()=>uh,areaRadial:()=>B2,ascending:()=>l,autoType:()=>F4,axisBottom:()=>ke,axisLeft:()=>Ke,axisRight:()=>Oe,axisTop:()=>Ve,bisect:()=>A,bisectLeft:()=>E,bisectRight:()=>x,bisector:()=>_,blob:()=>Q4,brush:()=>zp,brushSelection:()=>m4,brushX:()=>Fd,brushY:()=>v4,buffer:()=>uv,chord:()=>Hp,clientPoint:()=>iu,cluster:()=>X5,color:()=>Va,contourDensity:()=>Hh,contours:()=>Pi,create:()=>tx,creator:()=>fi,cross:()=>P,csv:()=>lv,csvFormat:()=>M4,csvFormatBody:()=>A4,csvFormatRow:()=>N4,csvFormatRows:()=>D4,csvFormatValue:()=>$m,csvParse:()=>qm,csvParseRows:()=>C4,cubehelix:()=>xa,curveBasis:()=>rb,curveBasisClosed:()=>ox,curveBasisOpen:()=>ib,curveBundle:()=>ab,curveCardinal:()=>sx,curveCardinalClosed:()=>cx,curveCardinalOpen:()=>ux,curveCatmullRom:()=>Y2,curveCatmullRomClosed:()=>j2,curveCatmullRomOpen:()=>tc,curveLinear:()=>sh,curveLinearClosed:()=>Z0,curveMonotoneX:()=>U2,curveMonotoneY:()=>lx,curveNatural:()=>cb,curveStep:()=>ub,curveStepAfter:()=>lb,curveStepBefore:()=>ph,customEvent:()=>ho,descending:()=>W,deviation:()=>X,dispatch:()=>en,drag:()=>zm,dragDisable:()=>ei,dragEnable:()=>Wr,dsv:()=>t5,dsvFormat:()=>qh,easeBack:()=>ov,easeBackIn:()=>G4,easeBackInOut:()=>ov,easeBackOut:()=>X4,easeBounce:()=>$h,easeBounceIn:()=>av,easeBounceInOut:()=>V4,easeBounceOut:()=>$h,easeCircle:()=>iv,easeCircleIn:()=>q4,easeCircleInOut:()=>iv,easeCircleOut:()=>$4,easeCubic:()=>hc,easeCubicIn:()=>Ad,easeCubicInOut:()=>hc,easeCubicOut:()=>Dd,easeElastic:()=>hg,easeElasticIn:()=>Z4,easeElasticInOut:()=>sv,easeElasticOut:()=>hg,easeExp:()=>rv,easeExpIn:()=>nv,easeExpInOut:()=>rv,easeExpOut:()=>H4,easeLinear:()=>Xm,easePoly:()=>Qm,easePolyIn:()=>U4,easePolyInOut:()=>Qm,easePolyOut:()=>z4,easeQuad:()=>Zm,easeQuadIn:()=>Y4,easeQuadInOut:()=>Zm,easeQuadOut:()=>j4,easeSin:()=>ev,easeSinIn:()=>tv,easeSinInOut:()=>ev,easeSinOut:()=>W4,entries:()=>Qp,event:()=>gt,extent:()=>K,forceCenter:()=>i5,forceCollide:()=>c5,forceLink:()=>l5,forceManyBody:()=>p5,forceRadial:()=>g5,forceSimulation:()=>d5,forceX:()=>yv,forceY:()=>yg,format:()=>e1,formatDefaultLocale:()=>kv,formatLocale:()=>wv,formatPrefix:()=>vg,formatSpecifier:()=>Xh,geoAlbers:()=>v_,geoAlbersUsa:()=>Ws,geoArea:()=>m5,geoAzimuthalEqualArea:()=>P5,geoAzimuthalEqualAreaRaw:()=>Kg,geoAzimuthalEquidistant:()=>ey,geoAzimuthalEquidistantRaw:()=>ty,geoBounds:()=>af,geoCentroid:()=>b5,geoCircle:()=>x5,geoClipAntimeridian:()=>Ig,geoClipCircle:()=>$v,geoClipExtent:()=>k5,geoClipRectangle:()=>_1,geoConicConformal:()=>j5,geoConicConformalRaw:()=>ry,geoConicEqualArea:()=>L1,geoConicEqualAreaRaw:()=>m_,geoConicEquidistant:()=>b_,geoConicEquidistantRaw:()=>__,geoContains:()=>Kv,geoDistance:()=>T1,geoEqualEarth:()=>z5,geoEqualEarthRaw:()=>iy,geoEquirectangular:()=>U5,geoEquirectangularRaw:()=>xf,geoGnomonic:()=>x_,geoGnomonicRaw:()=>Ef,geoGraticule:()=>n_,geoGraticule10:()=>A5,geoIdentity:()=>R1,geoInterpolate:()=>D5,geoLength:()=>Vv,geoMercator:()=>Y5,geoMercatorRaw:()=>_f,geoNaturalEarth1:()=>W5,geoNaturalEarth1Raw:()=>ay,geoOrthographic:()=>H5,geoOrthographicRaw:()=>oy,geoPath:()=>B5,geoProjection:()=>Po,geoProjectionMutator:()=>Zg,geoRotation:()=>Og,geoStereographic:()=>q5,geoStereographicRaw:()=>sy,geoStream:()=>Oo,geoTransform:()=>L5,geoTransverseMercator:()=>$5,geoTransverseMercatorRaw:()=>F1,gray:()=>x4,hcl:()=>pc,hierarchy:()=>cy,histogram:()=>Yt,hsl:()=>il,html:()=>dv,image:()=>fv,interpolate:()=>ru,interpolateArray:()=>mp,interpolateBasis:()=>Or,interpolateBasisClosed:()=>eu,interpolateBlues:()=>ah,interpolateBrBG:()=>W6,interpolateBuGn:()=>V6,interpolateBuPu:()=>L3,interpolateCividis:()=>X6,interpolateCool:()=>Z6,interpolateCubehelix:()=>Z1,interpolateCubehelixDefault:()=>k2,interpolateCubehelixLong:()=>Nf,interpolateDate:()=>Ed,interpolateDiscrete:()=>a6,interpolateGnBu:()=>Gf,interpolateGreens:()=>Bu,interpolateGreys:()=>bs,interpolateHcl:()=>ds,interpolateHclLong:()=>jo,interpolateHsl:()=>o6,interpolateHslLong:()=>s6,interpolateHue:()=>$1,interpolateInferno:()=>K6,interpolateLab:()=>G1,interpolateMagma:()=>ao,interpolateNumber:()=>va,interpolateNumberArray:()=>Ch,interpolateObject:()=>Sd,interpolateOrRd:()=>y2,interpolateOranges:()=>I0,interpolatePRGn:()=>A0,interpolatePiYG:()=>Ou,interpolatePlasma:()=>H3,interpolatePuBu:()=>R3,interpolatePuBuGn:()=>Ua,interpolatePuOr:()=>B3,interpolatePuRd:()=>Lc,interpolatePurples:()=>x2,interpolateRainbow:()=>U3,interpolateRdBu:()=>ih,interpolateRdGy:()=>H6,interpolateRdPu:()=>F3,interpolateRdYlBu:()=>D0,interpolateRdYlGn:()=>q6,interpolateReds:()=>w2,interpolateRgb:()=>lc,interpolateRgbBasis:()=>ol,interpolateRgbBasisClosed:()=>So,interpolateRound:()=>py,interpolateSinebow:()=>ar,interpolateSpectral:()=>$6,interpolateString:()=>Co,interpolateTransformCss:()=>_p,interpolateTransformSvg:()=>bp,interpolateTurbo:()=>Q6,interpolateViridis:()=>J6,interpolateWarm:()=>j3,interpolateYlGn:()=>_2,interpolateYlGnBu:()=>P3,interpolateYlOrBr:()=>Zs,interpolateYlOrRd:()=>G6,interpolateZoom:()=>V1,interrupt:()=>ba,interval:()=>vb,isoFormat:()=>yb,isoParse:()=>mb,json:()=>n5,keys:()=>Ph,lab:()=>Yh,lch:()=>tg,line:()=>ch,lineRadial:()=>O2,linkHorizontal:()=>J3,linkRadial:()=>_o,linkVertical:()=>Pc,local:()=>q3,map:()=>Is,matcher:()=>cn,max:()=>Bt,mean:()=>zt,median:()=>ce,merge:()=>he,min:()=>ge,mouse:()=>Ds,namespace:()=>En,namespaces:()=>Dr,nest:()=>b4,now:()=>$,pack:()=>e6,packEnclose:()=>T_,packSiblings:()=>N_,pairs:()=>I,partition:()=>Yo,path:()=>Ls,permute:()=>It,pie:()=>V3,piecewise:()=>yy,pointRadial:()=>ks,polygonArea:()=>j_,polygonCentroid:()=>c6,polygonContains:()=>vy,polygonHull:()=>my,polygonLength:()=>z_,precisionFixed:()=>_g,precisionPrefix:()=>Tv,precisionRound:()=>Ev,quadtree:()=>Vh,quantile:()=>_e,quantize:()=>Y_,radialArea:()=>B2,radialLine:()=>O2,randomBates:()=>gs,randomExponential:()=>h6,randomIrwinHall:()=>Wl,randomLogNormal:()=>zl,randomNormal:()=>Of,randomUniform:()=>Q1,range:()=>_t,rgb:()=>Hi,ribbon:()=>Vp,scaleBand:()=>t0,scaleDiverging:()=>Aa,scaleDivergingLog:()=>Ni,scaleDivergingPow:()=>pr,scaleDivergingSqrt:()=>Vo,scaleDivergingSymlog:()=>ms,scaleIdentity:()=>ky,scaleImplicit:()=>_y,scaleLinear:()=>wy,scaleLog:()=>G_,scaleOrdinal:()=>K1,scalePoint:()=>Bf,scalePow:()=>My,scaleQuantile:()=>K_,scaleQuantize:()=>t3,scaleSequential:()=>qf,scaleSequentialLog:()=>c2,scaleSequentialPow:()=>u2,scaleSequentialQuantile:()=>S0,scaleSequentialSqrt:()=>I6,scaleSequentialSymlog:()=>N3,scaleSqrt:()=>y6,scaleSymlog:()=>Q_,scaleThreshold:()=>e3,scaleTime:()=>eh,scaleUtc:()=>L6,scan:()=>We,schemeAccent:()=>R6,schemeBlues:()=>b2,schemeBrBG:()=>l2,schemeBuGn:()=>p2,schemeBuPu:()=>N0,schemeCategory10:()=>C0,schemeDark2:()=>F6,schemeGnBu:()=>g2,schemeGreens:()=>ci,schemeGreys:()=>Lu,schemeOrRd:()=>O0,schemeOranges:()=>Qf,schemePRGn:()=>rh,schemePaired:()=>M0,schemePastel1:()=>O3,schemePastel2:()=>P6,schemePiYG:()=>vs,schemePuBu:()=>I3,schemePuBuGn:()=>m2,schemePuOr:()=>$f,schemePuRd:()=>_s,schemePurples:()=>Zf,schemeRdBu:()=>h2,schemeRdGy:()=>f2,schemeRdPu:()=>jr,schemeRdYlBu:()=>d2,schemeRdYlGn:()=>Zi,schemeReds:()=>L0,schemeSet1:()=>Y6,schemeSet2:()=>j6,schemeSet3:()=>U6,schemeSpectral:()=>Vf,schemeTableau10:()=>z6,schemeYlGn:()=>Y3,schemeYlGnBu:()=>v2,schemeYlOrBr:()=>B0,schemeYlOrRd:()=>Xf,select:()=>mr,selectAll:()=>nx,selection:()=>$a,selector:()=>Ir,selectorAll:()=>tr,set:()=>dc,shuffle:()=>oe,stack:()=>sd,stackOffsetDiverging:()=>Ts,stackOffsetExpand:()=>Uc,stackOffsetNone:()=>gh,stackOffsetSilhouette:()=>hb,stackOffsetWiggle:()=>fb,stackOrderAppearance:()=>W2,stackOrderAscending:()=>J0,stackOrderDescending:()=>ec,stackOrderInsideOut:()=>cd,stackOrderNone:()=>Qe,stackOrderReverse:()=>ju,stratify:()=>z1,style:()=>ii,sum:()=>Wt,svg:()=>Jd,symbol:()=>jc,symbolCircle:()=>L2,symbolCross:()=>K3,symbolDiamond:()=>Oi,symbolSquare:()=>nd,symbolStar:()=>R2,symbolTriangle:()=>F2,symbolWye:()=>eb,symbols:()=>nb,text:()=>ml,thresholdFreedmanDiaconis:()=>pe,thresholdScott:()=>de,thresholdSturges:()=>ae,tickFormat:()=>zo,tickIncrement:()=>Ot,tickStep:()=>st,ticks:()=>kt,timeDay:()=>si,timeDays:()=>Vl,timeFormat:()=>jf,timeFormatDefaultLocale:()=>qo,timeFormatLocale:()=>h3,timeFriday:()=>ql,timeFridays:()=>$l,timeHour:()=>i3,timeHours:()=>Wo,timeInterval:()=>ji,timeMillisecond:()=>Xl,timeMilliseconds:()=>o3,timeMinute:()=>Pf,timeMinutes:()=>l0,timeMonday:()=>Hl,timeMondays:()=>s0,timeMonth:()=>Ny,timeMonths:()=>Vs,timeParse:()=>f3,timeSaturday:()=>Xs,timeSaturdays:()=>r3,timeSecond:()=>Gl,timeSeconds:()=>a3,timeSunday:()=>Tu,timeSundays:()=>Ly,timeThursday:()=>Gs,timeThursdays:()=>c0,timeTuesday:()=>o0,timeTuesdays:()=>Iy,timeWednesday:()=>n3,timeWednesdays:()=>v6,timeWeek:()=>Tu,timeWeeks:()=>Ly,timeYear:()=>xu,timeYears:()=>m6,timeout:()=>qe,timer:()=>fe,timerFlush:()=>xe,touch:()=>_a,touches:()=>rx,transition:()=>Md,transpose:()=>Gt,tree:()=>Yl,treemap:()=>q1,treemapBinary:()=>Df,treemapDice:()=>Cf,treemapResquarify:()=>dy,treemapSlice:()=>Mc,treemapSliceDice:()=>F_,treemapSquarify:()=>Ac,tsv:()=>hv,tsvFormat:()=>Gm,tsvFormatBody:()=>B4,tsvFormatRow:()=>I4,tsvFormatRows:()=>L4,tsvFormatValue:()=>R4,tsvParse:()=>Vm,tsvParseRows:()=>O4,utcDay:()=>Di,utcDays:()=>Cr,utcFormat:()=>p0,utcFriday:()=>Fy,utcFridays:()=>d0,utcHour:()=>D3,utcHours:()=>B6,utcMillisecond:()=>Xl,utcMilliseconds:()=>o3,utcMinute:()=>Nu,utcMinutes:()=>s2,utcMonday:()=>Nc,utcMondays:()=>_6,utcMonth:()=>i2,utcMonths:()=>a2,utcParse:()=>Uf,utcSaturday:()=>Py,utcSaturdays:()=>b6,utcSecond:()=>Gl,utcSeconds:()=>a3,utcSunday:()=>Yf,utcSundays:()=>c3,utcThursday:()=>Oc,utcThursdays:()=>Su,utcTuesday:()=>Ry,utcTuesdays:()=>u3,utcWednesday:()=>s3,utcWednesdays:()=>l3,utcWeek:()=>Yf,utcWeeks:()=>c3,utcYear:()=>mi,utcYears:()=>jy,values:()=>Zp,variance:()=>V,version:()=>f,voronoi:()=>G2,window:()=>Ln,xml:()=>r5,zip:()=>re,zoom:()=>bx,zoomIdentity:()=>Wu,zoomTransform:()=>X2});var f="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),x=y.right,E=y.left;const A=x;function I(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,w=n.length,C=i.length,D=new Array(w*C);for(c==null&&(c=N),u=v=0;u<w;++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,w=0,C=0;if(i==null)for(;++k<g;)isNaN(c=H(n[k]))||(C+=(u=c-w)*(c-(w+=u/++v)));else for(;++k<g;)isNaN(c=H(i(n[k],k,n)))||(C+=(u=c-w)*(c-(w+=u/++v)));if(v>1)return C/(v-1)}function X(n,i){var c=V(n,i);return c&&Math.sqrt(c)}function K(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 ut=Array.prototype,tt=ut.slice,Tt=ut.map;function ht(n){return function(){return n}}function dt(n){return n}function _t(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 J=Math.sqrt(50),bt=Math.sqrt(10),Pt=Math.sqrt(2);function kt(n,i,c){var u,g,v,k,w=-1;if(c=+c,(n=+n)==(i=+i)&&c>0)return[n];if((u=i<n)&&(g=n,n=i,i=g),(k=Ot(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));++w<g;)v[w]=(n+w)*k;else for(n=Math.floor(n*k),i=Math.ceil(i*k),v=new Array(g=Math.ceil(n-i+1));++w<g;)v[w]=(n-w)/k;return u&&v.reverse(),v}function Ot(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>=J?10:v>=bt?5:v>=Pt?2:1)*Math.pow(10,g):-Math.pow(10,-g)/(v>=J?10:v>=bt?5:v>=Pt?2:1)}function st(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>=J?g*=10:v>=bt?g*=5:v>=Pt&&(g*=2),i<n?-g:g}function ae(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Yt(){var n=dt,i=K,c=ae;function u(g){var v,k,w=g.length,C=new Array(w);for(v=0;v<w;++v)C[v]=n(g[v],v,g);var D=i(C),B=D[0],Y=D[1],L=c(C,B,Y);Array.isArray(L)||(L=st(B,Y,L),L=_t(Math.ceil(B/L)*L,Y,L));for(var z=L.length;L[0]<=B;)L.shift(),--z;for(;L[z-1]>Y;)L.pop(),--z;var q,Q=new Array(z+1);for(v=0;v<=z;++v)(q=Q[v]=[]).x0=v>0?L[v-1]:B,q.x1=v<z?L[v]:Y;for(v=0;v<w;++v)B<=(k=C[v])&&k<=Y&&Q[A(L,k,0,z)].push(g[v]);return Q}return u.value=function(g){return arguments.length?(n=typeof g=="function"?g:ht(g),u):n},u.domain=function(g){return arguments.length?(i=typeof g=="function"?g:ht([g[0],g[1]]),u):i},u.thresholds=function(g){return arguments.length?(c=typeof g=="function"?g:Array.isArray(g)?ht(tt.call(g)):ht(g),u):c},u}function _e(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 pe(n,i,c){return n=Tt.call(n,H).sort(l),Math.ceil((c-i)/(2*(_e(n,.75)-_e(n,.25))*Math.pow(n.length,-1/3)))}function de(n,i,c){return Math.ceil((c-i)/(3.5*X(n)*Math.pow(n.length,-1/3)))}function Bt(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 zt(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 ce(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 _e(v.sort(l),.5)}function he(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 It(n,i){for(var c=i.length,u=new Array(c);c--;)u[c]=n[i[c]];return u}function We(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 oe(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 Wt(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 Gt(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 re(){return Gt(arguments)}var Mt=Array.prototype.slice;function qt(n){return n}var $t=1e-6;function At(n){return"translate("+(n+.5)+",0)"}function ne(n){return"translate(0,"+(n+.5)+")"}function tn(n){return function(i){return+n(i)}}function ye(n){var i=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(i=Math.round(i)),function(c){return+n(c)+i}}function Re(){return!this.__axis}function un(n,i){var c=[],u=null,g=null,v=6,k=6,w=3,C=n===1||n===4?-1:1,D=n===4||n===2?"x":"y",B=n===1||n===3?At:ne;function Y(L){var z=u==null?i.ticks?i.ticks.apply(i,c):i.domain():u,q=g==null?i.tickFormat?i.tickFormat.apply(i,c):qt:g,Q=Math.max(v,0)+w,Z=i.range(),G=+Z[0]+.5,nt=+Z[Z.length-1]+.5,et=(i.bandwidth?ye:tn)(i.copy()),lt=L.selection?L.selection():L,Ft=lt.selectAll(".domain").data([null]),Lt=lt.selectAll(".tick").data(z,i).order(),Qt=Lt.exit(),be=Lt.enter().append("g").attr("class","tick"),Ut=Lt.select("line"),se=Lt.select("text");Ft=Ft.merge(Ft.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Lt=Lt.merge(be),Ut=Ut.merge(be.append("line").attr("stroke","currentColor").attr(D+"2",C*v)),se=se.merge(be.append("text").attr("fill","currentColor").attr(D,C*Q).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),L!==lt&&(Ft=Ft.transition(L),Lt=Lt.transition(L),Ut=Ut.transition(L),se=se.transition(L),Qt=Qt.transition(L).attr("opacity",$t).attr("transform",function(ct){return isFinite(ct=et(ct))?B(ct):this.getAttribute("transform")}),be.attr("opacity",$t).attr("transform",function(ct){var Et=this.parentNode.__axis;return B(Et&&isFinite(Et=Et(ct))?Et:et(ct))})),Qt.remove(),Ft.attr("d",n===4||n==2?k?"M"+C*k+","+G+"H0.5V"+nt+"H"+C*k:"M0.5,"+G+"V"+nt:k?"M"+G+","+C*k+"V0.5H"+nt+"V"+C*k:"M"+G+",0.5H"+nt),Lt.attr("opacity",1).attr("transform",function(ct){return B(et(ct))}),Ut.attr(D+"2",C*v),se.attr(D,C*Q).text(q),lt.filter(Re).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),lt.each(function(){this.__axis=et})}return Y.scale=function(L){return arguments.length?(i=L,Y):i},Y.ticks=function(){return c=Mt.call(arguments),Y},Y.tickArguments=function(L){return arguments.length?(c=L==null?[]:Mt.call(L),Y):c.slice()},Y.tickValues=function(L){return arguments.length?(u=L==null?null:Mt.call(L),Y):u&&u.slice()},Y.tickFormat=function(L){return arguments.length?(g=L,Y):g},Y.tickSize=function(L){return arguments.length?(v=k=+L,Y):v},Y.tickSizeInner=function(L){return arguments.length?(v=+L,Y):v},Y.tickSizeOuter=function(L){return arguments.length?(k=+L,Y):k},Y.tickPadding=function(L){return arguments.length?(w=+L,Y):w},Y}function Ve(n){return un(1,n)}function Oe(n){return un(2,n)}function ke(n){return un(3,n)}function Ke(n){return un(4,n)}var Ye={value:function(){}};function Ge(){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 Xe(u)}function Xe(n){this._=n}function De(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 Un(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]=Ye,n=n.slice(0,u).concat(n.slice(u+1));break}return c!=null&&n.push({name:i,value:c}),n}Xe.prototype=Ge.prototype={constructor:Xe,on:function(n,i){var c,u=this._,g=De(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=Un(u[c],n.name)))return c},copy:function(){var n={},i=this._;for(var c in i)n[c]=i[c].slice();return new Xe(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 en=Ge;function bn(){}function Ir(n){return n==null?bn:function(){return this.querySelector(n)}}function xn(){return[]}function tr(n){return n==null?xn:function(){return this.querySelectorAll(n)}}function cn(n){return function(){return this.matches(n)}}function yn(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 Sn(n,i,c,u,g,v){for(var k,w=0,C=i.length,D=v.length;w<D;++w)(k=i[w])?(k.__data__=v[w],u[w]=k):c[w]=new Ze(n,v[w]);for(;w<C;++w)(k=i[w])&&(g[w]=k)}function Tn(n,i,c,u,g,v,k){var w,C,D,B={},Y=i.length,L=v.length,z=new Array(Y);for(w=0;w<Y;++w)(C=i[w])&&(z[w]=D="$"+k.call(C,C.__data__,w,i),D in B?g[w]=C:B[D]=C);for(w=0;w<L;++w)(C=B[D="$"+k.call(n,v[w],w,v)])?(u[w]=C,C.__data__=v[w],B[D]=null):c[w]=new Ze(n,v[w]);for(w=0;w<Y;++w)(C=i[w])&&B[z[w]]===C&&(g[w]=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 Wn="http://www.w3.org/1999/xhtml";const Dr={svg:"http://www.w3.org/2000/svg",xhtml:Wn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function En(n){var i=n+="",c=i.indexOf(":");return c>=0&&(i=n.slice(0,c))!=="xmlns"&&(n=n.slice(c+1)),Dr.hasOwnProperty(i)?{space:Dr[i],local:n}:n}function qn(n){return function(){this.removeAttribute(n)}}function Pn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Gn(n,i){return function(){this.setAttribute(n,i)}}function Xn(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function er(n,i){return function(){var c=i.apply(this,arguments);c==null?this.removeAttribute(n):this.setAttribute(n,c)}}function Nn(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 Ln(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function ln(n){return function(){this.style.removeProperty(n)}}function Yn(n,i,c){return function(){this.style.setProperty(n,i,c)}}function vn(n,i,c){return function(){var u=i.apply(this,arguments);u==null?this.style.removeProperty(n):this.style.setProperty(n,u,c)}}function ii(n,i){return n.style.getPropertyValue(i)||Ln(n).getComputedStyle(n,null).getPropertyValue(i)}function yr(n){return function(){delete this[n]}}function Ji(n,i){return function(){this[n]=i}}function In(n,i){return function(){var c=i.apply(this,arguments);c==null?delete this[n]:this[n]=c}}function ko(n){return n.trim().split(/^|\s+/)}function ga(n){return n.classList||new ai(n)}function ai(n){this._node=n,this._names=ko(n.getAttribute("class")||"")}function Rr(n,i){for(var c=ga(n),u=-1,g=i.length;++u<g;)c.add(i[u])}function zr(n,i){for(var c=ga(n),u=-1,g=i.length;++u<g;)c.remove(i[u])}function Xr(n){return function(){Rr(this,n)}}function Jr(n){return function(){zr(this,n)}}function Nr(n,i){return function(){(i.apply(this,arguments)?Rr:zr)(this,n)}}function Kr(){this.textContent=""}function Fr(n){return function(){this.textContent=n}}function Li(n){return function(){var i=n.apply(this,arguments);this.textContent=i==null?"":i}}function hi(){this.innerHTML=""}function rr(n){return function(){this.innerHTML=n}}function $r(n){return function(){var i=n.apply(this,arguments);this.innerHTML=i==null?"":i}}function ya(){this.nextSibling&&this.parentNode.appendChild(this)}function ti(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ma(n){return function(){var i=this.ownerDocument,c=this.namespaceURI;return c===Wn&&i.documentElement.namespaceURI===Wn?i.createElement(n):i.createElementNS(c,n)}}function lo(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function fi(n){var i=En(n);return(i.local?lo:ma)(i)}function nn(){return null}function Zn(){var n=this.parentNode;n&&n.removeChild(this)}function Mn(){var n=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function Be(){var n=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}ai.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 Qn={},gt=null;function Zr(n,i,c){return n=Xt(n,i,c),function(u){var g=u.relatedTarget;g&&(g===this||8&g.compareDocumentPosition(this))||n.call(this,u)}}function Xt(n,i,c){return function(u){var g=gt;gt=u;try{n.call(this,this.__data__,i,c)}finally{gt=g}}}function Ii(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 fa(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 qa(n,i,c){var u=Qn.hasOwnProperty(n.type)?Zr:Xt;return function(g,v,k){var w,C=this.__on,D=u(i,v,k);if(C){for(var B=0,Y=C.length;B<Y;++B)if((w=C[B]).type===n.type&&w.name===n.name)return this.removeEventListener(w.type,w.listener,w.capture),this.addEventListener(w.type,w.listener=D,w.capture=c),void(w.value=i)}this.addEventListener(n.type,D,c),w={type:n.type,name:n.name,value:i,listener:D,capture:c},C?C.push(w):this.__on=[w]}}function ho(n,i,c,u){var g=gt;n.sourceEvent=gt,gt=n;try{return i.apply(c,u)}finally{gt=g}}function To(n,i,c){var u=Ln(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 Eo(n,i){return function(){return To(this,n,i)}}function Vr(n,i){return function(){return To(this,n,i.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||(Qn={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ki=[null];function An(n,i){this._groups=n,this._parents=i}function Ba(){return new An([[document.documentElement]],Ki)}An.prototype=Ba.prototype={constructor:An,select:function(n){typeof n!="function"&&(n=Ir(n));for(var i=this._groups,c=i.length,u=new Array(c),g=0;g<c;++g)for(var v,k,w=i[g],C=w.length,D=u[g]=new Array(C),B=0;B<C;++B)(v=w[B])&&(k=n.call(v,v.__data__,B,w))&&("__data__"in v&&(k.__data__=v.__data__),D[B]=k);return new An(u,this._parents)},selectAll:function(n){typeof n!="function"&&(n=tr(n));for(var i=this._groups,c=i.length,u=[],g=[],v=0;v<c;++v)for(var k,w=i[v],C=w.length,D=0;D<C;++D)(k=w[D])&&(u.push(n.call(k,k.__data__,D,w)),g.push(k));return new An(u,g)},filter:function(n){typeof n!="function"&&(n=cn(n));for(var i=this._groups,c=i.length,u=new Array(c),g=0;g<c;++g)for(var v,k=i[g],w=k.length,C=u[g]=[],D=0;D<w;++D)(v=k[D])&&n.call(v,v.__data__,D,k)&&C.push(v);return new An(u,this._parents)},data:function(n,i){if(!n)return q=new Array(this.size()),B=-1,this.each(function(Lt){q[++B]=Lt}),q;var c,u=i?Tn:Sn,g=this._parents,v=this._groups;typeof n!="function"&&(c=n,n=function(){return c});for(var k=v.length,w=new Array(k),C=new Array(k),D=new Array(k),B=0;B<k;++B){var Y=g[B],L=v[B],z=L.length,q=n.call(Y,Y&&Y.__data__,B,g),Q=q.length,Z=C[B]=new Array(Q),G=w[B]=new Array(Q);u(Y,L,Z,G,D[B]=new Array(z),q,i);for(var nt,et,lt=0,Ft=0;lt<Q;++lt)if(nt=Z[lt]){for(lt>=Ft&&(Ft=lt+1);!(et=G[Ft])&&++Ft<Q;);nt._next=et||null}}return(w=new An(w,g))._enter=C,w._exit=D,w},enter:function(){return new An(this._enter||this._groups.map(yn),this._parents)},exit:function(){return new An(this._exit||this._groups.map(yn),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),w=0;w<v;++w)for(var C,D=i[w],B=c[w],Y=D.length,L=k[w]=new Array(Y),z=0;z<Y;++z)(C=D[z]||B[z])&&(L[z]=C);for(;w<u;++w)k[w]=i[w];return new An(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,L){return Y&&L?n(Y.__data__,L.__data__):!Y-!L}n||(n=zn);for(var c=this._groups,u=c.length,g=new Array(u),v=0;v<u;++v){for(var k,w=c[v],C=w.length,D=g[v]=new Array(C),B=0;B<C;++B)(k=w[B])&&(D[B]=k);D.sort(i)}return new An(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,w=v.length;k<w;++k)(g=v[k])&&n.call(g,g.__data__,k,v);return this},attr:function(n,i){var c=En(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?Pn:qn:typeof i=="function"?c.local?Nn:er:c.local?Xn:Gn)(c,i))},style:function(n,i,c){return arguments.length>1?this.each((i==null?ln:typeof i=="function"?vn:Yn)(n,i,c==null?"":c)):ii(this.node(),n)},property:function(n,i){return arguments.length>1?this.each((i==null?yr:typeof i=="function"?In:Ji)(n,i)):this.node()[n]},classed:function(n,i){var c=ko(n+"");if(arguments.length<2){for(var u=ga(this.node()),g=-1,v=c.length;++g<v;)if(!u.contains(c[g]))return!1;return!0}return this.each((typeof i=="function"?Nr:i?Xr:Jr)(c,i))},text:function(n){return arguments.length?this.each(n==null?Kr:(typeof n=="function"?Li:Fr)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?hi:(typeof n=="function"?$r:rr)(n)):this.node().innerHTML},raise:function(){return this.each(ya)},lower:function(){return this.each(ti)},append:function(n){var i=typeof n=="function"?n:fi(n);return this.select(function(){return this.appendChild(i.apply(this,arguments))})},insert:function(n,i){var c=typeof n=="function"?n:fi(n),u=i==null?nn:typeof i=="function"?i:Ir(i);return this.select(function(){return this.insertBefore(c.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(Zn)},clone:function(n){return this.select(n?Be:Mn)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,i,c){var u,g,v=Ii(n+""),k=v.length;if(!(arguments.length<2)){for(w=i?qa:fa,c==null&&(c=!1),u=0;u<k;++u)this.each(w(v[u],i,c));return this}var w=this.node().__on;if(w){for(var C,D=0,B=w.length;D<B;++D)for(u=0,C=w[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"?Vr:Eo)(n,i))}};const $a=Ba;function mr(n){return typeof n=="string"?new An([[document.querySelector(n)]],[document.documentElement]):new An([[n]],Ki)}function Sr(){gt.stopImmediatePropagation()}function bi(){gt.preventDefault(),gt.stopImmediatePropagation()}function ei(n){var i=n.document.documentElement,c=mr(n).on("dragstart.drag",bi,!0);"onselectstart"in i?c.on("selectstart.drag",bi,!0):(i.__noselect=i.style.MozUserSelect,i.style.MozUserSelect="none")}function Wr(n,i){var c=n.document.documentElement,u=mr(n).on("dragstart.drag",null);i&&(u.on("click.drag",bi,!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 Hr(n,i,c){n.prototype=i.prototype=c,c.constructor=n}function di(n,i){var c=Object.create(n.prototype);for(var u in i)c[u]=i[u];return c}function Qr(){}var ta=.7,Wi=1/ta,Ri="\\s*([+-]?\\d+)\\s*",fo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",je=/^#([0-9a-f]{3,8})$/,Fe=new RegExp("^rgb\\("+[Ri,Ri,Ri]+"\\)$"),vr=new RegExp("^rgb\\("+[Rt,Rt,Rt]+"\\)$"),_r=new RegExp("^rgba\\("+[Ri,Ri,Ri,fo]+"\\)$"),xi=new RegExp("^rgba\\("+[Rt,Rt,Rt,fo]+"\\)$"),ni=new RegExp("^hsl\\("+[fo,Rt,Rt]+"\\)$"),cc=new RegExp("^hsla\\("+[fo,Rt,Rt,fo]+"\\)$"),wi={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 Ai(){return this.rgb().formatHex()}function uc(){return this.rgb().formatRgb()}function Va(n){var i,c;return n=(n+"").trim().toLowerCase(),(i=je.exec(n))?(c=i[1].length,i=parseInt(i[1],16),c===6?Kc(i):c===3?new ri(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):c===8?po(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):c===4?po(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=Fe.exec(n))?new ri(i[1],i[2],i[3],1):(i=vr.exec(n))?new ri(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=_r.exec(n))?po(i[1],i[2],i[3],i[4]):(i=xi.exec(n))?po(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=ni.exec(n))?Ga(i[1],i[2]/100,i[3]/100,1):(i=cc.exec(n))?Ga(i[1],i[2]/100,i[3]/100,i[4]):wi.hasOwnProperty(n)?Kc(wi[n]):n==="transparent"?new ri(NaN,NaN,NaN,0):null}function Kc(n){return new ri(n>>16&255,n>>8&255,255&n,1)}function po(n,i,c,u){return u<=0&&(n=i=c=NaN),new ri(n,i,c,u)}function tu(n){return n instanceof Qr||(n=Va(n)),n?new ri((n=n.rgb()).r,n.g,n.b,n.opacity):new ri}function Hi(n,i,c,u){return arguments.length===1?tu(n):new ri(n,i,c,u==null?1:u)}function ri(n,i,c,u){this.r=+n,this.g=+i,this.b=+c,this.opacity=+u}function tl(){return"#"+nl(this.r)+nl(this.g)+nl(this.b)}function el(){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 nl(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Ga(n,i,c,u){return u<=0?n=i=c=NaN:c<=0||c>=1?n=i=NaN:i<=0&&(n=NaN),new Xa(n,i,c,u)}function rl(n){if(n instanceof Xa)return new Xa(n.h,n.s,n.l,n.opacity);if(n instanceof Qr||(n=Va(n)),!n)return new Xa;if(n instanceof Xa)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,w=v-g,C=(v+g)/2;return w?(k=i===v?(c-u)/w+6*(c<u):c===v?(u-i)/w+2:(i-c)/w+4,w/=C<.5?v+g:2-v-g,k*=60):w=C>0&&C<1?0:k,new Xa(k,w,C,n.opacity)}function il(n,i,c,u){return arguments.length===1?rl(n):new Xa(n,i,c,u==null?1:u)}function Xa(n,i,c,u){this.h=+n,this.s=+i,this.l=+c,this.opacity=+u}function Ie(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 Eh(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 Or(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,w=u<i-1?n[u+2]:2*v-g;return Eh((c-u/i)*i,k,g,v,w)}}function eu(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],w=n[(u+2)%i];return Eh((c-u/i)*i,g,v,k,w)}}function nu(n){return function(){return n}}function al(n,i){return function(c){return n+c*i}}function La(n,i){var c=i-n;return c?al(n,c>180||c<-180?c-360*Math.round(c/360):c):nu(isNaN(n)?i:n)}function ki(n,i){var c=i-n;return c?al(n,c):nu(isNaN(n)?i:n)}Hr(Qr,Va,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Ai,formatHex:Ai,formatHsl:function(){return rl(this).formatHsl()},formatRgb:uc,toString:uc}),Hr(ri,Hi,di(Qr,{brighter:function(n){return n=n==null?Wi:Math.pow(Wi,n),new ri(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?ta:Math.pow(ta,n),new ri(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:tl,formatHex:tl,formatRgb:el,toString:el})),Hr(Xa,il,di(Qr,{brighter:function(n){return n=n==null?Wi:Math.pow(Wi,n),new Xa(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?ta:Math.pow(ta,n),new Xa(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 ri(Ie(n>=240?n-240:n+120,g,u),Ie(n,g,u),Ie(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 lc=function n(i){var c=function(g){return(g=+g)==1?ki:function(v,k){return k-v?function(w,C,D){return w=Math.pow(w,D),C=Math.pow(C,D)-w,D=1/D,function(B){return Math.pow(w+B*C,D)}}(v,k,g):nu(isNaN(v)?k:v)}}(i);function u(g,v){var k=c((g=Hi(g)).r,(v=Hi(v)).r),w=c(g.g,v.g),C=c(g.b,v.b),D=ki(g.opacity,v.opacity);return function(B){return g.r=k(B),g.g=w(B),g.b=C(B),g.opacity=D(B),g+""}}return u.gamma=n,u}(1);function Sh(n){return function(i){var c,u,g=i.length,v=new Array(g),k=new Array(g),w=new Array(g);for(c=0;c<g;++c)u=Hi(i[c]),v[c]=u.r||0,k[c]=u.g||0,w[c]=u.b||0;return v=n(v),k=n(k),w=n(w),u.opacity=1,function(C){return u.r=v(C),u.g=k(C),u.b=w(C),u+""}}}var ol=Sh(Or),So=Sh(eu);function Ch(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 kd(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function mp(n,i){return(kd(i)?Ch:Td)(n,i)}function Td(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]=ru(n[c],i[c]);for(;c<u;++c)k[c]=i[c];return function(w){for(c=0;c<g;++c)k[c]=v[c](w);return k}}function Ed(n,i){var c=new Date;return n=+n,i=+i,function(u){return c.setTime(n*(1-u)+i*u),c}}function va(n,i){return n=+n,i=+i,function(c){return n*(1-c)+i*c}}function Sd(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]=ru(n[c],i[c]):g[c]=i[c];return function(v){for(c in u)g[c]=u[c](v);return g}}var Mh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ah=new RegExp(Mh.source,"g");function Co(n,i){var c,u,g,v=Mh.lastIndex=Ah.lastIndex=0,k=-1,w=[],C=[];for(n+="",i+="";(c=Mh.exec(n))&&(u=Ah.exec(i));)(g=u.index)>v&&(g=i.slice(v,g),w[k]?w[k]+=g:w[++k]=g),(c=c[0])===(u=u[0])?w[k]?w[k]+=u:w[++k]=u:(w[++k]=null,C.push({i:k,x:va(c,u)})),v=Ah.lastIndex;return v<i.length&&(g=i.slice(v),w[k]?w[k]+=g:w[++k]=g),w.length<2?C[0]?function(D){return function(B){return D(B)+""}}(C[0].x):function(D){return function(){return D}}(i):(i=C.length,function(D){for(var B,Y=0;Y<i;++Y)w[(B=C[Y]).i]=B.x(D);return w.join("")})}function ru(n,i){var c,u=typeof i;return i==null||u==="boolean"?nu(i):(u==="number"?va:u==="string"?(c=Va(i))?(i=c,lc):Co:i instanceof Va?lc:i instanceof Date?Ed:kd(i)?Ch:Array.isArray(i)?Td:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?Sd:va)(n,i)}function Za(){for(var n,i=gt;n=i.sourceEvent;)i=n;return i}function iu(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 _a(n,i,c){arguments.length<3&&(c=i,i=Za().changedTouches);for(var u,g=0,v=i?i.length:0;g<v;++g)if((u=i[g]).identifier===c)return iu(n,u);return null}function Ds(n){var i=Za();return i.changedTouches&&(i=i.changedTouches[0]),iu(n,i)}var sl,Mo,qi=0,pi=0,Qa=0,Ia=0,ea=0,Hn=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 $(){return ea||(R(at),ea=M.now()+Hn)}function at(){ea=0}function Vt(){this._call=this._time=this._next=null}function fe(n,i,c){var u=new Vt;return u.restart(n,i,c),u}function xe(){$(),++qi;for(var n,i=sl;i;)(n=ea-i._time)>=0&&i._call.call(null,n),i=i._next;--qi}function Ee(){ea=(Ia=M.now())+Hn,qi=pi=0;try{xe()}finally{qi=0,function(){for(var n,i,c=sl,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:sl=i);Mo=n,Pe(u)}(),ea=0}}function Ce(){var n=M.now(),i=n-Ia;i>1e3&&(Hn-=i,Ia=n)}function Pe(n){qi||(pi&&(pi=clearTimeout(pi)),n-ea>24?(n<1/0&&(pi=setTimeout(Ee,n-M.now()-Hn)),Qa&&(Qa=clearInterval(Qa))):(Qa||(Ia=M.now(),Qa=setInterval(Ce,1e3)),qi=1,R(Ee)))}function qe(n,i,c){var u=new Vt;return i=i==null?0:+i,u.restart(function(g){u.stop(),n(g+i)},i,c),u}Vt.prototype=fe.prototype={constructor:Vt,restart:function(n,i,c){if(typeof n!="function")throw new TypeError("callback is not a function");c=(c==null?$():+c)+(i==null?0:+i),this._next||Mo===this||(Mo?Mo._next=this:sl=this,Mo=this),this._call=n,this._time=c,Pe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pe())}};var kn=en("start","end","cancel","interrupt"),dn=[];function hr(n,i,c,u,g,v){var k=n.__transition;if(k){if(c in k)return}else n.__transition={};(function(w,C,D){var B,Y=w.__transition;function L(Q){var Z,G,nt,et;if(D.state!==1)return q();for(Z in Y)if((et=Y[Z]).name===D.name){if(et.state===3)return qe(L);et.state===4?(et.state=6,et.timer.stop(),et.on.call("interrupt",w,w.__data__,et.index,et.group),delete Y[Z]):+Z<C&&(et.state=6,et.timer.stop(),et.on.call("cancel",w,w.__data__,et.index,et.group),delete Y[Z])}if(qe(function(){D.state===3&&(D.state=4,D.timer.restart(z,D.delay,D.time),z(Q))}),D.state=2,D.on.call("start",w,w.__data__,D.index,D.group),D.state===2){for(D.state=3,B=new Array(nt=D.tween.length),Z=0,G=-1;Z<nt;++Z)(et=D.tween[Z].value.call(w,w.__data__,D.index,D.group))&&(B[++G]=et);B.length=G+1}}function z(Q){for(var Z=Q<D.duration?D.ease.call(null,Q/D.duration):(D.timer.restart(q),D.state=5,1),G=-1,nt=B.length;++G<nt;)B[G].call(w,Z);D.state===5&&(D.on.call("end",w,w.__data__,D.index,D.group),q())}function q(){for(var Q in D.state=6,D.timer.stop(),delete Y[C],Y)return;delete w.__transition}Y[C]=D,D.timer=fe(function(Q){D.state=1,D.timer.restart(L,D.delay,D.time),D.delay<=Q&&L(Q-D.delay)},0,D.time)})(n,c,{name:i,index:u,group:g,on:kn,tween:dn,time:v.time,delay:v.delay,duration:v.duration,ease:v.ease,timer:null,state:0})}function dr(n,i){var c=ur(n,i);if(c.state>0)throw new Error("too late; already scheduled");return c}function Br(n,i){var c=ur(n,i);if(c.state>3)throw new Error("too late; already running");return c}function ur(n,i){var c=n.__transition;if(!c||!(c=c[i]))throw new Error("transition not found");return c}function ba(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 Ns,Dh,vp,Nh,Ao=180/Math.PI,Oh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ym(n,i,c,u,g,v){var k,w,C;return(k=Math.sqrt(n*n+i*i))&&(n/=k,i/=k),(C=n*c+i*u)&&(c-=n*C,u-=i*C),(w=Math.sqrt(c*c+u*u))&&(c/=w,u/=w,C/=w),n*u<i*c&&(n=-n,i=-i,C=-C,k=-k),{translateX:g,translateY:v,rotate:Math.atan2(i,n)*Ao,skewX:Math.atan(C)*Ao,scaleX:k,scaleY:w}}function mm(n,i,c,u){function g(v){return v.length?v.pop()+" ":""}return function(v,k){var w=[],C=[];return v=n(v),k=n(k),function(D,B,Y,L,z,q){if(D!==Y||B!==L){var Q=z.push("translate(",null,i,null,c);q.push({i:Q-4,x:va(D,Y)},{i:Q-2,x:va(B,L)})}else(Y||L)&&z.push("translate("+Y+i+L+c)}(v.translateX,v.translateY,k.translateX,k.translateY,w,C),function(D,B,Y,L){D!==B?(D-B>180?B+=360:B-D>180&&(D+=360),L.push({i:Y.push(g(Y)+"rotate(",null,u)-2,x:va(D,B)})):B&&Y.push(g(Y)+"rotate("+B+u)}(v.rotate,k.rotate,w,C),function(D,B,Y,L){D!==B?L.push({i:Y.push(g(Y)+"skewX(",null,u)-2,x:va(D,B)}):B&&Y.push(g(Y)+"skewX("+B+u)}(v.skewX,k.skewX,w,C),function(D,B,Y,L,z,q){if(D!==Y||B!==L){var Q=z.push(g(z)+"scale(",null,",",null,")");q.push({i:Q-4,x:va(D,Y)},{i:Q-2,x:va(B,L)})}else Y===1&&L===1||z.push(g(z)+"scale("+Y+","+L+")")}(v.scaleX,v.scaleY,k.scaleX,k.scaleY,w,C),v=k=null,function(D){for(var B,Y=-1,L=C.length;++Y<L;)w[(B=C[Y]).i]=B.x(D);return w.join("")}}}var _p=mm(function(n){return n==="none"?Oh:(Ns||(Ns=document.createElement("DIV"),Dh=document.documentElement,vp=document.defaultView),Ns.style.transform=n,n=vp.getComputedStyle(Dh.appendChild(Ns),null).getPropertyValue("transform"),Dh.removeChild(Ns),ym(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),bp=mm(function(n){return n==null?Oh:(Nh||(Nh=document.createElementNS("http://www.w3.org/2000/svg","g")),Nh.setAttribute("transform",n),(n=Nh.transform.baseVal.consolidate())?ym((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):Oh)},", ",")",")");function vm(n,i){var c,u;return function(){var g=Br(this,n),v=g.tween;if(v!==c){for(var k=0,w=(u=c=v).length;k<w;++k)if(u[k].name===i){(u=u.slice()).splice(k,1);break}}g.tween=u}}function xp(n,i,c){var u,g;if(typeof c!="function")throw new Error;return function(){var v=Br(this,n),k=v.tween;if(k!==u){g=(u=k).slice();for(var w={name:i,value:c},C=0,D=g.length;C<D;++C)if(g[C].name===i){g[C]=w;break}C===D&&g.push(w)}v.tween=g}}function Cd(n,i,c){var u=n._id;return n.each(function(){var g=Br(this,u);(g.value||(g.value={}))[i]=c.apply(this,arguments)}),function(g){return ur(g,u).value[i]}}function wp(n,i){var c;return(typeof i=="number"?va:i instanceof Va?lc:(c=Va(i))?(i=c,lc):Co)(n,i)}function ts(n){return function(){this.removeAttribute(n)}}function kp(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Tp(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 Ep(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 Sp(n,i,c){var u,g,v;return function(){var k,w,C=c(this);if(C!=null)return(k=this.getAttribute(n))===(w=C+"")?null:k===u&&w===g?v:(g=w,v=i(u=k,C));this.removeAttribute(n)}}function c4(n,i,c){var u,g,v;return function(){var k,w,C=c(this);if(C!=null)return(k=this.getAttributeNS(n.space,n.local))===(w=C+"")?null:k===u&&w===g?v:(g=w,v=i(u=k,C));this.removeAttributeNS(n.space,n.local)}}function Cp(n,i){return function(c){this.setAttribute(n,i.call(this,c))}}function Os(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)&&Os(n,v)),c}return g._value=i,g}function Mp(n,i){var c,u;function g(){var v=i.apply(this,arguments);return v!==u&&(c=(u=v)&&Cp(n,v)),c}return g._value=i,g}function bm(n,i){return function(){dr(this,n).delay=+i.apply(this,arguments)}}function Bh(n,i){return i=+i,function(){dr(this,n).delay=i}}function u4(n,i){return function(){Br(this,n).duration=+i.apply(this,arguments)}}function l4(n,i){return i=+i,function(){Br(this,n).duration=i}}function Ap(n,i){if(typeof i!="function")throw new Error;return function(){Br(this,n).ease=i}}function Dp(n,i,c){var u,g,v=function(k){return(k+"").trim().split(/^|\s+/).every(function(w){var C=w.indexOf(".");return C>=0&&(w=w.slice(0,C)),!w||w==="start"})}(i)?dr:Br;return function(){var k=v(this,n),w=k.on;w!==u&&(g=(u=w).copy()).on(i,c),k.on=g}}var Np=$a.prototype.constructor;function Op(n){return function(){this.style.removeProperty(n)}}function Bp(n,i,c){return function(u){this.style.setProperty(n,i.call(this,u),c)}}function Lp(n,i,c){var u,g;function v(){var k=i.apply(this,arguments);return k!==g&&(u=(g=k)&&Bp(n,k,c)),u}return v._value=i,v}function Ip(n){return function(i){this.textContent=n.call(this,i)}}function h4(n){var i,c;function u(){var g=n.apply(this,arguments);return g!==c&&(i=(c=g)&&Ip(g)),i}return u._value=n,u}var f4=0;function es(n,i,c,u){this._groups=n,this._parents=i,this._name=c,this._id=u}function Md(n){return $a().transition(n)}function Rp(){return++f4}var ns=$a.prototype;function Ad(n){return n*n*n}function Dd(n){return--n*n*n+1}function hc(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}es.prototype=Md.prototype={constructor:es,select:function(n){var i=this._name,c=this._id;typeof n!="function"&&(n=Ir(n));for(var u=this._groups,g=u.length,v=new Array(g),k=0;k<g;++k)for(var w,C,D=u[k],B=D.length,Y=v[k]=new Array(B),L=0;L<B;++L)(w=D[L])&&(C=n.call(w,w.__data__,L,D))&&("__data__"in w&&(C.__data__=w.__data__),Y[L]=C,hr(Y[L],i,c,L,Y,ur(w,c)));return new es(v,this._parents,i,c)},selectAll:function(n){var i=this._name,c=this._id;typeof n!="function"&&(n=tr(n));for(var u=this._groups,g=u.length,v=[],k=[],w=0;w<g;++w)for(var C,D=u[w],B=D.length,Y=0;Y<B;++Y)if(C=D[Y]){for(var L,z=n.call(C,C.__data__,Y,D),q=ur(C,c),Q=0,Z=z.length;Q<Z;++Q)(L=z[Q])&&hr(L,i,c,Q,z,q);v.push(z),k.push(C)}return new es(v,k,i,c)},filter:function(n){typeof n!="function"&&(n=cn(n));for(var i=this._groups,c=i.length,u=new Array(c),g=0;g<c;++g)for(var v,k=i[g],w=k.length,C=u[g]=[],D=0;D<w;++D)(v=k[D])&&n.call(v,v.__data__,D,k)&&C.push(v);return new es(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),w=0;w<v;++w)for(var C,D=i[w],B=c[w],Y=D.length,L=k[w]=new Array(Y),z=0;z<Y;++z)(C=D[z]||B[z])&&(L[z]=C);for(;w<u;++w)k[w]=i[w];return new es(k,this._parents,this._name,this._id)},selection:function(){return new Np(this._groups,this._parents)},transition:function(){for(var n=this._name,i=this._id,c=Rp(),u=this._groups,g=u.length,v=0;v<g;++v)for(var k,w=u[v],C=w.length,D=0;D<C;++D)if(k=w[D]){var B=ur(k,i);hr(k,n,c,D,w,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new es(u,this._parents,n,c)},call:ns.call,nodes:ns.nodes,node:ns.node,size:ns.size,empty:ns.empty,each:ns.each,on:function(n,i){var c=this._id;return arguments.length<2?ur(this.node(),c).on.on(n):this.each(Dp(c,n,i))},attr:function(n,i){var c=En(n),u=c==="transform"?bp:wp;return this.attrTween(n,typeof i=="function"?(c.local?c4:Sp)(c,u,Cd(this,"attr."+n,i)):i==null?(c.local?kp:ts)(c):(c.local?Ep:Tp)(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=En(n);return this.tween(c,(u.local?_m:Mp)(u,i))},style:function(n,i,c){var u=(n+="")=="transform"?_p:wp;return i==null?this.styleTween(n,function(g,v){var k,w,C;return function(){var D=ii(this,g),B=(this.style.removeProperty(g),ii(this,g));return D===B?null:D===k&&B===w?C:C=v(k=D,w=B)}}(n,u)).on("end.style."+n,Op(n)):typeof i=="function"?this.styleTween(n,function(g,v,k){var w,C,D;return function(){var B=ii(this,g),Y=k(this),L=Y+"";return Y==null&&(this.style.removeProperty(g),L=Y=ii(this,g)),B===L?null:B===w&&L===C?D:(C=L,D=v(w=B,Y))}}(n,u,Cd(this,"style."+n,i))).each(function(g,v){var k,w,C,D,B="style."+v,Y="end."+B;return function(){var L=Br(this,g),z=L.on,q=L.value[B]==null?D||(D=Op(v)):void 0;z===k&&C===q||(w=(k=z).copy()).on(Y,C=q),L.on=w}}(this._id,n)):this.styleTween(n,function(g,v,k){var w,C,D=k+"";return function(){var B=ii(this,g);return B===D?null:B===w?C:C=v(w=B,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,Lp(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}}(Cd(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,h4(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=ur(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:xp)(c,n,i))},delay:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?bm:Bh)(i,n)):ur(this.node(),i).delay},duration:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?u4:l4)(i,n)):ur(this.node(),i).duration},ease:function(n){var i=this._id;return arguments.length?this.each(Ap(i,n)):ur(this.node(),i).ease},end:function(){var n,i,c=this,u=c._id,g=c.size();return new Promise(function(v,k){var w={value:k},C={value:function(){--g==0&&v()}};c.each(function(){var D=Br(this,u),B=D.on;B!==n&&((i=(n=B).copy())._.cancel.push(w),i._.interrupt.push(w),i._.end.push(C)),D.on=i})})}};var au={time:null,delay:0,duration:250,ease:hc};function rs(n,i){for(var c;!(c=n.__transition)||!(c=c[i]);)if(!(n=n.parentNode))return au.time=$(),au;return c}$a.prototype.interrupt=function(n){return this.each(function(){ba(this,n)})},$a.prototype.transition=function(n){var i,c;n instanceof es?(i=n._id,n=n._name):(i=Rp(),(c=au).time=$(),n=n==null?null:n+"");for(var u=this._groups,g=u.length,v=0;v<g;++v)for(var k,w=u[v],C=w.length,D=0;D<C;++D)(k=w[D])&&hr(k,n,i,D,w,c||rs(k,i));return new es(u,this._parents,n,i)};var d4=[null];function p4(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 es([[n]],d4,i,+u)}return null}function Fp(n){return function(){return n}}function g4(n,i,c){this.target=n,this.type=i,this.selection=c}function xm(){gt.stopImmediatePropagation()}function Pp(){gt.preventDefault(),gt.stopImmediatePropagation()}var wm={name:"drag"},Nd={name:"space"},ou={name:"handle"},su={name:"center"};function cl(n){return[+n[0],+n[1]]}function Od(n){return[cl(n[0]),cl(n[1])]}function Bd(n){return function(i){return _a(i,gt.touches,n)}}var Ld={name:"x",handles:["w","e"].map(Ra),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]]}},ul={name:"y",handles:["n","s"].map(Ra),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]]}},Ja={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ra),input:function(n){return n==null?null:Od(n)},output:function(n){return n}},is={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Yp={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Id={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},km={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Tm={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ra(n){return{type:n}}function jp(){return!gt.ctrlKey&&!gt.button}function Up(){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 Em(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rd(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function y4(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function m4(n){var i=n.__brush;return i?i.dim.output(i.selection):null}function Fd(){return Lh(Ld)}function v4(){return Lh(ul)}function zp(){return Lh(Ja)}function Lh(n){var i,c=Up,u=jp,g=Em,v=!0,k=en("start","brush","end"),w=6;function C(Z){var G=Z.property("__brush",Q).selectAll(".overlay").data([Ra("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",is.overlay).merge(G).each(function(){var et=Rd(this).extent;mr(this).attr("x",et[0][0]).attr("y",et[0][1]).attr("width",et[1][0]-et[0][0]).attr("height",et[1][1]-et[0][1])}),Z.selectAll(".selection").data([Ra("selection")]).enter().append("rect").attr("class","selection").attr("cursor",is.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var nt=Z.selectAll(".handle").data(n.handles,function(et){return et.type});nt.exit().remove(),nt.enter().append("rect").attr("class",function(et){return"handle handle--"+et.type}).attr("cursor",function(et){return is[et.type]}),Z.each(D).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",L).filter(g).on("touchstart.brush",L).on("touchmove.brush",z).on("touchend.brush touchcancel.brush",q).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function D(){var Z=mr(this),G=Rd(this).selection;G?(Z.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]),Z.selectAll(".handle").style("display",null).attr("x",function(nt){return nt.type[nt.type.length-1]==="e"?G[1][0]-w/2:G[0][0]-w/2}).attr("y",function(nt){return nt.type[0]==="s"?G[1][1]-w/2:G[0][1]-w/2}).attr("width",function(nt){return nt.type==="n"||nt.type==="s"?G[1][0]-G[0][0]+w:w}).attr("height",function(nt){return nt.type==="e"||nt.type==="w"?G[1][1]-G[0][1]+w:w})):Z.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(Z,G,nt){var et=Z.__brush.emitter;return!et||nt&&et.clean?new Y(Z,G,nt):et}function Y(Z,G,nt){this.that=Z,this.args=G,this.state=Z.__brush,this.active=0,this.clean=nt}function L(){if((!i||gt.touches)&&u.apply(this,arguments)){var Z,G,nt,et,lt,Ft,Lt,Qt,be,Ut,se,ct=this,Et=gt.target.__data__.type,te=(v&&gt.metaKey?Et="overlay":Et)==="selection"?wm:v&&gt.altKey?su:ou,Zt=n===ul?null:km[Et],ee=n===Ld?null:Tm[Et],Ne=Rd(ct),Ue=Ne.extent,pn=Ne.selection,Kn=Ue[0][0],or=Ue[0][1],Je=Ue[1][0],gr=Ue[1][1],On=0,Dn=0,lr=Zt&&ee&&v&&gt.shiftKey,Qi=gt.touches?Bd(gt.changedTouches[0].identifier):Ds,Bi=Qi(ct),rc=Bi,Hc=B(ct,arguments,!0).beforestart();Et==="overlay"?(pn&&(be=!0),Ne.selection=pn=[[Z=n===ul?Kn:Bi[0],nt=n===Ld?or:Bi[1]],[lt=n===ul?Je:Z,Lt=n===Ld?gr:nt]]):(Z=pn[0][0],nt=pn[0][1],lt=pn[1][0],Lt=pn[1][1]),G=Z,et=nt,Ft=lt,Qt=Lt;var md=mr(ct).attr("pointer-events","none"),uo=md.selectAll(".overlay").attr("cursor",is[Et]);if(gt.touches)Hc.moved=qc,Hc.ended=ip;else{var rp=mr(gt.view).on("mousemove.brush",qc,!0).on("mouseup.brush",ip,!0);v&&rp.on("keydown.brush",Cb,!0).on("keyup.brush",Mb,!0),ei(gt.view)}xm(),ba(ct),D.call(ct),Hc.start()}function qc(){var bo=Qi(ct);!lr||Ut||se||(Math.abs(bo[0]-rc[0])>Math.abs(bo[1]-rc[1])?se=!0:Ut=!0),rc=bo,be=!0,Pp(),sa()}function sa(){var bo;switch(On=rc[0]-Bi[0],Dn=rc[1]-Bi[1],te){case Nd:case wm:Zt&&(On=Math.max(Kn-Z,Math.min(Je-lt,On)),G=Z+On,Ft=lt+On),ee&&(Dn=Math.max(or-nt,Math.min(gr-Lt,Dn)),et=nt+Dn,Qt=Lt+Dn);break;case ou:Zt<0?(On=Math.max(Kn-Z,Math.min(Je-Z,On)),G=Z+On,Ft=lt):Zt>0&&(On=Math.max(Kn-lt,Math.min(Je-lt,On)),G=Z,Ft=lt+On),ee<0?(Dn=Math.max(or-nt,Math.min(gr-nt,Dn)),et=nt+Dn,Qt=Lt):ee>0&&(Dn=Math.max(or-Lt,Math.min(gr-Lt,Dn)),et=nt,Qt=Lt+Dn);break;case su:Zt&&(G=Math.max(Kn,Math.min(Je,Z-On*Zt)),Ft=Math.max(Kn,Math.min(Je,lt+On*Zt))),ee&&(et=Math.max(or,Math.min(gr,nt-Dn*ee)),Qt=Math.max(or,Math.min(gr,Lt+Dn*ee)))}Ft<G&&(Zt*=-1,bo=Z,Z=lt,lt=bo,bo=G,G=Ft,Ft=bo,Et in Yp&&uo.attr("cursor",is[Et=Yp[Et]])),Qt<et&&(ee*=-1,bo=nt,nt=Lt,Lt=bo,bo=et,et=Qt,Qt=bo,Et in Id&&uo.attr("cursor",is[Et=Id[Et]])),Ne.selection&&(pn=Ne.selection),Ut&&(G=pn[0][0],Ft=pn[1][0]),se&&(et=pn[0][1],Qt=pn[1][1]),pn[0][0]===G&&pn[0][1]===et&&pn[1][0]===Ft&&pn[1][1]===Qt||(Ne.selection=[[G,et],[Ft,Qt]],D.call(ct),Hc.brush())}function ip(){if(xm(),gt.touches){if(gt.touches.length)return;i&&clearTimeout(i),i=setTimeout(function(){i=null},500)}else Wr(gt.view,be),rp.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);md.attr("pointer-events","all"),uo.attr("cursor",is.overlay),Ne.selection&&(pn=Ne.selection),y4(pn)&&(Ne.selection=null,D.call(ct)),Hc.end()}function Cb(){switch(gt.keyCode){case 16:lr=Zt&&ee;break;case 18:te===ou&&(Zt&&(lt=Ft-On*Zt,Z=G+On*Zt),ee&&(Lt=Qt-Dn*ee,nt=et+Dn*ee),te=su,sa());break;case 32:te!==ou&&te!==su||(Zt<0?lt=Ft-On:Zt>0&&(Z=G-On),ee<0?Lt=Qt-Dn:ee>0&&(nt=et-Dn),te=Nd,uo.attr("cursor",is.selection),sa());break;default:return}Pp()}function Mb(){switch(gt.keyCode){case 16:lr&&(Ut=se=lr=!1,sa());break;case 18:te===su&&(Zt<0?lt=Ft:Zt>0&&(Z=G),ee<0?Lt=Qt:ee>0&&(nt=et),te=ou,sa());break;case 32:te===Nd&&(gt.altKey?(Zt&&(lt=Ft-On*Zt,Z=G+On*Zt),ee&&(Lt=Qt-Dn*ee,nt=et+Dn*ee),te=su):(Zt<0?lt=Ft:Zt>0&&(Z=G),ee<0?Lt=Qt:ee>0&&(nt=et),te=ou),uo.attr("cursor",is[Et]),sa());break;default:return}Pp()}}function z(){B(this,arguments).moved()}function q(){B(this,arguments).ended()}function Q(){var Z=this.__brush||{selection:null};return Z.extent=Od(c.apply(this,arguments)),Z.dim=n,Z}return C.move=function(Z,G){Z.selection?Z.on("start.brush",function(){B(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){B(this,arguments).end()}).tween("brush",function(){var nt=this,et=nt.__brush,lt=B(nt,arguments),Ft=et.selection,Lt=n.input(typeof G=="function"?G.apply(this,arguments):G,et.extent),Qt=ru(Ft,Lt);function be(Ut){et.selection=Ut===1&&Lt===null?null:Qt(Ut),D.call(nt),lt.brush()}return Ft!==null&&Lt!==null?be:be(1)}):Z.each(function(){var nt=this,et=arguments,lt=nt.__brush,Ft=n.input(typeof G=="function"?G.apply(nt,et):G,lt.extent),Lt=B(nt,et).beforestart();ba(nt),lt.selection=Ft===null?null:Ft,D.call(nt),Lt.start().brush().end()})},C.clear=function(Z){C.move(Z,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(Z){ho(new g4(C,Z,n.output(this.state.selection)),k.apply,k,[Z,this.that,this.args])}},C.extent=function(Z){return arguments.length?(c=typeof Z=="function"?Z:Fp(Od(Z)),C):c},C.filter=function(Z){return arguments.length?(u=typeof Z=="function"?Z:Fp(!!Z),C):u},C.touchable=function(Z){return arguments.length?(g=typeof Z=="function"?Z:Fp(!!Z),C):g},C.handleSize=function(Z){return arguments.length?(w=+Z,C):w},C.keyModifiers=function(Z){return arguments.length?(v=!!Z,C):v},C.on=function(){var Z=k.on.apply(k,arguments);return Z===k?C:Z},C}var Sm=Math.cos,Cm=Math.sin,Pd=Math.PI,Yd=Pd/2,Mm=2*Pd,Wp=Math.max;function ll(n){return function(i,c){return n(i.source.value+i.target.value,c.source.value+c.target.value)}}function Hp(){var n=0,i=null,c=null,u=null;function g(v){var k,w,C,D,B,Y,L=v.length,z=[],q=_t(L),Q=[],Z=[],G=Z.groups=new Array(L),nt=new Array(L*L);for(k=0,B=-1;++B<L;){for(w=0,Y=-1;++Y<L;)w+=v[B][Y];z.push(w),Q.push(_t(L)),k+=w}for(i&&q.sort(function(se,ct){return i(z[se],z[ct])}),c&&Q.forEach(function(se,ct){se.sort(function(Et,te){return c(v[ct][Et],v[ct][te])})}),D=(k=Wp(0,Mm-n*L)/k)?n:Mm/L,w=0,B=-1;++B<L;){for(C=w,Y=-1;++Y<L;){var et=q[B],lt=Q[et][Y],Ft=v[et][lt],Lt=w,Qt=w+=Ft*k;nt[lt*L+et]={index:et,subindex:lt,startAngle:Lt,endAngle:Qt,value:Ft}}G[et]={index:et,startAngle:C,endAngle:w,value:z[et]},w+=D}for(B=-1;++B<L;)for(Y=B-1;++Y<L;){var be=nt[Y*L+B],Ut=nt[B*L+Y];(be.value||Ut.value)&&Z.push(be.value<Ut.value?{source:Ut,target:be}:{source:be,target:Ut})}return u?Z.sort(u):Z}return g.padAngle=function(v){return arguments.length?(n=Wp(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=ll(v))._=v,g):u&&u._},g}var _4=Array.prototype.slice;function qp(n){return function(){return n}}var jd=Math.PI,Ud=2*jd,Bs=1e-6,Am=Ud-Bs;function $p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ih(){return new $p}$p.prototype=Ih.prototype={constructor:$p,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,w=c-n,C=u-i,D=v-n,B=k-i,Y=D*D+B*B;if(g<0)throw new Error("negative radius: "+g);if(this._x1===null)this._+="M"+(this._x1=n)+","+(this._y1=i);else if(Y>Bs)if(Math.abs(B*w-C*D)>Bs&&g){var L=c-v,z=u-k,q=w*w+C*C,Q=L*L+z*z,Z=Math.sqrt(q),G=Math.sqrt(Y),nt=g*Math.tan((jd-Math.acos((q+Y-Q)/(2*Z*G)))/2),et=nt/G,lt=nt/Z;Math.abs(et-1)>Bs&&(this._+="L"+(n+et*D)+","+(i+et*B)),this._+="A"+g+","+g+",0,0,"+ +(B*L>D*z)+","+(this._x1=n+lt*w)+","+(this._y1=i+lt*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),w=c*Math.sin(u),C=n+k,D=i+w,B=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)>Bs||Math.abs(this._y1-D)>Bs)&&(this._+="L"+C+","+D),c&&(Y<0&&(Y=Y%Ud+Ud),Y>Am?this._+="A"+c+","+c+",0,1,"+B+","+(n-k)+","+(i-w)+"A"+c+","+c+",0,1,"+B+","+(this._x1=C)+","+(this._y1=D):Y>Bs&&(this._+="A"+c+","+c+",0,"+ +(Y>=jd)+","+B+","+(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 Ls=Ih;function zd(n){return n.source}function hl(n){return n.target}function Dm(n){return n.radius}function Nm(n){return n.startAngle}function Om(n){return n.endAngle}function Vp(){var n=zd,i=hl,c=Dm,u=Nm,g=Om,v=null;function k(){var w,C=_4.call(arguments),D=n.apply(this,C),B=i.apply(this,C),Y=+c.apply(this,(C[0]=D,C)),L=u.apply(this,C)-Yd,z=g.apply(this,C)-Yd,q=Y*Sm(L),Q=Y*Cm(L),Z=+c.apply(this,(C[0]=B,C)),G=u.apply(this,C)-Yd,nt=g.apply(this,C)-Yd;if(v||(v=w=Ls()),v.moveTo(q,Q),v.arc(0,0,Y,L,z),L===G&&z===nt||(v.quadraticCurveTo(0,0,Z*Sm(G),Z*Cm(G)),v.arc(0,0,Z,G,nt)),v.quadraticCurveTo(0,0,q,Q),v.closePath(),w)return v=null,w+""||null}return k.radius=function(w){return arguments.length?(c=typeof w=="function"?w:qp(+w),k):c},k.startAngle=function(w){return arguments.length?(u=typeof w=="function"?w:qp(+w),k):u},k.endAngle=function(w){return arguments.length?(g=typeof w=="function"?w:qp(+w),k):g},k.source=function(w){return arguments.length?(n=w,k):n},k.target=function(w){return arguments.length?(i=w,k):i},k.context=function(w){return arguments.length?(v=w==null?null:w,k):v},k}var Ka="$";function Rh(){}function Gp(n,i){var c=new Rh;if(n instanceof Rh)n.each(function(w,C){c.set(C,w)});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}Rh.prototype=Gp.prototype={constructor:Rh,has:function(n){return Ka+n in this},get:function(n){return this[Ka+n]},set:function(n,i){return this[Ka+n]=i,this},remove:function(n){var i=Ka+n;return i in this&&delete this[i]},clear:function(){for(var n in this)n[0]===Ka&&delete this[n]},keys:function(){var n=[];for(var i in this)i[0]===Ka&&n.push(i.slice(1));return n},values:function(){var n=[];for(var i in this)i[0]===Ka&&n.push(this[i]);return n},entries:function(){var n=[];for(var i in this)i[0]===Ka&&n.push({key:i.slice(1),value:this[i]});return n},size:function(){var n=0;for(var i in this)i[0]===Ka&&++n;return n},empty:function(){for(var n in this)if(n[0]===Ka)return!1;return!0},each:function(n){for(var i in this)i[0]===Ka&&n(this[i],i.slice(1),this)}};const Is=Gp;function b4(){var n,i,c,u=[],g=[];function v(w,C,D,B){if(C>=u.length)return n!=null&&w.sort(n),i!=null?i(w):w;for(var Y,L,z,q=-1,Q=w.length,Z=u[C++],G=Is(),nt=D();++q<Q;)(z=G.get(Y=Z(L=w[q])+""))?z.push(L):G.set(Y,[L]);return G.each(function(et,lt){B(nt,lt,v(et,C,D,B))}),nt}function k(w,C){if(++C>u.length)return w;var D,B=g[C-1];return i!=null&&C>=u.length?D=w.entries():(D=[],w.each(function(Y,L){D.push({key:L,values:k(Y,C)})})),B!=null?D.sort(function(Y,L){return B(Y.key,L.key)}):D}return c={object:function(w){return v(w,0,Bm,Lm)},map:function(w){return v(w,0,Xp,Im)},entries:function(w){return k(v(w,0,Xp,Im),0)},key:function(w){return u.push(w),c},sortKeys:function(w){return g[u.length-1]=w,c},sortValues:function(w){return n=w,c},rollup:function(w){return i=w,c}}}function Bm(){return{}}function Lm(n,i,c){n[i]=c}function Xp(){return Is()}function Im(n,i,c){n.set(i,c)}function Fh(){}var fc=Is.prototype;function fl(n,i){var c=new Fh;if(n instanceof Fh)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}Fh.prototype=fl.prototype={constructor:Fh,has:fc.has,add:function(n){return this[Ka+(n+="")]=n,this},remove:fc.remove,clear:fc.clear,values:fc.keys,size:fc.size,empty:fc.empty,each:fc.each};const dc=fl;function Ph(n){var i=[];for(var c in n)i.push(c);return i}function Zp(n){var i=[];for(var c in n)i.push(n[c]);return i}function Qp(n){var i=[];for(var c in n)i.push({key:c,value:n[c]});return i}var Wd=Math.PI/180,Hd=180/Math.PI,qd=.96422,Fi=.82521,$d=4/29,Jp=6/29,Rm=3*Jp*Jp;function dl(n){if(n instanceof Do)return new Do(n.l,n.a,n.b,n.opacity);if(n instanceof as)return eg(n);n instanceof ri||(n=tu(n));var i,c,u=Rs(n.r),g=Rs(n.g),v=Rs(n.b),k=Vd((.2225045*u+.7168786*g+.0606169*v)/1);return u===g&&g===v?i=c=k:(i=Vd((.4360747*u+.3850649*g+.1430804*v)/qd),c=Vd((.0139322*u+.0971045*g+.7141733*v)/Fi)),new Do(116*k-16,500*(i-k),200*(k-c),n.opacity)}function x4(n,i){return new Do(n,0,0,i==null?1:i)}function Yh(n,i,c,u){return arguments.length===1?dl(n):new Do(n,i,c,u==null?1:u)}function Do(n,i,c,u){this.l=+n,this.a=+i,this.b=+c,this.opacity=+u}function Vd(n){return n>.008856451679035631?Math.pow(n,1/3):n/Rm+$d}function Kp(n){return n>Jp?n*n*n:Rm*(n-$d)}function pl(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Rs(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Gd(n){if(n instanceof as)return new as(n.h,n.c,n.l,n.opacity);if(n instanceof Do||(n=dl(n)),n.a===0&&n.b===0)return new as(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var i=Math.atan2(n.b,n.a)*Hd;return new as(i<0?i+360:i,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function tg(n,i,c,u){return arguments.length===1?Gd(n):new as(c,i,n,u==null?1:u)}function pc(n,i,c,u){return arguments.length===1?Gd(n):new as(n,i,c,u==null?1:u)}function as(n,i,c,u){this.h=+n,this.c=+i,this.l=+c,this.opacity=+u}function eg(n){if(isNaN(n.h))return new Do(n.l,0,0,n.opacity);var i=n.h*Wd;return new Do(n.l,Math.cos(i)*n.c,Math.sin(i)*n.c,n.opacity)}Hr(Do,Yh,di(Qr,{brighter:function(n){return new Do(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new Do(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 ri(pl(3.1338561*(i=qd*Kp(i))-1.6168667*(n=1*Kp(n))-.4906146*(c=Fi*Kp(c))),pl(-.9787684*i+1.9161415*n+.033454*c),pl(.0719453*i-.2289914*n+1.4052427*c),this.opacity)}})),Hr(as,pc,di(Qr,{brighter:function(n){return new as(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},darker:function(n){return new as(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},rgb:function(){return eg(this).rgb()}}));var ng=-.14861,Fs=1.78277,rg=-.29227,jh=-.90649,No=1.97294,Fm=No*jh,Xd=No*Fs,gl=Fs*rg-jh*ng;function Pm(n){if(n instanceof cu)return new cu(n.h,n.s,n.l,n.opacity);n instanceof ri||(n=tu(n));var i=n.r/255,c=n.g/255,u=n.b/255,g=(gl*u+Fm*i-Xd*c)/(gl+Fm-Xd),v=u-g,k=(No*(c-g)-rg*v)/jh,w=Math.sqrt(k*k+v*v)/(No*g*(1-g)),C=w?Math.atan2(k,v)*Hd-120:NaN;return new cu(C<0?C+360:C,w,g,n.opacity)}function xa(n,i,c,u){return arguments.length===1?Pm(n):new cu(n,i,c,u==null?1:u)}function cu(n,i,c,u){this.h=+n,this.s=+i,this.l=+c,this.opacity=+u}Hr(cu,xa,di(Qr,{brighter:function(n){return n=n==null?Wi:Math.pow(Wi,n),new cu(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?ta:Math.pow(ta,n),new cu(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*Wd,i=+this.l,c=isNaN(this.s)?0:this.s*i*(1-i),u=Math.cos(n),g=Math.sin(n);return new ri(255*(i+c*(ng*u+Fs*g)),255*(i+c*(rg*u+jh*g)),255*(i+c*(No*u)),this.opacity)}}));var Ym=Array.prototype.slice;function w4(n,i){return n-i}function os(n){return function(){return n}}function ig(n,i){for(var c,u=-1,g=i.length;++u<g;)if(c=Uh(n,i[u]))return c;return 0}function Uh(n,i){for(var c=i[0],u=i[1],g=-1,v=0,k=n.length,w=k-1;v<k;w=v++){var C=n[v],D=C[0],B=C[1],Y=n[w],L=Y[0],z=Y[1];if(zh(C,Y,i))return 0;B>u!=z>u&&c<(L-D)*(u-B)/(z-B)+D&&(g=-g)}return g}function zh(n,i,c){var u,g,v,k;return function(w,C,D){return(C[0]-w[0])*(D[1]-w[1])==(D[0]-w[0])*(C[1]-w[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 jm(){}var ss=[[],[[[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 Pi(){var n=1,i=1,c=ae,u=w;function g(C){var D=c(C);if(Array.isArray(D))D=D.slice().sort(w4);else{var B=K(C),Y=B[0],L=B[1];D=st(Y,L,D),D=_t(Math.floor(Y/D)*D,Math.floor(L/D)*D,D)}return D.map(function(z){return v(C,z)})}function v(C,D){var B=[],Y=[];return function(L,z,q){var Q,Z,G,nt,et,lt,Ft=new Array,Lt=new Array;for(Q=Z=-1,nt=L[0]>=z,ss[nt<<1].forEach(Qt);++Q<n-1;)G=nt,nt=L[Q+1]>=z,ss[G|nt<<1].forEach(Qt);for(ss[nt<<0].forEach(Qt);++Z<i-1;){for(Q=-1,nt=L[Z*n+n]>=z,et=L[Z*n]>=z,ss[nt<<1|et<<2].forEach(Qt);++Q<n-1;)G=nt,nt=L[Z*n+n+Q+1]>=z,lt=et,et=L[Z*n+Q+1]>=z,ss[G|nt<<1|et<<2|lt<<3].forEach(Qt);ss[nt|et<<3].forEach(Qt)}for(Q=-1,et=L[Z*n]>=z,ss[et<<2].forEach(Qt);++Q<n-1;)lt=et,et=L[Z*n+Q+1]>=z,ss[et<<2|lt<<3].forEach(Qt);function Qt(be){var Ut,se,ct=[be[0][0]+Q,be[0][1]+Z],Et=[be[1][0]+Q,be[1][1]+Z],te=k(ct),Zt=k(Et);(Ut=Lt[te])?(se=Ft[Zt])?(delete Lt[Ut.end],delete Ft[se.start],Ut===se?(Ut.ring.push(Et),q(Ut.ring)):Ft[Ut.start]=Lt[se.end]={start:Ut.start,end:se.end,ring:Ut.ring.concat(se.ring)}):(delete Lt[Ut.end],Ut.ring.push(Et),Lt[Ut.end=Zt]=Ut):(Ut=Ft[Zt])?(se=Lt[te])?(delete Ft[Ut.start],delete Lt[se.end],Ut===se?(Ut.ring.push(Et),q(Ut.ring)):Ft[se.start]=Lt[Ut.end]={start:se.start,end:Ut.end,ring:se.ring.concat(Ut.ring)}):(delete Ft[Ut.start],Ut.ring.unshift(ct),Ft[Ut.start=te]=Ut):Ft[te]=Lt[Zt]={start:te,end:Zt,ring:[ct,Et]}}ss[et<<3].forEach(Qt)}(C,D,function(L){u(L,C,D),function(z){for(var q=0,Q=z.length,Z=z[Q-1][1]*z[0][0]-z[Q-1][0]*z[0][1];++q<Q;)Z+=z[q-1][1]*z[q][0]-z[q-1][0]*z[q][1];return Z}(L)>0?B.push([L]):Y.push(L)}),Y.forEach(function(L){for(var z,q=0,Q=B.length;q<Q;++q)if(ig((z=B[q])[0],L)!==-1)return void z.push(L)}),{type:"MultiPolygon",value:D,coordinates:B}}function k(C){return 2*C[0]+C[1]*(n+1)*4}function w(C,D,B){C.forEach(function(Y){var L,z=Y[0],q=Y[1],Q=0|z,Z=0|q,G=D[Z*n+Q];z>0&&z<n&&Q===z&&(L=D[Z*n+Q-1],Y[0]=z+(B-L)/(G-L)-.5),q>0&&q<i&&Z===q&&(L=D[(Z-1)*n+Q],Y[1]=q+(B-L)/(G-L)-.5)})}return g.contour=v,g.size=function(C){if(!arguments.length)return[n,i];var D=Math.ceil(C[0]),B=Math.ceil(C[1]);if(!(D>0&&B>0))throw new Error("invalid size");return n=D,i=B,g},g.thresholds=function(C){return arguments.length?(c=typeof C=="function"?C:Array.isArray(C)?os(Ym.call(C)):os(C),g):c},g.smooth=function(C){return arguments.length?(u=C?w:jm,g):u===w},g}function ag(n,i,c){for(var u=n.width,g=n.height,v=1+(c<<1),k=0;k<g;++k)for(var w=0,C=0;w<u+c;++w)w<u&&(C+=n.data[w+k*u]),w>=c&&(w>=v&&(C-=n.data[w-v+k*u]),i.data[w-c+k*u]=C/Math.min(w+1,u-1+v-w,v))}function og(n,i,c){for(var u=n.width,g=n.height,v=1+(c<<1),k=0;k<u;++k)for(var w=0,C=0;w<g+c;++w)w<g&&(C+=n.data[k+w*u]),w>=c&&(w>=v&&(C-=n.data[k+(w-v)*u]),i.data[k+(w-c)*u]=C/Math.min(w+1,g-1+v-w,v))}function br(n){return n[0]}function k4(n){return n[1]}function Wh(){return 1}function Hh(){var n=br,i=k4,c=Wh,u=960,g=500,v=20,k=2,w=3*v,C=u+2*w>>k,D=g+2*w>>k,B=os(20);function Y(G){var nt=new Float32Array(C*D),et=new Float32Array(C*D);G.forEach(function(Lt,Qt,be){var Ut=+n(Lt,Qt,be)+w>>k,se=+i(Lt,Qt,be)+w>>k,ct=+c(Lt,Qt,be);Ut>=0&&Ut<C&&se>=0&&se<D&&(nt[Ut+se*C]+=ct)}),ag({width:C,height:D,data:nt},{width:C,height:D,data:et},v>>k),og({width:C,height:D,data:et},{width:C,height:D,data:nt},v>>k),ag({width:C,height:D,data:nt},{width:C,height:D,data:et},v>>k),og({width:C,height:D,data:et},{width:C,height:D,data:nt},v>>k),ag({width:C,height:D,data:nt},{width:C,height:D,data:et},v>>k),og({width:C,height:D,data:et},{width:C,height:D,data:nt},v>>k);var lt=B(nt);if(!Array.isArray(lt)){var Ft=Bt(nt);lt=st(0,Ft,lt),(lt=_t(0,Math.floor(Ft/lt)*lt,lt)).shift()}return Pi().thresholds(lt).size([C,D])(nt).map(L)}function L(G){return G.value*=Math.pow(2,-2*k),G.coordinates.forEach(z),G}function z(G){G.forEach(q)}function q(G){G.forEach(Q)}function Q(G){G[0]=G[0]*Math.pow(2,k)-w,G[1]=G[1]*Math.pow(2,k)-w}function Z(){return C=u+2*(w=3*v)>>k,D=g+2*w>>k,Y}return Y.x=function(G){return arguments.length?(n=typeof G=="function"?G:os(+G),Y):n},Y.y=function(G){return arguments.length?(i=typeof G=="function"?G:os(+G),Y):i},Y.weight=function(G){return arguments.length?(c=typeof G=="function"?G:os(+G),Y):c},Y.size=function(G){if(!arguments.length)return[u,g];var nt=Math.ceil(G[0]),et=Math.ceil(G[1]);if(!(nt>=0||nt>=0))throw new Error("invalid size");return u=nt,g=et,Z()},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),Z()},Y.thresholds=function(G){return arguments.length?(B=typeof G=="function"?G:Array.isArray(G)?os(Ym.call(G)):os(G),Y):B},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),Z()},Y}function Zd(n){return function(){return n}}function sg(n,i,c,u,g,v,k,w,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=w,this.dy=C,this._=D}function T4(){return!gt.ctrlKey&&!gt.button}function E4(){return this.parentNode}function S4(n){return n==null?{x:gt.x,y:gt.y}:n}function Um(){return navigator.maxTouchPoints||"ontouchstart"in this}function zm(){var n,i,c,u,g=T4,v=E4,k=S4,w=Um,C={},D=en("start","drag","end"),B=0,Y=0;function L(lt){lt.on("mousedown.drag",z).filter(w).on("touchstart.drag",Z).on("touchmove.drag",G).on("touchend.drag touchcancel.drag",nt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function z(){if(!u&&g.apply(this,arguments)){var lt=et("mouse",v.apply(this,arguments),Ds,this,arguments);lt&&(mr(gt.view).on("mousemove.drag",q,!0).on("mouseup.drag",Q,!0),ei(gt.view),Sr(),c=!1,n=gt.clientX,i=gt.clientY,lt("start"))}}function q(){if(bi(),!c){var lt=gt.clientX-n,Ft=gt.clientY-i;c=lt*lt+Ft*Ft>Y}C.mouse("drag")}function Q(){mr(gt.view).on("mousemove.drag mouseup.drag",null),Wr(gt.view,c),bi(),C.mouse("end")}function Z(){if(g.apply(this,arguments)){var lt,Ft,Lt=gt.changedTouches,Qt=v.apply(this,arguments),be=Lt.length;for(lt=0;lt<be;++lt)(Ft=et(Lt[lt].identifier,Qt,_a,this,arguments))&&(Sr(),Ft("start"))}}function G(){var lt,Ft,Lt=gt.changedTouches,Qt=Lt.length;for(lt=0;lt<Qt;++lt)(Ft=C[Lt[lt].identifier])&&(bi(),Ft("drag"))}function nt(){var lt,Ft,Lt=gt.changedTouches,Qt=Lt.length;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),lt=0;lt<Qt;++lt)(Ft=C[Lt[lt].identifier])&&(Sr(),Ft("end"))}function et(lt,Ft,Lt,Qt,be){var Ut,se,ct,Et=Lt(Ft,lt),te=D.copy();if(ho(new sg(L,"beforestart",Ut,lt,B,Et[0],Et[1],0,0,te),function(){return(gt.subject=Ut=k.apply(Qt,be))!=null&&(se=Ut.x-Et[0]||0,ct=Ut.y-Et[1]||0,!0)}))return function Zt(ee){var Ne,Ue=Et;switch(ee){case"start":C[lt]=Zt,Ne=B++;break;case"end":delete C[lt],--B;case"drag":Et=Lt(Ft,lt),Ne=B}ho(new sg(L,ee,Ut,lt,Ne,Et[0]+se,Et[1]+ct,Et[0]-Ue[0],Et[1]-Ue[1],te),te.apply,te,[ee,Qt,be])}}return L.filter=function(lt){return arguments.length?(g=typeof lt=="function"?lt:Zd(!!lt),L):g},L.container=function(lt){return arguments.length?(v=typeof lt=="function"?lt:Zd(lt),L):v},L.subject=function(lt){return arguments.length?(k=typeof lt=="function"?lt:Zd(lt),L):k},L.touchable=function(lt){return arguments.length?(w=typeof lt=="function"?lt:Zd(!!lt),L):w},L.on=function(){var lt=D.on.apply(D,arguments);return lt===D?L:lt},L.clickDistance=function(lt){return arguments.length?(Y=(lt=+lt)*lt,L):Math.sqrt(Y)},L}sg.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Wm={},cg={};function Hm(n){return new Function("d","return {"+n.map(function(i,c){return JSON.stringify(i)+": d["+c+'] || ""'}).join(",")+"}")}function ug(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 Fa(n,i){var c=n+"",u=c.length;return u<i?new Array(i-u+1).join(0)+c:c}function qh(n){var i=new RegExp('["'+n+`
\r]`),c=n.charCodeAt(0);function u(w,C){var D,B=[],Y=w.length,L=0,z=0,q=Y<=0,Q=!1;function Z(){if(q)return cg;if(Q)return Q=!1,Wm;var nt,et,lt=L;if(w.charCodeAt(lt)===34){for(;L++<Y&&w.charCodeAt(L)!==34||w.charCodeAt(++L)===34;);return(nt=L)>=Y?q=!0:(et=w.charCodeAt(L++))===10?Q=!0:et===13&&(Q=!0,w.charCodeAt(L)===10&&++L),w.slice(lt+1,nt-1).replace(/""/g,'"')}for(;L<Y;){if((et=w.charCodeAt(nt=L++))===10)Q=!0;else if(et===13)Q=!0,w.charCodeAt(L)===10&&++L;else if(et!==c)continue;return w.slice(lt,nt)}return q=!0,w.slice(lt,Y)}for(w.charCodeAt(Y-1)===10&&--Y,w.charCodeAt(Y-1)===13&&--Y;(D=Z())!==cg;){for(var G=[];D!==Wm&&D!==cg;)G.push(D),D=Z();C&&(G=C(G,z++))==null||B.push(G)}return B}function g(w,C){return w.map(function(D){return C.map(function(B){return k(D[B])}).join(n)})}function v(w){return w.map(k).join(n)}function k(w){return w==null?"":w instanceof Date?function(C){var D=C.getUTCHours(),B=C.getUTCMinutes(),Y=C.getUTCSeconds(),L=C.getUTCMilliseconds();return isNaN(C)?"Invalid Date":function(z){return z<0?"-"+Fa(-z,6):z>9999?"+"+Fa(z,6):Fa(z,4)}(C.getUTCFullYear())+"-"+Fa(C.getUTCMonth()+1,2)+"-"+Fa(C.getUTCDate(),2)+(L?"T"+Fa(D,2)+":"+Fa(B,2)+":"+Fa(Y,2)+"."+Fa(L,3)+"Z":Y?"T"+Fa(D,2)+":"+Fa(B,2)+":"+Fa(Y,2)+"Z":B||D?"T"+Fa(D,2)+":"+Fa(B,2)+"Z":"")}(w):i.test(w+="")?'"'+w.replace(/"/g,'""')+'"':w}return{parse:function(w,C){var D,B,Y=u(w,function(L,z){if(D)return D(L,z-1);B=L,D=C?function(q,Q){var Z=Hm(q);return function(G,nt){return Q(Z(G),nt,q)}}(L,C):Hm(L)});return Y.columns=B||[],Y},parseRows:u,format:function(w,C){return C==null&&(C=ug(w)),[C.map(k).join(n)].concat(g(w,C)).join(`
`)},formatBody:function(w,C){return C==null&&(C=ug(w)),g(w,C).join(`
`)},formatRows:function(w){return w.map(v).join(`
`)},formatRow:v,formatValue:k}}var uu=qh(","),qm=uu.parse,C4=uu.parseRows,M4=uu.format,A4=uu.formatBody,D4=uu.formatRows,N4=uu.formatRow,$m=uu.formatValue,lu=qh(" "),Vm=lu.parse,O4=lu.parseRows,Gm=lu.format,B4=lu.formatBody,L4=lu.formatRows,I4=lu.formatRow,R4=lu.formatValue;function F4(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;P4&&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 P4=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Xm(n){return+n}function Y4(n){return n*n}function j4(n){return n*(2-n)}function Zm(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var U4=function n(i){function c(u){return Math.pow(u,i)}return i=+i,c.exponent=n,c}(3),z4=function n(i){function c(u){return 1-Math.pow(1-u,i)}return i=+i,c.exponent=n,c}(3),Qm=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),Jm=Math.PI,Km=Jm/2;function tv(n){return+n==1?1:1-Math.cos(n*Km)}function W4(n){return Math.sin(n*Km)}function ev(n){return(1-Math.cos(Jm*n))/2}function gc(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function nv(n){return gc(1-+n)}function H4(n){return 1-gc(n)}function rv(n){return((n*=2)<=1?gc(1-n):2-gc(n-1))/2}function q4(n){return 1-Math.sqrt(1-n*n)}function $4(n){return Math.sqrt(1- --n*n)}function iv(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var Qd=7.5625;function av(n){return 1-$h(1-n)}function $h(n){return(n=+n)<.36363636363636365?Qd*n*n:n<.7272727272727273?Qd*(n-=.5454545454545454)*n+.75:n<.9090909090909091?Qd*(n-=.8181818181818182)*n+.9375:Qd*(n-=.9545454545454546)*n+.984375}function V4(n){return((n*=2)<=1?1-$h(1-n):$h(n-1)+1)/2}var lg=1.70158,G4=function n(i){function c(u){return(u=+u)*u*(i*(u-1)+u)}return i=+i,c.overshoot=n,c}(lg),X4=function n(i){function c(u){return--u*u*((u+1)*i+u)+1}return i=+i,c.overshoot=n,c}(lg),ov=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}(lg),yl=2*Math.PI,Z4=function n(i,c){var u=Math.asin(1/(i=Math.max(1,i)))*(c/=yl);function g(v){return i*gc(- --v)*Math.sin((u-v)/c)}return g.amplitude=function(v){return n(v,c*yl)},g.period=function(v){return n(i,v)},g}(1,.3),hg=function n(i,c){var u=Math.asin(1/(i=Math.max(1,i)))*(c/=yl);function g(v){return 1-i*gc(v=+v)*Math.sin((v+u)/c)}return g.amplitude=function(v){return n(v,c*yl)},g.period=function(v){return n(i,v)},g}(1,.3),sv=function n(i,c){var u=Math.asin(1/(i=Math.max(1,i)))*(c/=yl);function g(v){return((v=2*v-1)<0?i*gc(-v)*Math.sin((u-v)/c):2-i*gc(v)*Math.sin((u+v)/c))/2}return g.amplitude=function(v){return n(v,c*yl)},g.period=function(v){return n(i,v)},g}(1,.3);function cv(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function Q4(n,i){return fetch(n,i).then(cv)}function J4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function uv(n,i){return fetch(n,i).then(J4)}function K4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function ml(n,i){return fetch(n,i).then(K4)}function fg(n){return function(i,c,u){return arguments.length===2&&typeof c=="function"&&(u=c,c=void 0),ml(i,c).then(function(g){return n(g,u)})}}function t5(n,i,c,u){arguments.length===3&&typeof c=="function"&&(u=c,c=void 0);var g=qh(n);return ml(i,c).then(function(v){return g.parse(v,u)})}var lv=fg(qm),hv=fg(Vm);function fv(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 e5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function n5(n,i){return fetch(n,i).then(e5)}function dg(n){return function(i,c){return ml(i,c).then(function(u){return new DOMParser().parseFromString(u,n)})}}const r5=dg("application/xml");var dv=dg("text/html"),Jd=dg("image/svg+xml");function i5(n,i){var c;function u(){var g,v,k=c.length,w=0,C=0;for(g=0;g<k;++g)w+=(v=c[g]).x,C+=v.y;for(w=w/k-n,C=C/k-i,g=0;g<k;++g)(v=c[g]).x-=w,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 Yi(n){return function(){return n}}function yc(){return 1e-6*(Math.random()-.5)}function pv(n,i,c,u){if(isNaN(i)||isNaN(c))return n;var g,v,k,w,C,D,B,Y,L,z=n._root,q={data:u},Q=n._x0,Z=n._y0,G=n._x1,nt=n._y1;if(!z)return n._root=q,n;for(;z.length;)if((D=i>=(v=(Q+G)/2))?Q=v:G=v,(B=c>=(k=(Z+nt)/2))?Z=k:nt=k,g=z,!(z=z[Y=B<<1|D]))return g[Y]=q,n;if(w=+n._x.call(null,z.data),C=+n._y.call(null,z.data),i===w&&c===C)return q.next=z,g?g[Y]=q:n._root=q,n;do g=g?g[Y]=new Array(4):n._root=new Array(4),(D=i>=(v=(Q+G)/2))?Q=v:G=v,(B=c>=(k=(Z+nt)/2))?Z=k:nt=k;while((Y=B<<1|D)==(L=(C>=k)<<1|w>=v));return g[L]=z,g[Y]=q,n}function wa(n,i,c,u,g){this.node=n,this.x0=i,this.y0=c,this.x1=u,this.y1=g}function a5(n){return n[0]}function pg(n){return n[1]}function Vh(n,i,c){var u=new vl(i==null?a5:i,c==null?pg:c,NaN,NaN,NaN,NaN);return n==null?u:u.addAll(n)}function vl(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 gv(n){for(var i={data:n.data},c=i;n=n.next;)c=c.next={data:n.data};return i}var ka=Vh.prototype=vl.prototype;function o5(n){return n.x+n.vx}function s5(n){return n.y+n.vy}function c5(n){var i,c,u=1,g=1;function v(){for(var C,D,B,Y,L,z,q,Q=i.length,Z=0;Z<g;++Z)for(D=Vh(i,o5,s5).visitAfter(k),C=0;C<Q;++C)B=i[C],z=c[B.index],q=z*z,Y=B.x+B.vx,L=B.y+B.vy,D.visit(G);function G(nt,et,lt,Ft,Lt){var Qt=nt.data,be=nt.r,Ut=z+be;if(!Qt)return et>Y+Ut||Ft<Y-Ut||lt>L+Ut||Lt<L-Ut;if(Qt.index>B.index){var se=Y-Qt.x-Qt.vx,ct=L-Qt.y-Qt.vy,Et=se*se+ct*ct;Et<Ut*Ut&&(se===0&&(Et+=(se=yc())*se),ct===0&&(Et+=(ct=yc())*ct),Et=(Ut-(Et=Math.sqrt(Et)))/Et*u,B.vx+=(se*=Et)*(Ut=(be*=be)/(q+be)),B.vy+=(ct*=Et)*Ut,Qt.vx-=se*(Ut=1-Ut),Qt.vy-=ct*Ut)}}}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 w(){if(i){var C,D,B=i.length;for(c=new Array(B),C=0;C<B;++C)D=i[C],c[D.index]=+n(D,C,i)}}return typeof n!="function"&&(n=Yi(n==null?1:+n)),v.initialize=function(C){i=C,w()},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:Yi(+C),w(),v):n},v}function u5(n){return n.index}function gg(n,i){var c=n.get(i);if(!c)throw new Error("missing: "+i);return c}function l5(n){var i,c,u,g,v,k=u5,w=function(q){return 1/Math.min(g[q.source.index],g[q.target.index])},C=Yi(30),D=1;function B(q){for(var Q=0,Z=n.length;Q<D;++Q)for(var G,nt,et,lt,Ft,Lt,Qt,be=0;be<Z;++be)nt=(G=n[be]).source,lt=(et=G.target).x+et.vx-nt.x-nt.vx||yc(),Ft=et.y+et.vy-nt.y-nt.vy||yc(),lt*=Lt=((Lt=Math.sqrt(lt*lt+Ft*Ft))-c[be])/Lt*q*i[be],Ft*=Lt,et.vx-=lt*(Qt=v[be]),et.vy-=Ft*Qt,nt.vx+=lt*(Qt=1-Qt),nt.vy+=Ft*Qt}function Y(){if(u){var q,Q,Z=u.length,G=n.length,nt=Is(u,k);for(q=0,g=new Array(Z);q<G;++q)(Q=n[q]).index=q,typeof Q.source!="object"&&(Q.source=gg(nt,Q.source)),typeof Q.target!="object"&&(Q.target=gg(nt,Q.target)),g[Q.source.index]=(g[Q.source.index]||0)+1,g[Q.target.index]=(g[Q.target.index]||0)+1;for(q=0,v=new Array(G);q<G;++q)Q=n[q],v[q]=g[Q.source.index]/(g[Q.source.index]+g[Q.target.index]);i=new Array(G),L(),c=new Array(G),z()}}function L(){if(u)for(var q=0,Q=n.length;q<Q;++q)i[q]=+w(n[q],q,n)}function z(){if(u)for(var q=0,Q=n.length;q<Q;++q)c[q]=+C(n[q],q,n)}return n==null&&(n=[]),B.initialize=function(q){u=q,Y()},B.links=function(q){return arguments.length?(n=q,Y(),B):n},B.id=function(q){return arguments.length?(k=q,B):k},B.iterations=function(q){return arguments.length?(D=+q,B):D},B.strength=function(q){return arguments.length?(w=typeof q=="function"?q:Yi(+q),L(),B):w},B.distance=function(q){return arguments.length?(C=typeof q=="function"?q:Yi(+q),z(),B):C},B}function h5(n){return n.x}function f5(n){return n.y}ka.copy=function(){var n,i,c=new vl(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=gv(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]=gv(i));return c},ka.add=function(n){var i=+this._x.call(null,n),c=+this._y.call(null,n);return pv(this.cover(i,c),i,c,n)},ka.addAll=function(n){var i,c,u,g,v=n.length,k=new Array(v),w=new Array(v),C=1/0,D=1/0,B=-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,w[c]=g,u<C&&(C=u),u>B&&(B=u),g<D&&(D=g),g>Y&&(Y=g));if(C>B||D>Y)return this;for(this.cover(C,D).cover(B,Y),c=0;c<v;++c)pv(this,k[c],w[c],n[c]);return this},ka.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,w,C=g-c,D=this._root;c>n||n>=g||u>i||i>=v;)switch(w=(i<u)<<1|n<c,(k=new Array(4))[w]=D,D=k,C*=2,w){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},ka.data=function(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n},ka.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]]},ka.find=function(n,i,c){var u,g,v,k,w,C,D,B=this._x0,Y=this._y0,L=this._x1,z=this._y1,q=[],Q=this._root;for(Q&&q.push(new wa(Q,B,Y,L,z)),c==null?c=1/0:(B=n-c,Y=i-c,L=n+c,z=i+c,c*=c);C=q.pop();)if(!(!(Q=C.node)||(g=C.x0)>L||(v=C.y0)>z||(k=C.x1)<B||(w=C.y1)<Y))if(Q.length){var Z=(g+k)/2,G=(v+w)/2;q.push(new wa(Q[3],Z,G,k,w),new wa(Q[2],g,G,Z,w),new wa(Q[1],Z,v,k,G),new wa(Q[0],g,v,Z,G)),(D=(i>=G)<<1|n>=Z)&&(C=q[q.length-1],q[q.length-1]=q[q.length-1-D],q[q.length-1-D]=C)}else{var nt=n-+this._x.call(null,Q.data),et=i-+this._y.call(null,Q.data),lt=nt*nt+et*et;if(lt<c){var Ft=Math.sqrt(c=lt);B=n-Ft,Y=i-Ft,L=n+Ft,z=i+Ft,u=Q.data}}return u},ka.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,w,C,D,B,Y,L,z=this._root,q=this._x0,Q=this._y0,Z=this._x1,G=this._y1;if(!z)return this;if(z.length)for(;;){if((D=v>=(w=(q+Z)/2))?q=w:Z=w,(B=k>=(C=(Q+G)/2))?Q=C:G=C,i=z,!(z=z[Y=B<<1|D]))return this;if(!z.length)break;(i[Y+1&3]||i[Y+2&3]||i[Y+3&3])&&(c=i,L=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[L]=z:this._root=z),this):(this._root=g,this)},ka.removeAll=function(n){for(var i=0,c=n.length;i<c;++i)this.remove(n[i]);return this},ka.root=function(){return this._root},ka.size=function(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n},ka.visit=function(n){var i,c,u,g,v,k,w=[],C=this._root;for(C&&w.push(new wa(C,this._x0,this._y0,this._x1,this._y1));i=w.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,B=(g+k)/2;(c=C[3])&&w.push(new wa(c,D,B,v,k)),(c=C[2])&&w.push(new wa(c,u,B,D,k)),(c=C[1])&&w.push(new wa(c,D,g,v,B)),(c=C[0])&&w.push(new wa(c,u,g,D,B))}return this},ka.visitAfter=function(n){var i,c=[],u=[];for(this._root&&c.push(new wa(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,w=i.y0,C=i.x1,D=i.y1,B=(k+C)/2,Y=(w+D)/2;(v=g[0])&&c.push(new wa(v,k,w,B,Y)),(v=g[1])&&c.push(new wa(v,B,w,C,Y)),(v=g[2])&&c.push(new wa(v,k,Y,B,D)),(v=g[3])&&c.push(new wa(v,B,Y,C,D))}u.push(i)}for(;i=u.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},ka.x=function(n){return arguments.length?(this._x=n,this):this._x},ka.y=function(n){return arguments.length?(this._y=n,this):this._y};var _l=Math.PI*(3-Math.sqrt(5));function d5(n){var i,c=1,u=.001,g=1-Math.pow(u,1/300),v=0,k=.6,w=Is(),C=fe(B),D=en("tick","end");function B(){Y(),D.call("tick",i),c<u&&(C.stop(),D.call("end",i))}function Y(q){var Q,Z,G=n.length;q===void 0&&(q=1);for(var nt=0;nt<q;++nt)for(c+=(v-c)*g,w.each(function(et){et(c)}),Q=0;Q<G;++Q)(Z=n[Q]).fx==null?Z.x+=Z.vx*=k:(Z.x=Z.fx,Z.vx=0),Z.fy==null?Z.y+=Z.vy*=k:(Z.y=Z.fy,Z.vy=0);return i}function L(){for(var q,Q=0,Z=n.length;Q<Z;++Q){if((q=n[Q]).index=Q,q.fx!=null&&(q.x=q.fx),q.fy!=null&&(q.y=q.fy),isNaN(q.x)||isNaN(q.y)){var G=10*Math.sqrt(Q),nt=Q*_l;q.x=G*Math.cos(nt),q.y=G*Math.sin(nt)}(isNaN(q.vx)||isNaN(q.vy))&&(q.vx=q.vy=0)}}function z(q){return q.initialize&&q.initialize(n),q}return n==null&&(n=[]),L(),i={tick:Y,restart:function(){return C.restart(B),i},stop:function(){return C.stop(),i},nodes:function(q){return arguments.length?(n=q,L(),w.each(z),i):n},alpha:function(q){return arguments.length?(c=+q,i):c},alphaMin:function(q){return arguments.length?(u=+q,i):u},alphaDecay:function(q){return arguments.length?(g=+q,i):+g},alphaTarget:function(q){return arguments.length?(v=+q,i):v},velocityDecay:function(q){return arguments.length?(k=1-q,i):1-k},force:function(q,Q){return arguments.length>1?(Q==null?w.remove(q):w.set(q,z(Q)),i):w.get(q)},find:function(q,Q,Z){var G,nt,et,lt,Ft,Lt=0,Qt=n.length;for(Z==null?Z=1/0:Z*=Z,Lt=0;Lt<Qt;++Lt)(et=(G=q-(lt=n[Lt]).x)*G+(nt=Q-lt.y)*nt)<Z&&(Ft=lt,Z=et);return Ft},on:function(q,Q){return arguments.length>1?(D.on(q,Q),i):D.on(q)}}}function p5(){var n,i,c,u,g=Yi(-30),v=1,k=1/0,w=.81;function C(L){var z,q=n.length,Q=Vh(n,h5,f5).visitAfter(B);for(c=L,z=0;z<q;++z)i=n[z],Q.visit(Y)}function D(){if(n){var L,z,q=n.length;for(u=new Array(q),L=0;L<q;++L)z=n[L],u[z.index]=+g(z,L,n)}}function B(L){var z,q,Q,Z,G,nt=0,et=0;if(L.length){for(Q=Z=G=0;G<4;++G)(z=L[G])&&(q=Math.abs(z.value))&&(nt+=z.value,et+=q,Q+=q*z.x,Z+=q*z.y);L.x=Q/et,L.y=Z/et}else{(z=L).x=z.data.x,z.y=z.data.y;do nt+=u[z.data.index];while(z=z.next)}L.value=nt}function Y(L,z,q,Q){if(!L.value)return!0;var Z=L.x-i.x,G=L.y-i.y,nt=Q-z,et=Z*Z+G*G;if(nt*nt/w<et)return et<k&&(Z===0&&(et+=(Z=yc())*Z),G===0&&(et+=(G=yc())*G),et<v&&(et=Math.sqrt(v*et)),i.vx+=Z*L.value*c/et,i.vy+=G*L.value*c/et),!0;if(!(L.length||et>=k)){(L.data!==i||L.next)&&(Z===0&&(et+=(Z=yc())*Z),G===0&&(et+=(G=yc())*G),et<v&&(et=Math.sqrt(v*et)));do L.data!==i&&(nt=u[L.data.index]*c/et,i.vx+=Z*nt,i.vy+=G*nt);while(L=L.next)}}return C.initialize=function(L){n=L,D()},C.strength=function(L){return arguments.length?(g=typeof L=="function"?L:Yi(+L),D(),C):g},C.distanceMin=function(L){return arguments.length?(v=L*L,C):Math.sqrt(v)},C.distanceMax=function(L){return arguments.length?(k=L*L,C):Math.sqrt(k)},C.theta=function(L){return arguments.length?(w=L*L,C):Math.sqrt(w)},C}function g5(n,i,c){var u,g,v,k=Yi(.1);function w(D){for(var B=0,Y=u.length;B<Y;++B){var L=u[B],z=L.x-i||1e-6,q=L.y-c||1e-6,Q=Math.sqrt(z*z+q*q),Z=(v[B]-Q)*g[B]*D/Q;L.vx+=z*Z,L.vy+=q*Z}}function C(){if(u){var D,B=u.length;for(g=new Array(B),v=new Array(B),D=0;D<B;++D)v[D]=+n(u[D],D,u),g[D]=isNaN(v[D])?0:+k(u[D],D,u)}}return typeof n!="function"&&(n=Yi(+n)),i==null&&(i=0),c==null&&(c=0),w.initialize=function(D){u=D,C()},w.strength=function(D){return arguments.length?(k=typeof D=="function"?D:Yi(+D),C(),w):k},w.radius=function(D){return arguments.length?(n=typeof D=="function"?D:Yi(+D),C(),w):n},w.x=function(D){return arguments.length?(i=+D,w):i},w.y=function(D){return arguments.length?(c=+D,w):c},w}function yv(n){var i,c,u,g=Yi(.1);function v(w){for(var C,D=0,B=i.length;D<B;++D)(C=i[D]).vx+=(u[D]-C.x)*c[D]*w}function k(){if(i){var w,C=i.length;for(c=new Array(C),u=new Array(C),w=0;w<C;++w)c[w]=isNaN(u[w]=+n(i[w],w,i))?0:+g(i[w],w,i)}}return typeof n!="function"&&(n=Yi(n==null?0:+n)),v.initialize=function(w){i=w,k()},v.strength=function(w){return arguments.length?(g=typeof w=="function"?w:Yi(+w),k(),v):g},v.x=function(w){return arguments.length?(n=typeof w=="function"?w:Yi(+w),k(),v):n},v}function yg(n){var i,c,u,g=Yi(.1);function v(w){for(var C,D=0,B=i.length;D<B;++D)(C=i[D]).vy+=(u[D]-C.y)*c[D]*w}function k(){if(i){var w,C=i.length;for(c=new Array(C),u=new Array(C),w=0;w<C;++w)c[w]=isNaN(u[w]=+n(i[w],w,i))?0:+g(i[w],w,i)}}return typeof n!="function"&&(n=Yi(n==null?0:+n)),v.initialize=function(w){i=w,k()},v.strength=function(w){return arguments.length?(g=typeof w=="function"?w:Yi(+w),k(),v):g},v.y=function(w){return arguments.length?(n=typeof w=="function"?w:Yi(+w),k(),v):n},v}function Gh(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 hu(n){return(n=Gh(Math.abs(n)))?n[1]:NaN}var mg,y5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xh(n){if(!(i=y5.exec(n)))throw new Error("invalid format: "+n);var i;return new Kd({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 Kd(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 mv(n,i){var c=Gh(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")}Xh.prototype=Kd.prototype,Kd.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 vv={"%":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 mv(100*n,i)},r:mv,s:function(n,i){var c=Gh(n,i);if(!c)return n+"";var u=c[0],g=c[1],v=g-(mg=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")+Gh(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 _v(n){return n}var t1,e1,vg,bv=Array.prototype.map,xv=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function wv(n){var i,c,u=n.grouping===void 0||n.thousands===void 0?_v:(i=bv.call(n.grouping,Number),c=n.thousands+"",function(L,z){for(var q=L.length,Q=[],Z=0,G=i[0],nt=0;q>0&&G>0&&(nt+G+1>z&&(G=Math.max(1,z-nt)),Q.push(L.substring(q-=G,q+G)),!((nt+=G+1)>z));)G=i[Z=(Z+1)%i.length];return Q.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+"",w=n.numerals===void 0?_v:function(L){return function(z){return z.replace(/[0-9]/g,function(q){return L[+q]})}}(bv.call(n.numerals,String)),C=n.percent===void 0?"%":n.percent+"",D=n.minus===void 0?"-":n.minus+"",B=n.nan===void 0?"NaN":n.nan+"";function Y(L){var z=(L=Xh(L)).fill,q=L.align,Q=L.sign,Z=L.symbol,G=L.zero,nt=L.width,et=L.comma,lt=L.precision,Ft=L.trim,Lt=L.type;Lt==="n"?(et=!0,Lt="g"):vv[Lt]||(lt===void 0&&(lt=12),Ft=!0,Lt="g"),(G||z==="0"&&q==="=")&&(G=!0,z="0",q="=");var Qt=Z==="$"?g:Z==="#"&&/[boxX]/.test(Lt)?"0"+Lt.toLowerCase():"",be=Z==="$"?v:/[%p]/.test(Lt)?C:"",Ut=vv[Lt],se=/[defgprs%]/.test(Lt);function ct(Et){var te,Zt,ee,Ne=Qt,Ue=be;if(Lt==="c")Ue=Ut(Et)+Ue,Et="";else{var pn=(Et=+Et)<0||1/Et<0;if(Et=isNaN(Et)?B:Ut(Math.abs(Et),lt),Ft&&(Et=function(Je){t:for(var gr,On=Je.length,Dn=1,lr=-1;Dn<On;++Dn)switch(Je[Dn]){case".":lr=gr=Dn;break;case"0":lr===0&&(lr=Dn),gr=Dn;break;default:if(!+Je[Dn])break t;lr>0&&(lr=0)}return lr>0?Je.slice(0,lr)+Je.slice(gr+1):Je}(Et)),pn&&+Et==0&&Q!=="+"&&(pn=!1),Ne=(pn?Q==="("?Q:D:Q==="-"||Q==="("?"":Q)+Ne,Ue=(Lt==="s"?xv[8+mg/3]:"")+Ue+(pn&&Q==="("?")":""),se){for(te=-1,Zt=Et.length;++te<Zt;)if(48>(ee=Et.charCodeAt(te))||ee>57){Ue=(ee===46?k+Et.slice(te+1):Et.slice(te))+Ue,Et=Et.slice(0,te);break}}}et&&!G&&(Et=u(Et,1/0));var Kn=Ne.length+Et.length+Ue.length,or=Kn<nt?new Array(nt-Kn+1).join(z):"";switch(et&&G&&(Et=u(or+Et,or.length?nt-Ue.length:1/0),or=""),q){case"<":Et=Ne+Et+Ue+or;break;case"=":Et=Ne+or+Et+Ue;break;case"^":Et=or.slice(0,Kn=or.length>>1)+Ne+Et+Ue+or.slice(Kn);break;default:Et=or+Ne+Et+Ue}return w(Et)}return lt=lt===void 0?6:/[gprs]/.test(Lt)?Math.max(1,Math.min(21,lt)):Math.max(0,Math.min(20,lt)),ct.toString=function(){return L+""},ct}return{format:Y,formatPrefix:function(L,z){var q=Y(((L=Xh(L)).type="f",L)),Q=3*Math.max(-8,Math.min(8,Math.floor(hu(z)/3))),Z=Math.pow(10,-Q),G=xv[8+Q/3];return function(nt){return q(Z*nt)+G}}}}function kv(n){return t1=wv(n),e1=t1.format,vg=t1.formatPrefix,t1}function _g(n){return Math.max(0,-hu(Math.abs(n)))}function Tv(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(hu(i)/3)))-hu(Math.abs(n)))}function Ev(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,hu(i)-hu(n))+1}function mc(){return new n1}function n1(){this.reset()}kv({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),n1.prototype={constructor:n1,reset:function(){this.s=this.t=0},add:function(n){Sv(r1,n,this.t),Sv(this,r1.s,this.s),this.s?this.t+=r1.t:this.s=r1.t},valueOf:function(){return this.s}};var r1=new n1;function Sv(n,i,c){var u=n.s=i+c,g=u-i,v=u-g;n.t=i-v+(c-g)}var Rn=1e-6,Zh=1e-12,ir=Math.PI,gi=ir/2,bl=ir/4,Lr=2*ir,Pr=180/ir,wn=ir/180,Se=Math.abs,vc=Math.atan,na=Math.atan2,hn=Math.cos,cs=Math.ceil,Cv=Math.exp,xl=Math.log,i1=Math.pow,an=Math.sin,xr=Math.sign||function(n){return n>0?1:n<0?-1:0},Ti=Math.sqrt,$i=Math.tan;function _c(n){return n>1?0:n<-1?ir:Math.acos(n)}function Ta(n){return n>1?gi:n<-1?-gi:Math.asin(n)}function a1(n){return(n=an(n/2))*n}function wr(){}function Ps(n,i){n&&wl.hasOwnProperty(n.type)&&wl[n.type](n,i)}var Ea={Feature:function(n,i){Ps(n.geometry,i)},FeatureCollection:function(n,i){for(var c=n.features,u=-1,g=c.length;++u<g;)Ps(c[u].geometry,i)}},wl={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){kl(n.coordinates,i,0)},MultiLineString:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)kl(c[u],i,0)},Polygon:function(n,i){Qh(n.coordinates,i)},MultiPolygon:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)Qh(c[u],i)},GeometryCollection:function(n,i){for(var c=n.geometries,u=-1,g=c.length;++u<g;)Ps(c[u],i)}};function kl(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 Qh(n,i){var c=-1,u=n.length;for(i.polygonStart();++c<u;)kl(n[c],i,1);i.polygonEnd()}function Oo(n,i){n&&Ea.hasOwnProperty(n.type)?Ea[n.type](n,i):Ps(n,i)}var bg,Mv,xg,wg,kg,o1=mc(),s1=mc(),to={point:wr,lineStart:wr,lineEnd:wr,polygonStart:function(){o1.reset(),to.lineStart=Tg,to.lineEnd=Av},polygonEnd:function(){var n=+o1;s1.add(n<0?Lr+n:n),this.lineStart=this.lineEnd=this.point=wr},sphere:function(){s1.add(Lr)}};function Tg(){to.point=Dv}function Av(){go(bg,Mv)}function Dv(n,i){to.point=go,bg=n,Mv=i,xg=n*=wn,wg=hn(i=(i*=wn)/2+bl),kg=an(i)}function go(n,i){var c=(n*=wn)-xg,u=c>=0?1:-1,g=u*c,v=hn(i=(i*=wn)/2+bl),k=an(i),w=kg*k,C=wg*v+w*hn(g),D=w*u*an(g);o1.add(na(D,C)),xg=n,wg=v,kg=k}function m5(n){return s1.reset(),Oo(n,to),2*s1}function c1(n){return[na(n[1],n[0]),Ta(n[2])]}function yo(n){var i=n[0],c=n[1],u=hn(c);return[u*hn(i),u*an(i),an(c)]}function u1(n,i){return n[0]*i[0]+n[1]*i[1]+n[2]*i[2]}function Tl(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 El(n,i){n[0]+=i[0],n[1]+=i[1],n[2]+=i[2]}function fu(n,i){return[n[0]*i,n[1]*i,n[2]*i]}function Jh(n){var i=Ti(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=i,n[1]/=i,n[2]/=i}var Yr,Sa,oi,Pa,bc,Eg,Sg,xc,Bo,us,Sl,Kh,tf,du,Cl,Ml,mo,ef,l1,Ys,Cg,h1,Al,Ca,da,Ei,nf=mc(),Lo={point:pu,lineStart:Mg,lineEnd:Ag,polygonStart:function(){Lo.point=Dl,Lo.lineStart=Ov,Lo.lineEnd=rf,nf.reset(),to.polygonStart()},polygonEnd:function(){to.polygonEnd(),Lo.point=pu,Lo.lineStart=Mg,Lo.lineEnd=Ag,o1<0?(Yr=-(oi=180),Sa=-(Pa=90)):nf>Rn?Pa=90:nf<-1e-6&&(Sa=-90),us[0]=Yr,us[1]=oi},sphere:function(){Yr=-(oi=180),Sa=-(Pa=90)}};function pu(n,i){Bo.push(us=[Yr=n,oi=n]),i<Sa&&(Sa=i),i>Pa&&(Pa=i)}function Nv(n,i){var c=yo([n*wn,i*wn]);if(xc){var u=Tl(xc,c),g=Tl([u[1],-u[0],0],u);Jh(g),g=c1(g);var v,k=n-bc,w=k>0?1:-1,C=g[0]*Pr*w,D=Se(k)>180;D^(w*bc<C&&C<w*n)?(v=g[1]*Pr)>Pa&&(Pa=v):D^(w*bc<(C=(C+360)%360-180)&&C<w*n)?(v=-g[1]*Pr)<Sa&&(Sa=v):(i<Sa&&(Sa=i),i>Pa&&(Pa=i)),D?n<bc?Ma(Yr,n)>Ma(Yr,oi)&&(oi=n):Ma(n,oi)>Ma(Yr,oi)&&(Yr=n):oi>=Yr?(n<Yr&&(Yr=n),n>oi&&(oi=n)):n>bc?Ma(Yr,n)>Ma(Yr,oi)&&(oi=n):Ma(n,oi)>Ma(Yr,oi)&&(Yr=n)}else Bo.push(us=[Yr=n,oi=n]);i<Sa&&(Sa=i),i>Pa&&(Pa=i),xc=c,bc=n}function Mg(){Lo.point=Nv}function Ag(){us[0]=Yr,us[1]=oi,Lo.point=pu,xc=null}function Dl(n,i){if(xc){var c=n-bc;nf.add(Se(c)>180?c+(c>0?360:-360):c)}else Eg=n,Sg=i;to.point(n,i),Nv(n,i)}function Ov(){to.lineStart()}function rf(){Dl(Eg,Sg),to.lineEnd(),Se(nf)>Rn&&(Yr=-(oi=180)),us[0]=Yr,us[1]=oi,xc=null}function Ma(n,i){return(i-=n)<0?i+360:i}function Dg(n,i){return n[0]-i[0]}function Nl(n,i){return n[0]<=n[1]?n[0]<=i&&i<=n[1]:i<n[0]||n[1]<i}function af(n){var i,c,u,g,v,k,w;if(Pa=oi=-(Yr=Sa=1/0),Bo=[],Oo(n,Lo),c=Bo.length){for(Bo.sort(Dg),i=1,v=[u=Bo[0]];i<c;++i)Nl(u,(g=Bo[i])[0])||Nl(u,g[1])?(Ma(u[0],g[1])>Ma(u[0],u[1])&&(u[1]=g[1]),Ma(g[0],u[1])>Ma(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],(w=Ma(u[1],g[0]))>k&&(k=w,Yr=g[0],oi=u[1])}return Bo=us=null,Yr===1/0||Sa===1/0?[[NaN,NaN],[NaN,NaN]]:[[Yr,Sa],[oi,Pa]]}var eo={sphere:wr,point:f1,lineStart:Bv,lineEnd:Lv,polygonStart:function(){eo.lineStart=of,eo.lineEnd=sf},polygonEnd:function(){eo.lineStart=Bv,eo.lineEnd=Lv}};function f1(n,i){n*=wn;var c=hn(i*=wn);yi(c*hn(n),c*an(n),an(i))}function yi(n,i,c){++Sl,tf+=(n-tf)/Sl,du+=(i-du)/Sl,Cl+=(c-Cl)/Sl}function Bv(){eo.point=v5}function v5(n,i){n*=wn;var c=hn(i*=wn);Ca=c*hn(n),da=c*an(n),Ei=an(i),eo.point=kr,yi(Ca,da,Ei)}function kr(n,i){n*=wn;var c=hn(i*=wn),u=c*hn(n),g=c*an(n),v=an(i),k=na(Ti((k=da*v-Ei*g)*k+(k=Ei*u-Ca*v)*k+(k=Ca*g-da*u)*k),Ca*u+da*g+Ei*v);Kh+=k,Ml+=k*(Ca+(Ca=u)),mo+=k*(da+(da=g)),ef+=k*(Ei+(Ei=v)),yi(Ca,da,Ei)}function Lv(){eo.point=f1}function of(){eo.point=_5}function sf(){Iv(h1,Al),eo.point=f1}function _5(n,i){h1=n,Al=i,n*=wn,i*=wn,eo.point=Iv;var c=hn(i);Ca=c*hn(n),da=c*an(n),Ei=an(i),yi(Ca,da,Ei)}function Iv(n,i){n*=wn;var c=hn(i*=wn),u=c*hn(n),g=c*an(n),v=an(i),k=da*v-Ei*g,w=Ei*u-Ca*v,C=Ca*g-da*u,D=Ti(k*k+w*w+C*C),B=Ta(D),Y=D&&-B/D;l1+=Y*k,Ys+=Y*w,Cg+=Y*C,Kh+=B,Ml+=B*(Ca+(Ca=u)),mo+=B*(da+(da=g)),ef+=B*(Ei+(Ei=v)),yi(Ca,da,Ei)}function b5(n){Sl=Kh=tf=du=Cl=Ml=mo=ef=l1=Ys=Cg=0,Oo(n,eo);var i=l1,c=Ys,u=Cg,g=i*i+c*c+u*u;return g<Zh&&(i=Ml,c=mo,u=ef,Kh<Rn&&(i=tf,c=du,u=Cl),(g=i*i+c*c+u*u)<Zh)?[NaN,NaN]:[na(c,i)*Pr,Ta(u/Ti(g))*Pr]}function Ol(n){return function(){return n}}function Ng(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 d1(n,i){return[Se(n)>ir?n+Math.round(-n/Lr)*Lr:n,i]}function p1(n,i,c){return(n%=Lr)?i||c?Ng(Fv(n),Pv(i,c)):Fv(n):i||c?Pv(i,c):d1}function Rv(n){return function(i,c){return[(i+=n)>ir?i-Lr:i<-ir?i+Lr:i,c]}}function Fv(n){var i=Rv(n);return i.invert=Rv(-n),i}function Pv(n,i){var c=hn(n),u=an(n),g=hn(i),v=an(i);function k(w,C){var D=hn(C),B=hn(w)*D,Y=an(w)*D,L=an(C),z=L*c+B*u;return[na(Y*g-z*v,B*c-L*u),Ta(z*g+Y*v)]}return k.invert=function(w,C){var D=hn(C),B=hn(w)*D,Y=an(w)*D,L=an(C),z=L*g-Y*v;return[na(Y*g+L*v,B*c+z*u),Ta(z*c-B*u)]},k}function Og(n){function i(c){return(c=n(c[0]*wn,c[1]*wn))[0]*=Pr,c[1]*=Pr,c}return n=p1(n[0]*wn,n[1]*wn,n.length>2?n[2]*wn:0),i.invert=function(c){return(c=n.invert(c[0]*wn,c[1]*wn))[0]*=Pr,c[1]*=Pr,c},i}function Yv(n,i,c,u,g,v){if(c){var k=hn(i),w=an(i),C=u*c;g==null?(g=i+u*Lr,v=i-C/2):(g=Bg(k,g),v=Bg(k,v),(u>0?g<v:g>v)&&(g+=u*Lr));for(var D,B=g;u>0?B>v:B<v;B-=C)D=c1([k,-w*hn(B),-w*an(B)]),n.point(D[0],D[1])}}function Bg(n,i){(i=yo(i))[0]-=n,Jh(i);var c=_c(-i[1]);return((-i[2]<0?-c:c)+Lr-Rn)%Lr}function x5(){var n,i,c=Ol([0,0]),u=Ol(90),g=Ol(6),v={point:function(w,C){n.push(w=i(w,C)),w[0]*=Pr,w[1]*=Pr}};function k(){var w=c.apply(this,arguments),C=u.apply(this,arguments)*wn,D=g.apply(this,arguments)*wn;return n=[],i=p1(-w[0]*wn,-w[1]*wn,0).invert,Yv(v,C,D,1),w={type:"Polygon",coordinates:[n]},n=i=null,w}return k.center=function(w){return arguments.length?(c=typeof w=="function"?w:Ol([+w[0],+w[1]]),k):c},k.radius=function(w){return arguments.length?(u=typeof w=="function"?w:Ol(+w),k):u},k.precision=function(w){return arguments.length?(g=typeof w=="function"?w:Ol(+w),k):g},k}function jv(){var n,i=[];return{point:function(c,u,g){n.push([c,u,g])},lineStart:function(){i.push(n=[])},lineEnd:wr,rejoin:function(){i.length>1&&i.push(i.pop().concat(i.shift()))},result:function(){var c=i;return i=[],n=null,c}}}function g1(n,i){return Se(n[0]-i[0])<Rn&&Se(n[1]-i[1])<Rn}function y1(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 Uv(n,i,c,u,g){var v,k,w=[],C=[];if(n.forEach(function(q){if(!((Q=q.length-1)<=0)){var Q,Z,G=q[0],nt=q[Q];if(g1(G,nt)){if(!G[2]&&!nt[2]){for(g.lineStart(),v=0;v<Q;++v)g.point((G=q[v])[0],G[1]);return void g.lineEnd()}nt[0]+=2e-6}w.push(Z=new y1(G,q,null,!0)),C.push(Z.o=new y1(G,null,Z,!1)),w.push(Z=new y1(nt,q,null,!1)),C.push(Z.o=new y1(nt,null,Z,!0))}}),w.length){for(C.sort(i),zv(w),zv(C),v=0,k=C.length;v<k;++v)C[v].e=c=!c;for(var D,B,Y=w[0];;){for(var L=Y,z=!0;L.v;)if((L=L.n)===Y)return;D=L.z,g.lineStart();do{if(L.v=L.o.v=!0,L.e){if(z)for(v=0,k=D.length;v<k;++v)g.point((B=D[v])[0],B[1]);else u(L.x,L.n.x,1,g);L=L.n}else{if(z)for(D=L.p.z,v=D.length-1;v>=0;--v)g.point((B=D[v])[0],B[1]);else u(L.x,L.p.x,-1,g);L=L.p}D=(L=L.o).z,z=!z}while(!L.v);g.lineEnd()}}}function zv(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}}d1.invert=d1;var Lg=mc();function m1(n){return Se(n[0])<=ir?n[0]:xr(n[0])*((Se(n[0])+ir)%Lr-ir)}function Wv(n,i){var c=m1(i),u=i[1],g=an(u),v=[an(c),-hn(c),0],k=0,w=0;Lg.reset(),g===1?u=gi+Rn:g===-1&&(u=-gi-Rn);for(var C=0,D=n.length;C<D;++C)if(Y=(B=n[C]).length)for(var B,Y,L=B[Y-1],z=m1(L),q=L[1]/2+bl,Q=an(q),Z=hn(q),G=0;G<Y;++G,z=et,Q=Ft,Z=Lt,L=nt){var nt=B[G],et=m1(nt),lt=nt[1]/2+bl,Ft=an(lt),Lt=hn(lt),Qt=et-z,be=Qt>=0?1:-1,Ut=be*Qt,se=Ut>ir,ct=Q*Ft;if(Lg.add(na(ct*be*an(Ut),Z*Lt+ct*hn(Ut))),k+=se?Qt+be*Lr:Qt,se^z>=c^et>=c){var Et=Tl(yo(L),yo(nt));Jh(Et);var te=Tl(v,Et);Jh(te);var Zt=(se^Qt>=0?-1:1)*Ta(te[2]);(u>Zt||u===Zt&&(Et[0]||Et[1]))&&(w+=se^Qt>=0?1:-1)}}return(k<-1e-6||k<Rn&&Lg<-1e-6)^1&w}function Hv(n,i,c,u){return function(g){var v,k,w,C=i(g),D=jv(),B=i(D),Y=!1,L={point:z,lineStart:Q,lineEnd:Z,polygonStart:function(){L.point=G,L.lineStart=nt,L.lineEnd=et,k=[],v=[]},polygonEnd:function(){L.point=z,L.lineStart=Q,L.lineEnd=Z,k=he(k);var lt=Wv(v,u);k.length?(Y||(g.polygonStart(),Y=!0),Uv(k,qv,lt,c,g)):lt&&(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(lt,Ft){n(lt,Ft)&&g.point(lt,Ft)}function q(lt,Ft){C.point(lt,Ft)}function Q(){L.point=q,C.lineStart()}function Z(){L.point=z,C.lineEnd()}function G(lt,Ft){w.push([lt,Ft]),B.point(lt,Ft)}function nt(){B.lineStart(),w=[]}function et(){G(w[0][0],w[0][1]),B.lineEnd();var lt,Ft,Lt,Qt,be=B.clean(),Ut=D.result(),se=Ut.length;if(w.pop(),v.push(w),w=null,se)if(1&be){if((Ft=(Lt=Ut[0]).length-1)>0){for(Y||(g.polygonStart(),Y=!0),g.lineStart(),lt=0;lt<Ft;++lt)g.point((Qt=Lt[lt])[0],Qt[1]);g.lineEnd()}}else se>1&&2&be&&Ut.push(Ut.pop().concat(Ut.shift())),k.push(Ut.filter(w5))}return L}}function w5(n){return n.length>1}function qv(n,i){return((n=n.x)[0]<0?n[1]-gi-Rn:gi-n[1])-((i=i.x)[0]<0?i[1]-gi-Rn:gi-i[1])}const Ig=Hv(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 w=v>0?ir:-ir,C=Se(v-c);Se(C-ir)<Rn?(n.point(c,u=(u+k)/2>0?gi:-gi),n.point(g,u),n.lineEnd(),n.lineStart(),n.point(w,u),n.point(v,u),i=0):g!==w&&C>=ir&&(Se(c-g)<Rn&&(c-=g*Rn),Se(v-w)<Rn&&(v-=w*Rn),u=function(D,B,Y,L){var z,q,Q=an(D-Y);return Se(Q)>Rn?vc((an(B)*(q=hn(L))*an(Y)-an(L)*(z=hn(B))*an(D))/(z*q*Q)):(B+L)/2}(c,u,v,k),n.point(g,u),n.lineEnd(),n.lineStart(),n.point(w,u),i=0),n.point(c=v,u=k),g=w},lineEnd:function(){n.lineEnd(),c=u=NaN},clean:function(){return 2-i}}},function(n,i,c,u){var g;if(n==null)g=c*gi,u.point(-ir,g),u.point(0,g),u.point(ir,g),u.point(ir,0),u.point(ir,-g),u.point(0,-g),u.point(-ir,-g),u.point(-ir,0),u.point(-ir,g);else if(Se(n[0]-i[0])>Rn){var v=n[0]<i[0]?ir:-ir;g=c*v/2,u.point(-v,g),u.point(0,g),u.point(v,g)}else u.point(i[0],i[1])},[-ir,-gi]);function $v(n){var i=hn(n),c=6*wn,u=i>0,g=Se(i)>Rn;function v(C,D){return hn(C)*hn(D)>i}function k(C,D,B){var Y=[1,0,0],L=Tl(yo(C),yo(D)),z=u1(L,L),q=L[0],Q=z-q*q;if(!Q)return!B&&C;var Z=i*z/Q,G=-i*q/Q,nt=Tl(Y,L),et=fu(Y,Z);El(et,fu(L,G));var lt=nt,Ft=u1(et,lt),Lt=u1(lt,lt),Qt=Ft*Ft-Lt*(u1(et,et)-1);if(!(Qt<0)){var be=Ti(Qt),Ut=fu(lt,(-Ft-be)/Lt);if(El(Ut,et),Ut=c1(Ut),!B)return Ut;var se,ct=C[0],Et=D[0],te=C[1],Zt=D[1];Et<ct&&(se=ct,ct=Et,Et=se);var ee=Et-ct,Ne=Se(ee-ir)<Rn;if(!Ne&&Zt<te&&(se=te,te=Zt,Zt=se),Ne||ee<Rn?Ne?te+Zt>0^Ut[1]<(Se(Ut[0]-ct)<Rn?te:Zt):te<=Ut[1]&&Ut[1]<=Zt:ee>ir^(ct<=Ut[0]&&Ut[0]<=Et)){var Ue=fu(lt,(-Ft+be)/Lt);return El(Ue,et),[Ut,c1(Ue)]}}}function w(C,D){var B=u?n:ir-n,Y=0;return C<-B?Y|=1:C>B&&(Y|=2),D<-B?Y|=4:D>B&&(Y|=8),Y}return Hv(v,function(C){var D,B,Y,L,z;return{lineStart:function(){L=Y=!1,z=1},point:function(q,Q){var Z,G=[q,Q],nt=v(q,Q),et=u?nt?0:w(q,Q):nt?w(q+(q<0?ir:-ir),Q):0;if(!D&&(L=Y=nt)&&C.lineStart(),nt!==Y&&(!(Z=k(D,G))||g1(D,Z)||g1(G,Z))&&(G[2]=1),nt!==Y)z=0,nt?(C.lineStart(),Z=k(G,D),C.point(Z[0],Z[1])):(Z=k(D,G),C.point(Z[0],Z[1],2),C.lineEnd()),D=Z;else if(g&&D&&u^nt){var lt;et&B||!(lt=k(G,D,!0))||(z=0,u?(C.lineStart(),C.point(lt[0][0],lt[0][1]),C.point(lt[1][0],lt[1][1]),C.lineEnd()):(C.point(lt[1][0],lt[1][1]),C.lineEnd(),C.lineStart(),C.point(lt[0][0],lt[0][1],3)))}!nt||D&&g1(D,G)||C.point(G[0],G[1]),D=G,Y=nt,B=et},lineEnd:function(){Y&&C.lineEnd(),D=null},clean:function(){return z|(L&&Y)<<1}}},function(C,D,B,Y){Yv(Y,n,c,B,C,D)},u?[0,-n]:[-ir,n-ir])}var cf=1e9,v1=-cf;function _1(n,i,c,u){function g(D,B){return n<=D&&D<=c&&i<=B&&B<=u}function v(D,B,Y,L){var z=0,q=0;if(D==null||(z=k(D,Y))!==(q=k(B,Y))||C(D,B)<0^Y>0)do L.point(z===0||z===3?n:c,z>1?u:i);while((z=(z+Y+4)%4)!==q);else L.point(B[0],B[1])}function k(D,B){return Se(D[0]-n)<Rn?B>0?0:3:Se(D[0]-c)<Rn?B>0?2:1:Se(D[1]-i)<Rn?B>0?1:0:B>0?3:2}function w(D,B){return C(D.x,B.x)}function C(D,B){var Y=k(D,1),L=k(B,1);return Y!==L?Y-L:Y===0?B[1]-D[1]:Y===1?D[0]-B[0]:Y===2?D[1]-B[1]:B[0]-D[0]}return function(D){var B,Y,L,z,q,Q,Z,G,nt,et,lt,Ft=D,Lt=jv(),Qt={point:be,lineStart:function(){Qt.point=Ut,Y&&Y.push(L=[]),et=!0,nt=!1,Z=G=NaN},lineEnd:function(){B&&(Ut(z,q),Q&&nt&&Lt.rejoin(),B.push(Lt.result())),Qt.point=be,nt&&Ft.lineEnd()},polygonStart:function(){Ft=Lt,B=[],Y=[],lt=!0},polygonEnd:function(){var se=function(){for(var te=0,Zt=0,ee=Y.length;Zt<ee;++Zt)for(var Ne,Ue,pn=Y[Zt],Kn=1,or=pn.length,Je=pn[0],gr=Je[0],On=Je[1];Kn<or;++Kn)Ne=gr,Ue=On,gr=(Je=pn[Kn])[0],On=Je[1],Ue<=u?On>u&&(gr-Ne)*(u-Ue)>(On-Ue)*(n-Ne)&&++te:On<=u&&(gr-Ne)*(u-Ue)<(On-Ue)*(n-Ne)&&--te;return te}(),ct=lt&&se,Et=(B=he(B)).length;(ct||Et)&&(D.polygonStart(),ct&&(D.lineStart(),v(null,null,1,D),D.lineEnd()),Et&&Uv(B,w,se,v,D),D.polygonEnd()),Ft=D,B=Y=L=null}};function be(se,ct){g(se,ct)&&Ft.point(se,ct)}function Ut(se,ct){var Et=g(se,ct);if(Y&&L.push([se,ct]),et)z=se,q=ct,Q=Et,et=!1,Et&&(Ft.lineStart(),Ft.point(se,ct));else if(Et&&nt)Ft.point(se,ct);else{var te=[Z=Math.max(v1,Math.min(cf,Z)),G=Math.max(v1,Math.min(cf,G))],Zt=[se=Math.max(v1,Math.min(cf,se)),ct=Math.max(v1,Math.min(cf,ct))];(function(ee,Ne,Ue,pn,Kn,or){var Je,gr=ee[0],On=ee[1],Dn=0,lr=1,Qi=Ne[0]-gr,Bi=Ne[1]-On;if(Je=Ue-gr,Qi||!(Je>0)){if(Je/=Qi,Qi<0){if(Je<Dn)return;Je<lr&&(lr=Je)}else if(Qi>0){if(Je>lr)return;Je>Dn&&(Dn=Je)}if(Je=Kn-gr,Qi||!(Je<0)){if(Je/=Qi,Qi<0){if(Je>lr)return;Je>Dn&&(Dn=Je)}else if(Qi>0){if(Je<Dn)return;Je<lr&&(lr=Je)}if(Je=pn-On,Bi||!(Je>0)){if(Je/=Bi,Bi<0){if(Je<Dn)return;Je<lr&&(lr=Je)}else if(Bi>0){if(Je>lr)return;Je>Dn&&(Dn=Je)}if(Je=or-On,Bi||!(Je<0)){if(Je/=Bi,Bi<0){if(Je>lr)return;Je>Dn&&(Dn=Je)}else if(Bi>0){if(Je<Dn)return;Je<lr&&(lr=Je)}return Dn>0&&(ee[0]=gr+Dn*Qi,ee[1]=On+Dn*Bi),lr<1&&(Ne[0]=gr+lr*Qi,Ne[1]=On+lr*Bi),!0}}}}})(te,Zt,n,i,c,u)?(nt||(Ft.lineStart(),Ft.point(te[0],te[1])),Ft.point(Zt[0],Zt[1]),Et||Ft.lineEnd(),lt=!1):Et&&(Ft.lineStart(),Ft.point(se,ct),lt=!1)}Z=se,G=ct,nt=Et}return Qt}}function k5(){var n,i,c,u=0,g=0,v=960,k=500;return c={stream:function(w){return n&&i===w?n:n=_1(u,g,v,k)(i=w)},extent:function(w){return arguments.length?(u=+w[0][0],g=+w[0][1],v=+w[1][0],k=+w[1][1],n=i=null,c):[[u,g],[v,k]]}}}var b1,x1,w1,Rg=mc(),Bl={sphere:wr,point:wr,lineStart:function(){Bl.point=E5,Bl.lineEnd=T5},lineEnd:wr,polygonStart:wr,polygonEnd:wr};function T5(){Bl.point=Bl.lineEnd=wr}function E5(n,i){b1=n*=wn,x1=an(i*=wn),w1=hn(i),Bl.point=S5}function S5(n,i){n*=wn;var c=an(i*=wn),u=hn(i),g=Se(n-b1),v=hn(g),k=u*an(g),w=w1*c-x1*u*v,C=x1*c+w1*u*v;Rg.add(na(Ti(k*k+w*w),C)),b1=n,x1=c,w1=u}function Vv(n){return Rg.reset(),Oo(n,Bl),+Rg}var k1=[null,null],C5={type:"LineString",coordinates:k1};function T1(n,i){return k1[0]=n,k1[1]=i,Vv(C5)}var Gv={Feature:function(n,i){return E1(n.geometry,i)},FeatureCollection:function(n,i){for(var c=n.features,u=-1,g=c.length;++u<g;)if(E1(c[u].geometry,i))return!0;return!1}},Fg={Sphere:function(){return!0},Point:function(n,i){return Xv(n.coordinates,i)},MultiPoint:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)if(Xv(c[u],i))return!0;return!1},LineString:function(n,i){return Zv(n.coordinates,i)},MultiLineString:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)if(Zv(c[u],i))return!0;return!1},Polygon:function(n,i){return Qv(n.coordinates,i)},MultiPolygon:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)if(Qv(c[u],i))return!0;return!1},GeometryCollection:function(n,i){for(var c=n.geometries,u=-1,g=c.length;++u<g;)if(E1(c[u],i))return!0;return!1}};function E1(n,i){return!(!n||!Fg.hasOwnProperty(n.type))&&Fg[n.type](n,i)}function Xv(n,i){return T1(n,i)===0}function Zv(n,i){for(var c,u,g,v=0,k=n.length;v<k;v++){if((u=T1(n[v],i))===0||v>0&&(g=T1(n[v],n[v-1]))>0&&c<=g&&u<=g&&(c+u-g)*(1-Math.pow((c-u)/g,2))<Zh*g)return!0;c=u}return!1}function Qv(n,i){return!!Wv(n.map(M5),Jv(i))}function M5(n){return(n=n.map(Jv)).pop(),n}function Jv(n){return[n[0]*wn,n[1]*wn]}function Kv(n,i){return(n&&Gv.hasOwnProperty(n.type)?Gv[n.type]:E1)(n,i)}function t_(n,i,c){var u=_t(n,i-Rn,c).concat(i);return function(g){return u.map(function(v){return[g,v]})}}function e_(n,i,c){var u=_t(n,i-Rn,c).concat(i);return function(g){return u.map(function(v){return[v,g]})}}function n_(){var n,i,c,u,g,v,k,w,C,D,B,Y,L=10,z=L,q=90,Q=360,Z=2.5;function G(){return{type:"MultiLineString",coordinates:nt()}}function nt(){return _t(cs(u/q)*q,c,q).map(B).concat(_t(cs(w/Q)*Q,k,Q).map(Y)).concat(_t(cs(i/L)*L,n,L).filter(function(et){return Se(et%q)>Rn}).map(C)).concat(_t(cs(v/z)*z,g,z).filter(function(et){return Se(et%Q)>Rn}).map(D))}return G.lines=function(){return nt().map(function(et){return{type:"LineString",coordinates:et}})},G.outline=function(){return{type:"Polygon",coordinates:[B(u).concat(Y(k).slice(1),B(c).reverse().slice(1),Y(w).reverse().slice(1))]}},G.extent=function(et){return arguments.length?G.extentMajor(et).extentMinor(et):G.extentMinor()},G.extentMajor=function(et){return arguments.length?(u=+et[0][0],c=+et[1][0],w=+et[0][1],k=+et[1][1],u>c&&(et=u,u=c,c=et),w>k&&(et=w,w=k,k=et),G.precision(Z)):[[u,w],[c,k]]},G.extentMinor=function(et){return arguments.length?(i=+et[0][0],n=+et[1][0],v=+et[0][1],g=+et[1][1],i>n&&(et=i,i=n,n=et),v>g&&(et=v,v=g,g=et),G.precision(Z)):[[i,v],[n,g]]},G.step=function(et){return arguments.length?G.stepMajor(et).stepMinor(et):G.stepMinor()},G.stepMajor=function(et){return arguments.length?(q=+et[0],Q=+et[1],G):[q,Q]},G.stepMinor=function(et){return arguments.length?(L=+et[0],z=+et[1],G):[L,z]},G.precision=function(et){return arguments.length?(Z=+et,C=t_(v,g,90),D=e_(i,n,Z),B=t_(w,k,90),Y=e_(u,c,Z),G):Z},G.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function A5(){return n_()()}function D5(n,i){var c=n[0]*wn,u=n[1]*wn,g=i[0]*wn,v=i[1]*wn,k=hn(u),w=an(u),C=hn(v),D=an(v),B=k*hn(c),Y=k*an(c),L=C*hn(g),z=C*an(g),q=2*Ta(Ti(a1(v-u)+k*C*a1(g-c))),Q=an(q),Z=q?function(G){var nt=an(G*=q)/Q,et=an(q-G)/Q,lt=et*B+nt*L,Ft=et*Y+nt*z,Lt=et*w+nt*D;return[na(Ft,lt)*Pr,na(Lt,Ti(lt*lt+Ft*Ft))*Pr]}:function(){return[c*Pr,u*Pr]};return Z.distance=q,Z}function uf(n){return n}var r_,i_,S1,C1,M1=mc(),Pg=mc(),js={point:wr,lineStart:wr,lineEnd:wr,polygonStart:function(){js.lineStart=A1,js.lineEnd=o_},polygonEnd:function(){js.lineStart=js.lineEnd=js.point=wr,M1.add(Se(Pg)),Pg.reset()},result:function(){var n=M1/2;return M1.reset(),n}};function A1(){js.point=N5}function N5(n,i){js.point=a_,r_=S1=n,i_=C1=i}function a_(n,i){Pg.add(C1*n-S1*i),S1=n,C1=i}function o_(){a_(r_,i_)}const s_=js;var Us=1/0,wc=Us,ls=-Us,kc=ls,lf={point:function(n,i){n<Us&&(Us=n),n>ls&&(ls=n),i<wc&&(wc=i),i>kc&&(kc=i)},lineStart:wr,lineEnd:wr,polygonStart:wr,polygonEnd:wr,result:function(){var n=[[Us,wc],[ls,kc]];return ls=kc=-(wc=Us=1/0),n}};const gu=lf;var Tc,hf,Ya,Io,ff=0,Yg=0,Ec=0,df=0,pf=0,Ll=0,gf=0,D1=0,yf=0,Ro={point:hs,lineStart:N1,lineEnd:zs,polygonStart:function(){Ro.lineStart=O1,Ro.lineEnd=c_},polygonEnd:function(){Ro.point=hs,Ro.lineStart=N1,Ro.lineEnd=zs},result:function(){var n=yf?[gf/yf,D1/yf]:Ll?[df/Ll,pf/Ll]:Ec?[ff/Ec,Yg/Ec]:[NaN,NaN];return ff=Yg=Ec=df=pf=Ll=gf=D1=yf=0,n}};function hs(n,i){ff+=n,Yg+=i,++Ec}function N1(){Ro.point=fs}function fs(n,i){Ro.point=Fo,hs(Ya=n,Io=i)}function Fo(n,i){var c=n-Ya,u=i-Io,g=Ti(c*c+u*u);df+=g*(Ya+n)/2,pf+=g*(Io+i)/2,Ll+=g,hs(Ya=n,Io=i)}function zs(){Ro.point=hs}function O1(){Ro.point=jg}function c_(){Ug(Tc,hf)}function jg(n,i){Ro.point=Ug,hs(Tc=Ya=n,hf=Io=i)}function Ug(n,i){var c=n-Ya,u=i-Io,g=Ti(c*c+u*u);df+=g*(Ya+n)/2,pf+=g*(Io+i)/2,Ll+=g,gf+=(g=Io*n-Ya*i)*(Ya+n),D1+=g*(Io+i),yf+=3*g,hs(Ya=n,Io=i)}const zg=Ro;function u_(n){this._context=n}u_.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,Lr)}},result:wr};var Wg,l_,h_,yu,Il,mf=mc(),Rl={point:wr,lineStart:function(){Rl.point=O5},lineEnd:function(){Wg&&Hg(l_,h_),Rl.point=wr},polygonStart:function(){Wg=!0},polygonEnd:function(){Wg=null},result:function(){var n=+mf;return mf.reset(),n}};function O5(n,i){Rl.point=Hg,l_=yu=n,h_=Il=i}function Hg(n,i){yu-=n,Il-=i,mf.add(Ti(yu*yu+Il*Il)),yu=n,Il=i}const f_=Rl;function d_(){this._string=[]}function p_(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function B5(n,i){var c,u,g=4.5;function v(k){return k&&(typeof g=="function"&&u.pointRadius(+g.apply(this,arguments)),Oo(k,c(u))),u.result()}return v.area=function(k){return Oo(k,c(s_)),s_.result()},v.measure=function(k){return Oo(k,c(f_)),f_.result()},v.bounds=function(k){return Oo(k,c(gu)),gu.result()},v.centroid=function(k){return Oo(k,c(zg)),zg.result()},v.projection=function(k){return arguments.length?(c=k==null?(n=null,uf):(n=k).stream,v):n},v.context=function(k){return arguments.length?(u=k==null?(i=null,new d_):new u_(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 L5(n){return{stream:vf(n)}}function vf(n){return function(i){var c=new qg;for(var u in n)c[u]=n[u];return c.stream=i,c}}function qg(){}function $g(n,i,c){var u=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),u!=null&&n.clipExtent(null),Oo(c,n.stream(gu)),i(gu.result()),u!=null&&n.clipExtent(u),n}function B1(n,i,c){return $g(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])),w=+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([w,C])},c)}function Vg(n,i,c){return B1(n,[[0,0],i],c)}function Gg(n,i,c){return $g(n,function(u){var g=+i,v=g/(u[1][0]-u[0][0]),k=(g-v*(u[1][0]+u[0][0]))/2,w=-v*u[0][1];n.scale(150*v).translate([k,w])},c)}function Xg(n,i,c){return $g(n,function(u){var g=+i,v=g/(u[1][1]-u[0][1]),k=-v*u[0][0],w=(g-v*(u[1][1]+u[0][1]))/2;n.scale(150*v).translate([k,w])},c)}d_.prototype={_radius:4.5,_circle:p_(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=p_(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}},qg.prototype={constructor:qg,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 I5=hn(30*wn);function g_(n,i){return+i?function(c,u){function g(v,k,w,C,D,B,Y,L,z,q,Q,Z,G,nt){var et=Y-v,lt=L-k,Ft=et*et+lt*lt;if(Ft>4*u&&G--){var Lt=C+q,Qt=D+Q,be=B+Z,Ut=Ti(Lt*Lt+Qt*Qt+be*be),se=Ta(be/=Ut),ct=Se(Se(be)-1)<Rn||Se(w-z)<Rn?(w+z)/2:na(Qt,Lt),Et=c(ct,se),te=Et[0],Zt=Et[1],ee=te-v,Ne=Zt-k,Ue=lt*ee-et*Ne;(Ue*Ue/Ft>u||Se((et*ee+lt*Ne)/Ft-.5)>.3||C*q+D*Q+B*Z<I5)&&(g(v,k,w,C,D,B,te,Zt,ct,Lt/=Ut,Qt/=Ut,be,G,nt),nt.point(te,Zt),g(te,Zt,ct,Lt,Qt,be,Y,L,z,q,Q,Z,G,nt))}}return function(v){var k,w,C,D,B,Y,L,z,q,Q,Z,G,nt={point:et,lineStart:lt,lineEnd:Lt,polygonStart:function(){v.polygonStart(),nt.lineStart=Qt},polygonEnd:function(){v.polygonEnd(),nt.lineStart=lt}};function et(se,ct){se=c(se,ct),v.point(se[0],se[1])}function lt(){z=NaN,nt.point=Ft,v.lineStart()}function Ft(se,ct){var Et=yo([se,ct]),te=c(se,ct);g(z,q,L,Q,Z,G,z=te[0],q=te[1],L=se,Q=Et[0],Z=Et[1],G=Et[2],16,v),v.point(z,q)}function Lt(){nt.point=et,v.lineEnd()}function Qt(){lt(),nt.point=be,nt.lineEnd=Ut}function be(se,ct){Ft(k=se,ct),w=z,C=q,D=Q,B=Z,Y=G,nt.point=Ft}function Ut(){g(z,q,L,Q,Z,G,w,C,k,D,B,Y,16,v),nt.lineEnd=Lt,Lt()}return nt}}(n,i):function(c){return vf({point:function(u,g){u=c(u,g),this.stream.point(u[0],u[1])}})}(n)}var R5=vf({point:function(n,i){this.stream.point(n*wn,i*wn)}});function F5(n,i,c,u,g){function v(k,w){return[i+n*(k*=u),c-n*(w*=g)]}return v.invert=function(k,w){return[(k-i)/n*u,(c-w)/n*g]},v}function y_(n,i,c,u,g,v){var k=hn(v),w=an(v),C=k*n,D=w*n,B=k/n,Y=w/n,L=(w*c-k*i)/n,z=(w*i+k*c)/n;function q(Q,Z){return[C*(Q*=u)-D*(Z*=g)+i,c-D*Q-C*Z]}return q.invert=function(Q,Z){return[u*(B*Q-Y*Z+L),g*(z-Y*Q-B*Z)]},q}function Po(n){return Zg(function(){return n})()}function Zg(n){var i,c,u,g,v,k,w,C,D,B,Y=150,L=480,z=250,q=0,Q=0,Z=0,G=0,nt=0,et=0,lt=1,Ft=1,Lt=null,Qt=Ig,be=null,Ut=uf,se=.5;function ct(ee){return C(ee[0]*wn,ee[1]*wn)}function Et(ee){return(ee=C.invert(ee[0],ee[1]))&&[ee[0]*Pr,ee[1]*Pr]}function te(){var ee=y_(Y,0,0,lt,Ft,et).apply(null,i(q,Q)),Ne=(et?y_:F5)(Y,L-ee[0],z-ee[1],lt,Ft,et);return c=p1(Z,G,nt),w=Ng(i,Ne),C=Ng(c,w),k=g_(w,se),Zt()}function Zt(){return D=B=null,ct}return ct.stream=function(ee){return D&&B===ee?D:D=R5(function(Ne){return vf({point:function(Ue,pn){var Kn=Ne(Ue,pn);return this.stream.point(Kn[0],Kn[1])}})}(c)(Qt(k(Ut(B=ee)))))},ct.preclip=function(ee){return arguments.length?(Qt=ee,Lt=void 0,Zt()):Qt},ct.postclip=function(ee){return arguments.length?(Ut=ee,be=u=g=v=null,Zt()):Ut},ct.clipAngle=function(ee){return arguments.length?(Qt=+ee?$v(Lt=ee*wn):(Lt=null,Ig),Zt()):Lt*Pr},ct.clipExtent=function(ee){return arguments.length?(Ut=ee==null?(be=u=g=v=null,uf):_1(be=+ee[0][0],u=+ee[0][1],g=+ee[1][0],v=+ee[1][1]),Zt()):be==null?null:[[be,u],[g,v]]},ct.scale=function(ee){return arguments.length?(Y=+ee,te()):Y},ct.translate=function(ee){return arguments.length?(L=+ee[0],z=+ee[1],te()):[L,z]},ct.center=function(ee){return arguments.length?(q=ee[0]%360*wn,Q=ee[1]%360*wn,te()):[q*Pr,Q*Pr]},ct.rotate=function(ee){return arguments.length?(Z=ee[0]%360*wn,G=ee[1]%360*wn,nt=ee.length>2?ee[2]%360*wn:0,te()):[Z*Pr,G*Pr,nt*Pr]},ct.angle=function(ee){return arguments.length?(et=ee%360*wn,te()):et*Pr},ct.reflectX=function(ee){return arguments.length?(lt=ee?-1:1,te()):lt<0},ct.reflectY=function(ee){return arguments.length?(Ft=ee?-1:1,te()):Ft<0},ct.precision=function(ee){return arguments.length?(k=g_(w,se=ee*ee),Zt()):Ti(se)},ct.fitExtent=function(ee,Ne){return B1(ct,ee,Ne)},ct.fitSize=function(ee,Ne){return Vg(ct,ee,Ne)},ct.fitWidth=function(ee,Ne){return Gg(ct,ee,Ne)},ct.fitHeight=function(ee,Ne){return Xg(ct,ee,Ne)},function(){return i=n.apply(this,arguments),ct.invert=i.invert&&Et,te()}}function Qg(n){var i=0,c=ir/3,u=Zg(n),g=u(i,c);return g.parallels=function(v){return arguments.length?u(i=v[0]*wn,c=v[1]*wn):[i*Pr,c*Pr]},g}function m_(n,i){var c=an(n),u=(c+an(i))/2;if(Se(u)<Rn)return function(w){var C=hn(w);function D(B,Y){return[B*C,an(Y)/C]}return D.invert=function(B,Y){return[B/C,Ta(Y*C)]},D}(n);var g=1+c*(2*u-c),v=Ti(g)/u;function k(w,C){var D=Ti(g-2*u*an(C))/u;return[D*an(w*=u),v-D*hn(w)]}return k.invert=function(w,C){var D=v-C,B=na(w,Se(D))*xr(D);return D*u<0&&(B-=ir*xr(w)*xr(D)),[B/u,Ta((g-(w*w+D*D)*u*u)/(2*u))]},k}function L1(){return Qg(m_).scale(155.424).center([0,33.6442])}function v_(){return L1().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Ws(){var n,i,c,u,g,v,k=v_(),w=L1().rotate([154,0]).center([-2,58.5]).parallels([55,65]),C=L1().rotate([157,0]).center([-3,19.9]).parallels([8,18]),D={point:function(L,z){v=[L,z]}};function B(L){var z=L[0],q=L[1];return v=null,c.point(z,q),v||(u.point(z,q),v)||(g.point(z,q),v)}function Y(){return n=i=null,B}return B.invert=function(L){var z=k.scale(),q=k.translate(),Q=(L[0]-q[0])/z,Z=(L[1]-q[1])/z;return(Z>=.12&&Z<.234&&Q>=-.425&&Q<-.214?w:Z>=.166&&Z<.234&&Q>=-.214&&Q<-.115?C:k).invert(L)},B.stream=function(L){return n&&i===L?n:(z=[k.stream(i=L),w.stream(L),C.stream(L)],q=z.length,n={point:function(Q,Z){for(var G=-1;++G<q;)z[G].point(Q,Z)},sphere:function(){for(var Q=-1;++Q<q;)z[Q].sphere()},lineStart:function(){for(var Q=-1;++Q<q;)z[Q].lineStart()},lineEnd:function(){for(var Q=-1;++Q<q;)z[Q].lineEnd()},polygonStart:function(){for(var Q=-1;++Q<q;)z[Q].polygonStart()},polygonEnd:function(){for(var Q=-1;++Q<q;)z[Q].polygonEnd()}});var z,q},B.precision=function(L){return arguments.length?(k.precision(L),w.precision(L),C.precision(L),Y()):k.precision()},B.scale=function(L){return arguments.length?(k.scale(L),w.scale(.35*L),C.scale(L),B.translate(k.translate())):k.scale()},B.translate=function(L){if(!arguments.length)return k.translate();var z=k.scale(),q=+L[0],Q=+L[1];return c=k.translate(L).clipExtent([[q-.455*z,Q-.238*z],[q+.455*z,Q+.238*z]]).stream(D),u=w.translate([q-.307*z,Q+.201*z]).clipExtent([[q-.425*z+Rn,Q+.12*z+Rn],[q-.214*z-Rn,Q+.234*z-Rn]]).stream(D),g=C.translate([q-.205*z,Q+.212*z]).clipExtent([[q-.214*z+Rn,Q+.166*z+Rn],[q-.115*z-Rn,Q+.234*z-Rn]]).stream(D),Y()},B.fitExtent=function(L,z){return B1(B,L,z)},B.fitSize=function(L,z){return Vg(B,L,z)},B.fitWidth=function(L,z){return Gg(B,L,z)},B.fitHeight=function(L,z){return Xg(B,L,z)},B.scale(1070)}function Jg(n){return function(i,c){var u=hn(i),g=hn(c),v=n(u*g);return[v*g*an(i),v*an(c)]}}function no(n){return function(i,c){var u=Ti(i*i+c*c),g=n(u),v=an(g),k=hn(g);return[na(i*v,u*k),Ta(u&&c*v/u)]}}var Kg=Jg(function(n){return Ti(2/(1+n))});function P5(){return Po(Kg).scale(124.75).clipAngle(179.999)}Kg.invert=no(function(n){return 2*Ta(n/2)});var ty=Jg(function(n){return(n=_c(n))&&n/an(n)});function ey(){return Po(ty).scale(79.4188).clipAngle(179.999)}function _f(n,i){return[n,xl($i((gi+i)/2))]}function Y5(){return ny(_f).scale(961/Lr)}function ny(n){var i,c,u,g=Po(n),v=g.center,k=g.scale,w=g.translate,C=g.clipExtent,D=null;function B(){var Y=ir*k(),L=g(Og(g.rotate()).invert([0,0]));return C(D==null?[[L[0]-Y,L[1]-Y],[L[0]+Y,L[1]+Y]]:n===_f?[[Math.max(L[0]-Y,D),i],[Math.min(L[0]+Y,c),u]]:[[D,Math.max(L[1]-Y,i)],[c,Math.min(L[1]+Y,u)]])}return g.scale=function(Y){return arguments.length?(k(Y),B()):k()},g.translate=function(Y){return arguments.length?(w(Y),B()):w()},g.center=function(Y){return arguments.length?(v(Y),B()):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]),B()):D==null?null:[[D,i],[c,u]]},B()}function bf(n){return $i((gi+n)/2)}function ry(n,i){var c=hn(n),u=n===i?an(n):xl(c/hn(i))/xl(bf(i)/bf(n)),g=c*i1(bf(n),u)/u;if(!u)return _f;function v(k,w){g>0?w<-gi+Rn&&(w=-gi+Rn):w>gi-Rn&&(w=gi-Rn);var C=g/i1(bf(w),u);return[C*an(u*k),g-C*hn(u*k)]}return v.invert=function(k,w){var C=g-w,D=xr(u)*Ti(k*k+C*C),B=na(k,Se(C))*xr(C);return C*u<0&&(B-=ir*xr(k)*xr(C)),[B/u,2*vc(i1(g/D,1/u))-gi]},v}function j5(){return Qg(ry).scale(109.5).parallels([30,30])}function xf(n,i){return[n,i]}function U5(){return Po(xf).scale(152.63)}function __(n,i){var c=hn(n),u=n===i?an(n):(c-hn(i))/(i-n),g=c/u+n;if(Se(u)<Rn)return xf;function v(k,w){var C=g-w,D=u*k;return[C*an(D),g-C*hn(D)]}return v.invert=function(k,w){var C=g-w,D=na(k,Se(C))*xr(C);return C*u<0&&(D-=ir*xr(k)*xr(C)),[D/u,g-xr(u)*Ti(k*k+C*C)]},v}function b_(){return Qg(__).scale(131.154).center([0,13.9389])}ty.invert=no(function(n){return n}),_f.invert=function(n,i){return[n,2*vc(Cv(i))-gi]},xf.invert=xf;var Sc=1.340264,wf=-.081106,kf=893e-6,Tf=.003796,I1=Ti(3)/2;function iy(n,i){var c=Ta(I1*an(i)),u=c*c,g=u*u*u;return[n*hn(c)/(I1*(Sc+3*wf*u+g*(7*kf+9*Tf*u))),c*(Sc+wf*u+g*(kf+Tf*u))]}function z5(){return Po(iy).scale(177.158)}function Ef(n,i){var c=hn(i),u=hn(n)*c;return[c*an(n)/u,an(i)/u]}function x_(){return Po(Ef).scale(144.049).clipAngle(60)}function R1(){var n,i,c,u,g,v,k,w=1,C=0,D=0,B=1,Y=1,L=0,z=null,q=1,Q=1,Z=vf({point:function(lt,Ft){var Lt=et([lt,Ft]);this.stream.point(Lt[0],Lt[1])}}),G=uf;function nt(){return q=w*B,Q=w*Y,v=k=null,et}function et(lt){var Ft=lt[0]*q,Lt=lt[1]*Q;if(L){var Qt=Lt*n-Ft*i;Ft=Ft*n+Lt*i,Lt=Qt}return[Ft+C,Lt+D]}return et.invert=function(lt){var Ft=lt[0]-C,Lt=lt[1]-D;if(L){var Qt=Lt*n+Ft*i;Ft=Ft*n-Lt*i,Lt=Qt}return[Ft/q,Lt/Q]},et.stream=function(lt){return v&&k===lt?v:v=Z(G(k=lt))},et.postclip=function(lt){return arguments.length?(G=lt,z=c=u=g=null,nt()):G},et.clipExtent=function(lt){return arguments.length?(G=lt==null?(z=c=u=g=null,uf):_1(z=+lt[0][0],c=+lt[0][1],u=+lt[1][0],g=+lt[1][1]),nt()):z==null?null:[[z,c],[u,g]]},et.scale=function(lt){return arguments.length?(w=+lt,nt()):w},et.translate=function(lt){return arguments.length?(C=+lt[0],D=+lt[1],nt()):[C,D]},et.angle=function(lt){return arguments.length?(i=an(L=lt%360*wn),n=hn(L),nt()):L*Pr},et.reflectX=function(lt){return arguments.length?(B=lt?-1:1,nt()):B<0},et.reflectY=function(lt){return arguments.length?(Y=lt?-1:1,nt()):Y<0},et.fitExtent=function(lt,Ft){return B1(et,lt,Ft)},et.fitSize=function(lt,Ft){return Vg(et,lt,Ft)},et.fitWidth=function(lt,Ft){return Gg(et,lt,Ft)},et.fitHeight=function(lt,Ft){return Xg(et,lt,Ft)},et}function ay(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 W5(){return Po(ay).scale(175.295)}function oy(n,i){return[hn(i)*an(n),an(i)]}function H5(){return Po(oy).scale(249.5).clipAngle(90.000001)}function sy(n,i){var c=hn(i),u=1+hn(n)*c;return[c*an(n)/u,an(i)/u]}function q5(){return Po(sy).scale(250).clipAngle(142)}function F1(n,i){return[xl($i((gi+i)/2)),-n]}function $5(){var n=ny(F1),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 V5(n,i){return n.parent===i.parent?1:2}function G5(n,i){return n+i.x}function Fl(n,i){return Math.max(n,i.y)}function X5(){var n=V5,i=1,c=1,u=!1;function g(v){var k,w=0;v.eachAfter(function(L){var z=L.children;z?(L.x=function(q){return q.reduce(G5,0)/q.length}(z),L.y=function(q){return 1+q.reduce(Fl,0)}(z)):(L.x=k?w+=n(L,k):0,L.y=0,k=L)});var C=function(L){for(var z;z=L.children;)L=z[0];return L}(v),D=function(L){for(var z;z=L.children;)L=z[z.length-1];return L}(v),B=C.x-n(C,D)/2,Y=D.x+n(D,C)/2;return v.eachAfter(u?function(L){L.x=(L.x-v.x)*i,L.y=(v.y-L.y)*c}:function(L){L.x=(L.x-B)/(Y-B)*i,L.y=(1-(v.y?L.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 Z5(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 cy(n,i){var c,u,g,v,k,w=new mu(n),C=+n.value&&(w.value=n.value),D=[w];for(i==null&&(i=w_);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 mu(g[v])),u.parent=c,u.depth=c.depth+1;return w.eachBefore(ly)}function w_(n){return n.children}function uy(n){n.data=n.data.data}function ly(n){var i=0;do n.height=i;while((n=n.parent)&&n.height<++i)}function mu(n){this.data=n,this.depth=this.height=0,this.parent=null}iy.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*(Sc+wf*g+v*(kf+Tf*g))-i)/(Sc+3*wf*g+v*(7*kf+9*Tf*g)))*u)*g*g,!(Se(c)<Zh));++k);return[I1*n*(Sc+3*wf*g+v*(7*kf+9*Tf*g))/hn(u),Ta(an(u)/I1)]},Ef.invert=no(vc),ay.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(Se(c)>Rn&&--g>0);return[n/(.8707+(v=u*u)*(v*(v*v*v*(.003971-.001529*v)-.013791)-.131979)),u]},oy.invert=no(Ta),sy.invert=no(function(n){return 2*vc(n)}),F1.invert=function(n,i){return[-i,2*vc(Cv(n))-gi]},mu.prototype=cy.prototype={constructor:mu,count:function(){return this.eachAfter(Z5)},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 w=v.ancestors(),C=k.ancestors(),D=null;for(v=w.pop(),k=C.pop();v===k;)D=v,v=w.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 cy(this).eachBefore(uy)}};var k_=Array.prototype.slice;function T_(n){for(var i,c,u=0,g=(n=function(k){for(var w,C,D=k.length;D;)C=Math.random()*D--|0,w=k[D],k[D]=k[C],k[C]=w;return k}(k_.call(n))).length,v=[];u<g;)i=n[u],c&&E_(c,i)?++u:(c=J5(v=Q5(v,i)),u=0);return c}function Q5(n,i){var c,u;if(hy(i,n))return[i];for(c=0;c<n.length;++c)if(P1(i,n[c])&&hy(Sf(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(P1(Sf(n[c],n[u]),i)&&P1(Sf(n[c],i),n[u])&&P1(Sf(n[u],i),n[c])&&hy(S_(n[c],n[u],i),n))return[n[c],n[u],i];throw new Error}function P1(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 E_(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 hy(n,i){for(var c=0;c<i.length;++c)if(!E_(n,i[c]))return!1;return!0}function J5(n){switch(n.length){case 1:return function(i){return{x:i.x,y:i.y,r:i.r}}(n[0]);case 2:return Sf(n[0],n[1]);case 3:return S_(n[0],n[1],n[2])}}function Sf(n,i){var c=n.x,u=n.y,g=n.r,v=i.x,k=i.y,w=i.r,C=v-c,D=k-u,B=w-g,Y=Math.sqrt(C*C+D*D);return{x:(c+v+C/Y*B)/2,y:(u+k+D/Y*B)/2,r:(Y+g+w)/2}}function S_(n,i,c){var u=n.x,g=n.y,v=n.r,k=i.x,w=i.y,C=i.r,D=c.x,B=c.y,Y=c.r,L=u-k,z=u-D,q=g-w,Q=g-B,Z=C-v,G=Y-v,nt=u*u+g*g-v*v,et=nt-k*k-w*w+C*C,lt=nt-D*D-B*B+Y*Y,Ft=z*q-L*Q,Lt=(q*lt-Q*et)/(2*Ft)-u,Qt=(Q*Z-q*G)/Ft,be=(z*et-L*lt)/(2*Ft)-g,Ut=(L*G-z*Z)/Ft,se=Qt*Qt+Ut*Ut-1,ct=2*(v+Lt*Qt+be*Ut),Et=Lt*Lt+be*be-v*v,te=-(se?(ct+Math.sqrt(ct*ct-4*se*Et))/(2*se):Et/ct);return{x:u+Lt+Qt*te,y:g+be+Ut*te,r:te}}function C_(n,i,c){var u,g,v,k,w=n.x-i.x,C=n.y-i.y,D=w*w+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*w-v*C,c.y=n.y-u*C+v*w):(u=(D+g-k)/(2*D),v=Math.sqrt(Math.max(0,g/D-u*u)),c.x=i.x+u*w-v*C,c.y=i.y+u*C+v*w)):(c.x=i.x+c.r,c.y=i.y)}function M_(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 A_(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 Y1(n){this._=n,this.next=null,this.previous=null}function D_(n){if(!(g=n.length))return 0;var i,c,u,g,v,k,w,C,D,B,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;C_(c,i,u=n[2]),i=new Y1(i),c=new Y1(c),u=new Y1(u),i.next=u.previous=c,c.next=i.previous=u,u.next=c.previous=i;t:for(w=3;w<g;++w){C_(i._,c._,u=n[w]),u=new Y1(u),C=c.next,D=i.previous,B=c._.r,Y=i._.r;do if(B<=Y){if(M_(C._,u._)){c=C,i.next=c,c.previous=i,--w;continue t}B+=C._.r,C=C.next}else{if(M_(D._,u._)){(i=D).next=c,c.previous=i,--w;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=A_(i);(u=u.next)!==c;)(k=A_(u))<v&&(i=u,v=k);c=i.next}for(i=[c._],u=c;(u=u.next)!==c;)i.push(u._);for(u=T_(i),w=0;w<g;++w)(i=n[w]).x-=u.x,i.y-=u.y;return u.r}function N_(n){return D_(n),n}function K5(n){return n==null?null:j1(n)}function j1(n){if(typeof n!="function")throw new Error;return n}function vu(){return 0}function Pl(n){return function(){return n}}function t6(n){return Math.sqrt(n.value)}function e6(){var n=null,i=1,c=1,u=vu;function g(v){return v.x=i/2,v.y=c/2,n?v.eachBefore(O_(n)).eachAfter(U1(u,.5)).eachBefore(B_(1)):v.eachBefore(O_(t6)).eachAfter(U1(vu,1)).eachAfter(U1(u,v.r/Math.min(i,c))).eachBefore(B_(Math.min(i,c)/(2*v.r))),v}return g.radius=function(v){return arguments.length?(n=K5(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:Pl(+v),g):u},g}function O_(n){return function(i){i.children||(i.r=Math.max(0,+n(i)||0))}}function U1(n,i){return function(c){if(u=c.children){var u,g,v,k=u.length,w=n(c)*i||0;if(w)for(g=0;g<k;++g)u[g].r+=w;if(v=D_(u),w)for(g=0;g<k;++g)u[g].r-=w;c.r=v+w}}}function B_(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 L_(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 Cf(n,i,c,u,g){for(var v,k=n.children,w=-1,C=k.length,D=n.value&&(u-i)/n.value;++w<C;)(v=k[w]).y0=c,v.y1=g,v.x0=i,v.x1=i+=v.value*D}function Yo(){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(w,C){return function(D){D.children&&Cf(D,D.x0,w*(D.depth+1)/C,D.x1,w*(D.depth+2)/C);var B=D.x0,Y=D.y0,L=D.x1-c,z=D.y1-c;L<B&&(B=L=(B+L)/2),z<Y&&(Y=z=(Y+z)/2),D.x0=B,D.y0=Y,D.x1=L,D.y1=z}}(i,k)),u&&v.eachBefore(L_),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 I_={depth:-1},Mf={};function n6(n){return n.id}function R_(n){return n.parentId}function z1(){var n=n6,i=R_;function c(u){var g,v,k,w,C,D,B,Y=u.length,L=new Array(Y),z={};for(v=0;v<Y;++v)g=u[v],C=L[v]=new mu(g),(D=n(g,v,u))!=null&&(D+="")&&(z[B="$"+(C.id=D)]=B in z?Mf:C);for(v=0;v<Y;++v)if(C=L[v],(D=i(u[v],v,u))!=null&&(D+="")){if(!(w=z["$"+D]))throw new Error("missing: "+D);if(w===Mf)throw new Error("ambiguous: "+D);w.children?w.children.push(C):w.children=[C],C.parent=w}else{if(k)throw new Error("multiple roots");k=C}if(!k)throw new Error("no root");if(k.parent=I_,k.eachBefore(function(q){q.depth=q.parent.depth+1,--Y}).eachBefore(ly),k.parent=null,Y>0)throw new Error("cycle");return k}return c.id=function(u){return arguments.length?(n=j1(u),c):n},c.parentId=function(u){return arguments.length?(i=j1(u),c):i},c}function r6(n,i){return n.parent===i.parent?1:2}function fy(n){var i=n.children;return i?i[0]:n.t}function W1(n){var i=n.children;return i?i[i.length-1]:n.t}function i6(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 H1(n,i,c){return n.a.parent===i.parent?n.a:c}function Cc(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 Yl(){var n=r6,i=1,c=1,u=null;function g(C){var D=function(G){for(var nt,et,lt,Ft,Lt,Qt=new Cc(G,0),be=[Qt];nt=be.pop();)if(lt=nt._.children)for(nt.children=new Array(Lt=lt.length),Ft=Lt-1;Ft>=0;--Ft)be.push(et=nt.children[Ft]=new Cc(lt[Ft],Ft)),et.parent=nt;return(Qt.parent=new Cc(null,0)).children=[Qt],Qt}(C);if(D.eachAfter(v),D.parent.m=-D.z,D.eachBefore(k),u)C.eachBefore(w);else{var B=C,Y=C,L=C;C.eachBefore(function(G){G.x<B.x&&(B=G),G.x>Y.x&&(Y=G),G.depth>L.depth&&(L=G)});var z=B===Y?1:n(B,Y)/2,q=z-B.x,Q=i/(Y.x+z+q),Z=c/(L.depth||1);C.eachBefore(function(G){G.x=(G.x+q)*Q,G.y=G.depth*Z})}return C}function v(C){var D=C.children,B=C.parent.children,Y=C.i?B[C.i-1]:null;if(D){(function(z){for(var q,Q=0,Z=0,G=z.children,nt=G.length;--nt>=0;)(q=G[nt]).z+=Q,q.m+=Q,Q+=q.s+(Z+=q.c)})(C);var L=(D[0].z+D[D.length-1].z)/2;Y?(C.z=Y.z+n(C._,Y._),C.m=C.z-L):C.z=L}else Y&&(C.z=Y.z+n(C._,Y._));C.parent.A=function(z,q,Q){if(q){for(var Z,G=z,nt=z,et=q,lt=G.parent.children[0],Ft=G.m,Lt=nt.m,Qt=et.m,be=lt.m;et=W1(et),G=fy(G),et&&G;)lt=fy(lt),(nt=W1(nt)).a=z,(Z=et.z+Qt-G.z-Ft+n(et._,G._))>0&&(i6(H1(et,z,Q),z,Z),Ft+=Z,Lt+=Z),Qt+=et.m,Ft+=G.m,be+=lt.m,Lt+=nt.m;et&&!W1(nt)&&(nt.t=et,nt.m+=Qt-Lt),G&&!fy(lt)&&(lt.t=G,lt.m+=Ft-be,Q=z)}return Q}(C,Y,C.parent.A||B[0])}function k(C){C._.x=C.z+C.parent.m,C.m+=C.parent.m}function w(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 Mc(n,i,c,u,g){for(var v,k=n.children,w=-1,C=k.length,D=n.value&&(g-c)/n.value;++w<C;)(v=k[w]).x0=i,v.x1=u,v.y0=c,v.y1=c+=v.value*D}Cc.prototype=Object.create(mu.prototype);var jl=(1+Math.sqrt(5))/2;function Af(n,i,c,u,g,v){for(var k,w,C,D,B,Y,L,z,q,Q,Z,G=[],nt=i.children,et=0,lt=0,Ft=nt.length,Lt=i.value;et<Ft;){C=g-c,D=v-u;do B=nt[lt++].value;while(!B&&lt<Ft);for(Y=L=B,Z=B*B*(Q=Math.max(D/C,C/D)/(Lt*n)),q=Math.max(L/Z,Z/Y);lt<Ft;++lt){if(B+=w=nt[lt].value,w<Y&&(Y=w),w>L&&(L=w),Z=B*B*Q,(z=Math.max(L/Z,Z/Y))>q){B-=w;break}q=z}G.push(k={value:B,dice:C<D,children:nt.slice(et,lt)}),k.dice?Cf(k,c,u,g,Lt?u+=D*B/Lt:v):Mc(k,c,u,Lt?c+=C*B/Lt:g,v),Lt-=B,et=lt}return G}const Ac=function n(i){function c(u,g,v,k,w){Af(i,u,g,v,k,w)}return c.ratio=function(u){return n((u=+u)>1?u:1)},c}(jl);function q1(){var n=Ac,i=!1,c=1,u=1,g=[0],v=vu,k=vu,w=vu,C=vu,D=vu;function B(L){return L.x0=L.y0=0,L.x1=c,L.y1=u,L.eachBefore(Y),g=[0],i&&L.eachBefore(L_),L}function Y(L){var z=g[L.depth],q=L.x0+z,Q=L.y0+z,Z=L.x1-z,G=L.y1-z;Z<q&&(q=Z=(q+Z)/2),G<Q&&(Q=G=(Q+G)/2),L.x0=q,L.y0=Q,L.x1=Z,L.y1=G,L.children&&(z=g[L.depth+1]=v(L)/2,q+=D(L)-z,Q+=k(L)-z,(Z-=w(L)-z)<q&&(q=Z=(q+Z)/2),(G-=C(L)-z)<Q&&(Q=G=(Q+G)/2),n(L,q,Q,Z,G))}return B.round=function(L){return arguments.length?(i=!!L,B):i},B.size=function(L){return arguments.length?(c=+L[0],u=+L[1],B):[c,u]},B.tile=function(L){return arguments.length?(n=j1(L),B):n},B.padding=function(L){return arguments.length?B.paddingInner(L).paddingOuter(L):B.paddingInner()},B.paddingInner=function(L){return arguments.length?(v=typeof L=="function"?L:Pl(+L),B):v},B.paddingOuter=function(L){return arguments.length?B.paddingTop(L).paddingRight(L).paddingBottom(L).paddingLeft(L):B.paddingTop()},B.paddingTop=function(L){return arguments.length?(k=typeof L=="function"?L:Pl(+L),B):k},B.paddingRight=function(L){return arguments.length?(w=typeof L=="function"?L:Pl(+L),B):w},B.paddingBottom=function(L){return arguments.length?(C=typeof L=="function"?L:Pl(+L),B):C},B.paddingLeft=function(L){return arguments.length?(D=typeof L=="function"?L:Pl(+L),B):D},B}function Df(n,i,c,u,g){var v,k,w=n.children,C=w.length,D=new Array(C+1);for(D[0]=k=v=0;v<C;++v)D[v+1]=k+=w[v].value;(function B(Y,L,z,q,Q,Z,G){if(Y>=L-1){var nt=w[Y];return nt.x0=q,nt.y0=Q,nt.x1=Z,void(nt.y1=G)}for(var et=D[Y],lt=z/2+et,Ft=Y+1,Lt=L-1;Ft<Lt;){var Qt=Ft+Lt>>>1;D[Qt]<lt?Ft=Qt+1:Lt=Qt}lt-D[Ft-1]<D[Ft]-lt&&Y+1<Ft&&--Ft;var be=D[Ft]-et,Ut=z-be;if(Z-q>G-Q){var se=(q*Ut+Z*be)/z;B(Y,Ft,be,q,Q,se,G),B(Ft,L,Ut,se,Q,Z,G)}else{var ct=(Q*Ut+G*be)/z;B(Y,Ft,be,q,Q,Z,ct),B(Ft,L,Ut,q,ct,Z,G)}})(0,C,n.value,i,c,u,g)}function F_(n,i,c,u,g){(1&n.depth?Mc:Cf)(n,i,c,u,g)}const dy=function n(i){function c(u,g,v,k,w){if((C=u._squarify)&&C.ratio===i)for(var C,D,B,Y,L,z=-1,q=C.length,Q=u.value;++z<q;){for(B=(D=C[z]).children,Y=D.value=0,L=B.length;Y<L;++Y)D.value+=B[Y].value;D.dice?Cf(D,g,v,k,v+=(w-v)*D.value/Q):Mc(D,g,v,g+=(k-g)*D.value/Q,w),Q-=D.value}else u._squarify=C=Af(i,u,g,v,k,w),C.ratio=i}return c.ratio=function(u){return n((u=+u)>1?u:1)},c}(jl);function a6(n){var i=n.length;return function(c){return n[Math.max(0,Math.min(i-1,Math.floor(c*i)))]}}function $1(n,i){var c=La(+n,+i);return function(u){var g=c(u);return g-360*Math.floor(g/360)}}function py(n,i){return n=+n,i=+i,function(c){return Math.round(n*(1-c)+i*c)}}var Ul=Math.SQRT2;function P_(n){return((n=Math.exp(n))+1/n)/2}function V1(n,i){var c,u,g=n[0],v=n[1],k=n[2],w=i[0],C=i[1],D=i[2],B=w-g,Y=C-v,L=B*B+Y*Y;if(L<1e-12)u=Math.log(D/k)/Ul,c=function(nt){return[g+nt*B,v+nt*Y,k*Math.exp(Ul*nt*u)]};else{var z=Math.sqrt(L),q=(D*D-k*k+4*L)/(2*k*2*z),Q=(D*D-k*k-4*L)/(2*D*2*z),Z=Math.log(Math.sqrt(q*q+1)-q),G=Math.log(Math.sqrt(Q*Q+1)-Q);u=(G-Z)/Ul,c=function(nt){var et,lt=nt*u,Ft=P_(Z),Lt=k/(2*z)*(Ft*(et=Ul*lt+Z,((et=Math.exp(2*et))-1)/(et+1))-function(Qt){return((Qt=Math.exp(Qt))-1/Qt)/2}(Z));return[g+Lt*B,v+Lt*Y,k*Ft/P_(Ul*lt+Z)]}}return c.duration=1e3*u,c}function gy(n){return function(i,c){var u=n((i=il(i)).h,(c=il(c)).h),g=ki(i.s,c.s),v=ki(i.l,c.l),k=ki(i.opacity,c.opacity);return function(w){return i.h=u(w),i.s=g(w),i.l=v(w),i.opacity=k(w),i+""}}}const o6=gy(La);var s6=gy(ki);function G1(n,i){var c=ki((n=Yh(n)).l,(i=Yh(i)).l),u=ki(n.a,i.a),g=ki(n.b,i.b),v=ki(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 X1(n){return function(i,c){var u=n((i=pc(i)).h,(c=pc(c)).h),g=ki(i.c,c.c),v=ki(i.l,c.l),k=ki(i.opacity,c.opacity);return function(w){return i.h=u(w),i.c=g(w),i.l=v(w),i.opacity=k(w),i+""}}}const ds=X1(La);var jo=X1(ki);function Hs(n){return function i(c){function u(g,v){var k=n((g=xa(g)).h,(v=xa(v)).h),w=ki(g.s,v.s),C=ki(g.l,v.l),D=ki(g.opacity,v.opacity);return function(B){return g.h=k(B),g.s=w(B),g.l=C(Math.pow(B,c)),g.opacity=D(B),g+""}}return c=+c,u.gamma=i,u}(1)}const Z1=Hs(La);var Nf=Hs(ki);function yy(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 w=Math.max(0,Math.min(u-1,Math.floor(k*=u)));return v[w](k-w)}}function Y_(n,i){for(var c=new Array(i),u=0;u<i;++u)c[u]=n(u/(i-1));return c}function j_(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 c6(n){for(var i,c,u=-1,g=n.length,v=0,k=0,w=n[g-1],C=0;++u<g;)i=w,w=n[u],C+=c=i[0]*w[1]-w[0]*i[1],v+=(i[0]+w[0])*c,k+=(i[1]+w[1])*c;return[v/(C*=3),k/C]}function u6(n,i,c){return(i[0]-n[0])*(c[1]-n[1])-(i[1]-n[1])*(c[0]-n[0])}function l6(n,i){return n[0]-i[0]||n[1]-i[1]}function U_(n){for(var i=n.length,c=[0,1],u=2,g=2;g<i;++g){for(;u>1&&u6(n[c[u-2]],n[c[u-1]],n[g])<=0;)--u;c[u++]=g}return c.slice(0,u)}function my(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(l6),i=0;i<c;++i)g[i]=[u[i][0],-u[i][1]];var v=U_(u),k=U_(g),w=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=+w;i<k.length-C;++i)D.push(n[u[k[i]][2]]);return D}function vy(n,i){for(var c,u,g=n.length,v=n[g-1],k=i[0],w=i[1],C=v[0],D=v[1],B=!1,Y=0;Y<g;++Y)c=(v=n[Y])[0],(u=v[1])>w!=D>w&&k<(C-c)*(w-u)/(D-u)+c&&(B=!B),C=c,D=u;return B}function z_(n){for(var i,c,u=-1,g=n.length,v=n[g-1],k=v[0],w=v[1],C=0;++u<g;)i=k,c=w,i-=k=(v=n[u])[0],c-=w=v[1],C+=Math.sqrt(i*i+c*c);return C}function ps(){return Math.random()}const Q1=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}(ps),Of=function n(i){function c(u,g){var v,k;return u=u==null?0:+u,g=g==null?1:+g,function(){var w;if(v!=null)w=v,v=null;else do v=2*i()-1,w=2*i()-1,k=v*v+w*w;while(!k||k>1);return u+g*w*Math.sqrt(-2*Math.log(k)/k)}}return c.source=n,c}(ps),zl=function n(i){function c(){var u=Of.source(i).apply(this,arguments);return function(){return Math.exp(u())}}return c.source=n,c}(ps),Wl=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}(ps),gs=function n(i){function c(u){var g=Wl.source(i)(u);return function(){return g()/u}}return c.source=n,c}(ps),h6=function n(i){function c(u){return function(){return-Math.log(1-i())/u}}return c.source=n,c}(ps);function Uo(n,i){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(i).domain(n)}return this}function qs(n,i){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(i).domain(n)}return this}var W_=Array.prototype,J1=W_.map,_u=W_.slice,_y={name:"implicit"};function K1(){var n=Is(),i=[],c=[],u=_y;function g(v){var k=v+"",w=n.get(k);if(!w){if(u!==_y)return u;n.set(k,w=i.push(v))}return c[(w-1)%c.length]}return g.domain=function(v){if(!arguments.length)return i.slice();i=[],n=Is();for(var k,w,C=-1,D=v.length;++C<D;)n.has(w=(k=v[C])+"")||n.set(w,i.push(k));return g},g.range=function(v){return arguments.length?(c=_u.call(v),g):c.slice()},g.unknown=function(v){return arguments.length?(u=v,g):u},g.copy=function(){return K1(i,c).unknown(u)},Uo.apply(g,arguments),g}function t0(){var n,i,c=K1().unknown(void 0),u=c.domain,g=c.range,v=[0,1],k=!1,w=0,C=0,D=.5;function B(){var Y=u().length,L=v[1]<v[0],z=v[L-0],q=v[1-L];n=(q-z)/Math.max(1,Y-w+2*C),k&&(n=Math.floor(n)),z+=(q-z-n*(Y-w))*D,i=n*(1-w),k&&(z=Math.round(z),i=Math.round(i));var Q=_t(Y).map(function(Z){return z+n*Z});return g(L?Q.reverse():Q)}return delete c.unknown,c.domain=function(Y){return arguments.length?(u(Y),B()):u()},c.range=function(Y){return arguments.length?(v=[+Y[0],+Y[1]],B()):v.slice()},c.rangeRound=function(Y){return v=[+Y[0],+Y[1]],k=!0,B()},c.bandwidth=function(){return i},c.step=function(){return n},c.round=function(Y){return arguments.length?(k=!!Y,B()):k},c.padding=function(Y){return arguments.length?(w=Math.min(1,C=+Y),B()):w},c.paddingInner=function(Y){return arguments.length?(w=Math.min(1,Y),B()):w},c.paddingOuter=function(Y){return arguments.length?(C=+Y,B()):C},c.align=function(Y){return arguments.length?(D=Math.max(0,Math.min(1,Y)),B()):D},c.copy=function(){return t0(u(),v).round(k).paddingInner(w).paddingOuter(C).align(D)},Uo.apply(B(),arguments)}function by(n){var i=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return by(i())},n}function Bf(){return by(t0.apply(null,arguments).paddingInner(1))}function e0(n){return+n}var Lf=[0,1];function ra(n){return n}function If(n,i){return(i-=n=+n)?function(u){return(u-n)/i}:(c=isNaN(i)?NaN:.5,function(){return c});var c}function ja(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 H_(n,i,c){var u=n[0],g=n[1],v=i[0],k=i[1];return g<u?(u=If(g,u),v=c(k,v)):(u=If(u,g),v=c(v,k)),function(w){return v(u(w))}}function q_(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]=If(n[k],n[k+1]),v[k]=c(i[k],i[k+1]);return function(w){var C=A(n,w,1,u)-1;return v[C](g[C](w))}}function bu(n,i){return i.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Rf(){var n,i,c,u,g,v,k=Lf,w=Lf,C=ru,D=ra;function B(){return u=Math.min(k.length,w.length)>2?q_:H_,g=v=null,Y}function Y(L){return isNaN(L=+L)?c:(g||(g=u(k.map(n),w,C)))(n(D(L)))}return Y.invert=function(L){return D(i((v||(v=u(w,k.map(n),va)))(L)))},Y.domain=function(L){return arguments.length?(k=J1.call(L,e0),D===ra||(D=ja(k)),B()):k.slice()},Y.range=function(L){return arguments.length?(w=_u.call(L),B()):w.slice()},Y.rangeRound=function(L){return w=_u.call(L),C=py,B()},Y.clamp=function(L){return arguments.length?(D=L?ja(k):ra,Y):D!==ra},Y.interpolate=function(L){return arguments.length?(C=L,B()):C},Y.unknown=function(L){return arguments.length?(c=L,Y):c},function(L,z){return n=L,i=z,B()}}function xy(n,i){return Rf()(n,i)}function zo(n,i,c,u){var g,v=st(n,i,c);switch((u=Xh(u==null?",f":u)).type){case"s":var k=Math.max(Math.abs(n),Math.abs(i));return u.precision!=null||isNaN(g=Tv(v,k))||(u.precision=g),vg(u,k);case"":case"e":case"g":case"p":case"r":u.precision!=null||isNaN(g=Ev(v,Math.max(Math.abs(n),Math.abs(i))))||(u.precision=g-(u.type==="e"));break;case"f":case"%":u.precision!=null||isNaN(g=_g(v))||(u.precision=g-2*(u.type==="%"))}return e1(u)}function $s(n){var i=n.domain;return n.ticks=function(c){var u=i();return kt(u[0],u[u.length-1],c==null?10:c)},n.tickFormat=function(c,u){var g=i();return zo(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,w=g[v],C=g[k];return C<w&&(u=w,w=C,C=u,u=v,v=k,k=u),(u=Ot(w,C,c))>0?u=Ot(w=Math.floor(w/u)*u,C=Math.ceil(C/u)*u,c):u<0&&(u=Ot(w=Math.ceil(w*u)/u,C=Math.floor(C*u)/u,c)),u>0?(g[v]=Math.floor(w/u)*u,g[k]=Math.ceil(C/u)*u,i(g)):u<0&&(g[v]=Math.ceil(w*u)/u,g[k]=Math.floor(C*u)/u,i(g)),n},n}function wy(){var n=xy(ra,ra);return n.copy=function(){return bu(n,wy())},Uo.apply(n,arguments),$s(n)}function ky(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=J1.call(u,e0),c):n.slice()},c.unknown=function(u){return arguments.length?(i=u,c):i},c.copy=function(){return ky(n).unknown(i)},n=arguments.length?J1.call(n,e0):[0,1],$s(c)}function Ty(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 n0(n){return Math.log(n)}function r0(n){return Math.exp(n)}function f6(n){return-Math.log(-n)}function $_(n){return-Math.exp(-n)}function d6(n){return isFinite(n)?+("1e"+n):n<0?0:n}function V_(n){return function(i){return-n(-i)}}function Ey(n){var i,c,u=n(n0,r0),g=u.domain,v=10;function k(){return i=function(w){return w===Math.E?Math.log:w===10&&Math.log10||w===2&&Math.log2||(w=Math.log(w),function(C){return Math.log(C)/w})}(v),c=function(w){return w===10?d6:w===Math.E?Math.exp:function(C){return Math.pow(w,C)}}(v),g()[0]<0?(i=V_(i),c=V_(c),n(f6,$_)):n(n0,r0),u}return u.base=function(w){return arguments.length?(v=+w,k()):v},u.domain=function(w){return arguments.length?(g(w),k()):g()},u.ticks=function(w){var C,D=g(),B=D[0],Y=D[D.length-1];(C=Y<B)&&(Q=B,B=Y,Y=Q);var L,z,q,Q=i(B),Z=i(Y),G=w==null?10:+w,nt=[];if(!(v%1)&&Z-Q<G){if(Q=Math.round(Q)-1,Z=Math.round(Z)+1,B>0){for(;Q<Z;++Q)for(z=1,L=c(Q);z<v;++z)if(!((q=L*z)<B)){if(q>Y)break;nt.push(q)}}else for(;Q<Z;++Q)for(z=v-1,L=c(Q);z>=1;--z)if(!((q=L*z)<B)){if(q>Y)break;nt.push(q)}}else nt=kt(Q,Z,Math.min(Z-Q,G)).map(c);return C?nt.reverse():nt},u.tickFormat=function(w,C){if(C==null&&(C=v===10?".0e":","),typeof C!="function"&&(C=e1(C)),w===1/0)return C;w==null&&(w=10);var D=Math.max(1,v*w/u.ticks().length);return function(B){var Y=B/c(Math.round(i(B)));return Y*v<v-.5&&(Y*=v),Y<=D?C(B):""}},u.nice=function(){return g(Ty(g(),{floor:function(w){return c(Math.floor(i(w)))},ceil:function(w){return c(Math.ceil(i(w)))}}))},u}function G_(){var n=Ey(Rf()).domain([1,10]);return n.copy=function(){return bu(n,G_()).base(n.base())},Uo.apply(n,arguments),n}function X_(n){return function(i){return Math.sign(i)*Math.log1p(Math.abs(i/n))}}function Z_(n){return function(i){return Math.sign(i)*Math.expm1(Math.abs(i))*n}}function Sy(n){var i=1,c=n(X_(i),Z_(i));return c.constant=function(u){return arguments.length?n(X_(i=+u),Z_(i)):i},$s(c)}function Q_(){var n=Sy(Rf());return n.copy=function(){return bu(n,Q_()).constant(n.constant())},Uo.apply(n,arguments)}function J_(n){return function(i){return i<0?-Math.pow(-i,n):Math.pow(i,n)}}function p6(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function g6(n){return n<0?-n*n:n*n}function Cy(n){var i=n(ra,ra),c=1;function u(){return c===1?n(ra,ra):c===.5?n(p6,g6):n(J_(c),J_(1/c))}return i.exponent=function(g){return arguments.length?(c=+g,u()):c},$s(i)}function My(){var n=Cy(Rf());return n.copy=function(){return bu(n,My()).exponent(n.exponent())},Uo.apply(n,arguments),n}function y6(){return My.apply(null,arguments).exponent(.5)}function K_(){var n,i=[],c=[],u=[];function g(){var k=0,w=Math.max(1,c.length);for(u=new Array(w-1);++k<w;)u[k-1]=_e(i,k/w);return v}function v(k){return isNaN(k=+k)?n:c[A(u,k)]}return v.invertExtent=function(k){var w=c.indexOf(k);return w<0?[NaN,NaN]:[w>0?u[w-1]:i[0],w<u.length?u[w]:i[i.length-1]]},v.domain=function(k){if(!arguments.length)return i.slice();i=[];for(var w,C=0,D=k.length;C<D;++C)(w=k[C])==null||isNaN(w=+w)||i.push(w);return i.sort(l),g()},v.range=function(k){return arguments.length?(c=_u.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 K_().domain(i).range(c).unknown(n)},Uo.apply(v,arguments)}function t3(){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 w(){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],w()):[i,c]},k.range=function(C){return arguments.length?(u=(v=_u.call(C)).length-1,w()):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 t3().domain([i,c]).range(v).unknown(n)},Uo.apply($s(k),arguments)}function e3(){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=_u.call(v),u=Math.min(i.length,c.length-1),g):i.slice()},g.range=function(v){return arguments.length?(c=_u.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 e3().domain(i).range(c).unknown(n)},Uo.apply(g,arguments)}var i0=new Date,Ay=new Date;function ji(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),w=g.ceil(v);return v-k<w-v?k:w},g.offset=function(v,k){return i(v=new Date(+v),k==null?1:Math.floor(k)),v},g.range=function(v,k,w){var C,D=[];if(v=g.ceil(v),w=w==null?1:Math.floor(w),!(v<k&&w>0))return D;do D.push(C=new Date(+v)),i(v,w),n(v);while(C<v&&v<k);return D},g.filter=function(v){return ji(function(k){if(k>=k)for(;n(k),!v(k);)k.setTime(k-1)},function(k,w){if(k>=k)if(w<0)for(;++w<=0;)for(;i(k,-1),!v(k););else for(;--w>=0;)for(;i(k,1),!v(k););})},c&&(g.count=function(v,k){return i0.setTime(+v),Ay.setTime(+k),n(i0),n(Ay),Math.floor(c(i0,Ay))},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 Dy=ji(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()});Dy.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ji(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 xu=Dy;var m6=Dy.range,ys=ji(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 Ny=ys;var Vs=ys.range,a0=1e3,wu=6e4,Ff=36e5,Oy=864e5,By=6048e5;function ku(n){return ji(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())*wu)/By})}var Tu=ku(0),Hl=ku(1),o0=ku(2),n3=ku(3),Gs=ku(4),ql=ku(5),Xs=ku(6),Ly=Tu.range,s0=Hl.range,Iy=o0.range,v6=n3.range,c0=Gs.range,$l=ql.range,r3=Xs.range,ro=ji(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())*wu)/Oy},function(n){return n.getDate()-1});const si=ro;var Vl=ro.range,u0=ji(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*a0-n.getMinutes()*wu)},function(n,i){n.setTime(+n+i*Ff)},function(n,i){return(i-n)/Ff},function(n){return n.getHours()});const i3=u0;var Wo=u0.range,Dc=ji(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*a0)},function(n,i){n.setTime(+n+i*wu)},function(n,i){return(i-n)/wu},function(n){return n.getMinutes()});const Pf=Dc;var l0=Dc.range,h0=ji(function(n){n.setTime(n-n.getMilliseconds())},function(n,i){n.setTime(+n+i*a0)},function(n,i){return(i-n)/a0},function(n){return n.getUTCSeconds()});const Gl=h0;var a3=h0.range,f0=ji(function(){},function(n,i){n.setTime(+n+i)},function(n,i){return i-n});f0.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?ji(function(i){i.setTime(Math.floor(i/n)*n)},function(i,c){i.setTime(+i+c*n)},function(i,c){return(c-i)/n}):f0:null};const Xl=f0;var o3=f0.range;function Eu(n){return ji(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)/By})}var Yf=Eu(0),Nc=Eu(1),Ry=Eu(2),s3=Eu(3),Oc=Eu(4),Fy=Eu(5),Py=Eu(6),c3=Yf.range,_6=Nc.range,u3=Ry.range,l3=s3.range,Su=Oc.range,d0=Fy.range,b6=Py.range,Yy=ji(function(n){n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCDate(n.getUTCDate()+i)},function(n,i){return(i-n)/Oy},function(n){return n.getUTCDate()-1});const Di=Yy;var Cr=Yy.range,we=ji(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()});we.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ji(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 mi=we;var jy=we.range;function Uy(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 zy(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 Cu(n,i,c){return{y:n,m:i,d:c,H:0,M:0,S:0,L:0}}function h3(n){var i=n.dateTime,c=n.date,u=n.time,g=n.periods,v=n.days,k=n.shortDays,w=n.months,C=n.shortMonths,D=Mu(g),B=Au(g),Y=Mu(v),L=Au(v),z=Mu(k),q=Au(k),Q=Mu(w),Z=Au(w),G=Mu(C),nt=Au(C),et={a:function(Ut){return k[Ut.getDay()]},A:function(Ut){return v[Ut.getDay()]},b:function(Ut){return C[Ut.getMonth()]},B:function(Ut){return w[Ut.getMonth()]},c:null,d:Du,e:Du,f:Gi,g:Xy,G:zf,H:Bc,I:b3,j:x3,L:$y,m:C6,M:M6,p:function(Ut){return g[+(Ut.getHours()>=12)]},q:function(Ut){return 1+~~(Ut.getMonth()/3)},Q:e2,s:n2,S:A6,u:_0,U:Vy,V:io,w:b0,W:w3,x:null,X:null,y:Jn,Y:k3,Z:Xi,"%":th},lt={a:function(Ut){return k[Ut.getUTCDay()]},A:function(Ut){return v[Ut.getUTCDay()]},b:function(Ut){return C[Ut.getUTCMonth()]},B:function(Ut){return w[Ut.getUTCMonth()]},c:null,d:Kl,e:Kl,f:D6,g:E0,G:t2,H:x0,I:w0,j:T3,L:ie,m:E3,M:k0,p:function(Ut){return g[+(Ut.getUTCHours()>=12)]},q:function(Ut){return 1+~~(Ut.getUTCMonth()/3)},Q:e2,s:n2,S:Zy,u:Qy,U:Jy,V:S3,w:T0,W:Wf,x:null,X:null,y:Ky,Y:C3,Z:N6,"%":th},Ft={a:function(Ut,se,ct){var Et=z.exec(se.slice(ct));return Et?(Ut.w=q[Et[0].toLowerCase()],ct+Et[0].length):-1},A:function(Ut,se,ct){var Et=Y.exec(se.slice(ct));return Et?(Ut.w=L[Et[0].toLowerCase()],ct+Et[0].length):-1},b:function(Ut,se,ct){var Et=G.exec(se.slice(ct));return Et?(Ut.m=nt[Et[0].toLowerCase()],ct+Et[0].length):-1},B:function(Ut,se,ct){var Et=Q.exec(se.slice(ct));return Et?(Ut.m=Z[Et[0].toLowerCase()],ct+Et[0].length):-1},c:function(Ut,se,ct){return be(Ut,i,se,ct)},d:g0,e:g0,f:v3,g:qy,G:p3,H:m3,I:m3,j:y0,L:S6,m:y3,M:m0,p:function(Ut,se,ct){var Et=D.exec(se.slice(ct));return Et?(Ut.p=B[Et[0].toLowerCase()],ct+Et[0].length):-1},q:g3,Q:v0,s:Ho,S:E6,u:Jl,U:w6,V:k6,w:Hy,W:T6,x:function(Ut,se,ct){return be(Ut,c,se,ct)},X:function(Ut,se,ct){return be(Ut,u,se,ct)},y:qy,Y:p3,Z:vo,"%":_3};function Lt(Ut,se){return function(ct){var Et,te,Zt,ee=[],Ne=-1,Ue=0,pn=Ut.length;for(ct instanceof Date||(ct=new Date(+ct));++Ne<pn;)Ut.charCodeAt(Ne)===37&&(ee.push(Ut.slice(Ue,Ne)),(te=d3[Et=Ut.charAt(++Ne)])!=null?Et=Ut.charAt(++Ne):te=Et==="e"?" ":"0",(Zt=se[Et])&&(Et=Zt(ct,te)),ee.push(Et),Ue=Ne+1);return ee.push(Ut.slice(Ue,Ne)),ee.join("")}}function Qt(Ut,se){return function(ct){var Et,te,Zt=Cu(1900,void 0,1);if(be(Zt,Ut,ct+="",0)!=ct.length)return null;if("Q"in Zt)return new Date(Zt.Q);if("s"in Zt)return new Date(1e3*Zt.s+("L"in Zt?Zt.L:0));if(se&&!("Z"in Zt)&&(Zt.Z=0),"p"in Zt&&(Zt.H=Zt.H%12+12*Zt.p),Zt.m===void 0&&(Zt.m="q"in Zt?Zt.q:0),"V"in Zt){if(Zt.V<1||Zt.V>53)return null;"w"in Zt||(Zt.w=1),"Z"in Zt?(te=(Et=zy(Cu(Zt.y,0,1))).getUTCDay(),Et=te>4||te===0?Nc.ceil(Et):Nc(Et),Et=Di.offset(Et,7*(Zt.V-1)),Zt.y=Et.getUTCFullYear(),Zt.m=Et.getUTCMonth(),Zt.d=Et.getUTCDate()+(Zt.w+6)%7):(te=(Et=Uy(Cu(Zt.y,0,1))).getDay(),Et=te>4||te===0?Hl.ceil(Et):Hl(Et),Et=si.offset(Et,7*(Zt.V-1)),Zt.y=Et.getFullYear(),Zt.m=Et.getMonth(),Zt.d=Et.getDate()+(Zt.w+6)%7)}else("W"in Zt||"U"in Zt)&&("w"in Zt||(Zt.w="u"in Zt?Zt.u%7:"W"in Zt?1:0),te="Z"in Zt?zy(Cu(Zt.y,0,1)).getUTCDay():Uy(Cu(Zt.y,0,1)).getDay(),Zt.m=0,Zt.d="W"in Zt?(Zt.w+6)%7+7*Zt.W-(te+5)%7:Zt.w+7*Zt.U-(te+6)%7);return"Z"in Zt?(Zt.H+=Zt.Z/100|0,Zt.M+=Zt.Z%100,zy(Zt)):Uy(Zt)}}function be(Ut,se,ct,Et){for(var te,Zt,ee=0,Ne=se.length,Ue=ct.length;ee<Ne;){if(Et>=Ue)return-1;if((te=se.charCodeAt(ee++))===37){if(te=se.charAt(ee++),!(Zt=Ft[te in d3?se.charAt(ee++):te])||(Et=Zt(Ut,ct,Et))<0)return-1}else if(te!=ct.charCodeAt(Et++))return-1}return Et}return et.x=Lt(c,et),et.X=Lt(u,et),et.c=Lt(i,et),lt.x=Lt(c,lt),lt.X=Lt(u,lt),lt.c=Lt(i,lt),{format:function(Ut){var se=Lt(Ut+="",et);return se.toString=function(){return Ut},se},parse:function(Ut){var se=Qt(Ut+="",!1);return se.toString=function(){return Ut},se},utcFormat:function(Ut){var se=Lt(Ut+="",lt);return se.toString=function(){return Ut},se},utcParse:function(Ut){var se=Qt(Ut+="",!0);return se.toString=function(){return Ut},se}}}var Zl,jf,f3,p0,Uf,d3={"-":"",_:" ",0:"0"},Vi=/^\s*\d+/,Wy=/^%/,x6=/[\\^$*+?|[\]().{}]/g;function Tr(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 Ql(n){return n.replace(x6,"\\$&")}function Mu(n){return new RegExp("^(?:"+n.map(Ql).join("|")+")","i")}function Au(n){for(var i={},c=-1,u=n.length;++c<u;)i[n[c].toLowerCase()]=c;return i}function Hy(n,i,c){var u=Vi.exec(i.slice(c,c+1));return u?(n.w=+u[0],c+u[0].length):-1}function Jl(n,i,c){var u=Vi.exec(i.slice(c,c+1));return u?(n.u=+u[0],c+u[0].length):-1}function w6(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.U=+u[0],c+u[0].length):-1}function k6(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.V=+u[0],c+u[0].length):-1}function T6(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.W=+u[0],c+u[0].length):-1}function p3(n,i,c){var u=Vi.exec(i.slice(c,c+4));return u?(n.y=+u[0],c+u[0].length):-1}function qy(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.y=+u[0]+(+u[0]>68?1900:2e3),c+u[0].length):-1}function vo(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 g3(n,i,c){var u=Vi.exec(i.slice(c,c+1));return u?(n.q=3*u[0]-3,c+u[0].length):-1}function y3(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.m=u[0]-1,c+u[0].length):-1}function g0(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.d=+u[0],c+u[0].length):-1}function y0(n,i,c){var u=Vi.exec(i.slice(c,c+3));return u?(n.m=0,n.d=+u[0],c+u[0].length):-1}function m3(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.H=+u[0],c+u[0].length):-1}function m0(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.M=+u[0],c+u[0].length):-1}function E6(n,i,c){var u=Vi.exec(i.slice(c,c+2));return u?(n.S=+u[0],c+u[0].length):-1}function S6(n,i,c){var u=Vi.exec(i.slice(c,c+3));return u?(n.L=+u[0],c+u[0].length):-1}function v3(n,i,c){var u=Vi.exec(i.slice(c,c+6));return u?(n.L=Math.floor(u[0]/1e3),c+u[0].length):-1}function _3(n,i,c){var u=Wy.exec(i.slice(c,c+1));return u?c+u[0].length:-1}function v0(n,i,c){var u=Vi.exec(i.slice(c));return u?(n.Q=+u[0],c+u[0].length):-1}function Ho(n,i,c){var u=Vi.exec(i.slice(c));return u?(n.s=+u[0],c+u[0].length):-1}function Du(n,i){return Tr(n.getDate(),i,2)}function Bc(n,i){return Tr(n.getHours(),i,2)}function b3(n,i){return Tr(n.getHours()%12||12,i,2)}function x3(n,i){return Tr(1+si.count(xu(n),n),i,3)}function $y(n,i){return Tr(n.getMilliseconds(),i,3)}function Gi(n,i){return $y(n,i)+"000"}function C6(n,i){return Tr(n.getMonth()+1,i,2)}function M6(n,i){return Tr(n.getMinutes(),i,2)}function A6(n,i){return Tr(n.getSeconds(),i,2)}function _0(n){var i=n.getDay();return i===0?7:i}function Vy(n,i){return Tr(Tu.count(xu(n)-1,n),i,2)}function Gy(n){var i=n.getDay();return i>=4||i===0?Gs(n):Gs.ceil(n)}function io(n,i){return n=Gy(n),Tr(Gs.count(xu(n),n)+(xu(n).getDay()===4),i,2)}function b0(n){return n.getDay()}function w3(n,i){return Tr(Hl.count(xu(n)-1,n),i,2)}function Jn(n,i){return Tr(n.getFullYear()%100,i,2)}function Xy(n,i){return Tr((n=Gy(n)).getFullYear()%100,i,2)}function k3(n,i){return Tr(n.getFullYear()%1e4,i,4)}function zf(n,i){var c=n.getDay();return Tr((n=c>=4||c===0?Gs(n):Gs.ceil(n)).getFullYear()%1e4,i,4)}function Xi(n){var i=n.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+Tr(i/60|0,"0",2)+Tr(i%60,"0",2)}function Kl(n,i){return Tr(n.getUTCDate(),i,2)}function x0(n,i){return Tr(n.getUTCHours(),i,2)}function w0(n,i){return Tr(n.getUTCHours()%12||12,i,2)}function T3(n,i){return Tr(1+Di.count(mi(n),n),i,3)}function ie(n,i){return Tr(n.getUTCMilliseconds(),i,3)}function D6(n,i){return ie(n,i)+"000"}function E3(n,i){return Tr(n.getUTCMonth()+1,i,2)}function k0(n,i){return Tr(n.getUTCMinutes(),i,2)}function Zy(n,i){return Tr(n.getUTCSeconds(),i,2)}function Qy(n){var i=n.getUTCDay();return i===0?7:i}function Jy(n,i){return Tr(Yf.count(mi(n)-1,n),i,2)}function Ui(n){var i=n.getUTCDay();return i>=4||i===0?Oc(n):Oc.ceil(n)}function S3(n,i){return n=Ui(n),Tr(Oc.count(mi(n),n)+(mi(n).getUTCDay()===4),i,2)}function T0(n){return n.getUTCDay()}function Wf(n,i){return Tr(Nc.count(mi(n)-1,n),i,2)}function Ky(n,i){return Tr(n.getUTCFullYear()%100,i,2)}function E0(n,i){return Tr((n=Ui(n)).getUTCFullYear()%100,i,2)}function C3(n,i){return Tr(n.getUTCFullYear()%1e4,i,4)}function t2(n,i){var c=n.getUTCDay();return Tr((n=c>=4||c===0?Oc(n):Oc.ceil(n)).getUTCFullYear()%1e4,i,4)}function N6(){return"+0000"}function th(){return"%"}function e2(n){return+n}function n2(n){return Math.floor(+n/1e3)}function qo(n){return Zl=h3(n),jf=Zl.format,f3=Zl.parse,p0=Zl.utcFormat,Uf=Zl.utcParse,Zl}qo({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 r2=31536e6;function Hf(n){return new Date(n)}function O6(n){return n instanceof Date?+n:+new Date(+n)}function Si(n,i,c,u,g,v,k,w,C){var D=xy(ra,ra),B=D.invert,Y=D.domain,L=C(".%L"),z=C(":%S"),q=C("%I:%M"),Q=C("%I %p"),Z=C("%a %d"),G=C("%b %d"),nt=C("%B"),et=C("%Y"),lt=[[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,r2]];function Ft(Qt){return(k(Qt)<Qt?L:v(Qt)<Qt?z:g(Qt)<Qt?q:u(Qt)<Qt?Q:i(Qt)<Qt?c(Qt)<Qt?Z:G:n(Qt)<Qt?nt:et)(Qt)}function Lt(Qt,be,Ut,se){if(Qt==null&&(Qt=10),typeof Qt=="number"){var ct=Math.abs(Ut-be)/Qt,Et=_(function(te){return te[2]}).right(lt,ct);Et===lt.length?(se=st(be/r2,Ut/r2,Qt),Qt=n):Et?(se=(Et=lt[ct/lt[Et-1][2]<lt[Et][2]/ct?Et-1:Et])[1],Qt=Et[0]):(se=Math.max(st(be,Ut,Qt),1),Qt=w)}return se==null?Qt:Qt.every(se)}return D.invert=function(Qt){return new Date(B(Qt))},D.domain=function(Qt){return arguments.length?Y(J1.call(Qt,O6)):Y().map(Hf)},D.ticks=function(Qt,be){var Ut,se=Y(),ct=se[0],Et=se[se.length-1],te=Et<ct;return te&&(Ut=ct,ct=Et,Et=Ut),Ut=(Ut=Lt(Qt,ct,Et,be))?Ut.range(ct,Et+1):[],te?Ut.reverse():Ut},D.tickFormat=function(Qt,be){return be==null?Ft:C(be)},D.nice=function(Qt,be){var Ut=Y();return(Qt=Lt(Qt,Ut[0],Ut[Ut.length-1],be))?Y(Ty(Ut,Qt)):D},D.copy=function(){return bu(D,Si(n,i,c,u,g,v,k,w,C))},D}function eh(){return Uo.apply(Si(xu,Ny,Tu,si,i3,Pf,Gl,Xl,jf).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var M3=ji(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 i2=M3;var a2=M3.range,A3=ji(function(n){n.setUTCMinutes(0,0,0)},function(n,i){n.setTime(+n+i*Ff)},function(n,i){return(i-n)/Ff},function(n){return n.getUTCHours()});const D3=A3;var B6=A3.range,o2=ji(function(n){n.setUTCSeconds(0,0)},function(n,i){n.setTime(+n+i*wu)},function(n,i){return(i-n)/wu},function(n){return n.getUTCMinutes()});const Nu=o2;var s2=o2.range;function L6(){return Uo.apply(Si(mi,i2,Yf,Di,D3,Nu,Gl,Xl,p0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function nh(){var n,i,c,u,g,v=0,k=1,w=ra,C=!1;function D(B){return isNaN(B=+B)?g:w(c===0?.5:(B=(u(B)-n)*c,C?Math.max(0,Math.min(1,B)):B))}return D.domain=function(B){return arguments.length?(n=u(v=+B[0]),i=u(k=+B[1]),c=n===i?0:1/(i-n),D):[v,k]},D.clamp=function(B){return arguments.length?(C=!!B,D):C},D.interpolator=function(B){return arguments.length?(w=B,D):w},D.unknown=function(B){return arguments.length?(g=B,D):g},function(B){return u=B,n=B(v),i=B(k),c=n===i?0:1/(i-n),D}}function $o(n,i){return i.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function qf(){var n=$s(nh()(ra));return n.copy=function(){return $o(n,qf())},qs.apply(n,arguments)}function c2(){var n=Ey(nh()).domain([1,10]);return n.copy=function(){return $o(n,c2()).base(n.base())},qs.apply(n,arguments)}function N3(){var n=Sy(nh());return n.copy=function(){return $o(n,N3()).constant(n.constant())},qs.apply(n,arguments)}function u2(){var n=Cy(nh());return n.copy=function(){return $o(n,u2()).exponent(n.exponent())},qs.apply(n,arguments)}function I6(){return u2.apply(null,arguments).exponent(.5)}function S0(){var n=[],i=ra;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 S0(i).domain(n)},qs.apply(c,arguments)}function ia(){var n,i,c,u,g,v,k,w=0,C=.5,D=1,B=ra,Y=!1;function L(z){return isNaN(z=+z)?k:(z=.5+((z=+v(z))-i)*(z<i?u:g),B(Y?Math.max(0,Math.min(1,z)):z))}return L.domain=function(z){return arguments.length?(n=v(w=+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),L):[w,C,D]},L.clamp=function(z){return arguments.length?(Y=!!z,L):Y},L.interpolator=function(z){return arguments.length?(B=z,L):B},L.unknown=function(z){return arguments.length?(k=z,L):k},function(z){return v=z,n=z(w),i=z(C),c=z(D),u=n===i?0:.5/(i-n),g=i===c?0:.5/(c-i),L}}function Aa(){var n=$s(ia()(ra));return n.copy=function(){return $o(n,Aa())},qs.apply(n,arguments)}function Ni(){var n=Ey(ia()).domain([.1,1,10]);return n.copy=function(){return $o(n,Ni()).base(n.base())},qs.apply(n,arguments)}function ms(){var n=Sy(ia());return n.copy=function(){return $o(n,ms()).constant(n.constant())},qs.apply(n,arguments)}function pr(){var n=Cy(ia());return n.copy=function(){return $o(n,pr()).exponent(n.exponent())},qs.apply(n,arguments)}function Vo(){return pr.apply(null,arguments).exponent(.5)}function $n(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 C0=$n("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),R6=$n("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),F6=$n("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),M0=$n("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),O3=$n("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),P6=$n("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Y6=$n("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),j6=$n("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),U6=$n("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),z6=$n("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function qr(n){return ol(n[n.length-1])}var l2=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($n);const W6=qr(l2);var rh=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($n);const A0=qr(rh);var vs=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($n);const Ou=qr(vs);var $f=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($n);const B3=qr($f);var h2=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($n);const ih=qr(h2);var f2=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($n);const H6=qr(f2);var d2=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($n);const D0=qr(d2);var Zi=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($n);const q6=qr(Zi);var Vf=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($n);const $6=qr(Vf);var p2=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($n);const V6=qr(p2);var N0=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($n);const L3=qr(N0);var g2=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($n);const Gf=qr(g2);var O0=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($n);const y2=qr(O0);var m2=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($n);const Ua=qr(m2);var I3=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($n);const R3=qr(I3);var _s=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($n);const Lc=qr(_s);var jr=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($n);const F3=qr(jr);var v2=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($n);const P3=qr(v2);var Y3=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($n);const _2=qr(Y3);var B0=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($n);const Zs=qr(B0);var Xf=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($n);const G6=qr(Xf);var b2=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($n);const ah=qr(b2);var ci=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($n);const Bu=qr(ci);var Lu=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($n);const bs=qr(Lu);var Zf=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($n);const x2=qr(Zf);var L0=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($n);const w2=qr(L0);var Qf=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($n);const I0=qr(Qf);function X6(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 k2=Nf(xa(300,.5,0),xa(-240,.5,1));var j3=Nf(xa(-100,.75,.35),xa(80,1.5,.8)),Z6=Nf(xa(260,.75,.35),xa(80,1.5,.8)),oh=xa();function U3(n){(n<0||n>1)&&(n-=Math.floor(n));var i=Math.abs(n-.5);return oh.h=360*n-100,oh.s=1.5-1.5*i,oh.l=.8-.9*i,oh+""}var R0=Hi(),z3=Math.PI/3,W3=2*Math.PI/3;function ar(n){var i;return n=(.5-n)*Math.PI,R0.r=255*(i=Math.sin(n))*i,R0.g=255*(i=Math.sin(n+z3))*i,R0.b=255*(i=Math.sin(n+W3))*i,R0+""}function Q6(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 Iu(n){var i=n.length;return function(c){return n[Math.max(0,Math.min(i-1,Math.floor(c*i)))]}}const J6=Iu($n("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var ao=Iu($n("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),K6=Iu($n("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),H3=Iu($n("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function tx(n){return mr(fi(n).call(document.documentElement))}var ex=0;function q3(){return new T2}function T2(){this._="@"+(++ex).toString(36)}function nx(n){return typeof n=="string"?new An([document.querySelectorAll(n)],[document.documentElement]):new An([n==null?[]:n],Ki)}function rx(n,i){i==null&&(i=Za().touches);for(var c=0,u=i?i.length:0,g=new Array(u);c<u;++c)g[c]=iu(n,i[c]);return g}function cr(n){return function(){return n}}T2.prototype=q3.prototype={constructor:T2,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 $3=Math.abs,pa=Math.atan2,Ru=Math.cos,ix=Math.max,Go=Math.min,xs=Math.sin,Fu=Math.sqrt,aa=1e-12,Ic=Math.PI,Jf=Ic/2,Qs=2*Ic;function ax(n){return n>1?0:n<-1?Ic:Math.acos(n)}function F0(n){return n>=1?Jf:n<=-1?-Jf:Math.asin(n)}function E2(n){return n.innerRadius}function P0(n){return n.outerRadius}function ws(n){return n.startAngle}function S2(n){return n.endAngle}function C2(n){return n&&n.padAngle}function Kf(n,i,c,u,g,v,k,w){var C=c-n,D=u-i,B=k-g,Y=w-v,L=Y*C-B*D;if(!(L*L<aa))return[n+(L=(B*(i-v)-Y*(n-g))/L)*C,i+L*D]}function Rc(n,i,c,u,g,v,k){var w=n-c,C=i-u,D=(k?v:-v)/Fu(w*w+C*C),B=D*C,Y=-D*w,L=n+B,z=i+Y,q=c+B,Q=u+Y,Z=(L+q)/2,G=(z+Q)/2,nt=q-L,et=Q-z,lt=nt*nt+et*et,Ft=g-v,Lt=L*Q-q*z,Qt=(et<0?-1:1)*Fu(ix(0,Ft*Ft*lt-Lt*Lt)),be=(Lt*et-nt*Qt)/lt,Ut=(-Lt*nt-et*Qt)/lt,se=(Lt*et+nt*Qt)/lt,ct=(-Lt*nt+et*Qt)/lt,Et=be-Z,te=Ut-G,Zt=se-Z,ee=ct-G;return Et*Et+te*te>Zt*Zt+ee*ee&&(be=se,Ut=ct),{cx:be,cy:Ut,x01:-B,y01:-Y,x11:be*(g/Ft-1),y11:Ut*(g/Ft-1)}}function M2(){var n=E2,i=P0,c=cr(0),u=null,g=ws,v=S2,k=C2,w=null;function C(){var D,B,Y=+n.apply(this,arguments),L=+i.apply(this,arguments),z=g.apply(this,arguments)-Jf,q=v.apply(this,arguments)-Jf,Q=$3(q-z),Z=q>z;if(w||(w=D=Ls()),L<Y&&(B=L,L=Y,Y=B),L>aa)if(Q>Qs-aa)w.moveTo(L*Ru(z),L*xs(z)),w.arc(0,0,L,z,q,!Z),Y>aa&&(w.moveTo(Y*Ru(q),Y*xs(q)),w.arc(0,0,Y,q,z,Z));else{var G,nt,et=z,lt=q,Ft=z,Lt=q,Qt=Q,be=Q,Ut=k.apply(this,arguments)/2,se=Ut>aa&&(u?+u.apply(this,arguments):Fu(Y*Y+L*L)),ct=Go($3(L-Y)/2,+c.apply(this,arguments)),Et=ct,te=ct;if(se>aa){var Zt=F0(se/Y*xs(Ut)),ee=F0(se/L*xs(Ut));(Qt-=2*Zt)>aa?(Ft+=Zt*=Z?1:-1,Lt-=Zt):(Qt=0,Ft=Lt=(z+q)/2),(be-=2*ee)>aa?(et+=ee*=Z?1:-1,lt-=ee):(be=0,et=lt=(z+q)/2)}var Ne=L*Ru(et),Ue=L*xs(et),pn=Y*Ru(Lt),Kn=Y*xs(Lt);if(ct>aa){var or,Je=L*Ru(lt),gr=L*xs(lt),On=Y*Ru(Ft),Dn=Y*xs(Ft);if(Q<Ic&&(or=Kf(Ne,Ue,On,Dn,Je,gr,pn,Kn))){var lr=Ne-or[0],Qi=Ue-or[1],Bi=Je-or[0],rc=gr-or[1],Hc=1/xs(ax((lr*Bi+Qi*rc)/(Fu(lr*lr+Qi*Qi)*Fu(Bi*Bi+rc*rc)))/2),md=Fu(or[0]*or[0]+or[1]*or[1]);Et=Go(ct,(Y-md)/(Hc-1)),te=Go(ct,(L-md)/(Hc+1))}}be>aa?te>aa?(G=Rc(On,Dn,Ne,Ue,L,te,Z),nt=Rc(Je,gr,pn,Kn,L,te,Z),w.moveTo(G.cx+G.x01,G.cy+G.y01),te<ct?w.arc(G.cx,G.cy,te,pa(G.y01,G.x01),pa(nt.y01,nt.x01),!Z):(w.arc(G.cx,G.cy,te,pa(G.y01,G.x01),pa(G.y11,G.x11),!Z),w.arc(0,0,L,pa(G.cy+G.y11,G.cx+G.x11),pa(nt.cy+nt.y11,nt.cx+nt.x11),!Z),w.arc(nt.cx,nt.cy,te,pa(nt.y11,nt.x11),pa(nt.y01,nt.x01),!Z))):(w.moveTo(Ne,Ue),w.arc(0,0,L,et,lt,!Z)):w.moveTo(Ne,Ue),Y>aa&&Qt>aa?Et>aa?(G=Rc(pn,Kn,Je,gr,Y,-Et,Z),nt=Rc(Ne,Ue,On,Dn,Y,-Et,Z),w.lineTo(G.cx+G.x01,G.cy+G.y01),Et<ct?w.arc(G.cx,G.cy,Et,pa(G.y01,G.x01),pa(nt.y01,nt.x01),!Z):(w.arc(G.cx,G.cy,Et,pa(G.y01,G.x01),pa(G.y11,G.x11),!Z),w.arc(0,0,Y,pa(G.cy+G.y11,G.cx+G.x11),pa(nt.cy+nt.y11,nt.cx+nt.x11),Z),w.arc(nt.cx,nt.cy,Et,pa(nt.y11,nt.x11),pa(nt.y01,nt.x01),!Z))):w.arc(0,0,Y,Lt,Ft,Z):w.lineTo(pn,Kn)}else w.moveTo(0,0);if(w.closePath(),D)return w=null,D+""||null}return C.centroid=function(){var D=(+n.apply(this,arguments)+ +i.apply(this,arguments))/2,B=(+g.apply(this,arguments)+ +v.apply(this,arguments))/2-Ic/2;return[Ru(B)*D,xs(B)*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?(w=D==null?null:D,C):w},C}function Y0(n){this._context=n}function sh(n){return new Y0(n)}function Fc(n){return n[0]}function j0(n){return n[1]}function ch(){var n=Fc,i=j0,c=cr(!0),u=null,g=sh,v=null;function k(w){var C,D,B,Y=w.length,L=!1;for(u==null&&(v=g(B=Ls())),C=0;C<=Y;++C)!(C<Y&&c(D=w[C],C,w))===L&&((L=!L)?v.lineStart():v.lineEnd()),L&&v.point(+n(D,C,w),+i(D,C,w));if(B)return v=null,B+""||null}return k.x=function(w){return arguments.length?(n=typeof w=="function"?w:cr(+w),k):n},k.y=function(w){return arguments.length?(i=typeof w=="function"?w:cr(+w),k):i},k.defined=function(w){return arguments.length?(c=typeof w=="function"?w:cr(!!w),k):c},k.curve=function(w){return arguments.length?(g=w,u!=null&&(v=g(u)),k):g},k.context=function(w){return arguments.length?(w==null?u=v=null:v=g(u=w),k):u},k}function uh(){var n=Fc,i=null,c=cr(0),u=j0,g=cr(!0),v=null,k=sh,w=null;function C(B){var Y,L,z,q,Q,Z=B.length,G=!1,nt=new Array(Z),et=new Array(Z);for(v==null&&(w=k(Q=Ls())),Y=0;Y<=Z;++Y){if(!(Y<Z&&g(q=B[Y],Y,B))===G)if(G=!G)L=Y,w.areaStart(),w.lineStart();else{for(w.lineEnd(),w.lineStart(),z=Y-1;z>=L;--z)w.point(nt[z],et[z]);w.lineEnd(),w.areaEnd()}G&&(nt[Y]=+n(q,Y,B),et[Y]=+c(q,Y,B),w.point(i?+i(q,Y,B):nt[Y],u?+u(q,Y,B):et[Y]))}if(Q)return w=null,Q+""||null}function D(){return ch().defined(g).curve(k).context(v)}return C.x=function(B){return arguments.length?(n=typeof B=="function"?B:cr(+B),i=null,C):n},C.x0=function(B){return arguments.length?(n=typeof B=="function"?B:cr(+B),C):n},C.x1=function(B){return arguments.length?(i=B==null?null:typeof B=="function"?B:cr(+B),C):i},C.y=function(B){return arguments.length?(c=typeof B=="function"?B:cr(+B),u=null,C):c},C.y0=function(B){return arguments.length?(c=typeof B=="function"?B:cr(+B),C):c},C.y1=function(B){return arguments.length?(u=B==null?null:typeof B=="function"?B:cr(+B),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(B){return arguments.length?(g=typeof B=="function"?B:cr(!!B),C):g},C.curve=function(B){return arguments.length?(k=B,v!=null&&(w=k(v)),C):k},C.context=function(B){return arguments.length?(B==null?v=w=null:w=k(v=B),C):v},C}function A2(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function D2(n){return n}function V3(){var n=D2,i=A2,c=null,u=cr(0),g=cr(Qs),v=cr(0);function k(w){var C,D,B,Y,L,z=w.length,q=0,Q=new Array(z),Z=new Array(z),G=+u.apply(this,arguments),nt=Math.min(Qs,Math.max(-Qs,g.apply(this,arguments)-G)),et=Math.min(Math.abs(nt)/z,v.apply(this,arguments)),lt=et*(nt<0?-1:1);for(C=0;C<z;++C)(L=Z[Q[C]=C]=+n(w[C],C,w))>0&&(q+=L);for(i!=null?Q.sort(function(Ft,Lt){return i(Z[Ft],Z[Lt])}):c!=null&&Q.sort(function(Ft,Lt){return c(w[Ft],w[Lt])}),C=0,B=q?(nt-z*lt)/q:0;C<z;++C,G=Y)D=Q[C],Y=G+((L=Z[D])>0?L*B:0)+lt,Z[D]={data:w[D],index:C,value:L,startAngle:G,endAngle:Y,padAngle:et};return Z}return k.value=function(w){return arguments.length?(n=typeof w=="function"?w:cr(+w),k):n},k.sortValues=function(w){return arguments.length?(i=w,c=null,k):i},k.sort=function(w){return arguments.length?(c=w,i=null,k):c},k.startAngle=function(w){return arguments.length?(u=typeof w=="function"?w:cr(+w),k):u},k.endAngle=function(w){return arguments.length?(g=typeof w=="function"?w:cr(+w),k):g},k.padAngle=function(w){return arguments.length?(v=typeof w=="function"?w:cr(+w),k):v},k}Y0.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 N2=td(sh);function G3(n){this._curve=n}function td(n){function i(c){return new G3(n(c))}return i._curve=n,i}function lh(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(td(c)):i()._curve},n}function O2(){return lh(ch().curve(N2))}function B2(){var n=uh().curve(N2),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 lh(c())},delete n.lineX0,n.lineEndAngle=function(){return lh(u())},delete n.lineX1,n.lineInnerRadius=function(){return lh(g())},delete n.lineY0,n.lineOuterRadius=function(){return lh(v())},delete n.lineY1,n.curve=function(k){return arguments.length?i(td(k)):i()._curve},n}function ks(n,i){return[(i=+i)*Math.cos(n-=Math.PI/2),i*Math.sin(n)]}G3.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 vi=Array.prototype.slice;function X3(n){return n.source}function hh(n){return n.target}function U0(n){var i=X3,c=hh,u=Fc,g=j0,v=null;function k(){var w,C=vi.call(arguments),D=i.apply(this,C),B=c.apply(this,C);if(v||(v=w=Ls()),n(v,+u.apply(this,(C[0]=D,C)),+g.apply(this,C),+u.apply(this,(C[0]=B,C)),+g.apply(this,C)),w)return v=null,w+""||null}return k.source=function(w){return arguments.length?(i=w,k):i},k.target=function(w){return arguments.length?(c=w,k):c},k.x=function(w){return arguments.length?(u=typeof w=="function"?w:cr(+w),k):u},k.y=function(w){return arguments.length?(g=typeof w=="function"?w:cr(+w),k):g},k.context=function(w){return arguments.length?(v=w==null?null:w,k):v},k}function Z3(n,i,c,u,g){n.moveTo(i,c),n.bezierCurveTo(i=(i+u)/2,c,i,g,u,g)}function Q3(n,i,c,u,g){n.moveTo(i,c),n.bezierCurveTo(i,c=(c+g)/2,u,c,u,g)}function ed(n,i,c,u,g){var v=ks(i,c),k=ks(i,c=(c+g)/2),w=ks(u,c),C=ks(u,g);n.moveTo(v[0],v[1]),n.bezierCurveTo(k[0],k[1],w[0],w[1],C[0],C[1])}function J3(){return U0(Z3)}function Pc(){return U0(Q3)}function _o(){var n=U0(ed);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const L2={draw:function(n,i){var c=Math.sqrt(i/Ic);n.moveTo(c,0),n.arc(0,0,c,0,Qs)}},K3={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 Ci=Math.sqrt(1/3),Da=2*Ci;const Oi={draw:function(n,i){var c=Math.sqrt(i/Da),u=c*Ci;n.moveTo(0,-c),n.lineTo(u,0),n.lineTo(0,c),n.lineTo(-u,0),n.closePath()}};var Xo=Math.sin(Ic/10)/Math.sin(7*Ic/10),tb=Math.sin(Qs/10)*Xo,I2=-Math.cos(Qs/10)*Xo;const R2={draw:function(n,i){var c=Math.sqrt(.8908130915292852*i),u=tb*c,g=I2*c;n.moveTo(0,-c),n.lineTo(u,g);for(var v=1;v<5;++v){var k=Qs*v/5,w=Math.cos(k),C=Math.sin(k);n.lineTo(C*c,-w*c),n.lineTo(w*u-C*g,C*u+w*g)}n.closePath()}},nd={draw:function(n,i){var c=Math.sqrt(i),u=-c/2;n.rect(u,u,c,c)}};var z0=Math.sqrt(3);const F2={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 oo=-.5,so=Math.sqrt(3)/2,Yc=1/Math.sqrt(12),fh=3*(Yc/2+1);const eb={draw:function(n,i){var c=Math.sqrt(i/fh),u=c/2,g=c*Yc,v=u,k=c*Yc+c,w=-v,C=k;n.moveTo(u,g),n.lineTo(v,k),n.lineTo(w,C),n.lineTo(oo*u-so*g,so*u+oo*g),n.lineTo(oo*v-so*k,so*v+oo*k),n.lineTo(oo*w-so*C,so*w+oo*C),n.lineTo(oo*u+so*g,oo*g-so*u),n.lineTo(oo*v+so*k,oo*k-so*v),n.lineTo(oo*w+so*C,oo*C-so*w),n.closePath()}};var nb=[L2,K3,Oi,nd,R2,F2,eb];function jc(){var n=cr(L2),i=cr(64),c=null;function u(){var g;if(c||(c=g=Ls()),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 Fn(){}function rd(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 Js(n){this._context=n}function rb(n){return new Js(n)}function W0(n){this._context=n}function ox(n){return new W0(n)}function H0(n){this._context=n}function ib(n){return new H0(n)}function P2(n,i){this._basis=new Js(n),this._beta=i}Js.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:rd(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:rd(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},W0.prototype={areaStart:Fn,areaEnd:Fn,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:rd(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},H0.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:rd(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},P2.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,w=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*w));this._x=this._y=null,this._basis.lineEnd()},point:function(n,i){this._x.push(+n),this._y.push(+i)}};const ab=function n(i){function c(u){return i===1?new Js(u):new P2(u,i)}return c.beta=function(u){return n(+u)},c}(.85);function id(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 q0(n,i){this._context=n,this._k=(1-i)/6}q0.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:id(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:id(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 sx=function n(i){function c(u){return new q0(u,i)}return c.tension=function(u){return n(+u)},c}(0);function $0(n,i){this._context=n,this._k=(1-i)/6}$0.prototype={areaStart:Fn,areaEnd:Fn,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:id(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 cx=function n(i){function c(u){return new $0(u,i)}return c.tension=function(u){return n(+u)},c}(0);function V0(n,i){this._context=n,this._k=(1-i)/6}V0.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:id(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 ux=function n(i){function c(u){return new V0(u,i)}return c.tension=function(u){return n(+u)},c}(0);function G0(n,i,c){var u=n._x1,g=n._y1,v=n._x2,k=n._y2;if(n._l01_a>aa){var w=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*w-n._x0*n._l12_2a+n._x2*n._l01_2a)/C,g=(g*w-n._y0*n._l12_2a+n._y2*n._l01_2a)/C}if(n._l23_a>aa){var D=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,B=3*n._l23_a*(n._l23_a+n._l12_a);v=(v*D+n._x1*n._l23_2a-i*n._l12_2a)/B,k=(k*D+n._y1*n._l23_2a-c*n._l12_2a)/B}n._context.bezierCurveTo(u,g,v,k,n._x2,n._y2)}function ad(n,i){this._context=n,this._alpha=i}ad.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:G0(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 Y2=function n(i){function c(u){return i?new ad(u,i):new q0(u,0)}return c.alpha=function(u){return n(+u)},c}(.5);function X0(n,i){this._context=n,this._alpha=i}X0.prototype={areaStart:Fn,areaEnd:Fn,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:G0(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 j2=function n(i){function c(u){return i?new X0(u,i):new $0(u,0)}return c.alpha=function(u){return n(+u)},c}(.5);function Ks(n,i){this._context=n,this._alpha=i}Ks.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:G0(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 tc=function n(i){function c(u){return i?new Ks(u,i):new V0(u,0)}return c.alpha=function(u){return n(+u)},c}(.5);function ob(n){this._context=n}function Z0(n){return new ob(n)}function sb(n){return n<0?-1:1}function Q0(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),w=(v*g+k*u)/(u+g);return(sb(v)+sb(k))*Math.min(Math.abs(v),Math.abs(k),.5*Math.abs(w))||0}function Na(n,i){var c=n._x1-n._x0;return c?(3*(n._y1-n._y0)/c-i)/2:i}function Pu(n,i,c){var u=n._x0,g=n._y0,v=n._x1,k=n._y1,w=(v-u)/3;n._context.bezierCurveTo(u+w,g+w*i,v-w,k-w*c,v,k)}function Zo(n){this._context=n}function dh(n){this._context=new Yu(n)}function Yu(n){this._context=n}function U2(n){return new Zo(n)}function lx(n){return new dh(n)}function Mi(n){this._context=n}function z2(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 cb(n){return new Mi(n)}function od(n,i){this._context=n,this._t=i}function ub(n){return new od(n,.5)}function ph(n){return new od(n,0)}function lb(n){return new od(n,1)}function gh(n,i){if((g=n.length)>1)for(var c,u,g,v=1,k=n[i[0]],w=k.length;v<g;++v)for(u=k,k=n[i[v]],c=0;c<w;++c)k[c][1]+=k[c][0]=isNaN(u[c][1])?u[c][0]:u[c][1]}function Qe(n){for(var i=n.length,c=new Array(i);--i>=0;)c[i]=i;return c}function hx(n,i){return n[i]}function sd(){var n=cr([]),i=Qe,c=gh,u=hx;function g(v){var k,w,C=n.apply(this,arguments),D=v.length,B=C.length,Y=new Array(B);for(k=0;k<B;++k){for(var L,z=C[k],q=Y[k]=new Array(D),Q=0;Q<D;++Q)q[Q]=L=[0,+u(v[Q],z,Q,v)],L.data=v[Q];q.key=z}for(k=0,w=i(Y);k<B;++k)Y[w[k]].index=k;return c(Y,w),Y}return g.keys=function(v){return arguments.length?(n=typeof v=="function"?v:cr(vi.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?Qe:typeof v=="function"?v:cr(vi.call(v)),g):i},g.offset=function(v){return arguments.length?(c=v==null?gh:v,g):c},g}function Uc(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}gh(n,i)}}function Ts(n,i){if((w=n.length)>0)for(var c,u,g,v,k,w,C=0,D=n[i[0]].length;C<D;++C)for(v=k=0,c=0;c<w;++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 hb(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,w=0;k<c;++k)w+=n[k][u][1]||0;g[u][1]+=g[u][0]=-w/2}gh(n,i)}}function fb(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 w=0,C=0,D=0;w<g;++w){for(var B=n[i[w]],Y=B[k][1]||0,L=(Y-(B[k-1][1]||0))/2,z=0;z<w;++z){var q=n[i[z]];L+=(q[k][1]||0)-(q[k-1][1]||0)}C+=Y,D+=L*Y}c[k-1][1]+=c[k-1][0]=v,C&&(v-=D/C)}c[k-1][1]+=c[k-1][0]=v,gh(n,i)}}function W2(n){var i=n.map(db);return Qe(n).sort(function(c,u){return i[c]-i[u]})}function db(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 J0(n){var i=n.map(pb);return Qe(n).sort(function(c,u){return i[c]-i[u]})}function pb(n){for(var i,c=0,u=-1,g=n.length;++u<g;)(i=+n[u][1])&&(c+=i);return c}function ec(n){return J0(n).reverse()}function cd(n){var i,c,u=n.length,g=n.map(pb),v=W2(n),k=0,w=0,C=[],D=[];for(i=0;i<u;++i)c=v[i],k<w?(k+=g[c],C.push(c)):(w+=g[c],D.push(c));return D.reverse().concat(C)}function ju(n){return Qe(n).reverse()}ob.prototype={areaStart:Fn,areaEnd:Fn,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))}},Zo.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:Pu(this,this._t0,Na(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,Pu(this,Na(this,c=Q0(this,n,i)),c);break;default:Pu(this,this._t0,c=Q0(this,n,i))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i,this._t0=c}}},(dh.prototype=Object.create(Zo.prototype)).point=function(n,i){Zo.prototype.point.call(this,i,n)},Yu.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)}},Mi.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=z2(n),g=z2(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)}},od.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 yh="%Y-%m-%dT%H:%M:%S.%LZ",gb=Date.prototype.toISOString?function(n){return n.toISOString()}:p0(yh);const yb=gb;var H2=+new Date("2000-01-01T00:00:00.000Z")?function(n){var i=new Date(n);return isNaN(i)?null:i}:Uf(yh);const mb=H2;function vb(n,i,c){var u=new Vt,g=i;return i==null?(u.restart(n,i,c),u):(i=+i,c=c==null?$():+c,u.restart(function v(k){k+=g,u.restart(v,g+=i,c),n(k)},i,c),u)}function q2(n){return function(){return n}}function _b(n){return n[0]}function $2(n){return n[1]}function ud(){this._=null}function Uu(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function zu(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 mh(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 bb(n){for(;n.L;)n=n.L;return n}ud.prototype={constructor:ud,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=bb(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&&(zu(this,c),c=(n=c).U),c.C=!1,u.C=!0,mh(this,u)):(g=u.L)&&g.C?(c.C=g.C=!1,u.C=!0,n=u):(n===c.L&&(mh(this,c),c=(n=c).U),c.C=!1,u.C=!0,zu(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?bb(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,zu(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,mh(this,i),i=g.R),i.C=g.C,g.C=i.R.C=!1,zu(this,g),n=this._;break}}else if((i=g.L).C&&(i.C=!1,g.C=!0,mh(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,zu(this,i),i=g.L),i.C=g.C,g.C=i.L.C=!1,mh(this,g),n=this._;break}i.C=!0,n=g,g=g.U}while(!n.C);n&&(n.C=!1)}}};const xb=ud;function ld(n,i,c,u){var g=[null,null],v=oa.push(g)-1;return g.left=n,g.right=i,c&&zc(g,n,i,c),u&&zc(g,i,n,u),co[n.index].halfedges.push(v),co[i.index].halfedges.push(v),g}function hd(n,i,c){var u=[i,c];return u.left=n,u}function zc(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 fx(n,i,c,u,g){var v,k=n[0],w=n[1],C=k[0],D=k[1],B=0,Y=1,L=w[0]-C,z=w[1]-D;if(v=i-C,L||!(v>0)){if(v/=L,L<0){if(v<B)return;v<Y&&(Y=v)}else if(L>0){if(v>Y)return;v>B&&(B=v)}if(v=u-C,L||!(v<0)){if(v/=L,L<0){if(v>Y)return;v>B&&(B=v)}else if(L>0){if(v<B)return;v<Y&&(Y=v)}if(v=c-D,z||!(v>0)){if(v/=z,z<0){if(v<B)return;v<Y&&(Y=v)}else if(z>0){if(v>Y)return;v>B&&(B=v)}if(v=g-D,z||!(v<0)){if(v/=z,z<0){if(v>Y)return;v>B&&(B=v)}else if(z>0){if(v<B)return;v<Y&&(Y=v)}return!(B>0||Y<1)||(B>0&&(n[0]=[C+B*L,D+B*z]),Y<1&&(n[1]=[C+Y*L,D+Y*z]),!0)}}}}}function Es(n,i,c,u,g){var v=n[1];if(v)return!0;var k,w,C=n[0],D=n.left,B=n.right,Y=D[0],L=D[1],z=B[0],q=B[1],Q=(Y+z)/2,Z=(L+q)/2;if(q===L){if(Q<i||Q>=u)return;if(Y>z){if(C){if(C[1]>=g)return}else C=[Q,c];v=[Q,g]}else{if(C){if(C[1]<c)return}else C=[Q,g];v=[Q,c]}}else if(w=Z-(k=(Y-z)/(q-L))*Q,k<-1||k>1)if(Y>z){if(C){if(C[1]>=g)return}else C=[(c-w)/k,c];v=[(g-w)/k,g]}else{if(C){if(C[1]<c)return}else C=[(g-w)/k,g];v=[(c-w)/k,c]}else if(L<q){if(C){if(C[0]>=u)return}else C=[i,k*i+w];v=[u,k*u+w]}else{if(C){if(C[0]<i)return}else C=[u,k*u+w];v=[i,k*i+w]}return n[0]=C,n[1]=v,!0}function dx(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 wb(n,i){return i[+(i.left!==n.site)]}function px(n,i){return i[+(i.left===n.site)]}var K0,kb=[];function gx(){Uu(this),this.x=this.y=this.arc=this.site=this.cy=null}function vh(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],w=g[1],C=u[0]-k,D=u[1]-w,B=v[0]-k,Y=v[1]-w,L=2*(C*Y-D*B);if(!(L>=-ue)){var z=C*C+D*D,q=B*B+Y*Y,Q=(Y*z-D*q)/L,Z=(C*q-B*z)/L,G=kb.pop()||new gx;G.arc=n,G.site=g,G.x=Q+k,G.y=(G.cy=Z+w)+Math.sqrt(Q*Q+Z*Z),n.circle=G;for(var nt=null,et=dd._;et;)if(G.y<et.y||G.y===et.y&&G.x<=et.x){if(!et.L){nt=et.P;break}et=et.L}else{if(!et.R){nt=et;break}et=et.R}dd.insert(nt,G),nt||(K0=G)}}}}function _h(n){var i=n.circle;i&&(i.P||(K0=i.N),dd.remove(i),kb.push(i),Uu(i),n.circle=null)}var Tb=[];function yx(){Uu(this),this.edge=this.site=this.circle=null}function fd(n){var i=Tb.pop()||new yx;return i.site=n,i}function V2(n){_h(n),bh.remove(n),Tb.push(n),Uu(n)}function mx(n){var i=n.circle,c=i.x,u=i.cy,g=[c,u],v=n.P,k=n.N,w=[n];V2(n);for(var C=v;C.circle&&Math.abs(c-C.circle.x)<Ur&&Math.abs(u-C.circle.cy)<Ur;)v=C.P,w.unshift(C),V2(C),C=v;w.unshift(C),_h(C);for(var D=k;D.circle&&Math.abs(c-D.circle.x)<Ur&&Math.abs(u-D.circle.cy)<Ur;)k=D.N,w.push(D),V2(D),D=k;w.push(D),_h(D);var B,Y=w.length;for(B=1;B<Y;++B)D=w[B],C=w[B-1],zc(D.edge,C.site,D.site,g);C=w[0],(D=w[Y-1]).edge=ld(C.site,D.site,null,g),vh(C),vh(D)}function vx(n){for(var i,c,u,g,v=n[0],k=n[1],w=bh._;w;)if((u=Eb(w,k)-v)>Ur)w=w.L;else{if(!((g=v-_x(w,k))>Ur)){u>-Ur?(i=w.P,c=w):g>-Ur?(i=w,c=w.N):i=c=w;break}if(!w.R){i=w;break}w=w.R}(function(Ft){co[Ft.index]={site:Ft,halfedges:[]}})(n);var C=fd(n);if(bh.insert(i,C),i||c){if(i===c)return _h(i),c=fd(i.site),bh.insert(C,c),C.edge=c.edge=ld(i.site,C.site),vh(i),void vh(c);if(c){_h(i),_h(c);var D=i.site,B=D[0],Y=D[1],L=n[0]-B,z=n[1]-Y,q=c.site,Q=q[0]-B,Z=q[1]-Y,G=2*(L*Z-z*Q),nt=L*L+z*z,et=Q*Q+Z*Z,lt=[(Z*nt-z*et)/G+B,(L*et-Q*nt)/G+Y];zc(c.edge,D,q,lt),C.edge=ld(D,n,null,lt),c.edge=ld(n,q,null,lt),vh(i),vh(c)}else C.edge=ld(i.site,C.site)}}function Eb(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 w=(c=k.site)[0],C=c[1],D=C-i;if(!D)return w;var B=w-u,Y=1/v-1/D,L=B/D;return Y?(-L+Math.sqrt(L*L-2*Y*(B*B/(-2*D)-C+D/2+g-v/2)))/Y+u:(u+w)/2}function _x(n,i){var c=n.N;if(c)return Eb(c,i);var u=n.site;return u[1]===i?u[0]:1/0}var bh,co,dd,oa,Ur=1e-6,ue=1e-12;function $e(n,i,c){return(n[0]-c[0])*(i[1]-n[1])-(n[0]-i[0])*(c[1]-n[1])}function pd(n,i){return i[1]-n[1]||i[0]-n[0]}function Wc(n,i){var c,u,g,v=n.sort(pd).pop();for(oa=[],co=new Array(n.length),bh=new xb,dd=new xb;;)if(g=K0,v&&(!g||v[1]<g.y||v[1]===g.y&&v[0]<g.x))v[0]===c&&v[1]===u||(vx(v),c=v[0],u=v[1]),v=n.pop();else{if(!g)break;mx(g.arc)}if(function(){for(var B,Y,L,z,q=0,Q=co.length;q<Q;++q)if((B=co[q])&&(z=(Y=B.halfedges).length)){var Z=new Array(z),G=new Array(z);for(L=0;L<z;++L)Z[L]=L,G[L]=dx(B,oa[Y[L]]);for(Z.sort(function(nt,et){return G[et]-G[nt]}),L=0;L<z;++L)G[L]=Y[Z[L]];for(L=0;L<z;++L)Y[L]=G[L]}}(),i){var k=+i[0][0],w=+i[0][1],C=+i[1][0],D=+i[1][1];(function(B,Y,L,z){for(var q,Q=oa.length;Q--;)Es(q=oa[Q],B,Y,L,z)&&fx(q,B,Y,L,z)&&(Math.abs(q[0][0]-q[1][0])>Ur||Math.abs(q[0][1]-q[1][1])>Ur)||delete oa[Q]})(k,w,C,D),function(B,Y,L,z){var q,Q,Z,G,nt,et,lt,Ft,Lt,Qt,be,Ut,se=co.length,ct=!0;for(q=0;q<se;++q)if(Q=co[q]){for(Z=Q.site,G=(nt=Q.halfedges).length;G--;)oa[nt[G]]||nt.splice(G,1);for(G=0,et=nt.length;G<et;)be=(Qt=px(Q,oa[nt[G]]))[0],Ut=Qt[1],Ft=(lt=wb(Q,oa[nt[++G%et]]))[0],Lt=lt[1],(Math.abs(be-Ft)>Ur||Math.abs(Ut-Lt)>Ur)&&(nt.splice(G,0,oa.push(hd(Z,Qt,Math.abs(be-B)<Ur&&z-Ut>Ur?[B,Math.abs(Ft-B)<Ur?Lt:z]:Math.abs(Ut-z)<Ur&&L-be>Ur?[Math.abs(Lt-z)<Ur?Ft:L,z]:Math.abs(be-L)<Ur&&Ut-Y>Ur?[L,Math.abs(Ft-L)<Ur?Lt:Y]:Math.abs(Ut-Y)<Ur&&be-B>Ur?[Math.abs(Lt-Y)<Ur?Ft:B,Y]:null))-1),++et);et&&(ct=!1)}if(ct){var Et,te,Zt,ee=1/0;for(q=0,ct=null;q<se;++q)(Q=co[q])&&(Zt=(Et=(Z=Q.site)[0]-B)*Et+(te=Z[1]-Y)*te)<ee&&(ee=Zt,ct=Q);if(ct){var Ne=[B,Y],Ue=[B,z],pn=[L,z],Kn=[L,Y];ct.halfedges.push(oa.push(hd(Z=ct.site,Ne,Ue))-1,oa.push(hd(Z,Ue,pn))-1,oa.push(hd(Z,pn,Kn))-1,oa.push(hd(Z,Kn,Ne))-1)}}for(q=0;q<se;++q)(Q=co[q])&&(Q.halfedges.length||delete co[q])}(k,w,C,D)}this.edges=oa,this.cells=co,bh=dd=oa=co=null}function G2(){var n=_b,i=$2,c=null;function u(g){return new Wc(g.map(function(v,k){var w=[Math.round(n(v,k,g)/Ur)*Ur,Math.round(i(v,k,g)/Ur)*Ur];return w.index=k,w.data=v,w}),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:q2(+g),u):n},u.y=function(g){return arguments.length?(i=typeof g=="function"?g:q2(+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 xh(n){return function(){return n}}function Sb(n,i,c){this.target=n,this.type=i,this.transform=c}function Ss(n,i,c){this.k=n,this.x=i,this.y=c}Wc.prototype={constructor:Wc,polygons:function(){var n=this.edges;return this.cells.map(function(i){var c=i.halfedges.map(function(u){return wb(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,w=c.site,C=-1,D=i[g[v-1]],B=D.left===w?D.right:D.left;++C<v;)k=B,B=(D=i[g[C]]).left===w?D.right:D.left,k&&B&&u<k.index&&u<B.index&&$e(w,k,B)<0&&n.push([w.data,k.data,B.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,w=v.cells.length;!(g=v.cells[k]);)if(++k>=w)return null;var C=n-g.site[0],D=i-g.site[1],B=C*C+D*D;do g=v.cells[u=k],k=null,g.halfedges.forEach(function(Y){var L=v.edges[Y],z=L.left;if(z!==g.site&&z||(z=L.right)){var q=n-z[0],Q=i-z[1],Z=q*q+Q*Q;Z<B&&(B=Z,k=z.index)}});while(k!==null);return v._found=u,c==null||B<=c*c?g.site:null}},Ss.prototype={constructor:Ss,scale:function(n){return n===1?this:new Ss(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new Ss(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 Wu=new Ss(1,0,0);function X2(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Wu;return n.__zoom}function nc(){gt.stopImmediatePropagation()}function gd(){gt.preventDefault(),gt.stopImmediatePropagation()}function yd(){return!gt.ctrlKey&&!gt.button}function tp(){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 Z2(){return this.__zoom||Wu}function Q2(){return-gt.deltaY*(gt.deltaMode===1?.05:gt.deltaMode?1:.002)}function ep(){return navigator.maxTouchPoints||"ontouchstart"in this}function np(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 bx(){var n,i,c=yd,u=tp,g=np,v=Q2,k=ep,w=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],D=250,B=V1,Y=en("start","zoom","end"),L=500,z=0;function q(ct){ct.property("__zoom",Z2).on("wheel.zoom",Ft).on("mousedown.zoom",Lt).on("dblclick.zoom",Qt).filter(k).on("touchstart.zoom",be).on("touchmove.zoom",Ut).on("touchend.zoom touchcancel.zoom",se).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Q(ct,Et){return(Et=Math.max(w[0],Math.min(w[1],Et)))===ct.k?ct:new Ss(Et,ct.x,ct.y)}function Z(ct,Et,te){var Zt=Et[0]-te[0]*ct.k,ee=Et[1]-te[1]*ct.k;return Zt===ct.x&&ee===ct.y?ct:new Ss(ct.k,Zt,ee)}function G(ct){return[(+ct[0][0]+ +ct[1][0])/2,(+ct[0][1]+ +ct[1][1])/2]}function nt(ct,Et,te){ct.on("start.zoom",function(){et(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){et(this,arguments).end()}).tween("zoom",function(){var Zt=this,ee=arguments,Ne=et(Zt,ee),Ue=u.apply(Zt,ee),pn=te==null?G(Ue):typeof te=="function"?te.apply(Zt,ee):te,Kn=Math.max(Ue[1][0]-Ue[0][0],Ue[1][1]-Ue[0][1]),or=Zt.__zoom,Je=typeof Et=="function"?Et.apply(Zt,ee):Et,gr=B(or.invert(pn).concat(Kn/or.k),Je.invert(pn).concat(Kn/Je.k));return function(On){if(On===1)On=Je;else{var Dn=gr(On),lr=Kn/Dn[2];On=new Ss(lr,pn[0]-Dn[0]*lr,pn[1]-Dn[1]*lr)}Ne.zoom(null,On)}})}function et(ct,Et,te){return!te&&ct.__zooming||new lt(ct,Et)}function lt(ct,Et){this.that=ct,this.args=Et,this.active=0,this.extent=u.apply(ct,Et),this.taps=0}function Ft(){if(c.apply(this,arguments)){var ct=et(this,arguments),Et=this.__zoom,te=Math.max(w[0],Math.min(w[1],Et.k*Math.pow(2,v.apply(this,arguments)))),Zt=Ds(this);if(ct.wheel)ct.mouse[0][0]===Zt[0]&&ct.mouse[0][1]===Zt[1]||(ct.mouse[1]=Et.invert(ct.mouse[0]=Zt)),clearTimeout(ct.wheel);else{if(Et.k===te)return;ct.mouse=[Zt,Et.invert(Zt)],ba(this),ct.start()}gd(),ct.wheel=setTimeout(ee,150),ct.zoom("mouse",g(Z(Q(Et,te),ct.mouse[0],ct.mouse[1]),ct.extent,C))}function ee(){ct.wheel=null,ct.end()}}function Lt(){if(!i&&c.apply(this,arguments)){var ct=et(this,arguments,!0),Et=mr(gt.view).on("mousemove.zoom",Ne,!0).on("mouseup.zoom",Ue,!0),te=Ds(this),Zt=gt.clientX,ee=gt.clientY;ei(gt.view),nc(),ct.mouse=[te,this.__zoom.invert(te)],ba(this),ct.start()}function Ne(){if(gd(),!ct.moved){var pn=gt.clientX-Zt,Kn=gt.clientY-ee;ct.moved=pn*pn+Kn*Kn>z}ct.zoom("mouse",g(Z(ct.that.__zoom,ct.mouse[0]=Ds(ct.that),ct.mouse[1]),ct.extent,C))}function Ue(){Et.on("mousemove.zoom mouseup.zoom",null),Wr(gt.view,ct.moved),gd(),ct.end()}}function Qt(){if(c.apply(this,arguments)){var ct=this.__zoom,Et=Ds(this),te=ct.invert(Et),Zt=ct.k*(gt.shiftKey?.5:2),ee=g(Z(Q(ct,Zt),Et,te),u.apply(this,arguments),C);gd(),D>0?mr(this).transition().duration(D).call(nt,ee,Et):mr(this).call(q.transform,ee)}}function be(){if(c.apply(this,arguments)){var ct,Et,te,Zt,ee=gt.touches,Ne=ee.length,Ue=et(this,arguments,gt.changedTouches.length===Ne);for(nc(),Et=0;Et<Ne;++Et)Zt=[Zt=_a(this,ee,(te=ee[Et]).identifier),this.__zoom.invert(Zt),te.identifier],Ue.touch0?Ue.touch1||Ue.touch0[2]===Zt[2]||(Ue.touch1=Zt,Ue.taps=0):(Ue.touch0=Zt,ct=!0,Ue.taps=1+!!n);n&&(n=clearTimeout(n)),ct&&(Ue.taps<2&&(n=setTimeout(function(){n=null},L)),ba(this),Ue.start())}}function Ut(){if(this.__zooming){var ct,Et,te,Zt,ee=et(this,arguments),Ne=gt.changedTouches,Ue=Ne.length;for(gd(),n&&(n=clearTimeout(n)),ee.taps=0,ct=0;ct<Ue;++ct)te=_a(this,Ne,(Et=Ne[ct]).identifier),ee.touch0&&ee.touch0[2]===Et.identifier?ee.touch0[0]=te:ee.touch1&&ee.touch1[2]===Et.identifier&&(ee.touch1[0]=te);if(Et=ee.that.__zoom,ee.touch1){var pn=ee.touch0[0],Kn=ee.touch0[1],or=ee.touch1[0],Je=ee.touch1[1],gr=(gr=or[0]-pn[0])*gr+(gr=or[1]-pn[1])*gr,On=(On=Je[0]-Kn[0])*On+(On=Je[1]-Kn[1])*On;Et=Q(Et,Math.sqrt(gr/On)),te=[(pn[0]+or[0])/2,(pn[1]+or[1])/2],Zt=[(Kn[0]+Je[0])/2,(Kn[1]+Je[1])/2]}else{if(!ee.touch0)return;te=ee.touch0[0],Zt=ee.touch0[1]}ee.zoom("touch",g(Z(Et,te,Zt),ee.extent,C))}}function se(){if(this.__zooming){var ct,Et,te=et(this,arguments),Zt=gt.changedTouches,ee=Zt.length;for(nc(),i&&clearTimeout(i),i=setTimeout(function(){i=null},L),ct=0;ct<ee;++ct)Et=Zt[ct],te.touch0&&te.touch0[2]===Et.identifier?delete te.touch0:te.touch1&&te.touch1[2]===Et.identifier&&delete te.touch1;if(te.touch1&&!te.touch0&&(te.touch0=te.touch1,delete te.touch1),te.touch0)te.touch0[1]=this.__zoom.invert(te.touch0[0]);else if(te.end(),te.taps===2){var Ne=mr(this).on("dblclick.zoom");Ne&&Ne.apply(this,arguments)}}}return q.transform=function(ct,Et,te){var Zt=ct.selection?ct.selection():ct;Zt.property("__zoom",Z2),ct!==Zt?nt(ct,Et,te):Zt.interrupt().each(function(){et(this,arguments).start().zoom(null,typeof Et=="function"?Et.apply(this,arguments):Et).end()})},q.scaleBy=function(ct,Et,te){q.scaleTo(ct,function(){var Zt=this.__zoom.k,ee=typeof Et=="function"?Et.apply(this,arguments):Et;return Zt*ee},te)},q.scaleTo=function(ct,Et,te){q.transform(ct,function(){var Zt=u.apply(this,arguments),ee=this.__zoom,Ne=te==null?G(Zt):typeof te=="function"?te.apply(this,arguments):te,Ue=ee.invert(Ne),pn=typeof Et=="function"?Et.apply(this,arguments):Et;return g(Z(Q(ee,pn),Ne,Ue),Zt,C)},te)},q.translateBy=function(ct,Et,te){q.transform(ct,function(){return g(this.__zoom.translate(typeof Et=="function"?Et.apply(this,arguments):Et,typeof te=="function"?te.apply(this,arguments):te),u.apply(this,arguments),C)})},q.translateTo=function(ct,Et,te,Zt){q.transform(ct,function(){var ee=u.apply(this,arguments),Ne=this.__zoom,Ue=Zt==null?G(ee):typeof Zt=="function"?Zt.apply(this,arguments):Zt;return g(Wu.translate(Ue[0],Ue[1]).scale(Ne.k).translate(typeof Et=="function"?-Et.apply(this,arguments):-Et,typeof te=="function"?-te.apply(this,arguments):-te),ee,C)},Zt)},lt.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ct,Et){return this.mouse&&ct!=="mouse"&&(this.mouse[1]=Et.invert(this.mouse[0])),this.touch0&&ct!=="touch"&&(this.touch0[1]=Et.invert(this.touch0[0])),this.touch1&&ct!=="touch"&&(this.touch1[1]=Et.invert(this.touch1[0])),this.that.__zoom=Et,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ct){ho(new Sb(q,ct,this.that.__zoom),Y.apply,Y,[ct,this.that,this.args])}},q.wheelDelta=function(ct){return arguments.length?(v=typeof ct=="function"?ct:xh(+ct),q):v},q.filter=function(ct){return arguments.length?(c=typeof ct=="function"?ct:xh(!!ct),q):c},q.touchable=function(ct){return arguments.length?(k=typeof ct=="function"?ct:xh(!!ct),q):k},q.extent=function(ct){return arguments.length?(u=typeof ct=="function"?ct:xh([[+ct[0][0],+ct[0][1]],[+ct[1][0],+ct[1][1]]]),q):u},q.scaleExtent=function(ct){return arguments.length?(w[0]=+ct[0],w[1]=+ct[1],q):[w[0],w[1]]},q.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],q):[[C[0][0],C[0][1]],[C[1][0],C[1][1]]]},q.constrain=function(ct){return arguments.length?(g=ct,q):g},q.duration=function(ct){return arguments.length?(D=+ct,q):D},q.interpolate=function(ct){return arguments.length?(B=ct,q):B},q.on=function(){var ct=Y.on.apply(Y,arguments);return ct===Y?q:ct},q.clickDistance=function(ct){return arguments.length?(z=(ct=+ct)*ct,q):Math.sqrt(z)},q}X2.prototype=Ss.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)}},1207:(a,h,s)=>{var f=s(8436),l=s(4079);a.exports={run:function(_){var y=_.graph().acyclicer==="greedy"?l(_,function(x){return function(E){return x.edge(E).weight}}(_)):function(x){var E=[],A={},I={};return f.forEach(x.nodes(),function N(P){f.has(I,P)||(I[P]=!0,A[P]=!0,f.forEach(x.outEdges(P),function(W){f.has(A,W.w)?E.push(W):N(W.w)}),delete A[P])}),E}(_);f.forEach(y,function(x){var E=_.edge(x);_.removeEdge(x),E.forwardName=x.name,E.reversed=!0,_.setEdge(x.w,x.v,E,f.uniqueId("rev"))})},undo:function(_){f.forEach(_.edges(),function(y){var x=_.edge(y);if(x.reversed){_.removeEdge(y);var E=x.forwardName;delete x.reversed,delete x.forwardName,_.setEdge(y.w,y.v,x,E)}})}}},1133:(a,h,s)=>{var f=s(8436),l=s(1138);function _(y,x,E,A,I,N){var P={width:0,height:0,rank:N,borderType:x},W=I[x][N-1],H=l.addDummyNode(y,"border",P,E);I[x][N]=H,y.setParent(H,A),W&&y.setEdge(W,H,{weight:1})}a.exports=function(y){f.forEach(y.children(),function x(E){var A=y.children(E),I=y.node(E);if(A.length&&f.forEach(A,x),f.has(I,"minRank")){I.borderLeft=[],I.borderRight=[];for(var N=I.minRank,P=I.maxRank+1;N<P;++N)_(y,"borderLeft","_bl",E,I,N),_(y,"borderRight","_br",E,I,N)}})}},3258:(a,h,s)=>{var f=s(8436);function l(E){f.forEach(E.nodes(),function(A){_(E.node(A))}),f.forEach(E.edges(),function(A){_(E.edge(A))})}function _(E){var A=E.width;E.width=E.height,E.height=A}function y(E){E.y=-E.y}function x(E){var A=E.x;E.x=E.y,E.y=A}a.exports={adjust:function(E){var A=E.graph().rankdir.toLowerCase();A!=="lr"&&A!=="rl"||l(E)},undo:function(E){var A=E.graph().rankdir.toLowerCase();A!=="bt"&&A!=="rl"||function(I){f.forEach(I.nodes(),function(N){y(I.node(N))}),f.forEach(I.edges(),function(N){var P=I.edge(N);f.forEach(P.points,y),f.has(P,"y")&&y(P)})}(E),A!=="lr"&&A!=="rl"||(function(I){f.forEach(I.nodes(),function(N){x(I.node(N))}),f.forEach(I.edges(),function(N){var P=I.edge(N);f.forEach(P.points,x),f.has(P,"x")&&x(P)})}(E),l(E))}}},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 f(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,f)),y=y._prev;return"["+l.join(", ")+"]"}},7570:(a,h,s)=>{var f=s(8436),l=s(1138),_=s(574).Graph;a.exports={debugOrdering:function(y){var x=l.buildLayerMatrix(y),E=new _({compound:!0,multigraph:!0}).setGraph({});return f.forEach(y.nodes(),function(A){E.setNode(A,{label:A}),E.setParent(A,"layer"+y.node(A).rank)}),f.forEach(y.edges(),function(A){E.setEdge(A.v,A.w,{},A.name)}),f.forEach(x,function(A,I){var N="layer"+I;E.setNode(N,{rank:"same"}),f.reduce(A,function(P,W){return E.setEdge(P,W,{style:"invis"}),W})}),E}}},574:(a,h,s)=>{var f;try{f=s(8282)}catch{}f||(f=window.graphlib),a.exports=f},4079:(a,h,s)=>{var f=s(8436),l=s(574).Graph,_=s(7822);a.exports=function(A,I){if(A.nodeCount()<=1)return[];var N=function(W,H){var V=new l,X=0,K=0;f.forEach(W.nodes(),function(Tt){V.setNode(Tt,{v:Tt,in:0,out:0})}),f.forEach(W.edges(),function(Tt){var ht=V.edge(Tt.v,Tt.w)||0,dt=H(Tt),_t=ht+dt;V.setEdge(Tt.v,Tt.w,_t),K=Math.max(K,V.node(Tt.v).out+=dt),X=Math.max(X,V.node(Tt.w).in+=dt)});var ut=f.range(K+X+3).map(function(){return new _}),tt=X+1;return f.forEach(V.nodes(),function(Tt){E(ut,tt,V.node(Tt))}),{graph:V,buckets:ut,zeroIdx:tt}}(A,I||y),P=function(W,H,V){for(var X,K=[],ut=H[H.length-1],tt=H[0];W.nodeCount();){for(;X=tt.dequeue();)x(W,H,V,X);for(;X=ut.dequeue();)x(W,H,V,X);if(W.nodeCount()){for(var Tt=H.length-2;Tt>0;--Tt)if(X=H[Tt].dequeue()){K=K.concat(x(W,H,V,X,!0));break}}}return K}(N.graph,N.buckets,N.zeroIdx);return f.flatten(f.map(P,function(W){return A.outEdges(W.v,W.w)}),!0)};var y=f.constant(1);function x(A,I,N,P,W){var H=W?[]:void 0;return f.forEach(A.inEdges(P.v),function(V){var X=A.edge(V),K=A.node(V.v);W&&H.push({v:V.v,w:V.w}),K.out-=X,E(I,N,K)}),f.forEach(A.outEdges(P.v),function(V){var X=A.edge(V),K=V.w,ut=A.node(K);ut.in-=X,E(I,N,ut)}),A.removeNode(P.v),H}function E(A,I,N){N.out?N.in?A[N.out-N.in+I].enqueue(N):A[A.length-1].enqueue(N):A[0].enqueue(N)}},8123:(a,h,s)=>{var f=s(8436),l=s(1207),_=s(5995),y=s(8093),x=s(1138).normalizeRanks,E=s(4219),A=s(1138).removeEmptyRanks,I=s(2981),N=s(1133),P=s(3258),W=s(3408),H=s(7873),V=s(1138),X=s(574).Graph;a.exports=function(kt,Ot){var st=Ot&&Ot.debugTiming?V.time:V.notime;st("layout",function(){var ae=st(" buildLayoutGraph",function(){return function(Yt){var _e=new X({multigraph:!0,compound:!0}),pe=Pt(Yt.graph());return _e.setGraph(f.merge({},ut,bt(pe,K),f.pick(pe,tt))),f.forEach(Yt.nodes(),function(de){var Bt=Pt(Yt.node(de));_e.setNode(de,f.defaults(bt(Bt,Tt),ht)),_e.setParent(de,Yt.parent(de))}),f.forEach(Yt.edges(),function(de){var Bt=Pt(Yt.edge(de));_e.setEdge(de,f.merge({},_t,bt(Bt,dt),f.pick(Bt,J)))}),_e}(kt)});st(" runLayout",function(){(function(Yt,_e){_e(" makeSpaceForEdgeLabels",function(){(function(pe){var de=pe.graph();de.ranksep/=2,f.forEach(pe.edges(),function(Bt){var zt=pe.edge(Bt);zt.minlen*=2,zt.labelpos.toLowerCase()!=="c"&&(de.rankdir==="TB"||de.rankdir==="BT"?zt.width+=zt.labeloffset:zt.height+=zt.labeloffset)})})(Yt)}),_e(" removeSelfEdges",function(){(function(pe){f.forEach(pe.edges(),function(de){if(de.v===de.w){var Bt=pe.node(de.v);Bt.selfEdges||(Bt.selfEdges=[]),Bt.selfEdges.push({e:de,label:pe.edge(de)}),pe.removeEdge(de)}})})(Yt)}),_e(" acyclic",function(){l.run(Yt)}),_e(" nestingGraph.run",function(){I.run(Yt)}),_e(" rank",function(){y(V.asNonCompoundGraph(Yt))}),_e(" injectEdgeLabelProxies",function(){(function(pe){f.forEach(pe.edges(),function(de){var Bt=pe.edge(de);if(Bt.width&&Bt.height){var zt=pe.node(de.v),ce={rank:(pe.node(de.w).rank-zt.rank)/2+zt.rank,e:de};V.addDummyNode(pe,"edge-proxy",ce,"_ep")}})})(Yt)}),_e(" removeEmptyRanks",function(){A(Yt)}),_e(" nestingGraph.cleanup",function(){I.cleanup(Yt)}),_e(" normalizeRanks",function(){x(Yt)}),_e(" assignRankMinMax",function(){(function(pe){var de=0;f.forEach(pe.nodes(),function(Bt){var zt=pe.node(Bt);zt.borderTop&&(zt.minRank=pe.node(zt.borderTop).rank,zt.maxRank=pe.node(zt.borderBottom).rank,de=f.max(de,zt.maxRank))}),pe.graph().maxRank=de})(Yt)}),_e(" removeEdgeLabelProxies",function(){(function(pe){f.forEach(pe.nodes(),function(de){var Bt=pe.node(de);Bt.dummy==="edge-proxy"&&(pe.edge(Bt.e).labelRank=Bt.rank,pe.removeNode(de))})})(Yt)}),_e(" normalize.run",function(){_.run(Yt)}),_e(" parentDummyChains",function(){E(Yt)}),_e(" addBorderSegments",function(){N(Yt)}),_e(" order",function(){W(Yt)}),_e(" insertSelfEdges",function(){(function(pe){var de=V.buildLayerMatrix(pe);f.forEach(de,function(Bt){var zt=0;f.forEach(Bt,function(ce,he){var ge=pe.node(ce);ge.order=he+zt,f.forEach(ge.selfEdges,function(It){V.addDummyNode(pe,"selfedge",{width:It.label.width,height:It.label.height,rank:ge.rank,order:he+ ++zt,e:It.e,label:It.label},"_se")}),delete ge.selfEdges})})})(Yt)}),_e(" adjustCoordinateSystem",function(){P.adjust(Yt)}),_e(" position",function(){H(Yt)}),_e(" positionSelfEdges",function(){(function(pe){f.forEach(pe.nodes(),function(de){var Bt=pe.node(de);if(Bt.dummy==="selfedge"){var zt=pe.node(Bt.e.v),ce=zt.x+zt.width/2,he=zt.y,ge=Bt.x-ce,It=zt.height/2;pe.setEdge(Bt.e,Bt.label),pe.removeNode(de),Bt.label.points=[{x:ce+2*ge/3,y:he-It},{x:ce+5*ge/6,y:he-It},{x:ce+ge,y:he},{x:ce+5*ge/6,y:he+It},{x:ce+2*ge/3,y:he+It}],Bt.label.x=Bt.x,Bt.label.y=Bt.y}})})(Yt)}),_e(" removeBorderNodes",function(){(function(pe){f.forEach(pe.nodes(),function(de){if(pe.children(de).length){var Bt=pe.node(de),zt=pe.node(Bt.borderTop),ce=pe.node(Bt.borderBottom),he=pe.node(f.last(Bt.borderLeft)),ge=pe.node(f.last(Bt.borderRight));Bt.width=Math.abs(ge.x-he.x),Bt.height=Math.abs(ce.y-zt.y),Bt.x=he.x+Bt.width/2,Bt.y=zt.y+Bt.height/2}}),f.forEach(pe.nodes(),function(de){pe.node(de).dummy==="border"&&pe.removeNode(de)})})(Yt)}),_e(" normalize.undo",function(){_.undo(Yt)}),_e(" fixupEdgeLabelCoords",function(){(function(pe){f.forEach(pe.edges(),function(de){var Bt=pe.edge(de);if(f.has(Bt,"x"))switch(Bt.labelpos!=="l"&&Bt.labelpos!=="r"||(Bt.width-=Bt.labeloffset),Bt.labelpos){case"l":Bt.x-=Bt.width/2+Bt.labeloffset;break;case"r":Bt.x+=Bt.width/2+Bt.labeloffset}})})(Yt)}),_e(" undoCoordinateSystem",function(){P.undo(Yt)}),_e(" translateGraph",function(){(function(pe){var de=Number.POSITIVE_INFINITY,Bt=0,zt=Number.POSITIVE_INFINITY,ce=0,he=pe.graph(),ge=he.marginx||0,It=he.marginy||0;function We(oe){var Wt=oe.x,Gt=oe.y,rt=oe.width,re=oe.height;de=Math.min(de,Wt-rt/2),Bt=Math.max(Bt,Wt+rt/2),zt=Math.min(zt,Gt-re/2),ce=Math.max(ce,Gt+re/2)}f.forEach(pe.nodes(),function(oe){We(pe.node(oe))}),f.forEach(pe.edges(),function(oe){var Wt=pe.edge(oe);f.has(Wt,"x")&&We(Wt)}),de-=ge,zt-=It,f.forEach(pe.nodes(),function(oe){var Wt=pe.node(oe);Wt.x-=de,Wt.y-=zt}),f.forEach(pe.edges(),function(oe){var Wt=pe.edge(oe);f.forEach(Wt.points,function(Gt){Gt.x-=de,Gt.y-=zt}),f.has(Wt,"x")&&(Wt.x-=de),f.has(Wt,"y")&&(Wt.y-=zt)}),he.width=Bt-de+ge,he.height=ce-zt+It})(Yt)}),_e(" assignNodeIntersects",function(){(function(pe){f.forEach(pe.edges(),function(de){var Bt,zt,ce=pe.edge(de),he=pe.node(de.v),ge=pe.node(de.w);ce.points?(Bt=ce.points[0],zt=ce.points[ce.points.length-1]):(ce.points=[],Bt=ge,zt=he),ce.points.unshift(V.intersectRect(he,Bt)),ce.points.push(V.intersectRect(ge,zt))})})(Yt)}),_e(" reversePoints",function(){(function(pe){f.forEach(pe.edges(),function(de){var Bt=pe.edge(de);Bt.reversed&&Bt.points.reverse()})})(Yt)}),_e(" acyclic.undo",function(){l.undo(Yt)})})(ae,st)}),st(" updateInputGraph",function(){(function(Yt,_e){f.forEach(Yt.nodes(),function(pe){var de=Yt.node(pe),Bt=_e.node(pe);de&&(de.x=Bt.x,de.y=Bt.y,_e.children(pe).length&&(de.width=Bt.width,de.height=Bt.height))}),f.forEach(Yt.edges(),function(pe){var de=Yt.edge(pe),Bt=_e.edge(pe);de.points=Bt.points,f.has(Bt,"x")&&(de.x=Bt.x,de.y=Bt.y)}),Yt.graph().width=_e.graph().width,Yt.graph().height=_e.graph().height})(kt,ae)})})};var K=["nodesep","edgesep","ranksep","marginx","marginy"],ut={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},tt=["acyclicer","ranker","rankdir","align"],Tt=["width","height"],ht={width:0,height:0},dt=["minlen","weight","width","height","labeloffset"],_t={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},J=["labelpos"];function bt(kt,Ot){return f.mapValues(f.pick(kt,Ot),Number)}function Pt(kt){var Ot={};return f.forEach(kt,function(st,ae){Ot[ae.toLowerCase()]=st}),Ot}},8436:(a,h,s)=>{var f;try{f={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{}f||(f=window._),a.exports=f},2981:(a,h,s)=>{var f=s(8436),l=s(1138);function _(y,x,E,A,I,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,f.forEach(W,function(K){_(y,x,E,A,I,N,K);var ut=y.node(K),tt=ut.borderTop?ut.borderTop:K,Tt=ut.borderBottom?ut.borderBottom:K,ht=ut.borderTop?A:2*A,dt=tt!==Tt?1:I-N[P]+1;y.setEdge(H,tt,{weight:ht,minlen:dt,nestingEdge:!0}),y.setEdge(Tt,V,{weight:ht,minlen:dt,nestingEdge:!0})}),y.parent(P)||y.setEdge(x,H,{weight:0,minlen:I+N[P]})}else P!==x&&y.setEdge(x,P,{weight:0,minlen:E})}a.exports={run:function(y){var x=l.addDummyNode(y,"root",{},"_root"),E=function(P){var W={};function H(V,X){var K=P.children(V);K&&K.length&&f.forEach(K,function(ut){H(ut,X+1)}),W[V]=X}return f.forEach(P.children(),function(V){H(V,1)}),W}(y),A=f.max(f.values(E))-1,I=2*A+1;y.graph().nestingRoot=x,f.forEach(y.edges(),function(P){y.edge(P).minlen*=I});var N=function(P){return f.reduce(P.edges(),function(W,H){return W+P.edge(H).weight},0)}(y)+1;f.forEach(y.children(),function(P){_(y,x,I,N,A,E,P)}),y.graph().nodeRankFactor=I},cleanup:function(y){var x=y.graph();y.removeNode(x.nestingRoot),delete x.nestingRoot,f.forEach(y.edges(),function(E){y.edge(E).nestingEdge&&y.removeEdge(E)})}}},5995:(a,h,s)=>{var f=s(8436),l=s(1138);a.exports={run:function(_){_.graph().dummyChains=[],f.forEach(_.edges(),function(y){(function(x,E){var A,I,N,P=E.v,W=x.node(P).rank,H=E.w,V=x.node(H).rank,X=E.name,K=x.edge(E),ut=K.labelRank;if(V!==W+1){for(x.removeEdge(E),N=0,++W;W<V;++N,++W)K.points=[],I={width:0,height:0,edgeLabel:K,edgeObj:E,rank:W},A=l.addDummyNode(x,"edge",I,"_d"),W===ut&&(I.width=K.width,I.height=K.height,I.dummy="edge-label",I.labelpos=K.labelpos),x.setEdge(P,A,{weight:K.weight},X),N===0&&x.graph().dummyChains.push(A),P=A;x.setEdge(P,H,{weight:K.weight},X)}})(_,y)})},undo:function(_){f.forEach(_.graph().dummyChains,function(y){var x,E=_.node(y),A=E.edgeLabel;for(_.setEdge(E.edgeObj,A);E.dummy;)x=_.successors(y)[0],_.removeNode(y),A.points.push({x:E.x,y:E.y}),E.dummy==="edge-label"&&(A.x=E.x,A.y=E.y,A.width=E.width,A.height=E.height),y=x,E=_.node(y)})}}},5093:(a,h,s)=>{var f=s(8436);a.exports=function(l,_,y){var x,E={};f.forEach(y,function(A){for(var I,N,P=l.parent(A);P;){if((I=l.parent(P))?(N=E[I],E[I]=P):(N=x,x=P),N&&N!==P)return void _.setEdge(N,P);P=I}})}},5439:(a,h,s)=>{var f=s(8436);a.exports=function(l,_){return f.map(_,function(y){var x=l.inEdges(y);if(x.length){var E=f.reduce(x,function(A,I){var N=l.edge(I),P=l.node(I.v);return{sum:A.sum+N.weight*P.order,weight:A.weight+N.weight}},{sum:0,weight:0});return{v:y,barycenter:E.sum/E.weight,weight:E.weight}}return{v:y}})}},3128:(a,h,s)=>{var f=s(8436),l=s(574).Graph;a.exports=function(_,y,x){var E=function(I){for(var N;I.hasNode(N=f.uniqueId("_root")););return N}(_),A=new l({compound:!0}).setGraph({root:E}).setDefaultNodeLabel(function(I){return _.node(I)});return f.forEach(_.nodes(),function(I){var N=_.node(I),P=_.parent(I);(N.rank===y||N.minRank<=y&&y<=N.maxRank)&&(A.setNode(I),A.setParent(I,P||E),f.forEach(_[x](I),function(W){var H=W.v===I?W.w:W.v,V=A.edge(H,I),X=f.isUndefined(V)?0:V.weight;A.setEdge(H,I,{weight:_.edge(W).weight+X})}),f.has(N,"minRank")&&A.setNode(I,{borderLeft:N.borderLeft[y],borderRight:N.borderRight[y]}))}),A}},6630:(a,h,s)=>{var f=s(8436);function l(_,y,x){for(var E=f.zipObject(x,f.map(x,function(H,V){return V})),A=f.flatten(f.map(y,function(H){return f.sortBy(f.map(_.outEdges(H),function(V){return{pos:E[V.w],weight:_.edge(V).weight}}),"pos")}),!0),I=1;I<x.length;)I<<=1;var N=2*I-1;I-=1;var P=f.map(new Array(N),function(){return 0}),W=0;return f.forEach(A.forEach(function(H){var V=H.pos+I;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 x=0,E=1;E<y.length;++E)x+=l(_,y[E-1],y[E]);return x}},3408:(a,h,s)=>{var f=s(8436),l=s(2588),_=s(6630),y=s(1026),x=s(3128),E=s(5093),A=s(574).Graph,I=s(1138);function N(H,V,X){return f.map(V,function(K){return x(H,K,X)})}function P(H,V){var X=new A;f.forEach(H,function(K){var ut=K.graph().root,tt=y(K,ut,X,V);f.forEach(tt.vs,function(Tt,ht){K.node(Tt).order=ht}),E(K,X,tt.vs)})}function W(H,V){f.forEach(V,function(X){f.forEach(X,function(K,ut){H.node(K).order=ut})})}a.exports=function(H){var V=I.maxRank(H),X=N(H,f.range(1,V+1),"inEdges"),K=N(H,f.range(V-1,-1,-1),"outEdges"),ut=l(H);W(H,ut);for(var tt,Tt=Number.POSITIVE_INFINITY,ht=0,dt=0;dt<4;++ht,++dt){P(ht%2?X:K,ht%4>=2),ut=I.buildLayerMatrix(H);var _t=_(H,ut);_t<Tt&&(dt=0,tt=f.cloneDeep(ut),Tt=_t)}W(H,tt)}},2588:(a,h,s)=>{var f=s(8436);a.exports=function(l){var _={},y=f.filter(l.nodes(),function(I){return!l.children(I).length}),x=f.max(f.map(y,function(I){return l.node(I).rank})),E=f.map(f.range(x+1),function(){return[]}),A=f.sortBy(y,function(I){return l.node(I).rank});return f.forEach(A,function I(N){if(!f.has(_,N)){_[N]=!0;var P=l.node(N);E[P.rank].push(N),f.forEach(l.successors(N),I)}}),E}},9567:(a,h,s)=>{var f=s(8436);a.exports=function(l,_){var y={};return f.forEach(l,function(x,E){var A=y[x.v]={indegree:0,in:[],out:[],vs:[x.v],i:E};f.isUndefined(x.barycenter)||(A.barycenter=x.barycenter,A.weight=x.weight)}),f.forEach(_.edges(),function(x){var E=y[x.v],A=y[x.w];f.isUndefined(E)||f.isUndefined(A)||(A.indegree++,E.out.push(y[x.w]))}),function(x){var E=[];function A(P){return function(W){var H,V,X,K;W.merged||(f.isUndefined(W.barycenter)||f.isUndefined(P.barycenter)||W.barycenter>=P.barycenter)&&(V=W,X=0,K=0,(H=P).weight&&(X+=H.barycenter*H.weight,K+=H.weight),V.weight&&(X+=V.barycenter*V.weight,K+=V.weight),H.vs=V.vs.concat(H.vs),H.barycenter=X/K,H.weight=K,H.i=Math.min(V.i,H.i),V.merged=!0)}}function I(P){return function(W){W.in.push(P),--W.indegree==0&&x.push(W)}}for(;x.length;){var N=x.pop();E.push(N),f.forEach(N.in.reverse(),A(N)),f.forEach(N.out,I(N))}return f.map(f.filter(E,function(P){return!P.merged}),function(P){return f.pick(P,["vs","i","barycenter","weight"])})}(f.filter(y,function(x){return!x.indegree}))}},1026:(a,h,s)=>{var f=s(8436),l=s(5439),_=s(9567),y=s(7304);a.exports=function x(E,A,I,N){var P=E.children(A),W=E.node(A),H=W?W.borderLeft:void 0,V=W?W.borderRight:void 0,X={};H&&(P=f.filter(P,function(dt){return dt!==H&&dt!==V}));var K=l(E,P);f.forEach(K,function(dt){if(E.children(dt.v).length){var _t=x(E,dt.v,I,N);X[dt.v]=_t,f.has(_t,"barycenter")&&(J=dt,bt=_t,f.isUndefined(J.barycenter)?(J.barycenter=bt.barycenter,J.weight=bt.weight):(J.barycenter=(J.barycenter*J.weight+bt.barycenter*bt.weight)/(J.weight+bt.weight),J.weight+=bt.weight))}var J,bt});var ut=_(K,I);(function(dt,_t){f.forEach(dt,function(J){J.vs=f.flatten(J.vs.map(function(bt){return _t[bt]?_t[bt].vs:bt}),!0)})})(ut,X);var tt=y(ut,N);if(H&&(tt.vs=f.flatten([H,tt.vs,V],!0),E.predecessors(H).length)){var Tt=E.node(E.predecessors(H)[0]),ht=E.node(E.predecessors(V)[0]);f.has(tt,"barycenter")||(tt.barycenter=0,tt.weight=0),tt.barycenter=(tt.barycenter*tt.weight+Tt.order+ht.order)/(tt.weight+2),tt.weight+=2}return tt}},7304:(a,h,s)=>{var f=s(8436),l=s(1138);function _(y,x,E){for(var A;x.length&&(A=f.last(x)).i<=E;)x.pop(),y.push(A.vs),E++;return E}a.exports=function(y,x){var E,A=l.partition(y,function(K){return f.has(K,"barycenter")}),I=A.lhs,N=f.sortBy(A.rhs,function(K){return-K.i}),P=[],W=0,H=0,V=0;I.sort((E=!!x,function(K,ut){return K.barycenter<ut.barycenter?-1:K.barycenter>ut.barycenter?1:E?ut.i-K.i:K.i-ut.i})),V=_(P,N,V),f.forEach(I,function(K){V+=K.vs.length,P.push(K.vs),W+=K.barycenter*K.weight,H+=K.weight,V=_(P,N,V)});var X={vs:f.flatten(P,!0)};return H&&(X.barycenter=W/H,X.weight=H),X}},4219:(a,h,s)=>{var f=s(8436);a.exports=function(l){var _=function(y){var x={},E=0;return f.forEach(y.children(),function A(I){var N=E;f.forEach(y.children(I),A),x[I]={low:N,lim:E++}}),x}(l);f.forEach(l.graph().dummyChains,function(y){for(var x=l.node(y),E=x.edgeObj,A=function(V,X,K,ut){var tt,Tt,ht=[],dt=[],_t=Math.min(X[K].low,X[ut].low),J=Math.max(X[K].lim,X[ut].lim);tt=K;do tt=V.parent(tt),ht.push(tt);while(tt&&(X[tt].low>_t||J>X[tt].lim));for(Tt=tt,tt=ut;(tt=V.parent(tt))!==Tt;)dt.push(tt);return{path:ht.concat(dt.reverse()),lca:Tt}}(l,_,E.v,E.w),I=A.path,N=A.lca,P=0,W=I[P],H=!0;y!==E.w;){if(x=l.node(y),H){for(;(W=I[P])!==N&&l.node(W).maxRank<x.rank;)P++;W===N&&(H=!1)}if(!H){for(;P<I.length-1&&l.node(W=I[P+1]).minRank<=x.rank;)P++;W=I[P]}l.setParent(y,W),y=l.successors(y)[0]}})}},3573:(a,h,s)=>{var f=s(8436),l=s(574).Graph,_=s(1138);function y(V,X){var K={};return f.reduce(X,function(ut,tt){var Tt=0,ht=0,dt=ut.length,_t=f.last(tt);return f.forEach(tt,function(J,bt){var Pt=function(Ot,st){if(Ot.node(st).dummy)return f.find(Ot.predecessors(st),function(ae){return Ot.node(ae).dummy})}(V,J),kt=Pt?V.node(Pt).order:dt;(Pt||J===_t)&&(f.forEach(tt.slice(ht,bt+1),function(Ot){f.forEach(V.predecessors(Ot),function(st){var ae=V.node(st),Yt=ae.order;!(Yt<Tt||kt<Yt)||ae.dummy&&V.node(Ot).dummy||E(K,st,Ot)})}),ht=bt+1,Tt=kt)}),tt}),K}function x(V,X){var K={};function ut(tt,Tt,ht,dt,_t){var J;f.forEach(f.range(Tt,ht),function(bt){J=tt[bt],V.node(J).dummy&&f.forEach(V.predecessors(J),function(Pt){var kt=V.node(Pt);kt.dummy&&(kt.order<dt||kt.order>_t)&&E(K,Pt,J)})})}return f.reduce(X,function(tt,Tt){var ht,dt=-1,_t=0;return f.forEach(Tt,function(J,bt){if(V.node(J).dummy==="border"){var Pt=V.predecessors(J);Pt.length&&(ht=V.node(Pt[0]).order,ut(Tt,_t,bt,dt,ht),_t=bt,dt=ht)}ut(Tt,_t,Tt.length,ht,tt.length)}),Tt}),K}function E(V,X,K){if(X>K){var ut=X;X=K,K=ut}var tt=V[X];tt||(V[X]=tt={}),tt[K]=!0}function A(V,X,K){if(X>K){var ut=X;X=K,K=ut}return f.has(V[X],K)}function I(V,X,K,ut){var tt={},Tt={},ht={};return f.forEach(X,function(dt){f.forEach(dt,function(_t,J){tt[_t]=_t,Tt[_t]=_t,ht[_t]=J})}),f.forEach(X,function(dt){var _t=-1;f.forEach(dt,function(J){var bt=ut(J);if(bt.length){bt=f.sortBy(bt,function(ae){return ht[ae]});for(var Pt=(bt.length-1)/2,kt=Math.floor(Pt),Ot=Math.ceil(Pt);kt<=Ot;++kt){var st=bt[kt];Tt[J]===J&&_t<ht[st]&&!A(K,J,st)&&(Tt[st]=J,Tt[J]=tt[J]=tt[st],_t=ht[st])}}})}),{root:tt,align:Tt}}function N(V,X,K,ut,tt){var Tt={},ht=function(J,bt,Pt,kt){var Ot=new l,st=J.graph(),ae=function(Yt,_e,pe){return function(de,Bt,zt){var ce,he=de.node(Bt),ge=de.node(zt),It=0;if(It+=he.width/2,f.has(he,"labelpos"))switch(he.labelpos.toLowerCase()){case"l":ce=-he.width/2;break;case"r":ce=he.width/2}if(ce&&(It+=pe?ce:-ce),ce=0,It+=(he.dummy?_e:Yt)/2,It+=(ge.dummy?_e:Yt)/2,It+=ge.width/2,f.has(ge,"labelpos"))switch(ge.labelpos.toLowerCase()){case"l":ce=ge.width/2;break;case"r":ce=-ge.width/2}return ce&&(It+=pe?ce:-ce),ce=0,It}}(st.nodesep,st.edgesep,kt);return f.forEach(bt,function(Yt){var _e;f.forEach(Yt,function(pe){var de=Pt[pe];if(Ot.setNode(de),_e){var Bt=Pt[_e],zt=Ot.edge(Bt,de);Ot.setEdge(Bt,de,Math.max(ae(J,pe,_e),zt||0))}_e=pe})}),Ot}(V,X,K,tt),dt=tt?"borderLeft":"borderRight";function _t(J,bt){for(var Pt=ht.nodes(),kt=Pt.pop(),Ot={};kt;)Ot[kt]?J(kt):(Ot[kt]=!0,Pt.push(kt),Pt=Pt.concat(bt(kt))),kt=Pt.pop()}return _t(function(J){Tt[J]=ht.inEdges(J).reduce(function(bt,Pt){return Math.max(bt,Tt[Pt.v]+ht.edge(Pt))},0)},ht.predecessors.bind(ht)),_t(function(J){var bt=ht.outEdges(J).reduce(function(kt,Ot){return Math.min(kt,Tt[Ot.w]-ht.edge(Ot))},Number.POSITIVE_INFINITY),Pt=V.node(J);bt!==Number.POSITIVE_INFINITY&&Pt.borderType!==dt&&(Tt[J]=Math.max(Tt[J],bt))},ht.successors.bind(ht)),f.forEach(ut,function(J){Tt[J]=Tt[K[J]]}),Tt}function P(V,X){return f.minBy(f.values(X),function(K){var ut=Number.NEGATIVE_INFINITY,tt=Number.POSITIVE_INFINITY;return f.forIn(K,function(Tt,ht){var dt=function(_t,J){return _t.node(J).width}(V,ht)/2;ut=Math.max(Tt+dt,ut),tt=Math.min(Tt-dt,tt)}),ut-tt})}function W(V,X){var K=f.values(X),ut=f.min(K),tt=f.max(K);f.forEach(["u","d"],function(Tt){f.forEach(["l","r"],function(ht){var dt,_t=Tt+ht,J=V[_t];if(J!==X){var bt=f.values(J);(dt=ht==="l"?ut-f.min(bt):tt-f.max(bt))&&(V[_t]=f.mapValues(J,function(Pt){return Pt+dt}))}})})}function H(V,X){return f.mapValues(V.ul,function(K,ut){if(X)return V[X.toLowerCase()][ut];var tt=f.sortBy(f.map(V,ut));return(tt[1]+tt[2])/2})}a.exports={positionX:function(V){var X,K=_.buildLayerMatrix(V),ut=f.merge(y(V,K),x(V,K)),tt={};f.forEach(["u","d"],function(ht){X=ht==="u"?K:f.values(K).reverse(),f.forEach(["l","r"],function(dt){dt==="r"&&(X=f.map(X,function(Pt){return f.values(Pt).reverse()}));var _t=(ht==="u"?V.predecessors:V.successors).bind(V),J=I(0,X,ut,_t),bt=N(V,X,J.root,J.align,dt==="r");dt==="r"&&(bt=f.mapValues(bt,function(Pt){return-Pt})),tt[ht+dt]=bt})});var Tt=P(V,tt);return W(tt,Tt),H(tt,V.graph().align)},findType1Conflicts:y,findType2Conflicts:x,addConflict:E,hasConflict:A,verticalAlignment:I,horizontalCompaction:N,alignCoordinates:W,findSmallestWidthAlignment:P,balance:H}},7873:(a,h,s)=>{var f=s(8436),l=s(1138),_=s(3573).positionX;a.exports=function(y){(function(x){var E=l.buildLayerMatrix(x),A=x.graph().ranksep,I=0;f.forEach(E,function(N){var P=f.max(f.map(N,function(W){return x.node(W).height}));f.forEach(N,function(W){x.node(W).y=I+P/2}),I+=P+A})})(y=l.asNonCompoundGraph(y)),f.forEach(_(y),function(x,E){y.node(E).x=x})}},300:(a,h,s)=>{var f=s(8436),l=s(574).Graph,_=s(6681).slack;function y(A,I){return f.forEach(A.nodes(),function N(P){f.forEach(I.nodeEdges(P),function(W){var H=W.v,V=P===H?W.w:H;A.hasNode(V)||_(I,W)||(A.setNode(V,{}),A.setEdge(P,V,{}),N(V))})}),A.nodeCount()}function x(A,I){return f.minBy(I.edges(),function(N){if(A.hasNode(N.v)!==A.hasNode(N.w))return _(I,N)})}function E(A,I,N){f.forEach(A.nodes(),function(P){I.node(P).rank+=N})}a.exports=function(A){var I,N,P=new l({directed:!1}),W=A.nodes()[0],H=A.nodeCount();for(P.setNode(W,{});y(P,A)<H;)I=x(P,A),N=P.hasNode(I.v)?_(A,I):-_(A,I),E(P,A,N);return P}},8093:(a,h,s)=>{var f=s(6681).longestPath,l=s(300),_=s(2472);a.exports=function(x){switch(x.graph().ranker){case"network-simplex":default:(function(E){_(E)})(x);break;case"tight-tree":(function(E){f(E),l(E)})(x);break;case"longest-path":y(x)}};var y=f},2472:(a,h,s)=>{var f=s(8436),l=s(300),_=s(6681).slack,y=s(6681).longestPath,x=s(574).alg.preorder,E=s(574).alg.postorder,A=s(1138).simplify;function I(tt){tt=A(tt),y(tt);var Tt,ht=l(tt);for(W(ht),N(ht,tt);Tt=V(ht);)K(ht,tt,Tt,X(ht,tt,Tt))}function N(tt,Tt){var ht=E(tt,tt.nodes());ht=ht.slice(0,ht.length-1),f.forEach(ht,function(dt){(function(_t,J,bt){var Pt=_t.node(bt).parent;_t.edge(bt,Pt).cutvalue=P(_t,J,bt)})(tt,Tt,dt)})}function P(tt,Tt,ht){var dt=tt.node(ht).parent,_t=!0,J=Tt.edge(ht,dt),bt=0;return J||(_t=!1,J=Tt.edge(dt,ht)),bt=J.weight,f.forEach(Tt.nodeEdges(ht),function(Pt){var kt,Ot,st=Pt.v===ht,ae=st?Pt.w:Pt.v;if(ae!==dt){var Yt=st===_t,_e=Tt.edge(Pt).weight;if(bt+=Yt?_e:-_e,kt=ht,Ot=ae,tt.hasEdge(kt,Ot)){var pe=tt.edge(ht,ae).cutvalue;bt+=Yt?-pe:pe}}}),bt}function W(tt,Tt){arguments.length<2&&(Tt=tt.nodes()[0]),H(tt,{},1,Tt)}function H(tt,Tt,ht,dt,_t){var J=ht,bt=tt.node(dt);return Tt[dt]=!0,f.forEach(tt.neighbors(dt),function(Pt){f.has(Tt,Pt)||(ht=H(tt,Tt,ht,Pt,dt))}),bt.low=J,bt.lim=ht++,_t?bt.parent=_t:delete bt.parent,ht}function V(tt){return f.find(tt.edges(),function(Tt){return tt.edge(Tt).cutvalue<0})}function X(tt,Tt,ht){var dt=ht.v,_t=ht.w;Tt.hasEdge(dt,_t)||(dt=ht.w,_t=ht.v);var J=tt.node(dt),bt=tt.node(_t),Pt=J,kt=!1;J.lim>bt.lim&&(Pt=bt,kt=!0);var Ot=f.filter(Tt.edges(),function(st){return kt===ut(0,tt.node(st.v),Pt)&&kt!==ut(0,tt.node(st.w),Pt)});return f.minBy(Ot,function(st){return _(Tt,st)})}function K(tt,Tt,ht,dt){var _t=ht.v,J=ht.w;tt.removeEdge(_t,J),tt.setEdge(dt.v,dt.w,{}),W(tt),N(tt,Tt),function(bt,Pt){var kt=f.find(bt.nodes(),function(st){return!Pt.node(st).parent}),Ot=x(bt,kt);Ot=Ot.slice(1),f.forEach(Ot,function(st){var ae=bt.node(st).parent,Yt=Pt.edge(st,ae),_e=!1;Yt||(Yt=Pt.edge(ae,st),_e=!0),Pt.node(st).rank=Pt.node(ae).rank+(_e?Yt.minlen:-Yt.minlen)})}(tt,Tt)}function ut(tt,Tt,ht){return ht.low<=Tt.lim&&Tt.lim<=ht.lim}a.exports=I,I.initLowLimValues=W,I.initCutValues=N,I.calcCutValue=P,I.leaveEdge=V,I.enterEdge=X,I.exchangeEdges=K},6681:(a,h,s)=>{var f=s(8436);a.exports={longestPath:function(l){var _={};f.forEach(l.sources(),function y(x){var E=l.node(x);if(f.has(_,x))return E.rank;_[x]=!0;var A=f.min(f.map(l.outEdges(x),function(I){return y(I.w)-l.edge(I).minlen}));return A!==Number.POSITIVE_INFINITY&&A!=null||(A=0),E.rank=A})},slack:function(l,_){return l.node(_.w).rank-l.node(_.v).rank-l.edge(_).minlen}}},1138:(a,h,s)=>{var f=s(8436),l=s(574).Graph;function _(x,E,A,I){var N;do N=f.uniqueId(I);while(x.hasNode(N));return A.dummy=E,x.setNode(N,A),N}function y(x){return f.max(f.map(x.nodes(),function(E){var A=x.node(E).rank;if(!f.isUndefined(A))return A}))}a.exports={addDummyNode:_,simplify:function(x){var E=new l().setGraph(x.graph());return f.forEach(x.nodes(),function(A){E.setNode(A,x.node(A))}),f.forEach(x.edges(),function(A){var I=E.edge(A.v,A.w)||{weight:0,minlen:1},N=x.edge(A);E.setEdge(A.v,A.w,{weight:I.weight+N.weight,minlen:Math.max(I.minlen,N.minlen)})}),E},asNonCompoundGraph:function(x){var E=new l({multigraph:x.isMultigraph()}).setGraph(x.graph());return f.forEach(x.nodes(),function(A){x.children(A).length||E.setNode(A,x.node(A))}),f.forEach(x.edges(),function(A){E.setEdge(A,x.edge(A))}),E},successorWeights:function(x){var E=f.map(x.nodes(),function(A){var I={};return f.forEach(x.outEdges(A),function(N){I[N.w]=(I[N.w]||0)+x.edge(N).weight}),I});return f.zipObject(x.nodes(),E)},predecessorWeights:function(x){var E=f.map(x.nodes(),function(A){var I={};return f.forEach(x.inEdges(A),function(N){I[N.v]=(I[N.v]||0)+x.edge(N).weight}),I});return f.zipObject(x.nodes(),E)},intersectRect:function(x,E){var A,I,N=x.x,P=x.y,W=E.x-N,H=E.y-P,V=x.width/2,X=x.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,I=X):(W<0&&(V=-V),A=V,I=V*H/W),{x:N+A,y:P+I}},buildLayerMatrix:function(x){var E=f.map(f.range(y(x)+1),function(){return[]});return f.forEach(x.nodes(),function(A){var I=x.node(A),N=I.rank;f.isUndefined(N)||(E[N][I.order]=A)}),E},normalizeRanks:function(x){var E=f.min(f.map(x.nodes(),function(A){return x.node(A).rank}));f.forEach(x.nodes(),function(A){var I=x.node(A);f.has(I,"rank")&&(I.rank-=E)})},removeEmptyRanks:function(x){var E=f.min(f.map(x.nodes(),function(P){return x.node(P).rank})),A=[];f.forEach(x.nodes(),function(P){var W=x.node(P).rank-E;A[W]||(A[W]=[]),A[W].push(P)});var I=0,N=x.graph().nodeRankFactor;f.forEach(A,function(P,W){f.isUndefined(P)&&W%N!=0?--I:I&&f.forEach(P,function(H){x.node(H).rank+=I})})},addBorderNode:function(x,E,A,I){var N={width:0,height:0};return arguments.length>=4&&(N.rank=A,N.order=I),_(x,"border",N,E)},maxRank:y,partition:function(x,E){var A={lhs:[],rhs:[]};return f.forEach(x,function(I){E(I)?A.lhs.push(I):A.rhs.push(I)}),A},time:function(x,E){var A=f.now();try{return E()}finally{console.log(x+" time: "+(f.now()-A)+"ms")}},notime:function(x,E){return E()}}},8177:a=>{a.exports="0.8.5"},7856:function(a){a.exports=function(){var h=Object.hasOwnProperty,s=Object.setPrototypeOf,f=Object.isFrozen,l=Object.getPrototypeOf,_=Object.getOwnPropertyDescriptor,y=Object.freeze,x=Object.seal,E=Object.create,A=typeof Reflect!="undefined"&&Reflect,I=A.apply,N=A.construct;I||(I=function($t,At,ne){return $t.apply(At,ne)}),y||(y=function($t){return $t}),x||(x=function($t){return $t}),N||(N=function($t,At){return new(Function.prototype.bind.apply($t,[null].concat(function(ne){if(Array.isArray(ne)){for(var tn=0,ye=Array(ne.length);tn<ne.length;tn++)ye[tn]=ne[tn];return ye}return Array.from(ne)}(At))))});var P,W=_t(Array.prototype.forEach),H=_t(Array.prototype.pop),V=_t(Array.prototype.push),X=_t(String.prototype.toLowerCase),K=_t(String.prototype.match),ut=_t(String.prototype.replace),tt=_t(String.prototype.indexOf),Tt=_t(String.prototype.trim),ht=_t(RegExp.prototype.test),dt=(P=TypeError,function(){for(var $t=arguments.length,At=Array($t),ne=0;ne<$t;ne++)At[ne]=arguments[ne];return N(P,At)});function _t($t){return function(At){for(var ne=arguments.length,tn=Array(ne>1?ne-1:0),ye=1;ye<ne;ye++)tn[ye-1]=arguments[ye];return I($t,At,tn)}}function J($t,At){s&&s($t,null);for(var ne=At.length;ne--;){var tn=At[ne];if(typeof tn=="string"){var ye=X(tn);ye!==tn&&(f(At)||(At[ne]=ye),tn=ye)}$t[tn]=!0}return $t}function bt($t){var At=E(null),ne=void 0;for(ne in $t)I(h,$t,[ne])&&(At[ne]=$t[ne]);return At}function Pt($t,At){for(;$t!==null;){var ne=_($t,At);if(ne){if(ne.get)return _t(ne.get);if(typeof ne.value=="function")return _t(ne.value)}$t=l($t)}return function(tn){return console.warn("fallback value for",tn),null}}var kt=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"]),Ot=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"]),st=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ae=y(["animate","color-profile","cursor","discard","fedropshadow","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"]),Yt=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"]),_e=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=y(["#text"]),de=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","nonce","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"]),Bt=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"]),zt=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"]),ce=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),he=x(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ge=x(/<%[\s\S]*|[\s\S]*%>/gm),It=x(/^data-[\-\w.\u00B7-\uFFFF]/),We=x(/^aria-[\-\w]+$/),oe=x(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wt=x(/^(?:\w+script|data):/i),Gt=x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($t){return typeof $t}:function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t};function re($t){if(Array.isArray($t)){for(var At=0,ne=Array($t.length);At<$t.length;At++)ne[At]=$t[At];return ne}return Array.from($t)}var Mt=function(){return typeof window=="undefined"?null:window},qt=function($t,At){if(($t===void 0?"undefined":rt($t))!=="object"||typeof $t.createPolicy!="function")return null;var ne=null,tn="data-tt-policy-suffix";At.currentScript&&At.currentScript.hasAttribute(tn)&&(ne=At.currentScript.getAttribute(tn));var ye="dompurify"+(ne?"#"+ne:"");try{return $t.createPolicy(ye,{createHTML:function(Re){return Re}})}catch{return console.warn("TrustedTypes policy "+ye+" could not be created."),null}};return function $t(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mt(),ne=function(Rt){return $t(Rt)};if(ne.version="2.3.4",ne.removed=[],!At||!At.document||At.document.nodeType!==9)return ne.isSupported=!1,ne;var tn=At.document,ye=At.document,Re=At.DocumentFragment,un=At.HTMLTemplateElement,Ve=At.Node,Oe=At.Element,ke=At.NodeFilter,Ke=At.NamedNodeMap,Ye=Ke===void 0?At.NamedNodeMap||At.MozNamedAttrMap:Ke,Ge=At.HTMLFormElement,Xe=At.DOMParser,De=At.trustedTypes,Un=Oe.prototype,Te=Pt(Un,"cloneNode"),en=Pt(Un,"nextSibling"),bn=Pt(Un,"childNodes"),Ir=Pt(Un,"parentNode");if(typeof un=="function"){var xn=ye.createElement("template");xn.content&&xn.content.ownerDocument&&(ye=xn.content.ownerDocument)}var tr=qt(De,tn),cn=tr&&Fr?tr.createHTML(""):"",yn=ye,Ze=yn.implementation,Sn=yn.createNodeIterator,Tn=yn.createDocumentFragment,zn=yn.getElementsByTagName,Wn=tn.importNode,Dr={};try{Dr=bt(ye).documentMode?ye.documentMode:{}}catch{}var En={};ne.isSupported=typeof Ir=="function"&&Ze&&Ze.createHTMLDocument!==void 0&&Dr!==9;var qn=he,Pn=ge,Gn=It,Xn=We,er=Wt,Nn=Gt,Ln=oe,ln=null,Yn=J({},[].concat(re(kt),re(Ot),re(st),re(Yt),re(pe))),vn=null,ii=J({},[].concat(re(de),re(Bt),re(zt),re(ce))),yr=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ji=null,In=null,ko=!0,ga=!0,ai=!1,Rr=!1,zr=!1,Xr=!1,Jr=!1,Nr=!1,Kr=!1,Fr=!1,Li=!0,hi=!0,rr=!1,$r={},ya=null,ti=J({},["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"]),ma=null,lo=J({},["audio","video","img","source","image","track"]),fi=null,nn=J({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zn="http://www.w3.org/1998/Math/MathML",Mn="http://www.w3.org/2000/svg",Be="http://www.w3.org/1999/xhtml",Qn=Be,gt=!1,Zr=void 0,Xt=["application/xhtml+xml","text/html"],Ii="text/html",fa=void 0,qa=null,ho=ye.createElement("form"),To=function(Rt){return Rt instanceof RegExp||Rt instanceof Function},Eo=function(Rt){qa&&qa===Rt||(Rt&&(Rt===void 0?"undefined":rt(Rt))==="object"||(Rt={}),Rt=bt(Rt),ln="ALLOWED_TAGS"in Rt?J({},Rt.ALLOWED_TAGS):Yn,vn="ALLOWED_ATTR"in Rt?J({},Rt.ALLOWED_ATTR):ii,fi="ADD_URI_SAFE_ATTR"in Rt?J(bt(nn),Rt.ADD_URI_SAFE_ATTR):nn,ma="ADD_DATA_URI_TAGS"in Rt?J(bt(lo),Rt.ADD_DATA_URI_TAGS):lo,ya="FORBID_CONTENTS"in Rt?J({},Rt.FORBID_CONTENTS):ti,Ji="FORBID_TAGS"in Rt?J({},Rt.FORBID_TAGS):{},In="FORBID_ATTR"in Rt?J({},Rt.FORBID_ATTR):{},$r="USE_PROFILES"in Rt&&Rt.USE_PROFILES,ko=Rt.ALLOW_ARIA_ATTR!==!1,ga=Rt.ALLOW_DATA_ATTR!==!1,ai=Rt.ALLOW_UNKNOWN_PROTOCOLS||!1,Rr=Rt.SAFE_FOR_TEMPLATES||!1,zr=Rt.WHOLE_DOCUMENT||!1,Nr=Rt.RETURN_DOM||!1,Kr=Rt.RETURN_DOM_FRAGMENT||!1,Fr=Rt.RETURN_TRUSTED_TYPE||!1,Jr=Rt.FORCE_BODY||!1,Li=Rt.SANITIZE_DOM!==!1,hi=Rt.KEEP_CONTENT!==!1,rr=Rt.IN_PLACE||!1,Ln=Rt.ALLOWED_URI_REGEXP||Ln,Qn=Rt.NAMESPACE||Be,Rt.CUSTOM_ELEMENT_HANDLING&&To(Rt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(yr.tagNameCheck=Rt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Rt.CUSTOM_ELEMENT_HANDLING&&To(Rt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(yr.attributeNameCheck=Rt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Rt.CUSTOM_ELEMENT_HANDLING&&typeof Rt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(yr.allowCustomizedBuiltInElements=Rt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Zr=Zr=Xt.indexOf(Rt.PARSER_MEDIA_TYPE)===-1?Ii:Rt.PARSER_MEDIA_TYPE,fa=Zr==="application/xhtml+xml"?function(je){return je}:X,Rr&&(ga=!1),Kr&&(Nr=!0),$r&&(ln=J({},[].concat(re(pe))),vn=[],$r.html===!0&&(J(ln,kt),J(vn,de)),$r.svg===!0&&(J(ln,Ot),J(vn,Bt),J(vn,ce)),$r.svgFilters===!0&&(J(ln,st),J(vn,Bt),J(vn,ce)),$r.mathMl===!0&&(J(ln,Yt),J(vn,zt),J(vn,ce))),Rt.ADD_TAGS&&(ln===Yn&&(ln=bt(ln)),J(ln,Rt.ADD_TAGS)),Rt.ADD_ATTR&&(vn===ii&&(vn=bt(vn)),J(vn,Rt.ADD_ATTR)),Rt.ADD_URI_SAFE_ATTR&&J(fi,Rt.ADD_URI_SAFE_ATTR),Rt.FORBID_CONTENTS&&(ya===ti&&(ya=bt(ya)),J(ya,Rt.FORBID_CONTENTS)),hi&&(ln["#text"]=!0),zr&&J(ln,["html","head","body"]),ln.table&&(J(ln,["tbody"]),delete Ji.tbody),y&&y(Rt),qa=Rt)},Vr=J({},["mi","mo","mn","ms","mtext"]),Ki=J({},["foreignobject","desc","title","annotation-xml"]),An=J({},Ot);J(An,st),J(An,ae);var Ba=J({},Yt);J(Ba,_e);var $a=function(Rt){var je=Ir(Rt);je&&je.tagName||(je={namespaceURI:Be,tagName:"template"});var Fe=X(Rt.tagName),vr=X(je.tagName);if(Rt.namespaceURI===Mn)return je.namespaceURI===Be?Fe==="svg":je.namespaceURI===Zn?Fe==="svg"&&(vr==="annotation-xml"||Vr[vr]):Boolean(An[Fe]);if(Rt.namespaceURI===Zn)return je.namespaceURI===Be?Fe==="math":je.namespaceURI===Mn?Fe==="math"&&Ki[vr]:Boolean(Ba[Fe]);if(Rt.namespaceURI===Be){if(je.namespaceURI===Mn&&!Ki[vr]||je.namespaceURI===Zn&&!Vr[vr])return!1;var _r=J({},["title","style","font","a","script"]);return!Ba[Fe]&&(_r[Fe]||!An[Fe])}return!1},mr=function(Rt){V(ne.removed,{element:Rt});try{Rt.parentNode.removeChild(Rt)}catch{try{Rt.outerHTML=cn}catch{Rt.remove()}}},Sr=function(Rt,je){try{V(ne.removed,{attribute:je.getAttributeNode(Rt),from:je})}catch{V(ne.removed,{attribute:null,from:je})}if(je.removeAttribute(Rt),Rt==="is"&&!vn[Rt])if(Nr||Kr)try{mr(je)}catch{}else try{je.setAttribute(Rt,"")}catch{}},bi=function(Rt){var je=void 0,Fe=void 0;if(Jr)Rt="<remove></remove>"+Rt;else{var vr=K(Rt,/^[\r\n\t ]+/);Fe=vr&&vr[0]}Zr==="application/xhtml+xml"&&(Rt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Rt+"</body></html>");var _r=tr?tr.createHTML(Rt):Rt;if(Qn===Be)try{je=new Xe().parseFromString(_r,Zr)}catch{}if(!je||!je.documentElement){je=Ze.createDocument(Qn,"template",null);try{je.documentElement.innerHTML=gt?"":_r}catch{}}var xi=je.body||je.documentElement;return Rt&&Fe&&xi.insertBefore(ye.createTextNode(Fe),xi.childNodes[0]||null),Qn===Be?zn.call(je,zr?"html":"body")[0]:zr?je.documentElement:xi},ei=function(Rt){return Sn.call(Rt.ownerDocument||Rt,Rt,ke.SHOW_ELEMENT|ke.SHOW_COMMENT|ke.SHOW_TEXT,null,!1)},Wr=function(Rt){return Rt instanceof Ge&&(typeof Rt.nodeName!="string"||typeof Rt.textContent!="string"||typeof Rt.removeChild!="function"||!(Rt.attributes instanceof Ye)||typeof Rt.removeAttribute!="function"||typeof Rt.setAttribute!="function"||typeof Rt.namespaceURI!="string"||typeof Rt.insertBefore!="function")},Hr=function(Rt){return(Ve===void 0?"undefined":rt(Ve))==="object"?Rt instanceof Ve:Rt&&(Rt===void 0?"undefined":rt(Rt))==="object"&&typeof Rt.nodeType=="number"&&typeof Rt.nodeName=="string"},di=function(Rt,je,Fe){En[Rt]&&W(En[Rt],function(vr){vr.call(ne,je,Fe,qa)})},Qr=function(Rt){var je=void 0;if(di("beforeSanitizeElements",Rt,null),Wr(Rt)||K(Rt.nodeName,/[\u0080-\uFFFF]/))return mr(Rt),!0;var Fe=fa(Rt.nodeName);if(di("uponSanitizeElement",Rt,{tagName:Fe,allowedTags:ln}),!Hr(Rt.firstElementChild)&&(!Hr(Rt.content)||!Hr(Rt.content.firstElementChild))&&ht(/<[/\w]/g,Rt.innerHTML)&&ht(/<[/\w]/g,Rt.textContent)||Fe==="select"&&ht(/<template/i,Rt.innerHTML))return mr(Rt),!0;if(!ln[Fe]||Ji[Fe]){if(hi&&!ya[Fe]){var vr=Ir(Rt)||Rt.parentNode,_r=bn(Rt)||Rt.childNodes;if(_r&&vr)for(var xi=_r.length-1;xi>=0;--xi)vr.insertBefore(Te(_r[xi],!0),en(Rt))}return!Ji[Fe]&&Wi(Fe)&&(yr.tagNameCheck instanceof RegExp&&ht(yr.tagNameCheck,Fe)||yr.tagNameCheck instanceof Function&&yr.tagNameCheck(Fe))?!1:(mr(Rt),!0)}return Rt instanceof Oe&&!$a(Rt)?(mr(Rt),!0):Fe!=="noscript"&&Fe!=="noembed"||!ht(/<\/no(script|embed)/i,Rt.innerHTML)?(Rr&&Rt.nodeType===3&&(je=Rt.textContent,je=ut(je,qn," "),je=ut(je,Pn," "),Rt.textContent!==je&&(V(ne.removed,{element:Rt.cloneNode()}),Rt.textContent=je)),di("afterSanitizeElements",Rt,null),!1):(mr(Rt),!0)},ta=function(Rt,je,Fe){if(Li&&(je==="id"||je==="name")&&(Fe in ye||Fe in ho))return!1;if(!(ga&&!In[je]&&ht(Gn,je))){if(!(ko&&ht(Xn,je))){if(!vn[je]||In[je]){if(!(Wi(Rt)&&(yr.tagNameCheck instanceof RegExp&&ht(yr.tagNameCheck,Rt)||yr.tagNameCheck instanceof Function&&yr.tagNameCheck(Rt))&&(yr.attributeNameCheck instanceof RegExp&&ht(yr.attributeNameCheck,je)||yr.attributeNameCheck instanceof Function&&yr.attributeNameCheck(je))||je==="is"&&yr.allowCustomizedBuiltInElements&&(yr.tagNameCheck instanceof RegExp&&ht(yr.tagNameCheck,Fe)||yr.tagNameCheck instanceof Function&&yr.tagNameCheck(Fe))))return!1}else if(!fi[je]){if(!ht(Ln,ut(Fe,Nn,""))){if((je!=="src"&&je!=="xlink:href"&&je!=="href"||Rt==="script"||tt(Fe,"data:")!==0||!ma[Rt])&&!(ai&&!ht(er,ut(Fe,Nn,"")))){if(Fe)return!1}}}}}return!0},Wi=function(Rt){return Rt.indexOf("-")>0},Ri=function(Rt){var je=void 0,Fe=void 0,vr=void 0,_r=void 0;di("beforeSanitizeAttributes",Rt,null);var xi=Rt.attributes;if(xi){var ni={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:vn};for(_r=xi.length;_r--;){var cc=je=xi[_r],wi=cc.name,Ai=cc.namespaceURI;if(Fe=Tt(je.value),vr=fa(wi),ni.attrName=vr,ni.attrValue=Fe,ni.keepAttr=!0,ni.forceKeepAttr=void 0,di("uponSanitizeAttribute",Rt,ni),Fe=ni.attrValue,!ni.forceKeepAttr&&(Sr(wi,Rt),ni.keepAttr))if(ht(/\/>/i,Fe))Sr(wi,Rt);else{Rr&&(Fe=ut(Fe,qn," "),Fe=ut(Fe,Pn," "));var uc=fa(Rt.nodeName);if(ta(uc,vr,Fe))try{Ai?Rt.setAttributeNS(Ai,wi,Fe):Rt.setAttribute(wi,Fe),H(ne.removed)}catch{}}}di("afterSanitizeAttributes",Rt,null)}},fo=function Rt(je){var Fe=void 0,vr=ei(je);for(di("beforeSanitizeShadowDOM",je,null);Fe=vr.nextNode();)di("uponSanitizeShadowNode",Fe,null),Qr(Fe)||(Fe.content instanceof Re&&Rt(Fe.content),Ri(Fe));di("afterSanitizeShadowDOM",je,null)};return ne.sanitize=function(Rt,je){var Fe=void 0,vr=void 0,_r=void 0,xi=void 0,ni=void 0;if((gt=!Rt)&&(Rt="<!-->"),typeof Rt!="string"&&!Hr(Rt)){if(typeof Rt.toString!="function")throw dt("toString is not a function");if(typeof(Rt=Rt.toString())!="string")throw dt("dirty is not a string, aborting")}if(!ne.isSupported){if(rt(At.toStaticHTML)==="object"||typeof At.toStaticHTML=="function"){if(typeof Rt=="string")return At.toStaticHTML(Rt);if(Hr(Rt))return At.toStaticHTML(Rt.outerHTML)}return Rt}if(Xr||Eo(je),ne.removed=[],typeof Rt=="string"&&(rr=!1),!rr)if(Rt instanceof Ve)(vr=(Fe=bi("<!---->")).ownerDocument.importNode(Rt,!0)).nodeType===1&&vr.nodeName==="BODY"||vr.nodeName==="HTML"?Fe=vr:Fe.appendChild(vr);else{if(!Nr&&!Rr&&!zr&&Rt.indexOf("<")===-1)return tr&&Fr?tr.createHTML(Rt):Rt;if(!(Fe=bi(Rt)))return Nr?null:cn}Fe&&Jr&&mr(Fe.firstChild);for(var cc=ei(rr?Rt:Fe);_r=cc.nextNode();)_r.nodeType===3&&_r===xi||Qr(_r)||(_r.content instanceof Re&&fo(_r.content),Ri(_r),xi=_r);if(xi=null,rr)return Rt;if(Nr){if(Kr)for(ni=Tn.call(Fe.ownerDocument);Fe.firstChild;)ni.appendChild(Fe.firstChild);else ni=Fe;return vn.shadowroot&&(ni=Wn.call(tn,ni,!0)),ni}var wi=zr?Fe.outerHTML:Fe.innerHTML;return Rr&&(wi=ut(wi,qn," "),wi=ut(wi,Pn," ")),tr&&Fr?tr.createHTML(wi):wi},ne.setConfig=function(Rt){Eo(Rt),Xr=!0},ne.clearConfig=function(){qa=null,Xr=!1},ne.isValidAttribute=function(Rt,je,Fe){qa||Eo({});var vr=fa(Rt),_r=fa(je);return ta(vr,_r,Fe)},ne.addHook=function(Rt,je){typeof je=="function"&&(En[Rt]=En[Rt]||[],V(En[Rt],je))},ne.removeHook=function(Rt){En[Rt]&&H(En[Rt])},ne.removeHooks=function(Rt){En[Rt]&&(En[Rt]=[])},ne.removeAllHooks=function(){En={}},ne}()}()},8282:(a,h,s)=>{var f=s(2354);a.exports={Graph:f.Graph,json:s(8974),alg:s(2440),version:f.version}},2842:(a,h,s)=>{var f=s(9126);a.exports=function(l){var _,y={},x=[];function E(A){f.has(y,A)||(y[A]=!0,_.push(A),f.each(l.successors(A),E),f.each(l.predecessors(A),E))}return f.each(l.nodes(),function(A){_=[],E(A),_.length&&x.push(_)}),x}},3984:(a,h,s)=>{var f=s(9126);function l(_,y,x,E,A,I){f.has(E,y)||(E[y]=!0,x||I.push(y),f.each(A(y),function(N){l(_,N,x,E,A,I)}),x&&I.push(y))}a.exports=function(_,y,x){f.isArray(y)||(y=[y]);var E=(_.isDirected()?_.successors:_.neighbors).bind(_),A=[],I={};return f.each(y,function(N){if(!_.hasNode(N))throw new Error("Graph does not have node: "+N);l(_,N,x==="post",I,E,A)}),A}},4847:(a,h,s)=>{var f=s(3763),l=s(9126);a.exports=function(_,y,x){return l.transform(_.nodes(),function(E,A){E[A]=f(_,A,y,x)},{})}},3763:(a,h,s)=>{var f=s(9126),l=s(9675);a.exports=function(y,x,E,A){return function(I,N,P,W){var H,V,X={},K=new l,ut=function(tt){var Tt=tt.v!==H?tt.v:tt.w,ht=X[Tt],dt=P(tt),_t=V.distance+dt;if(dt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+tt+" Weight: "+dt);_t<ht.distance&&(ht.distance=_t,ht.predecessor=H,K.decrease(Tt,_t))};for(I.nodes().forEach(function(tt){var Tt=tt===N?0:Number.POSITIVE_INFINITY;X[tt]={distance:Tt},K.add(tt,Tt)});K.size()>0&&(H=K.removeMin(),(V=X[H]).distance!==Number.POSITIVE_INFINITY);)W(H).forEach(ut);return X}(y,String(x),E||_,A||function(I){return y.outEdges(I)})};var _=f.constant(1)},9096:(a,h,s)=>{var f=s(9126),l=s(5023);a.exports=function(_){return f.filter(l(_),function(y){return y.length>1||y.length===1&&_.hasEdge(y[0],y[0])})}},8924:(a,h,s)=>{var f=s(9126);a.exports=function(_,y,x){return function(E,A,I){var N={},P=E.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})}),I(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(K){var ut=X[W],tt=H[K],Tt=X[K],ht=ut.distance+tt.distance;ht<Tt.distance&&(Tt.distance=ht,Tt.predecessor=tt.predecessor)})})}),N}(_,y||l,x||function(E){return _.outEdges(E)})};var l=f.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 f=s(2166);a.exports=function(l){try{f(l)}catch(_){if(_ instanceof f.CycleException)return!1;throw _}return!0}},8828:(a,h,s)=>{var f=s(3984);a.exports=function(l,_){return f(l,_,"post")}},2648:(a,h,s)=>{var f=s(3984);a.exports=function(l,_){return f(l,_,"pre")}},514:(a,h,s)=>{var f=s(9126),l=s(771),_=s(9675);a.exports=function(y,x){var E,A=new l,I={},N=new _;function P(H){var V=H.v===E?H.w:H.v,X=N.priority(V);if(X!==void 0){var K=x(H);K<X&&(I[V]=E,N.decrease(V,K))}}if(y.nodeCount()===0)return A;f.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(E=N.removeMin(),f.has(I,E))A.setEdge(E,I[E]);else{if(W)throw new Error("Input graph is not connected: "+y);W=!0}y.nodeEdges(E).forEach(P)}return A}},5023:(a,h,s)=>{var f=s(9126);a.exports=function(l){var _=0,y=[],x={},E=[];function A(I){var N=x[I]={onStack:!0,lowlink:_,index:_++};if(y.push(I),l.successors(I).forEach(function(H){f.has(x,H)?x[H].onStack&&(N.lowlink=Math.min(N.lowlink,x[H].index)):(A(H),N.lowlink=Math.min(N.lowlink,x[H].lowlink))}),N.lowlink===N.index){var P,W=[];do P=y.pop(),x[P].onStack=!1,W.push(P);while(I!==P);E.push(W)}}return l.nodes().forEach(function(I){f.has(x,I)||A(I)}),E}},2166:(a,h,s)=>{var f=s(9126);function l(y){var x={},E={},A=[];if(f.each(y.sinks(),function I(N){if(f.has(E,N))throw new _;f.has(x,N)||(E[N]=!0,x[N]=!0,f.each(y.predecessors(N),I),delete E[N],A.push(N))}),f.size(x)!==y.nodeCount())throw new _;return A}function _(){}a.exports=l,l.CycleException=_,_.prototype=new Error},9675:(a,h,s)=>{var f=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 f.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 x=this._keyIndices;if(_=String(_),!f.has(x,_)){var E=this._arr,A=E.length;return x[_]=A,E.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 x=this._keyIndices[_];if(y>this._arr[x].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[x].priority+" New: "+y);this._arr[x].priority=y,this._decrease(x)},l.prototype._heapify=function(_){var y=this._arr,x=2*_,E=x+1,A=_;x<y.length&&(A=y[x].priority<y[A].priority?x:A,E<y.length&&(A=y[E].priority<y[A].priority?E:A),A!==_&&(this._swap(_,A),this._heapify(A)))},l.prototype._decrease=function(_){for(var y,x=this._arr,E=x[_].priority;_!==0&&!(x[y=_>>1].priority<E);)this._swap(_,y),_=y},l.prototype._swap=function(_,y){var x=this._arr,E=this._keyIndices,A=x[_],I=x[y];x[_]=I,x[y]=A,E[I.key]=_,E[A.key]=y}},771:(a,h,s)=>{var f=s(9126);a.exports=_;var l="\0";function _(N){this._isDirected=!f.has(N,"directed")||N.directed,this._isMultigraph=!!f.has(N,"multigraph")&&N.multigraph,this._isCompound=!!f.has(N,"compound")&&N.compound,this._label=void 0,this._defaultNodeLabelFn=f.constant(void 0),this._defaultEdgeLabelFn=f.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 x(N,P){--N[P]||delete N[P]}function E(N,P,W,H){var V=""+P,X=""+W;if(!N&&V>X){var K=V;V=X,X=K}return V+""+X+""+(f.isUndefined(H)?"\0":H)}function A(N,P,W,H){var V=""+P,X=""+W;if(!N&&V>X){var K=V;V=X,X=K}var ut={v:V,w:X};return H&&(ut.name=H),ut}function I(N,P){return E(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 f.isFunction(N)||(N=f.constant(N)),this._defaultNodeLabelFn=N,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return f.keys(this._nodes)},_.prototype.sources=function(){var N=this;return f.filter(this.nodes(),function(P){return f.isEmpty(N._in[P])})},_.prototype.sinks=function(){var N=this;return f.filter(this.nodes(),function(P){return f.isEmpty(N._out[P])})},_.prototype.setNodes=function(N,P){var W=arguments,H=this;return f.each(N,function(V){W.length>1?H.setNode(V,P):H.setNode(V)}),this},_.prototype.setNode=function(N,P){return f.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 f.has(this._nodes,N)},_.prototype.removeNode=function(N){var P=this;if(f.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],f.each(this.children(N),function(H){P.setParent(H)}),delete this._children[N]),f.each(f.keys(this._in[N]),W),delete this._in[N],delete this._preds[N],f.each(f.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(f.isUndefined(P))P=l;else{for(var W=P+="";!f.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(f.isUndefined(N)&&(N=l),this._isCompound){var P=this._children[N];if(P)return f.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 f.keys(P)},_.prototype.successors=function(N){var P=this._sucs[N];if(P)return f.keys(P)},_.prototype.neighbors=function(N){var P=this.predecessors(N);if(P)return f.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;f.each(this._nodes,function(X,K){N(K)&&P.setNode(K,X)}),f.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 K=W.parent(X);return K===void 0||P.hasNode(K)?(H[X]=K,K):K in H?H[K]:V(K)}return this._isCompound&&f.each(P.nodes(),function(X){P.setParent(X,V(X))}),P},_.prototype.setDefaultEdgeLabel=function(N){return f.isFunction(N)||(N=f.constant(N)),this._defaultEdgeLabelFn=N,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return f.values(this._edgeObjs)},_.prototype.setPath=function(N,P){var W=this,H=arguments;return f.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,f.isUndefined(W)||(W=""+W);var K=E(this._isDirected,N,P,W);if(f.has(this._edgeLabels,K))return V&&(this._edgeLabels[K]=H),this;if(!f.isUndefined(W)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(N),this.setNode(P),this._edgeLabels[K]=V?H:this._defaultEdgeLabelFn(N,P,W);var ut=A(this._isDirected,N,P,W);return N=ut.v,P=ut.w,Object.freeze(ut),this._edgeObjs[K]=ut,y(this._preds[P],N),y(this._sucs[N],P),this._in[P][K]=ut,this._out[N][K]=ut,this._edgeCount++,this},_.prototype.edge=function(N,P,W){var H=arguments.length===1?I(this._isDirected,arguments[0]):E(this._isDirected,N,P,W);return this._edgeLabels[H]},_.prototype.hasEdge=function(N,P,W){var H=arguments.length===1?I(this._isDirected,arguments[0]):E(this._isDirected,N,P,W);return f.has(this._edgeLabels,H)},_.prototype.removeEdge=function(N,P,W){var H=arguments.length===1?I(this._isDirected,arguments[0]):E(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],x(this._preds[P],N),x(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=f.values(W);return P?f.filter(H,function(V){return V.v===P}):H}},_.prototype.outEdges=function(N,P){var W=this._out[N];if(W){var H=f.values(W);return P?f.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 f=s(9126),l=s(771);function _(x){return f.map(x.nodes(),function(E){var A=x.node(E),I=x.parent(E),N={v:E};return f.isUndefined(A)||(N.value=A),f.isUndefined(I)||(N.parent=I),N})}function y(x){return f.map(x.edges(),function(E){var A=x.edge(E),I={v:E.v,w:E.w};return f.isUndefined(E.name)||(I.name=E.name),f.isUndefined(A)||(I.value=A),I})}a.exports={write:function(x){var E={options:{directed:x.isDirected(),multigraph:x.isMultigraph(),compound:x.isCompound()},nodes:_(x),edges:y(x)};return f.isUndefined(x.graph())||(E.value=f.clone(x.graph())),E},read:function(x){var E=new l(x.options).setGraph(x.value);return f.each(x.nodes,function(A){E.setNode(A.v,A.value),A.parent&&E.setParent(A.v,A.parent)}),f.each(x.edges,function(A){E.setEdge({v:A.v,w:A.w,name:A.name},A.value)}),E}}},9126:(a,h,s)=>{var f;try{f={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{}f||(f=window._),a.exports=f},9631:a=>{a.exports="2.1.8"},1773:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(7628),_=function(){function y(x,E){this.color=E,this.changed=!1,this.data=x,this.type=new l.default}return y.prototype.set=function(x,E){return this.color=E,this.changed=!1,this.data=x,this.type.type=0,this},y.prototype._ensureHSL=function(){var x=this.data,E=x.h,A=x.s,I=x.l;E===void 0&&(x.h=f.default.channel.rgb2hsl(x,"h")),A===void 0&&(x.s=f.default.channel.rgb2hsl(x,"s")),I===void 0&&(x.l=f.default.channel.rgb2hsl(x,"l"))},y.prototype._ensureRGB=function(){var x=this.data,E=x.r,A=x.g,I=x.b;E===void 0&&(x.r=f.default.channel.hsl2rgb(x,"r")),A===void 0&&(x.g=f.default.channel.hsl2rgb(x,"g")),I===void 0&&(x.b=f.default.channel.hsl2rgb(x,"b"))},Object.defineProperty(y.prototype,"r",{get:function(){var x=this.data,E=x.r;return this.type.is(2)||E===void 0?(this._ensureHSL(),f.default.channel.hsl2rgb(x,"r")):E},set:function(x){this.type.set(1),this.changed=!0,this.data.r=x},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"g",{get:function(){var x=this.data,E=x.g;return this.type.is(2)||E===void 0?(this._ensureHSL(),f.default.channel.hsl2rgb(x,"g")):E},set:function(x){this.type.set(1),this.changed=!0,this.data.g=x},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"b",{get:function(){var x=this.data,E=x.b;return this.type.is(2)||E===void 0?(this._ensureHSL(),f.default.channel.hsl2rgb(x,"b")):E},set:function(x){this.type.set(1),this.changed=!0,this.data.b=x},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"h",{get:function(){var x=this.data,E=x.h;return this.type.is(1)||E===void 0?(this._ensureRGB(),f.default.channel.rgb2hsl(x,"h")):E},set:function(x){this.type.set(2),this.changed=!0,this.data.h=x},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"s",{get:function(){var x=this.data,E=x.s;return this.type.is(1)||E===void 0?(this._ensureRGB(),f.default.channel.rgb2hsl(x,"s")):E},set:function(x){this.type.set(2),this.changed=!0,this.data.s=x},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"l",{get:function(){var x=this.data,E=x.l;return this.type.is(1)||E===void 0?(this._ensureRGB(),f.default.channel.rgb2hsl(x,"l")):E},set:function(x){this.type.set(2),this.changed=!0,this.data.l=x},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"a",{get:function(){return this.data.a},set:function(x){this.changed=!0,this.data.a=x},enumerable:!0,configurable:!0}),y}();h.default=_},8167:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=new(s(1773)).default({r:0,g:0,b:0,a:0},"transparent");h.default=f},7628:(a,h)=>{Object.defineProperty(h,"__esModule",{value:!0});var s=function(){function f(){this.type=0}return f.prototype.get=function(){return this.type},f.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},f.prototype.reset=function(){this.type=0},f.prototype.is=function(l){return this.type===l},f}();h.default=s},1655:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=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 x=y.match(_.re);if(x){var E=x[1],A=parseInt(E,16),I=E.length,N=I%4==0,P=I>4,W=P?1:17,H=P?8:4,V=N?0:-1,X=P?255:15;return f.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 x=y.r,E=y.g,A=y.b,I=y.a;return I<1?"#"+l.DEC2HEX[Math.round(x)]+l.DEC2HEX[Math.round(E)]+l.DEC2HEX[Math.round(A)]+l.DEC2HEX[Math.round(255*I)]:"#"+l.DEC2HEX[Math.round(x)]+l.DEC2HEX[Math.round(E)]+l.DEC2HEX[Math.round(A)]}};h.default=_},8589:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=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 x=y.match(_.hueRe);if(x){var E=x[1];switch(x[2]){case"grad":return f.default.channel.clamp.h(.9*parseFloat(E));case"rad":return f.default.channel.clamp.h(180*parseFloat(E)/Math.PI);case"turn":return f.default.channel.clamp.h(360*parseFloat(E))}}return f.default.channel.clamp.h(parseFloat(y))},parse:function(y){var x=y.charCodeAt(0);if(x===104||x===72){var E=y.match(_.re);if(E){var A=E[1],I=E[2],N=E[3],P=E[4],W=E[5];return l.default.set({h:_._hue2deg(A),s:f.default.channel.clamp.s(parseFloat(I)),l:f.default.channel.clamp.l(parseFloat(N)),a:P?f.default.channel.clamp.a(W?parseFloat(P)/100:parseFloat(P)):1},y)}}},stringify:function(y){var x=y.h,E=y.s,A=y.l,I=y.a;return I<1?"hsla("+f.default.lang.round(x)+", "+f.default.lang.round(E)+"%, "+f.default.lang.round(A)+"%, "+I+")":"hsl("+f.default.lang.round(x)+", "+f.default.lang.round(E)+"%, "+f.default.lang.round(A)+"%)"}};h.default=_},2191:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1655),l=s(7538),_=s(6762),y=s(8589),x={format:{keyword:l.default,hex:f.default,rgb:_.default,rgba:_.default,hsl:y.default,hsla:y.default},parse:function(E){if(typeof E!="string")return E;var A=f.default.parse(E)||_.default.parse(E)||y.default.parse(E)||l.default.parse(E);if(A)return A;throw new Error('Unsupported color format: "'+E+'"')},stringify:function(E){return!E.changed&&E.color?E.color:E.type.is(2)||E.data.r===void 0?y.default.stringify(E):E.a<1||!Number.isInteger(E.r)||!Number.isInteger(E.g)||!Number.isInteger(E.b)?_.default.stringify(E):f.default.stringify(E)}};h.default=x},7538:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=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 f.default.parse(y)},stringify:function(_){var y=f.default.stringify(_);for(var x in l.colors)if(l.colors[x]===y)return x}};h.default=l},6762:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=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 x=y.charCodeAt(0);if(x===114||x===82){var E=y.match(_.re);if(E){var A=E[1],I=E[2],N=E[3],P=E[4],W=E[5],H=E[6],V=E[7],X=E[8];return l.default.set({r:f.default.channel.clamp.r(I?2.55*parseFloat(A):parseFloat(A)),g:f.default.channel.clamp.g(P?2.55*parseFloat(N):parseFloat(N)),b:f.default.channel.clamp.b(H?2.55*parseFloat(W):parseFloat(W)),a:V?f.default.channel.clamp.a(X?parseFloat(V)/100:parseFloat(V)):1},y)}}},stringify:function(y){var x=y.r,E=y.g,A=y.b,I=y.a;return I<1?"rgba("+f.default.lang.round(x)+", "+f.default.lang.round(E)+", "+f.default.lang.round(A)+", "+f.default.lang.round(I)+")":"rgb("+f.default.lang.round(x)+", "+f.default.lang.round(E)+", "+f.default.lang.round(A)+")"}};h.default=_},6061:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l={};h.DEC2HEX=l;for(var _=0;_<=255;_++)l[_]=f.default.unit.dec2hex(_)},8613:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0}),function(f){for(var l in f)h.hasOwnProperty(l)||(h[l]=f[l])}(s(1203))},5371:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2191),l=s(418);h.default=function(_,y){var x=f.default.parse(_),E={};for(var A in y)y[A]&&(E[A]=x[A]+y[A]);return l.default(_,E)}},1416:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(2191);h.default=function(_,y,x){var E=l.default.parse(_),A=E[y],I=f.default.channel.clamp[y](A+x);return A!==I&&(E[y]=I),l.default.stringify(E)}},9353:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(6197);h.default=function(l){return f.default(l,"a")}},3394:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(6197);h.default=function(l){return f.default(l,"b")}},418:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(2191);h.default=function(_,y){var x=l.default.parse(_);for(var E in y)x[E]=f.default.channel.clamp[E](y[E]);return l.default.stringify(x)}},6197:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(2191);h.default=function(_,y){return f.default.lang.round(l.default.parse(_)[y])}},7361:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1416);h.default=function(l){return f.default(l,"h",180)}},3042:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(8346);h.default=function(_,y){var x=l.default(_),E=l.default(y),A=Math.max(x,E),I=Math.min(x,E),N=(A+Number.EPSILON)/(I+Number.EPSILON);return f.default.lang.round(f.default.lang.clamp(N,1,10))}},1364:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1416);h.default=function(l,_){return f.default(l,"l",-_)}},9610:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1416);h.default=function(l,_){return f.default(l,"s",-_)}},572:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(418);h.default=function(l){return f.default(l,{s:0})}},2299:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(6197);h.default=function(l){return f.default(l,"g")}},3116:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(8167),_=s(2191);h.default=function(y,x,E,A){A===void 0&&(A=1);var I=l.default.set({h:f.default.channel.clamp.h(y),s:f.default.channel.clamp.s(x),l:f.default.channel.clamp.l(E),a:f.default.channel.clamp.a(A)});return _.default.stringify(I)}},3008:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(6197);h.default=function(l){return f.default(l,"h")}},1203:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(6538);h.hex=f.default;var l=s(6538);h.rgb=l.default;var _=s(6538);h.rgba=_.default;var y=s(3116);h.hsl=y.default;var x=s(3116);h.hsla=x.default;var E=s(2619);h.toKeyword=E.default;var A=s(4307);h.toHex=A.default;var I=s(4125);h.toRgba=I.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 K=s(6451);h.saturation=K.default;var ut=s(9235);h.lightness=ut.default;var tt=s(9353);h.alpha=tt.default;var Tt=s(9353);h.opacity=Tt.default;var ht=s(3042);h.contrast=ht.default;var dt=s(8346);h.luminance=dt.default;var _t=s(4117);h.isDark=_t.default;var J=s(2224);h.isLight=J.default;var bt=s(585);h.isValid=bt.default;var Pt=s(1080);h.saturate=Pt.default;var kt=s(9610);h.desaturate=kt.default;var Ot=s(3235);h.lighten=Ot.default;var st=s(1364);h.darken=st.default;var ae=s(7189);h.opacify=ae.default;var Yt=s(7189);h.fadeIn=Yt.default;var _e=s(4989);h.transparentize=_e.default;var pe=s(4989);h.fadeOut=pe.default;var de=s(7361);h.complement=de.default;var Bt=s(572);h.grayscale=Bt.default;var zt=s(5371);h.adjust=zt.default;var ce=s(418);h.change=ce.default;var he=s(566);h.invert=he.default;var ge=s(1861);h.mix=ge.default;var It=s(7081);h.scale=It.default},566:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2191),l=s(1861);h.default=function(_,y){y===void 0&&(y=100);var x=f.default.parse(_);return x.r=255-x.r,x.g=255-x.g,x.b=255-x.b,l.default(x,_,y)}},4117:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2224);h.default=function(l){return!f.default(l)}},2224:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(8346);h.default=function(l){return f.default(l)>=.5}},585:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2191);h.default=function(l){try{return f.default.parse(l),!0}catch{return!1}}},3235:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1416);h.default=function(l,_){return f.default(l,"l",_)}},9235:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(6197);h.default=function(l){return f.default(l,"l")}},8346:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(2191);h.default=function(_){var y=l.default.parse(_),x=y.r,E=y.g,A=y.b,I=.2126*f.default.channel.toLinear(x)+.7152*f.default.channel.toLinear(E)+.0722*f.default.channel.toLinear(A);return f.default.lang.round(I)}},1861:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2191),l=s(6538);h.default=function(_,y,x){x===void 0&&(x=50);var E=f.default.parse(_),A=E.r,I=E.g,N=E.b,P=E.a,W=f.default.parse(y),H=W.r,V=W.g,X=W.b,K=W.a,ut=x/100,tt=2*ut-1,Tt=P-K,ht=((tt*Tt==-1?tt:(tt+Tt)/(1+tt*Tt))+1)/2,dt=1-ht,_t=A*ht+H*dt,J=I*ht+V*dt,bt=N*ht+X*dt,Pt=P*ut+K*(1-ut);return l.default(_t,J,bt,Pt)}},7189:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1416);h.default=function(l,_){return f.default(l,"a",_)}},9640:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(6197);h.default=function(l){return f.default(l,"r")}},6538:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(8167),_=s(2191),y=s(418);h.default=function(x,E,A,I){if(A===void 0&&(A=0),I===void 0&&(I=1),typeof x!="number")return y.default(x,{a:E});var N=l.default.set({r:f.default.channel.clamp.r(x),g:f.default.channel.clamp.g(E),b:f.default.channel.clamp.b(A),a:f.default.channel.clamp.a(I)});return _.default.stringify(N)}},1080:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1416);h.default=function(l,_){return f.default(l,"s",_)}},6451:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(6197);h.default=function(l){return f.default(l,"s")}},7081:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1083),l=s(2191),_=s(5371);h.default=function(y,x){var E,A,I,N=l.default.parse(y),P={};for(var W in x)P[W]=(E=N[W],A=x[W],I=f.default.channel.max[W],A>0?(I-E)*A/100:E*A/100);return _.default(y,P)}},4307:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2191);h.default=function(l){return f.default.format.hex.stringify(f.default.parse(l))}},7329:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2191);h.default=function(l){return f.default.format.hsla.stringify(f.default.parse(l))}},2619:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2191);h.default=function(l){return f.default.format.keyword.stringify(f.default.parse(l))}},4125:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(2191);h.default=function(l){return f.default.format.rgba.stringify(f.default.parse(l))}},4989:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(1416);h.default=function(l,_){return f.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(f){return f>=255?255:f<0?0:f},g:function(f){return f>=255?255:f<0?0:f},b:function(f){return f>=255?255:f<0?0:f},h:function(f){return f%360},s:function(f){return f>=100?100:f<0?0:f},l:function(f){return f>=100?100:f<0?0:f},a:function(f){return f>=1?1:f<0?0:f}},toLinear:function(f){var l=f/255;return f>.03928?Math.pow((l+.055)/1.055,2.4):l/12.92},hue2rgb:function(f,l,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?f+6*(l-f)*_:_<.5?l:_<2/3?f+(l-f)*(2/3-_)*6:f},hsl2rgb:function(f,l){var _=f.h,y=f.s,x=f.l;if(!y)return 2.55*x;_/=360,y/=100;var E=(x/=100)<.5?x*(1+y):x+y-x*y,A=2*x-E;switch(l){case"r":return 255*s.hue2rgb(A,E,_+1/3);case"g":return 255*s.hue2rgb(A,E,_);case"b":return 255*s.hue2rgb(A,E,_-1/3)}},rgb2hsl:function(f,l){var _=f.r,y=f.g,x=f.b;_/=255,y/=255,x/=255;var E=Math.max(_,y,x),A=Math.min(_,y,x),I=(E+A)/2;if(l==="l")return 100*I;if(E===A)return 0;var N=E-A;if(l==="s")return 100*(I>.5?N/(2-E-A):N/(E+A));switch(E){case _:return 60*((y-x)/N+(y<x?6:0));case y:return 60*((x-_)/N+2);case x:return 60*((_-y)/N+4);default:return-1}}};h.default=s},1083:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var f=s(7994),l=s(4027),_=s(318),y={channel:f.default,lang:l.default,unit:_.default};h.default=y},4027:(a,h)=>{Object.defineProperty(h,"__esModule",{value:!0});var s={clamp:function(f,l,_){return l>_?Math.min(l,Math.max(_,f)):Math.min(_,Math.max(l,f))},round:function(f){return Math.round(1e10*f)/1e10}};h.default=s},318:(a,h)=>{Object.defineProperty(h,"__esModule",{value:!0});var s={dec2hex:function(f){var l=Math.round(f).toString(16);return l.length>1?l:"0"+l}};h.default=s},8552:(a,h,s)=>{var f=s(852)(s(5639),"DataView");a.exports=f},1989:(a,h,s)=>{var f=s(1789),l=s(401),_=s(7667),y=s(1327),x=s(1866);function E(A){var I=-1,N=A==null?0:A.length;for(this.clear();++I<N;){var P=A[I];this.set(P[0],P[1])}}E.prototype.clear=f,E.prototype.delete=l,E.prototype.get=_,E.prototype.has=y,E.prototype.set=x,a.exports=E},8407:(a,h,s)=>{var f=s(7040),l=s(2188),_=s(2117),y=s(7518),x=s(4705);function E(A){var I=-1,N=A==null?0:A.length;for(this.clear();++I<N;){var P=A[I];this.set(P[0],P[1])}}E.prototype.clear=f,E.prototype.delete=l,E.prototype.get=_,E.prototype.has=y,E.prototype.set=x,a.exports=E},7071:(a,h,s)=>{var f=s(852)(s(5639),"Map");a.exports=f},3369:(a,h,s)=>{var f=s(4785),l=s(1285),_=s(6e3),y=s(9916),x=s(5265);function E(A){var I=-1,N=A==null?0:A.length;for(this.clear();++I<N;){var P=A[I];this.set(P[0],P[1])}}E.prototype.clear=f,E.prototype.delete=l,E.prototype.get=_,E.prototype.has=y,E.prototype.set=x,a.exports=E},3818:(a,h,s)=>{var f=s(852)(s(5639),"Promise");a.exports=f},8525:(a,h,s)=>{var f=s(852)(s(5639),"Set");a.exports=f},8668:(a,h,s)=>{var f=s(3369),l=s(619),_=s(2385);function y(x){var E=-1,A=x==null?0:x.length;for(this.__data__=new f;++E<A;)this.add(x[E])}y.prototype.add=y.prototype.push=l,y.prototype.has=_,a.exports=y},6384:(a,h,s)=>{var f=s(8407),l=s(7465),_=s(3779),y=s(7599),x=s(4758),E=s(4309);function A(I){var N=this.__data__=new f(I);this.size=N.size}A.prototype.clear=l,A.prototype.delete=_,A.prototype.get=y,A.prototype.has=x,A.prototype.set=E,a.exports=A},2705:(a,h,s)=>{var f=s(5639).Symbol;a.exports=f},1149:(a,h,s)=>{var f=s(5639).Uint8Array;a.exports=f},577:(a,h,s)=>{var f=s(852)(s(5639),"WeakMap");a.exports=f},6874:a=>{a.exports=function(h,s,f){switch(f.length){case 0:return h.call(s);case 1:return h.call(s,f[0]);case 2:return h.call(s,f[0],f[1]);case 3:return h.call(s,f[0],f[1],f[2])}return h.apply(s,f)}},7412:a=>{a.exports=function(h,s){for(var f=-1,l=h==null?0:h.length;++f<l&&s(h[f],f,h)!==!1;);return h}},4963:a=>{a.exports=function(h,s){for(var f=-1,l=h==null?0:h.length,_=0,y=[];++f<l;){var x=h[f];s(x,f,h)&&(y[_++]=x)}return y}},7443:(a,h,s)=>{var f=s(2118);a.exports=function(l,_){return!(l==null||!l.length)&&f(l,_,0)>-1}},1196:a=>{a.exports=function(h,s,f){for(var l=-1,_=h==null?0:h.length;++l<_;)if(f(s,h[l]))return!0;return!1}},4636:(a,h,s)=>{var f=s(2545),l=s(5694),_=s(1469),y=s(4144),x=s(5776),E=s(6719),A=Object.prototype.hasOwnProperty;a.exports=function(I,N){var P=_(I),W=!P&&l(I),H=!P&&!W&&y(I),V=!P&&!W&&!H&&E(I),X=P||W||H||V,K=X?f(I.length,String):[],ut=K.length;for(var tt in I)!N&&!A.call(I,tt)||X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||V&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||x(tt,ut))||K.push(tt);return K}},9932:a=>{a.exports=function(h,s){for(var f=-1,l=h==null?0:h.length,_=Array(l);++f<l;)_[f]=s(h[f],f,h);return _}},2488:a=>{a.exports=function(h,s){for(var f=-1,l=s.length,_=h.length;++f<l;)h[_+f]=s[f];return h}},2663:a=>{a.exports=function(h,s,f,l){var _=-1,y=h==null?0:h.length;for(l&&y&&(f=h[++_]);++_<y;)f=s(f,h[_],_,h);return f}},2908:a=>{a.exports=function(h,s){for(var f=-1,l=h==null?0:h.length;++f<l;)if(s(h[f],f,h))return!0;return!1}},8983:(a,h,s)=>{var f=s(371)("length");a.exports=f},6556:(a,h,s)=>{var f=s(9465),l=s(7813);a.exports=function(_,y,x){(x!==void 0&&!l(_[y],x)||x===void 0&&!(y in _))&&f(_,y,x)}},4865:(a,h,s)=>{var f=s(9465),l=s(7813),_=Object.prototype.hasOwnProperty;a.exports=function(y,x,E){var A=y[x];_.call(y,x)&&l(A,E)&&(E!==void 0||x in y)||f(y,x,E)}},8470:(a,h,s)=>{var f=s(7813);a.exports=function(l,_){for(var y=l.length;y--;)if(f(l[y][0],_))return y;return-1}},4037:(a,h,s)=>{var f=s(8363),l=s(3674);a.exports=function(_,y){return _&&f(y,l(y),_)}},3886:(a,h,s)=>{var f=s(8363),l=s(1704);a.exports=function(_,y){return _&&f(y,l(y),_)}},9465:(a,h,s)=>{var f=s(8777);a.exports=function(l,_,y){_=="__proto__"&&f?f(l,_,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[_]=y}},5990:(a,h,s)=>{var f=s(6384),l=s(7412),_=s(4865),y=s(4037),x=s(3886),E=s(4626),A=s(278),I=s(8805),N=s(1911),P=s(8234),W=s(6904),H=s(4160),V=s(3824),X=s(9148),K=s(8517),ut=s(1469),tt=s(4144),Tt=s(6688),ht=s(3218),dt=s(2928),_t=s(3674),J=s(1704),bt="[object Arguments]",Pt="[object Function]",kt="[object Object]",Ot={};Ot[bt]=Ot["[object Array]"]=Ot["[object ArrayBuffer]"]=Ot["[object DataView]"]=Ot["[object Boolean]"]=Ot["[object Date]"]=Ot["[object Float32Array]"]=Ot["[object Float64Array]"]=Ot["[object Int8Array]"]=Ot["[object Int16Array]"]=Ot["[object Int32Array]"]=Ot["[object Map]"]=Ot["[object Number]"]=Ot[kt]=Ot["[object RegExp]"]=Ot["[object Set]"]=Ot["[object String]"]=Ot["[object Symbol]"]=Ot["[object Uint8Array]"]=Ot["[object Uint8ClampedArray]"]=Ot["[object Uint16Array]"]=Ot["[object Uint32Array]"]=!0,Ot["[object Error]"]=Ot[Pt]=Ot["[object WeakMap]"]=!1,a.exports=function st(ae,Yt,_e,pe,de,Bt){var zt,ce=1&Yt,he=2&Yt,ge=4&Yt;if(_e&&(zt=de?_e(ae,pe,de,Bt):_e(ae)),zt!==void 0)return zt;if(!ht(ae))return ae;var It=ut(ae);if(It){if(zt=V(ae),!ce)return A(ae,zt)}else{var We=H(ae),oe=We==Pt||We=="[object GeneratorFunction]";if(tt(ae))return E(ae,ce);if(We==kt||We==bt||oe&&!de){if(zt=he||oe?{}:K(ae),!ce)return he?N(ae,x(zt,ae)):I(ae,y(zt,ae))}else{if(!Ot[We])return de?ae:{};zt=X(ae,We,ce)}}Bt||(Bt=new f);var Wt=Bt.get(ae);if(Wt)return Wt;Bt.set(ae,zt),dt(ae)?ae.forEach(function(rt){zt.add(st(rt,Yt,_e,rt,ae,Bt))}):Tt(ae)&&ae.forEach(function(rt,re){zt.set(re,st(rt,Yt,_e,re,ae,Bt))});var Gt=It?void 0:(ge?he?W:P:he?J:_t)(ae);return l(Gt||ae,function(rt,re){Gt&&(rt=ae[re=rt]),_(zt,re,st(rt,Yt,_e,re,ae,Bt))}),zt}},3118:(a,h,s)=>{var f=s(3218),l=Object.create,_=function(){function y(){}return function(x){if(!f(x))return{};if(l)return l(x);y.prototype=x;var E=new y;return y.prototype=void 0,E}}();a.exports=_},9881:(a,h,s)=>{var f=s(7816),l=s(9291)(f);a.exports=l},6029:(a,h,s)=>{var f=s(3448);a.exports=function(l,_,y){for(var x=-1,E=l.length;++x<E;){var A=l[x],I=_(A);if(I!=null&&(N===void 0?I==I&&!f(I):y(I,N)))var N=I,P=A}return P}},760:(a,h,s)=>{var f=s(9881);a.exports=function(l,_){var y=[];return f(l,function(x,E,A){_(x,E,A)&&y.push(x)}),y}},1848:a=>{a.exports=function(h,s,f,l){for(var _=h.length,y=f+(l?1:-1);l?y--:++y<_;)if(s(h[y],y,h))return y;return-1}},1078:(a,h,s)=>{var f=s(2488),l=s(7285);a.exports=function _(y,x,E,A,I){var N=-1,P=y.length;for(E||(E=l),I||(I=[]);++N<P;){var W=y[N];x>0&&E(W)?x>1?_(W,x-1,E,A,I):f(I,W):A||(I[I.length]=W)}return I}},8483:(a,h,s)=>{var f=s(5063)();a.exports=f},7816:(a,h,s)=>{var f=s(8483),l=s(3674);a.exports=function(_,y){return _&&f(_,y,l)}},7786:(a,h,s)=>{var f=s(1811),l=s(327);a.exports=function(_,y){for(var x=0,E=(y=f(y,_)).length;_!=null&&x<E;)_=_[l(y[x++])];return x&&x==E?_:void 0}},8866:(a,h,s)=>{var f=s(2488),l=s(1469);a.exports=function(_,y,x){var E=y(_);return l(_)?E:f(E,x(_))}},4239:(a,h,s)=>{var f=s(2705),l=s(9607),_=s(2333),y=f?f.toStringTag:void 0;a.exports=function(x){return x==null?x===void 0?"[object Undefined]":"[object Null]":y&&y in Object(x)?l(x):_(x)}},3325:a=>{a.exports=function(h,s){return h>s}},8565:a=>{var h=Object.prototype.hasOwnProperty;a.exports=function(s,f){return s!=null&&h.call(s,f)}},13:a=>{a.exports=function(h,s){return h!=null&&s in Object(h)}},2118:(a,h,s)=>{var f=s(1848),l=s(2722),_=s(2351);a.exports=function(y,x,E){return x==x?_(y,x,E):f(y,l,E)}},9454:(a,h,s)=>{var f=s(4239),l=s(7005);a.exports=function(_){return l(_)&&f(_)=="[object Arguments]"}},939:(a,h,s)=>{var f=s(2492),l=s(7005);a.exports=function _(y,x,E,A,I){return y===x||(y==null||x==null||!l(y)&&!l(x)?y!=y&&x!=x:f(y,x,E,A,_,I))}},2492:(a,h,s)=>{var f=s(6384),l=s(7114),_=s(8351),y=s(6096),x=s(4160),E=s(1469),A=s(4144),I=s(6719),N="[object Arguments]",P="[object Array]",W="[object Object]",H=Object.prototype.hasOwnProperty;a.exports=function(V,X,K,ut,tt,Tt){var ht=E(V),dt=E(X),_t=ht?P:x(V),J=dt?P:x(X),bt=(_t=_t==N?W:_t)==W,Pt=(J=J==N?W:J)==W,kt=_t==J;if(kt&&A(V)){if(!A(X))return!1;ht=!0,bt=!1}if(kt&&!bt)return Tt||(Tt=new f),ht||I(V)?l(V,X,K,ut,tt,Tt):_(V,X,_t,K,ut,tt,Tt);if(!(1&K)){var Ot=bt&&H.call(V,"__wrapped__"),st=Pt&&H.call(X,"__wrapped__");if(Ot||st){var ae=Ot?V.value():V,Yt=st?X.value():X;return Tt||(Tt=new f),tt(ae,Yt,K,ut,Tt)}}return!!kt&&(Tt||(Tt=new f),y(V,X,K,ut,tt,Tt))}},5588:(a,h,s)=>{var f=s(4160),l=s(7005);a.exports=function(_){return l(_)&&f(_)=="[object Map]"}},2958:(a,h,s)=>{var f=s(6384),l=s(939);a.exports=function(_,y,x,E){var A=x.length,I=A,N=!E;if(_==null)return!I;for(_=Object(_);A--;){var P=x[A];if(N&&P[2]?P[1]!==_[P[0]]:!(P[0]in _))return!1}for(;++A<I;){var W=(P=x[A])[0],H=_[W],V=P[1];if(N&&P[2]){if(H===void 0&&!(W in _))return!1}else{var X=new f;if(E)var K=E(H,V,W,_,y,X);if(!(K===void 0?l(V,H,3,E,X):K))return!1}}return!0}},2722:a=>{a.exports=function(h){return h!=h}},8458:(a,h,s)=>{var f=s(3560),l=s(5346),_=s(3218),y=s(346),x=/^\[object .+?Constructor\]$/,E=Function.prototype,A=Object.prototype,I=E.toString,N=A.hasOwnProperty,P=RegExp("^"+I.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a.exports=function(W){return!(!_(W)||l(W))&&(f(W)?P:x).test(y(W))}},9221:(a,h,s)=>{var f=s(4160),l=s(7005);a.exports=function(_){return l(_)&&f(_)=="[object Set]"}},8749:(a,h,s)=>{var f=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(x){return _(x)&&l(x.length)&&!!y[f(x)]}},7206:(a,h,s)=>{var f=s(1573),l=s(6432),_=s(6557),y=s(1469),x=s(9601);a.exports=function(E){return typeof E=="function"?E:E==null?_:typeof E=="object"?y(E)?l(E[0],E[1]):f(E):x(E)}},280:(a,h,s)=>{var f=s(5726),l=s(6916),_=Object.prototype.hasOwnProperty;a.exports=function(y){if(!f(y))return l(y);var x=[];for(var E in Object(y))_.call(y,E)&&E!="constructor"&&x.push(E);return x}},313:(a,h,s)=>{var f=s(3218),l=s(5726),_=s(3498),y=Object.prototype.hasOwnProperty;a.exports=function(x){if(!f(x))return _(x);var E=l(x),A=[];for(var I in x)(I!="constructor"||!E&&y.call(x,I))&&A.push(I);return A}},433:a=>{a.exports=function(h,s){return h<s}},9199:(a,h,s)=>{var f=s(9881),l=s(8612);a.exports=function(_,y){var x=-1,E=l(_)?Array(_.length):[];return f(_,function(A,I,N){E[++x]=y(A,I,N)}),E}},1573:(a,h,s)=>{var f=s(2958),l=s(1499),_=s(2634);a.exports=function(y){var x=l(y);return x.length==1&&x[0][2]?_(x[0][0],x[0][1]):function(E){return E===y||f(E,y,x)}}},6432:(a,h,s)=>{var f=s(939),l=s(1917),_=s(9095),y=s(5403),x=s(9162),E=s(2634),A=s(327);a.exports=function(I,N){return y(I)&&x(N)?E(A(I),N):function(P){var W=l(P,I);return W===void 0&&W===N?_(P,I):f(N,W,3)}}},2980:(a,h,s)=>{var f=s(6384),l=s(6556),_=s(8483),y=s(9783),x=s(3218),E=s(1704),A=s(6390);a.exports=function I(N,P,W,H,V){N!==P&&_(P,function(X,K){if(V||(V=new f),x(X))y(N,P,K,W,I,H,V);else{var ut=H?H(A(N,K),X,K+"",N,P,V):void 0;ut===void 0&&(ut=X),l(N,K,ut)}},E)}},9783:(a,h,s)=>{var f=s(6556),l=s(4626),_=s(7133),y=s(278),x=s(8517),E=s(5694),A=s(1469),I=s(9246),N=s(4144),P=s(3560),W=s(3218),H=s(8630),V=s(6719),X=s(6390),K=s(3678);a.exports=function(ut,tt,Tt,ht,dt,_t,J){var bt=X(ut,Tt),Pt=X(tt,Tt),kt=J.get(Pt);if(kt)f(ut,Tt,kt);else{var Ot=_t?_t(bt,Pt,Tt+"",ut,tt,J):void 0,st=Ot===void 0;if(st){var ae=A(Pt),Yt=!ae&&N(Pt),_e=!ae&&!Yt&&V(Pt);Ot=Pt,ae||Yt||_e?A(bt)?Ot=bt:I(bt)?Ot=y(bt):Yt?(st=!1,Ot=l(Pt,!0)):_e?(st=!1,Ot=_(Pt,!0)):Ot=[]:H(Pt)||E(Pt)?(Ot=bt,E(bt)?Ot=K(bt):W(bt)&&!P(bt)||(Ot=x(Pt))):st=!1}st&&(J.set(Pt,Ot),dt(Ot,Pt,ht,_t,J),J.delete(Pt)),f(ut,Tt,Ot)}}},9556:(a,h,s)=>{var f=s(9932),l=s(7786),_=s(7206),y=s(9199),x=s(1131),E=s(1717),A=s(5022),I=s(6557),N=s(1469);a.exports=function(P,W,H){W=W.length?f(W,function(K){return N(K)?function(ut){return l(ut,K.length===1?K[0]:K)}:K}):[I];var V=-1;W=f(W,E(_));var X=y(P,function(K,ut,tt){return{criteria:f(W,function(Tt){return Tt(K)}),index:++V,value:K}});return x(X,function(K,ut){return A(K,ut,H)})}},5970:(a,h,s)=>{var f=s(3012),l=s(9095);a.exports=function(_,y){return f(_,y,function(x,E){return l(_,E)})}},3012:(a,h,s)=>{var f=s(7786),l=s(611),_=s(1811);a.exports=function(y,x,E){for(var A=-1,I=x.length,N={};++A<I;){var P=x[A],W=f(y,P);E(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 f=s(7786);a.exports=function(l){return function(_){return f(_,l)}}},98:a=>{var h=Math.ceil,s=Math.max;a.exports=function(f,l,_,y){for(var x=-1,E=s(h((l-f)/(_||1)),0),A=Array(E);E--;)A[y?E:++x]=f,f+=_;return A}},107:a=>{a.exports=function(h,s,f,l,_){return _(h,function(y,x,E){f=l?(l=!1,y):s(f,y,x,E)}),f}},5976:(a,h,s)=>{var f=s(6557),l=s(5357),_=s(61);a.exports=function(y,x){return _(l(y,x,f),y+"")}},611:(a,h,s)=>{var f=s(4865),l=s(1811),_=s(5776),y=s(3218),x=s(327);a.exports=function(E,A,I,N){if(!y(E))return E;for(var P=-1,W=(A=l(A,E)).length,H=W-1,V=E;V!=null&&++P<W;){var X=x(A[P]),K=I;if(X==="__proto__"||X==="constructor"||X==="prototype")return E;if(P!=H){var ut=V[X];(K=N?N(ut,X,V):void 0)===void 0&&(K=y(ut)?ut:_(A[P+1])?[]:{})}f(V,X,K),V=V[X]}return E}},6560:(a,h,s)=>{var f=s(5703),l=s(8777),_=s(6557),y=l?function(x,E){return l(x,"toString",{configurable:!0,enumerable:!1,value:f(E),writable:!0})}:_;a.exports=y},1131:a=>{a.exports=function(h,s){var f=h.length;for(h.sort(s);f--;)h[f]=h[f].value;return h}},2545:a=>{a.exports=function(h,s){for(var f=-1,l=Array(h);++f<h;)l[f]=s(f);return l}},531:(a,h,s)=>{var f=s(2705),l=s(9932),_=s(1469),y=s(3448),x=f?f.prototype:void 0,E=x?x.toString:void 0;a.exports=function A(I){if(typeof I=="string")return I;if(_(I))return l(I,A)+"";if(y(I))return E?E.call(I):"";var N=I+"";return N=="0"&&1/I==-1/0?"-0":N}},7561:(a,h,s)=>{var f=s(7990),l=/^\s+/;a.exports=function(_){return _&&_.slice(0,f(_)+1).replace(l,"")}},1717:a=>{a.exports=function(h){return function(s){return h(s)}}},5652:(a,h,s)=>{var f=s(8668),l=s(7443),_=s(1196),y=s(4757),x=s(3593),E=s(1814);a.exports=function(A,I,N){var P=-1,W=l,H=A.length,V=!0,X=[],K=X;if(N)V=!1,W=_;else if(H>=200){var ut=I?null:x(A);if(ut)return E(ut);V=!1,W=y,K=new f}else K=I?[]:X;t:for(;++P<H;){var tt=A[P],Tt=I?I(tt):tt;if(tt=N||tt!==0?tt:0,V&&Tt==Tt){for(var ht=K.length;ht--;)if(K[ht]===Tt)continue t;I&&K.push(Tt),X.push(tt)}else W(K,Tt,N)||(K!==X&&K.push(Tt),X.push(tt))}return X}},7415:(a,h,s)=>{var f=s(9932);a.exports=function(l,_){return f(_,function(y){return l[y]})}},1757:a=>{a.exports=function(h,s,f){for(var l=-1,_=h.length,y=s.length,x={};++l<_;){var E=l<y?s[l]:void 0;f(x,h[l],E)}return x}},4757:a=>{a.exports=function(h,s){return h.has(s)}},4290:(a,h,s)=>{var f=s(6557);a.exports=function(l){return typeof l=="function"?l:f}},1811:(a,h,s)=>{var f=s(1469),l=s(5403),_=s(5514),y=s(9833);a.exports=function(x,E){return f(x)?x:l(x,E)?[x]:_(y(x))}},4318:(a,h,s)=>{var f=s(1149);a.exports=function(l){var _=new l.constructor(l.byteLength);return new f(_).set(new f(l)),_}},4626:(a,h,s)=>{a=s.nmd(a);var f=s(5639),l=h&&!h.nodeType&&h,_=l&&a&&!a.nodeType&&a,y=_&&_.exports===l?f.Buffer:void 0,x=y?y.allocUnsafe:void 0;a.exports=function(E,A){if(A)return E.slice();var I=E.length,N=x?x(I):new E.constructor(I);return E.copy(N),N}},7157:(a,h,s)=>{var f=s(4318);a.exports=function(l,_){var y=_?f(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}},3147:a=>{var h=/\w*$/;a.exports=function(s){var f=new s.constructor(s.source,h.exec(s));return f.lastIndex=s.lastIndex,f}},419:(a,h,s)=>{var f=s(2705),l=f?f.prototype:void 0,_=l?l.valueOf:void 0;a.exports=function(y){return _?Object(_.call(y)):{}}},7133:(a,h,s)=>{var f=s(4318);a.exports=function(l,_){var y=_?f(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}},6393:(a,h,s)=>{var f=s(3448);a.exports=function(l,_){if(l!==_){var y=l!==void 0,x=l===null,E=l==l,A=f(l),I=_!==void 0,N=_===null,P=_==_,W=f(_);if(!N&&!W&&!A&&l>_||A&&I&&P&&!N&&!W||x&&I&&P||!y&&P||!E)return 1;if(!x&&!A&&!W&&l<_||W&&y&&E&&!x&&!A||N&&y&&E||!I&&E||!P)return-1}return 0}},5022:(a,h,s)=>{var f=s(6393);a.exports=function(l,_,y){for(var x=-1,E=l.criteria,A=_.criteria,I=E.length,N=y.length;++x<I;){var P=f(E[x],A[x]);if(P)return x>=N?P:P*(y[x]=="desc"?-1:1)}return l.index-_.index}},278:a=>{a.exports=function(h,s){var f=-1,l=h.length;for(s||(s=Array(l));++f<l;)s[f]=h[f];return s}},8363:(a,h,s)=>{var f=s(4865),l=s(9465);a.exports=function(_,y,x,E){var A=!x;x||(x={});for(var I=-1,N=y.length;++I<N;){var P=y[I],W=E?E(x[P],_[P],P,x,_):void 0;W===void 0&&(W=_[P]),A?l(x,P,W):f(x,P,W)}return x}},8805:(a,h,s)=>{var f=s(8363),l=s(9551);a.exports=function(_,y){return f(_,l(_),y)}},1911:(a,h,s)=>{var f=s(8363),l=s(1442);a.exports=function(_,y){return f(_,l(_),y)}},4429:(a,h,s)=>{var f=s(5639)["__core-js_shared__"];a.exports=f},1750:(a,h,s)=>{var f=s(5976),l=s(6612);a.exports=function(_){return f(function(y,x){var E=-1,A=x.length,I=A>1?x[A-1]:void 0,N=A>2?x[2]:void 0;for(I=_.length>3&&typeof I=="function"?(A--,I):void 0,N&&l(x[0],x[1],N)&&(I=A<3?void 0:I,A=1),y=Object(y);++E<A;){var P=x[E];P&&_(y,P,E,I)}return y})}},9291:(a,h,s)=>{var f=s(8612);a.exports=function(l,_){return function(y,x){if(y==null)return y;if(!f(y))return l(y,x);for(var E=y.length,A=_?E:-1,I=Object(y);(_?A--:++A<E)&&x(I[A],A,I)!==!1;);return y}}},5063:a=>{a.exports=function(h){return function(s,f,l){for(var _=-1,y=Object(s),x=l(s),E=x.length;E--;){var A=x[h?E:++_];if(f(y[A],A,y)===!1)break}return s}}},7740:(a,h,s)=>{var f=s(7206),l=s(8612),_=s(3674);a.exports=function(y){return function(x,E,A){var I=Object(x);if(!l(x)){var N=f(E,3);x=_(x),E=function(W){return N(I[W],W,I)}}var P=y(x,E,A);return P>-1?I[N?x[P]:P]:void 0}}},7445:(a,h,s)=>{var f=s(98),l=s(6612),_=s(8601);a.exports=function(y){return function(x,E,A){return A&&typeof A!="number"&&l(x,E,A)&&(E=A=void 0),x=_(x),E===void 0?(E=x,x=0):E=_(E),A=A===void 0?x<E?1:-1:_(A),f(x,E,A,y)}}},3593:(a,h,s)=>{var f=s(8525),l=s(308),_=s(1814),y=f&&1/_(new f([,-0]))[1]==1/0?function(x){return new f(x)}:l;a.exports=y},8777:(a,h,s)=>{var f=s(852),l=function(){try{var _=f(Object,"defineProperty");return _({},"",{}),_}catch{}}();a.exports=l},7114:(a,h,s)=>{var f=s(8668),l=s(2908),_=s(4757);a.exports=function(y,x,E,A,I,N){var P=1&E,W=y.length,H=x.length;if(W!=H&&!(P&&H>W))return!1;var V=N.get(y),X=N.get(x);if(V&&X)return V==x&&X==y;var K=-1,ut=!0,tt=2&E?new f:void 0;for(N.set(y,x),N.set(x,y);++K<W;){var Tt=y[K],ht=x[K];if(A)var dt=P?A(ht,Tt,K,x,y,N):A(Tt,ht,K,y,x,N);if(dt!==void 0){if(dt)continue;ut=!1;break}if(tt){if(!l(x,function(_t,J){if(!_(tt,J)&&(Tt===_t||I(Tt,_t,E,A,N)))return tt.push(J)})){ut=!1;break}}else if(Tt!==ht&&!I(Tt,ht,E,A,N)){ut=!1;break}}return N.delete(y),N.delete(x),ut}},8351:(a,h,s)=>{var f=s(2705),l=s(1149),_=s(7813),y=s(7114),x=s(8776),E=s(1814),A=f?f.prototype:void 0,I=A?A.valueOf:void 0;a.exports=function(N,P,W,H,V,X,K){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 ut=x;case"[object Set]":var tt=1&H;if(ut||(ut=E),N.size!=P.size&&!tt)return!1;var Tt=K.get(N);if(Tt)return Tt==P;H|=2,K.set(N,P);var ht=y(ut(N),ut(P),H,V,X,K);return K.delete(N),ht;case"[object Symbol]":if(I)return I.call(N)==I.call(P)}return!1}},6096:(a,h,s)=>{var f=s(8234),l=Object.prototype.hasOwnProperty;a.exports=function(_,y,x,E,A,I){var N=1&x,P=f(_),W=P.length;if(W!=f(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=I.get(_),K=I.get(y);if(X&&K)return X==y&&K==_;var ut=!0;I.set(_,y),I.set(y,_);for(var tt=N;++H<W;){var Tt=_[V=P[H]],ht=y[V];if(E)var dt=N?E(ht,Tt,V,y,_,I):E(Tt,ht,V,_,y,I);if(!(dt===void 0?Tt===ht||A(Tt,ht,x,E,I):dt)){ut=!1;break}tt||(tt=V=="constructor")}if(ut&&!tt){var _t=_.constructor,J=y.constructor;_t==J||!("constructor"in _)||!("constructor"in y)||typeof _t=="function"&&_t instanceof _t&&typeof J=="function"&&J instanceof J||(ut=!1)}return I.delete(_),I.delete(y),ut}},9021:(a,h,s)=>{var f=s(5564),l=s(5357),_=s(61);a.exports=function(y){return _(l(y,void 0,f),y+"")}},1957:(a,h,s)=>{var f=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g;a.exports=f},8234:(a,h,s)=>{var f=s(8866),l=s(9551),_=s(3674);a.exports=function(y){return f(y,_,l)}},6904:(a,h,s)=>{var f=s(8866),l=s(1442),_=s(1704);a.exports=function(y){return f(y,_,l)}},5050:(a,h,s)=>{var f=s(7019);a.exports=function(l,_){var y=l.__data__;return f(_)?y[typeof _=="string"?"string":"hash"]:y.map}},1499:(a,h,s)=>{var f=s(9162),l=s(3674);a.exports=function(_){for(var y=l(_),x=y.length;x--;){var E=y[x],A=_[E];y[x]=[E,A,f(A)]}return y}},852:(a,h,s)=>{var f=s(8458),l=s(7801);a.exports=function(_,y){var x=l(_,y);return f(x)?x:void 0}},5924:(a,h,s)=>{var f=s(5569)(Object.getPrototypeOf,Object);a.exports=f},9607:(a,h,s)=>{var f=s(2705),l=Object.prototype,_=l.hasOwnProperty,y=l.toString,x=f?f.toStringTag:void 0;a.exports=function(E){var A=_.call(E,x),I=E[x];try{E[x]=void 0;var N=!0}catch{}var P=y.call(E);return N&&(A?E[x]=I:delete E[x]),P}},9551:(a,h,s)=>{var f=s(4963),l=s(479),_=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,x=y?function(E){return E==null?[]:(E=Object(E),f(y(E),function(A){return _.call(E,A)}))}:l;a.exports=x},1442:(a,h,s)=>{var f=s(2488),l=s(5924),_=s(9551),y=s(479),x=Object.getOwnPropertySymbols?function(E){for(var A=[];E;)f(A,_(E)),E=l(E);return A}:y;a.exports=x},4160:(a,h,s)=>{var f=s(8552),l=s(7071),_=s(3818),y=s(8525),x=s(577),E=s(4239),A=s(346),I="[object Map]",N="[object Promise]",P="[object Set]",W="[object WeakMap]",H="[object DataView]",V=A(f),X=A(l),K=A(_),ut=A(y),tt=A(x),Tt=E;(f&&Tt(new f(new ArrayBuffer(1)))!=H||l&&Tt(new l)!=I||_&&Tt(_.resolve())!=N||y&&Tt(new y)!=P||x&&Tt(new x)!=W)&&(Tt=function(ht){var dt=E(ht),_t=dt=="[object Object]"?ht.constructor:void 0,J=_t?A(_t):"";if(J)switch(J){case V:return H;case X:return I;case K:return N;case ut:return P;case tt:return W}return dt}),a.exports=Tt},7801:a=>{a.exports=function(h,s){return h==null?void 0:h[s]}},222:(a,h,s)=>{var f=s(1811),l=s(5694),_=s(1469),y=s(5776),x=s(1780),E=s(327);a.exports=function(A,I,N){for(var P=-1,W=(I=f(I,A)).length,H=!1;++P<W;){var V=E(I[P]);if(!(H=A!=null&&N(A,V)))break;A=A[V]}return H||++P!=W?H:!!(W=A==null?0:A.length)&&x(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 f=s(4536);a.exports=function(){this.__data__=f?f(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 f=s(4536),l=Object.prototype.hasOwnProperty;a.exports=function(_){var y=this.__data__;if(f){var x=y[_];return x==="__lodash_hash_undefined__"?void 0:x}return l.call(y,_)?y[_]:void 0}},1327:(a,h,s)=>{var f=s(4536),l=Object.prototype.hasOwnProperty;a.exports=function(_){var y=this.__data__;return f?y[_]!==void 0:l.call(y,_)}},1866:(a,h,s)=>{var f=s(4536);a.exports=function(l,_){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=f&&_===void 0?"__lodash_hash_undefined__":_,this}},3824:a=>{var h=Object.prototype.hasOwnProperty;a.exports=function(s){var f=s.length,l=new s.constructor(f);return f&&typeof s[0]=="string"&&h.call(s,"index")&&(l.index=s.index,l.input=s.input),l}},9148:(a,h,s)=>{var f=s(4318),l=s(7157),_=s(3147),y=s(419),x=s(7133);a.exports=function(E,A,I){var N=E.constructor;switch(A){case"[object ArrayBuffer]":return f(E);case"[object Boolean]":case"[object Date]":return new N(+E);case"[object DataView]":return l(E,I);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 x(E,I);case"[object Map]":case"[object Set]":return new N;case"[object Number]":case"[object String]":return new N(E);case"[object RegExp]":return _(E);case"[object Symbol]":return y(E)}}},8517:(a,h,s)=>{var f=s(3118),l=s(5924),_=s(5726);a.exports=function(y){return typeof y.constructor!="function"||_(y)?{}:f(l(y))}},7285:(a,h,s)=>{var f=s(2705),l=s(5694),_=s(1469),y=f?f.isConcatSpreadable:void 0;a.exports=function(x){return _(x)||l(x)||!!(y&&x&&x[y])}},5776:a=>{var h=/^(?:0|[1-9]\d*)$/;a.exports=function(s,f){var l=typeof s;return!!(f=f==null?9007199254740991:f)&&(l=="number"||l!="symbol"&&h.test(s))&&s>-1&&s%1==0&&s<f}},6612:(a,h,s)=>{var f=s(7813),l=s(8612),_=s(5776),y=s(3218);a.exports=function(x,E,A){if(!y(A))return!1;var I=typeof E;return!!(I=="number"?l(A)&&_(E,A.length):I=="string"&&E in A)&&f(A[E],x)}},5403:(a,h,s)=>{var f=s(1469),l=s(3448),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/;a.exports=function(x,E){if(f(x))return!1;var A=typeof x;return!(A!="number"&&A!="symbol"&&A!="boolean"&&x!=null&&!l(x))||y.test(x)||!_.test(x)||E!=null&&x in Object(E)}},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 f,l=s(4429),_=(f=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"";a.exports=function(y){return!!_&&_ in y}},5726:a=>{var h=Object.prototype;a.exports=function(s){var f=s&&s.constructor;return s===(typeof f=="function"&&f.prototype||h)}},9162:(a,h,s)=>{var f=s(3218);a.exports=function(l){return l==l&&!f(l)}},7040:a=>{a.exports=function(){this.__data__=[],this.size=0}},2188:(a,h,s)=>{var f=s(8470),l=Array.prototype.splice;a.exports=function(_){var y=this.__data__,x=f(y,_);return!(x<0||(x==y.length-1?y.pop():l.call(y,x,1),--this.size,0))}},2117:(a,h,s)=>{var f=s(8470);a.exports=function(l){var _=this.__data__,y=f(_,l);return y<0?void 0:_[y][1]}},7518:(a,h,s)=>{var f=s(8470);a.exports=function(l){return f(this.__data__,l)>-1}},4705:(a,h,s)=>{var f=s(8470);a.exports=function(l,_){var y=this.__data__,x=f(y,l);return x<0?(++this.size,y.push([l,_])):y[x][1]=_,this}},4785:(a,h,s)=>{var f=s(1989),l=s(8407),_=s(7071);a.exports=function(){this.size=0,this.__data__={hash:new f,map:new(_||l),string:new f}}},1285:(a,h,s)=>{var f=s(5050);a.exports=function(l){var _=f(this,l).delete(l);return this.size-=_?1:0,_}},6e3:(a,h,s)=>{var f=s(5050);a.exports=function(l){return f(this,l).get(l)}},9916:(a,h,s)=>{var f=s(5050);a.exports=function(l){return f(this,l).has(l)}},5265:(a,h,s)=>{var f=s(5050);a.exports=function(l,_){var y=f(this,l),x=y.size;return y.set(l,_),this.size+=y.size==x?0:1,this}},8776:a=>{a.exports=function(h){var s=-1,f=Array(h.size);return h.forEach(function(l,_){f[++s]=[_,l]}),f}},2634:a=>{a.exports=function(h,s){return function(f){return f!=null&&f[h]===s&&(s!==void 0||h in Object(f))}}},4523:(a,h,s)=>{var f=s(8306);a.exports=function(l){var _=f(l,function(x){return y.size===500&&y.clear(),x}),y=_.cache;return _}},4536:(a,h,s)=>{var f=s(852)(Object,"create");a.exports=f},6916:(a,h,s)=>{var f=s(5569)(Object.keys,Object);a.exports=f},3498:a=>{a.exports=function(h){var s=[];if(h!=null)for(var f in Object(h))s.push(f);return s}},1167:(a,h,s)=>{a=s.nmd(a);var f=s(1957),l=h&&!h.nodeType&&h,_=l&&a&&!a.nodeType&&a,y=_&&_.exports===l&&f.process,x=function(){try{return _&&_.require&&_.require("util").types||y&&y.binding&&y.binding("util")}catch{}}();a.exports=x},2333:a=>{var h=Object.prototype.toString;a.exports=function(s){return h.call(s)}},5569:a=>{a.exports=function(h,s){return function(f){return h(s(f))}}},5357:(a,h,s)=>{var f=s(6874),l=Math.max;a.exports=function(_,y,x){return y=l(y===void 0?_.length-1:y,0),function(){for(var E=arguments,A=-1,I=l(E.length-y,0),N=Array(I);++A<I;)N[A]=E[y+A];A=-1;for(var P=Array(y+1);++A<y;)P[A]=E[A];return P[y]=x(N),f(_,this,P)}}},5639:(a,h,s)=>{var f=s(1957),l=typeof self=="object"&&self&&self.Object===Object&&self,_=f||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,f=Array(h.size);return h.forEach(function(l){f[++s]=l}),f}},61:(a,h,s)=>{var f=s(6560),l=s(1275)(f);a.exports=l},1275:a=>{var h=Date.now;a.exports=function(s){var f=0,l=0;return function(){var _=h(),y=16-(_-l);if(l=_,y>0){if(++f>=800)return arguments[0]}else f=0;return s.apply(void 0,arguments)}}},7465:(a,h,s)=>{var f=s(8407);a.exports=function(){this.__data__=new f,this.size=0}},3779:a=>{a.exports=function(h){var s=this.__data__,f=s.delete(h);return this.size=s.size,f}},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 f=s(8407),l=s(7071),_=s(3369);a.exports=function(y,x){var E=this.__data__;if(E instanceof f){var A=E.__data__;if(!l||A.length<199)return A.push([y,x]),this.size=++E.size,this;E=this.__data__=new _(A)}return E.set(y,x),this.size=E.size,this}},2351:a=>{a.exports=function(h,s,f){for(var l=f-1,_=h.length;++l<_;)if(h[l]===s)return l;return-1}},8016:(a,h,s)=>{var f=s(8983),l=s(2689),_=s(1903);a.exports=function(y){return l(y)?_(y):f(y)}},5514:(a,h,s)=>{var f=s(4523),l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,y=f(function(x){var E=[];return x.charCodeAt(0)===46&&E.push(""),x.replace(l,function(A,I,N,P){E.push(N?P.replace(_,"$1"):I||A)}),E});a.exports=y},327:(a,h,s)=>{var f=s(3448);a.exports=function(l){if(typeof l=="string"||f(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{}try{return s+""}catch{}}return""}},7990:a=>{var h=/\s/;a.exports=function(s){for(var f=s.length;f--&&h.test(s.charAt(f)););return f}},1903:a=>{var h="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\\ud83c[\\udffb-\\udfff]",f="[^\\ud800-\\udfff]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",y="(?:"+h+"|"+s+")?",x="[\\ufe0e\\ufe0f]?",E=x+y+"(?:\\u200d(?:"+[f,l,_].join("|")+")"+x+y+")*",A="(?:"+[f+h+"?",h,l,_,"[\\ud800-\\udfff]"].join("|")+")",I=RegExp(s+"(?="+s+")|"+A+E,"g");a.exports=function(N){for(var P=I.lastIndex=0;I.test(N);)++P;return P}},6678:(a,h,s)=>{var f=s(5990);a.exports=function(l){return f(l,4)}},361:(a,h,s)=>{var f=s(5990);a.exports=function(l){return f(l,5)}},5703:a=>{a.exports=function(h){return function(){return h}}},1747:(a,h,s)=>{var f=s(5976),l=s(7813),_=s(6612),y=s(1704),x=Object.prototype,E=x.hasOwnProperty,A=f(function(I,N){I=Object(I);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),K=-1,ut=X.length;++K<ut;){var tt=X[K],Tt=I[tt];(Tt===void 0||l(Tt,x[tt])&&!E.call(I,tt))&&(I[tt]=V[tt])}return I});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 f=s(4963),l=s(760),_=s(7206),y=s(1469);a.exports=function(x,E){return(y(x)?f:l)(x,_(E,3))}},3311:(a,h,s)=>{var f=s(7740)(s(998));a.exports=f},998:(a,h,s)=>{var f=s(1848),l=s(7206),_=s(554),y=Math.max;a.exports=function(x,E,A){var I=x==null?0:x.length;if(!I)return-1;var N=A==null?0:_(A);return N<0&&(N=y(I+N,0)),f(x,l(E,3),N)}},5564:(a,h,s)=>{var f=s(1078);a.exports=function(l){return l!=null&&l.length?f(l,1):[]}},4486:(a,h,s)=>{var f=s(7412),l=s(9881),_=s(4290),y=s(1469);a.exports=function(x,E){return(y(x)?f:l)(x,_(E))}},2620:(a,h,s)=>{var f=s(8483),l=s(4290),_=s(1704);a.exports=function(y,x){return y==null?y:f(y,l(x),_)}},1917:(a,h,s)=>{var f=s(7786);a.exports=function(l,_,y){var x=l==null?void 0:f(l,_);return x===void 0?y:x}},8721:(a,h,s)=>{var f=s(8565),l=s(222);a.exports=function(_,y){return _!=null&&l(_,y,f)}},9095:(a,h,s)=>{var f=s(13),l=s(222);a.exports=function(_,y){return _!=null&&l(_,y,f)}},6557:a=>{a.exports=function(h){return h}},5694:(a,h,s)=>{var f=s(9454),l=s(7005),_=Object.prototype,y=_.hasOwnProperty,x=_.propertyIsEnumerable,E=f(function(){return arguments}())?f:function(A){return l(A)&&y.call(A,"callee")&&!x.call(A,"callee")};a.exports=E},1469:a=>{var h=Array.isArray;a.exports=h},8612:(a,h,s)=>{var f=s(3560),l=s(1780);a.exports=function(_){return _!=null&&l(_.length)&&!f(_)}},9246:(a,h,s)=>{var f=s(8612),l=s(7005);a.exports=function(_){return l(_)&&f(_)}},4144:(a,h,s)=>{a=s.nmd(a);var f=s(5639),l=s(5062),_=h&&!h.nodeType&&h,y=_&&a&&!a.nodeType&&a,x=y&&y.exports===_?f.Buffer:void 0,E=(x?x.isBuffer:void 0)||l;a.exports=E},1609:(a,h,s)=>{var f=s(280),l=s(4160),_=s(5694),y=s(1469),x=s(8612),E=s(4144),A=s(5726),I=s(6719),N=Object.prototype.hasOwnProperty;a.exports=function(P){if(P==null)return!0;if(x(P)&&(y(P)||typeof P=="string"||typeof P.splice=="function"||E(P)||I(P)||_(P)))return!P.length;var W=l(P);if(W=="[object Map]"||W=="[object Set]")return!P.size;if(A(P))return!f(P).length;for(var H in P)if(N.call(P,H))return!1;return!0}},3560:(a,h,s)=>{var f=s(4239),l=s(3218);a.exports=function(_){if(!l(_))return!1;var y=f(_);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 f=s(5588),l=s(1717),_=s(1167),y=_&&_.isMap,x=y?l(y):f;a.exports=x},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 f=s(4239),l=s(5924),_=s(7005),y=Function.prototype,x=Object.prototype,E=y.toString,A=x.hasOwnProperty,I=E.call(Object);a.exports=function(N){if(!_(N)||f(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&&E.call(W)==I}},2928:(a,h,s)=>{var f=s(9221),l=s(1717),_=s(1167),y=_&&_.isSet,x=y?l(y):f;a.exports=x},7037:(a,h,s)=>{var f=s(4239),l=s(1469),_=s(7005);a.exports=function(y){return typeof y=="string"||!l(y)&&_(y)&&f(y)=="[object String]"}},3448:(a,h,s)=>{var f=s(4239),l=s(7005);a.exports=function(_){return typeof _=="symbol"||l(_)&&f(_)=="[object Symbol]"}},6719:(a,h,s)=>{var f=s(8749),l=s(1717),_=s(1167),y=_&&_.isTypedArray,x=y?l(y):f;a.exports=x},2353:a=>{a.exports=function(h){return h===void 0}},3674:(a,h,s)=>{var f=s(4636),l=s(280),_=s(8612);a.exports=function(y){return _(y)?f(y):l(y)}},1704:(a,h,s)=>{var f=s(4636),l=s(313),_=s(8612);a.exports=function(y){return _(y)?f(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 f=s(9932),l=s(7206),_=s(9199),y=s(1469);a.exports=function(x,E){return(y(x)?f:_)(x,l(E,3))}},6604:(a,h,s)=>{var f=s(9465),l=s(7816),_=s(7206);a.exports=function(y,x){var E={};return x=_(x,3),l(y,function(A,I,N){f(E,I,x(A,I,N))}),E}},6162:(a,h,s)=>{var f=s(6029),l=s(3325),_=s(6557);a.exports=function(y){return y&&y.length?f(y,_,l):void 0}},8306:(a,h,s)=>{var f=s(3369);function l(_,y){if(typeof _!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var x=function(){var E=arguments,A=y?y.apply(this,E):E[0],I=x.cache;if(I.has(A))return I.get(A);var N=_.apply(this,E);return x.cache=I.set(A,N)||I,N};return x.cache=new(l.Cache||f),x}l.Cache=f,a.exports=l},3857:(a,h,s)=>{var f=s(2980),l=s(1750)(function(_,y,x){f(_,y,x)});a.exports=l},3632:(a,h,s)=>{var f=s(6029),l=s(433),_=s(6557);a.exports=function(y){return y&&y.length?f(y,_,l):void 0}},2762:(a,h,s)=>{var f=s(6029),l=s(7206),_=s(433);a.exports=function(y,x){return y&&y.length?f(y,l(x,2),_):void 0}},308:a=>{a.exports=function(){}},7771:(a,h,s)=>{var f=s(5639);a.exports=function(){return f.Date.now()}},9722:(a,h,s)=>{var f=s(5970),l=s(9021)(function(_,y){return _==null?{}:f(_,y)});a.exports=l},9601:(a,h,s)=>{var f=s(371),l=s(9152),_=s(5403),y=s(327);a.exports=function(x){return _(x)?f(y(x)):l(x)}},6026:(a,h,s)=>{var f=s(7445)();a.exports=f},4061:(a,h,s)=>{var f=s(2663),l=s(9881),_=s(7206),y=s(107),x=s(1469);a.exports=function(E,A,I){var N=x(E)?f:y,P=arguments.length<3;return N(E,_(A,4),I,P,l)}},4238:(a,h,s)=>{var f=s(280),l=s(4160),_=s(8612),y=s(7037),x=s(8016);a.exports=function(E){if(E==null)return 0;if(_(E))return y(E)?x(E):E.length;var A=l(E);return A=="[object Map]"||A=="[object Set]"?E.size:f(E).length}},9734:(a,h,s)=>{var f=s(1078),l=s(9556),_=s(5976),y=s(6612),x=_(function(E,A){if(E==null)return[];var I=A.length;return I>1&&y(E,A[0],A[1])?A=[]:I>2&&y(A[0],A[1],A[2])&&(A=[A[0]]),l(E,f(A,1),[])});a.exports=x},479:a=>{a.exports=function(){return[]}},5062:a=>{a.exports=function(){return!1}},8601:(a,h,s)=>{var f=s(4841);a.exports=function(l){return l?(l=f(l))===1/0||l===-1/0?17976931348623157e292*(l<0?-1:1):l==l?l:0:l===0?l:0}},554:(a,h,s)=>{var f=s(8601);a.exports=function(l){var _=f(l),y=_%1;return _==_?y?_-y:_:0}},4841:(a,h,s)=>{var f=s(7561),l=s(3218),_=s(3448),y=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,E=/^0o[0-7]+$/i,A=parseInt;a.exports=function(I){if(typeof I=="number")return I;if(_(I))return NaN;if(l(I)){var N=typeof I.valueOf=="function"?I.valueOf():I;I=l(N)?N+"":N}if(typeof I!="string")return I===0?I:+I;I=f(I);var P=x.test(I);return P||E.test(I)?A(I.slice(2),P?2:8):y.test(I)?NaN:+I}},3678:(a,h,s)=>{var f=s(8363),l=s(1704);a.exports=function(_){return f(_,l(_))}},9833:(a,h,s)=>{var f=s(531);a.exports=function(l){return l==null?"":f(l)}},8718:(a,h,s)=>{var f=s(7412),l=s(3118),_=s(7816),y=s(7206),x=s(5924),E=s(1469),A=s(4144),I=s(3560),N=s(3218),P=s(6719);a.exports=function(W,H,V){var X=E(W),K=X||A(W)||P(W);if(H=y(H,4),V==null){var ut=W&&W.constructor;V=K?X?new ut:[]:N(W)&&I(ut)?l(x(W)):{}}return(K?f:_)(W,function(tt,Tt,ht){return H(V,tt,Tt,ht)}),V}},3386:(a,h,s)=>{var f=s(1078),l=s(5976),_=s(5652),y=s(9246),x=l(function(E){return _(f(E,1,y,!0))});a.exports=x},3955:(a,h,s)=>{var f=s(9833),l=0;a.exports=function(_){var y=++l;return f(_)+y}},2628:(a,h,s)=>{var f=s(7415),l=s(3674);a.exports=function(_){return _==null?[]:f(_,l(_))}},7287:(a,h,s)=>{var f=s(4865),l=s(1757);a.exports=function(_,y){return l(_||[],y||[],f)}},9234:()=>{},1748:(a,h,s)=>{var f={"./locale":9234,"./locale.js":9234};function l(y){var x=_(y);return s(x)}function _(y){if(!s.o(f,y)){var x=new Error("Cannot find module '"+y+"'");throw x.code="MODULE_NOT_FOUND",x}return f[y]}l.keys=function(){return Object.keys(f)},l.resolve=_,a.exports=l,l.id=1748},1941:function(a,h,s){(a=s.nmd(a)).exports=function(){var f,l;function _(){return f.apply(null,arguments)}function y(M){return M instanceof Array||Object.prototype.toString.call(M)==="[object Array]"}function x(M){return M!=null&&Object.prototype.toString.call(M)==="[object Object]"}function E(M){return M===void 0}function A(M){return typeof M=="number"||Object.prototype.toString.call(M)==="[object Number]"}function I(M){return M instanceof Date||Object.prototype.toString.call(M)==="[object Date]"}function N(M,R){var $,at=[];for($=0;$<M.length;++$)at.push(R(M[$],$));return at}function P(M,R){return Object.prototype.hasOwnProperty.call(M,R)}function W(M,R){for(var $ in R)P(R,$)&&(M[$]=R[$]);return P(R,"toString")&&(M.toString=R.toString),P(R,"valueOf")&&(M.valueOf=R.valueOf),M}function H(M,R,$,at){return Ki(M,R,$,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),$=l.call(R.parsedDateParts,function(Vt){return Vt!=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&&$);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 K(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),$=R.length>>>0,at=0;at<$;at++)if(at in R&&M.call(this,R[at],at,R))return!0;return!1};var ut=_.momentProperties=[];function tt(M,R){var $,at,Vt;if(E(R._isAMomentObject)||(M._isAMomentObject=R._isAMomentObject),E(R._i)||(M._i=R._i),E(R._f)||(M._f=R._f),E(R._l)||(M._l=R._l),E(R._strict)||(M._strict=R._strict),E(R._tzm)||(M._tzm=R._tzm),E(R._isUTC)||(M._isUTC=R._isUTC),E(R._offset)||(M._offset=R._offset),E(R._pf)||(M._pf=V(R)),E(R._locale)||(M._locale=R._locale),0<ut.length)for($=0;$<ut.length;$++)E(Vt=R[at=ut[$]])||(M[at]=Vt);return M}var Tt=!1;function ht(M){tt(this,M),this._d=new Date(M._d!=null?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Tt===!1&&(Tt=!0,_.updateOffset(this),Tt=!1)}function dt(M){return M instanceof ht||M!=null&&M._isAMomentObject!=null}function _t(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function J(M){var R=+M,$=0;return R!==0&&isFinite(R)&&($=_t(R)),$}function bt(M,R,$){var at,Vt=Math.min(M.length,R.length),fe=Math.abs(M.length-R.length),xe=0;for(at=0;at<Vt;at++)($&&M[at]!==R[at]||!$&&J(M[at])!==J(R[at]))&&xe++;return xe+fe}function Pt(M){_.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+M)}function kt(M,R){var $=!0;return W(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,M),$){for(var at,Vt=[],fe=0;fe<arguments.length;fe++){if(at="",typeof arguments[fe]=="object"){for(var xe in at+=`
[`+fe+"] ",arguments[0])at+=xe+": "+arguments[0][xe]+", ";at=at.slice(0,-2)}else at=arguments[fe];Vt.push(at)}Pt(M+`
Arguments: `+Array.prototype.slice.call(Vt).join("")+`
`+new Error().stack),$=!1}return R.apply(this,arguments)},R)}var Ot,st={};function ae(M,R){_.deprecationHandler!=null&&_.deprecationHandler(M,R),st[M]||(Pt(R),st[M]=!0)}function Yt(M){return M instanceof Function||Object.prototype.toString.call(M)==="[object Function]"}function _e(M,R){var $,at=W({},M);for($ in R)P(R,$)&&(x(M[$])&&x(R[$])?(at[$]={},W(at[$],M[$]),W(at[$],R[$])):R[$]!=null?at[$]=R[$]:delete at[$]);for($ in M)P(M,$)&&!P(R,$)&&x(M[$])&&(at[$]=W({},at[$]));return at}function pe(M){M!=null&&this.set(M)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null,Ot=Object.keys?Object.keys:function(M){var R,$=[];for(R in M)P(M,R)&&$.push(R);return $};var de={};function Bt(M,R){var $=M.toLowerCase();de[$]=de[$+"s"]=de[R]=M}function zt(M){return typeof M=="string"?de[M]||de[M.toLowerCase()]:void 0}function ce(M){var R,$,at={};for($ in M)P(M,$)&&(R=zt($))&&(at[R]=M[$]);return at}var he={};function ge(M,R){he[M]=R}function It(M,R,$){var at=""+Math.abs(M),Vt=R-at.length;return(0<=M?$?"+":"":"-")+Math.pow(10,Math.max(0,Vt)).toString().substr(1)+at}var We=/(\[[^\[]*\])|(\\)?([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,oe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wt={},Gt={};function rt(M,R,$,at){var Vt=at;typeof at=="string"&&(Vt=function(){return this[at]()}),M&&(Gt[M]=Vt),R&&(Gt[R[0]]=function(){return It(Vt.apply(this,arguments),R[1],R[2])}),$&&(Gt[$]=function(){return this.localeData().ordinal(Vt.apply(this,arguments),M)})}function re(M,R){return M.isValid()?(R=Mt(R,M.localeData()),Wt[R]=Wt[R]||function($){var at,Vt,fe,xe=$.match(We);for(at=0,Vt=xe.length;at<Vt;at++)Gt[xe[at]]?xe[at]=Gt[xe[at]]:xe[at]=(fe=xe[at]).match(/\[[\s\S]/)?fe.replace(/^\[|\]$/g,""):fe.replace(/\\/g,"");return function(Ee){var Ce,Pe="";for(Ce=0;Ce<Vt;Ce++)Pe+=Yt(xe[Ce])?xe[Ce].call(Ee,$):xe[Ce];return Pe}}(R),Wt[R](M)):M.localeData().invalidDate()}function Mt(M,R){var $=5;function at(Vt){return R.longDateFormat(Vt)||Vt}for(oe.lastIndex=0;0<=$&&oe.test(M);)M=M.replace(oe,at),oe.lastIndex=0,$-=1;return M}var qt=/\d/,$t=/\d\d/,At=/\d{3}/,ne=/\d{4}/,tn=/[+-]?\d{6}/,ye=/\d\d?/,Re=/\d\d\d\d?/,un=/\d\d\d\d\d\d?/,Ve=/\d{1,3}/,Oe=/\d{1,4}/,ke=/[+-]?\d{1,6}/,Ke=/\d+/,Ye=/[+-]?\d+/,Ge=/Z|[+-]\d\d:?\d\d/gi,Xe=/Z|[+-]\d\d(?::?\d\d)?/gi,De=/[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,Un={};function Te(M,R,$){Un[M]=Yt(R)?R:function(at,Vt){return at&&$?$:R}}function en(M,R){return P(Un,M)?Un[M](R._strict,R._locale):new RegExp(bn(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function($,at,Vt,fe,xe){return at||Vt||fe||xe})))}function bn(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ir={};function xn(M,R){var $,at=R;for(typeof M=="string"&&(M=[M]),A(R)&&(at=function(Vt,fe){fe[R]=J(Vt)}),$=0;$<M.length;$++)Ir[M[$]]=at}function tr(M,R){xn(M,function($,at,Vt,fe){Vt._w=Vt._w||{},R($,Vt._w,Vt,fe)})}function cn(M){return yn(M)?366:365}function yn(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"),Bt("year","y"),ge("year",1),Te("Y",Ye),Te("YY",ye,$t),Te("YYYY",Oe,ne),Te("YYYYY",ke,tn),Te("YYYYYY",ke,tn),xn(["YYYYY","YYYYYY"],0),xn("YYYY",function(M,R){R[0]=M.length===2?_.parseTwoDigitYear(M):J(M)}),xn("YY",function(M,R){R[0]=_.parseTwoDigitYear(M)}),xn("Y",function(M,R){R[0]=parseInt(M,10)}),_.parseTwoDigitYear=function(M){return J(M)+(68<J(M)?1900:2e3)};var Ze,Sn=Tn("FullYear",!0);function Tn(M,R){return function($){return $!=null?(Wn(this,M,$),_.updateOffset(this,R),this):zn(this,M)}}function zn(M,R){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+R]():NaN}function Wn(M,R,$){M.isValid()&&!isNaN($)&&(R==="FullYear"&&yn(M.year())&&M.month()===1&&M.date()===29?M._d["set"+(M._isUTC?"UTC":"")+R]($,M.month(),Dr($,M.month())):M._d["set"+(M._isUTC?"UTC":"")+R]($))}function Dr(M,R){if(isNaN(M)||isNaN(R))return NaN;var $=(R%12+12)%12;return M+=(R-$)/12,$===1?yn(M)?29:28:31-$%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)}),Bt("month","M"),ge("month",8),Te("M",ye),Te("MM",ye,$t),Te("MMM",function(M,R){return R.monthsShortRegex(M)}),Te("MMMM",function(M,R){return R.monthsRegex(M)}),xn(["M","MM"],function(M,R){R[1]=J(M)-1}),xn(["MMM","MMMM"],function(M,R,$,at){var Vt=$._locale.monthsParse(M,at,$._strict);Vt!=null?R[1]=Vt:V($).invalidMonth=M});var En=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,qn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Gn(M,R){var $;if(!M.isValid())return M;if(typeof R=="string"){if(/^\d+$/.test(R))R=J(R);else if(!A(R=M.localeData().monthsParse(R)))return M}return $=Math.min(M.date(),Dr(M.year(),R)),M._d["set"+(M._isUTC?"UTC":"")+"Month"](R,$),M}function Xn(M){return M!=null?(Gn(this,M),_.updateOffset(this,!0),this):zn(this,"Month")}var er=De,Nn=De;function Ln(){function M(xe,Ee){return Ee.length-xe.length}var R,$,at=[],Vt=[],fe=[];for(R=0;R<12;R++)$=H([2e3,R]),at.push(this.monthsShort($,"")),Vt.push(this.months($,"")),fe.push(this.months($,"")),fe.push(this.monthsShort($,""));for(at.sort(M),Vt.sort(M),fe.sort(M),R=0;R<12;R++)at[R]=bn(at[R]),Vt[R]=bn(Vt[R]);for(R=0;R<24;R++)fe[R]=bn(fe[R]);this._monthsRegex=new RegExp("^("+fe.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Vt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+at.join("|")+")","i")}function ln(M){var R;if(M<100&&0<=M){var $=Array.prototype.slice.call(arguments);$[0]=M+400,R=new Date(Date.UTC.apply(null,$)),isFinite(R.getUTCFullYear())&&R.setUTCFullYear(M)}else R=new Date(Date.UTC.apply(null,arguments));return R}function Yn(M,R,$){var at=7+R-$;return-(7+ln(M,0,at).getUTCDay()-R)%7+at-1}function vn(M,R,$,at,Vt){var fe,xe,Ee=1+7*(R-1)+(7+$-at)%7+Yn(M,at,Vt);return xe=Ee<=0?cn(fe=M-1)+Ee:Ee>cn(M)?(fe=M+1,Ee-cn(M)):(fe=M,Ee),{year:fe,dayOfYear:xe}}function ii(M,R,$){var at,Vt,fe=Yn(M.year(),R,$),xe=Math.floor((M.dayOfYear()-fe-1)/7)+1;return xe<1?at=xe+yr(Vt=M.year()-1,R,$):xe>yr(M.year(),R,$)?(at=xe-yr(M.year(),R,$),Vt=M.year()+1):(Vt=M.year(),at=xe),{week:at,year:Vt}}function yr(M,R,$){var at=Yn(M,R,$),Vt=Yn(M+1,R,$);return(cn(M)-at+Vt)/7}function Ji(M,R){return M.slice(R,7).concat(M.slice(0,R))}rt("w",["ww",2],"wo","week"),rt("W",["WW",2],"Wo","isoWeek"),Bt("week","w"),Bt("isoWeek","W"),ge("week",5),ge("isoWeek",5),Te("w",ye),Te("ww",ye,$t),Te("W",ye),Te("WW",ye,$t),tr(["w","ww","W","WW"],function(M,R,$,at){R[at.substr(0,1)]=J(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"),Bt("day","d"),Bt("weekday","e"),Bt("isoWeekday","E"),ge("day",11),ge("weekday",11),ge("isoWeekday",11),Te("d",ye),Te("e",ye),Te("E",ye),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)}),tr(["dd","ddd","dddd"],function(M,R,$,at){var Vt=$._locale.weekdaysParse(M,at,$._strict);Vt!=null?R.d=Vt:V($).invalidWeekday=M}),tr(["d","e","E"],function(M,R,$,at){R[at]=J(M)});var In="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ko="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ga="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ai=De,Rr=De,zr=De;function Xr(){function M(qe,kn){return kn.length-qe.length}var R,$,at,Vt,fe,xe=[],Ee=[],Ce=[],Pe=[];for(R=0;R<7;R++)$=H([2e3,1]).day(R),at=this.weekdaysMin($,""),Vt=this.weekdaysShort($,""),fe=this.weekdays($,""),xe.push(at),Ee.push(Vt),Ce.push(fe),Pe.push(at),Pe.push(Vt),Pe.push(fe);for(xe.sort(M),Ee.sort(M),Ce.sort(M),Pe.sort(M),R=0;R<7;R++)Ee[R]=bn(Ee[R]),Ce[R]=bn(Ce[R]),Pe[R]=bn(Pe[R]);this._weekdaysRegex=new RegExp("^("+Pe.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Ce.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ee.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+xe.join("|")+")","i")}function Jr(){return this.hours()%12||12}function Nr(M,R){rt(M,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),R)})}function Kr(M,R){return R._meridiemParse}rt("H",["HH",2],0,"hour"),rt("h",["hh",2],0,Jr),rt("k",["kk",2],0,function(){return this.hours()||24}),rt("hmm",0,0,function(){return""+Jr.apply(this)+It(this.minutes(),2)}),rt("hmmss",0,0,function(){return""+Jr.apply(this)+It(this.minutes(),2)+It(this.seconds(),2)}),rt("Hmm",0,0,function(){return""+this.hours()+It(this.minutes(),2)}),rt("Hmmss",0,0,function(){return""+this.hours()+It(this.minutes(),2)+It(this.seconds(),2)}),Nr("a",!0),Nr("A",!1),Bt("hour","h"),ge("hour",13),Te("a",Kr),Te("A",Kr),Te("H",ye),Te("h",ye),Te("k",ye),Te("HH",ye,$t),Te("hh",ye,$t),Te("kk",ye,$t),Te("hmm",Re),Te("hmmss",un),Te("Hmm",Re),Te("Hmmss",un),xn(["H","HH"],3),xn(["k","kk"],function(M,R,$){var at=J(M);R[3]=at===24?0:at}),xn(["a","A"],function(M,R,$){$._isPm=$._locale.isPM(M),$._meridiem=M}),xn(["h","hh"],function(M,R,$){R[3]=J(M),V($).bigHour=!0}),xn("hmm",function(M,R,$){var at=M.length-2;R[3]=J(M.substr(0,at)),R[4]=J(M.substr(at)),V($).bigHour=!0}),xn("hmmss",function(M,R,$){var at=M.length-4,Vt=M.length-2;R[3]=J(M.substr(0,at)),R[4]=J(M.substr(at,2)),R[5]=J(M.substr(Vt)),V($).bigHour=!0}),xn("Hmm",function(M,R,$){var at=M.length-2;R[3]=J(M.substr(0,at)),R[4]=J(M.substr(at))}),xn("Hmmss",function(M,R,$){var at=M.length-4,Vt=M.length-2;R[3]=J(M.substr(0,at)),R[4]=J(M.substr(at,2)),R[5]=J(M.substr(Vt))});var Fr,Li=Tn("Hours",!0),hi={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:qn,monthsShort:Pn,week:{dow:0,doy:6},weekdays:In,weekdaysMin:ga,weekdaysShort:ko,meridiemParse:/[ap]\.?m?\.?/i},rr={},$r={};function ya(M){return M&&M.toLowerCase().replace("_","-")}function ti(M){var R=null;if(!rr[M]&&a&&a.exports)try{R=Fr._abbr,s(1748)("./"+M),ma(R)}catch{}return rr[M]}function ma(M,R){var $;return M&&(($=E(R)?fi(M):lo(M,R))?Fr=$:typeof console!="undefined"&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),Fr._abbr}function lo(M,R){if(R===null)return delete rr[M],null;var $,at=hi;if(R.abbr=M,rr[M]!=null)ae("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=rr[M]._config;else if(R.parentLocale!=null)if(rr[R.parentLocale]!=null)at=rr[R.parentLocale]._config;else{if(($=ti(R.parentLocale))==null)return $r[R.parentLocale]||($r[R.parentLocale]=[]),$r[R.parentLocale].push({name:M,config:R}),null;at=$._config}return rr[M]=new pe(_e(at,R)),$r[M]&&$r[M].forEach(function(Vt){lo(Vt.name,Vt.config)}),ma(M),rr[M]}function fi(M){var R;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return Fr;if(!y(M)){if(R=ti(M))return R;M=[M]}return function($){for(var at,Vt,fe,xe,Ee=0;Ee<$.length;){for(at=(xe=ya($[Ee]).split("-")).length,Vt=(Vt=ya($[Ee+1]))?Vt.split("-"):null;0<at;){if(fe=ti(xe.slice(0,at).join("-")))return fe;if(Vt&&Vt.length>=at&&bt(xe,Vt,!0)>=at-1)break;at--}Ee++}return Fr}(M)}function nn(M){var R,$=M._a;return $&&V(M).overflow===-2&&(R=$[1]<0||11<$[1]?1:$[2]<1||$[2]>Dr($[0],$[1])?2:$[3]<0||24<$[3]||$[3]===24&&($[4]!==0||$[5]!==0||$[6]!==0)?3:$[4]<0||59<$[4]?4:$[5]<0||59<$[5]?5:$[6]<0||999<$[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 Zn(M,R,$){return M!=null?M:R!=null?R:$}function Mn(M){var R,$,at,Vt,fe,xe=[];if(!M._d){var Ee,Ce;for(Ee=M,Ce=new Date(_.now()),at=Ee._useUTC?[Ce.getUTCFullYear(),Ce.getUTCMonth(),Ce.getUTCDate()]:[Ce.getFullYear(),Ce.getMonth(),Ce.getDate()],M._w&&M._a[2]==null&&M._a[1]==null&&function(Pe){var qe,kn,dn,hr,dr,Br,ur,ba;if((qe=Pe._w).GG!=null||qe.W!=null||qe.E!=null)dr=1,Br=4,kn=Zn(qe.GG,Pe._a[0],ii(An(),1,4).year),dn=Zn(qe.W,1),((hr=Zn(qe.E,1))<1||7<hr)&&(ba=!0);else{dr=Pe._locale._week.dow,Br=Pe._locale._week.doy;var Ns=ii(An(),dr,Br);kn=Zn(qe.gg,Pe._a[0],Ns.year),dn=Zn(qe.w,Ns.week),qe.d!=null?((hr=qe.d)<0||6<hr)&&(ba=!0):qe.e!=null?(hr=qe.e+dr,(qe.e<0||6<qe.e)&&(ba=!0)):hr=dr}dn<1||dn>yr(kn,dr,Br)?V(Pe)._overflowWeeks=!0:ba!=null?V(Pe)._overflowWeekday=!0:(ur=vn(kn,dn,hr,dr,Br),Pe._a[0]=ur.year,Pe._dayOfYear=ur.dayOfYear)}(M),M._dayOfYear!=null&&(fe=Zn(M._a[0],at[0]),(M._dayOfYear>cn(fe)||M._dayOfYear===0)&&(V(M)._overflowDayOfYear=!0),$=ln(fe,0,M._dayOfYear),M._a[1]=$.getUTCMonth(),M._a[2]=$.getUTCDate()),R=0;R<3&&M._a[R]==null;++R)M._a[R]=xe[R]=at[R];for(;R<7;R++)M._a[R]=xe[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?ln:function(Pe,qe,kn,dn,hr,dr,Br){var ur;return Pe<100&&0<=Pe?(ur=new Date(Pe+400,qe,kn,dn,hr,dr,Br),isFinite(ur.getFullYear())&&ur.setFullYear(Pe)):ur=new Date(Pe,qe,kn,dn,hr,dr,Br),ur}).apply(null,xe),Vt=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!==Vt&&(V(M).weekdayMismatch=!0)}}var Be=/^\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)?)?$/,Qn=/^\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)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,Zr=[["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}/]],Xt=[["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/]],Ii=/^\/?Date\((\-?\d+)/i;function fa(M){var R,$,at,Vt,fe,xe,Ee=M._i,Ce=Be.exec(Ee)||Qn.exec(Ee);if(Ce){for(V(M).iso=!0,R=0,$=Zr.length;R<$;R++)if(Zr[R][1].exec(Ce[1])){Vt=Zr[R][0],at=Zr[R][2]!==!1;break}if(Vt==null)return void(M._isValid=!1);if(Ce[3]){for(R=0,$=Xt.length;R<$;R++)if(Xt[R][1].exec(Ce[3])){fe=(Ce[2]||" ")+Xt[R][0];break}if(fe==null)return void(M._isValid=!1)}if(!at&&fe!=null)return void(M._isValid=!1);if(Ce[4]){if(!gt.exec(Ce[4]))return void(M._isValid=!1);xe="Z"}M._f=Vt+(fe||"")+(xe||""),Eo(M)}else M._isValid=!1}var qa=/^(?:(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}))$/,ho={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function To(M){var R,$,at,Vt=qa.exec(M._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(Vt){var fe=function(xe,Ee,Ce,Pe,qe,kn){var dn=[function(hr){var dr=parseInt(hr,10);return dr<=49?2e3+dr:dr<=999?1900+dr:dr}(xe),Pn.indexOf(Ee),parseInt(Ce,10),parseInt(Pe,10),parseInt(qe,10)];return kn&&dn.push(parseInt(kn,10)),dn}(Vt[4],Vt[3],Vt[2],Vt[5],Vt[6],Vt[7]);if($=fe,at=M,(R=Vt[1])&&ko.indexOf(R)!==new Date($[0],$[1],$[2]).getDay()&&(V(at).weekdayMismatch=!0,!(at._isValid=!1)))return;M._a=fe,M._tzm=function(xe,Ee,Ce){if(xe)return ho[xe];if(Ee)return 0;var Pe=parseInt(Ce,10),qe=Pe%100;return(Pe-qe)/100*60+qe}(Vt[8],Vt[9],Vt[10]),M._d=ln.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),V(M).rfc2822=!0}else M._isValid=!1}function Eo(M){if(M._f!==_.ISO_8601)if(M._f!==_.RFC_2822){M._a=[],V(M).empty=!0;var R,$,at,Vt,fe,xe,Ee,Ce,Pe=""+M._i,qe=Pe.length,kn=0;for(at=Mt(M._f,M._locale).match(We)||[],R=0;R<at.length;R++)Vt=at[R],($=(Pe.match(en(Vt,M))||[])[0])&&(0<(fe=Pe.substr(0,Pe.indexOf($))).length&&V(M).unusedInput.push(fe),Pe=Pe.slice(Pe.indexOf($)+$.length),kn+=$.length),Gt[Vt]?($?V(M).empty=!1:V(M).unusedTokens.push(Vt),xe=Vt,Ce=M,(Ee=$)!=null&&P(Ir,xe)&&Ir[xe](Ee,Ce._a,Ce,xe)):M._strict&&!$&&V(M).unusedTokens.push(Vt);V(M).charsLeftOver=qe-kn,0<Pe.length&&V(M).unusedInput.push(Pe),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,hr,dr){var Br;return dr==null?hr:dn.meridiemHour!=null?dn.meridiemHour(hr,dr):(dn.isPM!=null&&((Br=dn.isPM(dr))&&hr<12&&(hr+=12),Br||hr!==12||(hr=0)),hr)}(M._locale,M._a[3],M._meridiem),Mn(M),nn(M)}else To(M);else fa(M)}function Vr(M){var R,$,at,Vt,fe=M._i,xe=M._f;return M._locale=M._locale||fi(M._l),fe===null||xe===void 0&&fe===""?K({nullInput:!0}):(typeof fe=="string"&&(M._i=fe=M._locale.preparse(fe)),dt(fe)?new ht(nn(fe)):(I(fe)?M._d=fe:y(xe)?function(Ee){var Ce,Pe,qe,kn,dn;if(Ee._f.length===0)return V(Ee).invalidFormat=!0,Ee._d=new Date(NaN);for(kn=0;kn<Ee._f.length;kn++)dn=0,Ce=tt({},Ee),Ee._useUTC!=null&&(Ce._useUTC=Ee._useUTC),Ce._f=Ee._f[kn],Eo(Ce),X(Ce)&&(dn+=V(Ce).charsLeftOver,dn+=10*V(Ce).unusedTokens.length,V(Ce).score=dn,(qe==null||dn<qe)&&(qe=dn,Pe=Ce));W(Ee,Pe||Ce)}(M):xe?Eo(M):E($=(R=M)._i)?R._d=new Date(_.now()):I($)?R._d=new Date($.valueOf()):typeof $=="string"?(at=R,(Vt=Ii.exec(at._i))===null?(fa(at),at._isValid===!1&&(delete at._isValid,To(at),at._isValid===!1&&(delete at._isValid,_.createFromInputFallback(at)))):at._d=new Date(+Vt[1])):y($)?(R._a=N($.slice(0),function(Ee){return parseInt(Ee,10)}),Mn(R)):x($)?function(Ee){if(!Ee._d){var Ce=ce(Ee._i);Ee._a=N([Ce.year,Ce.month,Ce.day||Ce.date,Ce.hour,Ce.minute,Ce.second,Ce.millisecond],function(Pe){return Pe&&parseInt(Pe,10)}),Mn(Ee)}}(R):A($)?R._d=new Date($):_.createFromInputFallback(R),X(M)||(M._d=null),M))}function Ki(M,R,$,at,Vt){var fe,xe={};return $!==!0&&$!==!1||(at=$,$=void 0),(x(M)&&function(Ee){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Ee).length===0;var Ce;for(Ce in Ee)if(Ee.hasOwnProperty(Ce))return!1;return!0}(M)||y(M)&&M.length===0)&&(M=void 0),xe._isAMomentObject=!0,xe._useUTC=xe._isUTC=Vt,xe._l=$,xe._i=M,xe._f=R,xe._strict=at,(fe=new ht(nn(Vr(xe))))._nextDay&&(fe.add(1,"d"),fe._nextDay=void 0),fe}function An(M,R,$,at){return Ki(M,R,$,at,!1)}_.createFromInputFallback=kt("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 Ba=kt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=An.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:K()}),$a=kt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=An.apply(null,arguments);return this.isValid()&&M.isValid()?this<M?this:M:K()});function mr(M,R){var $,at;if(R.length===1&&y(R[0])&&(R=R[0]),!R.length)return An();for($=R[0],at=1;at<R.length;++at)R[at].isValid()&&!R[at][M]($)||($=R[at]);return $}var Sr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function bi(M){var R=ce(M),$=R.year||0,at=R.quarter||0,Vt=R.month||0,fe=R.week||R.isoWeek||0,xe=R.day||0,Ee=R.hour||0,Ce=R.minute||0,Pe=R.second||0,qe=R.millisecond||0;this._isValid=function(kn){for(var dn in kn)if(Ze.call(Sr,dn)===-1||kn[dn]!=null&&isNaN(kn[dn]))return!1;for(var hr=!1,dr=0;dr<Sr.length;++dr)if(kn[Sr[dr]]){if(hr)return!1;parseFloat(kn[Sr[dr]])!==J(kn[Sr[dr]])&&(hr=!0)}return!0}(R),this._milliseconds=+qe+1e3*Pe+6e4*Ce+1e3*Ee*60*60,this._days=+xe+7*fe,this._months=+Vt+3*at+12*$,this._data={},this._locale=fi(),this._bubble()}function ei(M){return M instanceof bi}function Wr(M){return M<0?-1*Math.round(-1*M):Math.round(M)}function Hr(M,R){rt(M,0,0,function(){var $=this.utcOffset(),at="+";return $<0&&($=-$,at="-"),at+It(~~($/60),2)+R+It(~~$%60,2)})}Hr("Z",":"),Hr("ZZ",""),Te("Z",Xe),Te("ZZ",Xe),xn(["Z","ZZ"],function(M,R,$){$._useUTC=!0,$._tzm=Qr(Xe,M)});var di=/([\+\-]|\d\d)/gi;function Qr(M,R){var $=(R||"").match(M);if($===null)return null;var at=(($[$.length-1]||[])+"").match(di)||["-",0,0],Vt=60*at[1]+J(at[2]);return Vt===0?0:at[0]==="+"?Vt:-Vt}function ta(M,R){var $,at;return R._isUTC?($=R.clone(),at=(dt(M)||I(M)?M.valueOf():An(M).valueOf())-$.valueOf(),$._d.setTime($._d.valueOf()+at),_.updateOffset($,!1),$):An(M).local()}function Wi(M){return 15*-Math.round(M._d.getTimezoneOffset()/15)}function Ri(){return!!this.isValid()&&this._isUTC&&this._offset===0}_.updateOffset=function(){};var fo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Rt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function je(M,R){var $,at,Vt,fe=M,xe=null;return ei(M)?fe={ms:M._milliseconds,d:M._days,M:M._months}:A(M)?(fe={},R?fe[R]=M:fe.milliseconds=M):(xe=fo.exec(M))?($=xe[1]==="-"?-1:1,fe={y:0,d:J(xe[2])*$,h:J(xe[3])*$,m:J(xe[4])*$,s:J(xe[5])*$,ms:J(Wr(1e3*xe[6]))*$}):(xe=Rt.exec(M))?($=xe[1]==="-"?-1:1,fe={y:Fe(xe[2],$),M:Fe(xe[3],$),w:Fe(xe[4],$),d:Fe(xe[5],$),h:Fe(xe[6],$),m:Fe(xe[7],$),s:Fe(xe[8],$)}):fe==null?fe={}:typeof fe=="object"&&("from"in fe||"to"in fe)&&(Vt=function(Ee,Ce){var Pe;return Ee.isValid()&&Ce.isValid()?(Ce=ta(Ce,Ee),Ee.isBefore(Ce)?Pe=vr(Ee,Ce):((Pe=vr(Ce,Ee)).milliseconds=-Pe.milliseconds,Pe.months=-Pe.months),Pe):{milliseconds:0,months:0}}(An(fe.from),An(fe.to)),(fe={}).ms=Vt.milliseconds,fe.M=Vt.months),at=new bi(fe),ei(M)&&P(M,"_locale")&&(at._locale=M._locale),at}function Fe(M,R){var $=M&&parseFloat(M.replace(",","."));return(isNaN($)?0:$)*R}function vr(M,R){var $={};return $.months=R.month()-M.month()+12*(R.year()-M.year()),M.clone().add($.months,"M").isAfter(R)&&--$.months,$.milliseconds=+R-+M.clone().add($.months,"M"),$}function _r(M,R){return function($,at){var Vt;return at===null||isNaN(+at)||(ae(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."),Vt=$,$=at,at=Vt),xi(this,je($=typeof $=="string"?+$:$,at),M),this}}function xi(M,R,$,at){var Vt=R._milliseconds,fe=Wr(R._days),xe=Wr(R._months);M.isValid()&&(at=at==null||at,xe&&Gn(M,zn(M,"Month")+xe*$),fe&&Wn(M,"Date",zn(M,"Date")+fe*$),Vt&&M._d.setTime(M._d.valueOf()+Vt*$),at&&_.updateOffset(M,fe||xe))}je.fn=bi.prototype,je.invalid=function(){return je(NaN)};var ni=_r(1,"add"),cc=_r(-1,"subtract");function wi(M,R){var $=12*(R.year()-M.year())+(R.month()-M.month()),at=M.clone().add($,"months");return-($+(R-at<0?(R-at)/(at-M.clone().add($-1,"months")):(R-at)/(M.clone().add($+1,"months")-at)))||0}function Ai(M){var R;return M===void 0?this._locale._abbr:((R=fi(M))!=null&&(this._locale=R),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var uc=kt("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 Va(){return this._locale}var Kc=126227808e5;function po(M,R){return(M%R+R)%R}function tu(M,R,$){return M<100&&0<=M?new Date(M+400,R,$)-Kc:new Date(M,R,$).valueOf()}function Hi(M,R,$){return M<100&&0<=M?Date.UTC(M+400,R,$)-Kc:Date.UTC(M,R,$)}function ri(M,R){rt(0,[M,M.length],0,R)}function tl(M,R,$,at,Vt){var fe;return M==null?ii(this,at,Vt).year:((fe=yr(M,at,Vt))<R&&(R=fe),function(xe,Ee,Ce,Pe,qe){var kn=vn(xe,Ee,Ce,Pe,qe),dn=ln(kn.year,0,kn.dayOfYear);return this.year(dn.getUTCFullYear()),this.month(dn.getUTCMonth()),this.date(dn.getUTCDate()),this}.call(this,M,R,$,at,Vt))}rt(0,["gg",2],0,function(){return this.weekYear()%100}),rt(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ri("gggg","weekYear"),ri("ggggg","weekYear"),ri("GGGG","isoWeekYear"),ri("GGGGG","isoWeekYear"),Bt("weekYear","gg"),Bt("isoWeekYear","GG"),ge("weekYear",1),ge("isoWeekYear",1),Te("G",Ye),Te("g",Ye),Te("GG",ye,$t),Te("gg",ye,$t),Te("GGGG",Oe,ne),Te("gggg",Oe,ne),Te("GGGGG",ke,tn),Te("ggggg",ke,tn),tr(["gggg","ggggg","GGGG","GGGGG"],function(M,R,$,at){R[at.substr(0,2)]=J(M)}),tr(["gg","GG"],function(M,R,$,at){R[at]=_.parseTwoDigitYear(M)}),rt("Q",0,"Qo","quarter"),Bt("quarter","Q"),ge("quarter",7),Te("Q",qt),xn("Q",function(M,R){R[1]=3*(J(M)-1)}),rt("D",["DD",2],"Do","date"),Bt("date","D"),ge("date",9),Te("D",ye),Te("DD",ye,$t),Te("Do",function(M,R){return M?R._dayOfMonthOrdinalParse||R._ordinalParse:R._dayOfMonthOrdinalParseLenient}),xn(["D","DD"],2),xn("Do",function(M,R){R[2]=J(M.match(ye)[0])});var el=Tn("Date",!0);rt("DDD",["DDDD",3],"DDDo","dayOfYear"),Bt("dayOfYear","DDD"),ge("dayOfYear",4),Te("DDD",Ve),Te("DDDD",At),xn(["DDD","DDDD"],function(M,R,$){$._dayOfYear=J(M)}),rt("m",["mm",2],0,"minute"),Bt("minute","m"),ge("minute",14),Te("m",ye),Te("mm",ye,$t),xn(["m","mm"],4);var nl=Tn("Minutes",!1);rt("s",["ss",2],0,"second"),Bt("second","s"),ge("second",15),Te("s",ye),Te("ss",ye,$t),xn(["s","ss"],5);var Ga,rl=Tn("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()}),Bt("millisecond","ms"),ge("millisecond",16),Te("S",Ve,qt),Te("SS",Ve,$t),Te("SSS",Ve,At),Ga="SSSS";Ga.length<=9;Ga+="S")Te(Ga,Ke);function il(M,R){R[6]=J(1e3*("0."+M))}for(Ga="S";Ga.length<=9;Ga+="S")xn(Ga,il);var Xa=Tn("Milliseconds",!1);rt("z",0,0,"zoneAbbr"),rt("zz",0,0,"zoneName");var Ie=ht.prototype;function Eh(M){return M}Ie.add=ni,Ie.calendar=function(M,R){var $=M||An(),at=ta($,this).startOf("day"),Vt=_.calendarFormat(this,at)||"sameElse",fe=R&&(Yt(R[Vt])?R[Vt].call(this,$):R[Vt]);return this.format(fe||this.localeData().calendar(Vt,this,An($)))},Ie.clone=function(){return new ht(this)},Ie.diff=function(M,R,$){var at,Vt,fe;if(!this.isValid())return NaN;if(!(at=ta(M,this)).isValid())return NaN;switch(Vt=6e4*(at.utcOffset()-this.utcOffset()),R=zt(R)){case"year":fe=wi(this,at)/12;break;case"month":fe=wi(this,at);break;case"quarter":fe=wi(this,at)/3;break;case"second":fe=(this-at)/1e3;break;case"minute":fe=(this-at)/6e4;break;case"hour":fe=(this-at)/36e5;break;case"day":fe=(this-at-Vt)/864e5;break;case"week":fe=(this-at-Vt)/6048e5;break;default:fe=this-at}return $?fe:_t(fe)},Ie.endOf=function(M){var R;if((M=zt(M))===void 0||M==="millisecond"||!this.isValid())return this;var $=this._isUTC?Hi:tu;switch(M){case"year":R=$(this.year()+1,0,1)-1;break;case"quarter":R=$(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":R=$(this.year(),this.month()+1,1)-1;break;case"week":R=$(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":R=$(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":R=$(this.year(),this.month(),this.date()+1)-1;break;case"hour":R=this._d.valueOf(),R+=36e5-po(R+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":R=this._d.valueOf(),R+=6e4-po(R,6e4)-1;break;case"second":R=this._d.valueOf(),R+=1e3-po(R,1e3)-1}return this._d.setTime(R),_.updateOffset(this,!0),this},Ie.format=function(M){M||(M=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var R=re(this,M);return this.localeData().postformat(R)},Ie.from=function(M,R){return this.isValid()&&(dt(M)&&M.isValid()||An(M).isValid())?je({to:this,from:M}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},Ie.fromNow=function(M){return this.from(An(),M)},Ie.to=function(M,R){return this.isValid()&&(dt(M)&&M.isValid()||An(M).isValid())?je({from:this,to:M}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},Ie.toNow=function(M){return this.to(An(),M)},Ie.get=function(M){return Yt(this[M=zt(M)])?this[M]():this},Ie.invalidAt=function(){return V(this).overflow},Ie.isAfter=function(M,R){var $=dt(M)?M:An(M);return!(!this.isValid()||!$.isValid())&&((R=zt(R)||"millisecond")==="millisecond"?this.valueOf()>$.valueOf():$.valueOf()<this.clone().startOf(R).valueOf())},Ie.isBefore=function(M,R){var $=dt(M)?M:An(M);return!(!this.isValid()||!$.isValid())&&((R=zt(R)||"millisecond")==="millisecond"?this.valueOf()<$.valueOf():this.clone().endOf(R).valueOf()<$.valueOf())},Ie.isBetween=function(M,R,$,at){var Vt=dt(M)?M:An(M),fe=dt(R)?R:An(R);return!!(this.isValid()&&Vt.isValid()&&fe.isValid())&&((at=at||"()")[0]==="("?this.isAfter(Vt,$):!this.isBefore(Vt,$))&&(at[1]===")"?this.isBefore(fe,$):!this.isAfter(fe,$))},Ie.isSame=function(M,R){var $,at=dt(M)?M:An(M);return!(!this.isValid()||!at.isValid())&&((R=zt(R)||"millisecond")==="millisecond"?this.valueOf()===at.valueOf():($=at.valueOf(),this.clone().startOf(R).valueOf()<=$&&$<=this.clone().endOf(R).valueOf()))},Ie.isSameOrAfter=function(M,R){return this.isSame(M,R)||this.isAfter(M,R)},Ie.isSameOrBefore=function(M,R){return this.isSame(M,R)||this.isBefore(M,R)},Ie.isValid=function(){return X(this)},Ie.lang=uc,Ie.locale=Ai,Ie.localeData=Va,Ie.max=$a,Ie.min=Ba,Ie.parsingFlags=function(){return W({},V(this))},Ie.set=function(M,R){if(typeof M=="object")for(var $=function(Vt){var fe=[];for(var xe in Vt)fe.push({unit:xe,priority:he[xe]});return fe.sort(function(Ee,Ce){return Ee.priority-Ce.priority}),fe}(M=ce(M)),at=0;at<$.length;at++)this[$[at].unit](M[$[at].unit]);else if(Yt(this[M=zt(M)]))return this[M](R);return this},Ie.startOf=function(M){var R;if((M=zt(M))===void 0||M==="millisecond"||!this.isValid())return this;var $=this._isUTC?Hi:tu;switch(M){case"year":R=$(this.year(),0,1);break;case"quarter":R=$(this.year(),this.month()-this.month()%3,1);break;case"month":R=$(this.year(),this.month(),1);break;case"week":R=$(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":R=$(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":R=$(this.year(),this.month(),this.date());break;case"hour":R=this._d.valueOf(),R-=po(R+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":R=this._d.valueOf(),R-=po(R,6e4);break;case"second":R=this._d.valueOf(),R-=po(R,1e3)}return this._d.setTime(R),_.updateOffset(this,!0),this},Ie.subtract=cc,Ie.toArray=function(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]},Ie.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()}},Ie.toDate=function(){return new Date(this.valueOf())},Ie.toISOString=function(M){if(!this.isValid())return null;var R=M!==!0,$=R?this.clone().utc():this;return $.year()<0||9999<$.year()?re($,R?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Yt(Date.prototype.toISOString)?R?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",re($,"Z")):re($,R?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ie.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 $="["+M+'("]',at=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Vt=R+'[")]';return this.format($+at+"-MM-DD[T]HH:mm:ss.SSS"+Vt)},Ie.toJSON=function(){return this.isValid()?this.toISOString():null},Ie.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ie.unix=function(){return Math.floor(this.valueOf()/1e3)},Ie.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ie.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ie.year=Sn,Ie.isLeapYear=function(){return yn(this.year())},Ie.weekYear=function(M){return tl.call(this,M,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ie.isoWeekYear=function(M){return tl.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)},Ie.quarter=Ie.quarters=function(M){return M==null?Math.ceil((this.month()+1)/3):this.month(3*(M-1)+this.month()%3)},Ie.month=Xn,Ie.daysInMonth=function(){return Dr(this.year(),this.month())},Ie.week=Ie.weeks=function(M){var R=this.localeData().week(this);return M==null?R:this.add(7*(M-R),"d")},Ie.isoWeek=Ie.isoWeeks=function(M){var R=ii(this,1,4).week;return M==null?R:this.add(7*(M-R),"d")},Ie.weeksInYear=function(){var M=this.localeData()._week;return yr(this.year(),M.dow,M.doy)},Ie.isoWeeksInYear=function(){return yr(this.year(),1,4)},Ie.date=el,Ie.day=Ie.days=function(M){if(!this.isValid())return M!=null?this:NaN;var R,$,at=this._isUTC?this._d.getUTCDay():this._d.getDay();return M!=null?(R=M,$=this.localeData(),M=typeof R!="string"?R:isNaN(R)?typeof(R=$.weekdaysParse(R))=="number"?R:null:parseInt(R,10),this.add(M-at,"d")):at},Ie.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")},Ie.isoWeekday=function(M){if(!this.isValid())return M!=null?this:NaN;if(M==null)return this.day()||7;var R,$,at=(R=M,$=this.localeData(),typeof R=="string"?$.weekdaysParse(R)%7||7:isNaN(R)?null:R);return this.day(this.day()%7?at:at-7)},Ie.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")},Ie.hour=Ie.hours=Li,Ie.minute=Ie.minutes=nl,Ie.second=Ie.seconds=rl,Ie.millisecond=Ie.milliseconds=Xa,Ie.utcOffset=function(M,R,$){var at,Vt=this._offset||0;if(!this.isValid())return M!=null?this:NaN;if(M==null)return this._isUTC?Vt:Wi(this);if(typeof M=="string"){if((M=Qr(Xe,M))===null)return this}else Math.abs(M)<16&&!$&&(M*=60);return!this._isUTC&&R&&(at=Wi(this)),this._offset=M,this._isUTC=!0,at!=null&&this.add(at,"m"),Vt!==M&&(!R||this._changeInProgress?xi(this,je(M-Vt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},Ie.utc=function(M){return this.utcOffset(0,M)},Ie.local=function(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(Wi(this),"m")),this},Ie.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var M=Qr(Ge,this._i);M!=null?this.utcOffset(M):this.utcOffset(0,!0)}return this},Ie.hasAlignedHourOffset=function(M){return!!this.isValid()&&(M=M?An(M).utcOffset():0,(this.utcOffset()-M)%60==0)},Ie.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ie.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ie.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ie.isUtc=Ri,Ie.isUTC=Ri,Ie.zoneAbbr=function(){return this._isUTC?"UTC":""},Ie.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ie.dates=kt("dates accessor is deprecated. Use date instead.",el),Ie.months=kt("months accessor is deprecated. Use month instead",Xn),Ie.years=kt("years accessor is deprecated. Use year instead",Sn),Ie.zone=kt("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()}),Ie.isDSTShifted=kt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!E(this._isDSTShifted))return this._isDSTShifted;var M={};if(tt(M,this),(M=Vr(M))._a){var R=M._isUTC?H(M._a):An(M._a);this._isDSTShifted=this.isValid()&&0<bt(M._a,R.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Or=pe.prototype;function eu(M,R,$,at){var Vt=fi(),fe=H().set(at,R);return Vt[$](fe,M)}function nu(M,R,$){if(A(M)&&(R=M,M=void 0),M=M||"",R!=null)return eu(M,R,$,"month");var at,Vt=[];for(at=0;at<12;at++)Vt[at]=eu(M,at,$,"month");return Vt}function al(M,R,$,at){typeof M=="boolean"?A(R)&&($=R,R=void 0):(R=M,M=!1,A($=R)&&($=R,R=void 0)),R=R||"";var Vt,fe=fi(),xe=M?fe._week.dow:0;if($!=null)return eu(R,($+xe)%7,at,"day");var Ee=[];for(Vt=0;Vt<7;Vt++)Ee[Vt]=eu(R,(Vt+xe)%7,at,"day");return Ee}Or.calendar=function(M,R,$){var at=this._calendar[M]||this._calendar.sameElse;return Yt(at)?at.call(R,$):at},Or.longDateFormat=function(M){var R=this._longDateFormat[M],$=this._longDateFormat[M.toUpperCase()];return R||!$?R:(this._longDateFormat[M]=$.replace(/MMMM|MM|DD|dddd/g,function(at){return at.slice(1)}),this._longDateFormat[M])},Or.invalidDate=function(){return this._invalidDate},Or.ordinal=function(M){return this._ordinal.replace("%d",M)},Or.preparse=Eh,Or.postformat=Eh,Or.relativeTime=function(M,R,$,at){var Vt=this._relativeTime[$];return Yt(Vt)?Vt(M,R,$,at):Vt.replace(/%d/i,M)},Or.pastFuture=function(M,R){var $=this._relativeTime[0<M?"future":"past"];return Yt($)?$(R):$.replace(/%s/i,R)},Or.set=function(M){var R,$;for($ in M)Yt(R=M[$])?this[$]=R:this["_"+$]=R;this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Or.months=function(M,R){return M?y(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||En).test(R)?"format":"standalone"][M.month()]:y(this._months)?this._months:this._months.standalone},Or.monthsShort=function(M,R){return M?y(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[En.test(R)?"format":"standalone"][M.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Or.monthsParse=function(M,R,$){var at,Vt,fe;if(this._monthsParseExact)return function(xe,Ee,Ce){var Pe,qe,kn,dn=xe.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Pe=0;Pe<12;++Pe)kn=H([2e3,Pe]),this._shortMonthsParse[Pe]=this.monthsShort(kn,"").toLocaleLowerCase(),this._longMonthsParse[Pe]=this.months(kn,"").toLocaleLowerCase();return Ce?Ee==="MMM"?(qe=Ze.call(this._shortMonthsParse,dn))!==-1?qe:null:(qe=Ze.call(this._longMonthsParse,dn))!==-1?qe:null:Ee==="MMM"?(qe=Ze.call(this._shortMonthsParse,dn))!==-1||(qe=Ze.call(this._longMonthsParse,dn))!==-1?qe:null:(qe=Ze.call(this._longMonthsParse,dn))!==-1||(qe=Ze.call(this._shortMonthsParse,dn))!==-1?qe:null}.call(this,M,R,$);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),at=0;at<12;at++)if(Vt=H([2e3,at]),$&&!this._longMonthsParse[at]&&(this._longMonthsParse[at]=new RegExp("^"+this.months(Vt,"").replace(".","")+"$","i"),this._shortMonthsParse[at]=new RegExp("^"+this.monthsShort(Vt,"").replace(".","")+"$","i")),$||this._monthsParse[at]||(fe="^"+this.months(Vt,"")+"|^"+this.monthsShort(Vt,""),this._monthsParse[at]=new RegExp(fe.replace(".",""),"i")),$&&R==="MMMM"&&this._longMonthsParse[at].test(M)||$&&R==="MMM"&&this._shortMonthsParse[at].test(M)||!$&&this._monthsParse[at].test(M))return at},Or.monthsRegex=function(M){return this._monthsParseExact?(P(this,"_monthsRegex")||Ln.call(this),M?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=Nn),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)},Or.monthsShortRegex=function(M){return this._monthsParseExact?(P(this,"_monthsRegex")||Ln.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=er),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)},Or.week=function(M){return ii(M,this._week.dow,this._week.doy).week},Or.firstDayOfYear=function(){return this._week.doy},Or.firstDayOfWeek=function(){return this._week.dow},Or.weekdays=function(M,R){var $=y(this._weekdays)?this._weekdays:this._weekdays[M&&M!==!0&&this._weekdays.isFormat.test(R)?"format":"standalone"];return M===!0?Ji($,this._week.dow):M?$[M.day()]:$},Or.weekdaysMin=function(M){return M===!0?Ji(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin},Or.weekdaysShort=function(M){return M===!0?Ji(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort},Or.weekdaysParse=function(M,R,$){var at,Vt,fe;if(this._weekdaysParseExact)return function(xe,Ee,Ce){var Pe,qe,kn,dn=xe.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Pe=0;Pe<7;++Pe)kn=H([2e3,1]).day(Pe),this._minWeekdaysParse[Pe]=this.weekdaysMin(kn,"").toLocaleLowerCase(),this._shortWeekdaysParse[Pe]=this.weekdaysShort(kn,"").toLocaleLowerCase(),this._weekdaysParse[Pe]=this.weekdays(kn,"").toLocaleLowerCase();return Ce?Ee==="dddd"?(qe=Ze.call(this._weekdaysParse,dn))!==-1?qe:null:Ee==="ddd"?(qe=Ze.call(this._shortWeekdaysParse,dn))!==-1?qe:null:(qe=Ze.call(this._minWeekdaysParse,dn))!==-1?qe:null:Ee==="dddd"?(qe=Ze.call(this._weekdaysParse,dn))!==-1||(qe=Ze.call(this._shortWeekdaysParse,dn))!==-1||(qe=Ze.call(this._minWeekdaysParse,dn))!==-1?qe:null:Ee==="ddd"?(qe=Ze.call(this._shortWeekdaysParse,dn))!==-1||(qe=Ze.call(this._weekdaysParse,dn))!==-1||(qe=Ze.call(this._minWeekdaysParse,dn))!==-1?qe:null:(qe=Ze.call(this._minWeekdaysParse,dn))!==-1||(qe=Ze.call(this._weekdaysParse,dn))!==-1||(qe=Ze.call(this._shortWeekdaysParse,dn))!==-1?qe:null}.call(this,M,R,$);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),at=0;at<7;at++)if(Vt=H([2e3,1]).day(at),$&&!this._fullWeekdaysParse[at]&&(this._fullWeekdaysParse[at]=new RegExp("^"+this.weekdays(Vt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[at]=new RegExp("^"+this.weekdaysShort(Vt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[at]=new RegExp("^"+this.weekdaysMin(Vt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[at]||(fe="^"+this.weekdays(Vt,"")+"|^"+this.weekdaysShort(Vt,"")+"|^"+this.weekdaysMin(Vt,""),this._weekdaysParse[at]=new RegExp(fe.replace(".",""),"i")),$&&R==="dddd"&&this._fullWeekdaysParse[at].test(M)||$&&R==="ddd"&&this._shortWeekdaysParse[at].test(M)||$&&R==="dd"&&this._minWeekdaysParse[at].test(M)||!$&&this._weekdaysParse[at].test(M))return at},Or.weekdaysRegex=function(M){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Xr.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=ai),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)},Or.weekdaysShortRegex=function(M){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Xr.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rr),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Or.weekdaysMinRegex=function(M){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Xr.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zr),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Or.isPM=function(M){return(M+"").toLowerCase().charAt(0)==="p"},Or.meridiem=function(M,R,$){return 11<M?$?"pm":"PM":$?"am":"AM"},ma("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(M){var R=M%10;return M+(J(M%100/10)===1?"th":R===1?"st":R===2?"nd":R===3?"rd":"th")}}),_.lang=kt("moment.lang is deprecated. Use moment.locale instead.",ma),_.langData=kt("moment.langData is deprecated. Use moment.localeData instead.",fi);var La=Math.abs;function ki(M,R,$,at){var Vt=je(R,$);return M._milliseconds+=at*Vt._milliseconds,M._days+=at*Vt._days,M._months+=at*Vt._months,M._bubble()}function lc(M){return M<0?Math.floor(M):Math.ceil(M)}function Sh(M){return 4800*M/146097}function ol(M){return 146097*M/4800}function So(M){return function(){return this.as(M)}}var Ch=So("ms"),kd=So("s"),mp=So("m"),Td=So("h"),Ed=So("d"),va=So("w"),Sd=So("M"),Mh=So("Q"),Ah=So("y");function Co(M){return function(){return this.isValid()?this._data[M]:NaN}}var ru=Co("milliseconds"),Za=Co("seconds"),iu=Co("minutes"),_a=Co("hours"),Ds=Co("days"),sl=Co("months"),Mo=Co("years"),qi=Math.round,pi={ss:44,s:45,m:45,h:22,d:26,M:11},Qa=Math.abs;function Ia(M){return(0<M)-(M<0)||+M}function ea(){if(!this.isValid())return this.localeData().invalidDate();var M,R,$=Qa(this._milliseconds)/1e3,at=Qa(this._days),Vt=Qa(this._months);R=_t((M=_t($/60))/60),$%=60,M%=60;var fe=_t(Vt/12),xe=Vt%=12,Ee=at,Ce=R,Pe=M,qe=$?$.toFixed(3).replace(/\.?0+$/,""):"",kn=this.asSeconds();if(!kn)return"P0D";var dn=kn<0?"-":"",hr=Ia(this._months)!==Ia(kn)?"-":"",dr=Ia(this._days)!==Ia(kn)?"-":"",Br=Ia(this._milliseconds)!==Ia(kn)?"-":"";return dn+"P"+(fe?hr+fe+"Y":"")+(xe?hr+xe+"M":"")+(Ee?dr+Ee+"D":"")+(Ce||Pe||qe?"T":"")+(Ce?Br+Ce+"H":"")+(Pe?Br+Pe+"M":"")+(qe?Br+qe+"S":"")}var Hn=bi.prototype;return Hn.isValid=function(){return this._isValid},Hn.abs=function(){var M=this._data;return this._milliseconds=La(this._milliseconds),this._days=La(this._days),this._months=La(this._months),M.milliseconds=La(M.milliseconds),M.seconds=La(M.seconds),M.minutes=La(M.minutes),M.hours=La(M.hours),M.months=La(M.months),M.years=La(M.years),this},Hn.add=function(M,R){return ki(this,M,R,1)},Hn.subtract=function(M,R){return ki(this,M,R,-1)},Hn.as=function(M){if(!this.isValid())return NaN;var R,$,at=this._milliseconds;if((M=zt(M))==="month"||M==="quarter"||M==="year")switch(R=this._days+at/864e5,$=this._months+Sh(R),M){case"month":return $;case"quarter":return $/3;case"year":return $/12}else switch(R=this._days+Math.round(ol(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)}},Hn.asMilliseconds=Ch,Hn.asSeconds=kd,Hn.asMinutes=mp,Hn.asHours=Td,Hn.asDays=Ed,Hn.asWeeks=va,Hn.asMonths=Sd,Hn.asQuarters=Mh,Hn.asYears=Ah,Hn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*J(this._months/12):NaN},Hn._bubble=function(){var M,R,$,at,Vt,fe=this._milliseconds,xe=this._days,Ee=this._months,Ce=this._data;return 0<=fe&&0<=xe&&0<=Ee||fe<=0&&xe<=0&&Ee<=0||(fe+=864e5*lc(ol(Ee)+xe),Ee=xe=0),Ce.milliseconds=fe%1e3,M=_t(fe/1e3),Ce.seconds=M%60,R=_t(M/60),Ce.minutes=R%60,$=_t(R/60),Ce.hours=$%24,Ee+=Vt=_t(Sh(xe+=_t($/24))),xe-=lc(ol(Vt)),at=_t(Ee/12),Ee%=12,Ce.days=xe,Ce.months=Ee,Ce.years=at,this},Hn.clone=function(){return je(this)},Hn.get=function(M){return M=zt(M),this.isValid()?this[M+"s"]():NaN},Hn.milliseconds=ru,Hn.seconds=Za,Hn.minutes=iu,Hn.hours=_a,Hn.days=Ds,Hn.weeks=function(){return _t(this.days()/7)},Hn.months=sl,Hn.years=Mo,Hn.humanize=function(M){if(!this.isValid())return this.localeData().invalidDate();var R,$,at,Vt,fe,xe,Ee,Ce,Pe,qe,kn=this.localeData(),dn=(R=!M,$=kn,at=je(this).abs(),Vt=qi(at.as("s")),fe=qi(at.as("m")),xe=qi(at.as("h")),Ee=qi(at.as("d")),Ce=qi(at.as("M")),Pe=qi(at.as("y")),(qe=Vt<=pi.ss&&["s",Vt]||Vt<pi.s&&["ss",Vt]||fe<=1&&["m"]||fe<pi.m&&["mm",fe]||xe<=1&&["h"]||xe<pi.h&&["hh",xe]||Ee<=1&&["d"]||Ee<pi.d&&["dd",Ee]||Ce<=1&&["M"]||Ce<pi.M&&["MM",Ce]||Pe<=1&&["y"]||["yy",Pe])[2]=R,qe[3]=0<+this,qe[4]=$,function(hr,dr,Br,ur,ba){return ba.relativeTime(dr||1,!!Br,hr,ur)}.apply(null,qe));return M&&(dn=kn.pastFuture(+this,dn)),kn.postformat(dn)},Hn.toISOString=ea,Hn.toString=ea,Hn.toJSON=ea,Hn.locale=Ai,Hn.localeData=Va,Hn.toIsoString=kt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ea),Hn.lang=uc,rt("X",0,0,"unix"),rt("x",0,0,"valueOf"),Te("x",Ye),Te("X",/[+-]?\d+(\.\d{1,3})?/),xn("X",function(M,R,$){$._d=new Date(1e3*parseFloat(M,10))}),xn("x",function(M,R,$){$._d=new Date(J(M))}),_.version="2.24.0",f=An,_.fn=Ie,_.min=function(){return mr("isBefore",[].slice.call(arguments,0))},_.max=function(){return mr("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=H,_.unix=function(M){return An(1e3*M)},_.months=function(M,R){return nu(M,R,"months")},_.isDate=I,_.locale=ma,_.invalid=K,_.duration=je,_.isMoment=dt,_.weekdays=function(M,R,$){return al(M,R,$,"weekdays")},_.parseZone=function(){return An.apply(null,arguments).parseZone()},_.localeData=fi,_.isDuration=ei,_.monthsShort=function(M,R){return nu(M,R,"monthsShort")},_.weekdaysMin=function(M,R,$){return al(M,R,$,"weekdaysMin")},_.defineLocale=lo,_.updateLocale=function(M,R){if(R!=null){var $,at,Vt=hi;(at=ti(M))!=null&&(Vt=at._config),($=new pe(R=_e(Vt,R))).parentLocale=rr[M],rr[M]=$,ma(M)}else rr[M]!=null&&(rr[M].parentLocale!=null?rr[M]=rr[M].parentLocale:rr[M]!=null&&delete rr[M]);return rr[M]},_.locales=function(){return Ot(rr)},_.weekdaysShort=function(M,R,$){return al(M,R,$,"weekdaysShort")},_.normalizeUnits=zt,_.relativeTimeRounding=function(M){return M===void 0?qi:typeof M=="function"&&(qi=M,!0)},_.relativeTimeThreshold=function(M,R){return pi[M]!==void 0&&(R===void 0?pi[M]:(pi[M]=R,M==="s"&&(pi.ss=R-1),!0))},_.calendarFormat=function(M,R){var $=M.diff(R,"days",!0);return $<-6?"sameElse":$<-1?"lastWeek":$<0?"lastDay":$<1?"sameDay":$<2?"nextDay":$<7?"nextWeek":"sameElse"},_.prototype=Ie,_.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,x="",E=0,A=-1,I=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||I===1))if(A!==N-1&&I===2){if(x.length<2||E!==2||x.charCodeAt(x.length-1)!==46||x.charCodeAt(x.length-2)!==46){if(x.length>2){var P=x.lastIndexOf("/");if(P!==x.length-1){P===-1?(x="",E=0):E=(x=x.slice(0,P)).length-1-x.lastIndexOf("/"),A=N,I=0;continue}}else if(x.length===2||x.length===1){x="",E=0,A=N,I=0;continue}}_&&(x.length>0?x+="/..":x="..",E=2)}else x.length>0?x+="/"+l.slice(A+1,N):x=l.slice(A+1,N),E=N-A-1;A=N,I=0}else y===46&&I!==-1?++I:I=-1}return x}var f={resolve:function(){for(var l,_="",y=!1,x=arguments.length-1;x>=-1&&!y;x--){var E;x>=0?E=arguments[x]:(l===void 0&&(l=process.cwd()),E=l),h(E),E.length!==0&&(_=E+"/"+_,y=E.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?".":f.normalize(l)},relative:function(l,_){if(h(l),h(_),l===_||(l=f.resolve(l))===(_=f.resolve(_)))return"";for(var y=1;y<l.length&&l.charCodeAt(y)===47;++y);for(var x=l.length,E=x-y,A=1;A<_.length&&_.charCodeAt(A)===47;++A);for(var I=_.length-A,N=E<I?E:I,P=-1,W=0;W<=N;++W){if(W===N){if(I>N){if(_.charCodeAt(A+W)===47)return _.slice(A+W+1);if(W===0)return _.slice(A+W)}else E>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<=x;++W)W!==x&&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,x=-1,E=!0,A=l.length-1;A>=1;--A)if((_=l.charCodeAt(A))===47){if(!E){x=A;break}}else E=!1;return x===-1?y?"/":".":y&&x===1?"//":l.slice(0,x)},basename:function(l,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');h(l);var y,x=0,E=-1,A=!0;if(_!==void 0&&_.length>0&&_.length<=l.length){if(_.length===l.length&&_===l)return"";var I=_.length-1,N=-1;for(y=l.length-1;y>=0;--y){var P=l.charCodeAt(y);if(P===47){if(!A){x=y+1;break}}else N===-1&&(A=!1,N=y+1),I>=0&&(P===_.charCodeAt(I)?--I==-1&&(E=y):(I=-1,E=N))}return x===E?E=N:E===-1&&(E=l.length),l.slice(x,E)}for(y=l.length-1;y>=0;--y)if(l.charCodeAt(y)===47){if(!A){x=y+1;break}}else E===-1&&(A=!1,E=y+1);return E===-1?"":l.slice(x,E)},extname:function(l){h(l);for(var _=-1,y=0,x=-1,E=!0,A=0,I=l.length-1;I>=0;--I){var N=l.charCodeAt(I);if(N!==47)x===-1&&(E=!1,x=I+1),N===46?_===-1?_=I:A!==1&&(A=1):_!==-1&&(A=-1);else if(!E){y=I+1;break}}return _===-1||x===-1||A===0||A===1&&_===x-1&&_===y+1?"":l.slice(_,x)},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 x=y.dir||y.root,E=y.base||(y.name||"")+(y.ext||"");return x?x===y.root?x+E:x+"/"+E:E}(0,l)},parse:function(l){h(l);var _={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return _;var y,x=l.charCodeAt(0),E=x===47;E?(_.root="/",y=1):y=0;for(var A=-1,I=0,N=-1,P=!0,W=l.length-1,H=0;W>=y;--W)if((x=l.charCodeAt(W))!==47)N===-1&&(P=!1,N=W+1),x===46?A===-1?A=W:H!==1&&(H=1):A!==-1&&(H=-1);else if(!P){I=W+1;break}return A===-1||N===-1||H===0||H===1&&A===N-1&&A===I+1?N!==-1&&(_.base=_.name=I===0&&E?l.slice(1,N):l.slice(I,N)):(I===0&&E?(_.name=l.slice(1,A),_.base=l.slice(1,N)):(_.name=l.slice(I,A),_.base=l.slice(I,N)),_.ext=l.slice(A,N)),I>0?_.dir=l.slice(0,I-1):E&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};f.posix=f,a.exports=f},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},lw={};function Ko(a){var h=lw[a];if(h!==void 0)return h.exports;var s=lw[a]={id:a,loaded:!1,exports:{}};return zE[a].call(s.exports,s,s.exports,Ko),s.loaded=!0,s.exports}Ko.c=lw,Ko.n=a=>{var h=a&&a.__esModule?()=>a.default:()=>a;return Ko.d(h,{a:h}),h},Ko.d=(a,h)=>{for(var s in h)Ko.o(h,s)&&!Ko.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:h[s]})},Ko.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Ko.o=(a,h)=>Object.prototype.hasOwnProperty.call(a,h),Ko.r=a=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},Ko.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);var US=Ko(Ko.s=7458).Z,o4=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},gm={},F8={};(function(a){var h=o4&&o4.__values||function(f){var l=typeof Symbol=="function"&&Symbol.iterator,_=l&&f[l],y=0;if(_)return _.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&y>=f.length&&(f=void 0),{value:f&&f[y++],done:!f}}};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:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",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","animals"]},{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:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",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(f,l){var _,y;l===void 0&&(l=[]);var x=new Set(l),E=[];try{for(var A=h(a.wordList[f]),I=A.next();!I.done;I=A.next()){var N=I.value;(l.length===0||N.categories.some(function(P){return x.has(P)}))&&E.push(N.word)}}catch(P){_={error:P}}finally{try{I&&!I.done&&(y=A.return)&&y.call(A)}finally{if(_)throw _.error}}return E}a.getWordsByCategory=s})(F8);var s4=o4&&o4.__assign||function(){return s4=Object.assign||function(a){for(var h,s=1,f=arguments.length;s<f;s++){h=arguments[s];for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(a[l]=h[l])}return a},s4.apply(this,arguments)};Object.defineProperty(gm,"__esModule",{value:!0});gm.totalUniqueSlugs=HE=gm.generateSlug=void 0;var hw=F8,P8=3;function WE(a,h){for(var s=a||P8,f={partsOfSpeech:Y8(s),categories:{},format:"kebab"},l=s4(s4({},f),h),_=[],y=0;y<s;y++){var x=l.partsOfSpeech[y],E=hw.getWordsByCategory(l.partsOfSpeech[y],l.categories[x]),A=E[Math.floor(Math.random()*E.length)];_.push(A)}return qE(_,l.format)}var HE=gm.generateSlug=WE;function Y8(a){for(var h=[],s=0;s<a-1;s++)h.push("adjective");return h.push("noun"),h}function qE(a,h){return h==="kebab"?a.join("-").toLowerCase():h==="camel"?a.map(function(s,f){return f===0?s.toLowerCase():s[0].toUpperCase()+s.slice(1).toLowerCase()}).join(""):h==="lower"?a.join(" ").toLowerCase():h==="sentence"?a.map(function(s,f){return f===0?s[0].toUpperCase()+s.slice(1).toLowerCase():s}).join(" "):a.map(function(s){return s[0].toUpperCase()+s.slice(1).toLowerCase()}).join(" ")}function $E(a,h){for(var s,f,l=hw.getWordsByCategory("adjective",(s=h==null?void 0:h.categories)===null||s===void 0?void 0:s.adjective).length,_=hw.getWordsByCategory("noun",(f=h==null?void 0:h.categories)===null||f===void 0?void 0:f.noun).length,y={adjective:l,noun:_},x=a||P8,E=(h==null?void 0:h.partsOfSpeech)||Y8(x),A=1,I=0;I<x;I++)A*=y[E[I]];return A}gm.totalUniqueSlugs=$E;export{Bb as $,yS as A,H8 as B,x7 as C,XE as D,n7 as E,QE as F,JE as G,ZE as H,GE as I,LS as J,IS as K,BS as L,RS as M,VE as N,FS as O,Gc as P,vS as Q,Bw as R,OS as S,aS as T,i7 as U,lS as V,nS as W,PS as X,KE as Y,gS as Z,oS as _,a7 as a,ES as a0,YS as a1,MS as a2,xS as a3,jS as a4,bS as a5,dS as a6,cS as a7,vd as a8,rn as a9,pS as aa,tS as ab,US as ac,HE as ad,sS as b,uS as c,r7 as d,Mw as e,eS as f,s7 as g,fS as h,NS as i,AS as j,rS as k,iS as l,DS as m,hS as n,m7 as o,SS as p,CS as q,wS as r,q8 as s,Sx as t,TS as u,v7 as v,kS as w,g7 as x,_S as y,mS as z};