PageSourceSearch

https://xpeak.ai/_next/static/chunks/5452.8b23dfff9ca8e0c8.js

js xpeak.ai collected 2026-10-05 13:24:42 UTC 355,933 bytes, 73 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5452],{1937:(t,e,r)=>{"use strict";r.d(e,{H:()=>s,R:()=>o});var n=r(89959),a=r(70903),i={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},s=(0,n.K)(function(t="fatal"){let e=i.fatal;"string"==typeof t?t.toLowerCase()in i&&(e=i[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=i.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=i.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=i.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,l("WARN"))),e<=i.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=i.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=i.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=a().format("ss.SSS");return`%c${e} : ${t} : `},"format")},2209:(t,e,r)=>{"use strict";r.d(e,{pe:()=>M,PX:()=>tt,ru:()=>Q,Un:()=>J,$t:()=>to,Sm:()=>tc,C4:()=>tl,$C:()=>U,rY:()=>tu,sM:()=>Y,KL:()=>th,Ib:()=>R,dq:()=>tn,I5:()=>ti,yT:()=>H,vU:()=>C,_K:()=>ts,bH:()=>Z});var n,a=r(34428),i=r(1937),o=r(89959),s=r(63689),l=r(34182);function c(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let r=function(...n){let a=e?e.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);let o=t.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(c.Cache||Map),r}function u(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}c.Cache=Map;var h=r(8959),d=r(67840),p=r(31584),f=r(55592),g=r(74137).Buffer;function m(t,e,r,n=new Map,a){let i=a?.(t,e,r,n);if(void 0!==i)return i;if((0,p.s)(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let i=0;i<t.length;i++)e[i]=m(t[i],i,r,n,a);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[i,o]of(n.set(t,e),t))e.set(i,m(o,i,r,n,a));return e}if(t instanceof Set){let e=new Set;for(let i of(n.set(t,e),t))e.add(m(i,void 0,r,n,a));return e}if(void 0!==g&&g.isBuffer(t))return t.subarray();if((0,f.i)(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,e);for(let i=0;i<t.length;i++)e[i]=m(t[i],i,r,n,a);return e}if(t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,e),y(e,t,r,n,a),e}if("undefined"!=typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return n.set(t,e),y(e,t,r,n,a),e}if("undefined"!=typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return n.set(t,e),y(e,t,r,n,a),e}if(t instanceof Error){let e=structuredClone(t);return n.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,y(e,t,r,n,a),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return n.set(t,e),y(e,t,r,n,a),e}if(t instanceof Number){let e=new Number(t.valueOf());return n.set(t,e),y(e,t,r,n,a),e}if(t instanceof String){let e=new String(t.valueOf());return n.set(t,e),y(e,t,r,n,a),e}if("object"==typeof t&&function(t){switch((0,h.b)(t)){case d.R_:case d.Uw:case d.cT:case d.iq:case d.$V:case d.vC:case d.ri:case d.ML:case d.XZ:case d.i1:case d._u:case d.pj:case d.kj:case d.GX:case d.Av:case d.NA:case d.OG:case d.VP:case d.Qb:case d.q:case d.x6:case d.ZR:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),y(e,t,r,n,a),e}return t}function y(t,e,r=t,n,a){let i=[...Object.keys(e),...u(e)];for(let o=0;o<i.length;o++){let s=i[o],l=Object.getOwnPropertyDescriptor(t,s);(null==l||l.writable)&&(t[s]=m(e[s],s,r,n,a))}}function b(t){var e;return e=(e,r,n,a)=>{let i=void 0;if(void 0!==i)return i;if("object"==typeof t){if((0,h.b)(t)===d.GX&&"function"!=typeof t.constructor){let e={};return a.set(t,e),y(e,t,n,a),e}switch(Object.prototype.toString.call(t)){case d.kj:case d.OG:case d.$V:{let e=new t.constructor(t?.valueOf());return y(e,t),e}case d.R_:{let e={};return y(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},m(t,void 0,t,new Map,e)}var x=r(26432),k=r(19694);function w(t){return"object"==typeof t&&null!==t}function _(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;
1if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var v=r(36073),A=r(74137).Buffer;function S(){}var M="​",E={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},T=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,O=(0,o.K)(function(t,e){let r=L(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,a.$i)(t),n=(0,a.hH)(n,[...t])}else n=r.args;if(!n)return;let i=(0,a.Ch)(t,e),o="config";return void 0!==n[o]&&("flowchart-v2"===i&&(i="flowchart"),n[i]=n[o],delete n[o]),n},"detectInit"),L=(0,o.K)(function(t,e=null){try{let r,n=RegExp(`[%]{2}(?![{]${T.source})(?=[}][%]{2}).*
2`,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),i.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let o=[];for(;null!==(r=a.DB.exec(t));)if(r.index===a.DB.lastIndex&&a.DB.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:t,args:e})}if(0===o.length)return{type:t,args:null};return 1===o.length?o[0]:o}catch(r){return i.R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),C=(0,o.K)(function(t){return t.replace(a.DB,"")},"removeDirectives"),$=(0,o.K)(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return -1},"isSubstringInArray");function R(t,e){return t?E[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function N(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,s.J)(r):r}(0,o.K)(R,"interpolateToCurve"),(0,o.K)(N,"formatUrl");var I=(0,o.K)((t,...e)=>{let r=t.split("."),n=r.length-1,a=r[n],o=window;for(let e=0;e<n;e++)if(!(o=o[r[e]]))return void i.R.error(`Function name: ${t} not found in window`);o[a](...e)},"runFunc");function K(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function D(t){let e,r=0;return t.forEach(t=>{r+=K(t,e),e=t}),z(t,r/2)}function P(t){return 1===t.length?t[0]:D(t)}(0,o.K)(K,"distance"),(0,o.K)(D,"traverseEdge"),(0,o.K)(P,"calcLabelPosition");var j=(0,o.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),z=(0,o.K)((t,e)=>{let r,n=e;for(let e of t){if(r){let t=K(e,r);if(0===t)return r;if(t<n)n-=t;else{let a=n/t;if(a<=0)return r;if(a>=1)return{x:e.x,y:e.y};if(a>0&&a<1)return{x:j((1-a)*r.x+a*e.x,5),y:j((1-a)*r.y+a*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),F=(0,o.K)((t,e,r)=>{i.R.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=z(e,25),a=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(e[0].x+n.x)/2,s.y=-Math.cos(o)*a+(e[0].y+n.y)/2,s},"calcCardinalityPosition");function B(t,e,r){let n=structuredClone(r);i.R.info("our points",n),"start_left"!==e&&"start_right"!==e&&n.reverse();let a=z(n,25+t),o=10+.5*t,s=Math.atan2(n[0].y-a.y,n[0].x-a.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(n[0].x+a.x)/2,l.y=-Math.cos(s+Math.PI)*o+(n[0].y+a.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(n[0].x+a.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(n[0].y+a.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(n[0].x+a.x)/2-5,l.y=-Math.cos(s)*o+(n[0].y+a.y)/2-5):(l.x=Math.sin(s)*o+(n[0].x+a.x)/2,l.y=-Math.cos(s)*o+(n[0].y+a.y)/2),l}function Y(t){let e="",r="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}(0,o.K)(B,"calcTerminalLabelPosition"),(0,o.K)(Y,"getStylesFromArray");var W=0,U=(0,o.K)(()=>(W++,"id-"+Math.random().toString(36).substr(2,12)+"-"+W),"generateId");function q(t){let e="",r="0123456789abcdef",n=r.length;for(let a=0;a<t;a++)e+=r.charAt(Math.floor(Math.random()*n));return e}(0,o.K)(q,"makeRandomHex");var H=(0,o.K)(t=>q(t.length),"random"),X=(0,o.K)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}
2,"getTextObj"),G=(0,o.K)(function(t,e){let r=e.text.replace(a.Y2.lineBreakRegex," "),[,n]=ti(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),void 0!==e.class&&i.attr("class",e.class);let o=i.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),i},"drawSimpleText"),Z=c((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),a.Y2.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),i=[],o="";return n.forEach((t,a)=>{let s=J(`${t} `,r),l=J(o,r);if(s>e){let{hyphenatedStrings:n,remainingWord:a}=V(t,e,"-",r);i.push(o,...n),o=a}else l+s>=e?(i.push(o),o=t):o=[o,t].filter(Boolean).join(" ");a+1===n.length&&i.push(o)}),i.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),V=c((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let a=[...t],i=[],o="";return a.forEach((t,s)=>{let l=`${o}${t}`;if(J(l,n)>=e){let t=a.length===s+1,e=`${l}${r}`;i.push(t?l:e),o=""}else o=l}),{hyphenatedStrings:i,remainingWord:o}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function Q(t,e){return tt(t,e).height}function J(t,e){return tt(t,e).width}(0,o.K)(Q,"calculateTextHeight"),(0,o.K)(J,"calculateTextWidth");var tt=c((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};let[,o]=ti(r),s=t.split(a.Y2.lineBreakRegex),c=[],u=(0,l.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let t of["sans-serif",n]){let e=0,r={width:0,height:0,lineHeight:0};for(let n of s){let a=X();a.text=n||M;let s=G(h,a).style("font-size",o).style("font-weight",i).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}c.push(r)}h.remove();let d=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),te=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K)(this,"InitIDGenerator")}},tr=(0,o.K)(function(t){return n=n||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),n.innerHTML=t,unescape(n.textContent)},"entityDecode");function tn(t){return"str"in t}(0,o.K)(tn,"isDetailedError");var ta=(0,o.K)((t,e,r,n)=>{if(!n)return;let a=t.node()?.getBBox();a&&t.append("text").text(n).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)},"insertTitle"),ti=(0,o.K)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function to(t,e){return function(t,...e){return function(t,...e){let r=e.slice(0,-1),n=e[e.length-1],a=t;for(let t=0;t<r.length;t++)a=function t(e,r,n,a){if((0,p.s)(e)&&(e=Object(e)),null==r||"object"!=typeof r)return e;if(a.has(r))return function(t){if((0,p.s)(t))return t;if(Array.isArray(t)||(0,f.i)(t)||t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let e=new r(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new r(t.errors,t.message,{cause:t.cause}):new r(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"undefined"!=typeof File&&t instanceof File?new r([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(a.get(r));if(a.set(r,e),Array.isArray(r)){r=r.slice();for(let t=0;t<r.length;t++)r[t]=r[t]??void 0}let i=[...Object.keys(r),...u(r)];for(let s=0;s<i.length;s++){let l=i[s];if("__proto__"===l)continue;let c=r[l],u=e[l];if((0,x.N)(c)&&(c={...c}),(0,x.N)(u)&&(u={...u}),void 0!==A&&A.isBuffer(c)&&(c=b(c)),Array.isArray(c))if(Array.isArray(u)){let t=[],e=Reflect.ownKeys(u);for(let r=0;r<e.length;r++){let n=e[r];t[n]=u[n]}u=t}else{var o;if(w(o=u)&&(0,k.X)(o)){let t=[];for(let e=0;e<u.length;e++)t[e]=u[e];u=t}else u=[]}let h=n(u,c,l,e,r,a);void 0!==h?e[l]=h:Array.isArray(c)||w(u)&&w(c)&&(_(u)||_(c)||(0,v.i)(u)||(0,v.i)(c))?e[l]=t(u,c,n,a):null==u&&_(c)?e[l]=t({}
2,c,n,a):null==u&&(0,v.i)(c)?e[l]=b(c):(void 0===u||void 0!==c)&&(e[l]=c)}return e}(a,r[t],n,new Map);return a}(t,...e,S)}({},t,e)}(0,o.K)(to,"cleanAndMerge");var ts={assignWithDepth:a.hH,wrapLabel:Z,calculateTextHeight:Q,calculateTextWidth:J,calculateTextDimensions:tt,cleanAndMerge:to,detectInit:O,detectDirective:L,isSubstringInArray:$,interpolateToCurve:R,calcLabelPosition:P,calcCardinalityPosition:F,calcTerminalLabelPosition:B,formatUrl:N,getStylesFromArray:Y,generateId:U,random:H,runFunc:I,entityDecode:tr,insertTitle:ta,isLabelCoordinateInPath:td,parseFontSize:ti,InitIDGenerator:te},tl=(0,o.K)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl\xb0\xb0"+e+"\xb6\xdf":"fl\xb0"+e+"\xb6\xdf"})},"encodeEntities"),tc=(0,o.K)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),tu=(0,o.K)((t,e,{counter:r=0,prefix:n,suffix:a},i)=>i||`${n?`${n}_`:""}${t}_${e}_${r}${a?`_${a}`:""}`,"getEdgeId");function th(t){return t??null}function td(t,e){let r=Math.round(t.x),n=Math.round(t.y),a=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return a.includes(r.toString())||a.includes(n.toString())}(0,o.K)(th,"handleUndefinedAttr"),(0,o.K)(td,"isLabelCoordinateInPath")},8588:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},8959:(t,e,r)=>{"use strict";function n(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>n})},14272:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(53844),a=r(37543);let i=(t,e)=>{let r=n.A.parse(t),i={};for(let t in e)e[t]&&(i[t]=r[t]+e[t]);return(0,a.A)(t,i)}},14703:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(18319),a=r(53844);let i=t=>!((t=>{let{r:e,g:r,b:i}=a.A.parse(t),o=.2126*n.A.channel.toLinear(e)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(i);return n.A.lang.round(o)})(t)>=.5)},18319:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});let n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},a)=>
2{if(!e)return 2.55*r;t/=360,e/=100;let i=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-i;switch(a){case"r":return 255*n.hue2rgb(o,i,t+1/3);case"g":return 255*n.hue2rgb(o,i,t);case"b":return 255*n.hue2rgb(o,i,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let a=Math.max(t/=255,e/=255,r/=255),i=Math.min(t,e,r),o=(a+i)/2;if("l"===n)return 100*o;if(a===i)return 0;let s=a-i;if("s"===n)return 100*(o>.5?s/(2-a-i):s/(a+i));switch(a){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},a={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},19694:(t,e,r)=>{"use strict";function n(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}r.d(e,{X:()=>n})},25604:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(18319),a=r(53844);let i=(t,e,r)=>{let i=a.A.parse(t),o=i[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(i[e]=s),a.A.stringify(i)}},26432:(t,e,r)=>{"use strict";r.d(e,{N:()=>a});var n=r(8959);function a(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,n.b)(t)}},27859:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(34428),a=r(89959),i=r(34182),o=(0,a.K)(t=>{let{securityLevel:e}=(0,n.D7)(),r=(0,i.Ltv)("body");if("sandbox"===e){let e=(0,i.Ltv)(`#i${t}`),n=e.node()?.contentDocument??document;r=(0,i.Ltv)(n.body)}return r.select(`#${t}`)},"selectSvgElement")},27954:(t,e,r)=>{"use strict";r.d(e,{IU:()=>w,Jo:()=>N,T_:()=>S,UQ:()=>k,g0:()=>to,jP:()=>v,lP:()=>x});var n=r(26451),a=r(75090),i=r(89929),o=r(35212),s=r(50509),l=r(2209),c=r(34428),u=r(1937),h=r(89959),d=r(34182),p=r(93221),f=(0,h.K)((t,e,r,n,a,i=!1,o)=>{e.arrowTypeStart&&y(t,"start",e.arrowTypeStart,r,n,a,i,o),e.arrowTypeEnd&&y(t,"end",e.arrowTypeEnd,r,n,a,i,o)},"addEdgeMarkers"),g={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},m=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],y=(0,h.K)((t,e,r,n,a,i,o=!1,s)=>{let l=g[r],c=l&&m.includes(l.type);if(!l)return void u.R.warn(`Unknown arrow type: ${r}`);let h=l.type,d=`${a}_${i}-${h}${"start"===e?"Start":"End"}${o&&c?"-margin":""}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),a=`${d}_${r}`;if(!document.getElementById(a)){let t=document.getElementById(d);if(t){let e=t.cloneNode(!0);e.id=a,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${n}#${a})`)}else t.attr(`marker-${e}`,`url(${n}#${d})`)},"addEdgeMarker"),b=(0,h.K)(t=>"string"==typeof t?t:(0,c.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),x=new Map,k=new Map,w=(0,h.K)(()=>{x.clear(),k.clear()},"clear"),_=(0,h.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),v=(0,h.K)(async(t,e)=>{let r,o=(0,c.D7)(),l=(0,c.E)(o),{labelStyles:h}=(0,a.GX)(e);e.labelStyle=h;let p=t.insert("g").attr("class","edgeLabel"),f=p.insert("g").attr("class","label").attr("data-id",e.id),g="markdown"===e.labelType,m=await (0,s.G)(t,e.label,{style:_(e.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:g,width:void 0},o);f.node().appendChild(m),u.R.info("abc82",e,e.labelType);let y=m.getBBox(),b=y;if(l){let t=m.children[0],e=(0,d.Ltv)(m);b=y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}else{let t=(0,d.Ltv)(m).select("text").node();t&&"function"==typeof t.getBBox&&(b=t.getBBox())}if(f.attr("transform",(0,i.Wg)(b,l)),x.set(e.id,p),e.width=y.width,e.height=y.height,e.startLabelLeft){let a=t.insert("g").attr("class","edgeTerminals"),o=a.insert("g").attr("class","inner"),s=await (0,n.DA)(o,e.startLabelLeft,_(e.labelStyle)||"",!1,!1);r=s;let c=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}o.attr("transform",(0,i.Wg)(c,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).startLeft=a,A(r,e.startLabelLeft)}if(e.startLabelRight){let a=t.insert("g").attr("class","edgeTerminals"),o=a.insert("g").attr("class","inner"),s=await (0,n.DA)(o,e.startLabelRight,_(e.labelStyle)||"",!1,!1);r=s;let c=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}o.attr("transform",(0,i.Wg)(c,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).startRight=a,A(r,e.startLabelRight)}if(e.endLabelLeft){let a=t.insert("g").attr("class","edgeTerminals"),o=a.insert("g").attr("class","inner"),s=await (0,n.DA)(a,e.endLabelLeft,_(e.labelStyle)||"",!1,!1);r=s;let c=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}o.attr("transform",(0,i.Wg)(c,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).endLeft=a,A(r,e.endLabelLeft)}if(e.endLabelRight){let a=t.insert("g").attr("class","edgeTerminals"),o=a.insert("g").attr("class","inner"),s=await (0,n.DA)(a,e.endLabelRight,_(e.labelStyle)||"",!1,!1);r=s;let c=s.getBBox();if(l){let t=s.children[0],e=(0,d.Ltv)(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}o.attr("transform",(0,i.Wg)(c,l)),k.get(e.id)||k.set(e.id,{}),k.get(e.id).endRight=a,A(r,e.endLabelRight)}return m},"insertEdgeLabel");function A(t,e){(0,c.E)((0,c.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,h.K)(A,"setTerminalWidth");var S=(0,h.K)((t,e)=>{u.R.debug("Moving label abc88 ",t.id,t.label,x.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,n=(0,c.D7)(),{subGraphTitleTotalMargin:a}=(0,o.O)(n);if(t.label){let n=x.get(t.id),i=t.x,o=t.y;if(r){let n=l._K.calcLabelPosition(r);u.R.debug("Moving label "+t.label+" from (",i,",",o,") to (",n.x,",",n.y,") abc88"),e.updatedPath&&(i=n.x,o=n.y)}n.attr("transform",`translate(${i}, ${o+a/2})`)}if(t.startLabelLeft){let e=k.get(t.id).startLeft,n=t.x,a=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);
2n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.startLabelRight){let e=k.get(t.id).startRight,n=t.x,a=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.endLabelLeft){let e=k.get(t.id).endLeft,n=t.x,a=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.endLabelRight){let e=k.get(t.id).endRight,n=t.x,a=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}},"positionEdgeLabel"),M=(0,h.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,n]=e,a=Math.abs(n.x-r.x),i=Math.abs(n.y-r.y);return a<.001||i<.001?e:i>=a?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),E=(0,h.K)((t,e)=>{let r=t.x,n=t.y,a=Math.abs(e.x-r),i=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return a>=o||i>=s},"outsideNode"),T=(0,h.K)((t,e,r)=>{u.R.debug(`intersection calc abc89:
3  outsidePoint: ${JSON.stringify(e)}
4  insidePoint : ${JSON.stringify(r)}
5  node        : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,a=t.y,i=Math.abs(n-r.x),o=t.width/2,s=r.x<e.x?o-i:o+i,l=t.height/2,c=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(a-e.y)*o>Math.abs(n-e.x)*l){let t=r.y<e.y?e.y-l-a:a-l-e.y;s=h*t/c;let n={x:r.x<e.x?r.x+s:r.x-h+s,y:r.y<e.y?r.y+c-t:r.y-c+t};return 0===s&&(n.x=e.x,n.y=e.y),0===h&&(n.x=e.x),0===c&&(n.y=e.y),u.R.debug(`abc89 top/bottom calc, Q ${c}, q ${t}, R ${h}, r ${s}`,n),n}{let t=c*(s=r.x<e.x?e.x-o-n:n-o-e.x)/h,a=r.x<e.x?r.x+h-s:r.x-h+s,i=r.y<e.y?r.y+t:r.y-t;return u.R.debug(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r ${s}`,{_x:a,_y:i}),0===s&&(a=e.x,i=e.y),0===h&&(a=e.x),0===c&&(i=e.y),{x:a,y:i}}},"intersection"),O=(0,h.K)((t,e)=>{u.R.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],a=!1;return t.forEach(t=>{if(u.R.info("abc88 checking point",t,e),E(e,t)||a)u.R.warn("abc88 outside",t,n),n=t,a||r.push(t);else{let i=T(e,n,t);u.R.debug("abc88 inside",t,n,i),u.R.debug("abc88 intersection",i,e);let o=!1;r.forEach(t=>{o=o||t.x===i.x&&t.y===i.y}),r.some(t=>t.x===i.x&&t.y===i.y)?u.R.warn("abc88 no intersect",i,r):r.push(i),a=!0}}),u.R.debug("returning points",r),r},"cutPathAtIntersect");function L(t){let e=[],r=[];for(let n=1;n<t.length-1;n++){let a=t[n-1],i=t[n],o=t[n+1];a.x===i.x&&i.y===o.y&&Math.abs(i.x-o.x)>5&&Math.abs(i.y-a.y)>5?(e.push(i),r.push(n)):a.y===i.y&&i.x===o.x&&Math.abs(i.x-a.x)>5&&Math.abs(i.y-o.y)>5&&(e.push(i),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}(0,h.K)(L,"extractCornerPoints");var C=(0,h.K)(function(t,e,r){let n=e.x-t.x,a=e.y-t.y,i=r/Math.sqrt(n*n+a*a);return{x:e.x-i*n,y:e.y-i*a}},"findAdjacentPoint"),$=(0,h.K)(function(t){let{cornerPointPositions:e}=L(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){let e=t[n-1],a=t[n+1],i=t[n],o=C(e,i,5),s=C(a,i,5),l=s.x-o.x,c=s.y-o.y;r.push(o);let h=2*Math.sqrt(2),d={x:i.x,y:i.y};Math.abs(a.x-e.x)>10&&Math.abs(a.y-e.y)>=10?(u.R.debug("Corner point fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y)),d=i.x===o.x?{x:l<0?o.x-5+h:o.x+5-h,y:c<0?o.y-h:o.y+h}:{x:l<0?o.x-h:o.x+h,y:c<0?o.y-5+h:o.y+5-h}):u.R.debug("Corner point skipping fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y)),r.push(d,s)}else r.push(t[n]);return r},"fixCorners"),R=(0,h.K)((t,e,r)=>{let n=Array(Math.floor((t-e-r)/4)).fill("2 2").join(" ");return`0 ${e} ${n} ${r}`},"generateDashArray"),N=(0,h.K)(function(t,e,r,n,o,s,h,g=!1){let m,y;if(!h)throw Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:x,layout:k}=(0,c.D7)(),w=e.points,_=!1,v=[];for(let t in e.cssCompiledStyles)(0,a.KX)(t)||v.push(e.cssCompiledStyles[t]);if("swimlane"===k){if(s.intersect&&o.intersect&&Array.isArray(w)&&w.length>=2)if(2===w.length)w=[o.intersect(w[0]),s.intersect(w[1])];else{let t=w.slice(1,-1),e=t[0],r=t[t.length-1],n=.5>Math.abs(w[w.length-1].x-r.x)&&.5>Math.abs(w[w.length-1].y-r.y),a=o.intersect(e),i=n?r:s.intersect(r),l=.5>Math.abs(i.x-r.x)&&.5>Math.abs(i.y-r.y);w=[....5>Math.abs(a.x-e.x)&&.5>Math.abs(a.y-e.y)?[]:[a],...t,...l?[]:[i]]}w=M(e,w)}else s.intersect&&o.intersect&&!g&&((w=w.slice(1,e.points.length-1)).unshift(o.intersect(w[0])),w.push(s.intersect(w[w.length-1])));let A=btoa(JSON.stringify(w));e.toCluster&&(u.R.info("to cluster abc88",r.get(e.toCluster)),w=O(e.points,r.get(e.toCluster).node),_=!0),e.fromCluster&&(u.R.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(w,null,2)),w=O(w.reverse(),r.get(e.fromCluster).node).reverse(),_=!0);let S=w.filter(t=>!Number.isNaN(t.y)),E=b(e.curve);"rounded"!==E&&(S=$(S));let T=d.lUB;switch(E){case"linear":case"rounded":T=d.lUB;break;case"basis":default:T=d.qrM;break;case"cardinal":T=d.y8u;break;case"bumpX":T=d.Wi0;break;case"bumpY":T=d.PGM;break;case"catmullRom":T=d.oDi;break;case"monotoneX":T=d.nVG;break;case"monotoneY":T=d.uxU;break;case"natural":T=d.Xf2;break;case"step":T=d.GZz;break;case"stepAfter":T=d.UPb;break;case"stepBefore":T=d.dyv}let{x:L,y:C}=(0,i.RI)(e),N=(0,d.n8j)().x(L).y(C).curve(T);switch(e.thickness){case"normal":default:m="edge-thickness-normal";break;case"thick":m="edge-thickness-thick";break;case"invisible":m="edge-thickness-invisible"}switch(e.pattern){case"solid":default:m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let K="rounded"===E?I(D(S,e),5):N(S),P=Array.isArray(e.style)?e.style:[e.style],j=P.find(t=>t?.startsWith("stroke:")),z="";e.animate&&(z="edge-animation-fast"),e.animation&&(z="edge-animation-"+e.animation);let F=!1;
5if("handDrawn"===e.look){let r=p.A.svg(t);Object.assign([],S);let n=r.path(K,{roughness:.3,seed:x});m+=" transition";let a=(y=(0,d.Ltv)(n).select("path").attr("id",`${h}-${e.id}`).attr("class"," "+m+(e.classes?" "+e.classes:"")+(z?" "+z:"")).attr("style",P?P.reduce((t,e)=>t+";"+e,""):"")).attr("d");y.attr("d",a),t.node().appendChild(y.node())}else{let r=v.join(";"),n=P?P.reduce((t,e)=>t+e+";",""):"",a=(r?r+";"+n+";":n)+";"+(P?P.reduce((t,e)=>t+";"+e,""):"");y=t.append("path").attr("d",K).attr("id",`${h}-${e.id}`).attr("class"," "+m+(e.classes?" "+e.classes:"")+(z?" "+z:"")).attr("style",a),j=a.match(/stroke:([^;]+)/)?.[1],F=!0===e.animate||!!e.animation||r.includes("animation");let o=y.node(),s="function"==typeof o.getTotalLength?o.getTotalLength():0,l=i.Nq[e.arrowTypeStart]||0,c=i.Nq[e.arrowTypeEnd]||0;if("neo"===e.look&&!F){let t="dotted"===e.pattern||"dashed"===e.pattern?R(s,l,c):`0 ${l} ${s-l-c} ${c}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;y.attr("style",r+y.attr("style"))}}y.attr("data-edge",!0),y.attr("data-et","edge"),y.attr("data-id",e.id),y.attr("data-points",A),y.attr("data-look",(0,l.KL)(e.look)),e.showPoints&&S.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let B="";((0,c.D7)().flowchart.arrowMarkerAbsolute||(0,c.D7)().state.arrowMarkerAbsolute)&&(B=(B=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),u.R.info("arrowTypeStart",e.arrowTypeStart),u.R.info("arrowTypeEnd",e.arrowTypeEnd);let Y=!F&&e?.look==="neo";f(y,e,B,h,n,Y,j);let W=Math.floor(w.length/2),U=w[W];l._K.isLabelCoordinateInPath(U,y.attr("d"))||(_=!0);let q={};return _&&(q.updatedPath=w),q.originalPath=e.points,q},"insertEdge");function I(t,e){if(t.length<2)return"";let r="",n=t.length;for(let a=0;a<n;a++){let i=t[a],o=t[a-1],s=t[a+1];if(0===a)r+=`M${i.x},${i.y}`;else if(a===n-1)r+=`L${i.x},${i.y}`;else{let t=i.x-o.x,n=i.y-o.y,a=s.x-i.x,l=s.y-i.y,c=Math.hypot(t,n),u=Math.hypot(a,l);if(c<1e-5||u<1e-5){r+=`L${i.x},${i.y}`;continue}let h=t/c,d=n/c,p=a/u,f=l/u,g=Math.acos(Math.max(-1,Math.min(1,h*p+d*f)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){r+=`L${i.x},${i.y}`;continue}let m=Math.min(e/Math.sin(g/2),c/2,u/2),y=i.x-h*m,b=i.y-d*m,x=i.x+p*m,k=i.y+f*m;r+=`L${y},${b}Q${i.x},${i.y} ${x},${k}`}}return r}function K(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,n=e.y-t.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function D(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&i.hq[e.arrowTypeStart]){let n=i.hq[e.arrowTypeStart],a=t[0],{angle:o}=K(a,t[1]),s=n*Math.cos(o),l=n*Math.sin(o);r[0].x=a.x+s,r[0].y=a.y+l}let n=t.length;if(n>=2&&i.hq[e.arrowTypeEnd]){let a=i.hq[e.arrowTypeEnd],o=t[n-1],{angle:s}=K(t[n-2],o),l=a*Math.cos(s),c=a*Math.sin(s);r[n-1].x=o.x-l,r[n-1].y=o.y-c}return r}(0,h.K)(I,"generateRoundedPath"),(0,h.K)(K,"calculateDeltaAndAngle"),(0,h.K)(D,"applyMarkerOffsetsToPoints");var P=(0,h.K)((t,e,r,n)=>{e.forEach(e=>{ti[e](t,r,n)})},"insertMarkers"),j=(0,h.K)((t,e,r)=>{u.R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("pol
5ygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),z=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).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",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),F=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).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",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),B=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).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",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Y=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),W=(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
5ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),U=(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+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",r+"_"+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"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),q=(0,h.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+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",r+"_"+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"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),H=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),X=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,c.zj)(),{transitionColor:a}=n;t.append("defs").append("marker").attr("id",r+"_"+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 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),G=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),Z=(0,h.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),V=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),Q=(0,h.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),J=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),tt=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a,mainBkg:i}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",i??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",i??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),s.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),te=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),tr=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a,mainBkg:i}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",i??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");
5s.append("circle").attr("fill",i??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),tn=(0,h.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
6      L20,10
7      M20,10
8      L0,20`)},"requirement_arrow"),ta=(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
9      L20,10
10      M20,10
11      L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),ti={extension:j,composition:z,aggregation:F,dependency:B,lollipop:Y,point:W,circle:U,cross:q,barb:H,barbNeo:X,only_one:G,zero_or_one:Z,one_or_more:V,zero_or_more:Q,only_one_neo:J,zero_or_one_neo:tt,one_or_more_neo:te,zero_or_more_neo:tr,requirement_arrow:tn,requirement_contains:(0,h.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:ta,requirement_contains_neo:(0,h.K)((t,e,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a}=n,i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),i.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo")},to=P},31584:(t,e,r)=>{"use strict";function n(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>n})},33458:(t,e,r)=>{"use strict";function n(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from("string"==typeof t?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!=(r=null==(e=t.match(/[\t ]/g))?void 0:e.length)?r:0})):t},[]);if(a.length){var i=RegExp("\n[	 ]{".concat(Math.min.apply(Math,a),"}"),"g");n=n.map(function(t){return t.replace(i,"\n")})}n[0]=n[0].replace(/^\r?\n/,"");var o=n[0];return e.forEach(function(t,e){var r=o.match(/(?:^|\n)( *)$/),a=r?r[1]:"",i=t;"string"==typeof t&&t.includes("\n")&&(i=String(t).split("\n").map(function(t,e){return 0===e?t:"".concat(a).concat(t)}).join("\n")),o+=i+n[e+1]}),o}r.d(e,{T:()=>n})},33799:(t,e,r)=>{"use strict";r.d(e,{XX:()=>d,q7:()=>p,sO:()=>h});var n=r(27954),a=r(26451),i=r(2209),o=r(34428),s=r(1937),l=r(89959),c={common:o.Y2,getConfig:o.zj,insertCluster:a.U,insertEdge:n.Jo,insertEdgeLabel:n.jP,insertMarkers:n.g0,insertNode:a.on,interpolateToCurve:i.Ib,labelHelper:a.Zk,log:s.R,positionEdgeLabel:n.T_},u={},h=(0,l.K)(t=>{for(let e of t)u[e.name]=e},"registerLayoutLoaders");(0,l.K)(()=>{h([{name:"dagre",loader:(0,l.K)(async()=>await Promise.all([r.e(5527),r.e(7107),r.e(4410),r.e(1071)]).then(r.bind(r,91071)),"loader")},{name:"swimlane",loader:(0,l.K)(async()=>await Promise.all([r.e(1274),r.e(5527),r.e(7107),r.e(140)]).then(r.bind(r,38131)),"loader")},{name:"cose-bilkent",loader:(0,l.K)(async()=>await Promise.all([r.e(4724),r.e(4422)]).then(r.bind(r,44422)),"loader")}])},"registerDefaultLayoutLoaders")();var d=(0,l.K)(async(t,e,r)=>{if(!(t.layoutAlgorithm in u))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let n=u[t.layoutAlgorithm],a=await n.loader(),{theme:i,themeVariables:o}=t.config,{useGradient:s,gradientStart:l,gradientStop:h}=o,d=e.attr("id");if(e.append("defs").append("filter").attr("id",`${d}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${d}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),s){let t=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return a.render(t,e,c,{algorithm:n.algorithm},r)},"render"),p=(0,l.K)((t="",{fallback:e="dagre"}={})=>
11{if(t in u)return t;if(e in u)return s.R.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},33848:(t,e,r)=>{"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{A:()=>tg});let a=Object.entries,i=Object.setPrototypeOf,o=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,c=Object.freeze,u=Object.seal,h=Object.create,d="undefined"!=typeof Reflect&&Reflect,p=d.apply,f=d.construct;c||(c=function(t){return t}),u||(u=function(t){return t}),p||(p=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];return t.apply(e,n)}),f||(f=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});let g=I(Array.prototype.forEach),m=I(Array.prototype.lastIndexOf),y=I(Array.prototype.pop),b=I(Array.prototype.push),x=I(Array.prototype.splice),k=Array.isArray,w=I(String.prototype.toLowerCase),_=I(String.prototype.toString),v=I(String.prototype.match),A=I(String.prototype.replace),S=I(String.prototype.indexOf),M=I(String.prototype.trim),E=I(Number.prototype.toString),T=I(Boolean.prototype.toString),O="undefined"==typeof BigInt?null:I(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:I(Symbol.prototype.toString),C=I(Object.prototype.hasOwnProperty),$=I(Object.prototype.toString),R=I(RegExp.prototype.test),N=(tf=TypeError,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return f(tf,e)});function I(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return p(t,e,n)}}function K(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;if(i&&i(t,null),!k(e))return t;let n=e.length;for(;n--;){let a=e[n];if("string"==typeof a){let t=r(a);t!==a&&(o(e)||(e[n]=t),a=t)}t[a]=!0}return t}function D(t){let e=h(null);for(let i of a(t)){var r=function(t){if(Array.isArray(t))return t}(i)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,i,o,s=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(i,2)||function(t,e){if(t){if("string"==typeof t)return n(t,2);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(i,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let a=r[0],o=r[1];C(t,a)&&(k(o)?e[a]=function(t){for(let e=0;e<t.length;e++)C(t,e)||(t[e]=null);return t}(o):o&&"object"==typeof o&&o.constructor===Object?e[a]=D(o):e[a]=o)}return e}function P(t,e){for(;null!==t;){let r=l(t,e);if(r){if(r.get)return I(r.get);if("function"==typeof r.value)return I(r.value)}t=s(t)}return function(){return null}}let j=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),z=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=c(["#text"]),q=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
11spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),H=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-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"]),X=c(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=u(/{{[\w\W]*|^[\w\W]*}}/g),V=u(/<%[\w\W]*|^[\w\W]*%>/g),Q=u(/\${[\w\W]*/g),J=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=u(/^aria-[\-\w]+$/),te=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tr=u(/^(?:\w+script|data):/i),tn=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ta=u(/^html$/i),ti=u(/^[a-z][.\w]*(-[.\w]+)+$/i),to=u(/<[/\w!]/g),ts=u(/<[/\w]/g),tl=u(/<\/no(script|embed|frames)/i),tc=u(/\/>/i),tu={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},th=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));let a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}},td=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tp=function(t,e,r,n){return C(t,e)&&k(t[e])?K(n.base?D(n.base):{},t[e],n.transform):r};var tf,tg=function t(){let e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=e=>t(e);
11if(i.version="3.4.11",i.removed=[],!n||!n.document||n.document.nodeType!==tu.document||!n.Element)return i.isSupported=!1,i;let o=n.document,s=o,l=s.currentScript;n.DocumentFragment;let d=n.HTMLTemplateElement,p=n.Node,f=n.Element,I=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let tf=n.DOMParser,tg=n.trustedTypes,tm=f.prototype,ty=P(tm,"cloneNode"),tb=P(tm,"remove"),tx=P(tm,"nextSibling"),tk=P(tm,"childNodes"),tw=P(tm,"parentNode"),t_=P(tm,"shadowRoot"),tv=P(tm,"attributes"),tA=p&&p.prototype?P(p.prototype,"nodeType"):null,tS=p&&p.prototype?P(p.prototype,"nodeName"):null;if("function"==typeof d){let t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let tM="",tE=!1,tT=0,tO=function(){if(tT>0)throw N('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tL=function(t){tO(),tT++;try{return e.createHTML(t)}finally{tT--}},tC=function(t){tO(),tT++;try{return e.createScriptURL(t)}finally{tT--}},t$=o,tR=t$.implementation,tN=t$.createNodeIterator,tI=t$.createDocumentFragment,tK=t$.getElementsByTagName,tD=s.importNode,tP=td();i.isSupported="function"==typeof a&&"function"==typeof tw&&tR&&void 0!==tR.createHTMLDocument;let tj=te,tz=null,tF=K({},[...j,...z,...F,...Y,...U]),tB=null,tY=K({},[...q,...H,...X,...G]),tW=Object.seal(h(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}})),tU=null,tq=null,tH=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tX=!0,tG=!0,tZ=!1,tV=!0,tQ=!1,tJ=!0,t0=!1,t1=!1,t2=null,t3=null,t5=!1,t6=!1,t9=!1,t8=!1,t4=!0,t7=!1,et="user-content-",ee=!0,er=!1,en={},ea=null,ei=K({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),eo=null,es=K({},["audio","video","img","source","image","track"]),el=null,ec=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eu="http://www.w3.org/1998/Math/MathML",eh="http://www.w3.org/2000/svg",ed="http://www.w3.org/1999/xhtml",ep=ed,ef=!1,eg=null,em=K({},[eu,eh,ed],_),ey=c(["mi","mo","mn","ms","mtext"]),eb=K({},ey),ex=c(["annotation-xml"]),ek=K({},ex),ew=K({},["title","style","font","a","script"]),e_=null,ev=["application/xhtml+xml","text/html"],eA=null,eS=null,eM=o.createElement("form"),eE=function(t){return t instanceof RegExp||t instanceof Function},eT=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eS&&eS===t)return;t&&"object"==typeof t||(t={}),t=D(t),eA="application/xhtml+xml"===(e_=-1===ev.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?_:w,tz=tp(t,"ALLOWED_TAGS",tF,{transform:eA}),tB=tp(t,"ALLOWED_ATTR",tY,{transform:eA}),eg=tp(t,"ALLOWED_NAMESPACES",em,{transform:_}),el=tp(t,"ADD_URI_SAFE_ATTR",ec,{transform:eA,base:ec}),eo=tp(t,"ADD_DATA_URI_TAGS",es,{transform:eA,base:es}),ea=tp(t,"FORBID_CONTENTS",ei,{transform:eA}),tU=tp(t,"FORBID_TAGS",D({}),{transform:eA}),tq=tp(t,"FORBID_ATTR",D({}),{transform:eA}),en=!!C(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?D(t.USE_PROFILES):t.USE_PROFILES),tX=!1!==t.ALLOW_ARIA_ATTR,tG=!1!==t.ALLOW_DATA_ATTR,tZ=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tV=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,tQ=t.SAFE_FOR_TEMPLATES||!1,tJ=!1!==t.SAFE_FOR_XML,t0=t.WHOLE_DOCUMENT||!1,t6=t.RETURN_DOM||!1,t9=t.RETURN_DOM_FRAGMENT||!1,t8=t.RETURN_TRUSTED_TYPE||!1,t5=t.FORCE_BODY||!1,t4=!1!==t.SANITIZE_DOM,t7=t.SANITIZE_NAMED_PROPS||!1,ee=!1!==t.KEEP_CONTENT,er=t.IN_PLACE||!1,tj=!function(t){try{return R(t,""),!0}catch(t){return!1}}
11(t.ALLOWED_URI_REGEXP)?te:t.ALLOWED_URI_REGEXP,ep="string"==typeof t.NAMESPACE?t.NAMESPACE:ed,eb=C(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?D(t.MATHML_TEXT_INTEGRATION_POINTS):K({},ey),ek=C(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?D(t.HTML_INTEGRATION_POINTS):K({},ex);let n=C(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?D(t.CUSTOM_ELEMENT_HANDLING):h(null);if(tW=h(null),C(n,"tagNameCheck")&&eE(n.tagNameCheck)&&(tW.tagNameCheck=n.tagNameCheck),C(n,"attributeNameCheck")&&eE(n.attributeNameCheck)&&(tW.attributeNameCheck=n.attributeNameCheck),C(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(tW.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),u(tW),tQ&&(tG=!1),t9&&(t6=!0),en&&(tz=K({},U),tB=h(null),!0===en.html&&(K(tz,j),K(tB,q)),!0===en.svg&&(K(tz,z),K(tB,H),K(tB,G)),!0===en.svgFilters&&(K(tz,F),K(tB,H),K(tB,G)),!0===en.mathMl&&(K(tz,Y),K(tB,X),K(tB,G))),tH.tagCheck=null,tH.attributeCheck=null,C(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?tH.tagCheck=t.ADD_TAGS:k(t.ADD_TAGS)&&(tz===tF&&(tz=D(tz)),K(tz,t.ADD_TAGS,eA))),C(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?tH.attributeCheck=t.ADD_ATTR:k(t.ADD_ATTR)&&(tB===tY&&(tB=D(tB)),K(tB,t.ADD_ATTR,eA))),C(t,"ADD_URI_SAFE_ATTR")&&k(t.ADD_URI_SAFE_ATTR)&&K(el,t.ADD_URI_SAFE_ATTR,eA),C(t,"FORBID_CONTENTS")&&k(t.FORBID_CONTENTS)&&(ea===ei&&(ea=D(ea)),K(ea,t.FORBID_CONTENTS,eA)),C(t,"ADD_FORBID_CONTENTS")&&k(t.ADD_FORBID_CONTENTS)&&(ea===ei&&(ea=D(ea)),K(ea,t.ADD_FORBID_CONTENTS,eA)),ee&&(tz["#text"]=!0),t0&&K(tz,["html","head","body"]),tz.table&&(K(tz,["tbody"]),delete tU.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{tM=tL("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tM=""):(void 0===e&&(tE||(r=th(tg,l),tE=!0),e=r),e&&"string"==typeof tM&&(tM=tL("")));c&&c(t),eS=t},eO=K({},[...z,...F,...B]),eL=K({},[...Y,...W]),eC=function(t){var e,r,n;let a=tw(t);a&&a.tagName||(a={namespaceURI:ep,tagName:"template"});let i=w(t.tagName),o=w(a.tagName);return!!eg[t.namespaceURI]&&(t.namespaceURI===eh?(e=a).namespaceURI===ed?"svg"===i:e.namespaceURI===eu?"svg"===i&&("annotation-xml"===o||eb[o]):!!eO[i]:t.namespaceURI===eu?(r=a).namespaceURI===ed?"math"===i:r.namespaceURI===eh?"math"===i&&ek[o]:!!eL[i]:t.namespaceURI===ed?((n=a).namespaceURI!==eh||!!ek[o])&&(n.namespaceURI!==eu||!!eb[o])&&!eL[i]&&(ew[i]||!eO[i]):"application/xhtml+xml"===e_&&!!eg[t.namespaceURI])},e$=function(t){b(i.removed,{element:t});try{tw(t).removeChild(t)}catch(e){if(tb(t),!tw(t))throw N("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},eR=function(t){let e=tk(t);if(e){let t=[];g(e,e=>{b(t,e)}),g(t,t=>{try{tb(t)}catch(t){}})}let r=tv(t);if(r)for(let e=r.length-1;e>=0;--e){let n=r[e],a=n&&n.name;if("string"==typeof a)try{t.removeAttribute(a)}catch(t){}}},eN=function(t,e){try{b(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(t6||t9)try{e$(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},eI=function(t){let e=tv(t);if(e)for(let r=e.length-1;r>=0;--r){let n=e[r],a=n&&n.name;if("string"==typeof a&&!tB[eA(a)])try{t.removeAttribute(a)}catch(t){}}},eK=function(t){let e=[t];for(;e.length>0;){let t=e.pop();(tA?tA(t):t.nodeType)===tu.element&&eI(t);let r=tk(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},eD=function(t){let r=null,n=null;if(t5)t="<remove></remove>"+t;else{let e=v(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===e_&&ep===ed&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let a=e?tL(t):t;if(ep===ed)try{r=new tf().parseFromString(a,e_)}catch(t){}if(!r||!r.documentElement){r=tR.createDocument(ep,"template",null);try{r.documentElement.innerHTML=ef?tM:a}catch(t){}}let i=r.body||r.documentElement;return(t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),ep===ed)?tK.call(r,t0?"html":"body")[0]:t0?r.documentElement:i},eP=function(t){return tN.call(t.ownerDocument||t,t,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT|I.SHOW_PROCESSING_INSTRUCTION|I.SHOW_CDATA_SECTION,null)},ej=function(t){return t=A(t,Z," "),t=A(t,V," "),t=A(t,Q," ")},ez=function(t){var e;t.normalize();let r=tN.call(t.ownerDocument||t,t,I.SHOW_TEXT|I.SHOW_COMMENT|I.SHOW_CDATA_SECTION|I.SHOW_PROCESSING_INSTRUCTION,null),n=r.nextNode();for(;n;)n.data=ej(n.data),n=r.nextNode();let a=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");a&&g(a,t=>{eB(t.content)&&ez(t.content)})},eF=function(t){let e=tS?tS(t):null;return"string"==typeof e&&"form"===eA(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tv(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==tA(t)||t.childNodes!==tk(t))},eB=function(t){if(!tA||"object"!=typeof t||null===t)return!1;try{return tA(t)===tu.documentFragment}catch(t){return!1}},eY=function(t){if(!tA||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tA(t)}catch(t){return!1}};function eW(t,e,r){0!==t.length&&g(t,t=>{t.call(i,e,r,eS)})}let eU=function(t,e){if(!tU[e]&&eG(e)&&(tW.tagNameCheck instanceof RegExp&&R(tW.tagNameCheck,e)||tW.tagNameCheck instanceof Function&&tW.tagNameCheck(e)))return!1;if(ee&&!ea[e]){let e=tw(t),r=tk(t);if(r&&e){let n=r.length;for(let a=n-1;a>=0;--a){let n=er?r[a]:ty(r[a],!0);e.insertBefore(n,tx(t))}}}return e$(t),!0},eq=function(t){if(eW(tP.beforeSanitizeElements,t,null),eF(t))return e$(t),!0;let e=eA(tS?tS(t):t.nodeName);if(eW(tP.uponSanitizeElement,t,{tagName:e,allowedTags:tz}),tJ&&t.hasChildNodes()&&!eY(t.firstElementChild)&&R(to,t.textContent)&&R(to,t.innerHTML)||tJ&&t.namespaceURI===ed&&"style"===e&&eY(t.firstElementChild)||t.nodeType===tu.processingInstruction||tJ&&t.nodeType===tu.comment&&R(ts,t.data)||0)return e$(t),!0;if(tU[e]||!(tH.tagCheck instanceof Function&&tH.tagCheck(e))&&!tz[e])return eU(t,e);if((tA?tA(t):t.nodeType)===tu.element&&!eC(t)||("noscript"===e||"noembed"===e||"noframes"===e)&&R(tl,t.innerHTML))return e$(t),!0;if(tQ&&t.nodeType===tu.text){let e=ej(t.textContent);t.textContent!==e&&(b(i.removed,{element:t.cloneNode()}),t.textContent=e)}return eW(tP.afterSanitizeElements,t,null),!1},eH=function(t,e,r){if(tq[e]||t4&&("id"===e||"name"===e)&&(r in o||r in eM))return!1;let n=tB[e]||tH.attributeCheck instanceof Function&&tH.attributeCheck(e,t);if(tG&&R(J,e));else if(tX&&R(tt,e));else if(n){if(el[e]);else if(R(tj,A(r,tn,"")));else if(("src"===e||"xlink:href"===e||"href"===e)&&"script"!==t&&0===S(r,"data:")&&eo[t]);
11else if(tZ&&!R(tr,A(r,tn,"")));else if(r)return!1}else if(!(eG(t)&&(tW.tagNameCheck instanceof RegExp&&R(tW.tagNameCheck,t)||tW.tagNameCheck instanceof Function&&tW.tagNameCheck(t))&&(tW.attributeNameCheck instanceof RegExp&&R(tW.attributeNameCheck,e)||tW.attributeNameCheck instanceof Function&&tW.attributeNameCheck(e,t))||"is"===e&&tW.allowCustomizedBuiltInElements&&(tW.tagNameCheck instanceof RegExp&&R(tW.tagNameCheck,r)||tW.tagNameCheck instanceof Function&&tW.tagNameCheck(r))))return!1;return!0},eX=K({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),eG=function(t){return!eX[w(t)]&&R(ti,t)},eZ=function(t,r,n,a){if(e&&"object"==typeof tg&&"function"==typeof tg.getAttributeType&&!n)switch(tg.getAttributeType(t,r)){case"TrustedHTML":return tL(a);case"TrustedScriptURL":return tC(a)}return a},eV=function(t,e,r,n){try{r?t.setAttributeNS(r,e,n):t.setAttribute(e,n),eF(t)?e$(t):y(i.removed)}catch(r){eN(e,t)}},eQ=function(t){eW(tP.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||eF(t))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tB,forceKeepAttr:void 0},n=e.length,a=eA(t.nodeName);for(;n--;){let i=e[n],o=i.name,s=i.namespaceURI,l=i.value,c=eA(o),u="value"===o?l:M(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,eW(tP.uponSanitizeAttribute,t,r),u=r.attrValue,t7&&("id"===c||"name"===c)&&0!==S(u,et)&&(eN(o,t),u=et+u),tJ&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&v(u,"href")){eN(o,t);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!tV&&R(tc,u)||(tQ&&(u=ej(u)),!eH(a,c,u))){eN(o,t);continue}(u=eZ(a,c,s,u))!==l&&eV(t,o,s,u)}}eW(tP.afterSanitizeAttributes,t,null)},eJ=function(t){let e=null,r=eP(t);for(eW(tP.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(eW(tP.uponSanitizeShadowNode,e,null),eq(e),eQ(e),eB(e.content)&&eJ(e.content),(tA?tA(e):e.nodeType)===tu.element){let t=t_(e);eB(t)&&(e0(t),eJ(t))}eW(tP.afterSanitizeShadowDOM,t,null)},e0=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){eJ(t.shadow);continue}let r=t.node,n=(tA?tA(r):r.nodeType)===tu.element,a=tk(r);if(a)for(let t=a.length-1;t>=0;--t)e.push({node:a[t],shadow:null});if(n){let t=tS?tS(r):null;if("string"==typeof t&&"template"===eA(t)){let t=r.content;eB(t)&&e.push({node:t,shadow:null})}}if(n){let t=t_(r);eB(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return i.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,l=null;if((ef=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!eY(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return E(t);case"boolean":return T(t);case"bigint":return O?O(t):"0";case"symbol":return L?L(t):"Symbol()";case"undefined":default:return $(t);case"function":case"object":{if(null===t)return $(t);let e=P(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:$(r)}return $(t)}}}(t)))throw N("dirty is not a string, aborting");if(!i.isSupported)return t;t1?(tz=t2,tB=t3):eT(r),(tP.uponSanitizeElement.length>0||tP.uponSanitizeAttribute.length>0)&&(tz=D(tz)),tP.uponSanitizeAttribute.length>0&&(tB=D(tB)),i.removed=[];let c=er&&"string"!=typeof t&&eY(t);if(c){let e=tS?tS(t):t.nodeName;if("string"==typeof e){let t=eA(e);if(!tz[t]||tU[t])throw N("root node is forbidden and cannot be sanitized in-place")}if(eF(t))throw N("root node is clobbered and cannot be sanitized in-place");try{e0(t)}catch(e){throw eR(t),e}}else if(eY(t))(a=(n=eD("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===tu.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),e0(a);else{if(!t6&&!tQ&&!t0&&-1===t.indexOf("<"))return e&&t8?tL(t):t;if(!(n=eD(t)))return t6?null:t8?tM:""}n&&t5&&e$(n.firstChild);let u=eP(c?t:n);try{for(;o=u.nextNode();)eq(o),eQ(o),eB(o.content)&&eJ(o.content)}catch(e){throw c&&eR(t),e}if(c)return g(i.removed,t=>{t.element&&eK(t.element)}),tQ&&ez(t),t;if(t6){if(tQ&&ez(n),t9)for(l=tI.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(tB.shadowroot||tB.shadowrootmode)&&(l=tD.call(s,l,!0)),l}let h=t0?n.outerHTML:n.innerHTML;return t0&&tz["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&R(ta,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),tQ&&(h=ej(h)),e&&t8?tL(h):h},i.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eT(t),t1=!0,t2=tz,t3=tB},i.clearConfig=function(){eS=null,t1=!1,t2=null,t3=null,e=r,tM=""},i.isValidAttribute=function(t,e,r){return eS||eT({}),eH(eA(t),eA(e),r)},i.addHook=function(t,e){"function"==typeof e&&C(tP,t)&&b(tP[t],e)},i.removeHook=function(t,e){if(C(tP,t)){if(void 0!==e){let r=m(tP[t],e);return -1===r?void 0:x(tP[t],r,1)[0]}return y(tP[t])}},i.removeHooks=function(t){C(tP,t)&&(tP[t]=[])},i.removeAllHooks=function(){tP=td()},i}()},34182:(t,e,r)=>{"use strict";r.d(e,{JLW:()=>eL,l78:()=>d,tlR:()=>h,qrM:()=>eP.Ay,Yu4:()=>eK.A,IA3:()=>eD.A,Wi0:()=>ej.dJ,PGM:()=>ej.kl,OEq:()=>eF,y8u:()=>eU,olC:()=>eH,IrU:()=>eG,oDi:()=>eQ,Q7f:()=>e0,cVp:()=>e2,lUB:()=>e5.A,Lx9:()=>e3.A,nVG:()=>e6.G,uxU:()=>e6.N,Xf2:()=>e9.A,GZz:()=>e8.Ay,UPb:()=>e8.Ps,dyv:()=>e8.Ko,GPZ:()=>tZ.GP,Sk5:()=>tQ,bEH:()=>ey,n8j:()=>eC.A,T9B:()=>a.A,jkA:()=>i.A,rLf:()=>eI,WH:()=>eb.WH,m4Y:()=>eb.m4,UMr:()=>eb.UM,w7C:()=>
11eb.w7,zt:()=>ex,Ltv:()=>ek,UAC:()=>rr.UA,DCK:()=>ri.DC,TUC:()=>rn.TU,Agd:()=>re.Ag,t6C:()=>e4.y,wXd:()=>rt.wX,ABi:()=>rn.AB,Ui6:()=>ra.Ui,rGn:()=>rn.rG,ucG:()=>e7.R,YPH:()=>rn.YP,Mol:()=>rn.Mo,PGu:()=>rn.PG,GuW:()=>rn.Gu,hkb:()=>t4});var n,a=r(5152),i=r(58410);function o(t){return t}function s(t){return"translate("+t+",0)"}function l(t){return"translate(0,"+t+")"}function c(){return!this.__axis}function u(t,e){var r=[],n=null,a=null,i=6,u=6,h=3,d="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,p=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",g=1===t||3===t?s:l;function m(s){var l=null==n?e.ticks?e.ticks.apply(e,r):e.domain():n,m=null==a?e.tickFormat?e.tickFormat.apply(e,r):o:a,y=Math.max(i,0)+h,b=e.range(),x=+b[0]+d,k=+b[b.length-1]+d,w=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}:function(t){return e=>+t(e)})(e.copy(),d),_=s.selection?s.selection():s,v=_.selectAll(".domain").data([null]),A=_.selectAll(".tick").data(l,e).order(),S=A.exit(),M=A.enter().append("g").attr("class","tick"),E=A.select("line"),T=A.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(M),E=E.merge(M.append("line").attr("stroke","currentColor").attr(f+"2",p*i)),T=T.merge(M.append("text").attr("fill","currentColor").attr(f,p*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),s!==_&&(v=v.transition(s),A=A.transition(s),E=E.transition(s),T=T.transition(s),S=S.transition(s).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=w(t))?g(t+d):this.getAttribute("transform")}),M.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return g((e&&isFinite(e=e(t))?e:w(t))+d)})),S.remove(),v.attr("d",4===t||2===t?u?"M"+p*u+","+x+"H"+d+"V"+k+"H"+p*u:"M"+d+","+x+"V"+k:u?"M"+x+","+p*u+"V"+d+"H"+k+"V"+p*u:"M"+x+","+d+"H"+k),A.attr("opacity",1).attr("transform",function(t){return g(w(t)+d)}),E.attr(f+"2",p*i),T.attr(f,p*y).text(m),_.filter(c).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each(function(){this.__axis=w})}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),m):r.slice()},m.tickValues=function(t){return arguments.length?(n=null==t?null:Array.from(t),m):n&&n.slice()},m.tickFormat=function(t){return arguments.length?(a=t,m):a},m.tickSize=function(t){return arguments.length?(i=u=+t,m):i},m.tickSizeInner=function(t){return arguments.length?(i=+t,m):i},m.tickSizeOuter=function(t){return arguments.length?(u=+t,m):u},m.tickPadding=function(t){return arguments.length?(h=+t,m):h},m.offset=function(t){return arguments.length?(d=+t,m):d},m}function h(t){return u(1,t)}function d(t){return u(3,t)}function p(){}function f(t){return null==t?p:function(){return this.querySelector(t)}}function g(){return[]}function m(t){return null==t?g:function(){return this.querySelectorAll(t)}}function y(t){return function(){return this.matches(t)}}function b(t){return function(e){return e.matches(t)}}var x=Array.prototype.find;function k(){return this.firstElementChild}var w=Array.prototype.filter;function _(){return Array.from(this.children)}function v(t){return Array(t.length)}function A(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function S(t,e,r,n,a,i){for(var o,s=0,l=e.length,c=i.length;s<c;++s)(o=e[s])?(o.__data__=i[s],n[s]=o):r[s]=new A(t,i[s]);for(;s<l;++s)(o=e[s])&&(a[s]=o)}function M(t,e,r,n,a,i,o){var s,l,c,u=new Map,h=e.length,d=i.length,p=Array(h);for(s=0;s<h;++s)(l=e[s])&&(p[s]=c=o.call(l,l.__data__,s,e)+"",u.has(c)?a[s]=l:u.set(c,l));for(s=0;s<d;++s)c=o.call(t,i[s],s,i)+"",(l=u.get(c))?(n[s]=l,l.__data__=i[s],u.delete(c)):r[s]=new A(t,i[s]);for(s=0;s<h;++s)(l=e[s])&&u.get(p[s])===l&&(a[s]=l)}function E(t){return t.__data__}function T(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}A.prototype={constructor:A,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 O="http://www.w3.org/1999/xhtml";let L={svg:"http://www.w3.org/2000/svg",xhtml:O,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function C(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),L.hasOwnProperty(e)?{space:L[e],local:t}:t}function $(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function R(t,e){return t.style.getPropertyValue(e)||$(t).getComputedStyle(t,null).getPropertyValue(e)}function N(t){return t.trim().split(/^|\s+/)}function I(t){return t.classList||new K(t)}function K(t){this._node=t,this._names=N(t.getAttribute("class")||"")}function D(t,e){for(var r=I(t),n=-1,a=e.length;++n<a;)r.add(e[n])}function P(t,e){for(var r=I(t),n=-1,a=e.length;++n<a;)r.remove(e[n])}function j(){this.textContent=""}function z(){this.innerHTML=""}function F(){this.nextSibling&&this.parentNode.appendChild(this)}function B(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Y(t){var e=C(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===O&&e.documentElement.namespaceURI===O?e.createElement(t):e.createElementNS(r,t)}})(e)}function W(){return null}function U(){var t=this.parentNode;t&&t.removeChild(this)}function q(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function H(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function X(t){return function(){var e=this.__on;if(e){for(var r,n=0,a=-1,i=e.length;n<i;++n)(r=e[n],t.type&&r.type!==t.type||r.name!==t.name)?e[++a]=r:this.removeEventListener(r.type,r.listener,r.options);++a?e.length=a:delete this.__on}}}function G(t,e,r){return function(){var n,a=this.__on,i=function(t){e.call(this,t,this.__data__)};if(a){for(var o=0,s=a.length;o<s;++o)if((n=a[o]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=i,n.options=r),n.value=e;return}}this.addEventListener(t.type,i,r),n={type:t.type,name:t.name,value:e,listener:i,options:r},a?a.push(n):this.__on=[n]}}function Z(t,e,r){var n=$(t),a=n.CustomEvent;"function"==typeof a?a=new a(e,r):(a=n.document.createEvent("Event"),r?(a.initEvent(e,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(e,!1,!1)),t.dis
11patchEvent(a)}K.prototype={add:function(t){0>this._names.indexOf(t)&&(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 V=[null];function Q(t,e){this._groups=t,this._parents=e}function J(){return new Q([[document.documentElement]],V)}Q.prototype=J.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=f(t));for(var e=this._groups,r=e.length,n=Array(r),a=0;a<r;++a)for(var i,o,s=e[a],l=s.length,c=n[a]=Array(l),u=0;u<l;++u)(i=s[u])&&(o=t.call(i,i.__data__,u,s))&&("__data__"in i&&(o.__data__=i.__data__),c[u]=o);return new Q(n,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=m(t);for(var r=this._groups,n=r.length,a=[],i=[],o=0;o<n;++o)for(var s,l=r[o],c=l.length,u=0;u<c;++u)(s=l[u])&&(a.push(t.call(s,s.__data__,u,l)),i.push(s));return new Q(a,i)},selectChild:function(t){var e;return this.select(null==t?k:(e="function"==typeof t?t:b(t),function(){return x.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?_:(e="function"==typeof t?t:b(t),function(){return w.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,r=e.length,n=Array(r),a=0;a<r;++a)for(var i,o=e[a],s=o.length,l=n[a]=[],c=0;c<s;++c)(i=o[c])&&t.call(i,i.__data__,c,o)&&l.push(i);return new Q(n,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,E);var r=e?M:S,n=this._parents,a=this._groups;"function"!=typeof t&&(b=t,t=function(){return b});for(var i=a.length,o=Array(i),s=Array(i),l=Array(i),c=0;c<i;++c){var u=n[c],h=a[c],d=h.length,p="object"==typeof(y=t.call(u,u&&u.__data__,c,n))&&"length"in y?y:Array.from(y),f=p.length,g=s[c]=Array(f),m=o[c]=Array(f);r(u,h,g,m,l[c]=Array(d),p,e);for(var y,b,x,k,w=0,_=0;w<f;++w)if(x=g[w]){for(w>=_&&(_=w+1);!(k=m[_])&&++_<f;);x._next=k||null}}return(o=new Q(o,n))._enter=s,o._exit=l,o},enter:function(){return new Q(this._enter||this._groups.map(v),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(v),this._parents)},join:function(t,e,r){var n=this.enter(),a=this,i=this.exit();return"function"==typeof t?(n=t(n))&&(n=n.selection()):n=n.append(t+""),null!=e&&(a=e(a))&&(a=a.selection()),null==r?i.remove():r(i),n&&a?n.merge(a).order():a},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,a=r.length,i=n.length,o=Math.min(a,i),s=Array(a),l=0;l<o;++l)for(var c,u=r[l],h=n[l],d=u.length,p=s[l]=Array(d),f=0;f<d;++f)(c=u[f]||h[f])&&(p[f]=c);for(;l<a;++l)s[l]=r[l];return new Q(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n,a=t[e],i=a.length-1,o=a[i];--i>=0;)(n=a[i])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=T);for(var r=this._groups,n=r.length,a=Array(n),i=0;i<n;++i){for(var o,s=r[i],l=s.length,c=a[i]=Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(e)}return new Q(a,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 n=t[e],a=0,i=n.length;a<i;++a){var o=n[a];if(o)return o}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var a,i=e[r],o=0,s=i.length;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this},attr:function(t,e){var r=C(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==e?r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?r.local?function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}:function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}:r.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):R(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=N(t+"");
11if(arguments.length<2){for(var n=I(this.node()),a=-1,i=r.length;++a<i;)if(!n.contains(r[a]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?D:P)(this,t)}}:e?function(t){return function(){D(this,t)}}:function(t){return function(){P(this,t)}})(r,e))},text:function(t){return arguments.length?this.each(null==t?j:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?z:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(F)},lower:function(){return this.each(B)},append:function(t){var e="function"==typeof t?t:Y(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:Y(t),n=null==e?W:"function"==typeof e?e:f(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(U)},clone:function(t){return this.select(t?H:q)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var n,a,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}),o=i.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,c=0,u=s.length;c<u;++c)for(n=0,l=s[c];n<o;++n)if((a=i[n]).type===l.type&&a.name===l.name)return l.value}return}for(n=0,s=e?G:X;n<o;++n)this.each(s(i[n],e,r));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return Z(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return Z(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n,a=t[e],i=0,o=a.length;i<o;++i)(n=a[i])&&(yield n)}};var tt={value:()=>{}};function te(){for(var t,e=0,r=arguments.length,n={};e<r;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw Error("illegal type: "+t);n[t]=[]}return new tr(n)}function tr(t){this._=t}function tn(t,e,r){for(var n=0,a=t.length;n<a;++n)if(t[n].name===e){t[n]=tt,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=r&&t.push({name:e,value:r}),t}tr.prototype=te.prototype={constructor:tr,on:function(t,e){var r,n=this._,a=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),i=-1,o=a.length;if(arguments.length<2){for(;++i<o;)if((r=(t=a[i]).type)&&(r=function(t,e){for(var r,n=0,a=t.length;n<a;++n)if((r=t[n]).name===e)return r.value}(n[r],t.name)))return r;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++i<o;)if(r=(t=a[i]).type)n[r]=tn(n[r],t.name,e);else if(null==e)for(r in n)n[r]=tn(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new tr(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,a=Array(r),i=0;i<r;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(n=this._[t],i=0,r=n.length;i<r;++i)n[i].value.apply(e,a)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var n=this._[t],a=0,i=n.length;a<i;++a)n[a].value.apply(e,r)}};var ta,ti,to=0,ts=0,tl=0,tc=0,tu=0,th=0,td="object"==typeof performance&&performance.now?performance:Date,tp="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tf(){return tu||(tp(tg),tu=td.now()+th)}function tg(){tu=0}function tm(){this._call=this._time=this._next=null}function ty(t,e,r){var n=new tm;return n.restart(t,e,r),n}function tb(){tu=(tc=td.now())+th,to=ts=0;try{tf(),++to;for(var t,e=ta;e;)(t=tu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--to}finally{to=0,function(){for(var t,e,r=ta,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:ta=e);ti=t,tk(n)}(),tu=0}}function tx(){var t=td.now(),e=t-tc;e>1e3&&(th-=e,tc=t)}function tk(t){!to&&(ts&&(ts=clearTimeout(ts)),t-tu>24?(t<1/0&&(ts=setTimeout(tb,t-td.now()-th)),tl&&(tl=clearInterval(tl))):(tl||(tc=td.now(),tl=setInterval(tx,1e3)),to=1,tp(tb)))}function tw(t,e,r){var n=new tm;return e=null==e?0:+e,n.restart(r=>{n.stop(),t(r+e)},e,r),n}tm.prototype=ty.prototype={constructor:tm,restart:function(t,e,r){if("function"!=typeof t)throw TypeError("callback is not a function");r=(null==r?tf():+r)+(null==e?0:+e),this._next||ti===this||(ti?ti._next=this:ta=this,ti=this),this._call=t,this._time=r,tk()},stop:function(){this._call&&(this._call=null,this._time=1/0,tk())}};var t_=te("start","end","cancel","interrupt"),tv=[];function tA(t,e,r,n,a,i){var o=t.__transition;if(o){if(r in o)return}else t.__transition={};!function(t,e,r){var n,a=t.__transition;function i(l){var c,u,h,d;if(1!==r.state)return s();for(c in a)if((d=a[c]).name===r.name){if(3===d.state)return tw(i);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete a[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete a[c])}if(tw(function(){3===r.state&&(r.state=4,r.timer.restart(o,r.delay,r.time),o(l))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(c=0,r.state=3,n=Array(h=r.tween.length),u=-1;c<h;++c)(d=r.tween[c].value.call(t,t.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function o(e){for(var a=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(s),r.state=5,1
11),i=-1,o=n.length;++i<o;)n[i].call(t,a);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),s())}function s(){for(var n in r.state=6,r.timer.stop(),delete a[e],a)return;delete t.__transition}a[e]=r,r.timer=ty(function(t){r.state=1,r.timer.restart(i,r.delay,r.time),r.delay<=t&&i(t-r.delay)},0,r.time)}(t,r,{name:e,index:n,group:a,on:t_,tween:tv,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function tS(t,e){var r=tE(t,e);if(r.state>0)throw Error("too late; already scheduled");return r}function tM(t,e){var r=tE(t,e);if(r.state>3)throw Error("too late; already running");return r}function tE(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}var tT=r(88504),tO=180/Math.PI,tL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tC(t,e,r,n,a,i){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(e,t)*tO,skewX:Math.atan(l)*tO,scaleX:o,scaleY:s}}function t$(t,e,r,n){function a(t){return t.length?t.pop()+" ":""}return function(i,o){var s,l,c,u,h=[],d=[];return i=t(i),o=t(o),!function(t,n,a,i,o,s){if(t!==a||n!==i){var l=o.push("translate(",null,e,null,r);s.push({i:l-4,x:(0,tT.A)(t,a)},{i:l-2,x:(0,tT.A)(n,i)})}else(a||i)&&o.push("translate("+a+e+i+r)}(i.translateX,i.translateY,o.translateX,o.translateY,h,d),s=i.rotate,l=o.rotate,s!==l?(s-l>180?l+=360:l-s>180&&(s+=360),d.push({i:h.push(a(h)+"rotate(",null,n)-2,x:(0,tT.A)(s,l)})):l&&h.push(a(h)+"rotate("+l+n),c=i.skewX,u=o.skewX,c!==u?d.push({i:h.push(a(h)+"skewX(",null,n)-2,x:(0,tT.A)(c,u)}):u&&h.push(a(h)+"skewX("+u+n),!function(t,e,r,n,i,o){if(t!==r||e!==n){var s=i.push(a(i)+"scale(",null,",",null,")");o.push({i:s-4,x:(0,tT.A)(t,r)},{i:s-2,x:(0,tT.A)(e,n)})}else(1!==r||1!==n)&&i.push(a(i)+"scale("+r+","+n+")")}(i.scaleX,i.scaleY,o.scaleX,o.scaleY,h,d),i=o=null,function(t){for(var e,r=-1,n=d.length;++r<n;)h[(e=d[r]).i]=e.x(t);return h.join("")}}}var tR=t$(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tL:tC(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tN=t$(function(t){return null==t?tL:(n||(n=document.createElementNS("http://www.w3.org/2000/svg","g")),n.setAttribute("transform",t),t=n.transform.baseVal.consolidate())?tC((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tL},", ",")",")");function tI(t,e,r){var n=t._id;return t.each(function(){var t=tM(this,n);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return tE(t,n).value[e]}}var tK=r(85320),tD=r(94270),tP=r(16860);function tj(t,e){var r;return("number"==typeof e?tT.A:e instanceof tK.Ay?tD.Ay:(r=(0,tK.Ay)(e))?(e=r,tD.Ay):tP.A)(t,e)}var tz=J.prototype.constructor;function tF(t){return function(){this.style.removeProperty(t)}}var tB=0;function tY(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}var tW=J.prototype;tY.prototype=(function(t){return J().transition(t)}).prototype={constructor:tY,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=f(t));for(var n=this._groups,a=n.length,i=Array(a),o=0;o<a;++o)for(var s,l,c=n[o],u=c.length,h=i[o]=Array(u),d=0;d<u;++d)(s=c[d])&&(l=t.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,tA(h[d],e,r,d,h,tE(s,r)));return new tY(i,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=m(t));for(var n=this._groups,a=n.length,i=[],o=[],s=0;s<a;++s)for(var l,c=n[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,p=t.call(l,l.__data__,h,c),f=tE(l,r),g=0,y=p.length;g<y;++g)(d=p[g])&&tA(d,e,r,g,p,f);i.push(p),o.push(l)}return new tY(i,o,e,r)},selectChild:tW.selectChild,selectChildren:tW.selectChildren,filter:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,r=e.length,n=Array(r),a=0;a<r;++a)for(var i,o=e[a],s=o.length,l=n[a]=[],c=0;c<s;++c)(i=o[c])&&t.call(i,i.__data__,c,o)&&l.push(i);return new tY(n,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,r=t._groups,n=e.length,a=r.length,i=Math.min(n,a),o=Array(n),s=0;s<i;++s)for(var l,c=e[s],u=r[s],h=c.length,d=o[s]=Array(h),p=0;p<h;
11++p)(l=c[p]||u[p])&&(d[p]=l);for(;s<n;++s)o[s]=e[s];return new tY(o,this._parents,this._name,this._id)},selection:function(){return new tz(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=++tB,n=this._groups,a=n.length,i=0;i<a;++i)for(var o,s=n[i],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=tE(o,e);tA(o,t,r,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new tY(n,this._parents,t,r)},call:tW.call,nodes:tW.nodes,node:tW.node,size:tW.size,empty:tW.empty,each:tW.each,on:function(t,e){var r,n,a,i,o,s,l=this._id;return arguments.length<2?tE(this.node(),l).on.on(t):this.each((r=l,n=t,a=e,s=(n+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tS:tM,function(){var t=s(this,r),e=t.on;e!==i&&(o=(i=e).copy()).on(n,a),t.on=o}))},attr:function(t,e){var r=C(t),n="transform"===r?tN:tj;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var n,a,i;return function(){var o,s,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===n&&s===a?i:(a=s,i=e(n=o,l))}}:function(t,e,r){var n,a,i;return function(){var o,s,l=r(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=l+"")?null:o===n&&s===a?i:(a=s,i=e(n=o,l))}})(r,n,tI(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var n,a,i=r+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===n?a:a=e(n=o,r)}}:function(t,e,r){var n,a,i=r+"";return function(){var o=this.getAttribute(t);return o===i?null:o===n?a:a=e(n=o,r)}})(r,n,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();var n=C(t);return this.tween(r,(n.local?function(t,e){var r,n;function a(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&function(e){this.setAttributeNS(t.space,t.local,a.call(this,e))}),r}return a._value=e,a}:function(t,e){var r,n;function a(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&function(e){this.setAttribute(t,a.call(this,e))}),r}return a._value=e,a})(n,e))},style:function(t,e,r){var n,a,i,o,s,l,c,u,h,d,p,f,g,m,y,b,x,k,w,_,v,A="transform"==(t+="")?tR:tj;return null==e?this.styleTween(t,(n=t,function(){var t=R(this,n),e=(this.style.removeProperty(n),R(this,n));return t===e?null:t===a&&e===i?o:o=A(a=t,i=e)})).on("end.style."+t,tF(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tI(this,"style."+t,e),function(){var t=R(this,s),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(s),r=e=R(this,s)),t===r?null:t===c&&r===u?h:(u=r,h=A(c=t,e))})).each((d=this._id,x="end."+(b="style."+(p=t)),function(){var t=tM(this,d),e=t.on,r=null==t.value[b]?y||(y=tF(p)):void 0;(e!==f||m!==r)&&(g=(f=e).copy()).on(x,m=r),t.on=g})):this.styleTween(t,(k=t,v=e+"",function(){var t=R(this,k);return t===v?null:t===w?_:_=A(w=t,e)}),r).on("end.style."+t,null)},styleTween:function(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();return this.tween(n,function(t,e,r){var n,a;function i(){var i=e.apply(this,arguments);return i!==a&&(n=(a=i)&&function(e){this.style.setProperty(t,i.call(this,e),r)}),n}return i._value=e,i}(t,e,null==r?"":r))},text:function(t){var e,r;return this.tween("text","function"==typeof t?(e=tI(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(r=null==t?"":t+"",function(){this.textContent=r}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,r;function n(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&function(t){this.textContent=n.call(this,t)}),e}return n._value=t,n}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n,a=tE(this.node(),r).tween,i=0,o=a.length;i<o;++i)if((n=a[i]).name===t)return n.value;return null}return this.each((null==e?function(t,e){var r,n;return function(){var a=tM(this,t),i=a.tween;if(i!==r){n=r=i;for(var o=0,s=n.length;o<s;++o)if(n[o].name===e){(n=n.slice()).splice(o,1);break}}a.tween=n}}:function(t,e,r){var n,a;if("function"!=typeof r)throw Error();return function(){var i=tM(this,t),o=i.tween;if(o!==n){a=(n=o).slice();for(var s={name:e,value:r},l=0,c=a.length;l<c;++l)if(a[l].name===e){a[l]=s;break}l===c&&a.push(s)}i.tween=a}})(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tS(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tS(this,t).delay=e}})(e,t)):tE(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tM(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tM(this,t).duration=e}})(e,t)):tE(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tM(this,t).ease=e}}(e,t)):tE(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var r=t.apply(this,arguments);if("function"!=typeof r)throw Error();tM(this,e).ease=r}))},end:function(){var t,e,r=this,n=r._id,a=r.size();return new Promise(function(i,o){var s={value:o},l={value:function(){0==--a&&i()}};r.each(function(){var r=tM(this,n),a=r.on;a!==t&&((e=(t=a).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),r.on=e}),0===a&&i()})},[Symbol.iterator]:tW[Symbol.iterator]};var tU={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};J.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,n,a,i=t.__transition,o=!0;if(i){for(a in e=null==e?null:e+"",i){if((r=i[a]).name!==e){o=!1;continue}
11n=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[a]}o&&delete t.__transition}}(this,t)})},J.prototype.transition=function(t){var e,r;t instanceof tY?(e=t._id,t=t._name):(e=++tB,(r=tU).time=tf(),t=null==t?null:t+"");for(var n=this._groups,a=n.length,i=0;i<a;++i)for(var o,s=n[i],l=s.length,c=0;c<l;++c)(o=s[c])&&tA(o,t,e,c,s,r||function(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return r}(o,e));return new tY(n,this._parents,t,e)};let{abs:tq,max:tH,min:tX}=Math;function tG(t){return{type:t}}["w","e"].map(tG),["n","s"].map(tG),["n","w","e","s","nw","ne","sw","se"].map(tG);var tZ=r(1306);function tV(t){var e=0,r=t.children,n=r&&r.length;if(n)for(;--n>=0;)e+=r[n].value;else e=1;t.value=e}function tQ(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=t0)):void 0===e&&(e=tJ);for(var r,n,a,i,o,s=new t3(t),l=[s];r=l.pop();)if((a=e(r.data))&&(o=(a=Array.from(a)).length))for(r.children=a,i=o-1;i>=0;--i)l.push(n=a[i]=new t3(a[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(t2)}function tJ(t){return t.children}function t0(t){return Array.isArray(t)?t[1]:null}function t1(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function t2(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function t3(t){this.data=t,this.depth=this.height=0,this.parent=null}function t5(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}t3.prototype=tQ.prototype={constructor:t3,count:function(){return this.eachAfter(tV)},each:function(t,e){let r=-1;for(let n of this)t.call(e,n,++r,this);return this},eachAfter:function(t,e){for(var r,n,a,i=this,o=[i],s=[],l=-1;i=o.pop();)if(s.push(i),r=i.children)for(n=0,a=r.length;n<a;++n)o.push(r[n]);for(;i=s.pop();)t.call(e,i,++l,this);return this},eachBefore:function(t,e){for(var r,n,a=this,i=[a],o=-1;a=i.pop();)if(t.call(e,a,++o,this),r=a.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(t,e){let r=-1;for(let n of this)if(t.call(e,n,++r,this))return n},sum:function(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,n=e.children,a=n&&n.length;--a>=0;)r+=n[a].value;e.value=r})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),a=null;for(t=r.pop(),e=n.pop();t===e;)a=t,t=r.pop(),e=n.pop();return a}(e,t),n=[e];e!==r;)n.push(e=e.parent);for(var a=n.length;t!==r;)n.splice(a,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function(){return tQ(this).eachBefore(t1)},[Symbol.iterator]:function*(){var t,e,r,n,a=this,i=[a];do for(t=i.reverse(),i=[];a=t.pop();)if(yield a,e=a.children)for(r=0,n=e.length;r<n;++r)i.push(e[r]);while(i.length)}};let t6=function t(e){function r(t,r,n,a,i){!function(t,e,r,n,a,i){for(var o,s,l,c,u,h,d,p,f,g,m,y=[],b=e.children,x=0,k=0,w=b.length,_=e.value;x<w;){l=a-r,c=i-n;do u=b[k++].value;while(!u&&k<w);for(h=d=u,f=Math.max(d/(m=u*u*(g=Math.max(c/l,l/c)/(_*t))),m/h);k<w;++k){if(u+=s=b[k].value,s<h&&(h=s),s>d&&(d=s),(p=Math.max(d/(m=u*u*g),m/h))>f){u-=s;break}f=p}y.push(o={value:u,dice:l<c,children:b.slice(x,k)}),o.dice?function(t,e,r,n,a){for(var i,o=t.children,s=-1,l=o.length,c=t.value&&(n-e)/t.value;++s<l;)(i=o[s]).y0=r,i.y1=a,i.x0=e,i.x1=e+=i.value*c}(o,r,n,a,_?n+=c*u/_:i):function(t,e,r,n,a){for(var i,o=t.children,s=-1,l=o.length,c=t.value&&(a-r)/t.value;++s<l;)(i=o[s]).x0=e,i.x1=n,i.y0=r,i.y1=r+=i.value*c}(o,r,n,_?r+=l*u/_:a,i),_-=u,x=k}}(e,t,r,n,a,i)}return r.ratio=function(e){return t((e*=1)>1?e:1)},r}((1+Math.sqrt(5))/2);function t9(){return 0}function t8(t){return function(){return t}}function t4(){var t=t6,e=!1,r=1,n=1,a=[0],i=t9,o=t9,s=t9,l=t9,c=t9;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(h),a=[0],e&&t.eachBefore(t5),t}function h(e){var r=a[e.depth],n=e.x0+r,u=e.y0+r,h=e.x1-r,d=e.y1-r;
11h<n&&(n=h=(n+h)/2),d<u&&(u=d=(u+d)/2),e.x0=n,e.y0=u,e.x1=h,e.y1=d,e.children&&(r=a[e.depth+1]=i(e)/2,n+=c(e)-r,u+=o(e)-r,h-=s(e)-r,d-=l(e)-r,h<n&&(n=h=(n+h)/2),d<u&&(u=d=(u+d)/2),t(e,n,u,h,d))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=function(t){if("function"!=typeof t)throw Error();return t}(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(i="function"==typeof t?t:t8(+t),u):i},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:t8(+t),u):o},u.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:t8(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:t8(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:t8(+t),u):c},u}var t7=r(49586);let et=Math.PI/180,ee=180/Math.PI,er=4/29,en=6/29,ea=6/29*3*(6/29),ei=6/29*(6/29)*(6/29);function eo(t){if(t instanceof es)return new es(t.l,t.a,t.b,t.opacity);if(t instanceof ep)return ef(t);t instanceof tK.Gw||(t=(0,tK.b)(t));var e,r,n=eh(t.r),a=eh(t.g),i=eh(t.b),o=el((.2225045*n+.7168786*a+.0606169*i)/1);return n===a&&a===i?e=r=o:(e=el((.4360747*n+.3850649*a+.1430804*i)/.96422),r=el((.0139322*n+.0971045*a+.7141733*i)/.82521)),new es(116*o-16,500*(e-o),200*(o-r),t.opacity)}function es(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function el(t){return t>ei?Math.pow(t,1/3):t/ea+er}function ec(t){return t>en?t*t*t:ea*(t-er)}
11function eu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function eh(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ed(t,e,r,n){return 1==arguments.length?function(t){if(t instanceof ep)return new ep(t.h,t.c,t.l,t.opacity);if(t instanceof es||(t=eo(t)),0===t.a&&0===t.b)return new ep(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ee;return new ep(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ep(t,e,r,null==n?1:n)}function ep(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function ef(t){if(isNaN(t.h))return new es(t.l,0,0,t.opacity);var e=t.h*et;return new es(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}(0,t7.A)(es,function(t,e,r,n){return 1==arguments.length?eo(t):new es(t,e,r,null==n?1:n)},(0,t7.X)(tK.Q1,{brighter(t){return new es(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new es(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=.96422*ec(e),t=+ec(t),r=.82521*ec(r),new tK.Gw(eu(3.1338561*e-1.6168667*t-.4906146*r),eu(-.9787684*e+1.9161415*t+.033454*r),eu(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),(0,t7.A)(ep,ed,(0,t7.X)(tK.Q1,{brighter(t){return new ep(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new ep(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ef(this).rgb()}}));var eg=r(68744);function em(t){return function(e,r){var n=t((e=ed(e)).h,(r=ed(r)).h),a=(0,eg.Ay)(e.c,r.c),i=(0,eg.Ay)(e.l,r.l),o=(0,eg.Ay)(e.opacity,r.opacity);return function(t){return e.h=n(t),e.c=a(t),e.l=i(t),e.opacity=o(t),e+""}}}let ey=em(eg.lG);em(eg.Ay);var eb=r(69938);let ex=function(t){for(var e=t.length/6|0,r=Array(e),n=0;n<e;)r[n]="#"+t.slice(6*n,6*++n);return r}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ek(t){return"string"==typeof t?new Q([[document.querySelector(t)]],[document.documentElement]):new Q([[t]],V)}var ew=r(61978),e_=r(28408),ev=r(69742);function eA(t){return t.innerRadius}function eS(t){return t.outerRadius}function eM(t){return t.startAngle}function eE(t){return t.endAngle}function eT(t){return t&&t.padAngle}function eO(t,e,r,n,a,i,o){var s=t-r,l=e-n,c=(o?i:-i)/(0,e_.RZ)(s*s+l*l),u=c*l,h=-c*s,d=t+u,p=e+h,f=r+u,g=n+h,m=(d+f)/2,y=(p+g)/2,b=f-d,x=g-p,k=b*b+x*x,w=a-i,_=d*g-f*p,v=(x<0?-1:1)*(0,e_.RZ)((0,e_.T9)(0,w*w*k-_*_)),A=(_*x-b*v)/k,S=(-_*b-x*v)/k,M=(_*x+b*v)/k,E=(-_*b+x*v)/k,T=A-m,O=S-y,L=M-m,C=E-y;return T*T+O*O>L*L+C*C&&(A=M,S=E),{cx:A,cy:S,x01:-u,y01:-h,x11:A*(a/w-1),y11:S*(a/w-1)}}function eL(){var t=eA,e=eS,r=(0,ew.A)(0),n=null,a=eM,i=eE,o=eT,s=null,l=(0,ev.i)(c);function c(){var c,u,h=+t.apply(this,arguments),d=+e.apply(this,arguments),p=a.apply(this,arguments)-e_.TW,f=i.apply(this,arguments)-e_.TW,g=(0,e_.tn)(f-p),m=f>p;if(s||(s=c=l()),d<h&&(u=d,d=h,h=u),d>e_.Ni)if(g>e_.FA-e_.Ni)s.moveTo(d*(0,e_.gn)(p),d*(0,e_.F8)(p)),s.arc(0,0,d,p,f,!m),h>e_.Ni&&(s.moveTo(h*(0,e_.gn)(f),h*(0,e_.F8)(f)),s.arc(0,0,h,f,p,m));else{var y,b,x=p,k=f,w=p,_=f,v=g,A=g,S=o.apply(this,arguments)/2,M=S>e_.Ni&&(n?+n.apply(this,arguments):(0,e_.RZ)(h*h+d*d)),E=(0,e_.jk)((0,e_.tn)(d-h)/2,+r.apply(this,arguments)),T=E,O=E;if(M>e_.Ni){var L=(0,e_.qR)(M/h*(0,e_.F8)(S)),C=(0,e_.qR)(M/d*(0,e_.F8)(S));(v-=2*L)>e_.Ni?(L*=m?1:-1,w+=L,_-=L):(v=0,w=_=(p+f)/2),(A-=2*C)>e_.Ni?(C*=m?1:-1,x+=C,k-=C):(A=0,x=k=(p+f)/2)}var $=d*(0,e_.gn)(x),R=d*(0,e_.F8)(x),N=h*(0,e_.gn)(_),I=h*(0,e_.F8)(_);if(E>e_.Ni){var K,D=d*(0,e_.gn)(k),P=d*(0,e_.F8)(k),j=h*(0,e_.gn)(w),z=h*(0,e_.F8)(w);if(g<e_.pi)if(K=function(t,e,r,n,a,i,o,s){var l=r-t,c=n-e,u=o-a,h=s-i,d=h*l-u*c;if(!(d*d<e_.Ni))return d=(u*(e-i)-h*(t-a))/d,[t+d*l,e+d*c]}($,R,j,z,D,P,N,I)){var F=$-K[0],B=R-K[1],Y=D-K[0],W=P-K[1],U=1/(0,e_.F8)((0,e_.HQ)((F*Y+B*W)/((0,e_.RZ)(F*F+B*B)*(0,e_.RZ)(Y*Y+W*W)))/2),q=(0,e_.RZ)(K[0]*K[0]+K[1]*K[1]);T=(0,e_.jk)(E,(h-q)/(U-1)),O=(0,e_.jk)(E,(d-q)/(U+1))}else T=O=0}A>e_.Ni?O>e_.Ni?(y=eO(j,z,$,R,d,O,m),b=eO(D,P,N,I,d,O,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),O<E?s.arc(y.cx,y.cy,O,(0,e_.FP)(y.y01,y.x01),(0,e_.FP)(b.y01,b.x01),!m):(s.arc(y.
11cx,y.cy,O,(0,e_.FP)(y.y01,y.x01),(0,e_.FP)(y.y11,y.x11),!m),s.arc(0,0,d,(0,e_.FP)(y.cy+y.y11,y.cx+y.x11),(0,e_.FP)(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,O,(0,e_.FP)(b.y11,b.x11),(0,e_.FP)(b.y01,b.x01),!m))):(s.moveTo($,R),s.arc(0,0,d,x,k,!m)):s.moveTo($,R),h>e_.Ni&&v>e_.Ni?T>e_.Ni?(y=eO(N,I,D,P,h,-T,m),b=eO($,R,j,z,h,-T,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),T<E?s.arc(y.cx,y.cy,T,(0,e_.FP)(y.y01,y.x01),(0,e_.FP)(b.y01,b.x01),!m):(s.arc(y.cx,y.cy,T,(0,e_.FP)(y.y01,y.x01),(0,e_.FP)(y.y11,y.x11),!m),s.arc(0,0,h,(0,e_.FP)(y.cy+y.y11,y.cx+y.x11),(0,e_.FP)(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,T,(0,e_.FP)(b.y11,b.x11),(0,e_.FP)(b.y01,b.x01),!m))):s.arc(0,0,h,_,w,m):s.lineTo(N,I)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-e_.pi/2;return[(0,e_.gn)(n)*r,(0,e_.F8)(n)*r]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,ew.A)(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,ew.A)(+t),c):e},c.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:(0,ew.A)(+t),c):r},c.padRadius=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,ew.A)(+t),c):n},c.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:(0,ew.A)(+t),c):a},c.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:(0,ew.A)(+t),c):i},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:(0,ew.A)(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}var eC=r(57132),e$=r(3439);function eR(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function eN(t){return t}function eI(){var t=eN,e=eR,r=null,n=(0,ew.A)(0),a=(0,ew.A)(e_.FA),i=(0,ew.A)(0);function o(o){var s,l,c,u,h,d=(o=(0,e$.A)(o)).length,p=0,f=Array(d),g=Array(d),m=+n.apply(this,arguments),y=Math.min(e_.FA,Math.max(-e_.FA,a.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/d,i.apply(this,arguments)),x=b*(y<0?-1:1);for(s=0;s<d;++s)(h=g[f[s]=s]=+t(o[s],s,o))>0&&(p+=h);for(null!=e?f.sort(function(t,r){return e(g[t],g[r])}):null!=r&&f.sort(function(t,e){return r(o[t],o[e])}),s=0,c=p?(y-d*x)/p:0;s<d;++s,m=u)u=m+((h=g[l=f[s]])>0?h*c:0)+x,g[l]={data:o[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:b};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:(0,ew.A)(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,r=null,o):e},o.sort=function(t){return arguments.length?(r=t,e=null,o):r},o.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:(0,ew.A)(+t),o):n},o.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:(0,ew.A)(+t),o):a},o.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:(0,ew.A)(+t),o):i},o}var eK=r(9504),eD=r(96084),eP=r(80524),ej=r(29118);function ez(t,e){this._basis=new eP.xO(t),this._beta=e}ez.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,a=t[0],i=e[0],o=t[r]-a,s=e[r]-i,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+n*o),this._beta*e[l]+(1-this._beta)*(i+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let eF=function t(e){function r(t){return 1===e?new eP.xO(t):new ez(t,e)}return r.beta=function(e){return t(+e)},r}(.85);var eB=r(5406);function eY(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function eW(t,e){this._context=t,this._k=(1-e)/6}eW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:eY(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:eY(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let eU=function t(e){function r(t){return new eW(t,e)}return r.tension=function(e){return t(+e)},r}(0);function eq(t,e){this._context=t,this._k=(1-e)/6}eq.prototype={areaStart:eB.A,areaEnd:eB.A,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:eY(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let eH=function t(e){function r(t){return new eq(t,e)}return r.tension=function(e){return t(+e)},r}(0);function eX(t,e){this._context=t,this._k=(1-e)/6}eX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,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:eY(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let eG=function t(e){function r(t){return new eX(t,e)}return r.tension=function(e){return t(+e)},r}(0);function eZ(t,e,r){var n=t._x1,a=t._y1,i=t._x2,o=t._y2;if(t._l01_a>e_.Ni){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,a=(a*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>e_.Ni){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,a,i,o,t._x2,t._y2)}function eV(t,e){this._context=t,this._alpha=e}eV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:eZ(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let eQ=function t(e){function r(t){return e?new eV(t,e):new eW(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function eJ(t,e){this._context=t,this._alpha=e}eJ.prototype={areaStart:eB.A,areaEnd:eB.A,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:eZ(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let e0=function t(e){function r(t){return e?new eJ(t,e):new eq(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function e1(t,e){this._context=t,this._alpha=e}e1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:eZ(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let e2=function t(e){function r(t){return e?new e1(t,e):new eX(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);var e3=r(85119),e5=r(76191),e6=r(3149),e9=r(75711),e8=r(64712),e4=r(43272),e7=r(5819),rt=r(66135),re=r(10169),rr=r(33259),rn=r(57843),ra=r(84299),ri=r(45415);function ro(t,e,r){this.k=t,this.x=e,this.y=r}ro.prototype={constructor:ro,scale:function(t){return 1===t?this:new ro(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new ro(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new ro(1,0,0);ro.prototype},35212:(t,e,r)=>{"use strict";r.d(e,{O:()=>o,X:()=>s});var n=r(2209),a=r(34428),i=r(89959),o=(0,i.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins");async function s(t,e){let r=t.getElementsByTagName("img");if(!r||0===r.length)return;let o=""===e.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",o){let e=(0,a.D7)().fontSize?(0,a.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[r=a.UI.fontSize]=(0,n.I5)(e),i=5*r+"px";t.style.minWidth=i,t.style.maxWidth=i}else t.style.width="100%";e(t)}(0,i.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}(0,i.K)(s,"configureLabelImages")},36073:(t,e,r)=>{"use strict";r.d(e,{i:()=>a});var n=r(55592);function a(t){return(0,n.i)(t)}},37543:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(18319),a=r(53844);let i=(t,e)=>{let r=a.A.parse(t);for(let t in e)r[t]=n.A.channel.clamp[t](e[t]);return a.A.stringify(r)}},37961:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(53844),a=r(80973);let i=(t,e=100)=>{let r=n.A.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{let{r:i,g:o,b:s,a:l}=n.A.parse(t),{r:c,g:u,b:h,a:d}=n.A.parse(e),p=r/100,f=2*p-1,g=l-d,m=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,y=1-m;return(0,a.A)(i*m+c*y,o*m+u*y,s*m+h*y,l*p+d*(1-p))})(r,t,e)}},38310:(t,e)=>{"use strict";e.k=void 0,e.k=function(t,e){void 0===e&&(e={listUnicodeChar:""}),(e=e||{}).listUnicodeChar=!!e.hasOwnProperty("listUnicodeChar")&&e.listUnicodeChar,e.stripListLeaders=!e.hasOwnProperty("str
11ipListLeaders")||e.stripListLeaders,e.gfm=!e.hasOwnProperty("gfm")||e.gfm,e.useImgAltText=!e.hasOwnProperty("useImgAltText")||e.useImgAltText,e.preserveLinks=!!e.hasOwnProperty("preserveLinks")&&e.preserveLinks;var r=t||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{e.stripListLeaders&&(r=e.listUnicodeChar?r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,e.listUnicodeChar+" $1"):r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),e.gfm&&(r=r.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),e.preserveLinks&&(r=r.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),r=r.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,e.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,"\n\n").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,"\n\n")}catch(e){return console.error(e),t}return r}},39258:(t,e,r)=>{"use strict";r.d(e,{H:()=>ej,r:()=>eP});var n,a=r(89959);function i(t){return null==t}function o(t){return"object"==typeof t&&null!==t}function s(t,e){var r,n="";for(r=0;r<e;r+=1)n+=t;return n}function l(t){return 0===t&&-1/0==1/t}(0,a.K)(i,"isNothing"),(0,a.K)(o,"isObject"),(0,a.K)(function(t){return Array.isArray(t)?t:i(t)?[]:[t]},"toArray"),(0,a.K)(function(t,e){var r,n,a,i;if(e)for(r=0,n=(i=Object.keys(e)).length;r<n;r+=1)t[a=i[r]]=e[a];return t},"extend"),(0,a.K)(s,"repeat"),(0,a.K)(l,"isNegativeZero");var c={isNothing:i,isObject:o,repeat:s,isNegativeZero:l};function u(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),n+" "+r):n}function h(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=u(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function d(t,e,r,n,a){var i="",o="",s=Math.floor(a/2)-1;return n-e>s&&(e=n-s+(i=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:i+t.slice(e,r).replace(/\t/g,"→")+o,pos:n-e+i.length}}function p(t,e){return c.repeat(" ",e-t.length)+t}function f(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],a=[],i=-1;o=r.exec(t.buffer);)a.push(o.index),n.push(o.index+o[0].length),t.position<=o.index&&i<0&&(i=n.length-2);i<0&&(i=n.length-1);var o,s,l,u="",h=Math.min(t.line+e.linesAfter,a.length).toString().length,f=e.maxLength-(e.indent+h+3);for(s=1;s<=e.linesBefore&&!(i-s<0);s++)l=d(t.buffer,n[i-s],a[i-s],t.position-(n[i]-n[i-s]),f),u=c.repeat(" ",e.indent)+p((t.line-s+1).toString(),h)+" | "+l.str+"\n"+u;for(l=d(t.buffer,n[i],a[i],t.position,f),u+=c.repeat(" ",e.indent)+p((t.line+1).toString(),h)+" | "+l.str+"\n"+c.repeat("-",e.indent+h+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(i+s>=a.length);s++)l=d(t.buffer,n[i+s],a[i+s],t.position-(n[i]-n[i+s]),f),u+=c.repeat(" ",e.indent)+p((t.line+s+1).toString(),h)+" | "+l.str+"\n";return u.replace(/\n$/,"")}(0,a.K)(u,"formatError"),(0,a.K)(h,"YAMLException$1"),h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.toString=(0,a.K)(function(t){return this.name+": "+u(this,t)},"toString"),(0,a.K)(d,"getLine"),(0,a.K)(p,"padStart"),(0,a.K)(f,"makeSnippet");var g=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"];function y(t){var e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function b(t,e){if(Object.keys(e=e||{}
11).forEach(function(e){if(-1===g.indexOf(e))throw new h('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=y(e.styleAliases||null),-1===m.indexOf(this.kind))throw new h('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function x(t,e){var r=[];return t[e].forEach(function(t){var e=r.length;r.forEach(function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)}),r[e]=t}),r}function k(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for((0,a.K)(n,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(n);return r}function w(t){return this.extend(t)}(0,a.K)(y,"compileStyleAliases"),(0,a.K)(b,"Type$1"),(0,a.K)(x,"compileList"),(0,a.K)(k,"compileMap"),(0,a.K)(w,"Schema$1"),w.prototype.extend=(0,a.K)(function(t){var e=[],r=[];if(t instanceof b)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new h("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(t){if(!(t instanceof b))throw new h("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new h("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new h("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof b))throw new h("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(w.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=x(n,"implicit"),n.compiledExplicit=x(n,"explicit"),n.compiledTypeMap=k(n.compiledImplicit,n.compiledExplicit),n},"extend");var _=new w({explicit:[new b("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,a.K)(function(t){return null!==t?t:""},"construct")}),new b("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,a.K)(function(t){return null!==t?t:[]},"construct")}),new b("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,a.K)(function(t){return null!==t?t:{}},"construct")})]});function v(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function A(){return null}function S(t){return null===t}(0,a.K)(v,"resolveYamlNull"),(0,a.K)(A,"constructYamlNull"),(0,a.K)(S,"isNull");var M=new b("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:A,predicate:S,represent:{canonical:(0,a.K)(function(){return"~"},"canonical"),lowercase:(0,a.K)(function(){return"null"},"lowercase"),uppercase:(0,a.K)(function(){return"NULL"},"uppercase"),camelcase:(0,a.K)(function(){return"Null"},"camelcase"),empty:(0,a.K)(function(){return""},"empty")},defaultStyle:"lowercase"});function E(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function T(t){return"true"===t||"True"===t||"TRUE"===t}function O(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,a.K)(E,"resolveYamlBoolean"),(0,a.K)(T,"constructYamlBoolean"),(0,a.K)(O,"isBoolean");var L=new b("tag:yaml.org,2002:bool",{kind:"scalar",resolve:E,construct:T,predicate:O,represent:{lowercase:(0,a.K)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,a.K)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,a.K)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function C(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function $(t){return 48<=t&&t<=55}function R(t){return 48<=t&&t<=57}function N(t){if(null===t)return!1;var e,r=t.length,n=0,a=!1;if(!r)return!1;if(("-"===(e=t[n])||"+"===e)&&(e=t[++n]),"0"===e){if(n+1===r)return!0;
11if("b"===(e=t[++n])){for(n++;n<r;n++)if("_"!==(e=t[n])){if("0"!==e&&"1"!==e)return!1;a=!0}return a&&"_"!==e}if("x"===e){for(n++;n<r;n++)if("_"!==(e=t[n])){if(!C(t.charCodeAt(n)))return!1;a=!0}return a&&"_"!==e}if("o"===e){for(n++;n<r;n++)if("_"!==(e=t[n])){if(!$(t.charCodeAt(n)))return!1;a=!0}return a&&"_"!==e}}if("_"===e)return!1;for(;n<r;n++)if("_"!==(e=t[n])){if(!R(t.charCodeAt(n)))return!1;a=!0}return!!a&&"_"!==e}function I(t){var e,r=t,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(e=r[0])||"+"===e)&&("-"===e&&(n=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function K(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!c.isNegativeZero(t)}(0,a.K)(C,"isHexCode"),(0,a.K)($,"isOctCode"),(0,a.K)(R,"isDecCode"),(0,a.K)(N,"resolveYamlInteger"),(0,a.K)(I,"constructYamlInteger"),(0,a.K)(K,"isInteger");var D=new b("tag:yaml.org,2002:int",{kind:"scalar",resolve:N,construct:I,predicate:K,represent:{binary:(0,a.K)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,a.K)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}
11,"octal"),decimal:(0,a.K)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,a.K)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),P=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function j(t){return null!==t&&!!P.test(t)&&"_"!==t[t.length-1]}function z(t){var e,r;return(r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?1/0:-1/0:".nan"===e?NaN:r*parseFloat(e,10)}(0,a.K)(j,"resolveYamlFloat"),(0,a.K)(z,"constructYamlFloat");var F=/^[-+]?[0-9]+e/;function B(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(t))return"-0.0";return r=t.toString(10),F.test(r)?r.replace("e",".e"):r}function Y(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||c.isNegativeZero(t))}(0,a.K)(B,"representYamlFloat"),(0,a.K)(Y,"isFloat");var W=new b("tag:yaml.org,2002:float",{kind:"scalar",resolve:j,construct:z,predicate:Y,represent:B,defaultStyle:"lowercase"}),U=_.extend({implicit:[M,L,D,W]}),q=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),H=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function X(t){return null!==t&&(null!==q.exec(t)||null!==H.exec(t))}function G(t){var e,r,n,a,i,o,s,l,c=0,u=null;if(null===(e=q.exec(t))&&(e=H.exec(t)),null===e)throw Error("Date resolve error");
11if(r=+e[1],n=e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(r,n,a));if(i=+e[4],o=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c*=1}return e[9]&&(u=(60*e[10]+ +(e[11]||0))*6e4,"-"===e[9]&&(u=-u)),l=new Date(Date.UTC(r,n,a,i,o,s,c)),u&&l.setTime(l.getTime()-u),l}function Z(t){return t.toISOString()}(0,a.K)(X,"resolveYamlTimestamp"),(0,a.K)(G,"constructYamlTimestamp"),(0,a.K)(Z,"representYamlTimestamp");var V=new b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:X,construct:G,instanceOf:Date,represent:Z});function Q(t){return"<<"===t||null===t}(0,a.K)(Q,"resolveYamlMerge");var J=new b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Q}),tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function te(t){if(null===t)return!1;var e,r,n=0,a=t.length;for(r=0;r<a;r++)if(!((e=tt.indexOf(t.charAt(r)))>64)){if(e<0)return!1;n+=6}return n%8==0}function tr(t){var e,r,n=t.replace(/[\r\n=]/g,""),a=n.length,i=0,o=[];for(e=0;e<a;e++)e%4==0&&e&&(o.push(i>>16&255),o.push(i>>8&255),o.push(255&i)),i=i<<6|tt.indexOf(n.charAt(e));return 0==(r=a%4*6)?(o.push(i>>16&255),o.push(i>>8&255),o.push(255&i)):18===r?(o.push(i>>10&255),o.push(i>>2&255)):12===r&&o.push(i>>4&255),new Uint8Array(o)}function tn(t){var e,r,n="",a=0,i=t.length;for(e=0;e<i;e++)e%3==0&&e&&(n+=tt[a>>18&63],n+=tt[a>>12&63],n+=tt[a>>6&63],n+=tt[63&a]),a=(a<<8)+t[e];return 0==(r=i%3)?(n+=tt[a>>18&63],n+=tt[a>>12&63],n+=tt[a>>6&63],n+=tt[63&a]):2===r?(n+=tt[a>>10&63],n+=tt[a>>4&63],n+=tt[a<<2&63],n+=tt[64]):1===r&&(n+=tt[a>>2&63],n+=tt[a<<4&63],n+=tt[64],n+=tt[64]),n}function ta(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,a.K)(te,"resolveYamlBinary"),(0,a.K)(tr,"constructYamlBinary"),(0,a.K)(tn,"representYamlBinary"),(0,a.K)(ta,"isBinary");var ti=new b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:te,construct:tr,predicate:ta,represent:tn}),to=Object.prototype.hasOwnProperty,ts=Object.prototype.toString;function tl(t){if(null===t)return!0;var e,r,n,a,i,o=[];for(e=0,r=t.length;e<r;e+=1){if(n=t[e],i=!1,"[object Object]"!==ts.call(n))return!1;for(a in n)if(to.call(n,a))if(i)return!1;else i=!0;if(!i||-1!==o.indexOf(a))return!1;o.push(a)}return!0}function tc(t){return null!==t?t:[]}(0,a.K)(tl,"resolveYamlOmap"),(0,a.K)(tc,"constructYamlOmap");var tu=new b("tag:yaml.org,2002:omap",{kind:"sequence",resolve:tl,construct:tc}),th=Object.prototype.toString;function td(t){var e,r,n,a,i;if(null===t)return!0;for(e=0,i=Array(t.length),r=t.length;e<r;e+=1){if(n=t[e],"[object Object]"!==th.call(n)||1!==(a=Object.keys(n)).length)return!1;i[e]=[a[0],n[a[0]]]}return!0}function tp(t){var e,r,n,a,i;if(null===t)return[];for(e=0,i=Array(t.length),r=t.length;e<r;e+=1)a=Object.keys(n=t[e]),i[e]=[a[0],n[a[0]]];return i}(0,a.K)(td,"resolveYamlPairs"),(0,a.K)(tp,"constructYamlPairs");var tf=new b("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:td,construct:tp}),tg=Object.prototype.hasOwnProperty;function tm(t){var e;if(null===t)return!0;for(e in t)if(tg.call(t,e)&&null!==t[e])return!1;return!0}function ty(t){return null!==t?t:{}}(0,a.K)(tm,"resolveYamlSet"),(0,a.K)(ty,"constructYamlSet");var tb=new b("tag:yaml.org,2002:set",{kind:"mapping",resolve:tm,construct:ty}),tx=U.extend({implicit:[V,J],explicit:[ti,tu,tf,tb]}),tk=Object.prototype.hasOwnProperty,tw=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t_=/[\x85\u2028\u2029]/,tv=/[,\[\]\{\}]/,tA=/^(?:!|!!|![a-z\-]+!)$/i,tS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tM(t){return Object.prototype.toString.call(t)}function tE(t){return 10===t||13===t}function tT(t){return 9===t||32===t}function tO(t){return 9===t||32===t||10===t||13===t}function tL(t){return 44===t||91===t||93===t||123===t||125===t}function tC(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function t$(t){return 120===t?2:117===t?4:8*(85===t)}function tR(t){return 48<=t&&t<=57?t-48:-1}function tN(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t||9===t?"	":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}function tI(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function tK(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,a.K)(tM,"_class"),(0,a.K)(tE,"is_EOL"),(0,a.K)(tT,"is_WHITE_SPACE"),(0,a.K)(tO,"is_WS_OR_EOL"),(0,a.K)(tL,"is_FLOW_INDICATOR"),(0,a.K)(tC,"fromHexCode"),(0,a.K)(t$,"escapedHexLen"),(0,a.K)(tR,"fromDecimalCode"),(0,a.K)(tN,"simpleEscapeSequence"),(0,a.K)(tI,"charFromCodepoint"),(0,a.K)(tK,"setProperty");var tD=Array(256),tP=Array(256);for(n=0;n<256;n++)tD[n]=+!!tN(n),tP[n]=tN(n);function tj(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||tx,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.impl
11icitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function tz(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=f(r),new h(e,r)}function tF(t,e){throw tz(t,e)}function tB(t,e){t.onWarning&&t.onWarning.call(null,tz(t,e))}(0,a.K)(tj,"State$1"),(0,a.K)(tz,"generateError"),(0,a.K)(tF,"throwError"),(0,a.K)(tB,"throwWarning");var tY={YAML:(0,a.K)(function(t,e,r){var n,a,i;null!==t.version&&tF(t,"duplication of %YAML directive"),1!==r.length&&tF(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&tF(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),i=parseInt(n[2],10),1!==a&&tF(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=i<2,1!==i&&2!==i&&tB(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,a.K)(function(t,e,r){var n,a;2!==r.length&&tF(t,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],tA.test(n)||tF(t,"ill-formed tag handle (first argument) of the TAG directive"),tk.call(t.tagMap,n)&&tF(t,'there is a previously declared suffix for "'+n+'" tag handle'),tS.test(a)||tF(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(e){tF(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function tW(t,e,r,n){var a,i,o,s;if(e<r){if(s=t.input.slice(e,r),n)for(a=0,i=s.length;a<i;a+=1)9===(o=s.charCodeAt(a))||32<=o&&o<=1114111||tF(t,"expected valid JSON character");else tw.test(s)&&tF(t,"the stream contains non-printable characters");t.result+=s}}function tU(t,e,r,n){var a,i,o,s;for(c.isObject(r)||tF(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(a=Object.keys(r)).length;o<s;o+=1)i=a[o],tk.call(e,i)||(tK(e,i,r[i]),n[i]=!0)}function tq(t,e,r,n,a,i,o,s,l){var c,u;if(Array.isArray(a))for(c=0,u=(a=Array.prototype.slice.call(a)).length;c<u;c+=1)Array.isArray(a[c])&&tF(t,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===tM(a[c])&&(a[c]="[object Object]");if("object"==typeof a&&"[object Object]"===tM(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)tU(t,e,i[c],r);else tU(t,e,i,r);else!t.json&&!tk.call(r,a)&&tk.call(e,a)&&(t.line=o||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,tF(t,"duplicated mapping key")),tK(e,a,i),delete r[a];return e}function tH(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):tF(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function tX(t,e,r){for(var n=0,a=t.input.charCodeAt(t.position);0!==a;){for(;tT(a);)9===a&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),a=t.input.charCodeAt(++t.position);if(e&&35===a)do a=t.input.charCodeAt(++t.position);while(10!==a&&13!==a&&0!==a);if(tE(a))for(tH(t),a=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);else break}return -1!==r&&0!==n&&t.lineIndent<r&&tB(t,"deficient indentation"),n}function tG(t){var e,r=t.position;return!!((45===(e=t.input.charCodeAt(r))||46===e)&&e===t.input.charCodeAt(r+1)&&e===t.input.charCodeAt(r+2)&&(r+=3,0===(e=t.input.charCodeAt(r))||tO(e)))||!1}function tZ(t,e){1===e?t.result+=" ":e>1&&(t.result+=c.repeat("\n",e-1))}function tV(t,e,r){var n,a,i,o,s,l,c,u,h=t.kind,d=t.result;if(tO(u=t.input.charCodeAt(t.position))||tL(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(tO(n=t.input.charCodeAt(t.position+1))||r&&tL(n)))return!1;for(t.kind="scalar",t.result="",a=i=t.position,o=!1;0!==u;){if(58===u){if(tO(n=t.input.charCodeAt(t.position+1))||r&&tL(n))break}else if(35===u){if(tO(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&tG(t)||r&&tL(u))break;else if(tE(u)){if(s=t.line,l=t.lineStart,c=t.lineIndent,tX(t,!1,-1),t.lineIndent>=e){o=!0,u=t.input.charCodeAt(t.position);continue}t.position=i,t.line=s,t.lineStart=l,t.lineIndent=c;break}
11o&&(tW(t,a,i,!1),tZ(t,t.line-s),a=i=t.position,o=!1),tT(u)||(i=t.position+1),u=t.input.charCodeAt(++t.position)}return tW(t,a,i,!1),!!t.result||(t.kind=h,t.result=d,!1)}function tQ(t,e){var r,n,a;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=a=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(tW(t,n,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;n=t.position,t.position++,a=t.position}else tE(r)?(tW(t,n,a,!0),tZ(t,tX(t,!1,e)),n=a=t.position):t.position===t.lineStart&&tG(t)?tF(t,"unexpected end of the document within a single quoted scalar"):(t.position++,a=t.position);tF(t,"unexpected end of the stream within a single quoted scalar")}function tJ(t,e){var r,n,a,i,o,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(s=t.input.charCodeAt(t.position));)if(34===s)return tW(t,r,t.position,!0),t.position++,!0;else if(92===s){if(tW(t,r,t.position,!0),tE(s=t.input.charCodeAt(++t.position)))tX(t,!1,e);else if(s<256&&tD[s])t.result+=tP[s],t.position++;else if((o=t$(s))>0){for(a=o,i=0;a>0;a--)(o=tC(s=t.input.charCodeAt(++t.position)))>=0?i=(i<<4)+o:tF(t,"expected hexadecimal character");t.result+=tI(i),t.position++}else tF(t,"unknown escape sequence");r=n=t.position}else tE(s)?(tW(t,r,n,!0),tZ(t,tX(t,!1,e)),r=n=t.position):t.position===t.lineStart&&tG(t)?tF(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position);tF(t,"unexpected end of the stream within a double quoted scalar")}function t0(t,e){var r,n,a,i,o,s,l,c,u,h,d,p,f=!0,g=t.tag,m=t.anchor,y=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))o=93,c=!1,i=[];else{if(123!==p)return!1;o=125,c=!0,i={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=i),p=t.input.charCodeAt(++t.position);0!==p;){if(tX(t,!0,e),(p=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=i,!0;f?44===p&&tF(t,"expected the node content, but found ','"):tF(t,"missed comma between flow collection entries"),h=u=d=null,s=l=!1,63===p&&tO(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,tX(t,!0,e)),r=t.line,n=t.lineStart,a=t.position,t8(t,e,1,!1,!0),h=t.tag,u=t.result,tX(t,!0,e),p=t.input.charCodeAt(t.position),(l||t.line===r)&&58===p&&(s=!0,p=t.input.charCodeAt(++t.position),tX(t,!0,e),t8(t,e,1,!1,!0),d=t.result),c?tq(t,i,y,h,u,d,r,n,a):s?i.push(tq(t,null,y,h,u,d,r,n,a)):i.push(u),tX(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(f=!0,p=t.input.charCodeAt(++t.position)):f=!1}tF(t,"unexpected end of the stream within a flow collection")}function t1(t,e){var r,n,a,i,o=1,s=!1,l=!1,u=e,h=0,d=!1;if(124===(i=t.input.charCodeAt(t.position)))n=!1;else{if(62!==i)return!1;n=!0}for(t.kind="scalar",t.result="";0!==i;)if(43===(i=t.input.charCodeAt(++t.position))||45===i)1===o?o=43===i?3:2:tF(t,"repeat of a chomping mode identifier");else if((a=tR(i))>=0)0===a?tF(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?tF(t,"repeat of an indentation width identifier"):(u=e+a-1,l=!0);else break;if(tT(i)){do i=t.input.charCodeAt(++t.position);while(tT(i));if(35===i)do i=t.input.charCodeAt(++t.position);while(!tE(i)&&0!==i)}for(;0!==i;){for(tH(t),t.lineIndent=0,i=t.input.charCodeAt(t.position);(!l||t.lineIndent<u)&&32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>u&&(u=t.lineIndent),tE(i)){h++;continue}if(t.lineIndent<u){3===o?t.result+=c.repeat("\n",s?1+h:h):1===o&&s&&(t.result+="\n");break}for(n?tT(i)?(d=!0,t.result+=c.repeat("\n",s?1+h:h)):d?(d=!1,t.result+=c.repeat("\n",h+1)):0===h?s&&(t.result+=" "):t.result+=c.repeat("\n",h):t.result+=c.repeat("\n",s?1+h:h),s=!0,l=!0,h=0,r=t.position;!tE(i)&&0!==i;)i=t.input.charCodeAt(++t.position);tW(t,r,t.position,!1)}return!0}function t2(t,e){var r,n,a=t.tag,i=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,tF(t,"tab characters must not be used in indentation")),45===n&&tO(t.input.charCodeAt(t.position+1)));){if(s=!0,t.position++,tX(t,!0,-1)&&t.lineIndent<=e){o.push(null),n=t.input.charCodeAt(t.position);continue}if(r=t.line,t8(t,e,3,!1,!0),o.push(t.result),tX(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)tF(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}
11return!!s&&(t.tag=a,t.anchor=i,t.kind="sequence",t.result=o,!0)}function t3(t,e,r){var n,a,i,o,s,l,c,u=t.tag,h=t.anchor,d={},p=Object.create(null),f=null,g=null,m=null,y=!1,b=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,tF(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),i=t.line,(63===c||58===c)&&tO(n))63===c?(y&&(tq(t,d,p,f,g,null,o,s,l),f=g=m=null),b=!0,y=!0,a=!0):y?(y=!1,a=!0):tF(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=n;else{if(o=t.line,s=t.lineStart,l=t.position,!t8(t,r,2,!1,!0))break;if(t.line===i){for(c=t.input.charCodeAt(t.position);tT(c);)c=t.input.charCodeAt(++t.position);if(58===c)tO(c=t.input.charCodeAt(++t.position))||tF(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(tq(t,d,p,f,g,null,o,s,l),f=g=m=null),b=!0,y=!1,a=!1,f=t.tag,g=t.result;else{if(!b)return t.tag=u,t.anchor=h,!0;tF(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return t.tag=u,t.anchor=h,!0;tF(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===i||t.lineIndent>e)&&(y&&(o=t.line,s=t.lineStart,l=t.position),t8(t,e,4,!0,a)&&(y?g=t.result:m=t.result),y||(tq(t,d,p,f,g,m,o,s,l),f=g=m=null),tX(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===i||t.lineIndent>e)&&0!==c)tF(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&tq(t,d,p,f,g,null,o,s,l),b&&(t.tag=u,t.anchor=h,t.kind="mapping",t.result=d),b}function t5(t){var e,r,n,a,i=!1,o=!1;if(33!==(a=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&tF(t,"duplication of a tag property"),60===(a=t.input.charCodeAt(++t.position))?(i=!0,a=t.input.charCodeAt(++t.position)):33===a?(o=!0,r="!!",a=t.input.charCodeAt(++t.position)):r="!",e=t.position,i){do a=t.input.charCodeAt(++t.position);while(0!==a&&62!==a);t.position<t.length?(n=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):tF(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!tO(a);)33===a&&(o?tF(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),tA.test(r)||tF(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),tv.test(n)&&tF(t,"tag suffix cannot contain flow indicator characters")}n&&!tS.test(n)&&tF(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(e){tF(t,"tag name is malformed: "+n)}return i?t.tag=n:tk.call(t.tagMap,r)?t.tag=t.tagMap[r]+n:"!"===r?t.tag="!"+n:"!!"===r?t.tag="tag:yaml.org,2002:"+n:tF(t,'undeclared tag handle "'+r+'"'),!0}function t6(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&tF(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!tO(r)&&!tL(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&tF(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function t9(t){var e,r,n;if(42!==(n=t.input.charCodeAt(t.position)))return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!tO(n)&&!tL(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&tF(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),tk.call(t.anchorMap,r)||tF(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],tX(t,!0,-1),!0}function t8(t,e,r,n,a){var i,o,s,l,c,u,h,d,p,f=1,g=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,i=o=s=4===r||3===r,n&&tX(t,!0,-1)&&(g=!0,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)),1===f)for(;t5(t)||t6(t);)tX(t,!0,-1)?(g=!0,s=i,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)):s=!1;if(s&&(s=g||a),(1===f||4===r)&&(d=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===f?s&&(t2(t,p)||t3(t,p,d))||t0(t,d)?m=!0:(o&&t1(t,d)||tQ(t,d)||tJ(t,d)?m=!0:t9(t)?(m=!0,(null!==t.tag||null!==t.anchor)&&tF(t,"alias node should not have any properties")):tV(t,d,1===r)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(m=s&&t2(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&tF(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,c=t.implicitTypes.length;l<c;
11l+=1)if((h=t.implicitTypes[l]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(tk.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(l=0,h=null,c=(u=t.typeMap.multi[t.kind||"fallback"]).length;l<c;l+=1)if(t.tag.slice(0,u[l].tag.length)===u[l].tag){h=u[l];break}h||tF(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&tF(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):tF(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function t4(t){var e,r,n,a,i=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(a=t.input.charCodeAt(t.position))&&(tX(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===a);){for(o=!0,a=t.input.charCodeAt(++t.position),e=t.position;0!==a&&!tO(a);)a=t.input.charCodeAt(++t.position);for(r=t.input.slice(e,t.position),n=[],r.length<1&&tF(t,"directive name must not be less than one character in length");0!==a;){for(;tT(a);)a=t.input.charCodeAt(++t.position);if(35===a){do a=t.input.charCodeAt(++t.position);while(0!==a&&!tE(a));break}if(tE(a))break;for(e=t.position;0!==a&&!tO(a);)a=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position))}0!==a&&tH(t),tk.call(tY,r)?tY[r](t,r,n):tB(t,'unknown document directive "'+r+'"')}if(tX(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,tX(t,!0,-1)):o&&tF(t,"directives end mark is expected"),t8(t,t.lineIndent-1,4,!1,!0),tX(t,!0,-1),t.checkLineBreaks&&t_.test(t.input.slice(i,t.position))&&tB(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&tG(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,tX(t,!0,-1));return}t.position<t.length-1&&tF(t,"end of the stream or a document separator is expected")}function t7(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new tj(t,e),n=t.indexOf("\0");for(-1!==n&&(r.position=n,tF(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)t4(r);return r.documents}function et(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var n=t7(t,r);if("function"!=typeof e)return n;for(var a=0,i=n.length;a<i;a+=1)e(n[a])}function ee(t,e){var r=t7(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new h("expected a single document in the stream, but found more")}}(0,a.K)(tW,"captureSegment"),(0,a.K)(tU,"mergeMappings"),(0,a.K)(tq,"storeMappingPair"),(0,a.K)(tH,"readLineBreak"),(0,a.K)(tX,"skipSeparationSpace"),(0,a.K)(tG,"testDocumentSeparator"),(0,a.K)(tZ,"writeFoldedLines"),(0,a.K)(tV,"readPlainScalar"),(0,a.K)(tQ,"readSingleQuotedScalar"),(0,a.K)(tJ,"readDoubleQuotedScalar"),(0,a.K)(t0,"readFlowCollection"),(0,a.K)(t1,"readBlockScalar"),(0,a.K)(t2,"readBlockSequence"),(0,a.K)(t3,"readBlockMapping"),(0,a.K)(t5,"readTagProperty"),(0,a.K)(t6,"readAnchorProperty"),(0,a.K)(t9,"readAlias"),(0,a.K)(t8,"composeNode"),(0,a.K)(t4,"readDocument"),(0,a.K)(t7,"loadDocuments"),(0,a.K)(et,"loadAll$1"),(0,a.K)(ee,"load$1");var er={loadAll:et,load:ee},en=Object.prototype.toString,ea=Object.prototype.hasOwnProperty,ei={};ei[0]="\\0",ei[7]="\\a",ei[8]="\\b",ei[9]="\\t",ei[10]="\\n",ei[11]="\\v",ei[12]="\\f",ei[13]="\\r",ei[27]="\\e",ei[34]='\\"',ei[92]="\\\\",ei[133]="\\N",ei[160]="\\_",ei[8232]="\\L",ei[8233]="\\P";var eo=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],es=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function el(t,e){var r,n,a,i,o,s,l;if(null===e)return{};for(a=0,r={},i=(n=Object.keys(e)).length;a<i;a+=1)s=String(e[o=n[a]]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=t.compiledTypeMap.fallback[o])&&ea.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}function ec(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=0xffffffff)r="U",n=8;else throw new h("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+c.repeat("0",n-e.length)+e}function eu(t){this.schema=t.schema||tx,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=c.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=el(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.impl
11icitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eh(t,e){for(var r,n=c.repeat(" ",e),a=0,i=-1,o="",s=t.length;a<s;)-1===(i=t.indexOf("\n",a))?(r=t.slice(a),a=s):(r=t.slice(a,i+1),a=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function ed(t,e){return"\n"+c.repeat(" ",t.indent*e)}function ep(t,e){var r,n;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function ef(t){return 32===t||9===t}function eg(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function em(t){return eg(t)&&65279!==t&&13!==t&&10!==t}function ey(t,e,r){var n=em(t),a=n&&!ef(t);return(r?n:n&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!a)||em(e)&&!ef(e)&&35===t||58===e&&a}function eb(t){return eg(t)&&65279!==t&&!ef(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function ex(t){return!ef(t)&&58!==t}function ek(t,e){var r,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function ew(t){return/^\n* /.test(t)}function e_(t,e,r,n,a,i,o,s){var l,c=0,u=null,h=!1,d=!1,p=-1!==n,f=-1,g=eb(ek(t,0))&&ex(ek(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(!eg(c=ek(t,l)))return 5;g=g&&ey(c,u,s),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(10===(c=ek(t,l)))h=!0,p&&(d=d||l-f-1>n&&" "!==t[f+1],f=l);else if(!eg(c))return 5;g=g&&ey(c,u,s),u=c}d=d||p&&l-f-1>n&&" "!==t[f+1]}return h||d?r>9&&ew(t)?5:o?2===i?5:2:d?4:3:!g||o||a(t)?2===i?5:2:1}function ev(t,e,r,n,i){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==eo.indexOf(e)||es.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),l=n||t.flowLevel>-1&&r>=t.flowLevel;function c(e){return ep(t,e)}switch((0,a.K)(c,"testAmbiguity"),e_(e,l,t.indent,s,c,t.quotingType,t.forceQuotes&&!n,i)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+eA(e,t.indent)+eS(eh(e,o));case 4:return">"+eA(e,t.indent)+eS(eh(eM(e,s),o));case 5:return'"'+eT(e)+'"';default:throw new h("impossible error: invalid scalar style")}}()}function eA(t,e){var r=ew(t)?String(e):"",n="\n"===t[t.length-1];return r+(n&&("\n"===t[t.length-2]||"\n"===t)?"+":n?"":"-")+"\n"}function eS(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function eM(t,e){for(var r,n,a,i=/(\n+)([^\n]*)/g,o=(i.lastIndex=r=-1!==(r=t.indexOf("\n"))?r:t.length,eE(t.slice(0,r),e)),s="\n"===t[0]||" "===t[0];a=i.exec(t);){var l=a[1],c=a[2];n=" "===c[0],o+=l+(s||n||""===c?"":"\n")+eE(c,e),s=n}return o}function eE(t,e){if(""===t||" "===t[0])return t;for(var r,n,a=/ [^ ]/g,i=0,o=0,s=0,l="";r=a.exec(t);)(s=r.index)-i>e&&(n=o>i?o:s,l+="\n"+t.slice(i,n),i=n+1),o=s;return l+="\n",t.length-i>e&&o>i?l+=t.slice(i,o)+"\n"+t.slice(o+1):l+=t.slice(i),l.slice(1)}function eT(t){for(var e,r="",n=0,a=0;a<t.length;n>=65536?a+=2:a++)!(e=ei[n=ek(t,a)])&&eg(n)?(r+=t[a],n>=65536&&(r+=t[a+1])):r+=e||ec(n);return r}function eO(t,e,r){var n,a,i,o="",s=t.tag;for(n=0,a=r.length;n<a;n+=1)i=r[n],t.replacer&&(i=t.replacer.call(r,String(n),i)),(eN(t,e,i,!1,!1)||void 0===i&&eN(t,e,null,!1,!1))&&(""!==o&&(o+=","+(t.condenseFlow?"":" ")),o+=t.dump);t.tag=s,t.dump="["+o+"]"}function eL(t,e,r,n){var a,i,o,s="",l=t.tag;for(a=0,i=r.length;a<i;a+=1)o=r[a],t.replacer&&(o=t.replacer.call(r,String(a),o)),(eN(t,e+1,o,!0,!0,!1,!0)||void 0===o&&eN(t,e+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=ed(t,e)),t.dump&&10===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function eC(t,e,r){var n,a,i,o,s,l="",c=t.tag,u=Object.keys(r);for(n=0,a=u.length;n<a;n+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),o=r[i=u[n]],t.replacer&&(o=t.replacer.call(r,i,o)),eN(t,e,i,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),eN(t,e,o,!1,
11!1)&&(s+=t.dump,l+=s));t.tag=c,t.dump="{"+l+"}"}function e$(t,e,r,n){var a,i,o,s,l,c,u="",d=t.tag,p=Object.keys(r);if(!0===t.sortKeys)p.sort();else if("function"==typeof t.sortKeys)p.sort(t.sortKeys);else if(t.sortKeys)throw new h("sortKeys must be a boolean or a function");for(a=0,i=p.length;a<i;a+=1)c="",n&&""===u||(c+=ed(t,e)),s=r[o=p[a]],t.replacer&&(s=t.replacer.call(r,o,s)),eN(t,e+1,o,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=ed(t,e)),eN(t,e+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?c+=":":c+=": ",c+=t.dump,u+=c));t.tag=d,t.dump=u||"{}"}function eR(t,e,r){var n,a,i,o,s,l;for(i=0,o=(a=r?t.explicitTypes:t.implicitTypes).length;i<o;i+=1)if(((s=a[i]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(r?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(l=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===en.call(s.represent))n=s.represent(e,l);else if(ea.call(s.represent,l))n=s.represent[l](e,l);else throw new h("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}function eN(t,e,r,n,a,i,o){t.tag=null,t.dump=r,eR(t,r,!1)||eR(t,r,!0);var s=en.call(t.dump),l=n;n&&(n=t.flowLevel<0||t.flowLevel>e);var c,u,d,p="[object Object]"===s||"[object Array]"===s;if(p&&(d=-1!==(u=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||d||2!==t.indent&&e>0)&&(a=!1),d&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(p&&d&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),"[object Object]"===s)n&&0!==Object.keys(t.dump).length?(e$(t,e,t.dump,a),d&&(t.dump="&ref_"+u+t.dump)):(eC(t,e,t.dump),d&&(t.dump="&ref_"+u+" "+t.dump));else if("[object Array]"===s)n&&0!==t.dump.length?(t.noArrayIndent&&!o&&e>0?eL(t,e-1,t.dump,a):eL(t,e,t.dump,a),d&&(t.dump="&ref_"+u+t.dump)):(eO(t,e,t.dump),d&&(t.dump="&ref_"+u+" "+t.dump));else if("[object String]"===s)"?"!==t.tag&&ev(t,t.dump,e,i,l);else{if("[object Undefined]"===s||t.skipInvalid)return!1;throw new h("unacceptable kind of an object to dump "+s)}null!==t.tag&&"?"!==t.tag&&(c=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),c="!"===t.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",t.dump=c+" "+t.dump)}return!0}function eI(t,e){var r,n,a=[],i=[];for(eK(t,a,i),r=0,n=i.length;r<n;r+=1)e.duplicates.push(a[i[r]]);e.usedDuplicates=Array(n)}function eK(t,e,r){var n,a,i;if(null!==t&&"object"==typeof t)if(-1!==(a=e.indexOf(t)))-1===r.indexOf(a)&&r.push(a);else if(e.push(t),Array.isArray(t))for(a=0,i=t.length;a<i;a+=1)eK(t[a],e,r);else for(a=0,i=(n=Object.keys(t)).length;a<i;a+=1)eK(t[n[a]],e,r)}(0,a.K)(el,"compileStyleMap"),(0,a.K)(ec,"encodeHex"),(0,a.K)(eu,"State"),(0,a.K)(eh,"indentString"),(0,a.K)(ed,"generateNextLine"),(0,a.K)(ep,"testImplicitResolving"),(0,a.K)(ef,"isWhitespace"),(0,a.K)(eg,"isPrintable"),(0,a.K)(em,"isNsCharOrWhitespace"),(0,a.K)(ey,"isPlainSafe"),(0,a.K)(eb,"isPlainSafeFirst"),(0,a.K)(ex,"isPlainSafeLast"),
11(0,a.K)(ek,"codePointAt"),(0,a.K)(ew,"needIndentIndicator");function eD(t,e){return function(){throw Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}(0,a.K)(e_,"chooseScalarStyle"),(0,a.K)(ev,"writeScalar"),(0,a.K)(eA,"blockHeader"),(0,a.K)(eS,"dropEndingNewline"),(0,a.K)(eM,"foldString"),(0,a.K)(eE,"foldLine"),(0,a.K)(eT,"escapeString"),(0,a.K)(eO,"writeFlowSequence"),(0,a.K)(eL,"writeBlockSequence"),(0,a.K)(eC,"writeFlowMapping"),(0,a.K)(e$,"writeBlockMapping"),(0,a.K)(eR,"detectType"),(0,a.K)(eN,"writeNode"),(0,a.K)(eI,"getDuplicateReferences"),(0,a.K)(eK,"inspectNode"),(0,a.K)(function(t,e){var r=new eu(e=e||{});r.noRefs||eI(t,r);var n=t;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),eN(r,0,n,!0,!0))?r.dump+"\n":""},"dump$1"),(0,a.K)(eD,"renamed");var eP=U,ej=er.load;er.loadAll,eD("safeLoad","load"),eD("safeLoadAll","loadAll"),eD("safeDump","dump")},50509:(t,e,r)=>{"use strict";r.d(e,{W:()=>tP,G:()=>tY});var n=r(58526),a=r(2209),i=r(34428),o=r(1937),s=r(89959),l=r(34182);function c(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var u=c(),h={exec:()=>null};function d(t,e=""){let r="string"==typeof t?t:t.source,n={replace:(t,e)=>{let a="string"==typeof e?e:e.source;return a=a.replace(f.caret,"$1"),r=r.replace(t,a),n},getRegex:()=>new RegExp(r,e)};return n}var p=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),f={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},g=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,m=/(?:[*+-]|\d{1,9}[.)])/,y=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,b=d(y).replace(/bull/g,m).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),x=d(y).replace(/bull/g,m).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),k=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,_=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",w).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),v=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,m).getRegex(),A="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",S=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,M=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
11)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",S).replace("tag",A).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),E=d(k).replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex(),T={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",E).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:_,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:g,html:M,lheading:b,list:v,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:E,table:h,text:/^[^\n]+/},O=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex(),L={...T,lheading:x,table:O,paragraph:d(k).replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",O).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex()},C={...T,html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",S).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:h,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(k).replace("hr",g).replace("heading",` *#{1,6} *[^
12]`).replace("lheading",b).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$=/^( {2,}|\\)\n(?!\s*$)/,R=/[\p{P}\p{S}]/u,N=/[\s\p{P}\p{S}]/u,I=/[^\s\p{P}\p{S}]/u,K=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,N).getRegex(),D=/(?!~)[\p{P}\p{S}]/u,P=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",p?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),j=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,z=d(j,"u").replace(/punct/g,R).getRegex(),F=d(j,"u").replace(/punct/g,D).getRegex(),B="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Y=d(B,"gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,N).replace(/punct/g,R).getRegex(),W=d(B,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,D).getRegex(),U=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,N).replace(/punct/g,R).getRegex(),q=d(/\\(punct)/,"gu").replace(/punct/g,R).getRegex(),H=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),X=d(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),G=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",X).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Z=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,V=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Z).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Q=d(/^!?\[(label)\]\[(ref)\]/).replace("label",Z).replace("ref",w).getRegex(),J=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",w).getRegex(),tt=d("reflink|nolink(?!\\()","g").replace("reflink",Q).replace("nolink",J).getRegex(),te=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,tr={_backpedal:h,anyPunctuation:q,autolink:H,blockSkip:P,br:$,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:h,emStrongLDelim:z,emStrongRDelimAst:Y,emStrongRDelimUnd:U,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:V,nolink:J,punctuation:K,reflink:Q,reflinkSearch:tt,tag:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:h},tn={...tr,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",Z).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z).getRegex()},ta={...tr,emStrongRDelimAst:W,emStrongLDelim:F,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",te).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",te).getRegex()},ti={...ta,br:d($).replace("{2,}","*").getRegex(),text:d(ta.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:T,gfm:L,pedantic:C},ts={normal:tr,gfm:ta,breaks:ti,pedantic:tn},tl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tc=t=>tl[t];function tu(t,e){if(e){if(f.escapeTest.test(t))return t.replace(f.escapeReplace,tc)}else if(f.escapeTestNoEncode.test(t))return t.replace(f.escapeReplaceNoEncode,tc);return t}function th(t){try{t=encodeURI(t).replace(f.percentDecode,"%")}catch{return null}return t}function td(t,e){let r=t.replace(f.findPipe,(t,e,r)=>{let n=!1,a=e;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"}).split(f.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(f.slashPipe,"|");return r}function tp(t,e,r){let n=t.length;if(0===n)return"";let a=0;for(;a<n;){let i=t.charAt(n-a-1);if(i!==e||r)if(i!==e&&r)a++;else break;else a++}return t.slice(0,n-a)}function tf(t,e,r,n,a){let i=e.href,o=e.title||null,s=t[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:i,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var tg=class{options;rules;lexer;constructor(t){this.options=t||u}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:tp(t,`
13`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(null===n)return e;let a=n[1];return e.split(`
14`).map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[n]=e;return n.length>=a.length?t.slice(a.length):t}).join(`
15`)}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=tp(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:tp(e[0],`
16`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=tp(e[0],`
17`).split(`
18`),r="",n="",a=[];for(;t.length>0;){let e=!1,i=[],o;for(o=0;o<t.length;o++)if(this.rules.other.blockquoteStart.test(t[o]))i.push(t[o]),e=!0;else if(e)break;else i.push(t[o]);t=t.slice(o);let s=i.join(`
19`),l=s.replace(this.rules.other.blockquoteSetextReplace,`
20    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
21${s}`:s,n=n?`${n}
22${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,a,!0),this.lexer.state.top=c,
220===t.length)break;let u=a.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let e=u.raw+`
23`+t.join(`
24`),i=this.blockquote(e);a[a.length-1]=i,r=r.substring(0,r.length-u.raw.length)+i.raw,n=n.substring(0,n.length-u.text.length)+i.text;break}if(u?.type==="list"){let e=u.raw+`
25`+t.join(`
26`),i=this.list(e);a[a.length-1]=i,r=r.substring(0,r.length-u.raw.length)+i.raw,n=n.substring(0,n.length-u.raw.length)+i.raw,t=e.substring(a.at(-1).raw.length).split(`
27`);continue}}return{type:"blockquote",raw:r,tokens:a,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),n=r.length>1,a={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),o=!1;for(;t;){let r=!1,n="",s="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;n=e[0],t=t.substring(n.length);let l=e[2].split(`
28`,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split(`
29`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,s=l.trimStart()):u?h=e[1].length+1:(h=(h=e[2].search(this.rules.other.nonSpaceChar))>4?1:h,s=l.slice(h),h+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+`
30`,t=t.substring(c.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(h),r=this.rules.other.hrRegex(h),a=this.rules.other.fencesBeginRegex(h),i=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h);for(;t;){let d=t.split(`
31`,1)[0],p;if(c=d,p=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting,"  "):c.replace(this.rules.other.tabCharGlobal,"    "),a.test(c)||i.test(c)||o.test(c)||e.test(c)||r.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=h||!c.trim())s+=`
32`+p.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||a.test(l)||i.test(l)||r.test(l))break;s+=`
33`+c}u||c.trim()||(u=!0),n+=d+`
34`,t=t.substring(d.length+1),l=p.slice(h)}}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(o=!0));let d=null,p;this.options.gfm&&(d=this.rules.other.listIsTask.exec(s))&&(p="[ ] "!==d[0],s=s.replace(this.rules.other.listReplaceTask,"")),a.items.push({type:"list_item",raw:n,task:!!d,checked:p,loose:!1,text:s,tokens:[]}),a.raw+=n}let s=a.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),a.raw=a.raw.trimEnd();for(let t=0;t<a.items.length;t++)if(this.lexer.state.top=!1,a.items[t].tokens=this.lexer.blockTokens(a.items[t].text,[]),!a.loose){let e=a.items[t].tokens.filter(t=>"space"===t.type);a.loose=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw))}if(a.loose)for(let t=0;t<a.items.length;t++)a.items[t].loose=!0;return a}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=td(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
35`):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let t of n)this.rules.other.tableAlignRight.test(t)?i.align.push("right"):this.rules.other.tableAlignCenter.test(t)?i.align.push("center"):this.rules.other.tableAlignLeft.test(t)?i.align.push("left"):i.align.push(null);for(let t=0;t<r.length;t++)i.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:i.align[t]});for(let t of a)i.rows.push(td(t,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t=e[1].charAt(e[1].length-1)===`
36`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=tp(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(")"))return -1;let r=0;for(let n=0;n<t.length;n++)if("\\"===t[n])n++;else if("("===t[n])r++;else if(t[n]===e[1]&&--r<0)return n;return r>0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],n="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],n=t[3])}else n=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),tf(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return tf(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,a,i,o=r,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(n=l.exec(e));){if(!(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(i=[...a].length,n[3]||n[4]){o+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){s+=i;continue}if((o-=i)>0)continue;i=Math.min(i,i+o+s);let e=[...n[0]][0].length,l=t.slice(0,r+n.index+e+i);if(Math.min(r,i)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),n=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&n&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return r="@"===e[2]?"mailto:"+(t=e[1]):t=e[1],{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])r="mailto:"+(t=e[0]);else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},tm=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||u,this.options.tokenizer=this.options.tokenizer||new tg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:f,block:to.normal,inline:ts.normal};this.options.pedantic?(e.block=to.pedantic,e.inline=ts.pedantic):this.options.gfm&&(e.block=to.gfm,this.options.breaks?e.inline=ts.breaks:e.inline=ts.gfm),this.tokenizer.rules=e}static get rules(){return{block:to,inline:ts}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(f.carriageReturn,`
37`),this.blockTokens(t,this.tokens);for(let t=0;
37t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){for(this.options.pedantic&&(t=t.replace(f.tabCharGlobal,"    ").replace(f.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let r=e.at(-1);1===n.raw.length&&void 0!==r?r.raw+=`
38`:e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
39`)?"":`
40`)+n.raw,r.text+=`
41`+n.text,this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if((n=this.tokenizer.fences(t))||(n=this.tokenizer.heading(t))||(n=this.tokenizer.hr(t))||(n=this.tokenizer.blockquote(t))||(n=this.tokenizer.list(t))||(n=this.tokenizer.html(t))){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
42`)?"":`
43`)+n.raw,r.text+=`
44`+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},e.push(n));continue}if((n=this.tokenizer.table(t))||(n=this.tokenizer.lheading(t))){t=t.substring(n.raw.length),e.push(n);continue}let a=t;if(this.options.extensions?.startBlock){let e=1/0,r=t.slice(1),n;this.options.extensions.startBlock.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(a=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let i=e.at(-1);r&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
45`)?"":`
46`)+n.raw,i.text+=`
47`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):e.push(n),r=a.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
48`)?"":`
49`)+n.raw,r.text+=`
50`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,n=t,a=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,a.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(n));)r=a[2]?a[2].length:0,n=n.slice(0,a.index+r)+"["+"a".repeat(a[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,o="";for(;t;){let r;if(i||(o=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if((r=this.tokenizer.escape(t))||(r=this.tokenizer.tag(t))||(r=this.tokenizer.link(t))){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if((r=this.tokenizer.emStrong(t,n,o))||(r=this.tokenizer.codespan(t))||(r=this.tokenizer.br(t))||(r=this.tokenizer.del(t))||(r=this.tokenizer.autolink(t))||!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let a=t;if(this.options.extensions?.startInline){let e=1/0,r=t.slice(1),n;this.options.extensions.startInline.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(a=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(a)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),i=!0;let n=e.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},ty=class{options;parser;constructor(t){this.options=t||u}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(f.notSpaceStart)?.[0],a=t.replace(f.endingNewline,"")+`
51`;return n?'<pre><code class="language-'+tu(n)+'">'+(r?a:tu(a,!0))+`</code></pre>
52`:"<pre><code>"+(r?a:tu(a,!0))+`</code></pre>
53`}blockquote({tokens:t}){return`<blockquote>
54${this.parser.parse(t)}</blockquote>
55`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
56`}hr(t){return`<hr>
57`}list(t){let e=t.ordered,r=t.start,n="";for(let e=0;e<t.items.length;e++){let r=t.items[e];n+=this.listitem(r)}let a=e?"ol":"ul";return"<"+a+(e&&1!==r?' start="'+r+'"':"")+`>
58`+n+"</"+a+`>
59`}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+tu(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
60`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
61`}table(t){let e="",r="";for(let e=0;e<t.header.length;e++)r+=this.tablecell(t.header[e]);e+=this.tablerow({text:r});let n="";for(let e=0;e<t.rows.length;e++){let a=t.rows[e];r="";for(let t=0;t<a.length;t++)r+=this.tablecell(a[t]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
62<thead>
63`+e+`</thead>
64`+n+`</table>
65`}tablerow({text:t}){return`<tr>
66${t}</tr>
67`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
68`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${tu(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let n=this.parser.parseInline(r),a=th(t);if(null===a)return n;let i='<a href="'+(t=a)+'"';return e&&(i+=' title="'+tu(e)+'"'),i+=">"+n+"</a>"}image({href:t,title:e,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=th(t);if(null===a)return tu(r);t=a;let i=`<img src="${t}" alt="${r}"`;return e&&(i+=` title="${tu(e)}"`),i+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tu(t.text)}},tb=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},tx=class t{options;renderer;textRenderer;constructor(t){this.options=t||u,this.options.renderer=this.options.renderer||new ty,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tb}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(t,e=!0){let r="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let t=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){r+=t||"";continue}}switch(a.type){case"space":r+=this.renderer.space(a);continue;case"hr":r+=this.renderer.hr(a);continue;case"heading":r+=this.renderer.heading(a);continue;case"code":r+=this.renderer.code(a);continue;case"table":r+=this.renderer.table(a);continue;case"blockquote":r+=this.renderer.blockquote(a);continue;case"list":r+=this.renderer.list(a);continue;case"html":r+=this.renderer.html(a);continue;case"def":r+=this.renderer.def(a);continue;
68case"paragraph":r+=this.renderer.paragraph(a);continue;case"text":{let i=a,o=this.renderer.text(i);for(;n+1<t.length&&"text"===t[n+1].type;)i=t[++n],o+=`
69`+this.renderer.text(i);e?r+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):r+=o;continue}default:{let t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}parseInline(t,e=this.renderer){let r="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let t=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=t||"";continue}}switch(a.type){case"escape":case"text":r+=e.text(a);break;case"html":r+=e.html(a);break;case"link":r+=e.link(a);break;case"image":r+=e.image(a);break;case"strong":r+=e.strong(a);break;case"em":r+=e.em(a);break;case"codespan":r+=e.codespan(a);break;case"br":r+=e.br(a);break;case"del":r+=e.del(a);break;default:{let t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}},tk=class{options;block;constructor(t){this.options=t||u}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?tm.lex:tm.lexInline}provideParser(){return this.block?tx.parse:tx.parseInline}},tw=new class{defaults=c();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tx;Renderer=ty;TextRenderer=tb;Lexer=tm;Tokenizer=tg;Hooks=tk;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let n of t)switch(r=r.concat(e.call(this,n)),n.type){case"table":for(let t of n.header)r=r.concat(this.walkTokens(t.tokens,e));for(let t of n.rows)for(let n of t)r=r.concat(this.walkTokens(n.tokens,e));break;case"list":r=r.concat(this.walkTokens(n.items,e));break;default:{let t=n;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(n=>{let a=t[n].flat(1/0);r=r.concat(this.walkTokens(a,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];r?e.renderers[t.name]=function(...e){let n=t.renderer.apply(this,e);return!1===n&&(n=r.apply(this,e)),n}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new ty(this.defaults);for(let r in t.renderer){if(!(r in e))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=t.renderer[r],a=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=a.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new tg(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=t.tokenizer[r],a=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tk;for(let r in t.hooks){if(!(r in e))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=t.hooks[r],a=e[r];tk.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tk.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(e,t);return a.call(e,r)})();let i=n.call(e,t);return a.call(e,i)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(e,t);return!1===r&&(r=await a.apply(e,t)),r})();let r=n.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,n=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(n.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tm.lex(t,e??this.defaults)}parser(t,e){return tx.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===n.async)return i(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let r=a.hooks?await a.hooks.preprocess(e):e,n=await (a.hooks?await a.hooks.provideLexer():t?tm.lex:tm.lexInline)(r,a),i=a.hooks?await a.hooks.processAllTokens(n):n;a.walkTokens&&await Promise.all(this.walkTokens(i,a.walkTokens));let o=await (a.hooks?await a.hooks.provideParser():t?tx.parse:tx.parseInline)(i,a);return a.hooks?await a.hooks.postprocess(o):o})().catch(i);try{a.hooks&&(e=a.hooks.preprocess(e));let r=(a.hooks?a.hooks.provideLexer():t?tm.lex:tm.lexInline)(e,a);a.hooks&&(r=a.hooks.processAllTokens(r)),a.walkTokens&&this.walkTokens(r,a.walkTokens);let n=(a.hooks?a.hooks.provideParser():t?tx.parse:tx.parseInline)(r,a);return a.hooks&&(n=a.hooks.postprocess(n)),n}catch(t){return i(t)}}}onError(t,e){return r=>{if(r.message+=`
70Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+tu(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function t_(t,e){return tw.parse(t,e)}t_.options=t_.setOptions=function(t){return tw.setOptions(t),t_.defaults=tw.defaults,u=t_.defaults,t_},t_.getDefaults=c,t_.defaults=u,t_.use=function(...t){return tw.use(...t),t_.defaults=tw.defaults,u=t_.defaults,t_},t_.walkTokens=function(t,e){return tw.walkTokens(t,e)},t_.parseInline=tw.parseInline,t_.Parser=tx,t_.parser=tx.parse,t_.Renderer=ty,t_.TextRenderer=tb,t_.Lexer=tm,t_.lexer=tm.lex,t_.Tokenizer=tg,t_.Hooks=tk,t_.parse=t_,t_.options,t_.setOptions,t_.use,t_.walkTokens,t_.parseInline,tx.parse,tm.lex;var tv=r(33458);function tA(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,tv.T)(r)}function tS(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function tM(t,e={}){let r=tA(t,e),n=t_.lexer(r),a=[[]],i=0;function o(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(i++,a.push([])),t.split(" ").forEach(t=>{(t=t.replace(/&#39;/g,"'"))&&a[i].push({content:t,type:e})})}
70):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{o(e,t.type)}):"html"===t.type&&a[i].push({content:t.text,type:"normal"})}return(0,s.K)(o,"processNode"),n.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{o(t)}):"html"===t.type?a[i].push({content:t.text,type:"normal"}):a[i].push({content:t.raw,type:"normal"})}),a}function tE(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function tT(t,{markdownAutoWrap:e}={}){let r=t_.lexer(t);function n(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>");if("strong"===t.type)return`<strong>${t.tokens?.map(n).join("")}</strong>`;if("em"===t.type)return`<em>${t.tokens?.map(n).join("")}</em>`;if("paragraph"===t.type)return`<p>${t.tokens?.map(n).join("")}</p>`;if("space"===t.type)return"";else if("html"===t.type)return`${t.text}`;else if("escape"===t.type)return t.text;return o.R.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,s.K)(n,"output"),r.map(n).join("")}function tO(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tL(t,e){return tC(t,[],tO(e.content),e.type)}function tC(t,e,r,n){if(0===r.length)return[{content:e.join(""),type:n},{content:"",type:n}];let[a,...i]=r,o=[...e,a];return t([{content:o.join(""),type:n}])?tC(t,o,i,n):(0===e.length&&a&&(e.push(a),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function t$(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tR(t,e)}function tR(t,e,r=[],n=[]){if(0===t.length)return n.length>0&&r.push(n),r.length>0?r:[];let a="";" "===t[0].content&&(a=" ",t.shift());let i=t.shift()??{content:" ",type:"normal"},o=[...n];if(""!==a&&o.push({content:a,type:"normal"}),o.push(i),e(o))return tR(t,e,r,o);if(n.length>0)r.push(n),t.unshift(i);else if(i.content){let[n,a]=tL(e,i);r.push([n]),a.content&&t.unshift(a)}return tR(t,e,r)}function tN(t,e){e&&t.attr("style",e)}async function tI(t,e,r,n,a=!1,o=(0,i.zj)()){let s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,16384)}px`),s.attr("height",`${Math.min(10*r,16384)}px`);let l=s.append("xhtml:div"),c=(0,i.Wi)(e.label)?await (0,i.dj)(e.label.replace(i.Y2.lineBreakRegex,"\n"),o):(0,i.jZ)(e.label,o),u=e.isNode?"nodeLabel":"edgeLabel",h=l.append("span");h.html(c),tN(h,e.labelStyle),h.attr("class",`${u} ${n}`),tN(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==1/0&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&l.attr("class","labelBkg");let d=l.node().getBoundingClientRect();return d.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),d=l.node().getBoundingClientRect()),s.node()}function tK(t,e,r,n=!1){let a=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&a.attr("text-anchor","middle"),a}function tD(t,e,r){let n=t.append("text"),a=tK(n,1,e);tF(a,r);let i=a.node().getComputedTextLength();return n.remove(),i}function tP(t,e,r){let n=t.append("text"),a=tK(n,1,e);tF(a,[{content:r,type:"normal"}]);let i=a.node()?.getBoundingClientRect();return i&&n.remove(),i}function tj(t,e,r,n=!1,a=!1){let i=e.append("g"),o=i.insert("rect").attr("class","background").attr("style","stroke: none"),l=i.append("text").attr("y","-10.1");a&&l.attr("text-anchor","middle");let c=0;for(let e of r){let r=(0,s.K)(e=>tD(i,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:t$(e,r))tF(tK(l,c,1.1,a),t),c++}if(!n)return l.node();{let t=l.node().getBBox();return o.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),i.node()}}function tz(t){return t.replace(/&(amp|lt|gt);/g,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function tF(t,e){t.text(""),e.forEach((e,r)=>{let n=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?n.text(tz(e.content)):n.text(" "+tz(e.content))})}async function tB(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,a,o)=>(r.push((async()=>{let r=`${a}:${o}`;return await (0,n.dn)(r)?await (0,n.WY)(r,void 0,{class:"label-icon"}):`<i class='${(0,i.jZ)(t,e).replace(":"," ")}'></i>`})()),t));let a=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}(0,s.K)(tA,"preprocessMarkdown"),(0,s.K)(tS,"nonMarkdownToLines"),(0,s.K)(tM,"markdownToLines"),(0,s.K)(tE,"nonMarkdownToHTML"),(0,s.K)(tT,"markdownToHTML"),(0,s.K)(tO,"splitTextToChars"),(0,s.K)(tL,"splitWordToFitWidth"),(0,s.K)(tC,"splitWordToFitWidthRecursion"),(0,s.K)(t$,"splitLineToFitWidth"),(0,s.K)(tR,"splitLineToFitWidthRecursion"),(0,s.K)(tN,"applyStyle"),(0,s.K)(tI,"addHtmlSpan"),(0,s.K)(tK,"createTspan"),(0,s.K)(tD,"computeWidthOfText"),
70(0,s.K)(tP,"computeDimensionOfText"),(0,s.K)(tj,"createFormattedText"),(0,s.K)(tz,"decodeHTMLEntities"),(0,s.K)(tF,"updateTextContentAndStyles"),(0,s.K)(tB,"replaceIconSubstring");var tY=(0,s.K)(async(t,e="",{style:r="",isTitle:n=!1,classes:s="",useHtmlLabels:c=!0,markdown:u=!0,isNode:h=!0,width:d=200,addSvgBackground:p=!1}={},f)=>{if(o.R.debug("XYZ createText",e,r,n,s,c,h,"addSvgBackground: ",p),c){let n=u?tT(e,f):tE(e),o=await tB((0,a.Sm)(n),f),l=e.replace(/\\\\/g,"\\"),c={isNode:h,label:(0,i.Wi)(e)?l:o,labelStyle:r.replace("fill:","color:")};return await tI(t,c,d,s,p,f)}{let i=(0,a.Sm)(e.replace(/<br\s*\/?>/g,"<br/>")),o=tj(d,t,u?tM(i.replace("<br>","<br/>"),f):tS(i),!!e&&p,!h);if(h){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,l.Ltv)(o).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,l.Ltv)(o).select("rect").attr("style",t.replace(/background:/g,"fill:"));let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,l.Ltv)(o).select("text").attr("style",e)}return n?(0,l.Ltv)(o).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,l.Ltv)(o).selectAll("tspan.text-outer-tspan").classed("row",!0),o}},"createText")},53844:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(98536),a=r(90141);let i={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(i.re);if(!e)return;let r=e[1],a=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,c=l?1:17,u=l?8:4,h=s?0:-1,d=l?255:15;return n.A.set({r:(a>>u*(h+3)&d)*c,g:(a>>u*(h+2)&d)*c,b:(a>>u*(h+1)&d)*c,a:s?(a&d)*c/255:1},t)},stringify:t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(n)]}${a.Y[Math.round(255*i)]}`:`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(n)]}`}};var o=r(18319);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return o.A.channel.clamp.h(.9*parseFloat(t));case"rad":return o.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return o.A.channel.clamp.h(360*parseFloat(t))}}return o.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,a,i,l,c,u]=r;return n.A.set({h:s._hue2deg(a),s:o.A.channel.clamp.s(parseFloat(i)),l:o.A.channel.clamp.l(parseFloat(l)),a:c?o.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{h:e,s:r,l:n,a}=t;return a<1?`hsla(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%, ${a})`:`hsl(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%)`}},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",s
70almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return i.parse(e)},stringify:t=>{let e=i.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},c={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(c.re);if(!r)return;let[,a,i,s,l,u,h,d,p]=r;return n.A.set({r:o.A.channel.clamp.r(i?2.55*parseFloat(a):parseFloat(a)),g:o.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.A.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:d?o.A.channel.clamp.a(p?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{let{r:e,g:r,b:n,a}=t;return a<1?`rgba(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)}, ${o.A.lang.round(a)})`:`rgb(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)})`}},u={format:{keyword:l,hex:i,rgb:c,rgba:c,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=i.parse(t)||c.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(a.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?i.stringify(t):c.stringify(t)}},55592:(t,e,r)=>{"use strict";function n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>n})},58526:(t,e,r)=>{"use strict";r.d(e,{WY:()=>S,dn:()=>A,pC:()=>_,Gc:()=>x});var n=r(34428),a=r(1937),i=r(89959);let o=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...s,...l}),u=Object.freeze({...c,body:"",hidden:!1});function h(t,e){let r=function(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}(t,e);for(let n in u)n in l?n in t&&!(n in r)&&(r[n]=l[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function d(t,e,r){let n=t.icons,a=t.aliases||Object.create(null),i={};function o(t){i=h(n[t]||a[t],i)}return o(e),r.forEach(o),h(t,i)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...l}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let n=t.split(f);if(null===n||!n.length)return t;let a=[],i=n.shift(),o=g.test(i);for(;;){if(o){let t=parseFloat(i);isNaN(t)?a.push(i):a.push(Math.ceil(t*e*r)/r)}else a.push(i);if(void 0===(i=n.shift()))return a.join("");o=!o}}let y=/\sid="(\S+)"/g,b=new Map;var x={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},k=new Map,w=new Map,_=(0,i.K)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(a.R.debug("Registering icon pack:",e.name),"loader"in e)w.set(e.name,e.loader);else if("icons"in e)k.set(e.name,e.icons);else throw a.R.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),v=(0,i.K)(async(t,e)=>{let r=((t,e,r,n="")=>{let a=t.split(":");if("@"===t.slice(0,1)){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){let t=a.pop(),r=a.pop(),i={provider:a.length>0?a[0]:n,prefix:r,name:t};return e&&!o(i)?null:i}let i=a[0],s=i.split("-");if(s.length>1){let t={provider:n,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(r&&""===n){let t={provider:n,prefix:"",name:i};return e&&!o(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw Error(`Icon name must contain a prefix: ${t}`);let i=k.get(n);if(!i){let t=w.get(n);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{i={...await t(),prefix:n},k.set(n,i)}catch(t){throw a.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){if(t.icons[e])return d(t,e,[]);let r=function(t,e){let r=t.icons,n=t.aliases||Object.create(null),a=Object.create(null);
70return(e||Object.keys(r).concat(Object.keys(n))).forEach(function t(e){if(r[e])return a[e]=[];if(!(e in a)){a[e]=null;let r=n[e]&&n[e].parent,i=r&&t(r);i&&(a[e]=[r].concat(i))}return a[e]}),a}(t,[e])[e];return r?d(t,e,r):null}(i,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),A=(0,i.K)(async t=>{try{return await v(t),!0}catch{return!1}},"isIconAvailable"),S=(0,i.K)(async(t,e,r)=>{let i;try{i=await v(t,e?.fallbackPrefix)}catch(t){a.R.error(t),i=x}let o=function(t,e){let r,n,a={...c,...t},i={...p,...e},o={left:a.left,top:a.top,width:a.width,height:a.height},s=a.body;[a,i].forEach(t=>{let e,r=[],n=t.hFlip,a=t.vFlip,i=t.rotate;switch(n?a?i+=2:(r.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),r.push("scale(-1 1)"),o.top=o.left=0):a&&(r.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),r.push("scale(1 -1)"),o.top=o.left=0),i<0&&(i-=4*Math.floor(i/4)),i%=4){case 1:r.unshift("rotate(90 "+(e=o.height/2+o.top).toString()+" "+e.toString()+")");break;case 2:r.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:r.unshift("rotate(-90 "+(e=o.width/2+o.left).toString()+" "+e.toString()+")")}i%2==1&&(o.left!==o.top&&(e=o.left,o.left=o.top,o.top=e),o.width!==o.height&&(e=o.width,o.width=o.height,o.height=e)),r.length&&(s=function(t,e,r){var n,a;let i=function(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let a=t.indexOf(">",n),i=t.indexOf("</"+e);if(-1===a||-1===i)break;let o=t.indexOf(">",i);if(-1===o)break;r+=t.slice(a+1,i).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}(t);return n=i.defs,a=e+i.content+r,n?"<defs>"+n+"</defs>"+a:a}(s,'<g transform="'+r.join(" ")+'">',"</g>"))});let l=i.width,u=i.height,h=o.width,d=o.height;null===l?r=m(n=null===u?"1em":"auto"===u?d:u,h/d):(r="auto"===l?h:l,n=null===u?m(r,d/h):"auto"===u?d:u);let f={},g=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(f[t]=e.toString())};g("width",r),g("height",n);let y=[o.left,o.top,h,d];return f.viewBox=y.join(" "),{attributes:f,viewBox:y,body:s}}(i,e),s=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t){let e,r=[];for(;e=y.exec(t);)r.push(e[1]);if(!r.length)return t;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(e=>{let r=function(t){t=t.replace(/[0-9]+$/,"")||"a";let e=b.get(t)||0;return b.set(t,e+1),e?`${t}${e}`:t}(e),a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),t=t.replace(RegExp(n,"g"),"")}(o.body),{...o.attributes,...r});return(0,n.jZ)(s,(0,n.zj)())},"getIconSVG")},63689:(t,e,r)=>{"use strict";e.J=function(t){if(!t)return n.BLANK_URL;var e,r=a(t.trim());do e=(r=a(r=r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||r.match(n.htmlEntitiesRegex)||r.match(n.htmlCtrlEntityRegex)||r.match(n.whitespaceEscapeCharsRegex);while(e&&e.length>0);var i=r;if(!i)return n.BLANK_URL;if(n.relativeFirstCharacters.indexOf(i[0])>-1)return i;var o=i.trimStart(),s=o.match(n.urlSchemeRegex);if(!s)return i;var l=s[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(l))return n.BLANK_URL;var c=o.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!URL.canParse(c))return n.BLANK_URL;var u=new URL(c);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return c};var n=r(8588);function a(t){try{return decodeURIComponent(t)}catch(e){return t}}},67840:(t,e,r)=>{"use strict";r.d(e,{$V:()=>o,Av:()=>n,GX:()=>f,ML:()=>A,NA:()=>h,OG:()=>a,Qb:()=>m,R_:()=>s,Uw:()=>d,VP:()=>l,XZ:()=>k,ZR:()=>x,_u:()=>_,cT:()=>p,i1:()=>w,iq:()=>g,kj:()=>i,pj:()=>u,q:()=>y,ri:()=>v,vC:()=>c,x6:()=>b});let n="[object RegExp]",a="[object String]",i="[object Number]",o="[object Boolean]",s="[object Arguments]",l="[object Symbol]",c="[object Date]",u="[object Map]",h="[object Set]",d="[object Array]",p="[object ArrayBuffer]",f="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",x="[object Uint32Array]",k="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",v="[object Float32Array]",A="[object Float64Array
70]"},70903:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",a="week",i="month",o="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof k||!(!t||!t[g])},y=function t(e,r,n){var a;if(!e)return p;if("string"==typeof e){var i=e.toLowerCase();f[i]&&(a=i),r&&(f[i]=r,a=i);var o=e.split("-");if(!a&&o.length>1)return t(o[0])}else{var s=e.name;f[s]=e,a=s}return!n&&a&&(p=a),a||!n&&p},b=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},x={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),a=e.clone().add(n,i),o=r-a<0,s=e.clone().add(n+(o?-1:1),i);return+(-(n+(r-a)/(o?a-s:s-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:i,y:s,w:a,d:"day",D:l,h:n,m:r,s:e,ms:t,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=y,x.i=m,x.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function d(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var p=d.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(u);if(n){var a=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return b(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<b(t)},p.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,o){var c=this,u=!!x.u(o)||o,h=x.p(t),d=function(t,e){var r=x.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return u?r:r.endOf("day")},p=function(t,e){return x.w(c.toDate()[t].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},f=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case s:return u?d(1,0):d(31,11);case i:return u?d(1,g):d(0,g+1);case a:var b=this.$locale().weekStart||0,k=(f<b?f+7:f)-b;return d(u?m-k:m+(6-k),g);case"day":case l:return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case e:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(a,o){var c,u=x.p(a),h="set"+(this.$u?"UTC":""),d=((c={}).day=h+"Date",c[l]=h+"Date",c[i]=h+"Month",c[s]=h+"FullYear",c[n]=h+"Hours",c[r]=h+"Minutes",c[e]=h+"Seconds",c[t]=h+"Milliseconds",c)[u],p="day"===u?this.$D+(o-this.$W):o;if(u===i||u===s){var f=this.clone().set(l,1);f.$d[d](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[x.p(t)]()},p.add=function(t,o){var l,c=this;t=Number(t);var u=x.p(o),h=function(e){var r=b(c);return x.w(r.date(r.date()+Math.round(e*t)),c)};if(u===i)return this.set(i,this.$M+t);if(u===s)return this.set(s,this.$y+t);if("day"===u)return h(1);if(u===a)return h(7);var d=((l={})[r]=6e4,l[n]=36e5,l[e]=1e3,l)[u]||1,p=this.$d.getTime()+t*d;return x.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",a=x.z(this),i=this.$H,o=this.$m,s=this.$M,l=r.weekdays,u=r.months,d=r.meri
70diem,p=function(t,r,a,i){return t&&(t[r]||t(e,n))||a[r].slice(0,i)},f=function(t){return x.s(i%12||12,t,"0")},g=d||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,u,3);case"MMMM":return p(u,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(r.weekdaysMin,e.$W,l,2);case"ddd":return p(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(i,o,!0);case"A":return g(i,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return a}return null}(t)||a.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,c){var u,h=this,d=x.p(l),p=b(t),f=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,m=function(){return x.m(h,p)};switch(d){case s:u=m()/12;break;case i:u=m();break;case o:u=m()/3;break;case a:u=(g-f)/6048e5;break;case"day":u=(g-f)/864e5;break;case n:u=g/36e5;break;case r:u=g/6e4;break;case e:u=g/1e3;break;default:u=g}return c?u:x.a(u)},p.daysInMonth=function(){return this.endOf(i).$D},p.$locale=function(){return f[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=y(t,e,!0);return n&&(r.$L=n),r},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),w=k.prototype;return b.prototype=w,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",i],["$y",s],["$D",l]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,k,b),t.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(t){return b(1e3*t)},b.en=f[p],b.Ls=f,b.p={},b}()},75090:(t,e,r)=>{"use strict";r.d(e,{Fr:()=>u,GX:()=>c,KX:()=>l,WW:()=>o,ue:()=>i});var n=r(34428),a=r(89959),i=(0,a.K)(t=>{let{handDrawnSeed:e}=(0,n.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),o=(0,a.K)(t=>{let e=s([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),s=(0,a.K)(t=>{let e=new Map;return t.forEach(t=>{let[r,n]=t.split(":");e.set(r.trim(),n?.trim())}),e},"styles2Map"),l=(0,a.K)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),c=(0,a.K)(t=>{let{stylesArray:e}=o(t),r=[],n=[],a=[],i=[];return e.forEach(t=>{let e=t[0];l(e)?r.push(t.join(":")+" !important"):(n.push(t.join(":")+" !important"),e.includes("stroke")&&a.push(t.join(":")+" !important"),"fill"===e&&i.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:i}},"styles2String"),u=(0,a.K)((t,e)=>{let{themeVariables:r,handDrawnSeed:a}=(0,n.D7)(),{nodeBorder:i,mainBkg:s}=r,{stylesMap:l}=o(t);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||i,seed:a,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:h(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),h=(0,a.K)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},80973:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(18319),a=r(98536),i=r(53844),o=r(37543);let s=(t,e,r=0,s=1)=>
70{if("number"!=typeof t)return(0,o.A)(t,{a:e});let l=a.A.set({r:n.A.channel.clamp.r(t),g:n.A.channel.clamp.g(e),b:n.A.channel.clamp.b(r),a:n.A.channel.clamp.a(s)});return i.A.stringify(l)}},84246:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(25604);let a=(t,e)=>(0,n.A)(t,"l",e)},85524:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(25604);let a=(t,e)=>(0,n.A)(t,"l",-e)},87235:(t,e,r)=>{"use strict";let n;r.r(e),r.d(e,{parseMermaidToExcalidraw:()=>at});let a={rect:"rectangle",circle:"ellipse"},i={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:"20px"},maxEdges:500,maxTextSize:5e4};class o{constructor({converter:t}){this.convert=(t,e)=>this.converter(t,{...e,fontSize:e.fontSize||20}),this.converter=t}}!function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond",t.CYLINDER="cylinder"}(s||(s={})),(l||(l={})).COLOR="color",function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"}(c||(c={}));var s,l,c,u=r(38310);let h={arrow_circle:{endArrowhead:"circle"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"circle",startArrowhead:"circle"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},d=t=>{let e=t.text;return"markdown"===t.labelType&&(e=(0,u.k)(t.text)),p(e)},p=t=>t.replace(/\s?(fa|fab):[a-zA-Z0-9-]+/g,""),f=t=>{let e={};return Object.keys(t).forEach(r=>{switch(r){case c.FILL:e.backgroundColor=t[r],e.fillStyle="solid";break;case c.STROKE:e.strokeColor=t[r];break;case c.STROKE_WIDTH:e.strokeWidth=Number(t[r]?.split("px")[0]);break;case c.STROKE_DASHARRAY:e.strokeStyle="dashed"}}),e},g=t=>{let e={};return Object.keys(t).forEach(r=>{r===l.COLOR&&(e.strokeColor=t[r])}),e},m=(t,e)=>Math.max(20,Math.ceil(t.length*e*.62)),y=new o({converter:(t,e)=>{let r=[],n=e.fontSize,{getGroupIds:a,getParentId:i}=(t=>{let e={};t.subGraphs.map(r=>{r.nodeIds.forEach(n=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[n]={id:n,parent:r.id,isLeaf:void 0!==t.vertices[n]}})});let r={};return[...Object.keys(t.vertices),...t.subGraphs.map(t=>t.id)].forEach(t=>{if(!e[t])return;let n=e[t],a=[];for(n.isLeaf||a.push(`subgraph_group_${n.id}`);;)if(n.parent)a.push(`subgraph_group_${n.parent}`),n=e[n.parent];else break;r[t]=a}),{getGroupIds:t=>r[t]||[],getParentId:t=>e[t]?e[t].parent:null}})(t);return t.subGraphs.reverse().forEach(t=>{let e=a(t.id),i=d(t),o=m(i,n||16),s=Math.max(t.width,o+64),l=t.x-(s-t.width)/2,c=f(t.containerStyle),u=g(t.labelStyle),h={id:t.id,type:"rectangle",groupIds:e,x:l,y:t.y,width:s,height:t.height,label:{groupIds:e,text:i,fontSize:n,verticalAlign:"top",...u},...c};r.push(h)}),Object.values(t.vertices).forEach(t=>{if(!t)return;let e=a(t.id),i=d(t),o=((t,e,r,n)=>{let a=n||20;if(t!==s.CYLINDER||!e||e.includes("\n"))return a;let i=Math.max(20,r-12);return m(e,a)<=i?a:Math.max(12,Math.floor(i/(.62*e.length)))})(t.type,i,t.width,n),l=f(t.containerStyle),c=g(t.labelStyle),u={id:t.id,type:"rectangle",groupIds:e,x:t.x,y:t.y,width:t.width,height:t.height,strokeWidth:2,label:{groupIds:e,text:i,fontSize:o,...c},link:t.link||null,...l};switch(t.type){case s.STADIUM:case s.ROUND:u={...u,roundness:{type:3}};break;case s.DOUBLECIRCLE:{e.push(`doublecircle_${t.id}}`);let n={type:"ellipse",groupIds:e,x:t.x+5,y:t.y+5,width:t.width-10,height:t.height-10,strokeWidth:2,roundness:{type:3},label:{groupIds:e,text:i,fontSize:o,...c}};u={...u,groupIds:e,type:"ellipse"},r.push(n);break}case s.CIRCLE:u.type="ellipse";break;case s.DIAMOND:u.type="diamond"}r.push(u)}
70),t.edges.forEach(t=>{let e=[],o=i(t.start),s=i(t.end);o&&o===s&&(e=a(o));let{startX:l,startY:c,reflectionPoints:u}=t,p=u.map(t=>[t.x-u[0].x,t.y-u[0].y]),f=h[t.type||"arrow_point"],g=r.find(e=>e.id===t.start),m=r.find(e=>e.id===t.end);if(!g||!m)return;let y={id:`${t.start}_${t.end}`,type:"arrow",groupIds:e,x:l,y:c,strokeWidth:"thick"===t.stroke?4:2,strokeStyle:"dotted"===t.stroke?"dashed":void 0,points:p,...t.text?{label:{text:d(t),fontSize:n,groupIds:e}}:{},roundness:{type:2},...f,start:{id:g.id||""},end:{id:m.id||""}};r.push(y)}),{elements:r}}}),b=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((t,e)=>((e&=63)<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),""),x=new o({converter:t=>{let e=b(),{width:r,height:n}=t;return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[{type:"image",x:0,y:0,width:r,height:n,status:"saved",fileId:e}]}}}),k=(t,e)=>[t,e],w=t=>t.replace(/\\n/g,"\n"),_=t=>{let e={type:"line",x:t.startX,y:t.startY,points:[k(0,0),k(t.endX-t.startX,t.endY-t.startY)],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},v=t=>{let e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:w(t.text)||"",fontSize:t.fontSize,verticalAlign:"top",strokeColor:t.color};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},A=t=>{let e={text:w(t?.label?.text||""),fontSize:t?.label?.fontSize,textAlign:t.label?.textAlign,verticalAlign:t.label?.verticalAlign||"middle",strokeColor:t.label?.color||"#000",...t.groupId?{groupIds:[t.groupId]}:{}},r={};"rectangle"===t.type&&"activation"===t.subtype&&(r={backgroundColor:"#e9ecef",fillStyle:"solid"});let n={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:e,strokeStyle:t?.strokeStyle,strokeWidth:t?.strokeWidth,strokeColor:t?.strokeColor,backgroundColor:t?.bgColor,fillStyle:"solid",...r};return t.groupId&&Object.assign(n,{groupIds:[t.groupId]}),n},S=t=>{let e={type:"arrow",x:t.startX,y:t.startY,points:t.points?.map(([t,e])=>k(t,e))||[k(0,0),k(t.endX-t.startX,t.endY-t.startY)],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t?.strokeStyle||"solid",endArrowhead:t?.endArrowhead||null,startArrowhead:t?.startArrowhead||null,label:{text:w(t?.label?.text||""),fontSize:16,textAlign:t?.label?.textAlign,verticalAlign:t?.label?.verticalAlign},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},M=(t,e,r=!0)=>{let n=t.groupIds??[];if(n.includes(e)||(t.groupIds=[...n,e]),!r||!t.label)return;let a=t.label.groupIds??[];a.includes(e)||(t.label.groupIds=[...a,e])},E=new o({converter:t=>{let e=[],r=[];if(Object.values(t.nodes).forEach(t=>{t&&t.length&&t.forEach(t=>{let n;switch(t.type){case"line":n=_(t);break;case"rectangle":case"ellipse":n=A(t);break;case"text":n=v(t);break;default:throw`unknown type ${t.type}`}"rectangle"===t.type&&t?.subtype==="activation"?r.push(n):e.push(n)})}),Object.values(t.lines).forEach(t=>{t&&e.push(_(t))}),Object.values(t.arrows).forEach(t=>{t&&(e.push(S(t)),t.sequenceNumber&&e.push(A(t.sequenceNumber)))}),e.push(...r),t.loops){let{lines:r,texts:n,nodes:a}=t.loops;r.forEach(t=>{e.push(_(t))}),n.forEach(t=>{e.push(v(t))}),a.forEach(t=>{e.push(A(t))})}return t.groups&&t.groups.forEach(t=>{let{actorKeys:r,name:n}=t,a=1/0,i=1/0,o=0,s=0;if(!r.length)return;let l=e.filter(t=>{if(t.id){let e=t.id.indexOf("-"),n=t.id.substring(0,e);return r.includes(n)}return!1});if(!l.length||(l.forEach(t=>{void 0!==t.x&&void 0!==t.y&&void 0!==t.width&&void 0!==t.height&&(a=Math.min(a,t.x),i=Math.min(i,t.y),o=Math.max(o,t.x+t.width),s=Math.max(s,t.y+t.height))}),!Number.isFinite(a)||!Number.isFinite(i)||!Number.isFinite(o)||!Number.isFinite(s)))return;let c=a-10,u=i-10,h=o-a+20,d=s-i+20,p=b(),f=b(),g=A({type:"rectangle",x:c,y:u,width:h,height:d,bgColor:(t=>{if(!t)return!0;let e=t.trim().toLowerCase();return"transparent"===e||"none"===e||"rgba(0,0,0,0)"===e||"rgba(0, 0, 0, 0)"===e})(t.fill)?void 0:t.fill,strokeColor:"#1f1f1f",strokeWidth:1,id:p,groupId:f});if(e.unshift(g),e.forEach(t=>{t.id!==p&&void 0!==t.x&&void 0!==t.y&&void 0!==t.width&&void 0!==t.height&&t.x>=a&&t.x+t.width<=o&&t.y>=i&&t.y+t.height<=s&&M(t,f)}),n){let t=v({type:"text",id:b(),text:n,x:c+4,y:u-24,width:Math.max(20,Math.round(16*n.length*.6)),height:24,fontSize:16,color:"#1f1f1f",groupId:f});M(t,f,!1),e.push(t)}}),{elements:e}}}),T=new o({converter:t=>{let e=[];
70return t.nodes.forEach(t=>{t&&t.length&&t.forEach(t=>{let r;switch(t.type){case"line":r=_(t);break;case"rectangle":case"ellipse":r=A(t);break;case"text":r=v(t);break;default:throw`unknown type ${t.type}`}e.push(r)})}),Object.values(t.lines).forEach(t=>{t&&e.push(_(t))}),Object.values(t.arrows).forEach(t=>{if(!t)return;let r=S(t);e.push(r)}),Object.values(t.text).forEach(t=>{let r=v(t);e.push(r)}),Object.values(t.namespaces).forEach(r=>{let n=Object.keys(r.classes),a=[...n],i=[...t.lines,...t.arrows,...t.text];n.forEach(t=>{let e=i.filter(e=>e.metadata&&e.metadata.classId===t).map(t=>t.id);e.length&&a.push(...e)});let o={type:"frame",id:b(),name:r.id,children:a};e.push(o)}),{elements:e}}}),O=new o({converter:t=>{let e=[];return t.nodes.forEach(t=>{t&&t.length&&t.forEach(t=>{let r;switch(t.type){case"line":r=_(t);break;case"rectangle":case"ellipse":r=A(t);break;case"text":r=v(t);break;default:throw`unknown type ${t.type}`}e.push(r)})}),t.lines.forEach(t=>{e.push(_(t))}),t.arrows.forEach(t=>{e.push(S(t))}),t.text.forEach(t=>{e.push(v(t))}),{elements:e}}}),L=(t,e)=>[t,e],C="#000000",$=new Set(["choice","fork","join","stateStart","stateEnd","divider"]),R=t=>"stateEnd"===t.shape?[`state_end_group_${t.id}`]:void 0,N=t=>"rectWithTitle"===t.shape&&t.description.length?[t.text,...t.description].join("\n"):t.text,I=(t,e)=>{let r=(()=>{if(void 0!==n)return n;if("undefined"==typeof document)return n=null;try{n=document.createElement("canvas").getContext("2d")}catch{n=null}return n})();return r?(r.font=`${e}px Excalifont, sans-serif`,r.measureText(t).width):t.length*e*.6},K=(t,e,r)=>{if(I(t,e)<=r)return[t];let n=[],a="";for(let i of t){let t=`${a}${i}`;if(a&&I(t,e)>r){n.push(a),a=i;continue}a=t}return a&&n.push(a),n},D=(t,e,r)=>{let n=t.map(t=>((t,e,r)=>{if(!t.trim()||I(t,e)<=r)return t;let n=t.split(/\s+/).filter(Boolean),a=[],i="";for(let t of n){let n=K(t,e,r);for(let[t,o]of n.entries()){let n=i&&0===t?" ":"",s=i?`${i}${n}${o}`:o;if(I(s,e)<=r){i=s;continue}i&&a.push(i),i=o}if(n.length>1)continue}return a.push(i),a.join("\n")})(t,e,r)).join("\n").split("\n");return{width:Math.max(...n.map(t=>I(t,e))),height:n.length*e*1.25}},P=new o({converter:t=>{let e=[];return t.nodes.forEach(t=>{if(!t.isRenderable)return;let r=(t=>{let e=f(t.containerStyle),r=(t=>{if($.has(t.shape))return;let e=N(t);
70if(e)return{text:e,fontSize:(t=>{let e=N(t);if(!e||$.has(t.shape))return 16;let r=Math.max(1,t.width-10),n=Math.max(1,t.height-10),a=e.split("\n");return a.length>1&&Math.max(...a.map(t=>I(t,16)))<=r?16:((t,e,r,n)=>{let a=t.split("\n");for(let t=16;t>=14;t-=1){let{height:n}=D(a,t,e);if(n<=r)return t}return n})(e,r,n,1===a.length?16:14)})(t),verticalAlign:"rectWithTitle"===t.shape||"roundedWithTitle"===t.shape?"top":"middle",...g(t.labelStyle)}})(t),n="choice"===t.shape?"diamond":"stateStart"===t.shape||"stateEnd"===t.shape?"ellipse":"rectangle",a="rect"===t.shape||"rectWithTitle"===t.shape||"roundedWithTitle"===t.shape,i="stateStart"===t.shape||"fork"===t.shape||"join"===t.shape,o=e.backgroundColor||e.strokeColor||C,s=e.strokeColor||e.backgroundColor||C;return{id:t.id,type:n,...R(t)?{groupIds:R(t)}:{},x:t.x,y:t.y,width:t.width,height:t.height,...r?{label:r}:{},...e,...a?{roundness:{type:3}}:{},...i?{backgroundColor:o,strokeColor:s,fillStyle:"solid"}:{}}})(t);e.push(r);let n=(t=>{if(!t.dividerLine)return null;let e=f(t.containerStyle);return{id:`${t.id}__divider`,type:"line",x:t.dividerLine.startX,y:t.dividerLine.startY,width:t.dividerLine.endX-t.dividerLine.startX,height:t.dividerLine.endY-t.dividerLine.startY,points:[L(0,0),L(t.dividerLine.endX-t.dividerLine.startX,t.dividerLine.endY-t.dividerLine.startY)],strokeColor:e.strokeColor||"#000",strokeWidth:e.strokeWidth||1}})(t);n&&e.push(n),"stateEnd"===t.shape&&e.push((t=>{let e=f(t.containerStyle),r=Math.max(2,.32*Math.min(t.width,t.height)),n=t.endInnerColor||e.strokeColor||e.backgroundColor||C;return{id:`${t.id}__inner`,type:"ellipse",groupIds:R(t),x:t.x+r,y:t.y+r,width:Math.max(1,t.width-2*r),height:Math.max(1,t.height-2*r),backgroundColor:n,strokeColor:n,fillStyle:"solid",strokeWidth:1}})(t))}
70),t.edges.forEach(t=>{e.push((t=>{let e=t.reflectionPoints.map((t,e,r)=>{let n=r[0];return 0===e?L(0,0):L(t.x-n.x,t.y-n.y)});return{id:t.id,type:"arrow",x:t.startX,y:t.startY,width:t.endX-t.startX,height:t.endY-t.startY,points:e,strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||2,strokeStyle:t.strokeStyle||"solid",endArrowhead:t.isNoteEdge?null:"triangle",roundness:{type:2},start:{id:t.start},end:{id:t.end},...t.text?{label:{text:t.text,fontSize:16}}:{}}})(t))}),{elements:e}}}),j=t=>{let e=(t=F(t)).replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),r=document.createElement("textarea");return r.innerHTML=e,r.value},z=t=>{let e=t.getAttribute("transform"),r=e?.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/),n=0,a=0;return r&&(n=Number(r[1]),a=Number(r[2])),{transformX:n,transformY:a}},F=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},B=.5,Y=(t,e=B)=>{let r=[];return t.forEach(t=>{let n=r[r.length-1];if(!n)return void r.push(t);Math.hypot(t[0]-n[0],t[1]-n[1])<=e||r.push(t)}),r},W=t=>{let e=t.getAttribute("d");if(!e)return null;let r=Array.from(e.matchAll(/-?\d*\.?\d+(?:e[-+]?\d+)?/gi),t=>Number(t[0]));return r.length<4?null:{startX:r[0],startY:r[1],endX:r[r.length-2],endY:r[r.length-1]}},U=t=>{let e=t.getAttribute("data-points");if(!e){let e=W(t);return e?[{x:e.startX,y:e.startY},{x:e.endX,y:e.endY}]:[]}try{let t=atob(e),r=JSON.parse(t);return Array.isArray(r)?r.filter(t=>t&&"number"==typeof t.x&&"number"==typeof t.y&&Number.isFinite(t.x)&&Number.isFinite(t.y)):[]}catch{return[]}},q=(t,e={x:0,y:0},r="LM")=>{if("path"!==t.tagName.toLowerCase())throw Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);let n=t.getAttribute("d");if(!n)throw Error('Path element does not contain a "d" attribute');let a=n.split(RegExp(`(?=[${r}])`)),i=a[0].substring(1).split(",").map(t=>parseFloat(t)),o=a[a.length-1].substring(1).split(",").map(t=>parseFloat(t)),s=a.map(t=>{let e=t[0],r=t.substring(1).split(",").map(t=>parseFloat(t));return"C"===e?{x:r[4],y:r[5],command:e}:{x:r[0],y:r[1],command:e}}).filter((t,e,r)=>{if(0===e||e===r.length-1)return!0;if(t.x===r[e-1].x&&t.y===r[e-1].y||e===r.length-2&&"C"===t.command)return!1;if(e===r.length-2&&(r[e-1].x===t.x||r[e-1].y===t.y)){let e=r[r.length-1];return Math.hypot(e.x-t.x,e.y-t.y)>20}return t.x!==r[e-1].x||t.y!==r[e-1].y}).map(t=>({x:t.x+e.x,y:t.y+e.y}));return{startX:i[0]+e.x,startY:i[1]+e.y,endX:o[0]+e.x,endY:o[1]+e.y,reflectionPoints:s}};var H=r(27859),X=r(39258),G=r(33799);r(27954),r(26451),r(75090),r(89929),r(35212),r(50509);var Z=r(58526),V=r(2209),Q=r(34428),J=r(1937),tt=r(89959),te=r(33458),tr=r(34182),tn=r(16302),ta=r(13873),ti=r(18420),to=r(93619),ts=r(33848),tl=r(26432),tc=r(19694),tu=r(36073),th=r(74137).Buffer;function td(t){if(null==t)return!0;if((0,tc.X)(t))return("function"==typeof t.splice||"string"==typeof t||void 0!==th&&!!th.isBuffer(t)||!!(0,tu.i)(t)||!!(0,tl.N)(t))&&0===t.length;if("object"==typeof t){if(t instanceof Map||t instanceof Set)return 0===t.size;let e=Object.keys(t);return!function(t){let e=t?.constructor;return t===("function"==typeof e?e.prototype:Object.prototype)}(t)?0===e.length:0===e.filter(t=>"constructor"!==t).length}return!0}var tp={id:"c4",detector:(0,tt.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,tt.K)(async()=>{let{diagram:t}=await r.e(7791).then(r.bind(r,67791));return{id:"c4",diagram:t}},"loader")},tf="flowchart",tg=(0,tt.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),tm=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7603),r.e(8463)]).then(r.bind(r,38463));return{id:tf,diagram:t}},"loader"),ty={id:tf,detector:tg,loader:tm},tb="flowchart-v2",tx=(0,tt.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-d3"&&(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),!!/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(t)),"detector"),tk=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7603),r.e(8463)]).then(r.bind(r,38463));return{id:tb,diagram:t}},"loader"),tw={id:tb,detector:tx,loader:tk},t_="swimlane",tv=(0,tt.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),tA=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7603),r.e(1083)]).then(r.bind(r,41083));return{id:t_,diagram:t}},"loader"),tS={id:t_,detector:tv,loader:tA},tM={id:"er",detector:(0,tt.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,tt.K)(async()=>{let{diagram:t}=await r.e(9116).then(r.bind(r,39116));return{id:"er",diagram:t}},"loader")},tE="gitGraph",tT=(0,tt.K)(t=>/^\s*gitGraph/.test(t),"detector"),tO=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(7946)]).then(r.bind(r,67946));return{id:tE,diagram:t}},"loader"),tL={id:tE,detector:tT,loader:tO},tC="gantt",t$=(0,tt.K)(t=>/^\s*gantt/.test(t),"detector"),tR=(0,tt.K)(async()=>{let{diagram:t}=await r.e(5244).then(r.bind(r,25244));return{id:tC,diagram:t}},"loader"),tN={id:tC,detector:t$,loader:tR},tI="info",tK=(0,tt.K)(t=>/^\s*info/.test(t),"detector"),tD=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(5838)]).then(r.bind(r,5
705838));return{id:tI,diagram:t}},"loader"),tP={id:tI,detector:tK,loader:tD},tj={id:"pie",detector:(0,tt.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(3900)]).then(r.bind(r,73900));return{id:"pie",diagram:t}},"loader")},tz="quadrantChart",tF=(0,tt.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tB=(0,tt.K)(async()=>{let{diagram:t}=await r.e(8845).then(r.bind(r,18845));return{id:tz,diagram:t}},"loader"),tY={id:tz,detector:tF,loader:tB},tW="xychart",tU=(0,tt.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tq=(0,tt.K)(async()=>{let{diagram:t}=await r.e(165).then(r.bind(r,20165));return{id:tW,diagram:t}},"loader"),tH={id:tW,detector:tU,loader:tq},tX="requirement",tG=(0,tt.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tZ=(0,tt.K)(async()=>{let{diagram:t}=await r.e(3074).then(r.bind(r,23074));return{id:tX,diagram:t}},"loader"),tV={id:tX,detector:tG,loader:tZ},tQ="sequence",tJ=(0,tt.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),t0=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4284),r.e(2374)]).then(r.bind(r,50879));return{id:tQ,diagram:t}},"loader"),t1={id:tQ,detector:tJ,loader:t0},t2="class",t3=(0,tt.K)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),t5=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(1410),r.e(22)]).then(r.bind(r,50022));return{id:t2,diagram:t}},"loader"),t6={id:t2,detector:t3,loader:t5},t9="classDiagram",t8=(0,tt.K)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),t4=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(1410),r.e(2100)]).then(r.bind(r,12100));return{id:t9,diagram:t}},"loader"),t7={id:t9,detector:t8,loader:t4},et="state",ee=(0,tt.K)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),er=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5527),r.e(7107),r.e(4410),r.e(6808),r.e(2762)]).then(r.bind(r,40381));return{id:et,diagram:t}},"loader"),en={id:et,detector:ee,loader:er},ea="stateDiagram",ei=(0,tt.K)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eo=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6808),r.e(703)]).then(r.bind(r,20703));return{id:ea,diagram:t}},"loader"),es={id:ea,detector:ei,loader:eo},el="journey",ec=(0,tt.K)(t=>/^\s*journey/.test(t),"detector"),eu=(0,tt.K)(async()=>{let{diagram:t}=await r.e(2250).then(r.bind(r,12250));return{id:el,diagram:t}},"loader"),eh={id:el,detector:ec,loader:eu},ed={draw:(0,tt.K)((t,e,r)=>{J.R.debug("rendering svg for syntax error\n");let n=(0,H.D)(e),a=n.append("g");n.attr("viewBox","0 0 2412 512"),(0,Q.a$)(n,100,512,!0),a.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"),a.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"),a.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"),a.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.
70164-16,16v32c0,8.836 7.156,16 16,16z"),a.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"),a.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"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},ep={db:{},renderer:ed,parser:{parse:(0,tt.K)(()=>{},"parse")}},ef="flowchart-elk",eg=(0,tt.K)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),em=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7603),r.e(8463)]).then(r.bind(r,38463));return{id:ef,diagram:t}},"loader"),ey={id:ef,detector:eg,loader:em},eb="timeline",ex=(0,tt.K)(t=>/^\s*timeline/.test(t),"detector"),ek=(0,tt.K)(async()=>{let{diagram:t}=await r.e(694).then(r.bind(r,20694));return{id:eb,diagram:t}},"loader"),ew={id:eb,detector:ex,loader:ek},e_="mindmap",ev=(0,tt.K)(t=>/^\s*mindmap/.test(t),"detector"),eA=(0,tt.K)(async()=>{let{diagram:t}=await r.e(2716).then(r.bind(r,82716));return{id:e_,diagram:t}},"loader"),eS={id:e_,detector:ev,loader:eA}
70,eM="kanban",eE=(0,tt.K)(t=>/^\s*kanban/.test(t),"detector"),eT=(0,tt.K)(async()=>{let{diagram:t}=await r.e(945).then(r.bind(r,945));return{id:eM,diagram:t}},"loader"),eO={id:eM,detector:eE,loader:eT},eL="sankey",eC=(0,tt.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),e$=(0,tt.K)(async()=>{let{diagram:t}=await r.e(7549).then(r.bind(r,7549));return{id:eL,diagram:t}},"loader"),eR={id:eL,detector:eC,loader:e$},eN="packet",eI=(0,tt.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),eK=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(9708)]).then(r.bind(r,9708));return{id:eN,diagram:t}},"loader"),eD={id:eN,detector:eI,loader:eK},eP="radar",ej=(0,tt.K)(t=>/^\s*radar-beta/.test(t),"detector"),ez=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(6153)]).then(r.bind(r,36153));return{id:eP,diagram:t}},"loader"),eF={id:eP,detector:ej,loader:ez},eB="block",eY=(0,tt.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eW=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5527),r.e(1661)]).then(r.bind(r,41661));return{id:eB,diagram:t}},"loader"),eU={id:eB,detector:eY,loader:eW},eq="treeView",eH=(0,tt.K)(t=>/^\s*treeView-beta/.test(t),"detector"),eX=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(1442)]).then(r.bind(r,21442));return{id:eq,diagram:t}},"loader"),eG={id:eq,detector:eH,loader:eX},eZ="architecture",eV=(0,tt.K)(t=>/^\s*architecture/.test(t),"detector"),eQ=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(4724),r.e(295),r.e(9365)]).then(r.bind(r,69365));return{id:eZ,diagram:t}},"loader"),eJ={id:eZ,detector:eV,loader:eQ},e0="eventmodeling",e1=(0,tt.K)(t=>/^\s*eventmodeling/.test(t),"detector"),e2=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(8376)]).then(r.bind(r,88376));return{id:e0,diagram:t}},"loader"),e3={id:e0,detector:e1,loader:e2},e5="ishikawa",e6=(0,tt.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),e9=(0,tt.K)(async()=>{let{diagram:t}=await r.e(5796).then(r.bind(r,35796));return{id:e5,diagram:t}},"loader"),e8={id:e5,detector:e6,loader:e9},e4="venn",e7=(0,tt.K)(t=>/^\s*venn-beta/.test(t),"detector"),rt=(0,tt.K)(async()=>{let{diagram:t}=await r.e(574).then(r.bind(r,60574));return{id:e4,diagram:t}},"loader"),re={id:e4,detector:e7,loader:rt},rr="treemap",rn=(0,tt.K)(t=>/^\s*treemap/.test(t),"detector"),ra=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(7865)]).then(r.bind(r,7865));return{id:rr,diagram:t}},"loader"),ri={id:rr,detector:rn,loader:ra},ro="wardley",rs=(0,tt.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),rl=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(1970)]).then(r.bind(r,1970));return{id:ro,diagram:t}},"loader"),rc={id:ro,detector:rs,loader:rl},ru="cynefin",rh=(0,tt.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),rd=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(2322)]).then(r.bind(r,32322));return{id:ru,diagram:t}},"loader"),rp={id:ru,detector:rh,loader:rd},rf="railroad",rg=(0,tt.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),rm=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(8640),r.e(6539)]).then(r.bind(r,86539));return{id:rf,diagram:t}},"loader"),ry={id:rf,detector:rg,loader:rm},rb="railroadEbnf",rx=(0,tt.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),rk=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(8640),r.e(3317)]).then(r.bind(r,13317));return{id:rb,diagram:t}},"loader"),rw={id:rb,detector:rx,loader:rk},r_="railroadAbnf",rv=(0,tt.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),rA=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(8640),r.e(2775)]).then(r.bind(r,32775));return{id:r_,diagram:t}},"loader"),rS={id:r_,detector:rv,loader:rA},rM="railroadPeg",rE=(0,tt.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rT=(0,tt.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8066),r.e(295),r.e(8640),r.e(5462)]).then(r.bind(r,15462));return{id:rM,diagram:t}},"loader"),rO={id:rM,detector:rE,loader:rT},rL=!1,rC=(0,tt.K)(()=>{rL||(rL=!0,(0,Q.Js)("error",ep,t=>"error"===t.toLowerCase().trim()),(0,Q.Js)("---",{db:{clear:(0,tt.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,tt.K)(()=>{},"draw")},parser:{parse:(0,tt.K)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,tt.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,Q.Xd)(ey,eS,eJ),(0,Q.Xd)(tp,eO,t7,t6,tM,tN,tP,tj,tV,t1,tS,tw,ty,ew,tL,es,en,eh,tY,eR,eD,tH,eU,e3,eG,eF,e8,ri,ry,rw,rS,rO,re,rc,rp))},"addDiagrams"),r$=(0,tt.K)(async()=>{J.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(Q.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,Q.Gs)(t)}catch{try{let{diagram:t,id:n}=await r();(0,Q.Js)(n,t,e)}catch(e){throw J.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete Q.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(J.R.error(`Failed to load ${t.length} external diagrams`),t))J.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rR(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rN(t,e,r,n){if(void 0!==t.insert){if(r){let e=`chart-desc-${n}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${n}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,tt.K)(rR,"setA11yDiagramInfo"),(0,tt.K)(rN,"addSVGa11yTitleDescription");var rI=class t{constructor(t,e,r,n,a){this.type=t,this.text=e,this.db=r,this.parser=n,this.renderer=a}static{(0,tt.K)(this,"Diagram")}static async fromText(e,r={}){let n=(0,Q.zj)(),a=(0,Q.Ch)(e,n);e=(0,V.C4)(e)+"\n";try{(0,Q.Gs)(a)}catch{let t=(0,Q.J$)(a);if(!t)throw new Q.C0(`Diagram ${a} not found.`);let{id:e,diagram:r}=await t();(0,Q.Js)(e,r)}let{db:i,parser:o,renderer:s,init:l}=(0,Q.Gs)(a);return o.parser&&(o.parser.yy=i),i.clear?.(),l?.(n),r.title&&i.setDiagramTitle?.(r.title),await o.parse(e),new t(a,e,i,o,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rK=[],rD=(0,tt.K)(()=>
70{rK.forEach(t=>{t()}),rK=[]},"attachFunctions"),rP=(0,tt.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rj(t){let e=t.match(Q.EJ);if(!e)return{text:t,metadata:{}};let r=e[1],n=r?e[2].split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e[2],a=(0,X.H)(n,{schema:X.r})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let i={};return a.displayMode&&(i.displayMode=a.displayMode.toString()),a.title&&(i.title=a.title.toString()),a.config&&(i.config=a.config),{text:t.slice(e[0].length),metadata:i}}(0,tt.K)(rj,"extractFrontMatter");var rz=(0,tt.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rF=(0,tt.K)(t=>{let{text:e,metadata:r}=rj(t),{displayMode:n,title:a,config:i={}}=r;return n&&(i.gantt||(i.gantt={}),i.gantt.displayMode=n),{title:a,config:i,text:e}},"processFrontmatter"),rB=(0,tt.K)(t=>{let e=V._K.detectInit(t)??{},r=V._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,V.vU)(t),directive:e}},"processDirectives");function rY(t){let e=rF(rz(t)),r=rB(e.text),n=(0,V.$t)(e.config,r.directive);return{code:t=rP(r.text),title:e.title,config:n}}function rW(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,tt.K)(rY,"preprocessDiagram"),(0,tt.K)(rW,"toBase64");var rU=["foreignobject"],rq=["dominant-baseline"];function rH(t){let e=rY(t);return(0,Q.cL)(),(0,Q.xA)(e.config??{}),e}async function rX(t,e){rC();try{let{code:e,config:r}=rH(t);return{diagramType:(await r9(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,tt.K)(rH,"processAndSetConfigs"),(0,tt.K)(rX,"parse");var rG=(0,tt.K)((t,e,r=[])=>{let n=(0,Q.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),rZ=(0,tt.K)((t,e=new Map)=>{let r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let n=(0,Q.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{td(t.styles)||n.forEach(e=>{r.insertRule(rG(t.id,e,t.styles),r.cssRules.length)}),td(t.textStyles)||r.insertRule(rG(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){let e=new CSSStyleSheet;e.replaceSync(t.themeCSS),n=(0,Q.KG)(e)+"\n"}else n+=`${t.themeCSS}
71`;return n+(0,Q.KG)(r)},"createCssStyles"),rV=(0,tt.K)((t,e)=>(0,tn.l)((0,ta.wE)(`${t}{${e}}`),(0,ti.r1)([(0,tt.K)(function(e,r,n,a){"rule"===e.type&&Array.isArray(e.props)?e.parent&&e.parent.type===to.Sv||(e.props=e.props.map(e=>e.startsWith(t)?e:`${t} ${e}`)):e.type.startsWith("@")&&([to.Rn,to.$1,to.IO,to.hx,"@container","@starting-style",to.Sv].includes(e.type)||(J.R.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=to.YK))},"addNamespace"),tn.A])),"compileCSS"),rQ=(0,tt.K)((t,e,r,n)=>{let a=rZ(t,r),i=(0,Q.tM)(e,a,{...t.themeVariables,theme:t.theme,look:t.look},n);return rV(n,i)},"createUserStyles"),rJ=(0,tt.K)((t="",e,r)=>{let n=t;return r||e||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=(0,V.Sm)(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),r0=(0,tt.K)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",
71n=rW(`<body style="margin:0">${t}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="allow-top-navigation-by-user-activation allow-popups">
72  The "iframe" tag is not supported by your browser.
73</iframe>`},"putIntoIFrame"),r1=(0,tt.K)((t,e,r,n,a)=>{let i=t.append("div");i.attr("id",r),n&&i.attr("style",n);let o=i.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return a&&o.attr("xmlns:xlink",a),o.append("g"),t},"appendDivSvgG");function r2(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,tt.K)(r2,"sandboxedIframe");var r3=(0,tt.K)((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),r5=(0,tt.K)(async function(t,e,r){let n,a;rC();let i=rH(e);e=i.code;let o=(0,Q.zj)();J.R.debug(o),e.length>(o?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let s=`#${t}`,l="i"+t,c="#"+l,u="d"+t,h="#"+u,d=(0,tt.K)(()=>{let t=f?c:h,e=(0,tr.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),p=(0,tr.Ltv)(document.body),f="sandbox"===o.securityLevel,g="loose"===o.securityLevel,m=o.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),f){let t=r2((0,tr.Ltv)(r),l);(p=(0,tr.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,tr.Ltv)(r);r1(p,t,u,`font-family: ${m}`,"http://www.w3.org/1999/xlink")}else{if(r3(document,t,u,l),f){let t=r2((0,tr.Ltv)(document.body),l);(p=(0,tr.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,tr.Ltv)("body");r1(p,t,u)}try{n=await rI.fromText(e,{title:i.title})}catch(t){if(o.suppressErrorRendering)throw d(),t;n=await rI.fromText("error"),a=t}let y=p.select(h).node(),b=n.type,x=y.firstChild,k=x.firstChild,w=rQ(o,b,n.renderer.getClasses?.(e,n),s),_=document.createElement("style");_.innerHTML=w,x.insertBefore(_,k);try{await n.renderer.draw(e,t,"11.16.0",n)}catch(r){throw o.suppressErrorRendering?d():ed.draw(e,t,"11.16.0"),r}let v=p.select(`${h} svg`);r8(b,v,n.db.getAccTitle?.(),n.db.getAccDescription?.()),p.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let A=p.select(h).node().innerHTML;if(J.R.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),A=rJ(A,f,(0,Q._3)(o.arrowMarkerAbsolute)),f?A=r0(A,p.select(h+" svg").node()):g||(A=ts.A.sanitize(A,{ADD_TAGS:rU,ADD_ATTR:rq,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),rD(),a)throw a;return d(),{diagramType:b,svg:A,bindFunctions:n.db.bindFunctions}},"render");function r6(t={}){let e=(0,Q.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,Q.wZ)(e),e?.theme&&e.theme in Q.H$?e.themeVariables=Q.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Q.H$.default.getThemeVariables(e.themeVariables));let r="object"==typeof e?(0,Q.UU)(e):(0,Q.Q2)();(0,J.H)(r.logLevel),rC()}(0,tt.K)(r6,"initialize");var r9=(0,tt.K)((t,e={})=>{let{code:r}=rY(t);return rI.fromText(r,e)},"getDiagramFromText");function r8(t,e,r,n){rR(e,t),rN(e,r,n,e.attr("id"))}(0,tt.K)(r8,"addA11yInfo");var r4=Object.freeze({render:r5,parse:rX,getDiagramFromText:r9,initialize:r6,getConfig:Q.zj,setConfig:Q.Nk,getSiteConfig:Q.Q2,updateSiteConfig:Q.B6,reset:(0,tt.K)(()=>{(0,Q.cL)()},"reset"),globalReset:(0,tt.K)(()=>{(0,Q.cL)(Q.sb)},"globalReset"),defaultConfig:Q.sb});(0,J.H)((0,Q.zj)().logLevel),(0,Q.cL)((0,Q.zj)());var r7=(0,tt.K)((t,e,r)=>{J.R.warn(t),(0,V.dq)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),nt=(0,tt.K)(async function(t={querySelector:".mermaid"}){try{await ne(t)}catch(e){if((0,V.dq)(e)&&J.R.error(e.str),np.parseError&&np.parseError(e),!t.suppressErrors)throw J.R.error("Use the suppressErrors option to suppress these errors"),e}},"run"),ne=(0,tt.K)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let n,a,i=r4.getConfig();if(J.R.debug(`${!t?"No ":""}Callback function found`),r)n=r;else if(e)n=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");J.R.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(J.R.debug("Start On Load: "+i?.startOnLoad),r4.updateSiteConfig({startOnLoad:i?.startOnLoad}
73));let o=new V._K.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),s=[];for(let e of Array.from(n)){if(J.R.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${o.next()}`;a=e.innerHTML,a=(0,te.T)(V._K.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let n=V._K.detectInit(a);n&&J.R.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:i}=await nh(r,a,e);e.innerHTML=n,t&&await t(r),i&&i(e)}catch(t){r7(t,s,np.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),nr=(0,tt.K)(function(t){r4.initialize(t)},"initialize"),nn=(0,tt.K)(async function(t,e,r){J.R.warn("mermaid.init is deprecated. Please use run instead."),t&&nr(t);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await nt(n)},"init"),na=(0,tt.K)(async(t,{lazyLoad:e=!0}={})=>{rC(),(0,Q.Xd)(...t),!1===e&&await r$()},"registerExternalDiagrams"),ni=(0,tt.K)(function(){if(np.startOnLoad){let{startOnLoad:t}=r4.getConfig();t&&np.run().catch(t=>J.R.error("Mermaid failed to initialize",t))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",ni,!1);var no=(0,tt.K)(function(t){np.parseError=t},"setParseErrorHandler"),ns=[],nl=!1,nc=(0,tt.K)(async()=>{if(!nl){for(nl=!0;ns.length>0;){let t=ns.shift();if(t)try{await t()}catch(t){J.R.error("Error executing queue",t)}}nl=!1}},"executeQueue"),nu=(0,tt.K)(async(t,e)=>new Promise((r,n)=>{let a=(0,tt.K)(()=>new Promise((a,i)=>{r4.parse(t,e).then(t=>{a(t),r(t)},t=>{J.R.error("Error parsing",t),np.parseError?.(t),i(t),n(t)})}),"performCall");ns.push(a),nc().catch(n)}),"parse"),nh=(0,tt.K)((t,e,r)=>new Promise((n,a)=>{let i=(0,tt.K)(()=>new Promise((i,o)=>{r4.render(t,e,r).then(t=>{i(t),n(t)},t=>{J.R.error("Error parsing",t),np.parseError?.(t),o(t),a(t)})}),"performCall");ns.push(i),nc().catch(a)}),"render"),nd=(0,tt.K)(()=>Object.keys(Q.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),np={startOnLoad:!0,mermaidAPI:r4,parse:nu,render:nh,init:nn,run:nt,registerExternalDiagrams:na,registerLayoutLoaders:G.sO,initialize:nr,parseError:void 0,contentLoaded:ni,setParseErrorHandler:no,detectType:Q.Ch,registerIconPacks:Z.pC,getRegisteredDiagramsMetadata:nd};let nf=t=>t.replace(/\s*!important\s*$/i,"").trim(),ng=(t,e)=>{let r=e;for(;r<t.length&&/\s/.test(t[r]);)r+=1;let n=r;for(;r<t.length&&/[a-z-]/i.test(t[r]);)r+=1;if(r===n)return!1;for(;r<t.length&&/\s/.test(t[r]);)r+=1;return":"===t[r]},nm=t=>{let e=[],r=0;for(;r<t.length;){for(;r<t.length&&/[\s;,]/.test(t[r]);)r+=1;if(r>=t.length)break;let n=r;for(;r<t.length&&":"!==t[r]&&";"!==t[r]&&","!==t[r];)r+=1;if(r>=t.length||":"!==t[r])break;let a=t.substring(n,r).trim().toLowerCase(),i=r+=1,o=0,s=null;for(;r<t.length;){let e=t[r];if(s){e===s&&"\\"!==t[r-1]&&(s=null),r+=1;continue}if('"'===e||"'"===e){s=e,r+=1;continue}if("("===e){o+=1,r+=1;continue}if(")"===e){o=Math.max(0,o-1),r+=1;continue}if(0===o&&(";"===e||","===e||/\s/.test(e)&&ng(t,r)))break;r+=1}let l=nf(t.substring(i,r));a&&l&&e.push({property:a,value:l}),r<t.length&&(";"===t[r]||","===t[r])&&(r+=1)}return e},ny=t=>{let e=nf(t);if(!e)return!1;if("undefined"!=typeof CSS&&"function"==typeof CSS.supports)return CSS.supports("color",e);if("undefined"!=typeof document){let t=document.createElement("div");return t.style.color="",t.style.color=e,""!==t.style.color}return!1},nb=(t,e)=>{let r=t.getAttribute("style");return r&&nm(r).find(t=>t.property===e)?.value||""},nx=(...t)=>{for(let e of t){let t=nf(e||"");if(ny(t))return t}},nk=(t,e)=>{let r=t.querySelector("text, foreignObject, div, span, p")||t,n=nx(r.getAttribute?.("fill"),nb(r,"fill"),r.style?.fill);if(n)return n;let a=nx(r.getAttribute?.("color"),nb(r,"color"),r.style?.color);if(a)return a;let i=nx(e);if(i)return i},nw=(t,e,r)=>{switch(e){case c.FILL:case c.STROKE:ny(r)&&(t[e]=r);break;case c.STROKE_WIDTH:case c.STROKE_DASHARRAY:t[e]=r}},n_=(t,e,r)=>{e===l.COLOR&&ny(r)&&(t[l.COLOR]=r)},nv=(t,e,r)=>{t&&nm(t).forEach(({property:t,value:n})=>{nw(e,t,n),n_(r,t,n)})},nA=(t,e)=>{t&&nm(t).forEach(({property:t,value:r})=>{if("fill"===t&&ny(r)){e[l.COLOR]=r;return}n_(e,t,r)})},nS=(t,e)=>{t&&[[c.FILL,t.getAttribute("fill")],[c.STROKE,t.getAttribute("stroke")],[c.STROKE_WIDTH,t.getAttribute("stroke-width")],[c.STROKE_DASHARRAY,t.getAttribute("stroke-dasharray")]].forEac
73h(([t,r])=>{let n=nf(r||"");n&&nw(e,t,n)})},nM=(t,e)=>{if(!t)return;let r=nf(t.getAttribute("fill")||t.getAttribute("color")||"");ny(r)&&(e[l.COLOR]=r)},nE=(t,e,r,n)=>{if(!(e instanceof Map))return;let a=e.get(t);a&&(a.styles?.forEach(t=>{nm(t).forEach(({property:t,value:e})=>{nw(r,t,e),n_(n,t,e)})}),a.textStyles?.forEach(t=>{nm(t).forEach(({property:t,value:e})=>{n_(n,t,e)})}))},nT=(t,e,r)=>{let n,a=e.querySelector(`[id*="${t.domId}"]`);if(!a)return;a.parentElement?.tagName.toLowerCase()==="a"&&(n=a.parentElement.getAttribute("xlink:href"));let i=nO(n?a.parentElement:a,e),o=a.getBBox(),s={width:o.width,height:o.height},l={},c={};t.classes&&r instanceof Map&&(Array.isArray(t.classes)?t.classes:[t.classes]).forEach(t=>{nE(t,r,l,c)}),t.styles?.forEach(t=>{nv(t,l,c)});let u=a.querySelector(".label-container");return nv(u?.getAttribute("style"),l,c),nS(u,l),Array.from(a.querySelectorAll(".label, .nodeLabel, .label text, .label tspan, .label span, .label div")).forEach(t=>{nA(t.getAttribute("style"),c),nM(t,c)}),{id:t.id,labelType:t.labelType,text:j(t.text||""),type:t.type,link:n||void 0,...i,...s,containerStyle:l,labelStyle:c}},nO=(t,e)=>{if(!t)throw Error("Element not found");let r=t.parentElement?.parentElement,n=t.childNodes[0],a={x:0,y:0};if(n){let{transformX:t,transformY:e}=z(n),r=n.getBBox();a={x:Number(n.getAttribute("x"))||t+r.x||0,y:Number(n.getAttribute("y"))||e+r.y||0}}let{transformX:i,transformY:o}=z(t),s={x:i+a.x,y:o+a.y};for(;r&&r.id!==e.id;){if("root"===r.classList.value&&r.hasAttribute("transform")){let{transformX:t,transformY:e}=z(r);s.x+=t,s.y+=e}r=r.parentElement}return s},nL=(t,e,r,n,a)=>{let i={};return i.type="arrow",i.startX=t,i.startY=e,i.endX=r,i.endY=n,Object.assign(i,{...a}),i},nC=(t,e,r,n)=>({type:"text",x:t,y:e,text:r,width:n?.width||20,height:n?.height||20,fontSize:n?.fontSize||20,id:n?.id,color:n?.color,groupId:n?.groupId,metadata:n?.metadata}),n$=(t,e,r)=>{let n={},a=Number(t.getAttribute("x")),i=Number(t.getAttribute("y"));n.type="text",n.text=j(e),r?.id&&(n.id=r.id),r?.groupId&&(n.groupId=r.groupId);let o=t.getBBox();return n.width=o.width,n.height=o.height,n.x=a-o.width/2,n.y=i,n.fontSize=parseInt(getComputedStyle(t).fontSize),n.c
73olor=nk(t),n},nR=(t,e,r={})=>{let n={};n.type=e;let{label:a,subtype:i,id:o,groupId:s}=r;n.id=o,s&&(n.groupId=s),a&&(n.label={text:j(a.text),fontSize:16,textAlign:a?.textAlign,verticalAlign:a?.verticalAlign});let l=t.getBBox();switch(n.x=l.x,n.y=l.y,n.width=l.width,n.height=l.height,n.subtype=i,i){case"highlight":let c=t.getAttribute("fill");c&&(n.bgColor=nf(c));break;case"note":n.strokeStyle="dashed"}return n},nN=(t,e,r,n,a,i)=>{let o={};o.startX=e,o.startY=r,o.endX=n,i?.groupId&&(o.groupId=i.groupId),i?.id&&(o.id=i.id),o.endY=a;let s=t.getAttribute("stroke");return o.strokeColor=s?nf(s):null,o.strokeWidth=Number(t.getAttribute("stroke-width")),o.type="line",o},nI={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},nK={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},nD=(t,e,r)=>{if(!t)throw"root node not found";let n=b(),i=Array.from(t.children),o=[];return i.forEach((t,i)=>{let s,l=`${r?.id}-${i}`;switch(t.tagName){case"line":let c=Number(t.getAttribute("x1")),u=Number(t.getAttribute("y1")),h=Number(t.getAttribute("x2")),d=Number(t.getAttribute("y2"));s=nN(t,c,u,h,d,{groupId:n,id:l});break;case"text":s=n$(t,e,{groupId:n,id:l});break;case"circle":s=nR(t,"ellipse",{label:t.textContent?{text:t.textContent}:void 0,groupId:n,id:l});default:s=nR(t,a[t.tagName],{label:t.textContent?{text:t.textContent}:void 0,groupId:n,id:l})}o.push(s)}),o},nP=(t,e)=>{let r=e.getAttribute("fill"),n=e.getAttribute("stroke"),a=e.getAttribute("stroke-width"),i=e.getAttribute("stroke-dasharray");r&&"none"!==r&&(t.bgColor=nf(r)),n&&"none"!==n&&(t.strokeColor=nf(n)),a&&(t.strokeWidth=Number(a)),i&&i.trim()&&(t.strokeStyle="dashed")},nj={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},nz={LINE:0,DOTTED_LINE:1},nF=t=>{let e;switch(t){case nj.AGGREGATION:e="diamond_outline";break;case nj.COMPOSITION:e="diamond";break;case nj.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case nj.DEPENDENCY:default:e="arrow"}return e},nB=(t,e)=>{let r=0,n=0,a=t;for(;a&&a!==e;){let{transformX:t,transformY:e}=z(a);r+=t,n+=e,a=a.parentElement}return{tx:r,ty:n}},nY=new Set(["triangle_outline","diamond","diamond_outline"]),nW=(t,e=.5)=>{if(t.length<=2)return[...t];let r=[t[0]];for(let n=1;n<t.length-1;n++){let a=r[r.length-1],i=t[n],o=t[n+1],s=o.x-a.x,l=o.y-a.y,c=Math.hypot(s,l);if(!c)continue;let u=Math.abs(s*(i.y-a.y)-l*(i.x-a.x))/c,h=((i.x-a.x)*s+(i.y-a.y)*l)/(c*c);u<=e&&h>=-e&&h<=1+e||r.push(i)}return r.push(t[t.length-1]),r},nU=t=>{let e=Y(U(t).map(t=>[t.x,t.y])).map(([t,e])=>({x:t,y:e})),r=W(t);return r&&e.length>=2&&(e[0]={x:r.startX,y:r.startY},e[e.length-1]={x:r.endX,y:r.endY}),nW(e)},nq=(t,e,r)=>{let n=t.x-e.x,a=t.y-e.y,i=Math.hypot(n,a);return i?{x:t.x+n/i*r,y:t.y+a/i*r}:t},nH=(t,e,r)=>{if(t.length<2)throw Error(`Class diagram edge ${e?.id||"<unknown>"} is missing usable path points`);let n=t[0],a=t[t.length-1],i=nL(n.x,n.y,a.x,a.y,{id:e?.getAttribute("data-id")||e?.id||void 0,...r,points:t.map(t=>[t.x-n.x,t.y-n.y])});return e&&((t,e)=>{let r=nf(t.getAttribute("stroke")||getComputedStyle(t).stroke||""),n=parseFloat(t.getAttribute("stroke-width")||getComputedStyle(t).strokeWidth||"1");ny(r)&&"none"!==r&&(e.strokeColor=r),Number.isFinite(n)&&n>0&&(e.strokeWidth=n)})(e,i),(t=>{let e=t.points?.map(([e,r])=>({x:t.startX+e,y:t.startY+r})).filter(t=>Number.isFinite(t.x)&&Number.isFinite(t.y));if(!e||e.length<2)return t;let r=[...e],n=!!t.startArrowhead&&nY.has(t.startArrowhead),a=!!t.endArrowhead&&nY.has(t.endArrowhead);if(!n&&!a)return t;if(n&&(r[0]=nq(r[0],r[1],16)),a){let t=r.length-1;r[t]=nq(r[t],r[t-1],16)}return((t,e)=>{let r=Y(e.map(t=>[t.x,t.y])).map(([t,e])=>({x:t,y:e}));if(r.length<2)throw Error("Arrow route must contain at least two points");let n=r[0],a=r[r.length-1];t.startX=n.x,t.startY=n.y,t.endX=a.x,t.endY=a.y,t.points=r.map(t=>[t.x-n.x,t.y-n.y])})(t,r),t})(i)},nX=(t,e)=>nH((t=>{let e=[];return t.forEach(t=>{nU(t).forEach(t=>{let r=e[e.length-1];r&&r.x===t.x&&r.y===t.y||e.push(t)})}),nW(e)})(t),t[0],e),nG=(t,e)=>{let r=(t=>t.points?.map(([e,r])=>({x:t.startX+e,y:t.startY+r})).filter(t=>Number.isFinite(t.x)&&Number.isFinite(t.y))||[])(t);if(r.length<2)return null;let n="start"===e,a=n?r[0]:r[r.length-1],i=n?r[1]:r[r.length-2],o=i.x===a.x?n?-1:1:Math.sign(i.x-a.x),s=i.y===a.y?1:Math.sign(i.y-a.y);return{x:a.x+20*o,y:a.y+(s>=0?12:-28)}},nZ=(t,e)=>{let r=0,n=0,a=t;for(;a&&a!==e;){let{transformX:t,transformY:e}=z(a);r+=t,n+=e,a=a.parentElement}return{tx:r,ty:n}},nV=t=>{switch(t?.toLowerCase()){case"one":return"cardinality_one";case"many":return"cardinality_many";case"only_one":return"cardinality_exactly_one";case"one_or_more":return"cardinality_one_or_many";case"zero_or_one":return"cardinality_zero_or_one";case"zero_or_more":return"cardinality_zero_or_many";default:return null}},nQ=t=>{let e=nf(t||"");return!!e&&"none"!==e&&"transparent"!==e&&"rgba(0, 0, 0, 0)"!==e&&"rgba(0,0,0,0)"!==e&&ny(e)},nJ=(t,e,r)=>{switch(e){case c.FILL:case c.STROKE:nQ(r)&&(t[e]=nf(r));break;case c.STROKE_WIDTH:case c.STROKE_DASHARRAY:nf(r)&&(t[e]=nf(r))}},n0=(t,e,r)=>{e===l.COLOR&&nQ(r)&&(t[l.COLOR]=nf(r))},n1=(t,e)=>{t&&nm(t).forEach(({property:t,value:r})=>{if(t===c.FILL&&nQ(r)){e[l.COLOR]=nf(r);return}n0(e,t,r)})},n2=(t,e)=>{let r=0,n=0,a=t;for(;a&&a!==e;){let{transformX:t,transformY:e}=z(a);r+=t,n+=e,a=a.parentElement}return{tx:r,ty:n}},n3=(t,e)=>{let r=t.getAttribute("style");if(!r)return;let n=nm(r).find(t=>t.property===e);if(n)return nf(n.value)},n5=(t,e)=>{let r=t.map(t=>({element:t,area:(t=>{let e=t.getBBox();return Math.abs(e.width*e.height)})(t)})).filter(({area:t})=>Number.isFinite(t)&&t>0);return 0===r.length?null:r.sort((t,r)=>"largest"===e?r.area-t.area:t.area-r.area)[0].element},n6=Promise.resolve(),n9=null,n8=0,n4=t=>{let e=t.querySelector("svg");if(!e)throw Error("SVG element not found");let r=e.getBoundingClientRect(),n=r.width,a=r.height;e.setAttribute("width",`${n}`),e.setAttribute("height",`${a}`);let i=btoa(unescape(encodeURIComponent(e.outerHTML)));return{type:"graphImage",mimeType:"image/svg+xml",dataURL:`data:image/svg+xml;base64,${i}`,width:n,height:a}},n7=async(t,e=i)=>(t=>{let e=n6.then(t,t);return n6=e.then(()=>void 0,()=>void 0),e})(async()=>{let r=e.themeVariables?.fontSize??i.themeVariables.fontSize,n={...i,...e,fontSize:r,themeVariables:{...i.themeVariables,...e.themeVariables,fontSize:r}},a=JSON.stringify(n);a!==n9&&(np.initialize(n),n9=a);let o=await np.mermaidAPI.getDiagramFromText((t=>{let e=t;
73return(e=(e=e.replace(/style.*:\S*#.*;/g,t=>t.substring(0,t.length-1))).replace(/classDef.*:\S*#.*;/g,t=>t.substring(0,t.length-1))).replace(/#\w+;/g,t=>{let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?`fl\xb0\xb0${e}\xb6\xdf`:`fl\xb0${e}\xb6\xdf`})})(t)),s=`mermaid-to-excalidraw-${n8++}`,u=document.createElement("div");u.setAttribute("style","opacity: 0; position: fixed; z-index: -1; left: -99999px; top: -99999px;");let h=`${s}-container`;u.id=h,document.getElementById(h)?.remove(),document.body.appendChild(u);try{let e,{svg:r}=await np.render(s,t,u);u.innerHTML=r;try{switch(o.type){case"flowchart-v2":case"graph":e=((t,e)=>{let r=t.getVertices(),n=t.getEdges(),a=t.getSubGraphs(),i=t.getClasses(),o={},s=i instanceof Map?i:{};r instanceof Map?r.forEach((t,r)=>{o[r]=nT(t,e,s)}):"object"==typeof r&&null!==r&&Object.entries(r).forEach(([t,r])=>{o[t]=nT(r,e,s)});let l=new Map,c=(Array.isArray(n)?n:[]).map(t=>{if(!e.querySelector(`[id*="${t.id}"]`))return null;let r=`${t.start}-${t.end}`,n=l.get(r)||0;return l.set(r,n+1),((t,e,r)=>{let n=r.querySelector(`[id*="${t.id}"]`);if(!n)throw Error("Edge element not found");let a=nO(n,r),i=q(n,a);return t.length=void 0,{...t,...i,text:j(t.text)}})(t,0,e)}).filter(t=>null!==t&&t.reflectionPoints.length>1);return{type:"flowchart",subGraphs:(Array.isArray(a)?a:[]).map(t=>((t,e,r)=>{let n=t.nodes.map(t=>t.startsWith("flowchart-")?t.split("-")[1]:t),a=e.querySelector(`[id='${t.id}']`);if(!a)throw Error("SubGraph element not found");let i=nO(a,e),o=a.getBBox(),s={width:o.width,height:o.height},l={},c={},u=a.querySelector(":scope > rect, :scope > path, :scope > polygon, :scope > ellipse")||a.querySelector(".cluster > rect, .cluster > path, .cluster > polygon, .cluster > ellipse")||a.querySelector("rect, path, polygon, ellipse");nv(a.getAttribute("style"),l,c),nv(u?.getAttribute("style"),l,c),nS(u,l);let h=a.querySelector(".cluster-label text, .cluster-label tspan")||a.querySelector("text");return nA(h?.getAttribute("style"),c),nM(h,c),nE(t.id,r,l,c),t.classes?.forEach(t=>{nE(t,r,l,c)}),{id:t.id,nodeIds:n,text:j(t.title),labelType:"text",...i,...s,c
73ontainerStyle:l,labelStyle:c}})(t,e,s)),vertices:o,edges:c}})(o.db,u);break;case"sequence":e=((t,e)=>{let r=t.db,n=[],a=r.getBoxes().map(t=>({...t,fill:nf(t.fill||"")})),i=(t=>{let e=Array.from(t.querySelectorAll(".rect")).filter(t=>t.parentElement?.tagName!=="g"),r=[];return e.forEach(t=>{let e=nR(t,"rectangle",{label:{text:""},subtype:"highlight"});r.push(e)}),r})(e),{nodes:o,lines:s,actorMap:l}=((t,e)=>{let r=Array.from(e.querySelectorAll(".actor-top")),n=Array.from(e.querySelectorAll(".actor-bottom")),a=[],i=[],o={},s=t instanceof Map?Array.from(t.values()):Object.values(t),l=Array.from(e.querySelectorAll(".actor-line")),c=(t,e)=>{let r=t.name,n=l.find(t=>t.getAttribute("name")===r);if(n)return n;let a="participant"===t.type?e.parentElement?.previousElementSibling:e.previousElementSibling;return a?"line"===a.tagName?a:a.querySelector("line"):null};return s.forEach(t=>{let e=r.find(e=>e.getAttribute("name")===t.name),s=n.find(e=>e.getAttribute("name")===t.name);if(!e||!s)throw"root not found";let l=t.description;if("participant"===t.type){let r=nR(e,"rectangle",{id:`${t.name}-top`,label:{text:l},subtype:"actor"});if(nP(r,e),!r)throw"Top Node element not found!";a.push([r]);let n=nR(s,"rectangle",{id:`${t.name}-bottom`,label:{text:l},subtype:"actor"});o[t.name]={topId:`${t.name}-top`,bottomId:`${t.name}-bottom`,bindType:"rectangle"},nP(n,s),a.push([n]);let u=c(t,e);if(u?.tagName!=="line")throw"Line not found";let h=Number(u.getAttribute("x1"));if(!r.height)throw"Top node element height is null";let d=r.y+r.height,p=n.y,f=Number(u.getAttribute("x2")),g=nN(u,h,d,f,p);i.push(g)}else if("actor"===t.type){let r=nD(e,l,{id:`${t.name}-top`});a.push(r);let n=nD(s,l,{id:`${t.name}-bottom`});a.push(n);let u=c(t,e);if(u?.tagName!=="line")throw"Line not found";let h=Number(u.getAttribute("x1")),d=Number(u.getAttribute("y1")),p=Number(u.getAttribute("x2")),f=n.find(t=>"ellipse"===t.type);if(f){let t=nN(u,h,d,p,f.y);i.push(t)}let g=r.find(t=>"ellipse"===t.type),m=n.find(t=>"ellipse"===t.type);g?.id&&m?.id&&(o[t.name]={topId:g.id,bottomId:m.id,bindType:"ellipse"})}}),{nodes:a,lines:i,actorMap:o}})(r.getActors(),e),c=r.getMessages(),u=((t,e,r)=>{let n=[],a=Array.from(e.querySelectorAll('[class*="messageLine"]')),i=Object.keys(nI),o=t.filter(t=>i.includes(t.type.toString()));return a.forEach((t,e)=>{let a=o[e],i=nI[a.type],s=((t,e)=>{let r={};e?.label&&(r.label={text:j(e.label),fontSize:16});let n=t.tagName;if("line"===n)r.startX=Number(t.getAttribute("x1")),r.startY=Number(t.getAttribute("y1")),r.endX=Number(t.getAttribute("x2")),r.endY=Number(t.getAttribute("y2"));else if("path"===n){let e=t.getAttribute("d");if(!e)throw Error('Path element does not contain a "d" attribute');let n=e.split(/(?=[LC])/),a=n[0].substring(1).split(",").map(t=>parseFloat(t)),i=[];n.forEach(t=>{let e=t.substring(1).trim().split(" ").map(t=>{let[e,r]=t.split(",");return[parseFloat(e)-a[0],parseFloat(r)-a[1]]});i.push(...e)});let o=i[i.length-1];r.startX=a[0],r.startY=a[1],r.endX=o[0],r.endY=o[1],r.points=i}e?.label&&(r.startY=r.startY-10,r.endY=r.endY-10);let a=t.getAttribute("stroke"),i=(a&&"none"!==a?a:"")||getComputedStyle(t).stroke||"";return r.strokeColor=i?nf(i):null,r.strokeWidth=Number(t.getAttribute("stroke-width")),r.type="arrow",r.strokeStyle=e?.strokeStyle||"solid",r.startArrowhead=e?.
73startArrowhead||null,r.endArrowhead=e?.endArrowhead||null,r})(t,{label:a?.message,strokeStyle:(t=>{let e;switch(t){case nK.SOLID:case nK.SOLID_CROSS:case nK.SOLID_OPEN:case nK.SOLID_POINT:e="solid";break;case nK.DOTTED:case nK.DOTTED_CROSS:case nK.DOTTED_OPEN:case nK.DOTTED_POINT:e="dotted";break;default:e="solid"}return e})(a.type),endArrowhead:"SOLID_OPEN"===i||"DOTTED_OPEN"===i?null:"arrow"}),l=r[a.from],c=r[a.to];l?.topId&&c?.topId&&(s.start={type:l.bindType||"rectangle",id:l.topId},s.end={type:c.bindType||"rectangle",id:c.topId}),((t,e)=>{if(t.nextElementSibling?.classList.contains("sequenceNumber")){let r=t.nextElementSibling?.textContent;if(!r)throw Error("sequence number not present");let n={type:"rectangle",x:e.startX-10,y:e.startY-15,label:{text:r,fontSize:14},bgColor:"#e9ecef",height:30,subtype:"sequence"};Object.assign(e,{sequenceNumber:n})}})(t,s),n.push(s)}),n})(c,e,l),h=((t,e)=>{let r=Array.from(e.querySelectorAll(".note")).map(t=>t.parentElement),n=t.filter(t=>t.type===nK.NOTE),a=[];return r.forEach((t,e)=>{if(!t)return;let r=t.firstChild,i=nR(r,"rectangle",{label:{text:n[e].message},subtype:"note"}),o=r.getAttribute("fill"),s=r.getAttribute("stroke"),l=r.getAttribute("stroke-width"),c=r.getAttribute("stroke-dasharray");o&&"none"!==o&&(i.bgColor=nf(o)),s&&"none"!==s&&(i.strokeColor=nf(s)),l&&(i.strokeWidth=Number(l)),c&&c.trim()&&(i.strokeStyle="dashed"),a.push(i)}),a})(c,e),d=(t=>{let e=Array.from(t.querySelectorAll("[class*=activation]")),r=[];return e.forEach(t=>{let e=nR(t,"rectangle",{label:{text:""},subtype:"activation"});(()=>{let r=t.getAttribute("fill"),n=t.getAttribute("stroke"),a=t.getAttribute("stroke-width"),i=t.getAttribute("stroke-dasharray");r&&"none"!==r&&(e.bgColor=nf(r)),n&&"none"!==n&&(e.strokeColor=nf(n)),a&&(e.strokeWidth=Number(a)),i&&i.trim()&&(e.strokeStyle="dashed")})(),r.push(e)}),r})(e),p=((t,e)=>{let r=Array.from(e.querySelectorAll(".loopLine")),n=[],a=[],i=[];r.forEach(t=>{let e=Number(t.getAttribute("x1")),r=Number(t.getAttribute("y1")),a=Number(t.getAttribute("x2")),i=Number(t.getAttribute("y2")),o=nN(t,e,r,a,i);o.strokeStyle="dotted",o.strokeColor="#adb5bd",o.strokeWidth=2,n.push(o)});let o=Array.from(e.querySelectorAll(".loopText")),s=t.filter(t=>t.type===nK.CRITICAL_START).map(t=>t.message);o.forEach(t=>{let e=t.textContent||"",r=n$(t,e),n=e.match(/\[(.*?)\]/)?.[1]||"";s.includes(n)&&(r.x+=16),a.push(r)});let l=Array.from(e?.querySelectorAll(".labelBox")),c=Array.from(e?.querySelectorAll(".labelText"));return l.forEach((t,e)=>{let r=nR(t,"rectangle",{label:{text:c[e]?.textContent||""}});r.strokeColor="#adb5bd",r.bgColor="#e9ecef",r.width=void 0,i.push(r)}),{lines:n,texts:a,nodes:i}})(c,e);return n.push(i),n.push(...o),n.push(h),n.push(d),{type:"sequence",lines:s,arrows:u,nodes:n,loops:p,groups:a}})(o,u);break;case"class":case"classDiagram":e=((t,e)=>{let r=t.db,n=r.getDirection?.()||"TB",a=[],i=[],o=[],s=[],l=r.getNamespaces?.()||[],c=r.getClasses?.()||{},u=c instanceof Map?Object.fromEntries(c):c;if(u&&Object.keys(u).length){let t=((t,e,r)=>{let n=[],a=[],i=[];return Object.values(t).forEach(t=>{let o,{domId:s,id:l}=t,c=b(),u=(t=>{let e={};return t&&t.forEach(t=>{nm(t).forEach(({property:t,value:r})=>{t&&r&&(e[t]=nf(r))})}),e})(t.styles||t.cssStyles);try{o=r?r(l):void 0}catch{o=void 0}let h=o&&e.querySelector(`#${o}`)||e.querySelector(`#${s}`)||e.querySelector(`[data-id='${l}']`)||(t=>{let r=RegExp(`^classId-${t}(?:-|$)`);return Array.from(e.querySelectorAll("[id]")).filter(t=>r.test(t.id))[0]})(l);if(!h)throw Error(`DOM Node with id ${s} not found`);let d=h.querySelector("rect")||h,p=d.getBBox(),{tx:f,ty:g}=nB(d,e),m={type:"rectangle",id:l,groupId:c,x:p.x+f,y:p.y+g,width:p.width,height:p.height,metadata:{classId:l}},y=d.getAttribute("fill"),x=d.getAttribute("stroke"),k=d.getAttribute("stroke-width"),w=d.getAttribute("stroke-dasharray"),_=getComputedStyle(d),v=nf(y||u.fill||(y?_.fill:"")),A=nf(x||u.stroke||(x?_.stroke:"")),S=k||u["stroke-width"]||(k?_.strokeWidth:""),M=w||u["stroke-dasharray"]||(w?"none"===_.strokeDasharray?"":_.strokeDasharray:""),E=t=>{if(!t||!ny(t))return!1;let e=t.toLowerCase();return"none"!==e&&"transparent"!==e&&"rgba(0, 0, 0, 0)"!==e&&"black"!==e&&"#000"!==e&&"#000000"!==e&&"rgb(0, 0, 0)"!==e&&"rgba(0, 0, 0, 1)"!==e};E(v)?m.bgColor=v:m.bgColor=void 0,E(A)?m.strokeColor=A:m.strokeColor=void 0,S?m.strokeWidth=Number(S):m.strokeWidth=void 0,M&&M.trim().length>0?m.strokeStyle="dashed":m.strokeStyle=void 0,n.push(m),[...Array.from(h.querySelectorAll("line")),...Array.from(h.querySelectorAll("g.divider path"))].forEac
73h(t=>{let r,n,i,o,{tx:s,ty:u}=nB(t,e);if("line"===t.tagName.toLowerCase())r=Number(t.getAttribute("x1"))+s,n=Number(t.getAttribute("y1"))+u,i=Number(t.getAttribute("x2"))+s,o=Number(t.getAttribute("y2"))+u;else{let e=t.getBBox();r=e.x+s,i=e.x+e.width+s;let a=e.y+e.height/2+u;n=a,o=a}if(r===i&&n===o)return;let h=nN(t,r,n,i,o,{groupId:c,id:b()});m.strokeColor?h.strokeColor=m.strokeColor:h.strokeColor=void 0,void 0!==m.strokeWidth?h.strokeWidth=m.strokeWidth:h.strokeWidth=void 0,m.strokeStyle?h.strokeStyle=m.strokeStyle:h.strokeStyle=void 0,h.metadata={classId:l},a.push(h)});let T=Array.from(h.querySelectorAll("text, foreignObject")),O=[];T.forEach(t=>{let r="foreignobject"===t.tagName.toLowerCase(),n=r?[]:Array.from(t.querySelectorAll("tspan")),a=n.length?n.map(t=>t.textContent?.trim()).filter(Boolean).join("\n"):t.textContent?.trim()||"";if(!a)return;let i=t.getBBox(),{ty:o}=nB(t,e),s=parseFloat(getComputedStyle(t).fontSize||"");if(r&&(!Number.isFinite(s)||!s)){let e=t.querySelector("div, span, p");e&&(s=parseFloat(getComputedStyle(e).fontSize||""))}(!Number.isFinite(s)||s<=0)&&(s=Math.max(12,.6*i.height)),s*=.9;let l=nk(t,u.color);O.push({section:((t,e)=>{let r=t;for(;r&&r!==e;){if(r.classList.contains("annotation-group")||r.classList.contains("label-group"))return"header";if(r.classList.contains("members-group"))return"members";if(r.classList.contains("methods-group"))return"methods";r=r.parentElement}return"other"})(t,h),text:j(a),x:i.x,y:i.y+o,width:m&&m.width?Math.max(m.width-8,i.width):i.width,height:i.height,fontSize:s,color:l})});let L=O.filter(t=>"header"===t.section).sort((t,e)=>t.y-e.y||t.x-e.x);if(!m.label){let t=0===L.length&&1===O.length?O:L;t.length>0&&(m.label={text:t.map(t=>t.text).join("\n"),fontSize:Math.max(...t.map(t=>t.fontSize)),color:t.find(t=>t.color)?.color,verticalAlign:"top"})}O.filter(t=>L.length>0?"header"!==t.section:!(m.label&&1===O.length)).forEach(t=>{let e=nC((m?.x||0)+4,t.y,t.text,{width:t.width,height:t.height,fontSize:t.fontSize,color:t.color,id:b(),groupId:c,metadata:{classId:l}});i.push(e)})}),{nodes:n,lines:a,text:i}})(u,e,"function"==typeof r.lookUpDomId?r.lookUpDomId.bind(r):void 0);a.push(t.nodes),i.push(...t.lines),o.push(...t.text),s.push(...t.nodes)}let{arrows:h,text:d}=((t,e,r,n)=>{let a=Array.from(r.querySelectorAll('.edgePaths path[data-edge="true"]:not([id^="edgeNote"]):not([id*="-cyclic-special-"])'));if(0===t.length)return{arrows:[],text:[]};let i=[],o=[],s=0;return t.forEach(t=>{let l,c,u,{id1:h,id2:d,relation:p}=t,f=e.find(t=>t.id===h),g=e.find(t=>t.id===d);if(!f)throw Error(`parseRelations: Cannot find node with id ${h}`);if(!g)throw Error(`parseRelations: Cannot find node with id ${d}`);let m=(t=>{let e;switch(t){case nz.LINE:e="solid";break;case nz.DOTTED_LINE:e="dotted";break;default:e="solid"}return e})(p.lineType),y=nF(p.type1),b=nF(p.type2);if(h===d){let e=((t,e)=>[`${t}-cyclic-special-1`,`${t}-cyclic-special-mid`,`${t}-cyclic-special-2`].map(t=>e.querySelector(`path[id="${t}"][data-edge="true"]`)).filter(t=>null!==t))(h,r);if(!e.length)throw Error(`parseRelations: Cannot find rendered SVG edge for relation ${h} -> ${d}`);l=nX(e,{strokeStyle:m,startArrowhead:y,endArrowhead:b,label:t.title?{text:t.title}:void 0,start:{type:"rectangle",id:f.id},end:{type:"rectangle",id:g.id}})}else{let e=a[s];if(!e)throw Error(`parseRelations: Cannot find rendered SVG edge for relation ${h} -> ${d}`);s+=1,l=((t,e)=>{let r=nU(t);return nH([r[0],r[r.length-1]],t,e)})(e,{strokeStyle:m,startArrowhead:y,endArrowhead:b,label:t.title?{text:t.title}:void 0,start:{type:"rectangle",id:f.id},end:{type:"rectangle",id:g.id}})}i.push(l);let{relationTitle1:x,relationTitle2:k}=t,w=h===d;
73if(x&&"none"!==x){if(w){let t=nG(l,"start");t&&(c=t.x,u=t.y)}else switch(n){case"TB":c=l.startX-20,l.endX<l.startX&&(c-=15),u=l.startY+15;break;case"BT":c=l.startX+20,l.endX>l.startX&&(c+=15),u=l.startY-15;break;case"LR":c=l.startX+20,u=l.startY+15,l.endY>l.startY&&(u+=15);break;case"RL":c=l.startX-20,u=l.startY-15,l.startY>l.endY&&(u-=15);break;default:c=l.startX-20,u=l.startY+15}c??=l.startX-20;let t=nC(c,u??=l.startY+15,x,{fontSize:16});o.push(t)}if(k&&"none"!==k){if(w){let t=nG(l,"end");t&&(c=t.x,u=t.y)}else switch(n){case"TB":c=l.endX+20,l.endX<l.startX&&(c+=15),u=l.endY-15;break;case"BT":c=l.endX-20,l.endX>l.startX&&(c-=15),u=l.endY+15;break;case"LR":c=l.endX-20,u=l.endY-15,l.endY>l.startY&&(u-=15);break;case"RL":c=l.endX+20,u=l.endY+15,l.startY>l.endY&&(u+=15);break;default:c=l.endX+20,u=l.endY-15}c??=l.endX+20;let t=nC(c,u??=l.endY+15,k,{fontSize:16});o.push(t)}}),{arrows:i,text:o}})(r.getRelations?.()||[],s,e,n),{notes:p,connectors:f}=((t,e,r)=>{let n=[],a=[];return t.forEach((t,i)=>{let{id:o,text:s,class:l}=t,c=e.querySelector(`#${o}`);if(!c)throw Error(`Node with id ${o} not found!`);let{transformX:u,transformY:h}=z(c),d=nR(c.firstChild,"rectangle",{id:o,subtype:"note",label:{text:s}});if(Object.assign(d,{x:d.x+u,y:d.y+h}),n.push(d),l){let t=r.find(t=>t.id===l);if(!t)throw Error(`class node with id ${l} not found!`);let n=e.querySelector(`path[id="edgeNote${i+1}"][data-edge="true"]`);if(n)return void a.push(nX([n],{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:d.id,type:"rectangle"},end:{id:t.id,type:"rectangle"}}));let o=d.x+(d.width||0)/2,s=d.y+(d.height||0),c=nL(o,s,o,t.y,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:d.id,type:"rectangle"},end:{id:t.id,type:"rectangle"}});a.push(c)}}),{notes:n,connectors:a}})(r.getNotes?.()||[],e,s);return a.push(p),h.push(...f),o.push(...d),{type:"class",nodes:a,lines:i,arrows:h,text:o,namespaces:l}})(o,u);break;case"er":e=((t,e)=>{let r=t.getData(),n=r.nodes,a=r.edges,i=[],o=[],s=[];return n.forEach(t=>{let r=((t,e)=>{let r=e.querySelector(`[id="${t.id}"]`);if(!r)throw Error(`ER entity ${t.id} not found in rendered SVG`);let n=t.attributes.length?b():void 0,a=r.getBBox(),{tx:i,ty:o}=nZ(r,e),s=(t=>{let e={};return t&&t.forEach(t=>{nm(t).forEach(({property:t,value:r})=>{t&&r&&(e[t]=nf(r))})}),e})([...t.cssStyles||[],...t.cssCompiledStyles||[]]),l=nf(s.fill||""),c=nf(s.stroke||""),u=(t=>{if(null==t||""===t)return;let e="number"==typeof t?t:parseFloat(nf(t));if(Number.isFinite(e)&&!(e<=0))return e})(s["stroke-width"]),h=nf(s["stroke-dasharray"]||""),d=Array.from(r.querySelectorAll("g.label")).map(t=>((t,e,r)=>{let n=(t=>{let e=Array.from(t.querySelectorAll("tspan"));return j(e.length?e.map(t=>t.textContent?.trim()).filter(Boolean).join("\n"):t.textContent?.trim()||"")})(t);if(!n)return null;let a=t.getBBox(),{tx:i,ty:o}=nZ(t,e);return{className:t.getAttribute("class")||"",text:n,x:a.x+i,y:a.y+o,width:a.width,height:a.height,fontSize:(t=>{let e=parseFloat(getComputedStyle(t.querySelector("text, foreignObject, div, span, p")||t).fontSize||"");return(!Number.isFinite(e)||e<=0)&&(e=Math.max(12,.75*t.getBBox().height)),e})(t),color:nk(t,r)}})(t,e,s.color)).filter(t=>null!==t),p=d.find(t=>t.className.includes("name"))||d[0],f=d.filter(t=>t!==p),g=p?.text||j(t.alias||t.label||""),m={type:"rectangle",id:t.id,groupId:n,x:a.x+i,y:a.y+o,width:a.width,height:a.height,label:{text:g,fontSize:t.attributes.length?18:p?.fontSize||16,color:p?.color,textAlign:"center",verticalAlign:t.attributes.length?"top":"middle"},metadata:{entityId:t.id,entityLabel:t.label,entityAlias:t.alias}};ny(l)&&"none"!==l&&(m.bgColor=l),ny(c)&&"none"!==c&&(m.strokeColor=c),u&&Number.isFinite(u)&&u>0&&(m.strokeWidth=u),h&&"none"!==h&&(m.strokeStyle="dashed");let y=Array.from(r.querySelectorAll(".divider path, path.divider, line.divider")).map(r=>((t,e,r,n,a,i,o)=>{let{tx:s,ty:l}=nZ(t,e),c=0,u=0,h=0,d=0;if("line"===t.tagName.toLowerCase())c=Number(t.getAttribute("x1"))+s,u=Number(t.getAttribute("y1"))+l,h=Number(t.getAttribute("x2"))+s,d=Number(t.getAttribute("y2"))+l;else{let e=W(t);if(!e)return null;c=e.startX+s,u=e.startY+l,h=e.endX+s,d=e.endY+l}let p={type:"line",id:b(),groupId:r,startX:c,startY:u,endX:h,endY:d,metadata:{entityId:n}};return a&&ny(a)&&"none"!==a&&(p.strokeColor=a),void 0!==i&&(p.strokeWidth=i),o&&(p.strokeStyle=o),p})(r,e,n,t.id,m.strokeColor,m.strokeWidth,m.strokeStyle)).filter(t=>null!==t);return{container:m,lines:y,text:f.map(e=>nC(e.x,e.y,e.text,{id:b(),groupId:n,width:e.width,height:e.height,fontSize:18,color:e.color,metadata:{entityId:t.
73id}}))}})(t,e);i.push(r.container),o.push(...r.lines),s.push(...r.text)}),{type:"erd",nodes:[i],lines:o,arrows:a.map(t=>((t,e)=>{let r=((t,e)=>{let r=e.querySelector(`path[id="${t.id}"][data-edge="true"]`);return r?[r]:t.start!==t.end?[]:[`${t.start}-cyclic-special-1`,`${t.start}-cyclic-special-mid`,`${t.start}-cyclic-special-2`].map(t=>e.querySelector(`path[id="${t}"][data-edge="true"]`)).filter(t=>null!==t)})(t,e);if(!r.length)throw Error(`ER relationship ${t.id} not found in rendered SVG`);let n=(t=>{let e=[];return t.forEach(t=>{U(t).forEach(t=>{let r=e[e.length-1];r&&r.x===t.x&&r.y===t.y||e.push(t)})}),e})(r);if(n.length<2)throw Error(`ER relationship ${t.id} is missing usable path points`);let a=n[0],i=n[n.length-1],o=r[0],s=nf(o.getAttribute("stroke")||getComputedStyle(o).stroke||""),l=Number(o.getAttribute("stroke-width")||getComputedStyle(o).strokeWidth||1),c=nL(a.x,a.y,i.x,i.y,{id:t.id,label:t.label?{text:j(t.label),fontSize:16,textAlign:"center"}:void 0,strokeStyle:(t=>{switch(t){case"dotted":return"dotted";case"dashed":return"dashed";default:return"solid"}})(t.pattern),startArrowhead:nV(t.arrowTypeStart),endArrowhead:nV(t.arrowTypeEnd),start:{type:"rectangle",id:t.start},end:{type:"rectangle",id:t.end},points:n.map(t=>[t.x-a.x,t.y-a.y])});return ny(s)&&"none"!==s&&(c.strokeColor=s),Number.isFinite(l)&&l>0&&(c.strokeWidth=l),c})(t,e)),text:s}})(o.db,u);break;case"state":case"stateDiagram":e=((t,e)=>{let{nodes:r,edges:n}=t.getData(),a=(t=>{let e=new Set,r=t=>(t&&e.add(t),t),n=t=>r(t.find(t=>!e.has(t))||null);return e=>{for(let n of[`[id='${e.domId}']`,`[id='${e.id}']`,`[data-id='${e.id}']`]){let e=t.querySelector(n);if(e)return r(e)}switch(e.shape){case"divider":return n(Array.from(t.querySelectorAll("g.statediagram-cluster-alt")));case"stateStart":return n(Array.from(t.querySelectorAll("g.node.default")).filter(t=>t.querySelector("circle.state-start")));case"stateEnd":return n(Array.from(t.querySelectorAll("g.node.default")).filter(t=>!t.querySelector("circle.state-start")));default:return null}}})(e);return{type:"state",nodes:r.map(t=>((t,e,r)=>{let n=r(t);if(!n)throw Error(`State node element not found for "${t.id}"`);let a=((t,e)=>{switch(e){case"roundedWithTitle":case"rectWithTitle":return t.querySelector("rect.outer")||t.querySelector("rect")||t;case"divider":return t.querySelector("rect.divider")||t.querySelector("rect")||t;case"stateStart":case"stateEnd":return n5(Array.from(t.querySelectorAll("circle, ellipse, path")),"largest")||t;default:return t.querySelector("rect, path, circle, ellipse, polygon")||t}})(n,t.shape),i={},o={},s=[t.labelStyle,...t.cssCompiledStyles||[],...t.cssStyles||[]],u=(t=>{let e=new Set;return t.filter(Boolean).forEach(t=>{nm(t||"").forEach(({property:t})=>{e.add(t)})}),e})(s);s.filter(Boolean).forEach(t=>{((t,e,r)=>{t&&nm(t).forEach(({property:t,value:n})=>{nJ(e,t,n),n0(r,t,n)})})(t,i,o)}),((t,e,r)=>{t&&[[c.FILL,t.getAttribute("fill")],[c.STROKE,t.getAttribute("stroke")],[c.STROKE_WIDTH,t.getAttribute("stroke-width")],[c.STROKE_DASHARRAY,t.getAttribute("stroke-dasharray")]].forEach(([t,n])=>{if(!r.has(t)||e[t])return;let a=nf(n||"");a&&nJ(e,t,a)})})(a,i,u),((t,e,r)=>{if(t)for(let n of[t,...Array.from(t.querySelectorAll("text, foreignObject, div, span, p"))]){if(e[l.COLOR]||(r.has(l.COLOR)||r.has(c.FILL))&&(n1(n.getAttribute("style"),e),e[l.COLOR]))break;let t=nf(n.getAttribute("fill")||n.getAttribute("color")||"");(r.has(l.COLOR)||r.has(c.FILL))&&nQ(t)&&(e[l.COLOR]=t)}})(n,o,u);let h=((t,e)=>{let r=t.getBBox(),{tx:n,ty:a}=n2(t,e);return{x:r.x+n,y:r.y+a,width:r.width,height:r.height}})(a,e);return{id:t.id,shape:t.shape,text:(t=>(t=>{if(t.length<2)return t;let e=t.slice(1),r=e.filter(t=>t.trim().length>0).reduce((t,e)=>Math.min(t,e.match(/^\s*/)?.[0].length??0),1/0);return!Number.isFinite(r)||r<=0?t.map(t=>t.trimEnd()):[t[0].trimEnd(),...e.map(t=>t.replace(RegExp(`^\\s{0,${r}}`),"").trimEnd())]})(Array.isArray(t.label)?t.label.map(t=>j(t)):j(t.label||"").split("\n")).join("\n"))(t),description:(t=>t.description?(Array.isArray(t.description)?t.description:[t.description]).map(t=>j(t)).filter(t=>t.length>0):[])(t),x:h.x,y:h.y,width:h.width,height:h.height,parentId:t.parentId,position:t.position,containerStyle:i,labelStyle:o,dividerLine:"rectWithTitle"===t.shape?((t,e)=>{let r=t.querySelector("line.divider");if(!r)return;let{tx:n,ty:a}=n2(r,e);return{startX:Number(r.getAttribute("x1"))+n,startY:Number(r.getAttribute("y1"))+a,endX:Number(r.getAttribute("x2"))+n,endY:Number(r.getAttribute("y2"))+a}})(n,e):void 0,endInnerColor:"stateEnd"===t.shape?((t,e)=>{if(!t||!e.has(c.FILL)&&!e.has(c.STROKE))return;let r=nf(t.getAttribute("fill")||n3(t,c.FILL)||""),n=nf(t.getAttribute("stroke")||n3(t,c.STROKE)||"");
73return nQ(r)?r:nQ(n)?n:void 0})(n5(Array.from(n.querySelectorAll("circle, ellipse, path")),"smallest"),u):void 0,isRenderable:"noteGroup"!==t.shape}})(t,e,a)),edges:n.map(t=>((t,e)=>{let r=e.querySelector(`[id='${t.id}']`);if(!r)return null;let{tx:n,ty:a}=n2(r,e),i=q(r,{x:n,y:a},"MCL");if(i.reflectionPoints.length<2)return null;let o={};[t.style].filter(Boolean).forEach(t=>{nm(t||"").forEach(({property:t,value:e})=>{((t,e)=>{switch(t){case c.STROKE:nQ(e)&&(o.strokeColor=nf(e));break;case c.STROKE_WIDTH:{let t=parseFloat(nf(e));Number.isFinite(t)&&t>0&&(o.strokeWidth=t);break}case c.STROKE_DASHARRAY:nf(e)&&(o.strokeStyle="dashed")}})(t,e)})});let s="none"===t.arrowhead||t.classes?.includes("note-edge");return{id:t.id,start:t.start,end:t.end,text:j(t.label||""),...i,strokeColor:o.strokeColor,strokeWidth:o.strokeWidth,strokeStyle:s?"dashed":o.strokeStyle,isNoteEdge:s}})(t,e)).filter(t=>null!==t)}})(o.db,u);break;default:e=n4(u)}}catch(t){console.error("Error processing Mermaid diagram:",t),e=n4(u)}return e}finally{u.remove()}}),at=async(t,e)=>{let r=e||{},n=parseInt(r.themeVariables?.fontSize??"")||20;return((t,e={})=>(t=>({...t,elements:t.elements.map(t=>{if(!("points"in t)||!Array.isArray(t.points))return t;let e=t.points;if(e.length<2)return t;let r=Y(e);return r.length===e.length?t:{...t,points:r}})}))((()=>{switch(t.type){case"graphImage":return x.convert(t,e);case"flowchart":return y.convert(t,e);case"sequence":return E.convert(t,e);case"class":return T.convert(t,e);case"erd":return O.convert(t,e);case"state":return P.convert(t,e);default:throw Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}})()))(await n7(t,{...r,themeVariables:{...r.themeVariables}}),{fontSize:n})}},89929:(t,e,r)=>{"use strict";r.d(e,{Nq:()=>o,RI:()=>c,Wg:()=>a,hq:()=>i});var n=r(89959),a=(0,n.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),i={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},o={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function s(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=l(t),e=l(e);let[r,n]=[t.x,t.y],[a,i]=[e.x,e.y],o=a-r,s=i-n;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,n.K)(s,"calculateDeltaAndAngle");var l=(0,n.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),c=(0,n.K)(t=>({x:(0,n.K)(function(e,r,n){let a=0,o=l(n[0]).x<l(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(i,t.arrowTypeStart)){let{angle:e,deltaX:r}=s(n[0],n[1]);a=i[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(i,t.arrowTypeEnd)){let{angle:e,deltaX:r}=s(n[n.length-1],n[n.length-2]);a=i[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let c=Math.abs(l(e).x-l(n[n.length-1]).x),u=Math.abs(l(e).y-l(n[n.length-1]).y),h=Math.abs(l(e).x-l(n[0]).x),d=Math.abs(l(e).y-l(n[0]).y),p=i[t.arrowTypeStart],f=i[t.arrowTypeEnd];if(c<f&&c>0&&u<f){let t=f+1-c;t*="right"===o?-1:1,a-=t}if(h<p&&h>0&&d<p){let t=p+1-h;t*="right"===o?-1:1,a+=t}return l(e).x+a},"x"),y:(0,n.K)(function(e,r,n){let a=0,o=l(n[0]).y<l(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(i,t.arrowTypeStart)){let{angle:e,deltaY:r}=s(n[0],n[1]);a=i[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(i,t.arrowTypeEnd)){let{angle:e,deltaY:r}=s(n[n.length-1],n[n.length-2]);a=i[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let c=Math.abs(l(e).y-l(n[n.length-1]).y),u=Math.abs(l(e).x-l(n[n.length-1]).x),h=Math.abs(l(e).y-l(n[0]).y),d=Math.abs(l(e).x-l(n[0]).x),p=i[t.arrowTypeStart],f=i[t.arrowTypeEnd];if(c<f&&c>0&&u<f){let t=f+1-c;t*="up"===o?-1:1,a-=t}if(h<p&&h>0&&d<p){let t=p+1-h;t*="up"===o?-1:1,a+=t}return l(e).y+a},"y")}),"getLineFunctionsWithOffset")},89959:(t,e,r)=>{"use strict";r.d(e,{K:()=>a,V:()=>i});var n=Object.defineProperty,a=(t,e)=>n(t,"name",{value:e,configurable:!0}),i=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},90141:(t,e,r)=>{"use strict";r.d(e,{Y:()=>a,Z:()=>i});var n=r(18319);let a={};for(let t=0;t<=255;t++)a[t]=n.A.unit.dec2hex(t);let i={ALL:0,RGB:1,HSL:2}},93221:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,a]=e,i=Math.PI/180*r,o=Math.cos(i),s=Math.sin(i);for(let e of t){let[t,r]=e;e[0]=(t-n)*o-(r-a)*s+n,e[1]=(t-n)*s+(r-a)*o+a}}}function a(t,e){var r;let a=e.hachureAngle+90,i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=i),function(t,e,r,a=1){let i=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)n(t,s,r);let l=function(t,e,r){let n=[];for(let e of t){var a,i;let t=[...e];a=t[0],i=t[t.length-1],a[0]===i[0]&&a[1]===i[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of n)for(let e=0;e<t.length-1;e++){let r=t[e],n=t[e+1];if(r[1]!==n[1]){let t=Math.min(r[1],n[1]);s.push({ymin:t,ymax:Math.max(r[1],n[1]),x:t===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],c=s[0].ymin,u=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>c);e++)t=e;
73s.splice(0,t+1).forEach(t=>{l.push({s:c,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=c))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||u%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,n=l[e].edge;o.push([[Math.round(r.x),c],[Math.round(n.x),c]])}c+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),u++}return o}(o,i,a);if(r){for(let t of o)n(t,s,-r);let t=[];l.forEach(e=>t.push(...e)),n(t,s,-r)}return l}(t,i,a,o||1)}r.d(e,{A:()=>G});class i{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=a(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends i{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=a(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),i=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(i),c=.5*r*Math.sin(i);for(let[t,e]of n)o([t,e])&&s.push([[t[0]-l,t[1]+c],[...e]],[[t[0]+l,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends i{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(t,n);return r.ops=r.ops.concat(a.ops),r}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=a(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);let i=n/4;for(let s of t){let t=o(s),l=Math.ceil(t/n)-1,c=t-l*n,u=(s[0][0]+s[1][0])/2-n/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let o=u-i+2*Math.random()*i,s=h+c+t*n-i+2*Math.random()*i,l=this.helper.ellipse(o,s,a,a,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=a(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,a=[];return t.forEach(t=>{let i=o(t),s=Math.floor(i/(r+n)),l=(i+n-s*(r+n))/2,c=t[0],u=t[1];c[0]>u[0]&&(c=t[1],u=t[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let t=0;t<s;t++){let i=t*(r+n),o=i+r,s=[c[0]+i*Math.cos(h)+l*Math.cos(h),c[1]+i*Math.sin(h)+l*Math.sin(h)],u=[c[0]+o*Math.cos(h)+l*Math.cos(h),c[1]+o*Math.sin(h)+l*Math.sin(h)];a.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],e))}}),a}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,i=a(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(i,n,e)}}zigzagLines(t,e,r){let n=[];return t.forEach(t=>{let a=Math.round(o(t)/(2*e)),i=t[0],s=t[1];i[0]>s[0]&&(i=t[1],s=t[0]);let l=Math.atan((s[1]-i[1])/(s[0]-i[0]));for(let t=0;t<a;t++){let a=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),c=[i[0]+a*Math.cos(l),i[1]+a*Math.sin(l)],u=[i[0]+o*Math.cos(l),i[1]+o*Math.sin(l)],h=[c[0]+s*Math.cos(l+Math.PI/4),c[1]+s*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(c[0],c[1],h[0],h[1],r),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],r))}}),n}}let d={};class p{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let f={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),n="BOD",a=0,i=r[0];for(;
732!==i.type;){let o=0,s=[];if("BOD"===n){if("M"!==i.text&&"m"!==i.text)return g("M0,0"+t);a++,o=f[i.text],n=i.text}else 1===i.type?o=f[n]:(a++,o=f[i.text],n=i.text);if(!(a+o<r.length))throw Error("Path data ended short");for(let t=a;t<a+o;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+n+","+e.text);s[s.length]=+e.text}if("number"!=typeof f[n])throw Error("Bad segment: "+n);{let t={key:n,data:s};e.push(t),a+=o,i=r[a],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function m(t){let e=0,r=0,n=0,a=0,i=[];for(let{key:o,data:s}of t)switch(o){case"M":i.push({key:"M",data:[...s]}),[e,r]=s,[n,a]=s;break;case"m":e+=s[0],r+=s[1],i.push({key:"M",data:[e,r]}),n=e,a=r;break;case"L":i.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],i.push({key:"L",data:[e,r]});break;case"C":i.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,n)=>n%2?t+r:t+e);i.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":i.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,n)=>n%2?t+r:t+e);i.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":i.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],i.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":i.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],i.push({key:"H",data:[e]});break;case"V":i.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],i.push({key:"V",data:[r]});break;case"S":i.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,n)=>n%2?t+r:t+e);i.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":i.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],i.push({key:"T",data:[e,r]});break;case"Z":case"z":i.push({key:"Z",data:[]}),e=n,r=a}return i}function y(t){let e=[],r="",n=0,a=0,i=0,o=0,s=0,l=0;for(let{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,a]=u,[i,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],a=u[5],s=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,a]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,a]});break;case"V":a=u[0],e.push({key:"L",data:[n,a]});break;case"S":{let t=0,i=0;"C"===r||"S"===r?(t=n+(n-s),i=a+(a-l)):(t=n,i=a),e.push({key:"C",data:[t,i,...u]}),s=u[0],l=u[1],n=u[2],a=u[3];break}case"T":{let[t,i]=u,o=0,c=0;"Q"===r||"T"===r?(o=n+(n-s),c=a+(a-l)):(o=n,c=a);let h=n+2*(o-n)/3,d=a+2*(c-a)/3,p=t+2*(o-t)/3,f=i+2*(c-i)/3;e.push({key:"C",data:[h,d,p,f,t,i]}),s=o,l=c,n=t,a=i;break}case"Q":{let[t,r,i,o]=u,c=n+2*(t-n)/3,h=a+2*(r-a)/3,d=i+2*(t-i)/3,p=o+2*(r-o)/3;e.push({key:"C",data:[c,h,d,p,i,o]}),s=t,l=r,n=i,a=o;break}case"A":{let t=Math.abs(u[0]),r=Math.abs(u[1]),i=u[2],o=u[3],s=u[4],l=u[5],c=u[6];0===t||0===r?(e.push({key:"C",data:[n,a,l,c,l,c]}),n=l,a=c):(n!==l||a!==c)&&((function t(e,r,n,a,i,o,s,l,c,u){let h=Math.PI*s/180,d=[],p=0,f=0,g=0,m=0;if(u)[p,f,g,m]=u;else{[e,r]=b(e,r,-h),[n,a]=b(n,a,-h);let t=(e-n)/2,s=(r-a)/2,u=t*t/(i*i)+s*s/(o*o);u>1&&(i*=u=Math.sqrt(u),o*=u);let d=i*i,y=o*o,x=(l===c?-1:1)*Math.sqrt(Math.abs((d*y-d*s*s-y*t*t)/(d*s*s+y*t*t)));g=x*i*s/o+(e+n)/2,m=-(x*o)*t/i+(r+a)/2,p=Math.asin(parseFloat(((r-m)/o).toFixed(9))),f=Math.asin(parseFloat(((a-m)/o).toFixed(9))),e<g&&(p=Math.PI-p),n<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),c&&p>f&&(p-=2*Math.PI),!c&&f>p&&(f-=2*Math.PI)}let y=f-p;if(Math.abs(y)>120*Math.PI/180){let e=f,r=n,l=a;d=t(n=g+i*Math.cos(f=c&&f>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),a=m+o*Math.sin(f),r,l,i,o,s,0,c,[f,e,g,m])}y=f-p;let x=Math.cos(p),k=Math.cos(f),w=Math.tan(y/4),_=4/3*i*w,v=4/3*o*w,A=[e,r],S=[e+_*Math.sin(p),r-v*x],M=[n+_*Math.sin(f),a-v*k],E=[n,a];if(S[0]=2*A[0]-S[0],S[1]=2*A[1]-S[1],u)return[S,M,E].concat(d);{d=[S,M,E].concat(d);let t=[];for(let e=0;e<d.length;e+=3){let r=b(d[e][0],d[e][1],h),n=b(d[e+1][0],d[e+1][1],h),a=b(d[e+2][0],d[e+2][1],h);t.push([r[0],r[1],n[0],n[1],a[0],a[1]])}return t}})(n,a,l,c,t,r,i,o,s).forEach(function(t){e.push({key:"C",data:t})}),n=l,a=c);break}case"Z":e.push({key:"Z",data:[]}),n=i,a=o}r=c}return e}function b(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={randOffset:function(t,e){return $(t,e)},randOffsetWithRange:function(t,e,r){return C(t,e,r)},ellipse:function(t,e,r,n,a){let i=v(r,n,a);return A(t,e,a,i).opset},doubleLineOps:function(t,e,r,n,a){return R(t,e,r,n,a,!0)}};function k(t,e,r,n,a){return{type:"path",ops:R(t,e,r,n,a)}}function w(t,e,r){let n=(t||[]).length;if(n>2){let a=[];for(let e=0;e<n-1;
vendor: 4,868 bytes, line 73
73e++)a.push(...R(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&a.push(...R(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:a}}return 2===n?k(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,n=I(r[0],+(1+.2*e.roughness),e),a=e.disableMultiStroke?[]:I(r[0],1.5*(1+.22*e.roughness),O(e));for(let t=1;t<r.length;t++){let i=r[t];if(i.length){let t=I(i,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:I(i,1.5*(1+.22*e.roughness),O(e));for(let e of t)"move"!==e.op&&n.push(e);for(let t of r)"move"!==t.op&&a.push(t)}}return{type:"path",ops:n.concat(a)}}return{type:"path",ops:[]}}function v(t,e,r){let n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),a=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),i=Math.abs(t/2),o=Math.abs(e/2),s=1-r.curveFitting;return i+=$(i*s,r),o+=$(o*s,r),{increment:a,rx:i,ry:o}}function A(t,e,r,n){let[a,i]=D(n.increment,t,e,n.rx,n.ry,1,n.increment*C(.1,C(.4,1,r),r),r),o=K(a,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[a]=D(n.increment,t,e,n.rx,n.ry,1.5,0,r),i=K(a,null,r);o=o.concat(i)}return{estimatedPoints:i,opset:{type:"path",ops:o}}}function S(t,e,r,n,a,i,o,s,l){let c=Math.abs(r/2),u=Math.abs(n/2);c+=$(.01*c,l),u+=$(.01*u,l);let h=a,d=i;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(d-h)/2),f=P(p,t,e,c,u,h,d,1,l);if(!l.disableMultiStroke){let r=P(p,t,e,c,u,h,d,1.5,l);f.push(...r)}return o&&(s?f.push(...R(t,e,t+c*Math.cos(h),e+u*Math.sin(h),l),...R(t,e,t+c*Math.cos(d),e+u*Math.sin(d),l)):f.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+c*Math.cos(h),e+u*Math.sin(h)]})),{type:"path",ops:f}}function M(t,e){let r=y(m(g(t))),n=[],a=[0,0],i=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":i=[o[0],o[1]],a=[o[0],o[1]];break;case"L":n.push(...R(i[0],i[1],o[0],o[1],e)),i=[o[0],o[1]];break;case"C":{let[t,r,a,s,l,c]=o;n.push(...function(t,e,r,n,a,i,o,s){let l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],h=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(d?0:$(c[0],s)),o[1]+(d?0:$(c[0],s))]}),u=d?[a,i]:[a+$(c[p],s),i+$(c[p],s)],l.push({op:"bcurveTo",data:[t+$(c[p],s),e+$(c[p],s),r+$(c[p],s),n+$(c[p],s),u[0],u[1]]});return l}(t,r,a,s,l,c,i,e)),i=[l,c];break}case"Z":n.push(...R(i[0],i[1],a[0],a[1],e)),i=[a[0],a[1]]}return{type:"path",ops:n}}function E(t,e){let r=[];for(let n of t)if(n.length){let t=e.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+$(t,e),n[0][1]+$(t,e)]});for(let i=1;i<a;i++)r.push({op:"lineTo",data:[n[i][0]+$(t,e),n[i][1]+$(t,e)]})}}return{type:"fillPath",ops:r}}function T(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!d[r])switch(r){case"zigzag":d[r]||(d[r]=new s(e));break;case"cross-hatch":d[r]||(d[r]=new l(e));break;case"dots":d[r]||(d[r]=new c(e));break;case"dashed":d[r]||(d[r]=new u(e));break;case"zigzag-line":d[r]||(d[r]=new h(e));break;default:d[r="hachure"]||(d[r]=new i(e))}return d[r]})(e,x).fillPolygons(t,e)}function O(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function L(t){return t.randomizer||(t.randomizer=new p(t.seed||0)),t.randomizer.next()}function C(t,e,r,n=1){return r.roughness*n*(L(r)*(e-t)+t)}function $(t,e,r=1){return C(-t,t,e,r)}function R(t,e,r,n,a,i=!1){let o=i?a.disableMultiStrokeFill:a.disableMultiStroke,s=N(t,e,r,n,a,!0,!1);if(o)return s;let l=N(t,e,r,n,a,!0,!0);return s.concat(l)}function N(t,e,r,n,a,i,o){let s=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(s),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=a.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);let h=u/2,d=.2+.2*L(a),p=a.bowing*a.maxRandomnessOffset*(n-e)/200,f=a.bowing*a.maxRandomnessOffset*(t-r)/200;p=$(p,a,c),f=$(f,a,c);let g=[],m=()=>$(h,a,c),y=()=>$(u,a,c),b=a.preserveVertices;return i&&(o?g.push({op:"move",data:[t+(b?0:m()),e+(b?0:m())]}):g.push({op:"move",data:[t+(b?0:$(u,a,c)),e+(b?0:$(u,a,c))]})),o?g.push({op:"bcurveTo",data:[p+t+(r-t)*d+m(),f+e+(n-e)*d+m(),p+t+2*(r-t)*d+m(),f+e+2*(n-e)*d+m(),r+(b?0:m()),n+(b?0:m())]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*d+y(),f+e+(n-e)*d+y(),p+t+2*(r-t)*d+y(),f+e+2*(n-e)*d+y(),r+(b?0:y()),n+(b?0:y())]}),g}function I(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+$(e,r),t[0][1]+$(e,r)]),n.push([t[0][0]+$(e,r),t[0][1]+$(e,r)]);for(let a=1;a<t.length;a++)n.push([t[a][0]+$(e,r),t[a][1]+$(e,r)]),a===t.length-1&&n.push([t[a][0]+$(e,r),t[a][1]+$(e,r)]);return K(n,null,r)}function K(t,e,r){let n=t.length,a=[];if(n>3){let i=[],o=1-r.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){let r=t[e];i[0]=[r[0],r[1]],i[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],i[2]=[t[e+1][
730]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],i[3]=[t[e+1][0],t[e+1][1]],a.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;a.push({op:"lineTo",data:[e[0]+$(t,r),e[1]+$(t,r)]})}}else 3===n?(a.push({op:"move",data:[t[1][0],t[1][1]]}),a.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&a.push(...N(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return a}function D(t,e,r,n,a,i,o,s){let l=[],c=[];if(0===s.roughness){t/=4,c.push([e+n*Math.cos(-t),r+a*Math.sin(-t)]);for(let i=0;i<=2*Math.PI;i+=t){let t=[e+n*Math.cos(i),r+a*Math.sin(i)];l.push(t),c.push(t)}c.push([e+ +n,r+0*a]),c.push([e+n*Math.cos(t),r+a*Math.sin(t)])}else{let u=$(.5,s)-Math.PI/2;c.push([$(i,s)+e+.9*n*Math.cos(u-t),$(i,s)+r+.9*a*Math.sin(u-t)]);let h=2*Math.PI+u-.01;for(let o=u;o<h;o+=t){let t=[$(i,s)+e+n*Math.cos(o),$(i,s)+r+a*Math.sin(o)];l.push(t),c.push(t)}c.push([$(i,s)+e+n*Math.cos(u+2*Math.PI+.5*o),$(i,s)+r+a*Math.sin(u+2*Math.PI+.5*o)]),c.push([$(i,s)+e+.98*n*Math.cos(u+o),$(i,s)+r+.98*a*Math.sin(u+o)]),c.push([$(i,s)+e+.9*n*Math.cos(u+.5*o),$(i,s)+r+.9*a*Math.sin(u+.5*o)])}return[c,l]}function P(t,e,r,n,a,i,o,s,l){let c=i+$(.1,l),u=[];u.push([$(s,l)+e+.9*n*Math.cos(c-t),$(s,l)+r+.9*a*Math.sin(c-t)]);for(let i=c;i<=o;i+=t)u.push([$(s,l)+e+n*Math.cos(i),$(s,l)+r+a*Math.sin(i)]);return u.push([e+n*Math.cos(o),r+a*Math.sin(o)]),u.push([e+n*Math.cos(o),r+a*Math.sin(o)]),K(u,null,l)}function j(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let a=[],i=1-e;n.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];a[0]=[e[0],e[1]],a[1]=[e[0]+(i*r[t+1][0]-i*r[t-1][0])/6,e[1]+(i*r[t+1][1]-i*r[t-1][1])/6],a[2]=[r[t+1][0]+(i*r[t][0]-i*r[t+2][0])/6,r[t+1][1]+(i*r[t][1]-i*r[t+2][1])/6],a[3]=[r[t+1][0],r[t+1][1]],n.push(a[1],a[2],a[3])}}return n}function z(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function F(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function B(t,e,r,n,a){let i=a||[],o=t[e],s=t[r-1],l=0,c=1;for(let n=e+1;n<r-1;++n){let e=function(t,e,r){let n=z(e,r);if(0===n)return z(t,e);let a=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return z(t,F(e,r,a=Math.max(0,Math.min(1,a))))}(t[n],o,s);e>l&&(l=e,c=n)}return Math.sqrt(l)>n?(B(t,e,c+1,n,i),B(t,c,r,n,i)):(i.length||i.push(o),i.push(s)),i}function Y(t,e=.15,r){let n=[],a=(t.length-1)/3;for(let r=0;r<a;r++)!function t(e,r,n,a){let i=a||[];if(function(t,e){let r=t[e+0],n=t[e+1],a=t[e+2],i=t[e+3],o=3*n[0]-2*r[0]-i[0];o*=o;let s=3*n[1]-2*r[1]-i[1];s*=s;let l=3*a[0]-2*i[0]-r[0];l*=l;let c=3*a[1]-2*i[1]-r[1];return c*=c,o<l&&(o=l),s<c&&(s=c),o+s}(e,r)<n){let t=e[r+0];i.length?Math.sqrt(z(i[i.length-1],t))>1&&i.push(t):i.push(t),i.push(e[r+3])}else{let a=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],c=F(a,o,.5),u=F(o,s,.5),h=F(s,l,.5),d=F(c,u,.5),p=F(u,h,.5),f=F(d,p,.5);t([a,c,d,f],0,n,i),t([f,p,h,l],0,n,i)}return i}(t,3*r,e,n);return r&&r>0?B(n,0,n.length,r):n}let W="none";class U{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,a){let i=this._o(a);return this._d("line",[k(t,e,r,n,i)],i)}rectangle(t,e,r,n,a){var i,o,s,l;let c=this._o(a),u=[],h=w([[i=t,o=e],[i+(s=r),o],[i+s,o+(l=n)],[i,o+l]],!0,c);if(c.fill){let a=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===c.fillStyle?u.push(E([a],c)):u.push(T([a],c))}return c.stroke!==W&&u.push(h),this._d("rectangle",u,c)}ellipse(t,e,r,n,a){let i=this._o(a),o=[],s=v(r,n,i),l=A(t,e,i,s);if(i.fill)if("solid"===i.fillStyle){let r=A(t,e,i,s).opset;r.type="fillPath",o.push(r)}else o.push(T([l.estimatedPoints],i));return i.stroke!==W&&o.push(l.opset),this._d("ellipse",o,i)}circle(t,e,r,n){let a=this.ellipse(t,e,r,r,n);return a.shape="circle",a}linearPath(t,e){let r=this._o(e);
73return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,a,i,o=!1,s){let l=this._o(s),c=[],u=S(t,e,r,n,a,i,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=S(t,e,r,n,a,i,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,n,a,i,o){let s=Math.abs(r/2),l=Math.abs(n/2);s+=$(.01*s,o),l+=$(.01*l,o);let c=a,u=i;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/o.curveStepCount,d=[];for(let r=c;r<=u;r+=h)d.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return d.push([t+s*Math.cos(u),e+l*Math.sin(u)]),d.push([t,e]),T([d],o)}(t,e,r,n,a,i,l));return l.stroke!==W&&c.push(u),this._d("arc",c,l)}curve(t,e){let r=this._o(e),n=[],a=_(t,r);if(r.fill&&r.fill!==W)if("solid"===r.fillStyle){let e=_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...Y(j([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...Y(j(n),10,(1+r.roughness)/2));e.length&&n.push(T([e],r))}return r.stroke!==W&&n.push(a),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],a=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(E([t],r)):n.push(T([t],r))),r.stroke!==W&&n.push(a),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=r.fill&&"transparent"!==r.fill&&r.fill!==W,i=r.stroke!==W,o=!!(r.simplification&&r.simplification<1),s=function(t,e,r){let n=y(m(g(t))),a=[],i=[],o=[0,0],s=[],l=()=>{s.length>=4&&i.push(...Y(s,1)),s=[]},c=()=>{l(),i.length&&(a.push(i),i=[])};for(let{key:t,data:e}of n)switch(t){case"M":c(),o=[e[0],e[1]],i.push(o);break;case"L":l(),i.push([e[0],e[1]]);break;case"C":if(!s.length){let t=i.length?i[i.length-1]:o;s.push([t[0],t[1]])}s.push([e[0],e[1]]),s.push([e[2],e[3]]),s.push([e[4],e[5]]);break;case"Z":l(),i.push([o[0],o[1]])}if(c(),!r)return a;let u=[];for(let t of a){let e=B(t,0,t.length,r);e.length&&u.push(e)}return u}(t,0,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=M(t,r);if(a)if("solid"===r.fillStyle)if(1===s.length){let e=M(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(E(s,r));else n.push(T(s,r));return i&&(o?s.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:W};break;case"fillPath":e={d:this.opsToPath(t),stroke:W,strokeWidth:0,fill:r.fill||W};break;case"fillSketch":e=this.fillSketch(t,r)}e&&n.push(e)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||W,strokeWidth:r,fill:W}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class q{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new U(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(let i of e)switch(i.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,i,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,i,a,e),n.restore();break}case"fillSketch":this.fillSketch(n,i,r)}}fillSketch(t,e,r){let n=r.fillWeight;
73n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,a){let i=this.gen.line(t,e,r,n,a);return this.draw(i),i}rectangle(t,e,r,n,a){let i=this.gen.rectangle(t,e,r,n,a);return this.draw(i),i}ellipse(t,e,r,n,a){let i=this.gen.ellipse(t,e,r,n,a);return this.draw(i),i}circle(t,e,r,n){let a=this.gen.circle(t,e,r,n);return this.draw(a),a}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,a,i,o=!1,s){let l=this.gen.arc(t,e,r,n,a,i,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let H="http://www.w3.org/2000/svg";class X{constructor(t,e){this.svg=t,this.gen=new U(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(H,"g"),i=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=n.createElementNS(H,"path")).setAttribute("d",this.opsToPath(o,i)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=n.createElementNS(H,"path")).setAttribute("d",this.opsToPath(o,i)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&a.appendChild(e)}return a}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let a=t.createElementNS(H,"path");return a.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),a.setAttribute("stroke",r.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),r.fillLineDash&&a.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,a){let i=this.gen.line(t,e,r,n,a);return this.draw(i)}rectangle(t,e,r,n,a){let i=this.gen.rectangle(t,e,r,n,a);return this.draw(i)}ellipse(t,e,r,n,a){let i=this.gen.ellipse(t,e,r,n,a);return this.draw(i)}circle(t,e,r,n){let a=this.gen.circle(t,e,r,n);return this.draw(a)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,a,i,o=!1,s){let l=this.gen.arc(t,e,r,n,a,i,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var G={canvas:(t,e)=>new q(t,e),svg:(t,e)=>new X(t,e),generator:t=>new U(t),newSeed:()=>U.newSeed()}},98536:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(18319),a=r(90141);class i{constructor(){this.type=a.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=a.Z.ALL}is(t){return this.type===t}}class o{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new i}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=a.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:a}=t;void 0===e&&(t.h=n.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.A.channel.rgb2hsl(t,"s")),void 0===a&&(t.l=n.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:a}=t;void 0===e&&(t.r=n.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.A.channel.hsl2rgb(t,"g")),void 0===a&&(t.b=n.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(a.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(a.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(a.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(a.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(a.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(a.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(a.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(a.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(a.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(a.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(a.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(a.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}let s=new o({r:0,g:0,b:0,a:0},"transparent")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.