mirror of https://github.com/jpanther/congo.git
1645 lines
2.9 MiB
JavaScript
1645 lines
2.9 MiB
JavaScript
|
(function(SL,X0){typeof exports=="object"&&typeof module<"u"?module.exports=X0():typeof define=="function"&&define.amd?define(X0):(SL=typeof globalThis<"u"?globalThis:SL||self,SL.mermaid=X0())})(this,function(){"use strict";function SL(i){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];var g=Array.from(typeof i=="string"?[i]:i);g[g.length-1]=g[g.length-1].replace(/\r?\n([\t ]*)$/,"");var w=g.reduce(function(E,_){var S=_.match(/\n([\t ]+|(?!\s).)/g);return S?E.concat(S.map(function(I){var B,F;return(F=(B=I.match(/[\t ]/g))===null||B===void 0?void 0:B.length)!==null&&F!==void 0?F:0})):E},[]);if(w.length){var v=new RegExp(`
|
|||
|
[ ]{`+Math.min.apply(Math,w)+"}","g");g=g.map(function(E){return E.replace(v,`
|
|||
|
`)})}g[0]=g[0].replace(/^\r?\n/,"");var b=g[0];return a.forEach(function(E,_){var S=b.match(/(?:^|\n)( *)$/),I=S?S[1]:"",B=E;typeof E=="string"&&E.includes(`
|
|||
|
`)&&(B=String(E).split(`
|
|||
|
`).map(function(F,R){return R===0?F:""+I+F}).join(`
|
|||
|
`)),b+=B+g[_+1]}),b}var X0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JT(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var oOt={exports:{}};(function(i,a){(function(f,g){i.exports=g()})(X0,function(){var f=1e3,g=6e4,w=36e5,v="millisecond",b="second",E="minute",_="hour",S="day",I="week",B="month",F="quarter",R="year",q="date",X="Invalid Date",rt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,at=/\[([^\]]+)]|Y{1,4}|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,ut={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(V){var Nt=["th","st","nd","rd"],Dt=V%100;return"["+V+(Nt[(Dt-20)%10]||Nt[Dt]||Nt[0])+"]"}},pt=function(V,Nt,Dt){var jt=String(V);return!jt||jt.length>=Nt?V:""+Array(Nt+1-jt.length).join(Dt)+V},yt={s:pt,z:function(V){var Nt=-V.utcOffset(),Dt=Math.abs(Nt),jt=Math.floor(Dt/60),Ct=Dt%60;return(Nt<=0?"+":"-")+pt(jt,2,"0")+":"+pt(Ct,2,"0")},m:function V(Nt,Dt){if(Nt.date()<Dt.date())return-V(Dt,Nt);var jt=12*(Dt.year()-Nt.year())+(Dt.month()-Nt.month()),Ct=Nt.clone().add(jt,B),Ft=Dt-Ct<0,_t=Nt.clone().add(jt+(Ft?-1:1),B);return+(-(jt+(Dt-Ct)/(Ft?Ct-_t:_t-Ct))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:B,y:R,w:I,d:S,D:q,h:_,m:E,s:b,ms:v,Q:F}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},mt="en",gt={};gt[mt]=ut;var ht=function(V){return V instanceof Y},bt=function V(Nt,Dt,jt){var Ct;if(!Nt)return mt;if(typeof Nt=="string"){var Ft=Nt.toLowerCase();gt[Ft]&&(Ct=Ft),Dt&&(gt[Ft]=Dt,Ct=Ft);var _t=Nt.split("-");if(!Ct&&_t.length>1)return V(_t[0])}else{var xt=Nt.name;gt[xt]=Nt,Ct=xt}return!jt&&Ct&&(mt=Ct),Ct||!jt&&mt},Z=function(V,Nt){if(ht(V))return V.clone();var Dt=typeof Nt=="object"?Nt:{};return Dt.date=V,Dt.args=arguments,new Y(Dt)},ft=yt;ft.l=bt,ft.i=ht,ft.w=function(V,Nt){return Z(V,{locale:Nt.$L,utc:Nt.$u,x:Nt.$x,$offset:Nt.$offset})};var Y=function(){function V(Dt){this.$L=bt(Dt.locale,null,!0),this.parse(Dt)}var Nt=V.prototype;return Nt.parse=function(Dt){this.$d=function(jt){var Ct=jt.date,Ft=jt.utc;if(Ct===null)return new Date(NaN);if(ft.u(Ct))return new Date;if(Ct instanceof Date)return new Date(Ct);if(typeof Ct=="string"&&!/Z$/i.test(Ct)){var _t=Ct.match(rt);if(_t){var xt=_t[2]-1||0,Gt=(_t[7]||"0").substring(0,3);return Ft?new Date(Date.UTC(_t[1],xt,_t[3]||1,_t[4]||0,_t[5]||0,_t[6]||0,Gt)):new Date(_t[1],xt,_t[3]||1,_t[4]||0,_t[5]||0,_t[6]||0,Gt)}}return new Date(Ct)}(Dt),this.$x=Dt.x||{},this.init()},Nt.init=function(){var Dt=this.$d;this.$y=Dt.getFullYear(),this.$M=Dt.getMonth(),this.$D=Dt.getDate(),this.$W=Dt.getDay(),this.$H=Dt.getHours(),this.$m=Dt.getMinutes(),this.$s=Dt.getSeconds(),this.$ms=Dt.getMilliseconds()},Nt.$utils=function(){return ft},Nt.isValid=function(){return this.$d.toString()!==X},Nt.isSame=function(Dt,jt){var Ct=Z(Dt);return this.startOf(jt)<=Ct&&Ct<=this.endOf(jt)},Nt.isAfter=function(Dt,jt){return Z(Dt)<this.startOf(jt)},Nt.isBefore=function(Dt,jt){return this.endOf(jt)<Z(Dt)},Nt.$g=function(Dt,jt,Ct){return ft.u(Dt)?this[jt]:this.set(Ct,Dt)},Nt.unix=function(){return Math.floor(this.valueOf()/1e3)},Nt.valueOf=function(){return this.$d.getTime()},Nt.startOf=function(Dt,jt){var Ct=this,Ft=!!ft.u(jt)||jt,_t=ft.p(Dt),xt=function(sn,me){var Fe=ft.w(Ct.$u?Date.UTC(Ct.$y,me,sn):new Date(Ct.$y,me,sn),Ct);return Ft?Fe:Fe.endOf(S)},Gt=function(sn,me){return ft.w(Ct.toDate()[sn].apply(Ct.toDate("s"),(Ft?[0,0,0,0]:[23,59,59,999]).slice(me)),Ct)},Be=this.$W,Ot=this.$M,vn=this.$D,Pe="set"+(this.$u?"UTC":"");switch(_t){case R:return Ft?xt(1,0):xt(31,11);case B:return Ft?xt(1,Ot):xt(0,Ot+1);case I:var Ee=this.$locale().weekStart||0,nn=(Be<Ee?Be+7:Be)-Ee;return xt(Ft?vn-nn:vn+(6-nn),Ot);case S:case q:return Gt(Pe+"Hours",0);case _:return Gt(Pe+"Minutes",1);case E:return Gt(Pe+"Seconds",2);c
|
|||
|
`+Qc),Fe&&(Qc=qv(Qc,Y," "),Qc=qv(Qc,Et," "),Qc=qv(Qc,V," ")),pt&&Pr?pt.createHTML(Qc):Qc},a.setConfig=function(Yi){Ac(Yi),Ae=!0},a.clearConfig=function(){l1=null,Ae=!1},a.isValidAttribute=function(Yi,cn,Dr){l1||Ac({});const Si=ta(Yi),wc=ta(cn);return b0(Si,wc,Dr)},a.addHook=function(Yi,cn){typeof cn=="function"&&(ft[Yi]=ft[Yi]||[],fF(ft[Yi],cn))},a.removeHook=function(Yi){if(ft[Yi])return uNt(ft[Yi])},a.removeHooks=function(Yi){ft[Yi]&&(ft[Yi]=[])},a.removeAllHooks=function(){ft={}},a}var zL=wNt();const gF=/<br\s*\/?>/gi,OMe=i=>i?yNt(i).replace(/\\n/g,"#br#").split("#br#"):[""],mNt=i=>{const a="data-temp-href-target";zL.addHook("beforeSanitizeAttributes",g=>{g.tagName==="A"&&g.hasAttribute("target")&&g.setAttribute(a,g.getAttribute("target")||"")});const f=zL.sanitize(i);return zL.addHook("afterSanitizeAttributes",g=>{g.tagName==="A"&&g.hasAttribute(a)&&(g.setAttribute("target",g.getAttribute(a)||""),g.removeAttribute(a),g.getAttribute("target")==="_blank"&&g.setAttribute("rel","noopener"))}),f},vNt=(i,a)=>{var f;if(((f=a.flowchart)==null?void 0:f.htmlLabels)!==!1){const g=a.securityLevel;g==="antiscript"||g==="strict"?i=mNt(i):g!=="loose"&&(i=yNt(i),i=i.replace(/</g,"<").replace(/>/g,">"),i=i.replace(/=/g,"="),i=BMe(i))}return i},Ed=(i,a)=>i&&(a.dompurifyConfig?i=zL.sanitize(vNt(i,a),a.dompurifyConfig).toString():i=zL.sanitize(vNt(i,a),{FORBID_TAGS:["style"]}).toString(),i),PMe=(i,a)=>typeof i=="string"?Ed(i,a):i.flat().map(f=>Ed(f,a)),NMe=i=>gF.test(i),FMe=i=>i.split(gF),BMe=i=>i.replace(/#br#/g,"<br/>"),yNt=i=>i.replace(gF,"#br#"),RMe=i=>{let a="";return i&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replaceAll(/\(/g,"\\("),a=a.replaceAll(/\)/g,"\\)")),a},B1=i=>!(i===!1||["false","null","0"].includes(String(i).trim().toLowerCase())),jMe=function(...i){const a=i.filter(f=>!isNaN(f));return Math.max(...a)},$Me=function(...i){const a=i.filter(f=>!isNaN(f));return Math.min(...a)},pF=function(i){const a=i.split(/(,)/),f=[];for(let g=0;g<a.length;g++){let w=a[g];if(w===","&&g>0&&g+1<a.length){const v=a[g-1],b=a[g+1];zMe(v,b)&&(w=v+","+b,g++,f.pop())}f.push(qMe(w))}return f.join("")},igt=(i,a)=>Math.max(0,i.split(a).length-1),zMe=(i,a)=>{const f=igt(i,"~"),g=igt(a,"~");return f===1&&g===1},qMe=i=>{const a=igt(i,"~");let f=!1;if(a<=1)return i;a%2!==0&&i.startsWith("~")&&(i=i.substring(1),f=!0);const g=[...i];let w=g.indexOf("~"),v=g.lastIndexOf("~");for(;w!==-1&&v!==-1&&w!==v;)g[w]="<",g[v]=">",w=g.indexOf("~"),v=g.lastIndexOf("~");return f&&g.unshift("~"),g.join("")},ei={getRows:OMe,sanitizeText:Ed,sanitizeTextOrArray:PMe,hasBreaks:NMe,splitBreaks:FMe,lineBreakRegex:gF,removeScript:mNt,getUrl:RMe,evaluate:B1,getMax:jMe,getMin:$Me},RW={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:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const a=i/255;return i>.03928?Math.pow((a+.055)/1.055,2.4):a/12.92},hue2rgb:(i,a,f)=>(f<0&&(f+=1),f>1&&(f-=1),f<1/6?i+(a-i)*6*f:f<1/2?a:f<2/3?i+(a-i)*(2/3-f)*6:i),hsl2rgb:({h:i,s:a,l:f},g)=>{if(!a)return f*2.55;i/=360,a/=100,f/=100;const w=f<.5?f*(1+a):f+a-f*a,v=2*f-w;switch(g){case"r":return RW.hue2rgb(v,w,i+1/3)*255;case"g":return RW.hue2rgb(v,w,i)*255;case"b":return RW.hue2rgb(v,w,i-1/3)*255}},rgb2hsl:({r:i,g:a,b:f},g)=>{i/=255,a/=255,f/=255;const w=Math.max(i,a,f),v=Math.min(i,a,f),b=(w+v)/2;if(g==="l")return b*100;if(w===v)return 0;const E=w-v,_=b>.5?E/(2-w-v):E/(w+v);if(g==="s")return _*100;switch(w){case i:return((a-f)/E+(a<f?6:0))*60;case a:return((f-i)/E+2)*60;case f:return((i-a)/E+4)*60;default:return-1}}},La={channel:RW,lang:{clamp:(i,a,f)=>a>f?Math.min(a,Math.max(f,i)):Math.min(f,Math.max(a,i)),round:i=>Math.round(i*1e10)/1e10},unit:{dec2hex:i=>{const a=Math.round(i).toString(16);return a.length>1?a:`0${a}`}}},h8={};for(let i=0;i<=255;i++)h8[i]=La.unit.dec2hex(i);const eg={ALL:0,RGB:1,HSL:2};class HMe{constructor(){this.type=eg.ALL}get(){return this.type}set(a){if(
|
|||
|
`);for(const[f,{detector:g}]of Object.entries(HL))if(g(i,a))return f;throw new LNt(`No diagram type detected matching given configuration for text: ${i}`)},MNt=(...i)=>{for(const{id:a,detector:f,loader:g}of i)DNt(a,f,g)},DNt=(i,a,f)=>{HL[i]?Wt.error(`Detector with key ${i} already exists`):HL[i]={detector:a,loader:f},Wt.debug(`Detector with key ${i} added${f?" with loader":""}`)},cDe=i=>HL[i].loader,agt=(i,a,{depth:f=2,clobber:g=!1}={})=>{const w={depth:f,clobber:g};return Array.isArray(a)&&!Array.isArray(i)?(a.forEach(v=>agt(i,v,w)),i):Array.isArray(a)&&Array.isArray(i)?(a.forEach(v=>{i.includes(v)||i.push(v)}),i):i===void 0||f<=0?i!=null&&typeof i=="object"&&typeof a=="object"?Object.assign(i,a):a:(a!==void 0&&typeof i=="object"&&typeof a=="object"&&Object.keys(a).forEach(v=>{typeof a[v]=="object"&&(i[v]===void 0||typeof i[v]=="object")?(i[v]===void 0&&(i[v]=Array.isArray(a[v])?[]:{}),i[v]=agt(i[v],a[v],{depth:f-1,clobber:g})):(g||typeof i[v]!="object"&&typeof a[v]!="object")&&(i[v]=a[v])}),i)},Td=agt;var uDe=typeof global=="object"&&global&&global.Object===Object&&global;const INt=uDe;var lDe=typeof self=="object"&&self&&self.Object===Object&&self,hDe=INt||lDe||Function("return this")();const Vv=hDe;var fDe=Vv.Symbol;const Hw=fDe;var ONt=Object.prototype,dDe=ONt.hasOwnProperty,gDe=ONt.toString,mF=Hw?Hw.toStringTag:void 0;function pDe(i){var a=dDe.call(i,mF),f=i[mF];try{i[mF]=void 0;var g=!0}catch{}var w=gDe.call(i);return g&&(a?i[mF]=f:delete i[mF]),w}var bDe=Object.prototype,wDe=bDe.toString;function mDe(i){return wDe.call(i)}var vDe="[object Null]",yDe="[object Undefined]",PNt=Hw?Hw.toStringTag:void 0;function f9(i){return i==null?i===void 0?yDe:vDe:PNt&&PNt in Object(i)?pDe(i):mDe(i)}function v2(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}var xDe="[object AsyncFunction]",kDe="[object Function]",EDe="[object GeneratorFunction]",TDe="[object Proxy]";function VL(i){if(!v2(i))return!1;var a=f9(i);return a==kDe||a==EDe||a==xDe||a==TDe}var CDe=Vv["__core-js_shared__"];const ogt=CDe;var NNt=function(){var i=/[^.]+$/.exec(ogt&&ogt.keys&&ogt.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function _De(i){return!!NNt&&NNt in i}var SDe=Function.prototype,ADe=SDe.toString;function d9(i){if(i!=null){try{return ADe.call(i)}catch{}try{return i+""}catch{}}return""}var LDe=/[\\^$.*+?()[\]{}|]/g,MDe=/^\[object .+?Constructor\]$/,DDe=Function.prototype,IDe=Object.prototype,ODe=DDe.toString,PDe=IDe.hasOwnProperty,NDe=RegExp("^"+ODe.call(PDe).replace(LDe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FDe(i){if(!v2(i)||_De(i))return!1;var a=VL(i)?NDe:MDe;return a.test(d9(i))}function BDe(i,a){return i==null?void 0:i[a]}function g9(i,a){var f=BDe(i,a);return FDe(f)?f:void 0}var RDe=g9(Object,"create");const vF=RDe;function jDe(){this.__data__=vF?vF(null):{},this.size=0}function $De(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}var zDe="__lodash_hash_undefined__",qDe=Object.prototype,HDe=qDe.hasOwnProperty;function VDe(i){var a=this.__data__;if(vF){var f=a[i];return f===zDe?void 0:f}return HDe.call(a,i)?a[i]:void 0}var UDe=Object.prototype,GDe=UDe.hasOwnProperty;function KDe(i){var a=this.__data__;return vF?a[i]!==void 0:GDe.call(a,i)}var WDe="__lodash_hash_undefined__";function YDe(i,a){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=vF&&a===void 0?WDe:a,this}function p9(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var g=i[a];this.set(g[0],g[1])}}p9.prototype.clear=jDe,p9.prototype.delete=$De,p9.prototype.get=VDe,p9.prototype.has=KDe,p9.prototype.set=YDe;function XDe(){this.__data__=[],this.size=0}function UL(i,a){return i===a||i!==i&&a!==a}function WW(i,a){for(var f=i.length;f--;)if(UL(i[f][0],a))return f;return-1}var QDe=Array.prototype,JDe=QDe.splice;function ZDe(i){var a=this.__data__,f=WW(a,i);if(f<0)return!1;var g=a.length-1;return f==g?a.pop():JDe.call(a,f,1),--this.size,!0}function tIe(i){var a=this.__data__,f=WW(a,i);return f<0?void 0:a[f][1]}function eIe(i){return WW(this.__data__,i)>-1}function nIe(i,a){v
|
|||
|
`,"ig");i=i.trim().replace(f,"").replace(/'/gm,'"'),Wt.debug(`Detecting diagram directive${a!==null?" type:"+a:""} based on the text:${i}`);let g;const w=[];for(;(g=wF.exec(i))!==null;)if(g.index===wF.lastIndex&&wF.lastIndex++,g&&!a||a&&g[1]&&g[1].match(a)||a&&g[2]&&g[2].match(a)){const v=g[1]?g[1]:g[2],b=g[3]?g[3].trim():g[4]?JSON.parse(g[4].trim()):null;w.push({type:v,args:b})}return w.length===0?{type:i,args:null}:w.length===1?w[0]:w}catch(f){return Wt.error(`ERROR: ${f.message} - Unable to parse directive type: '${a}' based on the text: '${i}'`),{type:void 0,args:null}}},zOe=function(i){return i.replace(wF,"")},qOe=function(i,a){for(const[f,g]of a.entries())if(g.match(i))return f;return-1};function Vw(i,a){if(!i)return a;const f=`curve${i.charAt(0).toUpperCase()+i.slice(1)}`;return ROe[f]??a}function HOe(i,a){const f=i.trim();if(f)return a.securityLevel!=="loose"?c8(f):f}const VOe=(i,...a)=>{const f=i.split("."),g=f.length-1,w=f[g];let v=window;for(let b=0;b<g;b++)if(v=v[f[b]],!v){Wt.error(`Function name: ${i} not found in window`);return}v[w](...a)};function uFt(i,a){return!i||!a?0:Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2))}function UOe(i){let a,f=0;i.forEach(w=>{f+=uFt(w,a),a=w});const g=f/2;return pgt(i,g)}function GOe(i){return i.length===1?i[0]:UOe(i)}const lFt=(i,a=2)=>{const f=Math.pow(10,a);return Math.round(i*f)/f},pgt=(i,a)=>{let f,g=a;for(const w of i){if(f){const v=uFt(w,f);if(v<g)g-=v;else{const b=g/v;if(b<=0)return f;if(b>=1)return{x:w.x,y:w.y};if(b>0&&b<1)return{x:lFt((1-b)*f.x+b*w.x,5),y:lFt((1-b)*f.y+b*w.y,5)}}}f=w}throw new Error("Could not find a suitable point for the given distance")},KOe=(i,a,f)=>{Wt.info(`our points ${JSON.stringify(a)}`),a[0]!==f&&(a=a.reverse());const w=pgt(a,25),v=i?10:5,b=Math.atan2(a[0].y-w.y,a[0].x-w.x),E={x:0,y:0};return E.x=Math.sin(b)*v+(a[0].x+w.x)/2,E.y=-Math.cos(b)*v+(a[0].y+w.y)/2,E};function WOe(i,a,f){const g=structuredClone(f);Wt.info("our points",g),a!=="start_left"&&a!=="start_right"&&g.reverse();const w=25+i,v=pgt(g,w),b=10+i*.5,E=Math.atan2(g[0].y-v.y,g[0].x-v.x),_={x:0,y:0};return a==="start_left"?(_.x=Math.sin(E+Math.PI)*b+(g[0].x+v.x)/2,_.y=-Math.cos(E+Math.PI)*b+(g[0].y+v.y)/2):a==="end_right"?(_.x=Math.sin(E-Math.PI)*b+(g[0].x+v.x)/2-5,_.y=-Math.cos(E-Math.PI)*b+(g[0].y+v.y)/2-5):a==="end_left"?(_.x=Math.sin(E)*b+(g[0].x+v.x)/2-5,_.y=-Math.cos(E)*b+(g[0].y+v.y)/2-5):(_.x=Math.sin(E)*b+(g[0].x+v.x)/2,_.y=-Math.cos(E)*b+(g[0].y+v.y)/2),_}function Uw(i){let a="",f="";for(const g of i)g!==void 0&&(g.startsWith("color:")||g.startsWith("text-align:")?f=f+g+";":a=a+g+";");return{style:a,labelStyle:f}}let hFt=0;const fFt=()=>(hFt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+hFt);function YOe(i){let a="";const f="0123456789abcdef",g=f.length;for(let w=0;w<i;w++)a+=f.charAt(Math.floor(Math.random()*g));return a}const dFt=i=>YOe(i.length),XOe=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:""}},QOe=function(i,a){const f=a.text.replace(ei.lineBreakRegex," "),[,g]=QL(a.fontSize),w=i.append("text");w.attr("x",a.x),w.attr("y",a.y),w.style("text-anchor",a.anchor),w.style("font-family",a.fontFamily),w.style("font-size",g),w.style("font-weight",a.fontWeight),w.attr("fill",a.fill),a.class!==void 0&&w.attr("class",a.class);const v=w.append("tspan");return v.attr("x",a.x+a.textMargin*2),v.attr("fill",a.fill),v.text(f),w},gFt=GL((i,a,f)=>{if(!i||(f=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},f),ei.lineBreakRegex.test(i)))return i;const g=i.split(" "),w=[];let v="";return g.forEach((b,E)=>{const _=n4(`${b} `,f),S=n4(v,f);if(_>a){const{hyphenatedStrings:F,remainingWord:R}=JOe(b,a,"-",f);w.push(v,...F),v=R}else S+_>=a?(w.push(v),v=b):v=[v,b].filter(Boolean).join(" ");E+1===g.length&&w.push(v)}),w.filter(b=>b!=="").join(f.joinWith)},(i,a,f)=>`${i}${a}${f.fontSize}${f.fontWeight}${f.fontFamily}${f.joinWith}`),JOe=GL((i,a,f="-",g)=>{g=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},g);const w=[...i],v=[];let b="";return w.forEac
|
|||
|
font-family: ${f.fontFamily};
|
|||
|
font-size: ${f.fontSize};
|
|||
|
fill: ${f.textColor}
|
|||
|
}
|
|||
|
|
|||
|
/* Classes common for multiple diagrams */
|
|||
|
|
|||
|
& .error-icon {
|
|||
|
fill: ${f.errorBkgColor};
|
|||
|
}
|
|||
|
& .error-text {
|
|||
|
fill: ${f.errorTextColor};
|
|||
|
stroke: ${f.errorTextColor};
|
|||
|
}
|
|||
|
|
|||
|
& .edge-thickness-normal {
|
|||
|
stroke-width: 2px;
|
|||
|
}
|
|||
|
& .edge-thickness-thick {
|
|||
|
stroke-width: 3.5px
|
|||
|
}
|
|||
|
& .edge-pattern-solid {
|
|||
|
stroke-dasharray: 0;
|
|||
|
}
|
|||
|
|
|||
|
& .edge-pattern-dashed{
|
|||
|
stroke-dasharray: 3;
|
|||
|
}
|
|||
|
.edge-pattern-dotted {
|
|||
|
stroke-dasharray: 2;
|
|||
|
}
|
|||
|
|
|||
|
& .marker {
|
|||
|
fill: ${f.lineColor};
|
|||
|
stroke: ${f.lineColor};
|
|||
|
}
|
|||
|
& .marker.cross {
|
|||
|
stroke: ${f.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
& svg {
|
|||
|
font-family: ${f.fontFamily};
|
|||
|
font-size: ${f.fontSize};
|
|||
|
}
|
|||
|
|
|||
|
${g}
|
|||
|
|
|||
|
${a}
|
|||
|
`},VPe=(i,a)=>{a!==void 0&&(gY[i]=a)},UPe=HPe;let Cgt="",_gt="",Sgt="";const Agt=i=>Ed(i,h0()),Wg=()=>{Cgt="",Sgt="",_gt=""},ng=i=>{Cgt=Agt(i).replace(/^\s+/g,"")},Yg=()=>Cgt,Xg=i=>{Sgt=Agt(i).replace(/\n\s+/g,`
|
|||
|
`)},Qg=()=>Sgt,y2=i=>{_gt=Agt(i)},Jg=()=>_gt,WFt=Object.freeze(Object.defineProperty({__proto__:null,clear:Wg,getAccDescription:Qg,getAccTitle:Yg,getDiagramTitle:Jg,setAccDescription:Xg,setAccTitle:ng,setDiagramTitle:y2},Symbol.toStringTag,{value:"Module"})),GPe=Wt,KPe=s0t,Re=h0,WPe=SFt,YFt=tM,YPe=i=>Ed(i,Re()),XFt=g8,XPe=()=>WFt,pY={},bY=(i,a,f)=>{var g;if(pY[i])throw new Error(`Diagram ${i} already registered.`);pY[i]=a,f&&DNt(i,f),VPe(i,a.styles),(g=a.injectUtils)==null||g.call(a,GPe,KPe,Re,YPe,XFt,XPe(),()=>{})},Lgt=i=>{if(i in pY)return pY[i];throw new QPe(i)};class QPe extends Error{constructor(a){super(`Diagram ${a} not found.`)}}const wY=i=>{var w;const{securityLevel:a}=Re();let f=xr("body");if(a==="sandbox"){const b=((w=xr(`#i${i}`).node())==null?void 0:w.contentDocument)??document;f=xr(b.body)}return f.select(`#${i}`)},QFt={draw:(i,a,f)=>{Wt.debug(`renering svg for syntax error
|
|||
|
`);const g=wY(a);g.attr("viewBox","0 0 2412 512"),Kg(g,100,512,!0);const w=g.append("g");w.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"),w.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"),w.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"),w.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),w.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"),w.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"),w.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"),w.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${f}`)}},JPe=QFt,ZPe={db:{},renderer:QFt,parser:{parser:{yy:{}},parse:()=>{}}},JFt="flowchart-elk",tNe={id:JFt,detector:(i,a)=>{var f;return!!(/^\s*flowchart-elk/.test(i)||/^\s*flowchart|graph/.test(i)&&((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="elk")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>ctn);return{id:JFt,diagram:i}}},ZFt="timeline",eNe={id:ZFt,detector:i=>/^\s*timeline/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Stn);return{id:ZFt,diagram:i}}},tBt="mindmap",nNe={id:tBt,detector:i=>/^\s*mindmap/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>ren);return{id:tBt,diagram:i}}},eBt="sankey",rNe={id:eBt,detector:i=>/^\s*sankey-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Oen);return{id:eBt,diagram:i}}};let nBt=!1;const Mgt=()=>{nBt||(nBt=!0,bY("error",ZPe,i=>i.toLowerCase().trim()==="error"),bY("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new 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")}},init:()=>null},i=>i.toLowerCase().trimStart().startsWith("---")),MNt(TPe,BPe,FPe,SPe,LPe,MPe,DPe,PPe,NPe,tNe,_Pe,CPe,nNe,eNe,APe,jPe,RPe,$Pe,IPe,rNe,OPe))};class rBt{constructor(a,f={}){this.text=a,this.metadata=f,this.type="graph",this.text=nPe(a),this.text+=`
|
|||
|
`;const g=h0();try{this.type=KW(a,g)}catch(v){this.type="error",this.detectError=v}const w=Lgt(this.type);Wt.debug("Type "+this.type),this.db=w.db,this.renderer=w.renderer,this.parser=w.parser,this.parser.parser.yy=this.db,this.init=w.init,this.parse()}parse(){var f,g,w,v,b;if(this.detectError)throw this.detectError;(g=(f=this.db).clear)==null||g.call(f);const a=h0();(w=this.init)==null||w.call(this,a),this.metadata.title&&((b=(v=this.db).setDiagramTitle)==null||b.call(v,this.metadata.title)),this.parser.parse(this.text)}async render(a,f){await this.renderer.draw(this.text,a,f,this)}getParser(){return this.parser}getType(){return this.type}}const iNe=async(i,a={})=>{const f=KW(i,h0());try{Lgt(f)}catch{const w=cDe(f);if(!w)throw new LNt(`Diagram ${f} not found.`);const{id:v,diagram:b}=await w();bY(v,b)}return new rBt(i,a)};let Dgt=[];const sNe=i=>{Dgt.push(i)},aNe=()=>{Dgt.forEach(i=>{i()}),Dgt=[]};var oNe=VNt(Object.keys,Object);const cNe=oNe;var uNe=Object.prototype,lNe=uNe.hasOwnProperty;function iBt(i){if(!ZW(i))return cNe(i);var a=[];for(var f in Object(i))lNe.call(i,f)&&f!="constructor"&&a.push(f);return a}var hNe=g9(Vv,"DataView");const Igt=hNe;var fNe=g9(Vv,"Promise");const Ogt=fNe;var dNe=g9(Vv,"Set");const nM=dNe;var gNe=g9(Vv,"WeakMap");const Pgt=gNe;var sBt="[object Map]",pNe="[object Object]",aBt="[object Promise]",oBt="[object Set]",cBt="[object WeakMap]",uBt="[object DataView]",bNe=d9(Igt),wNe=d9(yF),mNe=d9(Ogt),vNe=d9(nM),yNe=d9(Pgt),v9=f9;(Igt&&v9(new Igt(new ArrayBuffer(1)))!=uBt||yF&&v9(new yF)!=sBt||Ogt&&v9(Ogt.resolve())!=aBt||nM&&v9(new nM)!=oBt||Pgt&&v9(new Pgt)!=cBt)&&(v9=function(i){var a=f9(i),f=a==pNe?i.constructor:void 0,g=f?d9(f):"";if(g)switch(g){case bNe:return uBt;case wNe:return sBt;case mNe:return aBt;case vNe:return oBt;case yNe:return cBt}return a});const rM=v9;var xNe="[object Map]",kNe="[object Set]",ENe=Object.prototype,TNe=ENe.hasOwnProperty;function LF(i){if(i==null)return!0;if(f8(i)&&(s1(i)||typeof i=="string"||typeof i.splice=="function"||WL(i)||eY(i)||KL(i)))return!i.length;var a=rM(i);if(a==xNe||a==kNe)return!i.size;if(ZW(i))return!iBt(i).length;for(var f in i)if(TNe.call(i,f))return!1;return!0}const CNe="graphics-document document";function _Ne(i,a){i.attr("role",CNe),a!==""&&i.attr("aria-roledescription",a)}function SNe(i,a,f,g){if(i.insert!==void 0){if(f){const w=`chart-desc-${g}`;i.attr("aria-describedby",w),i.insert("desc",":first-child").attr("id",w).text(f)}if(a){const w=`chart-title-${g}`;i.attr("aria-labelledby",w),i.insert("title",":first-child").attr("id",w).text(a)}}}const ANe=i=>i.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function lBt(i){return typeof i>"u"||i===null}function LNe(i){return typeof i=="object"&&i!==null}function MNe(i){return Array.isArray(i)?i:lBt(i)?[]:[i]}function DNe(i,a){var f,g,w,v;if(a)for(v=Object.keys(a),f=0,g=v.length;f<g;f+=1)w=v[f],i[w]=a[w];return i}function INe(i,a){var f="",g;for(g=0;g<a;g+=1)f+=i;return f}function ONe(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}var PNe=lBt,NNe=LNe,FNe=MNe,BNe=INe,RNe=ONe,jNe=DNe,Zg={isNothing:PNe,isObject:NNe,toArray:FNe,repeat:BNe,isNegativeZero:RNe,extend:jNe};function hBt(i,a){var f="",g=i.reason||"(unknown reason)";return i.mark?(i.mark.name&&(f+='in "'+i.mark.name+'" '),f+="("+(i.mark.line+1)+":"+(i.mark.column+1)+")",!a&&i.mark.snippet&&(f+=`
|
|||
|
|
|||
|
`+i.mark.snippet),g+" "+f):g}function MF(i,a){Error.call(this),this.name="YAMLException",this.reason=i,this.mark=a,this.message=hBt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}MF.prototype=Object.create(Error.prototype),MF.prototype.constructor=MF,MF.prototype.toString=function(a){return this.name+": "+hBt(this,a)};var Mx=MF;function Ngt(i,a,f,g,w){var v="",b="",E=Math.floor(w/2)-1;return g-a>E&&(v=" ... ",a=g-E+v.length),f-g>E&&(b=" ...",f=g+E-b.length),{str:v+i.slice(a,f).replace(/\t/g,"→")+b,pos:g-a+v.length}}function Fgt(i,a){return Zg.repeat(" ",a-i.length)+i}function $Ne(i,a){if(a=Object.create(a||null),!i.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);for(var f=/\r?\n|\r|\0/g,g=[0],w=[],v,b=-1;v=f.exec(i.buffer);)w.push(v.index),g.push(v.index+v[0].length),i.position<=v.index&&b<0&&(b=g.length-2);b<0&&(b=g.length-1);var E="",_,S,I=Math.min(i.line+a.linesAfter,w.length).toString().length,B=a.maxLength-(a.indent+I+3);for(_=1;_<=a.linesBefore&&!(b-_<0);_++)S=Ngt(i.buffer,g[b-_],w[b-_],i.position-(g[b]-g[b-_]),B),E=Zg.repeat(" ",a.indent)+Fgt((i.line-_+1).toString(),I)+" | "+S.str+`
|
|||
|
`+E;for(S=Ngt(i.buffer,g[b],w[b],i.position,B),E+=Zg.repeat(" ",a.indent)+Fgt((i.line+1).toString(),I)+" | "+S.str+`
|
|||
|
`,E+=Zg.repeat("-",a.indent+I+3+S.pos)+`^
|
|||
|
`,_=1;_<=a.linesAfter&&!(b+_>=w.length);_++)S=Ngt(i.buffer,g[b+_],w[b+_],i.position-(g[b]-g[b+_]),B),E+=Zg.repeat(" ",a.indent)+Fgt((i.line+_+1).toString(),I)+" | "+S.str+`
|
|||
|
`;return E.replace(/\n$/,"")}var zNe=$Ne,qNe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],HNe=["scalar","sequence","mapping"];function VNe(i){var a={};return i!==null&&Object.keys(i).forEach(function(f){i[f].forEach(function(g){a[String(g)]=f})}),a}function UNe(i,a){if(a=a||{},Object.keys(a).forEach(function(f){if(qNe.indexOf(f)===-1)throw new Mx('Unknown option "'+f+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(f){return f},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=VNe(a.styleAliases||null),HNe.indexOf(this.kind)===-1)throw new Mx('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}var rg=UNe;function fBt(i,a){var f=[];return i[a].forEach(function(g){var w=f.length;f.forEach(function(v,b){v.tag===g.tag&&v.kind===g.kind&&v.multi===g.multi&&(w=b)}),f[w]=g}),f}function GNe(){var i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,f;function g(w){w.multi?(i.multi[w.kind].push(w),i.multi.fallback.push(w)):i[w.kind][w.tag]=i.fallback[w.tag]=w}for(a=0,f=arguments.length;a<f;a+=1)arguments[a].forEach(g);return i}function Bgt(i){return this.extend(i)}Bgt.prototype.extend=function(a){var f=[],g=[];if(a instanceof rg)g.push(a);else if(Array.isArray(a))g=g.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(f=f.concat(a.implicit)),a.explicit&&(g=g.concat(a.explicit));else throw new Mx("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(v){if(!(v instanceof rg))throw new Mx("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(v.loadKind&&v.loadKind!=="scalar")throw new Mx("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(v.multi)throw new Mx("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),g.forEach(function(v){if(!(v instanceof rg))throw new Mx("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var w=Object.create(Bgt.prototype);return w.implicit=(this.implicit||[]).concat(f),w.explicit=(this.explicit||[]).concat(g),w.compiledImplicit=fBt(w,"implicit"),w.compiledExplicit=fBt(w,"explicit"),w.compiledTypeMap=GNe(w.compiledImplicit,w.compiledExplicit),w};var KNe=Bgt,WNe=new rg("tag:yaml.org,2002:str",{kind:"scalar",construct:function(i){return i!==null?i:""}}),YNe=new rg("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(i){return i!==null?i:[]}}),XNe=new rg("tag:yaml.org,2002:map",{kind:"mapping",construct:function(i){return i!==null?i:{}}}),QNe=new KNe({explicit:[WNe,YNe,XNe]});function JNe(i){if(i===null)return!0;var a=i.length;return a===1&&i==="~"||a===4&&(i==="null"||i==="Null"||i==="NULL")}function ZNe(){return null}function tFe(i){return i===null}var eFe=new rg("tag:yaml.org,2002:null",{kind:"scalar",resolve:JNe,construct:ZNe,predicate:tFe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function nFe(i){if(i===null)return!1;var a=i.length;return a===4&&(i==="true"||i==="True"||i==="TRUE")||a===5&&(i==="false"||i==="False"||i==="FALSE")}function rFe(i){return i==="true"||i==="True"||i==="TRUE"}function iFe(i){return Object.prototype.toString.call(i)==="[object Boolean]"}var sFe=new rg("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nFe,construct:rFe,predicate:iFe,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"F
|
|||
|
\r`;function SFe(i){if(i===null)return!1;var a,f,g=0,w=i.length,v=Rgt;for(f=0;f<w;f++)if(a=v.indexOf(i.charAt(f)),!(a>64)){if(a<0)return!1;g+=6}return g%8===0}function AFe(i){var a,f,g=i.replace(/[\r\n=]/g,""),w=g.length,v=Rgt,b=0,E=[];for(a=0;a<w;a++)a%4===0&&a&&(E.push(b>>16&255),E.push(b>>8&255),E.push(b&255)),b=b<<6|v.indexOf(g.charAt(a));return f=w%4*6,f===0?(E.push(b>>16&255),E.push(b>>8&255),E.push(b&255)):f===18?(E.push(b>>10&255),E.push(b>>2&255)):f===12&&E.push(b>>4&255),new Uint8Array(E)}function LFe(i){var a="",f=0,g,w,v=i.length,b=Rgt;for(g=0;g<v;g++)g%3===0&&g&&(a+=b[f>>18&63],a+=b[f>>12&63],a+=b[f>>6&63],a+=b[f&63]),f=(f<<8)+i[g];return w=v%3,w===0?(a+=b[f>>18&63],a+=b[f>>12&63],a+=b[f>>6&63],a+=b[f&63]):w===2?(a+=b[f>>10&63],a+=b[f>>4&63],a+=b[f<<2&63],a+=b[64]):w===1&&(a+=b[f>>2&63],a+=b[f<<4&63],a+=b[64],a+=b[64]),a}function MFe(i){return Object.prototype.toString.call(i)==="[object Uint8Array]"}var DFe=new rg("tag:yaml.org,2002:binary",{kind:"scalar",resolve:SFe,construct:AFe,predicate:MFe,represent:LFe}),IFe=Object.prototype.hasOwnProperty,OFe=Object.prototype.toString;function PFe(i){if(i===null)return!0;var a=[],f,g,w,v,b,E=i;for(f=0,g=E.length;f<g;f+=1){if(w=E[f],b=!1,OFe.call(w)!=="[object Object]")return!1;for(v in w)if(IFe.call(w,v))if(!b)b=!0;else return!1;if(!b)return!1;if(a.indexOf(v)===-1)a.push(v);else return!1}return!0}function NFe(i){return i!==null?i:[]}var FFe=new rg("tag:yaml.org,2002:omap",{kind:"sequence",resolve:PFe,construct:NFe}),BFe=Object.prototype.toString;function RFe(i){if(i===null)return!0;var a,f,g,w,v,b=i;for(v=new Array(b.length),a=0,f=b.length;a<f;a+=1){if(g=b[a],BFe.call(g)!=="[object Object]"||(w=Object.keys(g),w.length!==1))return!1;v[a]=[w[0],g[w[0]]]}return!0}function jFe(i){if(i===null)return[];var a,f,g,w,v,b=i;for(v=new Array(b.length),a=0,f=b.length;a<f;a+=1)g=b[a],w=Object.keys(g),v[a]=[w[0],g[w[0]]];return v}var $Fe=new rg("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:RFe,construct:jFe}),zFe=Object.prototype.hasOwnProperty;function qFe(i){if(i===null)return!0;var a,f=i;for(a in f)if(zFe.call(f,a)&&f[a]!==null)return!1;return!0}function HFe(i){return i!==null?i:{}}var VFe=new rg("tag:yaml.org,2002:set",{kind:"mapping",resolve:qFe,construct:HFe}),UFe=yFe.extend({implicit:[TFe,_Fe],explicit:[DFe,FFe,$Fe,VFe]}),p8=Object.prototype.hasOwnProperty,mY=1,bBt=2,wBt=3,vY=4,jgt=1,GFe=2,mBt=3,KFe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,WFe=/[\x85\u2028\u2029]/,YFe=/[,\[\]\{\}]/,vBt=/^(?:!|!!|![a-z\-]+!)$/i,yBt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function xBt(i){return Object.prototype.toString.call(i)}function r4(i){return i===10||i===13}function y9(i){return i===9||i===32}function rb(i){return i===9||i===32||i===10||i===13}function iM(i){return i===44||i===91||i===93||i===123||i===125}function XFe(i){var a;return 48<=i&&i<=57?i-48:(a=i|32,97<=a&&a<=102?a-97+10:-1)}function QFe(i){return i===120?2:i===117?4:i===85?8:0}function JFe(i){return 48<=i&&i<=57?i-48:-1}function kBt(i){return i===48?"\0":i===97?"\x07":i===98?"\b":i===116||i===9?" ":i===110?`
|
|||
|
`:i===118?"\v":i===102?"\f":i===114?"\r":i===101?"\x1B":i===32?" ":i===34?'"':i===47?"/":i===92?"\\":i===78?"
":i===95?" ":i===76?"\u2028":i===80?"\u2029":""}function ZFe(i){return i<=65535?String.fromCharCode(i):String.fromCharCode((i-65536>>10)+55296,(i-65536&1023)+56320)}for(var EBt=new Array(256),TBt=new Array(256),sM=0;sM<256;sM++)EBt[sM]=kBt(sM)?1:0,TBt[sM]=kBt(sM);function tBe(i,a){this.input=i,this.filename=a.filename||null,this.schema=a.schema||UFe,this.onWarning=a.onWarning||null,this.legacy=a.legacy||!1,this.json=a.json||!1,this.listener=a.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=i.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function CBt(i,a){var f={name:i.filename,buffer:i.input.slice(0,-1),position:i.position,line:i.line,column:i.position-i.lineStart};return f.snippet=zNe(f),new Mx(a,f)}function Ks(i,a){throw CBt(i,a)}function yY(i,a){i.onWarning&&i.onWarning.call(null,CBt(i,a))}var _Bt={YAML:function(a,f,g){var w,v,b;a.version!==null&&Ks(a,"duplication of %YAML directive"),g.length!==1&&Ks(a,"YAML directive accepts exactly one argument"),w=/^([0-9]+)\.([0-9]+)$/.exec(g[0]),w===null&&Ks(a,"ill-formed argument of the YAML directive"),v=parseInt(w[1],10),b=parseInt(w[2],10),v!==1&&Ks(a,"unacceptable YAML version of the document"),a.version=g[0],a.checkLineBreaks=b<2,b!==1&&b!==2&&yY(a,"unsupported YAML version of the document")},TAG:function(a,f,g){var w,v;g.length!==2&&Ks(a,"TAG directive accepts exactly two arguments"),w=g[0],v=g[1],vBt.test(w)||Ks(a,"ill-formed tag handle (first argument) of the TAG directive"),p8.call(a.tagMap,w)&&Ks(a,'there is a previously declared suffix for "'+w+'" tag handle'),yBt.test(v)||Ks(a,"ill-formed tag prefix (second argument) of the TAG directive");try{v=decodeURIComponent(v)}catch{Ks(a,"tag prefix is malformed: "+v)}a.tagMap[w]=v}};function b8(i,a,f,g){var w,v,b,E;if(a<f){if(E=i.input.slice(a,f),g)for(w=0,v=E.length;w<v;w+=1)b=E.charCodeAt(w),b===9||32<=b&&b<=1114111||Ks(i,"expected valid JSON character");else KFe.test(E)&&Ks(i,"the stream contains non-printable characters");i.result+=E}}function SBt(i,a,f,g){var w,v,b,E;for(Zg.isObject(f)||Ks(i,"cannot merge mappings; the provided source object is unacceptable"),w=Object.keys(f),b=0,E=w.length;b<E;b+=1)v=w[b],p8.call(a,v)||(a[v]=f[v],g[v]=!0)}function aM(i,a,f,g,w,v,b,E,_){var S,I;if(Array.isArray(w))for(w=Array.prototype.slice.call(w),S=0,I=w.length;S<I;S+=1)Array.isArray(w[S])&&Ks(i,"nested arrays are not supported inside keys"),typeof w=="object"&&xBt(w[S])==="[object Object]"&&(w[S]="[object Object]");if(typeof w=="object"&&xBt(w)==="[object Object]"&&(w="[object Object]"),w=String(w),a===null&&(a={}),g==="tag:yaml.org,2002:merge")if(Array.isArray(v))for(S=0,I=v.length;S<I;S+=1)SBt(i,a,v[S],f);else SBt(i,a,v,f);else!i.json&&!p8.call(f,w)&&p8.call(a,w)&&(i.line=b||i.line,i.lineStart=E||i.lineStart,i.position=_||i.position,Ks(i,"duplicated mapping key")),w==="__proto__"?Object.defineProperty(a,w,{configurable:!0,enumerable:!0,writable:!0,value:v}):a[w]=v,delete f[w];return a}function $gt(i){var a;a=i.input.charCodeAt(i.position),a===10?i.position++:a===13?(i.position++,i.input.charCodeAt(i.position)===10&&i.position++):Ks(i,"a line break is expected"),i.line+=1,i.lineStart=i.position,i.firstTabInLine=-1}function o1(i,a,f){for(var g=0,w=i.input.charCodeAt(i.position);w!==0;){for(;y9(w);)w===9&&i.firstTabInLine===-1&&(i.firstTabInLine=i.position),w=i.input.charCodeAt(++i.position);if(a&&w===35)do w=i.input.charCodeAt(++i.position);while(w!==10&&w!==13&&w!==0);if(r4(w))for($gt(i),w=i.input.charCodeAt(i.position),g++,i.lineIndent=0;w===32;)i.lineIndent++,w=i.input.charCodeAt(++i.position);else break}return f!==-1&&g!==0&&i.lineIndent<f&&yY(i,"deficient indentation"),g}function xY(i){var a=i.position,f;return f=i.input.charCodeAt(a),!!((f===45||f===46)&&f===i.input.charCodeAt(a+1)&&f===i.input.charCodeAt(a+2)&&(a+=3,f=i.input.charCodeAt(a),f===0||rb(f)))}function zgt(i,a){a===1?i.resu
|
|||
|
`,a-1))}function eBe(i,a,f){var g,w,v,b,E,_,S,I,B=i.kind,F=i.result,R;if(R=i.input.charCodeAt(i.position),rb(R)||iM(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96||(R===63||R===45)&&(w=i.input.charCodeAt(i.position+1),rb(w)||f&&iM(w)))return!1;for(i.kind="scalar",i.result="",v=b=i.position,E=!1;R!==0;){if(R===58){if(w=i.input.charCodeAt(i.position+1),rb(w)||f&&iM(w))break}else if(R===35){if(g=i.input.charCodeAt(i.position-1),rb(g))break}else{if(i.position===i.lineStart&&xY(i)||f&&iM(R))break;if(r4(R))if(_=i.line,S=i.lineStart,I=i.lineIndent,o1(i,!1,-1),i.lineIndent>=a){E=!0,R=i.input.charCodeAt(i.position);continue}else{i.position=b,i.line=_,i.lineStart=S,i.lineIndent=I;break}}E&&(b8(i,v,b,!1),zgt(i,i.line-_),v=b=i.position,E=!1),y9(R)||(b=i.position+1),R=i.input.charCodeAt(++i.position)}return b8(i,v,b,!1),i.result?!0:(i.kind=B,i.result=F,!1)}function nBe(i,a){var f,g,w;if(f=i.input.charCodeAt(i.position),f!==39)return!1;for(i.kind="scalar",i.result="",i.position++,g=w=i.position;(f=i.input.charCodeAt(i.position))!==0;)if(f===39)if(b8(i,g,i.position,!0),f=i.input.charCodeAt(++i.position),f===39)g=i.position,i.position++,w=i.position;else return!0;else r4(f)?(b8(i,g,w,!0),zgt(i,o1(i,!1,a)),g=w=i.position):i.position===i.lineStart&&xY(i)?Ks(i,"unexpected end of the document within a single quoted scalar"):(i.position++,w=i.position);Ks(i,"unexpected end of the stream within a single quoted scalar")}function rBe(i,a){var f,g,w,v,b,E;if(E=i.input.charCodeAt(i.position),E!==34)return!1;for(i.kind="scalar",i.result="",i.position++,f=g=i.position;(E=i.input.charCodeAt(i.position))!==0;){if(E===34)return b8(i,f,i.position,!0),i.position++,!0;if(E===92){if(b8(i,f,i.position,!0),E=i.input.charCodeAt(++i.position),r4(E))o1(i,!1,a);else if(E<256&&EBt[E])i.result+=TBt[E],i.position++;else if((b=QFe(E))>0){for(w=b,v=0;w>0;w--)E=i.input.charCodeAt(++i.position),(b=XFe(E))>=0?v=(v<<4)+b:Ks(i,"expected hexadecimal character");i.result+=ZFe(v),i.position++}else Ks(i,"unknown escape sequence");f=g=i.position}else r4(E)?(b8(i,f,g,!0),zgt(i,o1(i,!1,a)),f=g=i.position):i.position===i.lineStart&&xY(i)?Ks(i,"unexpected end of the document within a double quoted scalar"):(i.position++,g=i.position)}Ks(i,"unexpected end of the stream within a double quoted scalar")}function iBe(i,a){var f=!0,g,w,v,b=i.tag,E,_=i.anchor,S,I,B,F,R,q=Object.create(null),X,rt,at,ut;if(ut=i.input.charCodeAt(i.position),ut===91)I=93,R=!1,E=[];else if(ut===123)I=125,R=!0,E={};else return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=E),ut=i.input.charCodeAt(++i.position);ut!==0;){if(o1(i,!0,a),ut=i.input.charCodeAt(i.position),ut===I)return i.position++,i.tag=b,i.anchor=_,i.kind=R?"mapping":"sequence",i.result=E,!0;f?ut===44&&Ks(i,"expected the node content, but found ','"):Ks(i,"missed comma between flow collection entries"),rt=X=at=null,B=F=!1,ut===63&&(S=i.input.charCodeAt(i.position+1),rb(S)&&(B=F=!0,i.position++,o1(i,!0,a))),g=i.line,w=i.lineStart,v=i.position,oM(i,a,mY,!1,!0),rt=i.tag,X=i.result,o1(i,!0,a),ut=i.input.charCodeAt(i.position),(F||i.line===g)&&ut===58&&(B=!0,ut=i.input.charCodeAt(++i.position),o1(i,!0,a),oM(i,a,mY,!1,!0),at=i.result),R?aM(i,E,q,rt,X,at,g,w,v):B?E.push(aM(i,null,q,rt,X,at,g,w,v)):E.push(X),o1(i,!0,a),ut=i.input.charCodeAt(i.position),ut===44?(f=!0,ut=i.input.charCodeAt(++i.position)):f=!1}Ks(i,"unexpected end of the stream within a flow collection")}function sBe(i,a){var f,g,w=jgt,v=!1,b=!1,E=a,_=0,S=!1,I,B;if(B=i.input.charCodeAt(i.position),B===124)g=!1;else if(B===62)g=!0;else return!1;for(i.kind="scalar",i.result="";B!==0;)if(B=i.input.charCodeAt(++i.position),B===43||B===45)jgt===w?w=B===43?mBt:GFe:Ks(i,"repeat of a chomping mode identifier");else if((I=JFe(B))>=0)I===0?Ks(i,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?Ks(i,"repeat of an indentation width identifier"):(E=a+I-1,b=!0);else break;if(y9(B)){do B=i.input.charCodeAt(++i.position);while(y9(B));if(B===35)do B=i.input.charCodeAt(++i.position);while(!r4(B)&&B!==0)}for(;B!==0;){for($gt(i),i.li
|
|||
|
`,v?1+_:_):w===jgt&&v&&(i.result+=`
|
|||
|
`);break}for(g?y9(B)?(S=!0,i.result+=Zg.repeat(`
|
|||
|
`,v?1+_:_)):S?(S=!1,i.result+=Zg.repeat(`
|
|||
|
`,_+1)):_===0?v&&(i.result+=" "):i.result+=Zg.repeat(`
|
|||
|
`,_):i.result+=Zg.repeat(`
|
|||
|
`,v?1+_:_),v=!0,b=!0,_=0,f=i.position;!r4(B)&&B!==0;)B=i.input.charCodeAt(++i.position);b8(i,f,i.position,!1)}return!0}function ABt(i,a){var f,g=i.tag,w=i.anchor,v=[],b,E=!1,_;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=v),_=i.input.charCodeAt(i.position);_!==0&&(i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,Ks(i,"tab characters must not be used in indentation")),!(_!==45||(b=i.input.charCodeAt(i.position+1),!rb(b))));){if(E=!0,i.position++,o1(i,!0,-1)&&i.lineIndent<=a){v.push(null),_=i.input.charCodeAt(i.position);continue}if(f=i.line,oM(i,a,wBt,!1,!0),v.push(i.result),o1(i,!0,-1),_=i.input.charCodeAt(i.position),(i.line===f||i.lineIndent>a)&&_!==0)Ks(i,"bad indentation of a sequence entry");else if(i.lineIndent<a)break}return E?(i.tag=g,i.anchor=w,i.kind="sequence",i.result=v,!0):!1}function aBe(i,a,f){var g,w,v,b,E,_,S=i.tag,I=i.anchor,B={},F=Object.create(null),R=null,q=null,X=null,rt=!1,at=!1,ut;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=B),ut=i.input.charCodeAt(i.position);ut!==0;){if(!rt&&i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,Ks(i,"tab characters must not be used in indentation")),g=i.input.charCodeAt(i.position+1),v=i.line,(ut===63||ut===58)&&rb(g))ut===63?(rt&&(aM(i,B,F,R,q,null,b,E,_),R=q=X=null),at=!0,rt=!0,w=!0):rt?(rt=!1,w=!0):Ks(i,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),i.position+=1,ut=g;else{if(b=i.line,E=i.lineStart,_=i.position,!oM(i,f,bBt,!1,!0))break;if(i.line===v){for(ut=i.input.charCodeAt(i.position);y9(ut);)ut=i.input.charCodeAt(++i.position);if(ut===58)ut=i.input.charCodeAt(++i.position),rb(ut)||Ks(i,"a whitespace character is expected after the key-value separator within a block mapping"),rt&&(aM(i,B,F,R,q,null,b,E,_),R=q=X=null),at=!0,rt=!1,w=!1,R=i.tag,q=i.result;else if(at)Ks(i,"can not read an implicit mapping pair; a colon is missed");else return i.tag=S,i.anchor=I,!0}else if(at)Ks(i,"can not read a block mapping entry; a multiline key may not be an implicit key");else return i.tag=S,i.anchor=I,!0}if((i.line===v||i.lineIndent>a)&&(rt&&(b=i.line,E=i.lineStart,_=i.position),oM(i,a,vY,!0,w)&&(rt?q=i.result:X=i.result),rt||(aM(i,B,F,R,q,X,b,E,_),R=q=X=null),o1(i,!0,-1),ut=i.input.charCodeAt(i.position)),(i.line===v||i.lineIndent>a)&&ut!==0)Ks(i,"bad indentation of a mapping entry");else if(i.lineIndent<a)break}return rt&&aM(i,B,F,R,q,null,b,E,_),at&&(i.tag=S,i.anchor=I,i.kind="mapping",i.result=B),at}function oBe(i){var a,f=!1,g=!1,w,v,b;if(b=i.input.charCodeAt(i.position),b!==33)return!1;if(i.tag!==null&&Ks(i,"duplication of a tag property"),b=i.input.charCodeAt(++i.position),b===60?(f=!0,b=i.input.charCodeAt(++i.position)):b===33?(g=!0,w="!!",b=i.input.charCodeAt(++i.position)):w="!",a=i.position,f){do b=i.input.charCodeAt(++i.position);while(b!==0&&b!==62);i.position<i.length?(v=i.input.slice(a,i.position),b=i.input.charCodeAt(++i.position)):Ks(i,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!rb(b);)b===33&&(g?Ks(i,"tag suffix cannot contain exclamation marks"):(w=i.input.slice(a-1,i.position+1),vBt.test(w)||Ks(i,"named tag handle cannot contain such characters"),g=!0,a=i.position+1)),b=i.input.charCodeAt(++i.position);v=i.input.slice(a,i.position),YFe.test(v)&&Ks(i,"tag suffix cannot contain flow indicator characters")}v&&!yBt.test(v)&&Ks(i,"tag name cannot contain such characters: "+v);try{v=decodeURIComponent(v)}catch{Ks(i,"tag name is malformed: "+v)}return f?i.tag=v:p8.call(i.tagMap,w)?i.tag=i.tagMap[w]+v:w==="!"?i.tag="!"+v:w==="!!"?i.tag="tag:yaml.org,2002:"+v:Ks(i,'undeclared tag handle "'+w+'"'),!0}function cBe(i){var a,f;if(f=i.input.charCodeAt(i.position),f!==38)return!1;for(i.anchor!==null&&Ks(i,"duplication of an anchor property"),f=i.input.charCodeAt(++i.position),a=i.position;f!==0&&!rb(f)&&!iM(f);)f=i.input.charCodeAt(++i.position);return i.position===a&&Ks(i,"name of an anchor node must contain at least one character"),i.anchor=i.input.slice(a,i.position),!0}function uBe(i){var a,f,g;if(g=i.input.charCo
|
|||
|
`),i.charCodeAt(0)===65279&&(i=i.slice(1)));var f=new tBe(i,a),g=i.indexOf("\0");for(g!==-1&&(f.position=g,Ks(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)lBe(f);return f.documents}function hBe(i,a,f){a!==null&&typeof a=="object"&&typeof f>"u"&&(f=a,a=null);var g=LBt(i,f);if(typeof a!="function")return g;for(var w=0,v=g.length;w<v;w+=1)a(g[w])}function fBe(i,a){var f=LBt(i,a);if(f.length!==0){if(f.length===1)return f[0];throw new Mx("expected a single document in the stream, but found more")}}var dBe=hBe,gBe=fBe,pBe={loadAll:dBe,load:gBe},bBe=dBt,wBe=pBe.load;function mBe(i){const a=i.match(ANt);if(!a)return{text:i,metadata:{}};let f=wBe(a[1],{schema:bBe})??{};f=typeof f=="object"&&!Array.isArray(f)?f:{};const g={};return f.displayMode&&(g.displayMode=f.displayMode.toString()),f.title&&(g.title=f.title.toString()),f.config&&(g.config=f.config),{text:i.slice(a[0].length),metadata:g}}const vBe=i=>i.replace(/\r\n?/g,`
|
|||
|
`).replace(/<(\w+)([^>]*)>/g,(a,f,g)=>"<"+f+g.replace(/="([^"]*)"/g,"='$1'")+">"),yBe=i=>{const{text:a,metadata:f}=mBe(i),{displayMode:g,title:w,config:v={}}=f;return g&&(v.gantt||(v.gantt={}),v.gantt.displayMode=g),{title:w,config:v,text:a}},xBe=i=>{const a=ao.detectInit(i)??{},f=ao.detectDirective(i,"wrap");return Array.isArray(f)?a.wrap=f.some(({type:g})=>{}):(f==null?void 0:f.type)==="wrap"&&(a.wrap=!0),{text:zOe(i),directive:a}};function MBt(i){const a=vBe(i),f=yBe(a),g=xBe(f.text),w=TF(f.config,g.directive);return i=ANe(g.text),{code:i,title:f.title,config:w}}const kBe=5e4,EBe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",TBe="sandbox",CBe="loose",_Be="http://www.w3.org/2000/svg",SBe="http://www.w3.org/1999/xlink",ABe="http://www.w3.org/1999/xhtml",LBe="100%",MBe="100%",DBe="border:0;margin:0;",IBe="margin:0",OBe="allow-top-navigation-by-user-activation allow-popups",PBe='The "iframe" tag is not supported by your browser.',NBe=["foreignobject"],FBe=["dominant-baseline"];function DBt(i){const a=MBt(i);return dY(),xPe(a.config??{}),a}async function BBe(i,a){Mgt(),i=DBt(i).code;try{await qgt(i)}catch(f){if(a!=null&&a.suppressErrors)return!1;throw f}return!0}const IBt=(i,a,f=[])=>`
|
|||
|
.${i} ${a} { ${f.join(" !important; ")} !important; }`,RBe=(i,a={})=>{var g;let f="";if(i.themeCSS!==void 0&&(f+=`
|
|||
|
${i.themeCSS}`),i.fontFamily!==void 0&&(f+=`
|
|||
|
:root { --mermaid-font-family: ${i.fontFamily}}`),i.altFontFamily!==void 0&&(f+=`
|
|||
|
:root { --mermaid-alt-font-family: ${i.altFontFamily}}`),!LF(a)){const E=i.htmlLabels||((g=i.flowchart)==null?void 0:g.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const _ in a){const S=a[_];LF(S.styles)||E.forEach(I=>{f+=IBt(S.id,I,S.styles)}),LF(S.textStyles)||(f+=IBt(S.id,"tspan",S.textStyles))}}return f},jBe=(i,a,f,g)=>{const w=RBe(i,f),v=UPe(a,w,i.themeVariables);return Tgt(pPe(`${g}{${v}}`),wPe)},$Be=(i="",a,f)=>{let g=i;return!f&&!a&&(g=g.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),g=CF(g),g=g.replace(/<br>/g,"<br/>"),g},zBe=(i="",a)=>{var w,v;const f=(v=(w=a==null?void 0:a.viewBox)==null?void 0:w.baseVal)!=null&&v.height?a.viewBox.baseVal.height+"px":MBe,g=btoa('<body style="'+IBe+'">'+i+"</body>");return`<iframe style="width:${LBe};height:${f};${DBe}" src="data:text/html;base64,${g}" sandbox="${OBe}">
|
|||
|
${PBe}
|
|||
|
</iframe>`},OBt=(i,a,f,g,w)=>{const v=i.append("div");v.attr("id",f),g&&v.attr("style",g);const b=v.append("svg").attr("id",a).attr("width","100%").attr("xmlns",_Be);return w&&b.attr("xmlns:xlink",w),b.append("g"),i};function PBt(i,a){return i.append("iframe").attr("id",a).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const qBe=(i,a,f,g)=>{var w,v,b;(w=i.getElementById(a))==null||w.remove(),(v=i.getElementById(f))==null||v.remove(),(b=i.getElementById(g))==null||b.remove()},HBe=async function(i,a,f){var V,Nt,Dt,jt,Ct,Ft;Mgt();const g=DBt(a);a=g.code;const w=h0();Wt.debug(w),a.length>((w==null?void 0:w.maxTextSize)??kBe)&&(a=EBe);const v="#"+i,b="i"+i,E="#"+b,_="d"+i,S="#"+_;let I=xr("body");const B=w.securityLevel===TBe,F=w.securityLevel===CBe,R=w.fontFamily;if(f!==void 0){if(f&&(f.innerHTML=""),B){const _t=PBt(xr(f),b);I=xr(_t.nodes()[0].contentDocument.body),I.node().style.margin=0}else I=xr(f);OBt(I,i,_,`font-family: ${R}`,SBe)}else{if(qBe(document,i,_,b),B){const _t=PBt(xr("body"),b);I=xr(_t.nodes()[0].contentDocument.body),I.node().style.margin=0}else I=xr("body");OBt(I,i,_)}let q,X;try{q=await qgt(a,{title:g.title})}catch(_t){q=new rBt("error"),X=_t}const rt=I.select(S).node(),at=q.type,ut=rt.firstChild,pt=ut.firstChild,yt=(Nt=(V=q.renderer).getClasses)==null?void 0:Nt.call(V,a,q),mt=jBe(w,at,yt,v),gt=document.createElement("style");gt.innerHTML=mt,ut.insertBefore(gt,pt);try{await q.renderer.draw(a,i,TFt,q)}catch(_t){throw JPe.draw(a,i,TFt),_t}const ht=I.select(`${S} svg`),bt=(jt=(Dt=q.db).getAccTitle)==null?void 0:jt.call(Dt),Z=(Ft=(Ct=q.db).getAccDescription)==null?void 0:Ft.call(Ct);UBe(at,ht,bt,Z),I.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",ABe);let ft=I.select(S).node().innerHTML;if(Wt.debug("config.arrowMarkerAbsolute",w.arrowMarkerAbsolute),ft=$Be(ft,B,B1(w.arrowMarkerAbsolute)),B){const _t=I.select(S+" svg").node();ft=zBe(ft,_t)}else F||(ft=zL.sanitize(ft,{ADD_TAGS:NBe,ADD_ATTR:FBe}));if(aNe(),X)throw X;const Et=xr(B?E:S).node();return Et&&"remove"in Et&&Et.remove(),{svg:ft,bindFunctions:q.db.bindFunctions}};function VBe(i={}){var f;i!=null&&i.fontFamily&&!((f=i.themeVariables)!=null&&f.fontFamily)&&(i.themeVariables||(i.themeVariables={}),i.themeVariables.fontFamily=i.fontFamily),vPe(i),i!=null&&i.theme&&i.theme in _x?i.themeVariables=_x[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=_x.default.getThemeVariables(i.themeVariables));const a=typeof i=="object"?mPe(i):_Ft();s0t(a.logLevel),Mgt()}const qgt=(i,a={})=>{const{code:f}=MBt(i);return iNe(f,a)};function UBe(i,a,f,g){_Ne(a,i),SNe(a,f,g,a.attr("id"))}const x9=Object.freeze({render:HBe,parse:BBe,getDiagramFromText:qgt,initialize:VBe,getConfig:h0,setConfig:SFt,getSiteConfig:_Ft,updateSiteConfig:yPe,reset:()=>{dY()},globalReset:()=>{dY(tM)},defaultConfig:tM});s0t(h0().logLevel),dY(h0());const GBe=async()=>{Wt.debug("Loading registered diagrams");const a=(await Promise.allSettled(Object.entries(HL).map(async([f,{detector:g,loader:w}])=>{if(w)try{Lgt(f)}catch{try{const{diagram:b,id:E}=await w();bY(E,b,g)}catch(b){throw Wt.error(`Failed to load external diagram with key ${f}. Removing from detectors.`),delete HL[f],b}}}))).filter(f=>f.status==="rejected");if(a.length>0){Wt.error(`Failed to load ${a.length} external diagrams`);for(const f of a)Wt.error(f);throw new Error(`Failed to load ${a.length} external diagrams`)}},KBe=(i,a,f)=>{Wt.warn(i),pFt(i)?(f&&f(i.str,i.hash),a.push({...i,message:i.str,error:i})):(f&&f(i),i instanceof Error&&a.push({str:i.message,message:i.message,hash:i.name,error:i}))},NBt=async function(i={querySelector:".mermaid"}){try{await WBe(i)}catch(a){if(pFt(a)&&Wt.error(a.str),x2.parseError&&x2.parseError(a),!i.suppressErrors)throw Wt.error("Use the suppressErrors option to suppress these errors"),a}},WBe=async function({postRenderCallback:i,querySelector:a,nodes:f}={querySelector:".mermaid"}){const g=x9.getConfig();Wt.debug(`${i?"":"No "}Callback function found`);let w;if(f)w=f;else if(a)w=document.querySelectorAll(a);else throw new Error("Nodes and querySelector are both undef
|
|||
|
* Wait for document loaded before starting the execution
|
|||
|
*/window.addEventListener("load",BBt,!1)}const QBe=function(i){x2.parseError=i},kY=[];let Hgt=!1;const RBt=async()=>{if(!Hgt){for(Hgt=!0;kY.length>0;){const i=kY.shift();if(i)try{await i()}catch(a){Wt.error("Error executing queue",a)}}Hgt=!1}},JBe=async(i,a)=>new Promise((f,g)=>{const w=()=>new Promise((v,b)=>{x9.parse(i,a).then(E=>{v(E),f(E)},E=>{var _;Wt.error("Error parsing",E),(_=x2.parseError)==null||_.call(x2,E),b(E),g(E)})});kY.push(w),RBt().catch(g)}),jBt=(i,a,f)=>new Promise((g,w)=>{const v=()=>new Promise((b,E)=>{x9.render(i,a,f).then(_=>{b(_),g(_)},_=>{var S;Wt.error("Error parsing",_),(S=x2.parseError)==null||S.call(x2,_),E(_),w(_)})});kY.push(v),RBt().catch(w)}),x2={startOnLoad:!0,mermaidAPI:x9,parse:JBe,render:jBt,init:YBe,run:NBt,registerExternalDiagrams:XBe,initialize:FBt,parseError:void 0,contentLoaded:BBt,setParseErrorHandler:QBe,detectType:KW};var EY=function(){var i=function(fr,An,Pn,Bn){for(Pn=Pn||{},Bn=fr.length;Bn--;Pn[fr[Bn]]=An);return Pn},a=[1,24],f=[1,25],g=[1,26],w=[1,27],v=[1,28],b=[1,63],E=[1,64],_=[1,65],S=[1,66],I=[1,67],B=[1,68],F=[1,69],R=[1,29],q=[1,30],X=[1,31],rt=[1,32],at=[1,33],ut=[1,34],pt=[1,35],yt=[1,36],mt=[1,37],gt=[1,38],ht=[1,39],bt=[1,40],Z=[1,41],ft=[1,42],Y=[1,43],Et=[1,44],V=[1,45],Nt=[1,46],Dt=[1,47],jt=[1,48],Ct=[1,50],Ft=[1,51],_t=[1,52],xt=[1,53],Gt=[1,54],Be=[1,55],Ot=[1,56],vn=[1,57],Pe=[1,58],Ee=[1,59],nn=[1,60],sn=[14,42],me=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Fe=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt=[1,82],Ae=[1,83],Se=[1,84],Dn=[1,85],oe=[12,14,42],Pr=[12,14,33,42],we=[12,14,33,42,76,77,79,80],Ri=[12,33],yi=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],da={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:
|
|||
|
`+gs.showPosition()+`
|
|||
|
Expecting `+va.join(", ")+", got '"+(this.terminals_[Ac]||Ac)+"'":na="Parse error on line "+(ja+1)+": Unexpected "+(Ac==ma?"end of input":"'"+(this.terminals_[Ac]||Ac)+"'"),this.parseError(na,{text:gs.match,token:this.terminals_[Ac]||Ac,line:gs.yylineno,loc:l1,expected:va})}if(ka[0]instanceof Array&&ka.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pc+", token: "+Ac);switch(ka[0]){case 1:Bn.push(Ac),be.push(gs.yytext),Qe.push(gs.yylloc),Bn.push(ka[1]),Ac=null,mo=gs.yyleng,yn=gs.yytext,ja=gs.yylineno,l1=gs.yylloc;break;case 2:if(bc=this.productions_[ka[1]][1],ea.$=be[be.length-bc],ea._$={first_line:Qe[Qe.length-(bc||1)].first_line,last_line:Qe[Qe.length-1].last_line,first_column:Qe[Qe.length-(bc||1)].first_column,last_column:Qe[Qe.length-1].last_column},_2&&(ea._$.range=[Qe[Qe.length-(bc||1)].range[0],Qe[Qe.length-1].range[1]]),du=this.performAction.apply(ea,[yn,mo,ja,Nu.yy,ka[1],be,Qe].concat($a)),typeof du<"u")return du;bc&&(Bn=Bn.slice(0,-1*bc*2),be=be.slice(0,-1*bc),Qe=Qe.slice(0,-1*bc)),Bn.push(this.productions_[ka[1]][0]),be.push(ea.$),Qe.push(ea._$),oa=rn[Bn[Bn.length-2]][Bn[Bn.length-1]],Bn.push(oa);break;case 3:return!0}}return!0}},Ss=function(){var fr={EOF:1,parseError:function(Pn,Bn){if(this.yy.parser)this.yy.parser.parseError(Pn,Bn);else throw new Error(Pn)},setInput:function(An,Pn){return this.yy=Pn||this.yy||{},this._input=An,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var An=this._input[0];this.yytext+=An,this.yyleng++,this.offset++,this.match+=An,this.matched+=An;var Pn=An.match(/(?:\r\n?|\n).*/g);return Pn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),An},unput:function(An){var Pn=An.length,Bn=An.split(/(?:\r\n?|\n)/g);this._input=An+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Pn),this.offset-=Pn;var Te=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Bn.length-1&&(this.yylineno-=Bn.length-1);var be=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Bn?(Bn.length===Te.length?this.yylloc.first_column:0)+Te[Te.length-Bn.length].length-Bn[0].length:this.yylloc.first_column-Pn},this.options.ranges&&(this.yylloc.range=[be[0],be[0]+this.yyleng-Pn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(An){this.unput(this.match.slice(An))},pastInput:function(){var An=this.matched.substr(0,this.matched.length-this.match.length);return(An.length>20?"...":"")+An.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var An=this.match;return An.length<20&&(An+=this._input.substr(0,20-An.length)),(An.substr(0,20)+(An.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var An=this.pastInput(),Pn=new Array(An.length+1).join("-");return An+this.upcomingInput()+`
|
|||
|
`+Pn+"^"},test_match:function(An,Pn){var Bn,Te,be;if(this.options.backtrack_lexer&&(be={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(be.yylloc.range=this.yylloc.range.slice(0))),Te=An[0].match(/(?:\r\n?|\n).*/g),Te&&(this.yylineno+=Te.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Te?Te[Te.length-1].length-Te[Te.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+An[0].length},this.yytext+=An[0],this.match+=An[0],this.matches=An,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(An[0].length),this.matched+=An[0],Bn=this.performAction.call(this,this.yy,this,Pn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Bn)return Bn;if(this._backtrack){for(var Qe in be)this[Qe]=be[Qe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var An,Pn,Bn,Te;this._more||(this.yytext="",this.match="");for(var be=this._currentRules(),Qe=0;Qe<be.length;Qe++)if(Bn=this._input.match(this.rules[be[Qe]]),Bn&&(!Pn||Bn[0].length>Pn[0].length)){if(Pn=Bn,Te=Qe,this.options.backtrack_lexer){if(An=this.test_match(Bn,be[Qe]),An!==!1)return An;if(this._backtrack){Pn=!1;continue}else return!1}else if(!this.options.flex)break}return Pn?(An=this.test_match(Pn,be[Te]),An!==!1?An:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Pn=this.next();return Pn||this.lex()},begin:function(Pn){this.conditionStack.push(Pn)},popState:function(){var Pn=this.conditionStack.length-1;return Pn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Pn){return Pn=this.conditionStack.length-1-Math.abs(Pn||0),Pn>=0?this.conditionStack[Pn]:"INITIAL"},pushState:function(Pn){this.begin(Pn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Pn,Bn,Te,be){switch(Te){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/
|
|||
|
stroke: ${i.personBorder};
|
|||
|
fill: ${i.personBkg};
|
|||
|
}
|
|||
|
`,init:({c4:i,wrap:a})=>{XBt.setConf(i),Ggt.setWrap(a)}}},Symbol.toStringTag,{value:"Module"}));var Qgt=function(){var i=function(Ad,ls,Ls,Za){for(Ls=Ls||{},Za=Ad.length;Za--;Ls[Ad[Za]]=ls);return Ls},a=[1,4],f=[1,3],g=[1,5],w=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],v=[2,2],b=[1,13],E=[1,14],_=[1,15],S=[1,16],I=[1,23],B=[1,25],F=[1,26],R=[1,27],q=[1,49],X=[1,48],rt=[1,29],at=[1,30],ut=[1,31],pt=[1,32],yt=[1,33],mt=[1,44],gt=[1,46],ht=[1,42],bt=[1,47],Z=[1,43],ft=[1,50],Y=[1,45],Et=[1,51],V=[1,52],Nt=[1,34],Dt=[1,35],jt=[1,36],Ct=[1,37],Ft=[1,57],_t=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],xt=[1,61],Gt=[1,60],Be=[1,62],Ot=[8,9,11,73,75],vn=[1,88],Pe=[1,93],Ee=[1,92],nn=[1,89],sn=[1,85],me=[1,91],Fe=[1,87],Qt=[1,94],Ae=[1,90],Se=[1,95],Dn=[1,86],oe=[8,9,10,11,73,75],Pr=[8,9,10,11,44,73,75],we=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Ri=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],yi=[42,58,86,99,102,103,106,108,111,112,113],da=[1,121],Ss=[1,120],Ra=[1,128],fr=[1,142],An=[1,143],Pn=[1,144],Bn=[1,145],Te=[1,130],be=[1,132],Qe=[1,136],rn=[1,137],yn=[1,138],ja=[1,139],mo=[1,140],vo=[1,141],ma=[1,146],$a=[1,147],gs=[1,126],Nu=[1,127],ta=[1,134],l1=[1,129],_2=[1,133],ll=[1,131],Ac=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],pc=[1,149],ka=[8,9,11],du=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],ea=[1,169],co=[1,165],bc=[1,166],oa=[1,170],va=[1,167],na=[1,168],Xl=[75,113,116],Hc=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Zw=[10,103],mh=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],_d=[1,235],b0=[1,233],Sd=[1,237],w0=[1,231],ag=[1,232],Yi=[1,234],cn=[1,236],Dr=[1,238],Si=[1,255],wc=[8,9,11,103],Fc=[8,9,10,11,58,81,102,103,106,107,108,109],vh={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeperator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,verticeStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING
|
|||
|
`+Ql.showPosition()+`
|
|||
|
Expecting `+g4.join(", ")+", got '"+(this.terminals_[q1]||q1)+"'":sy="Parse error on line "+(h1+1)+": Unexpected "+(q1==S8?"end of input":"'"+(this.terminals_[q1]||q1)+"'"),this.parseError(sy,{text:Ql.match,token:this.terminals_[q1]||q1,line:Ql.yylineno,loc:A8,expected:g4})}if(Md[0]instanceof Array&&Md.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ld+", token: "+q1);switch(Md[0]){case 1:Za.push(q1),gu.push(Ql.yytext),Le.push(Ql.yylloc),Za.push(Md[1]),q1=null,rp=Ql.yyleng,$e=Ql.yytext,h1=Ql.yylineno,A8=Ql.yylloc;break;case 2:if(cb=this.productions_[Md[1]][1],tm.$=gu[gu.length-cb],tm._$={first_line:Le[Le.length-(cb||1)].first_line,last_line:Le[Le.length-1].last_line,first_column:Le[Le.length-(cb||1)].first_column,last_column:Le[Le.length-1].last_column},A2&&(tm._$.range=[Le[Le.length-(cb||1)].range[0],Le[Le.length-1].range[1]]),L8=this.performAction.apply(tm,[$e,rp,h1,og.yy,Md[1],gu,Le].concat(f4)),typeof L8<"u")return L8;cb&&(Za=Za.slice(0,-1*cb*2),gu=gu.slice(0,-1*cb),Le=Le.slice(0,-1*cb)),Za.push(this.productions_[Md[1]][0]),gu.push(tm.$),Le.push(tm._$),Vx=ry[Za[Za.length-2]][Za[Za.length-1]],Za.push(Vx);break;case 3:return!0}}return!0}},Qc=function(){var Ad={EOF:1,parseError:function(Ls,Za){if(this.yy.parser)this.yy.parser.parseError(Ls,Za);else throw new Error(Ls)},setInput:function(ls,Ls){return this.yy=Ls||this.yy||{},this._input=ls,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ls=this._input[0];this.yytext+=ls,this.yyleng++,this.offset++,this.match+=ls,this.matched+=ls;var Ls=ls.match(/(?:\r\n?|\n).*/g);return Ls?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ls},unput:function(ls){var Ls=ls.length,Za=ls.split(/(?:\r\n?|\n)/g);this._input=ls+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ls),this.offset-=Ls;var _i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Za.length-1&&(this.yylineno-=Za.length-1);var gu=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Za?(Za.length===_i.length?this.yylloc.first_column:0)+_i[_i.length-Za.length].length-Za[0].length:this.yylloc.first_column-Ls},this.options.ranges&&(this.yylloc.range=[gu[0],gu[0]+this.yyleng-Ls]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ls){this.unput(this.match.slice(ls))},pastInput:function(){var ls=this.matched.substr(0,this.matched.length-this.match.length);return(ls.length>20?"...":"")+ls.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ls=this.match;return ls.length<20&&(ls+=this._input.substr(0,20-ls.length)),(ls.substr(0,20)+(ls.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ls=this.pastInput(),Ls=new Array(ls.length+1).join("-");return ls+this.upcomingInput()+`
|
|||
|
`+Ls+"^"},test_match:function(ls,Ls){var Za,_i,gu;if(this.options.backtrack_lexer&&(gu={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(gu.yylloc.range=this.yylloc.range.slice(0))),_i=ls[0].match(/(?:\r\n?|\n).*/g),_i&&(this.yylineno+=_i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_i?_i[_i.length-1].length-_i[_i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ls[0].length},this.yytext+=ls[0],this.match+=ls[0],this.matches=ls,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ls[0].length),this.matched+=ls[0],Za=this.performAction.call(this,this.yy,this,Ls,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Za)return Za;if(this._backtrack){for(var Le in gu)this[Le]=gu[Le];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ls,Ls,Za,_i;this._more||(this.yytext="",this.match="");for(var gu=this._currentRules(),Le=0;Le<gu.length;Le++)if(Za=this._input.match(this.rules[gu[Le]]),Za&&(!Ls||Za[0].length>Ls[0].length)){if(Ls=Za,_i=Le,this.options.backtrack_lexer){if(ls=this.test_match(Za,gu[Le]),ls!==!1)return ls;if(this._backtrack){Ls=!1;continue}else return!1}else if(!this.options.flex)break}return Ls?(ls=this.test_match(Ls,gu[_i]),ls!==!1?ls:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ls=this.next();return Ls||this.lex()},begin:function(Ls){this.conditionStack.push(Ls)},popState:function(){var Ls=this.conditionStack.length-1;return Ls>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ls){return Ls=this.conditionStack.length-1-Math.abs(Ls||0),Ls>=0?this.conditionStack[Ls]:"INITIAL"},pushState:function(Ls){this.begin(Ls)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ls,Za,_i,gu){switch(_i){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return Ls.lex.firstGraph()&&this.begin("dir"),12;case 30:return Ls.lex.firstGraph()&&this.begin("dir"),12;case 31:return Ls.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112
|
|||
|
|
|||
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|||
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|||
|
You have to call mermaid.initialize.`)},tRt=function(i,a,f){Wt.info("addLink (abc78)",i,a,f);let g,w;for(g=0;g<i.length;g++)for(w=0;w<a.length;w++)ZBt(i[g],a[w],f)},eRt=function(i,a){i.forEach(function(f){f==="default"?Xv.defaultInterpolate=a:Xv[f].interpolate=a})},nRt=function(i,a){i.forEach(function(f){if(f>=Xv.length)throw new Error(`The index ${f} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${Xv.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);f==="default"?Xv.defaultStyle=a:(ao.isSubstringInArray("fill",a)===-1&&a.push("fill:none"),Xv[f].style=a)})},rRt=function(i,a){i.split(",").forEach(function(f){uM[f]===void 0&&(uM[f]={id:f,styles:[],textStyles:[]}),a!=null&&a.forEach(function(g){if(g.match("color")){const w=g.replace("fill","bgFill").replace("color","fill");uM[f].textStyles.push(w)}uM[f].styles.push(g)})})},iRt=function(i){Ww=i,Ww.match(/.*</)&&(Ww="RL"),Ww.match(/.*\^/)&&(Ww="BT"),Ww.match(/.*>/)&&(Ww="LR"),Ww.match(/.*v/)&&(Ww="TB"),Ww==="TD"&&(Ww="TB")},FY=function(i,a){i.split(",").forEach(function(f){let g=f;Rl[g]!==void 0&&Rl[g].classes.push(a),MY[g]!==void 0&&MY[g].classes.push(a)})},HRe=function(i,a){i.split(",").forEach(function(f){a!==void 0&&(DY[OY==="gen-1"?OF(f):f]=NY(a))})},VRe=function(i,a,f){let g=OF(i);if(Re().securityLevel!=="loose"||a===void 0)return;let w=[];if(typeof f=="string"){w=f.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let v=0;v<w.length;v++){let b=w[v].trim();b.charAt(0)==='"'&&b.charAt(b.length-1)==='"'&&(b=b.substr(1,b.length-2)),w[v]=b}}w.length===0&&w.push(i),Rl[i]!==void 0&&(Rl[i].haveCallback=!0,PY.push(function(){const v=document.querySelector(`[id="${g}"]`);v!==null&&v.addEventListener("click",function(){ao.runFunc(a,...w)},!1)}))},sRt=function(i,a,f){i.split(",").forEach(function(g){Rl[g]!==void 0&&(Rl[g].link=ao.formatUrl(a,cM),Rl[g].linkTarget=f)}),FY(i,"clickable")},aRt=function(i){if(DY.hasOwnProperty(i))return DY[i]},oRt=function(i,a,f){i.split(",").forEach(function(g){VRe(g,a,f)}),FY(i,"clickable")},cRt=function(i){PY.forEach(function(a){a(i)})},uRt=function(){return Ww.trim()},lRt=function(){return Rl},hRt=function(){return Xv},fRt=function(){return uM},dRt=function(i){let a=xr(".mermaidTooltip");(a._groups||a)[0][0]===null&&(a=xr("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),xr(i).select("svg").selectAll("g.node").on("mouseover",function(){const w=xr(this);if(w.attr("title")===null)return;const b=this.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(w.attr("title")).style("left",window.scrollX+b.left+(b.right-b.left)/2+"px").style("top",window.scrollY+b.bottom+"px"),a.html(a.html().replace(/<br\/>/g,"<br/>")),w.classed("hover",!0)}).on("mouseout",function(){a.transition().duration(500).style("opacity",0),xr(this).classed("hover",!1)})};PY.push(dRt);const gRt=function(i="gen-1"){Rl={},uM={},Xv=[],PY=[dRt],Ix=[],MY={},IY=0,DY={},Zgt=!0,OY=i,cM=Re(),Wg()},pRt=i=>{OY=i||"gen-2"},bRt=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},wRt=function(i,a,f){let g=i.text.trim(),w=f.text;i===f&&f.text.match(/\s/)&&(g=void 0);function v(I){const B={boolean:{},number:{},string:{}},F=[];let R;return{nodeList:I.filter(function(X){const rt=typeof X;return X.stmt&&X.stmt==="dir"?(R=X.value,!1):X.trim()===""?!1:rt in B?B[rt].hasOwnProperty(X)?!1:B[rt][X]=!0:F.includes(X)?!1:F.push(X)}),dir:R}}let b=[];const{nodeList:E,dir:_}=v(b.concat.apply(b,a));if(b=E,OY==="gen-1")for(let I=0;I<b.length;I++)b[I]=OF(b[I]);g=g||"subGraph"+IY,w=w||"",w=NY(w),IY=IY+1;const S={id:g,nodes:b,title:w.trim(),classes:[],dir:_,labelType:f.type};return Wt.info("Adding",S.id,S.nodes,S.dir),S.nodes=_Rt(S,Ix).nodes,Ix.push(S),MY[g]=S,g},URe=function(i){for(const[a,f]of Ix.entries())if(f.id===i)return a;return-1};let PF=-1;const mRt=[],vRt=function(i,a){const f=Ix[a].nodes;if(PF=PF+1,PF>2e3)return;if(mRt[PF]=a,Ix[a].id===i)return{result:!0,count:0};let g=0,w=1;for(;g<f.length;){const v=URe(f[g]);if(v>=0){const b=vRt(i,v);if
|
|||
|
`),w=0;w<g.length;w++)f.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(g[w]);return a4(f,a.labelStyle),f}function xVe(i){for(var a="",f=!1,g,w=0;w<i.length;++w)if(g=i[w],f){switch(g){case"n":a+=`
|
|||
|
`;break;default:a+=g}f=!1}else g==="\\"?f=!0:a+=g;return a}function Cpt(i,a,f){var g=a.label,w=i.append("g");a.labelType==="svg"?vVe(w,a):typeof g!="string"||a.labelType==="html"?Tpt(w,a):yVe(w,a);var v=w.node().getBBox(),b;switch(f){case"top":b=-a.height/2;break;case"bottom":b=a.height/2-v.height;break;default:b=-v.height/2}return w.attr("transform","translate("+-v.width/2+","+b+")"),w}var _pt=function(i,a){var f=a.nodes().filter(function(v){return Fjt(a,v)}),g=i.selectAll("g.cluster").data(f,function(v){return v});Qv(g.exit(),a).style("opacity",0).remove();var w=g.enter().append("g").attr("class","cluster").attr("id",function(v){var b=a.node(v);return b.id}).style("opacity",0).each(function(v){var b=a.node(v),E=xr(this);xr(this).append("rect");var _=E.append("g").attr("class","label");Cpt(_,b,b.clusterLabelPos)});return g=g.merge(w),g=Qv(g,a).style("opacity",1),g.selectAll("rect").each(function(v){var b=a.node(v),E=xr(this);a4(E,b.style)}),g};function kVe(i){_pt=i}let Spt=function(i,a){var f=i.selectAll("g.edgeLabel").data(a.edges(),function(w){return Bjt(w)}).classed("update",!0);f.exit().remove(),f.enter().append("g").classed("edgeLabel",!0).style("opacity",0),f=i.selectAll("g.edgeLabel"),f.each(function(w){var v=xr(this);v.select(".label").remove();var b=a.edge(w),E=Cpt(v,a.edge(w),0).classed("label",!0),_=E.node().getBBox();b.labelId&&E.attr("id",b.labelId),oo(b,"width")||(b.width=_.width),oo(b,"height")||(b.height=_.height)});var g;return f.exit?g=f.exit():g=f.selectAll(null),Qv(g,a).style("opacity",0).remove(),f};function EVe(i){Spt=i}function jjt(i,a){return i.intersect(a)}var Apt=function(i,a,f){var g=i.selectAll("g.edgePath").data(a.edges(),function(b){return Bjt(b)}).classed("update",!0),w=AVe(g,a);LVe(g,a);var v=g.merge!==void 0?g.merge(w):g;return Qv(v,a).style("opacity",1),v.each(function(b){var E=xr(this),_=a.edge(b);_.elem=this,_.id&&E.attr("id",_.id),Rjt(E,_.class,(E.classed("update")?"update ":"")+"edgePath")}),v.selectAll("path.path").each(function(b){var E=a.edge(b);E.arrowheadId=UY("arrowhead");var _=xr(this).attr("marker-end",function(){return"url("+CVe(location.href,E.arrowheadId)+")"}).style("fill","none");Qv(_,a).attr("d",function(S){return _Ve(a,S)}),a4(_,E.style)}),v.selectAll("defs *").remove(),v.selectAll("defs").each(function(b){var E=a.edge(b),_=f[E.arrowhead];_(xr(this),E.arrowheadId,E,"arrowhead")}),v};function TVe(i){Apt=i}function CVe(i,a){var f=i.split("#")[0];return f+"#"+a}function _Ve(i,a){var f=i.edge(a),g=i.node(a.v),w=i.node(a.w),v=f.points.slice(1,f.points.length-1);return v.unshift(jjt(g,v[0])),v.push(jjt(w,v[v.length-1])),$jt(f,v)}function $jt(i,a){var f=(Cx||nAe.line)().x(function(g){return g.x}).y(function(g){return g.y});return(f.curve||f.interpolate)(i.curve),f(a)}function SVe(i){var a=i.getBBox(),f=i.ownerSVGElement.getScreenCTM().inverse().multiply(i.getScreenCTM()).translate(a.width/2,a.height/2);return{x:f.e,y:f.f}}function AVe(i,a){var f=i.enter().append("g").attr("class","edgePath").style("opacity",0);return f.append("path").attr("class","path").attr("d",function(g){var w=a.edge(g),v=a.node(g.v).elem,b=_9(w.points.length).map(function(){return SVe(v)});return $jt(w,b)}),f.append("defs"),f}function LVe(i,a){var f=i.exit();Qv(f,a).style("opacity",0).remove()}var Lpt=function(i,a,f){var g=a.nodes().filter(function(b){return!Fjt(a,b)}),w=i.selectAll("g.node").data(g,function(b){return b}).classed("update",!0);w.exit().remove(),w.enter().append("g").attr("class","node").style("opacity",0),w=i.selectAll("g.node"),w.each(function(b){var E=a.node(b),_=xr(this);Rjt(_,E.class,(_.classed("update")?"update ":"")+"node"),_.select("g.label").remove();var S=_.append("g").attr("class","label"),I=Cpt(S,E),B=f[E.shape],F=jF(I.node().getBBox(),"width","height");E.elem=this,E.id&&_.attr("id",E.id),E.labelId&&S.attr("id",E.labelId),oo(E,"width")&&(F.width=E.width),oo(E,"height")&&(F.height=E.height),F.width+=E.paddingLeft+E.paddingRight,F.height+=E.paddingTop+E.paddingBottom,S.attr("transform","translate("+(E.paddingLeft-E.paddingRight)/2+","+(E.paddingTop-E.paddingBottom)/2+")");var R
|
|||
|
`),b.style===void 0&&(I.style=I.style||"stroke: #333; stroke-width: 1.5px;fill:none"),I.labelStyle=I.labelStyle.replace("color:","fill:"))),I.id=E,I.class=_+" "+S,I.minlen=b.length||1,a.setEdge(f.db.lookUpDomId(b.start),f.db.lookUpDomId(b.end),I,g)})},XVe={setConf:YVe,addVertices:e$t,addEdges:n$t,getClasses:function(i,a){return Wt.info("Extracting classes"),a.db.getClasses()},draw:function(i,a,f,g){Wt.info("Drawing flowchart");const{securityLevel:w,flowchart:v}=Re();let b;w==="sandbox"&&(b=xr("#i"+a));const E=xr(w==="sandbox"?b.nodes()[0].contentDocument.body:"body"),_=w==="sandbox"?b.nodes()[0].contentDocument:document;let S=g.db.getDirection();S===void 0&&(S="TD");const I=v.nodeSpacing||50,B=v.rankSpacing||50,F=new R1({multigraph:!0,compound:!0}).setGraph({rankdir:S,nodesep:I,ranksep:B,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let R;const q=g.db.getSubGraphs();for(let gt=q.length-1;gt>=0;gt--)R=q[gt],g.db.addVertex(R.id,R.title,"group",void 0,R.classes);const X=g.db.getVertices();Wt.warn("Get vertices",X);const rt=g.db.getEdges();let at=0;for(at=q.length-1;at>=0;at--){R=q[at],SOt("cluster").append("text");for(let gt=0;gt<R.nodes.length;gt++)Wt.warn("Setting subgraph",R.nodes[gt],g.db.lookUpDomId(R.nodes[gt]),g.db.lookUpDomId(R.id)),F.setParent(g.db.lookUpDomId(R.nodes[gt]),g.db.lookUpDomId(R.id))}e$t(X,F,a,E,_,g),n$t(rt,F,g);const ut=new zVe;WVe.addToRender(ut),ut.arrows().none=function(ht,bt,Z,ft){const Et=ht.append("marker").attr("id",bt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");a4(Et,Z[ft+"Style"])},ut.arrows().normal=function(ht,bt){ht.append("marker").attr("id",bt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const pt=E.select(`[id="${a}"]`),yt=E.select("#"+a+" g");for(ut(yt,F),yt.selectAll("g.node").attr("title",function(){return g.db.getTooltip(this.id)}),g.db.indexNodes("subGraph"+at),at=0;at<q.length;at++)if(R=q[at],R.title!=="undefined"){const gt=_.querySelectorAll("#"+a+' [id="'+g.db.lookUpDomId(R.id)+'"] rect'),ht=_.querySelectorAll("#"+a+' [id="'+g.db.lookUpDomId(R.id)+'"]'),bt=gt[0].x.baseVal.value,Z=gt[0].y.baseVal.value,ft=gt[0].width.baseVal.value,Et=xr(ht[0]).select(".label");Et.attr("transform",`translate(${bt+ft/2}, ${Z+14})`),Et.attr("id",a+"Text");for(let V=0;V<R.classes.length;V++)ht[0].classList.add(R.classes[V])}if(!v.htmlLabels){const gt=_.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const ht of gt){const bt=ht.getBBox(),Z=_.createElementNS("http://www.w3.org/2000/svg","rect");Z.setAttribute("rx",0),Z.setAttribute("ry",0),Z.setAttribute("width",bt.width),Z.setAttribute("height",bt.height),ht.insertBefore(Z,ht.firstChild)}}g8(F,pt,v.diagramPadding,v.useMaxWidth),Object.keys(X).forEach(function(gt){const ht=X[gt];if(ht.link){const bt=E.select("#"+a+' [id="'+g.db.lookUpDomId(gt)+'"]');if(bt){const Z=_.createElementNS("http://www.w3.org/2000/svg","a");Z.setAttributeNS("http://www.w3.org/2000/svg","class",ht.classes.join(" ")),Z.setAttributeNS("http://www.w3.org/2000/svg","href",ht.link),Z.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),w==="sandbox"?Z.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ht.linkTarget&&Z.setAttributeNS("http://www.w3.org/2000/svg","target",ht.linkTarget);const ft=bt.insert(function(){return Z},":first-child"),Y=bt.select(".label-container");Y&&ft.append(function(){return Y.node()});const Et=bt.select(".label");Et&&ft.append(function(){return Et.node()})}}})}};function Fx(i){var a={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:QVe(i),edges:JVe(i)};return xf(i.graph())||(a.value=U$e(i.graph())),a}function QVe(i){return c1(i.nodes(),function(a){var f=i.node(a),g
|
|||
|
`;break}case-3:{b=`\r
|
|||
|
`;break}case-2:{b=a?" ":" ";break}case-1:{if(!a&&w)continue;b=" ";break}default:b=String.fromCharCode(v)}w=v===-2,g.push(b)}return g.join("")}const HGe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:UUe},disable:{null:[]},document:{42:ab,43:ab,45:ab,48:ab,49:ab,50:ab,51:ab,52:ab,53:ab,54:ab,55:ab,56:ab,57:ab,62:l$t},flow:{35:QUe,42:WY,45:[x$t,WY],60:eGe,61:x$t,95:WY,96:p$t,126:p$t},flowInitial:{[-2]:Bpt,[-1]:Bpt,32:Bpt},insideSpan:{null:[Npt,FGe]},string:{38:d$t,92:h$t},text:{[-5]:jpt,[-4]:jpt,[-3]:jpt,33:vGe,38:d$t,42:Npt,60:[kUe,cGe],91:xGe,92:[YUe,h$t],93:Rpt,95:Npt,96:NUe}},Symbol.toStringTag,{value:"Module"}));function VGe(i){const f=aUe([HGe,...(i||{}).extensions||[]]),g={defined:[],lazy:{},constructs:f,content:w(pUe),document:w(wUe),flow:w(PGe),string:w(BGe),text:w(RGe)};return g;function w(v){return b;function b(E){return $Ge(g,v,E)}}}const T$t=/[\0\t\n\r]/g;function UGe(){let i=1,a="",f=!0,g;return w;function w(v,b,E){const _=[];let S,I,B,F,R;for(v=a+v.toString(b),B=0,a="",f&&(v.charCodeAt(0)===65279&&B++,f=void 0);B<v.length;){if(T$t.lastIndex=B,S=T$t.exec(v),F=S&&S.index!==void 0?S.index:v.length,R=v.charCodeAt(F),!S){a=v.slice(B);break}if(R===10&&B===F&&g)_.push(-3),g=void 0;else switch(g&&(_.push(-5),g=void 0),B<F&&(_.push(v.slice(B,F)),i+=F-B),R){case 0:{_.push(65533),i++;break}case 9:{for(I=Math.ceil(i/4)*4,_.push(-2);i++<I;)_.push(-1);break}case 10:{_.push(-4),i=1;break}default:g=!0,i=1}B=F+1}return E&&(g&&_.push(-5),a&&_.push(a),_.push(null)),_}}function GGe(i){for(;!b$t(i););return i}function C$t(i,a){const f=Number.parseInt(i,a);return f<9||f===11||f>13&&f<32||f>126&&f<160||f>55295&&f<57344||f>64975&&f<65008||(f&65535)===65535||(f&65535)===65534||f>1114111?"<22>":String.fromCharCode(f)}const KGe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function WGe(i){return i.replace(KGe,YGe)}function YGe(i,a,f){if(a)return a;if(f.charCodeAt(0)===35){const w=f.charCodeAt(1),v=w===120||w===88;return C$t(f.slice(v?2:1),v?16:10)}return Fpt(f)||i}function YY(i){return!i||typeof i!="object"?"":"position"in i||"type"in i?_$t(i.position):"start"in i||"end"in i?_$t(i):"line"in i||"column"in i?$pt(i):""}function $pt(i){return S$t(i&&i.line)+":"+S$t(i&&i.column)}function _$t(i){return $pt(i&&i.start)+"-"+$pt(i&&i.end)}function S$t(i){return i&&typeof i=="number"?i:1}const A$t={}.hasOwnProperty,L$t=function(i,a,f){return typeof a!="string"&&(f=a,a=void 0),XGe(f)(GGe(VGe(f).document().write(UGe()(i,a,!0))))};function XGe(i){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:E(da),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:E(Pr),blockQuote:E(Qt),characterEscape:Y,characterReference:Y,codeFenced:E(Ae),codeFencedFenceInfo:_,codeFencedFenceMeta:_,codeIndented:E(Ae,_),codeText:E(Se,_),codeTextData:Y,data:Y,codeFlowValue:Y,definition:E(Dn),definitionDestinationString:_,definitionLabelString:_,definitionTitleString:_,emphasis:E(oe),hardBreakEscape:E(we),hardBreakTrailing:E(we),htmlFlow:E(Ri,_),htmlFlowData:Y,htmlText:E(Ri,_),htmlTextData:Y,image:E(yi),label:_,link:E(da),listItem:E(Ra),listItemValue:q,listOrdered:E(Ss,R),listUnordered:E(Ss),paragraph:E(fr),reference:Pe,referenceString:_,resourceDestinationString:_,resourceTitleString:_,setextHeading:E(Pr),strong:E(An),thematicBreak:E(Bn)},exit:{atxHeading:I(),atxHeadingSequence:ht,autolink:I(),autolinkEmail:Fe,autolinkProtocol:me,blockQuote:I(),characterEscapeValue:Et,characterReferenceMarkerHexadecimal:nn,characterReferenceMarkerNumeric:nn,characterReferenceValue:sn,codeFenced:I(ut),codeFencedFence:at,codeFencedFenceInfo:X,codeFencedFenceMeta:rt,codeFlowValue:Et,codeIndented:I(pt),codeText:I(Ct),codeTextData:Et,data:Et,definition:I(),definitionDestinationString:gt,definitionLabelString:yt,definitionTitleString:mt,emphasis:I(),hardBreakEscape:I(Nt),hardBreakTrailing:I(Nt),htmlFlow:I(Dt),htmlFlowData:Et,htmlText:I(jt),htmlTextData:Et,image:I(_t),label:Gt,labelText:xt,lineEnding:V,link:I(Ft),listItem:I(),listOrdered:I(),listUnordered:I(),paragraph:
|
|||
|
`);return SL(a)}function ZGe(i){const a=JGe(i),{children:f}=L$t(a),g=[[]];let w=0;function v(b,E="normal"){b.type==="text"?b.value.split(`
|
|||
|
`).forEach((S,I)=>{I!==0&&(w++,g.push([])),S.split(" ").forEach(B=>{B&&g[w].push({content:B,type:E})})}):(b.type==="strong"||b.type==="emphasis")&&b.children.forEach(_=>{v(_,b.type)})}return f.forEach(b=>{b.type==="paragraph"&&b.children.forEach(E=>{v(E)})}),g}function tKe(i){const{children:a}=L$t(i);function f(g){return g.type==="text"?g.value.replace(/\n/g,"<br/>"):g.type==="strong"?`<strong>${g.children.map(f).join("")}</strong>`:g.type==="emphasis"?`<em>${g.children.map(f).join("")}</em>`:g.type==="paragraph"?`<p>${g.children.map(f).join("")}</p>`:`Unsupported markdown: ${g.type}`}return a.map(f).join("")}function eKe(i){return Intl.Segmenter?[...new Intl.Segmenter().segment(i)].map(a=>a.segment):[...i]}function nKe(i,a){const f=eKe(a.content);return I$t(i,[],f,a.type)}function I$t(i,a,f,g){if(f.length===0)return[{content:a.join(""),type:g},{content:"",type:g}];const[w,...v]=f,b=[...a,w];return i([{content:b.join(""),type:g}])?I$t(i,b,v,g):(a.length===0&&w&&(a.push(w),f.shift()),[{content:a.join(""),type:g},{content:f.join(""),type:g}])}function rKe(i,a){if(i.some(({content:f})=>f.includes(`
|
|||
|
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return zpt(i,a)}function zpt(i,a,f=[],g=[]){if(i.length===0)return g.length>0&&f.push(g),f.length>0?f:[];let w="";i[0].content===" "&&(w=" ",i.shift());const v=i.shift()??{content:" ",type:"normal"},b=[...g];if(w!==""&&b.push({content:w,type:"normal"}),b.push(v),a(b))return zpt(i,a,f,b);if(g.length>0)f.push(g),i.unshift(v);else if(v.content){const[E,_]=nKe(a,v);f.push([E]),_.content&&i.unshift(_)}return zpt(i,a,f)}function iKe(i,a){a&&i.attr("style",a)}function sKe(i,a,f,g,w=!1){const v=i.append("foreignObject"),b=v.append("xhtml:div"),E=a.label,_=a.isNode?"nodeLabel":"edgeLabel";b.html(`
|
|||
|
<span class="${_} ${g}" `+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+E+"</span>"),iKe(b,a.labelStyle),b.style("display","table-cell"),b.style("white-space","nowrap"),b.style("max-width",f+"px"),b.attr("xmlns","http://www.w3.org/1999/xhtml"),w&&b.attr("class","labelBkg");let S=b.node().getBoundingClientRect();return S.width===f&&(b.style("display","table"),b.style("white-space","break-spaces"),b.style("width",f+"px"),S=b.node().getBoundingClientRect()),v.style("width",S.width),v.style("height",S.height),v.node()}function qpt(i,a,f){return i.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",a*f-.1+"em").attr("dy",f+"em")}function aKe(i,a,f){const g=i.append("text"),w=qpt(g,1,a);Hpt(w,f);const v=w.node().getComputedTextLength();return g.remove(),v}function oKe(i,a,f){var b;const g=i.append("text"),w=qpt(g,1,a);Hpt(w,[{content:f,type:"normal"}]);const v=(b=w.node())==null?void 0:b.getBoundingClientRect();return v&&g.remove(),v}function cKe(i,a,f,g=!1){const v=a.append("g"),b=v.insert("rect").attr("class","background"),E=v.append("text").attr("y","-10.1");let _=0;for(const S of f){const I=F=>aKe(v,1.1,F)<=i,B=I(S)?[S]:rKe(S,I);for(const F of B){const R=qpt(E,_,1.1);Hpt(R,F),_++}}if(g){const S=E.node().getBBox(),I=2;return b.attr("x",-I).attr("y",-I).attr("width",S.width+2*I).attr("height",S.height+2*I),v.node()}else return E.node()}function Hpt(i,a){i.text(""),a.forEach((f,g)=>{const w=i.append("tspan").attr("font-style",f.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",f.type==="strong"?"bold":"normal");g===0?w.text(f.content):w.text(" "+f.content)})}const XY=(i,a="",{style:f="",isTitle:g=!1,classes:w="",useHtmlLabels:v=!0,isNode:b=!0,width:E=200,addSvgBackground:_=!1}={})=>{if(Wt.info("createText",a,f,g,w,v,b,_),v){const S=tKe(a),I={isNode:b,label:CF(S).replace(/fa[blrs]?:fa-[\w-]+/g,F=>`<i class='${F.replace(":"," ")}'></i>`),labelStyle:f.replace("fill:","color:")};return sKe(i,I,E,w,_)}else{const S=ZGe(a);return cKe(E,i,S,_)}},f0=async(i,a,f,g)=>{let w;const v=a.useHtmlLabels||B1(Re().flowchart.htmlLabels);f?w=f:w="node default";const b=i.insert("g").attr("class",w).attr("id",a.domId||a.id),E=b.insert("g").attr("class","label").attr("style",a.labelStyle);let _;a.labelText===void 0?_="":_=typeof a.labelText=="string"?a.labelText:a.labelText[0];const S=E.node();let I;a.labelType==="markdown"?I=XY(E,Ed(CF(_),Re()),{useHtmlLabels:v,width:a.width||Re().flowchart.wrappingWidth,classes:"markdown-node-label"}):I=S.appendChild(ib(Ed(CF(_),Re()),a.labelStyle,!1,g));let B=I.getBBox();const F=a.padding/2;if(B1(Re().flowchart.htmlLabels)){const R=I.children[0],q=xr(I),X=R.getElementsByTagName("img");if(X){const rt=_.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...X].map(at=>new Promise(ut=>{function pt(){if(at.style.display="flex",at.style.flexDirection="column",rt){const yt=Re().fontSize?Re().fontSize:window.getComputedStyle(document.body).fontSize,mt=5,gt=parseInt(yt,10)*mt+"px";at.style.minWidth=gt,at.style.maxWidth=gt}else at.style.width="100%";ut(at)}setTimeout(()=>{at.complete&&pt()}),at.addEventListener("error",pt),at.addEventListener("load",pt)})))}B=R.getBoundingClientRect(),q.attr("width",B.width),q.attr("height",B.height)}return v?E.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"):E.attr("transform","translate(0, "+-B.height/2+")"),a.centerLabel&&E.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),E.insert("rect",":first-child"),{shapeSvg:b,bbox:B,halfPadding:F,label:E}},kf=(i,a)=>{const f=a.node().getBBox();i.width=f.width,i.height=f.height};function Bx(i,a,f,g){return i.insert("polygon",":first-child").attr("points",g.map(function(w){return w.x+","+w.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-a/2+","+f/2+")")}let sc={},Zv={},O$t={};const uKe=()=>{Zv={},O$t={},sc={}},QY=(i,a)=>(Wt.trace("In isDecendant",a," ",i," = ",Zv[a].includes(i)),!!Zv[a].includes(i)),lKe=(i,a)=>(Wt.info("Decendants of ",a," is ",Zv[a]),Wt.info("Edge is ",i),i.v===a||i.w===a?!1:Zv[a]?Zv[a].includes(i.v)||QY(
|
|||
|
outsidePoint: ${JSON.stringify(a)}
|
|||
|
insidePoint : ${JSON.stringify(f)}
|
|||
|
node : x:${i.x} y:${i.y} w:${i.width} h:${i.height}`);const g=i.x,w=i.y,v=Math.abs(g-f.x),b=i.width/2;let E=f.x<a.x?b-v:b+v;const _=i.height/2,S=Math.abs(a.y-f.y),I=Math.abs(a.x-f.x);if(Math.abs(w-a.y)*b>Math.abs(g-a.x)*_){let B=f.y<a.y?a.y-_-w:w-_-a.y;E=I*B/S;const F={x:f.x<a.x?f.x+E:f.x-I+E,y:f.y<a.y?f.y+S-B:f.y-S+B};return E===0&&(F.x=a.x,F.y=a.y),I===0&&(F.x=a.x),S===0&&(F.y=a.y),Wt.warn(`abc89 topp/bott calc, Q ${S}, q ${B}, R ${I}, r ${E}`,F),F}else{f.x<a.x?E=a.x-b-g:E=g-b-a.x;let B=S*E/I,F=f.x<a.x?f.x+I-E:f.x-I+E,R=f.y<a.y?f.y+B:f.y-B;return Wt.warn(`sides calc abc89, Q ${S}, q ${B}, R ${I}, r ${E}`,{_x:F,_y:R}),E===0&&(F=a.x,R=a.y),I===0&&(F=a.x),S===0&&(R=a.y),{x:F,y:R}}},J$t=(i,a)=>{Wt.warn("abc88 cutPathAtIntersect",i,a);let f=[],g=i[0],w=!1;return i.forEach(v=>{if(Wt.info("abc88 checking point",v,a),!HKe(a,v)&&!w){const b=VKe(a,g,v);Wt.warn("abc88 inside",v,g,b),Wt.warn("abc88 intersection",b);let E=!1;f.forEach(_=>{E=E||_.x===b.x&&_.y===b.y}),f.some(_=>_.x===b.x&&_.y===b.y)?Wt.warn("abc88 no intersect",b,f):f.push(b),w=!0}else Wt.warn("abc88 outside",v,g),g=v,w||f.push(v)}),Wt.warn("abc88 returning points",f),f},UKe=function(i,a,f,g,w,v,b){let E=f.points,_=!1;const S=v.node(a.v);var I=v.node(a.w);Wt.info("abc88 InsertEdge: ",f),I.intersect&&S.intersect&&(E=E.slice(1,f.points.length-1),E.unshift(S.intersect(E[0])),Wt.info("Last point",E[E.length-1],I,I.intersect(E[E.length-1])),E.push(I.intersect(E[E.length-1]))),f.toCluster&&(Wt.info("to cluster abc88",g[f.toCluster]),E=J$t(f.points,g[f.toCluster].node),_=!0),f.fromCluster&&(Wt.info("from cluster abc88",g[f.fromCluster]),E=J$t(E.reverse(),g[f.fromCluster].node).reverse(),_=!0);const B=E.filter(yt=>!Number.isNaN(yt.y));let F=lF;f.curve&&(w==="graph"||w==="flowchart")&&(F=f.curve);const{x:R,y:q}=W$t(f),X=Cx().x(R).y(q).curve(F);let rt;switch(f.thickness){case"normal":rt="edge-thickness-normal";break;case"thick":rt="edge-thickness-thick";break;case"invisible":rt="edge-thickness-thick";break;default:rt=""}switch(f.pattern){case"solid":rt+=" edge-pattern-solid";break;case"dotted":rt+=" edge-pattern-dotted";break;case"dashed":rt+=" edge-pattern-dashed";break}const at=i.append("path").attr("d",X(B)).attr("id",f.id).attr("class"," "+rt+(f.classes?" "+f.classes:"")).attr("style",f.style);let ut="";(Re().flowchart.arrowMarkerAbsolute||Re().state.arrowMarkerAbsolute)&&(ut=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,ut=ut.replace(/\(/g,"\\("),ut=ut.replace(/\)/g,"\\)")),Wt.info("arrowTypeStart",f.arrowTypeStart),Wt.info("arrowTypeEnd",f.arrowTypeEnd),Y$t(at,f,ut,b,w);let pt={};return _&&(pt.updatedPath=E),pt.originalPath=f.points,pt},Z$t=async(i,a,f,g,w)=>{Wt.info("Graph in recursive render: XXX",Fx(a),w);const v=a.graph().rankdir;Wt.trace("Dir in recursive render - dir:",v);const b=i.insert("g").attr("class","root");a.nodes()?Wt.info("Recursive render XXX",a.nodes()):Wt.info("No nodes found for",a),a.edges().length>0&&Wt.trace("Recursive edges",a.edge(a.edges()[0]));const E=b.insert("g").attr("class","clusters"),_=b.insert("g").attr("class","edgePaths"),S=b.insert("g").attr("class","edgeLabels"),I=b.insert("g").attr("class","nodes");await Promise.all(a.nodes().map(async function(F){const R=a.node(F);if(w!==void 0){const q=JSON.parse(JSON.stringify(w.clusterData));Wt.info("Setting data for cluster XXX (",F,") ",q,w),a.setNode(w.id,q),a.parent(F)||(Wt.trace("Setting parent",F,w.id),a.setParent(F,w.id,q))}if(Wt.info("(Insert) Node XXX"+F+": "+JSON.stringify(a.node(F))),R&&R.clusterNode){Wt.info("Cluster identified",F,R.width,a.node(F));const q=await Z$t(I,R.graph,f,g,a.node(F)),X=q.elem;kf(R,X),R.diff=q.diff||0,Wt.info("Node bounds (abc123)",F,R,R.width,R.x,R.y),NKe(X,R),Wt.warn("Recursive render complete ",X,R)}else a.children(F).length>0?(Wt.info("Cluster - the non recursive path XXX",F,R.id,R,a),Wt.info(GF(R.id,a)),sc[R.id]={id:GF(R.id,a),node:R}):(Wt.info("Node - the non recursive path",F,R.id,R),await U$t(I,a.node(F),v))})),a.edges().forEach(function(F){const R=a.edge(F.v,F.w,F.name);Wt.info("Edge "+F.v
|
|||
|
`),E.style===void 0&&(F.style=F.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),F.labelStyle=F.labelStyle.replace("color:","fill:"),F.id=S,F.classes="flowchart-link "+I+" "+B,a.setEdge(E.start,E.end,F,g)})},Upt={setConf:GKe,addVertices:ezt,addEdges:nzt,getClasses:function(i,a){return a.db.getClasses()},draw:async function(i,a,f,g){Wt.info("Drawing flowchart");let w=g.db.getDirection();w===void 0&&(w="TD");const{securityLevel:v,flowchart:b}=Re(),E=b.nodeSpacing||50,_=b.rankSpacing||50;let S;v==="sandbox"&&(S=xr("#i"+a));const I=xr(v==="sandbox"?S.nodes()[0].contentDocument.body:"body"),B=v==="sandbox"?S.nodes()[0].contentDocument:document,F=new R1({multigraph:!0,compound:!0}).setGraph({rankdir:w,nodesep:E,ranksep:_,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let R;const q=g.db.getSubGraphs();Wt.info("Subgraphs - ",q);for(let mt=q.length-1;mt>=0;mt--)R=q[mt],Wt.info("Subgraph - ",R),g.db.addVertex(R.id,{text:R.title,type:R.labelType},"group",void 0,R.classes,R.dir);const X=g.db.getVertices(),rt=g.db.getEdges();Wt.info("Edges",rt);let at=0;for(at=q.length-1;at>=0;at--){R=q[at],SOt("cluster").append("text");for(let mt=0;mt<R.nodes.length;mt++)Wt.info("Setting up subgraphs",R.nodes[mt],R.id),F.setParent(R.nodes[mt],R.id)}ezt(X,F,a,I,B,g),nzt(rt,F);const ut=I.select(`[id="${a}"]`),pt=I.select("#"+a+" g");if(await Vpt(pt,F,["point","circle","cross"],"flowchart",a),ao.insertTitle(ut,"flowchartTitleText",b.titleTopMargin,g.db.getDiagramTitle()),g8(F,ut,b.diagramPadding,b.useMaxWidth),g.db.indexNodes("subGraph"+at),!b.htmlLabels){const mt=B.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const gt of mt){const ht=gt.getBBox(),bt=B.createElementNS("http://www.w3.org/2000/svg","rect");bt.setAttribute("rx",0),bt.setAttribute("ry",0),bt.setAttribute("width",ht.width),bt.setAttribute("height",ht.height),gt.insertBefore(bt,gt.firstChild)}}Object.keys(X).forEach(function(mt){const gt=X[mt];if(gt.link){const ht=xr("#"+a+' [id="'+mt+'"]');if(ht){const bt=B.createElementNS("http://www.w3.org/2000/svg","a");bt.setAttributeNS("http://www.w3.org/2000/svg","class",gt.classes.join(" ")),bt.setAttributeNS("http://www.w3.org/2000/svg","href",gt.link),bt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),v==="sandbox"?bt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):gt.linkTarget&&bt.setAttributeNS("http://www.w3.org/2000/svg","target",gt.linkTarget);const Z=ht.insert(function(){return bt},":first-child"),ft=ht.select(".label-container");ft&&Z.append(function(){return ft.node()});const Y=ht.select(".label");Y&&Z.append(function(){return Y.node()})}}})}},KKe=(i,a)=>{const f=KMe,g=f(i,"r"),w=f(i,"g"),v=f(i,"b");return qL(g,w,v,a)},rzt=i=>`.label {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
}
|
|||
|
.cluster-label text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
.cluster-label span,p {
|
|||
|
color: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.label text,span,p {
|
|||
|
fill: ${i.nodeTextColor||i.textColor};
|
|||
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
}
|
|||
|
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
.flowchart-label text {
|
|||
|
text-anchor: middle;
|
|||
|
}
|
|||
|
// .flowchart-label .text-outer-tspan {
|
|||
|
// text-anchor: middle;
|
|||
|
// }
|
|||
|
// .flowchart-label .text-inner-tspan {
|
|||
|
// text-anchor: start;
|
|||
|
// }
|
|||
|
|
|||
|
.node .label {
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
.node.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
.arrowheadPath {
|
|||
|
fill: ${i.arrowheadColor};
|
|||
|
}
|
|||
|
|
|||
|
.edgePath .path {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 2.0px;
|
|||
|
}
|
|||
|
|
|||
|
.flowchart-link {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel {
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
rect {
|
|||
|
opacity: 0.5;
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
fill: ${i.edgeLabelBackground};
|
|||
|
}
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
|
|||
|
/* For html labels only */
|
|||
|
.labelBkg {
|
|||
|
background-color: ${KKe(i.edgeLabelBackground,.5)};
|
|||
|
// background-color:
|
|||
|
}
|
|||
|
|
|||
|
.cluster rect {
|
|||
|
fill: ${i.clusterBkg};
|
|||
|
stroke: ${i.clusterBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.cluster text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.cluster span,p {
|
|||
|
color: ${i.titleColor};
|
|||
|
}
|
|||
|
/* .cluster div {
|
|||
|
color: ${i.titleColor};
|
|||
|
} */
|
|||
|
|
|||
|
div.mermaidTooltip {
|
|||
|
position: absolute;
|
|||
|
text-align: center;
|
|||
|
max-width: 200px;
|
|||
|
padding: 2px;
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: 12px;
|
|||
|
background: ${i.tertiaryColor};
|
|||
|
border: 1px solid ${i.border2};
|
|||
|
border-radius: 2px;
|
|||
|
pointer-events: none;
|
|||
|
z-index: 100;
|
|||
|
}
|
|||
|
|
|||
|
.flowchartTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
`,WKe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Jgt,db:E9,renderer:Upt,styles:rzt,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,XVe.setConf(i.flowchart),E9.clear(),E9.setGen("gen-1")}}},Symbol.toStringTag,{value:"Module"})),YKe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Jgt,db:E9,renderer:Upt,styles:rzt,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,WPe({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}}),Upt.setConf(i.flowchart),E9.clear(),E9.setGen("gen-2")}}},Symbol.toStringTag,{value:"Module"}));var Gpt=function(){var i=function(bt,Z,ft,Y){for(ft=ft||{},Y=bt.length;Y--;ft[bt[Y]]=Z);return ft},a=[6,8,10,20,22,24,26,27,28],f=[1,10],g=[1,11],w=[1,12],v=[1,13],b=[1,14],E=[1,15],_=[1,21],S=[1,22],I=[1,23],B=[1,24],F=[1,25],R=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],q=[1,34],X=[27,28,46,47],rt=[41,42,43,44,45],at=[17,34],ut=[1,54],pt=[1,53],yt=[17,34,36,38],mt={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(Z,ft,Y,Et,V,Nt,Dt){var jt=Nt.length-1;switch(V){case 1:break;case 2:this.$=[];break;case 3:Nt[jt-1].push(Nt[jt]),this.$=Nt[jt-1];break;case 4:case 5:this.$=Nt[jt];break;case 6:case 7:this.$=[];break;case 8:Et.addEntity(Nt[jt-4]),Et.addEntity(Nt[jt-2]),Et.addRelationship(Nt[jt-4],Nt[jt],Nt[jt-2],Nt[jt-3]);break;case 9:Et.addEntity(Nt[jt-3]),Et.addAttributes(Nt[jt-3],Nt[jt-1]);break;case 10:Et.addEntity(Nt[jt-2]);break;case 11:Et.addEntity(Nt[jt]);break;case 12:Et.addEntity(Nt[jt-6],Nt[jt-4]),Et.addAttributes(Nt[jt-6],Nt[jt-1]);break;case 13:Et.addEntity(Nt[jt-5],Nt[jt-3]);break;case 14:Et.addEntity(Nt[jt-3],Nt[jt-1]);break;case 15:case 16:this.$=Nt[jt].trim(),Et.setAccTitle(this.$);break;case 17:case 18:this.$=Nt[jt].trim(),Et.setAccDescription(this.$);break;case 19:case 43:this.$=Nt[jt];break;case 20:case 41:case 42:this.$=Nt[jt].replace(/"/g,"");break;case 21:case 29:this.$=[Nt[jt]];break;case 22:Nt[jt].push(Nt[jt-1]),this.$=Nt[jt];break;case 23:this.$={attributeType:Nt[jt-1],attributeName:Nt[jt]};break;case 24:this.$={attributeType:Nt[jt-2],attributeName:Nt[jt-1],attributeKeyTypeList:Nt[jt]};break;case 25:this.$={attributeType:Nt[jt-2],attributeName:Nt[jt-1],attributeComment:Nt[jt]};break;case 26:this.$={attributeType:Nt[jt-3],attributeName:Nt[jt-2],attributeKeyTypeList:Nt[jt-1],attributeComment:Nt[jt]};break;case 27:case 28:case 31:this.$=Nt[jt];break;case 30:Nt[jt-2].push(Nt[jt]),this.$=Nt[jt-2];break;case 32:this.$=Nt[jt].replace(/"/g,"");break;case 33:this.$={cardA:Nt[jt],relType:Nt[jt-1],cardB:Nt[jt-2]};break;case 34:this.$=Et.Cardinality.ZER
|
|||
|
`+Be.showPosition()+`
|
|||
|
Expecting `+Pr.join(", ")+", got '"+(this.terminals_[sn]||sn)+"'":we="Parse error on line "+(Ct+1)+": Unexpected "+(sn==xt?"end of input":"'"+(this.terminals_[sn]||sn)+"'"),this.parseError(we,{text:Be.match,token:this.terminals_[sn]||sn,line:Be.yylineno,loc:Pe,expected:Pr})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+me+", token: "+sn);switch(Fe[0]){case 1:Y.push(sn),V.push(Be.yytext),Nt.push(Be.yylloc),Y.push(Fe[1]),sn=null,Ft=Be.yyleng,jt=Be.yytext,Ct=Be.yylineno,Pe=Be.yylloc;break;case 2:if(Dn=this.productions_[Fe[1]][1],Ae.$=V[V.length-Dn],Ae._$={first_line:Nt[Nt.length-(Dn||1)].first_line,last_line:Nt[Nt.length-1].last_line,first_column:Nt[Nt.length-(Dn||1)].first_column,last_column:Nt[Nt.length-1].last_column},Ee&&(Ae._$.range=[Nt[Nt.length-(Dn||1)].range[0],Nt[Nt.length-1].range[1]]),Qt=this.performAction.apply(Ae,[jt,Ft,Ct,Ot.yy,Fe[1],V,Nt].concat(Gt)),typeof Qt<"u")return Qt;Dn&&(Y=Y.slice(0,-1*Dn*2),V=V.slice(0,-1*Dn),Nt=Nt.slice(0,-1*Dn)),Y.push(this.productions_[Fe[1]][0]),V.push(Ae.$),Nt.push(Ae._$),oe=Dt[Y[Y.length-2]][Y[Y.length-1]],Y.push(oe);break;case 3:return!0}}return!0}},gt=function(){var bt={EOF:1,parseError:function(ft,Y){if(this.yy.parser)this.yy.parser.parseError(ft,Y);else throw new Error(ft)},setInput:function(Z,ft){return this.yy=ft||this.yy||{},this._input=Z,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Z=this._input[0];this.yytext+=Z,this.yyleng++,this.offset++,this.match+=Z,this.matched+=Z;var ft=Z.match(/(?:\r\n?|\n).*/g);return ft?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Z},unput:function(Z){var ft=Z.length,Y=Z.split(/(?:\r\n?|\n)/g);this._input=Z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ft),this.offset-=ft;var Et=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Y.length-1&&(this.yylineno-=Y.length-1);var V=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Y?(Y.length===Et.length?this.yylloc.first_column:0)+Et[Et.length-Y.length].length-Y[0].length:this.yylloc.first_column-ft},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-ft]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Z){this.unput(this.match.slice(Z))},pastInput:function(){var Z=this.matched.substr(0,this.matched.length-this.match.length);return(Z.length>20?"...":"")+Z.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Z=this.match;return Z.length<20&&(Z+=this._input.substr(0,20-Z.length)),(Z.substr(0,20)+(Z.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Z=this.pastInput(),ft=new Array(Z.length+1).join("-");return Z+this.upcomingInput()+`
|
|||
|
`+ft+"^"},test_match:function(Z,ft){var Y,Et,V;if(this.options.backtrack_lexer&&(V={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(V.yylloc.range=this.yylloc.range.slice(0))),Et=Z[0].match(/(?:\r\n?|\n).*/g),Et&&(this.yylineno+=Et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Et?Et[Et.length-1].length-Et[Et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Z[0].length},this.yytext+=Z[0],this.match+=Z[0],this.matches=Z,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Z[0].length),this.matched+=Z[0],Y=this.performAction.call(this,this.yy,this,ft,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Y)return Y;if(this._backtrack){for(var Nt in V)this[Nt]=V[Nt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Z,ft,Y,Et;this._more||(this.yytext="",this.match="");for(var V=this._currentRules(),Nt=0;Nt<V.length;Nt++)if(Y=this._input.match(this.rules[V[Nt]]),Y&&(!ft||Y[0].length>ft[0].length)){if(ft=Y,Et=Nt,this.options.backtrack_lexer){if(Z=this.test_match(Y,V[Nt]),Z!==!1)return Z;if(this._backtrack){ft=!1;continue}else return!1}else if(!this.options.flex)break}return ft?(Z=this.test_match(ft,V[Et]),Z!==!1?Z:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ft=this.next();return ft||this.lex()},begin:function(ft){this.conditionStack.push(ft)},popState:function(){var ft=this.conditionStack.length-1;return ft>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ft){return ft=this.conditionStack.length-1-Math.abs(ft||0),ft>=0?this.conditionStack[ft]:"INITIAL"},pushState:function(ft){this.begin(ft)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ft,Y,Et,V){switch(Et){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return Y.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return Y.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return bt}();mt.lexer=gt;function ht(){this.yy={}}return ht.prototype=mt,mt.Parser=ht,new ht}();Gpt.parser=Gpt;const XKe=Gpt;let E8={},Kpt=[];const QKe={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},JKe={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},izt=function(i,a=void 0){return E8[i]===void 0?(E8[i]={attributes:[],alias:a},Wt.info("Added new entity :",i)):E8[i]&&!E8[i].alias&&a&&(E8[i].alias=a,Wt.info(`Add alias '${a}' to entity '${i}'`)),E8[i]},ZKe={Cardinality:QKe,Identification:JKe,getConfig:()=>Re().er,addEntity:izt,addAttributes:function(i,a){let f=izt(i),g;for(g=a.length-1;g>=0;g--)f.attributes.push(a[g]),Wt.debug("Added attribute ",a[g].attributeName)},getEntities
|
|||
|
.entityBox {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
.attributeBoxOdd {
|
|||
|
fill: ${i.attributeBackgroundColorOdd};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
.attributeBoxEven {
|
|||
|
fill: ${i.attributeBackgroundColorEven};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
.relationshipLabelBox {
|
|||
|
fill: ${i.tertiaryColor};
|
|||
|
opacity: 0.7;
|
|||
|
background-color: ${i.tertiaryColor};
|
|||
|
rect {
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.relationshipLine {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
.entityTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
#MD_PARENT_START {
|
|||
|
fill: #f5f5f5 !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
#MD_PARENT_END {
|
|||
|
fill: #f5f5f5 !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var Ypt=function(){var i=function(mt,gt,ht,bt){for(ht=ht||{},bt=mt.length;bt--;ht[mt[bt]]=gt);return ht},a=[1,3],f=[1,6],g=[1,4],w=[1,5],v=[2,5],b=[1,12],E=[5,7,13,19,21,23,24,26,28,31,37,40,47],_=[7,13,19,21,23,24,26,28,31,37,40],S=[7,12,13,19,21,23,24,26,28,31,37,40],I=[7,13,47],B=[1,42],F=[1,41],R=[7,13,29,32,35,38,47],q=[1,55],X=[1,56],rt=[1,57],at=[7,13,32,35,42,47],ut={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(gt,ht,bt,Z,ft,Y,Et){var V=Y.length-1;switch(ft){case 2:return Y[V];case 3:return Y[V-1];case 4:return Z.setDirection(Y[V-3]),Y[V-1];case 6:Z.setOptions(Y[V-1]),this.$=Y[V];break;case 7:Y[V-1]+=Y[V],this.$=Y[V-1];break;case 9:this.$=[];break;case 10:Y[V-1].push(Y[V]),this.$=Y[V-1];break;case 11:this.$=Y[V-1];break;case 16:this.$=Y[V].trim(),Z.setAccTitle(this.$);break;case 17:case 18:this.$=Y[V].trim(),Z.setAccDescription(this.$);break;case 19:Z.addSection(Y[V].substr(8)),this.$=Y[V].substr(8);break;case 21:Z.checkout(Y[V]);break;case 22:Z.branch(Y[V]);break;case 23:Z.branch(Y[V-2],Y[V]);break;case 24:Z.cherryPick(Y[V],"",void 0);break;case 25:Z.cherryPick(Y[V-2],"",void 0,Y[V]);break;case 26:Z.cherryPick(Y[V-2],"",Y[V]);break;case 27:Z.cherryPick(Y[V-4],"",Y[V],Y[V-2]);break;case 28:Z.cherryPick(Y[V-4],"",Y[V-2],Y[V]);break;case 29:Z.cherryPick(Y[V],"",Y[V-2]);break;case 30:Z.cherryPick(Y[V],"","");break;case 31:Z.cherryPick(Y[V-2],"","");break;case 32:Z.cherryPick(Y[V-4],"","",Y[V-2]);break;case 33:Z.cherryPick(Y[V-4],"","",Y[V]);break;case 34:Z.cherryPick(Y[V-2],"",Y[V-4],Y[V]);break;case 35:Z.cherryPick(Y[V-2],"","",Y[V]);break;case 36:Z.merge(Y[V],"","","");break;case 37:Z.merge(Y[V-2],Y[V],"","");break;case 38:Z.merge(Y[V-2],"",Y[V],"");break;case 39:Z.merge(Y[V-2],"","",Y[V]);break;case 40:Z.merge(Y[V-4],Y[V],"",Y[V-2]);break;case 41:Z.merge(Y[V-4],"",Y[V],Y[V-2]);break;case 42:Z.merge(Y[V-4],"",Y[V-2],Y[V]);break;case 43:Z.merge(Y[V-4],Y[V-2],Y[V],"");break;case 44:Z.merge(Y[V-4],Y[V-2],"",Y[V]);break;case 45:Z.merge(Y[V-4],Y[V],Y[V-2],"");break;case 46:Z.merge(Y[V-6],Y[V-4],Y[V-2],Y[V]);break;case 47:Z.merge(Y[V-6],Y[V],Y[V-4],Y[V-2]);break;case 48:Z.merge(Y[V-6],Y[V-4],Y[V],Y[V-2]);break;case 49:Z.mer
|
|||
|
`+_t.showPosition()+`
|
|||
|
Expecting `+Se.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":Dn="Parse error on line "+(Nt+1)+": Unexpected "+(Pe==Ct?"end of input":"'"+(this.terminals_[Pe]||Pe)+"'"),this.parseError(Dn,{text:_t.match,token:this.terminals_[Pe]||Pe,line:_t.yylineno,loc:Be,expected:Se})}if(nn[0]instanceof Array&&nn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+Pe);switch(nn[0]){case 1:bt.push(Pe),ft.push(_t.yytext),Y.push(_t.yylloc),bt.push(nn[1]),Pe=null,Dt=_t.yyleng,V=_t.yytext,Nt=_t.yylineno,Be=_t.yylloc;break;case 2:if(Qt=this.productions_[nn[1]][1],me.$=ft[ft.length-Qt],me._$={first_line:Y[Y.length-(Qt||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(Qt||1)].first_column,last_column:Y[Y.length-1].last_column},Ot&&(me._$.range=[Y[Y.length-(Qt||1)].range[0],Y[Y.length-1].range[1]]),sn=this.performAction.apply(me,[V,Dt,Nt,xt.yy,nn[1],ft,Y].concat(Ft)),typeof sn<"u")return sn;Qt&&(bt=bt.slice(0,-1*Qt*2),ft=ft.slice(0,-1*Qt),Y=Y.slice(0,-1*Qt)),bt.push(this.productions_[nn[1]][0]),ft.push(me.$),Y.push(me._$),Ae=Et[bt[bt.length-2]][bt[bt.length-1]],bt.push(Ae);break;case 3:return!0}}return!0}},pt=function(){var mt={EOF:1,parseError:function(ht,bt){if(this.yy.parser)this.yy.parser.parseError(ht,bt);else throw new Error(ht)},setInput:function(gt,ht){return this.yy=ht||this.yy||{},this._input=gt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var gt=this._input[0];this.yytext+=gt,this.yyleng++,this.offset++,this.match+=gt,this.matched+=gt;var ht=gt.match(/(?:\r\n?|\n).*/g);return ht?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),gt},unput:function(gt){var ht=gt.length,bt=gt.split(/(?:\r\n?|\n)/g);this._input=gt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;var Z=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),bt.length-1&&(this.yylineno-=bt.length-1);var ft=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:bt?(bt.length===Z.length?this.yylloc.first_column:0)+Z[Z.length-bt.length].length-bt[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[ft[0],ft[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(gt){this.unput(this.match.slice(gt))},pastInput:function(){var gt=this.matched.substr(0,this.matched.length-this.match.length);return(gt.length>20?"...":"")+gt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var gt=this.match;return gt.length<20&&(gt+=this._input.substr(0,20-gt.length)),(gt.substr(0,20)+(gt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var gt=this.pastInput(),ht=new Array(gt.length+1).join("-");return gt+this.upcomingInput()+`
|
|||
|
`+ht+"^"},test_match:function(gt,ht){var bt,Z,ft;if(this.options.backtrack_lexer&&(ft={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ft.yylloc.range=this.yylloc.range.slice(0))),Z=gt[0].match(/(?:\r\n?|\n).*/g),Z&&(this.yylineno+=Z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Z?Z[Z.length-1].length-Z[Z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+gt[0].length},this.yytext+=gt[0],this.match+=gt[0],this.matches=gt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(gt[0].length),this.matched+=gt[0],bt=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),bt)return bt;if(this._backtrack){for(var Y in ft)this[Y]=ft[Y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var gt,ht,bt,Z;this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),Y=0;Y<ft.length;Y++)if(bt=this._input.match(this.rules[ft[Y]]),bt&&(!ht||bt[0].length>ht[0].length)){if(ht=bt,Z=Y,this.options.backtrack_lexer){if(gt=this.test_match(bt,ft[Y]),gt!==!1)return gt;if(this._backtrack){ht=!1;continue}else return!1}else if(!this.options.flex)break}return ht?(gt=this.test_match(ht,ft[Z]),gt!==!1?gt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ht=this.next();return ht||this.lex()},begin:function(ht){this.conditionStack.push(ht)},popState:function(){var ht=this.conditionStack.length-1;return ht>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ht){return ht=this.conditionStack.length-1-Math.abs(ht||0),ht>=0?this.conditionStack[ht]:"INITIAL"},pushState:function(ht){this.begin(ht)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ht,bt,Z,ft){switch(Z){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return mt}();ut.lexer=pt;function yt(){this.yy={}}return yt.prototype=ut,ut.Parser=yt,new yt}();Ypt.parser=Ypt;const kWe=Ypt;let rX=Re().gitGraph.mainBranchName,EWe=Re().gitGraph.mainBranchOrder,$1={},ep=null,YF={};YF[rX]={name:rX,order:EWe};let u1={};u1[rX]=ep;let Cd=rX,czt="LR",L9=0;function Xpt(){return dFt({length:7})}function TWe(i,a){const f=Object.create(null);return i.reduce((g,w)=>{const v=a(w);return f[v]||(f[v]=!0,g.push(w)),g},[])}const CWe=function(i){czt=i};let uzt={};const _We=function(i){Wt.debug("options str",i),i=i&&i.trim(),i=i||"{}";try{uzt=JSON.parse(i)}catch(a){Wt.error("error while parsing gitGraph options",a.message)}},SWe=function(){return uzt},AWe=function(i,a,f,g){Wt.debug("Entering commit:",i,a,f,g),a=ei.sanitizeText(a,Re()),i=ei.sanitizeText(i,Re()),g=ei.sanitizeText(g,Re());const w={id:a||L9+"-"+Xpt(),message:i,seq:L9++,type:f||wM.NORMAL,tag:g||"",parents:ep==null?[]:[ep.id],branch:Cd};ep=w,$1[w.id]=w,u1[Cd]=w.id,Wt.debug("in pushCommit "+w.id)},LWe=function(i,a){if(i=ei.sanitizeText(i,Re()),u1[i]===void 0)u1[i]=ep!=null?ep.id:null,YF[i]={name:i,order:a?parseInt(a,10):null},lzt(i),Wt.debug("in createBranch");else{let f=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+i+'")');throw f.h
|
|||
|
${b-ut.width/2-4/2},${yt+2}
|
|||
|
${b-ut.width/2-4/2},${yt-2}
|
|||
|
${b+10-ut.width/2-4},${yt-pt-2}
|
|||
|
${b+10+ut.width/2+4},${yt-pt-2}
|
|||
|
${b+10+ut.width/2+4},${yt+pt+2}
|
|||
|
${b+10-ut.width/2-4},${yt+pt+2}`),rt.attr("cx",b-ut.width/2+4/2).attr("cy",yt).attr("r",1.5).attr("class","tag-hole"),p0==="TB"&&(X.attr("class","tag-label-bkg").attr("points",`
|
|||
|
${F},${b+2}
|
|||
|
${F},${b-2}
|
|||
|
${F+10},${b-pt-2}
|
|||
|
${F+10+ut.width+4},${b-pt-2}
|
|||
|
${F+10+ut.width+4},${b+pt+2}
|
|||
|
${F+10},${b+pt+2}`).attr("transform","translate(12,12) rotate(45, "+F+","+b+")"),rt.attr("cx",F+4/2).attr("cy",b).attr("transform","translate(12,12) rotate(45, "+F+","+b+")"),at.attr("x",F+5).attr("y",b+3).attr("transform","translate(14,14) rotate(45, "+F+","+b+")"))}}b+=50,b>JF&&(JF=b)})},qWe=(i,a,f,g,w)=>{const b=(p0==="TB"?f.x<g.x:f.y<g.y)?a.branch:i.branch,E=S=>S.branch===b,_=S=>S.seq>i.seq&&S.seq<a.seq;return Object.values(w).some(S=>_(S)&&E(S))},ZF=(i,a,f=0)=>{const g=i+Math.abs(i-a)/2;if(f>5)return g;if(iX.every(b=>Math.abs(b-g)>=10))return iX.push(g),g;const v=Math.abs(i-a);return ZF(i,a-v/5,f+1)},HWe=(i,a,f,g)=>{const w=QF[a.id],v=QF[f.id],b=qWe(a,f,w,v,g);let E="",_="",S=0,I=0,B=Ef[f.branch].index,F;if(b){E="A 10 10, 0, 0, 0,",_="A 10 10, 0, 0, 1,",S=10,I=10;const R=w.y<v.y?ZF(w.y,v.y):ZF(v.y,w.y),q=w.x<v.x?ZF(w.x,v.x):ZF(v.x,w.x);p0==="TB"?w.x<v.x?(B=Ef[f.branch].index,F=`M ${w.x} ${w.y} L ${q-S} ${w.y} ${_} ${q} ${w.y+I} L ${q} ${v.y-S} ${E} ${q+I} ${v.y} L ${v.x} ${v.y}`):(B=Ef[a.branch].index,F=`M ${w.x} ${w.y} L ${q+S} ${w.y} ${E} ${q} ${w.y+I} L ${q} ${v.y-S} ${_} ${q-I} ${v.y} L ${v.x} ${v.y}`):w.y<v.y?(B=Ef[f.branch].index,F=`M ${w.x} ${w.y} L ${w.x} ${R-S} ${E} ${w.x+I} ${R} L ${v.x-S} ${R} ${_} ${v.x} ${R+I} L ${v.x} ${v.y}`):(B=Ef[a.branch].index,F=`M ${w.x} ${w.y} L ${w.x} ${R+S} ${_} ${w.x+I} ${R} L ${v.x-S} ${R} ${E} ${v.x} ${R-I} L ${v.x} ${v.y}`)}else p0==="TB"?(w.x<v.x&&(E="A 20 20, 0, 0, 0,",_="A 20 20, 0, 0, 1,",S=20,I=20,B=Ef[f.branch].index,F=`M ${w.x} ${w.y} L ${v.x-S} ${w.y} ${_} ${v.x} ${w.y+I} L ${v.x} ${v.y}`),w.x>v.x&&(E="A 20 20, 0, 0, 0,",_="A 20 20, 0, 0, 1,",S=20,I=20,B=Ef[a.branch].index,F=`M ${w.x} ${w.y} L ${w.x} ${v.y-S} ${_} ${w.x-I} ${v.y} L ${v.x} ${v.y}`),w.x===v.x&&(B=Ef[a.branch].index,F=`M ${w.x} ${w.y} L ${w.x+S} ${w.y} ${E} ${w.x+I} ${v.y+S} L ${v.x} ${v.y}`)):(w.y<v.y&&(E="A 20 20, 0, 0, 0,",S=20,I=20,B=Ef[f.branch].index,F=`M ${w.x} ${w.y} L ${w.x} ${v.y-S} ${E} ${w.x+I} ${v.y} L ${v.x} ${v.y}`),w.y>v.y&&(E="A 20 20, 0, 0, 0,",S=20,I=20,B=Ef[a.branch].index,F=`M ${w.x} ${w.y} L ${v.x-S} ${w.y} ${E} ${v.x} ${w.y-I} L ${v.x} ${v.y}`),w.y===v.y&&(B=Ef[a.branch].index,F=`M ${w.x} ${w.y} L ${w.x} ${v.y-S} ${E} ${w.x+I} ${v.y} L ${v.x} ${v.y}`));i.append("path").attr("d",F).attr("class","arrow arrow"+B%M9)},VWe=(i,a)=>{const f=i.append("g").attr("class","commit-arrows");Object.keys(a).forEach(g=>{const w=a[g];w.parents&&w.parents.length>0&&w.parents.forEach(v=>{HWe(f,a[v],w,a)})})},UWe=(i,a)=>{const f=Re().gitGraph,g=i.append("g");a.forEach((w,v)=>{const b=v%M9,E=Ef[w.name].pos,_=g.append("line");_.attr("x1",0),_.attr("y1",E),_.attr("x2",JF),_.attr("y2",E),_.attr("class","branch branch"+b),p0==="TB"&&(_.attr("y1",30),_.attr("x1",E),_.attr("y2",JF),_.attr("x2",E)),iX.push(E);let S=w.name;const I=gzt(S),B=g.insert("rect"),R=g.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);R.node().appendChild(I);let q=I.getBBox();B.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-q.width-4-(f.rotateCommitLabel===!0?30:0)).attr("y",-q.height/2+8).attr("width",q.width+18).attr("height",q.height+4),R.attr("transform","translate("+(-q.width-14-(f.rotateCommitLabel===!0?30:0))+", "+(E-q.height/2-1)+")"),p0==="TB"&&(B.attr("x",E-q.width/2-10).attr("y",0),R.attr("transform","translate("+(E-q.width/2-5)+", 0)")),p0!=="TB"&&B.attr("transform","translate(-19, "+(E-q.height/2)+")")})},GWe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:kWe,db:$We,renderer:{draw:function(i,a,f,g){zWe();const w=Re(),v=w.gitGraph;Wt.debug("in gitgraph renderer",i+`
|
|||
|
`,"id:",a,f),XF=g.db.getCommits();const b=g.db.getBranchesAsObjArray();p0=g.db.getDirection();const E=xr(`[id="${a}"]`);let _=0;b.forEach((S,I)=>{const B=gzt(S.name),F=E.append("g"),R=F.insert("g").attr("class","branchLabel"),q=R.insert("g").attr("class","label branch-label");q.node().appendChild(B);let X=B.getBBox();Ef[S.name]={pos:_,index:I},_+=50+(v.rotateCommitLabel?40:0)+(p0==="TB"?X.width/2:0),q.remove(),R.remove(),F.remove()}),pzt(E,XF,!1),v.showBranches&&UWe(E,b),VWe(E,XF),pzt(E,XF,!0),ao.insertTitle(E,"gitTitleText",v.titleTopMargin,g.db.getDiagramTitle()),XFt(void 0,E,v.diagramPadding,v.useMaxWidth??w.useMaxWidth)}},styles:i=>`
|
|||
|
.commit-id,
|
|||
|
.commit-msg,
|
|||
|
.branch-label {
|
|||
|
fill: lightgrey;
|
|||
|
color: lightgrey;
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
}
|
|||
|
${[0,1,2,3,4,5,6,7].map(a=>`
|
|||
|
.branch-label${a} { fill: ${i["gitBranchLabel"+a]}; }
|
|||
|
.commit${a} { stroke: ${i["git"+a]}; fill: ${i["git"+a]}; }
|
|||
|
.commit-highlight${a} { stroke: ${i["gitInv"+a]}; fill: ${i["gitInv"+a]}; }
|
|||
|
.label${a} { fill: ${i["git"+a]}; }
|
|||
|
.arrow${a} { stroke: ${i["git"+a]}; }
|
|||
|
`).join(`
|
|||
|
`)}
|
|||
|
|
|||
|
.branch {
|
|||
|
stroke-width: 1;
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-dasharray: 2;
|
|||
|
}
|
|||
|
.commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};}
|
|||
|
.commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; }
|
|||
|
.tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};}
|
|||
|
.tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; }
|
|||
|
.tag-hole { fill: ${i.textColor}; }
|
|||
|
|
|||
|
.commit-merge {
|
|||
|
stroke: ${i.primaryColor};
|
|||
|
fill: ${i.primaryColor};
|
|||
|
}
|
|||
|
.commit-reverse {
|
|||
|
stroke: ${i.primaryColor};
|
|||
|
fill: ${i.primaryColor};
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
.commit-highlight-outer {
|
|||
|
}
|
|||
|
.commit-highlight-inner {
|
|||
|
stroke: ${i.primaryColor};
|
|||
|
fill: ${i.primaryColor};
|
|||
|
}
|
|||
|
|
|||
|
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|||
|
.gitTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var Qpt=function(){var i=function(Y,Et,V,Nt){for(V=V||{},Nt=Y.length;Nt--;V[Y[Nt]]=Et);return V},a=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],f=[1,25],g=[1,26],w=[1,27],v=[1,28],b=[1,29],E=[1,30],_=[1,31],S=[1,9],I=[1,10],B=[1,11],F=[1,12],R=[1,13],q=[1,14],X=[1,15],rt=[1,16],at=[1,18],ut=[1,19],pt=[1,20],yt=[1,21],mt=[1,22],gt=[1,24],ht=[1,32],bt={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(Et,V,Nt,Dt,jt,Ct,Ft){var _t=Ct.length-1;switch(jt){case 1:return Ct[_t-1];case 2:this.$=[];break;case 3:Ct[_t-1].push(Ct[_t]),this.$=Ct[_t-1];break;case 4:case 5:this.$=Ct[_t];break;case 6:case 7:this.$=[];break;case 8:Dt.setWeekday("monday");break;case 9:Dt.setWeekday("tuesday");break;case 10:Dt.setWeekday("wednesday");break;case 11:Dt.setWeekday("thursday");break;case 12:Dt.setWeekday("friday");break;case 13:Dt.setWeekday("saturday");break;case 14:Dt.setWeekday("sunday");break;case 15:Dt.setDateFormat(Ct[_t].substr(11)),this.$=Ct[_t].substr(11);break;case 16:Dt.enableInclusiveEndDates(),this.$=Ct[_t].substr(18);break;case 17:Dt.TopAxis(),this.$=Ct[_t].substr(8);break;case 18:Dt.setAxisFormat(Ct[_t].substr(11)),this.$=Ct[_t].substr(11);break;case 19:Dt.setTickInterval(Ct[_t].substr(13)),this.$=Ct[_t].substr(13);break;case 20:Dt.setExcludes(Ct[_t].substr(9)),this.$=Ct[_t].substr(9);break;case 21:Dt.setIncludes(Ct[_t].substr(9)),this.$=Ct[_t].substr(9);break;case 22:Dt.setTodayMarker(Ct[_t].substr(12)),this.$=Ct[_t].substr(12);break;case 24:Dt.setDiagramTitle(Ct[_t].substr(6)),this.$=Ct[_t].substr(6);break;case 25:this.$=Ct[_t].trim(),Dt.setAccTitle(this.$);break;case 26:case 27:this.$=Ct[_t].trim(),Dt.setAccDescription(this.$);break;case 28:Dt.addSection(Ct[_t].substr(8)),this.$=Ct[_t].substr(8);break;case 30:Dt.addTask(Ct[_t-1],Ct[_t]),this.$="task";break;case 31:this.$=Ct[_t-1],Dt.setClickEvent(Ct[_t-1],Ct[_t],null);break;case 32:this.$=Ct[_t-2],Dt.setClickEvent(Ct[_t-2],Ct[_t-1],Ct[_t]);break;case 33:this.$=Ct[_t-2],Dt.setClickEvent(Ct[_t-2],Ct[_t-1],null),Dt.setLink(Ct[_t-2],Ct[_t]);break;case 34:this.$=Ct[_t-3],Dt.setClickEvent(Ct[_t-3],Ct[_t-2],Ct[_t-1]),Dt.setLink(Ct[_t-3],Ct[_t]);break;case 35:this.$=Ct[_t-2],Dt.setClickEvent(Ct[_t-2],Ct[_t],null),Dt.setLink(Ct[_t-2],Ct[_t-1]);break;case 36:this.$=Ct[_t-3],Dt.setClickEvent(Ct[_t-3],Ct[_t-1],Ct[_t]),Dt.setLink(Ct[_t-3],Ct[_t-2]);break;case 37:this.$=Ct[_t-1],Dt.setLink(Ct[_t-1],Ct[_t]);break;case 38:case 44:this.$=Ct[_t-1]+" "+Ct[_t];break;case 39:case 40:case 42:this.$=Ct[_t-2]+" "+Ct[_t-1]+" "+Ct[_t];break;case 41:case 43:this.$=Ct[_t-3]+" "+Ct[_t-2]+" "+Ct[_t-1]+" "+Ct[_t];break}},tabl
|
|||
|
`+Pe.showPosition()+`
|
|||
|
Expecting `+yi.join(", ")+", got '"+(this.terminals_[Qt]||Qt)+"'":da="Parse error on line "+(xt+1)+": Unexpected "+(Qt==Ot?"end of input":"'"+(this.terminals_[Qt]||Qt)+"'"),this.parseError(da,{text:Pe.match,token:this.terminals_[Qt]||Qt,line:Pe.yylineno,loc:sn,expected:yi})}if(Se[0]instanceof Array&&Se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+Qt);switch(Se[0]){case 1:Nt.push(Qt),jt.push(Pe.yytext),Ct.push(Pe.yylloc),Nt.push(Se[1]),Qt=null,Gt=Pe.yyleng,_t=Pe.yytext,xt=Pe.yylineno,sn=Pe.yylloc;break;case 2:if(we=this.productions_[Se[1]][1],oe.$=jt[jt.length-we],oe._$={first_line:Ct[Ct.length-(we||1)].first_line,last_line:Ct[Ct.length-1].last_line,first_column:Ct[Ct.length-(we||1)].first_column,last_column:Ct[Ct.length-1].last_column},me&&(oe._$.range=[Ct[Ct.length-(we||1)].range[0],Ct[Ct.length-1].range[1]]),Dn=this.performAction.apply(oe,[_t,Gt,xt,Ee.yy,Se[1],jt,Ct].concat(vn)),typeof Dn<"u")return Dn;we&&(Nt=Nt.slice(0,-1*we*2),jt=jt.slice(0,-1*we),Ct=Ct.slice(0,-1*we)),Nt.push(this.productions_[Se[1]][0]),jt.push(oe.$),Ct.push(oe._$),Ri=Ft[Nt[Nt.length-2]][Nt[Nt.length-1]],Nt.push(Ri);break;case 3:return!0}}return!0}},Z=function(){var Y={EOF:1,parseError:function(V,Nt){if(this.yy.parser)this.yy.parser.parseError(V,Nt);else throw new Error(V)},setInput:function(Et,V){return this.yy=V||this.yy||{},this._input=Et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Et=this._input[0];this.yytext+=Et,this.yyleng++,this.offset++,this.match+=Et,this.matched+=Et;var V=Et.match(/(?:\r\n?|\n).*/g);return V?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Et},unput:function(Et){var V=Et.length,Nt=Et.split(/(?:\r\n?|\n)/g);this._input=Et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-V),this.offset-=V;var Dt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Nt.length-1&&(this.yylineno-=Nt.length-1);var jt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Nt?(Nt.length===Dt.length?this.yylloc.first_column:0)+Dt[Dt.length-Nt.length].length-Nt[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[jt[0],jt[0]+this.yyleng-V]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Et){this.unput(this.match.slice(Et))},pastInput:function(){var Et=this.matched.substr(0,this.matched.length-this.match.length);return(Et.length>20?"...":"")+Et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Et=this.match;return Et.length<20&&(Et+=this._input.substr(0,20-Et.length)),(Et.substr(0,20)+(Et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Et=this.pastInput(),V=new Array(Et.length+1).join("-");return Et+this.upcomingInput()+`
|
|||
|
`+V+"^"},test_match:function(Et,V){var Nt,Dt,jt;if(this.options.backtrack_lexer&&(jt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(jt.yylloc.range=this.yylloc.range.slice(0))),Dt=Et[0].match(/(?:\r\n?|\n).*/g),Dt&&(this.yylineno+=Dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Dt?Dt[Dt.length-1].length-Dt[Dt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Et[0].length},this.yytext+=Et[0],this.match+=Et[0],this.matches=Et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Et[0].length),this.matched+=Et[0],Nt=this.performAction.call(this,this.yy,this,V,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Nt)return Nt;if(this._backtrack){for(var Ct in jt)this[Ct]=jt[Ct];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Et,V,Nt,Dt;this._more||(this.yytext="",this.match="");for(var jt=this._currentRules(),Ct=0;Ct<jt.length;Ct++)if(Nt=this._input.match(this.rules[jt[Ct]]),Nt&&(!V||Nt[0].length>V[0].length)){if(V=Nt,Dt=Ct,this.options.backtrack_lexer){if(Et=this.test_match(Nt,jt[Ct]),Et!==!1)return Et;if(this._backtrack){V=!1;continue}else return!1}else if(!this.options.flex)break}return V?(Et=this.test_match(V,jt[Dt]),Et!==!1?Et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var V=this.next();return V||this.lex()},begin:function(V){this.conditionStack.push(V)},popState:function(){var V=this.conditionStack.length-1;return V>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(V){return V=this.conditionStack.length-1-Math.abs(V||0),V>=0?this.conditionStack[V]:"INITIAL"},pushState:function(V){this.begin(V)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(V,Nt,Dt,jt){switch(Dt){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:break;case 15:this.begin("href");break;case 16:this.popState();break;case 17:return 40;case 18:this.begin("callbackname");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callbackargs");break;case 21:return 38;case 22:this.popState();break;case 23:return 39;case 24:this.begin("click");break;case 25:this.popState();break;case 26:return 37;case 27:return 4;case 28:return 19;case 29:return 20;case 30:return 21;case 31:return 22;case 32:return 23;case 33:return 25;case 34:return 24;case 35:return 26;case 36:return 12;case 37:return 13;case 38:return 14;case 39:return 15;case 40:return 16;case 41:return 17;case 42:return 18;case 43:return"date";case 44:return 27;case 45:return"accDescription";case 46:return 33;case 47:return 35;case 48:return 36;case 49:return":";case 50:return 6;case 51:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[22,23],inclusive:!1},callbackname:{rules:[19,20,21],inclusive:!1},href:{rules:[16,17],inclusive:!1},click:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,18,24,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return Y}();bt.lexer=Z;function ft(){this.yy={}}return ft.prototype=bt,bt.Parser=ft,new ft}();Qpt.parser=Qpt;const KWe=Qpt;var bzt={exports:{}};(function(i,a){(function(f,g){i.exports=g()})(X0,function(){var f="day";return function(g,w,v){var b=function(S){return S.add(4-S.isoWeekday(),f)},E=w.prototype;E.isoWeekYear=function(){return b(this).year()},E.isoWeek=function(S){if(!this.$utils().u(S))return this.add(7*(S-this.isoWeek()),f);var I,B,F,R,q=b(this),X=(I=this.isoWeekYear(),B=this.$u,F=(B?v.utc:
|
|||
|
.mermaid-main-font {
|
|||
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
}
|
|||
|
|
|||
|
.exclude-range {
|
|||
|
fill: ${i.excludeBkgColor};
|
|||
|
}
|
|||
|
|
|||
|
.section {
|
|||
|
stroke: none;
|
|||
|
opacity: 0.2;
|
|||
|
}
|
|||
|
|
|||
|
.section0 {
|
|||
|
fill: ${i.sectionBkgColor};
|
|||
|
}
|
|||
|
|
|||
|
.section2 {
|
|||
|
fill: ${i.sectionBkgColor2};
|
|||
|
}
|
|||
|
|
|||
|
.section1,
|
|||
|
.section3 {
|
|||
|
fill: ${i.altSectionBkgColor};
|
|||
|
opacity: 0.2;
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle0 {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle1 {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle2 {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle3 {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.sectionTitle {
|
|||
|
text-anchor: start;
|
|||
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Grid and axis */
|
|||
|
|
|||
|
.grid .tick {
|
|||
|
stroke: ${i.gridColor};
|
|||
|
opacity: 0.8;
|
|||
|
shape-rendering: crispEdges;
|
|||
|
}
|
|||
|
|
|||
|
.grid .tick text {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
|
|||
|
.grid path {
|
|||
|
stroke-width: 0;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Today line */
|
|||
|
|
|||
|
.today {
|
|||
|
fill: none;
|
|||
|
stroke: ${i.todayLineColor};
|
|||
|
stroke-width: 2px;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Task styling */
|
|||
|
|
|||
|
/* Default task */
|
|||
|
|
|||
|
.task {
|
|||
|
stroke-width: 2;
|
|||
|
}
|
|||
|
|
|||
|
.taskText {
|
|||
|
text-anchor: middle;
|
|||
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutsideRight {
|
|||
|
fill: ${i.taskTextDarkColor};
|
|||
|
text-anchor: start;
|
|||
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutsideLeft {
|
|||
|
fill: ${i.taskTextDarkColor};
|
|||
|
text-anchor: end;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Special case clickable */
|
|||
|
|
|||
|
.task.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
.taskText.clickable {
|
|||
|
cursor: pointer;
|
|||
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutsideLeft.clickable {
|
|||
|
cursor: pointer;
|
|||
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutsideRight.clickable {
|
|||
|
cursor: pointer;
|
|||
|
fill: ${i.taskTextClickableColor} !important;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Specific task settings for the sections*/
|
|||
|
|
|||
|
.taskText0,
|
|||
|
.taskText1,
|
|||
|
.taskText2,
|
|||
|
.taskText3 {
|
|||
|
fill: ${i.taskTextColor};
|
|||
|
}
|
|||
|
|
|||
|
.task0,
|
|||
|
.task1,
|
|||
|
.task2,
|
|||
|
.task3 {
|
|||
|
fill: ${i.taskBkgColor};
|
|||
|
stroke: ${i.taskBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutside0,
|
|||
|
.taskTextOutside2
|
|||
|
{
|
|||
|
fill: ${i.taskTextOutsideColor};
|
|||
|
}
|
|||
|
|
|||
|
.taskTextOutside1,
|
|||
|
.taskTextOutside3 {
|
|||
|
fill: ${i.taskTextOutsideColor};
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Active task */
|
|||
|
|
|||
|
.active0,
|
|||
|
.active1,
|
|||
|
.active2,
|
|||
|
.active3 {
|
|||
|
fill: ${i.activeTaskBkgColor};
|
|||
|
stroke: ${i.activeTaskBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.activeText0,
|
|||
|
.activeText1,
|
|||
|
.activeText2,
|
|||
|
.activeText3 {
|
|||
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Completed task */
|
|||
|
|
|||
|
.done0,
|
|||
|
.done1,
|
|||
|
.done2,
|
|||
|
.done3 {
|
|||
|
stroke: ${i.doneTaskBorderColor};
|
|||
|
fill: ${i.doneTaskBkgColor};
|
|||
|
stroke-width: 2;
|
|||
|
}
|
|||
|
|
|||
|
.doneText0,
|
|||
|
.doneText1,
|
|||
|
.doneText2,
|
|||
|
.doneText3 {
|
|||
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/* Tasks on the critical line */
|
|||
|
|
|||
|
.crit0,
|
|||
|
.crit1,
|
|||
|
.crit2,
|
|||
|
.crit3 {
|
|||
|
stroke: ${i.critBorderColor};
|
|||
|
fill: ${i.critBkgColor};
|
|||
|
stroke-width: 2;
|
|||
|
}
|
|||
|
|
|||
|
.activeCrit0,
|
|||
|
.activeCrit1,
|
|||
|
.activeCrit2,
|
|||
|
.activeCrit3 {
|
|||
|
stroke: ${i.critBorderColor};
|
|||
|
fill: ${i.activeTaskBkgColor};
|
|||
|
stroke-width: 2;
|
|||
|
}
|
|||
|
|
|||
|
.doneCrit0,
|
|||
|
.doneCrit1,
|
|||
|
.doneCrit2,
|
|||
|
.doneCrit3 {
|
|||
|
stroke: ${i.critBorderColor};
|
|||
|
fill: ${i.doneTaskBkgColor};
|
|||
|
stroke-width: 2;
|
|||
|
cursor: pointer;
|
|||
|
shape-rendering: crispEdges;
|
|||
|
}
|
|||
|
|
|||
|
.milestone {
|
|||
|
transform: rotate(45deg) scale(0.8,0.8);
|
|||
|
}
|
|||
|
|
|||
|
.milestoneText {
|
|||
|
font-style: italic;
|
|||
|
}
|
|||
|
.doneCritText0,
|
|||
|
.doneCritText1,
|
|||
|
.doneCritText2,
|
|||
|
.doneCritText3 {
|
|||
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
}
|
|||
|
|
|||
|
.activeCritText0,
|
|||
|
.activeCritText1,
|
|||
|
.activeCritText2,
|
|||
|
.activeCritText3 {
|
|||
|
fill: ${i.taskTextDarkColor} !important;
|
|||
|
}
|
|||
|
|
|||
|
.titleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.titleColor||i.textColor};
|
|||
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|||
|
}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var lbt=function(){var i=function(v,b,E,_){for(E=E||{},_=v.length;_--;E[v[_]]=b);return E},a=[6,9,10],f={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(b,E,_,S,I,B,F){switch(B.length-1,I){case 1:return S;case 4:break;case 6:S.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},i(a,[2,3]),i(a,[2,4]),i(a,[2,5]),i(a,[2,6])],defaultActions:{4:[2,1]},parseError:function(b,E){if(E.recoverable)this.trace(b);else{var _=new Error(b);throw _.hash=E,_}},parse:function(b){var E=this,_=[0],S=[],I=[null],B=[],F=this.table,R="",q=0,X=0,rt=2,at=1,ut=B.slice.call(arguments,1),pt=Object.create(this.lexer),yt={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(yt.yy[mt]=this.yy[mt]);pt.setInput(b,yt.yy),yt.yy.lexer=pt,yt.yy.parser=this,typeof pt.yylloc>"u"&&(pt.yylloc={});var gt=pt.yylloc;B.push(gt);var ht=pt.options&&pt.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function bt(){var _t;return _t=S.pop()||pt.lex()||at,typeof _t!="number"&&(_t instanceof Array&&(S=_t,_t=S.pop()),_t=E.symbols_[_t]||_t),_t}for(var Z,ft,Y,Et,V={},Nt,Dt,jt,Ct;;){if(ft=_[_.length-1],this.defaultActions[ft]?Y=this.defaultActions[ft]:((Z===null||typeof Z>"u")&&(Z=bt()),Y=F[ft]&&F[ft][Z]),typeof Y>"u"||!Y.length||!Y[0]){var Ft="";Ct=[];for(Nt in F[ft])this.terminals_[Nt]&&Nt>rt&&Ct.push("'"+this.terminals_[Nt]+"'");pt.showPosition?Ft="Parse error on line "+(q+1)+`:
|
|||
|
`+pt.showPosition()+`
|
|||
|
Expecting `+Ct.join(", ")+", got '"+(this.terminals_[Z]||Z)+"'":Ft="Parse error on line "+(q+1)+": Unexpected "+(Z==at?"end of input":"'"+(this.terminals_[Z]||Z)+"'"),this.parseError(Ft,{text:pt.match,token:this.terminals_[Z]||Z,line:pt.yylineno,loc:gt,expected:Ct})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+Z);switch(Y[0]){case 1:_.push(Z),I.push(pt.yytext),B.push(pt.yylloc),_.push(Y[1]),Z=null,X=pt.yyleng,R=pt.yytext,q=pt.yylineno,gt=pt.yylloc;break;case 2:if(Dt=this.productions_[Y[1]][1],V.$=I[I.length-Dt],V._$={first_line:B[B.length-(Dt||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(Dt||1)].first_column,last_column:B[B.length-1].last_column},ht&&(V._$.range=[B[B.length-(Dt||1)].range[0],B[B.length-1].range[1]]),Et=this.performAction.apply(V,[R,X,q,yt.yy,Y[1],I,B].concat(ut)),typeof Et<"u")return Et;Dt&&(_=_.slice(0,-1*Dt*2),I=I.slice(0,-1*Dt),B=B.slice(0,-1*Dt)),_.push(this.productions_[Y[1]][0]),I.push(V.$),B.push(V._$),jt=F[_[_.length-2]][_[_.length-1]],_.push(jt);break;case 3:return!0}}return!0}},g=function(){var v={EOF:1,parseError:function(E,_){if(this.yy.parser)this.yy.parser.parseError(E,_);else throw new Error(E)},setInput:function(b,E){return this.yy=E||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var E=b.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var E=b.length,_=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var I=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===S.length?this.yylloc.first_column:0)+S[S.length-_.length].length-_[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[I[0],I[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),E=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|||
|
`+E+"^"},test_match:function(b,E){var _,S,I;if(this.options.backtrack_lexer&&(I={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(I.yylloc.range=this.yylloc.range.slice(0))),S=b[0].match(/(?:\r\n?|\n).*/g),S&&(this.yylineno+=S.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:S?S[S.length-1].length-S[S.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],_=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_)return _;if(this._backtrack){for(var B in I)this[B]=I[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,E,_,S;this._more||(this.yytext="",this.match="");for(var I=this._currentRules(),B=0;B<I.length;B++)if(_=this._input.match(this.rules[I[B]]),_&&(!E||_[0].length>E[0].length)){if(E=_,S=B,this.options.backtrack_lexer){if(b=this.test_match(_,I[B]),b!==!1)return b;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(b=this.test_match(E,I[S]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var E=this.next();return E||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(E,_,S,I){switch(S){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return v}();f.lexer=g;function w(){this.yy={}}return w.prototype=f,f.Parser=w,new w}();lbt.parser=lbt;const FYe=lbt,Mzt={info:!1};let hbt=Mzt.info;const BYe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:FYe,db:{clear:()=>{hbt=Mzt.info},setInfo:i=>{hbt=i},getInfo:()=>hbt},renderer:{draw:(i,a,f)=>{Wt.debug(`rendering info diagram
|
|||
|
`+i);const g=wY(a);Kg(g,100,400,!0),g.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${f}`)}}}},Symbol.toStringTag,{value:"Module"}));var fbt=function(){var i=function(pt,yt,mt,gt){for(mt=mt||{},gt=pt.length;gt--;mt[pt[gt]]=yt);return mt},a=[1,3],f=[1,4],g=[1,5],w=[1,6],v=[1,10,12,14,16,18,19,20,21,22],b=[2,4],E=[1,5,10,12,14,16,18,19,20,21,22],_=[20,21,22],S=[2,7],I=[1,12],B=[1,13],F=[1,14],R=[1,15],q=[1,16],X=[1,17],rt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(yt,mt,gt,ht,bt,Z,ft){var Y=Z.length-1;switch(bt){case 3:ht.setShowData(!0);break;case 6:this.$=Z[Y-1];break;case 8:ht.addSection(Z[Y-1],ht.cleanupValue(Z[Y]));break;case 9:this.$=Z[Y].trim(),ht.setDiagramTitle(this.$);break;case 10:this.$=Z[Y].trim(),ht.setAccTitle(this.$);break;case 11:case 12:this.$=Z[Y].trim(),ht.setAccDescription(this.$);break;case 13:ht.addSection(Z[Y].substr(8)),this.$=Z[Y].substr(8);break}},table:[{3:1,4:2,5:a,20:f,21:g,22:w},{1:[3]},{3:7,4:2,5:a,20:f,21:g,22:w},i(v,b,{6:8,7:[1,9]}),i(E,[2,14]),i(E,[2,15]),i(E,[2,16]),{1:[2,1]},i(_,S,{8:10,9:11,1:[2,2],10:I,12:B,14:F,16:R,18:q,19:X}),i(v,b,{6:18}),i(v,[2,5]),{4:19,20:f,21:g,22:w},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},i(_,[2,12]),i(_,[2,13]),i(_,S,{8:10,9:11,1:[2,3],10:I,12:B,14:F,16:R,18:q,19:X}),i(v,[2,6]),i(_,[2,8]),i(_,[2,9]),i(_,[2,10]),i(_,[2,11])],defaultActions:{7:[2,1]},parseError:function(yt,mt){if(mt.recoverable)this.trace(yt);else{var gt=new Error(yt);throw gt.hash=mt,gt}},parse:function(yt){var mt=this,gt=[0],ht=[],bt=[null],Z=[],ft=this.table,Y="",Et=0,V=0,Nt=2,Dt=1,jt=Z.slice.call(arguments,1),Ct=Object.create(this.lexer),Ft={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(Ft.yy[_t]=this.yy[_t]);Ct.setInput(yt,Ft.yy),Ft.yy.lexer=Ct,Ft.yy.parser=this,typeof Ct.yylloc>"u"&&(Ct.yylloc={});var xt=Ct.yylloc;Z.push(xt);var Gt=Ct.options&&Ct.options.ranges;typeof Ft.yy.parseError=="function"?this.parseError=Ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var Se;return Se=ht.pop()||Ct.lex()||Dt,typeof Se!="number"&&(Se instanceof Array&&(ht=Se,Se=ht.pop()),Se=mt.symbols_[Se]||Se),Se}for(var Ot,vn,Pe,Ee,nn={},sn,me,Fe,Qt;;){if(vn=gt[gt.length-1],this.defaultActions[vn]?Pe=this.defaultActions[vn]:((Ot===null||typeof Ot>"u")&&(Ot=Be()),Pe=ft[vn]&&ft[vn][Ot]),typeof Pe>"u"||!Pe.length||!Pe[0]){var Ae="";Qt=[];for(sn in ft[vn])this.terminals_[sn]&&sn>Nt&&Qt.push("'"+this.terminals_[sn]+"'");Ct.showPosition?Ae="Parse error on line "+(Et+1)+`:
|
|||
|
`+Ct.showPosition()+`
|
|||
|
Expecting `+Qt.join(", ")+", got '"+(this.terminals_[Ot]||Ot)+"'":Ae="Parse error on line "+(Et+1)+": Unexpected "+(Ot==Dt?"end of input":"'"+(this.terminals_[Ot]||Ot)+"'"),this.parseError(Ae,{text:Ct.match,token:this.terminals_[Ot]||Ot,line:Ct.yylineno,loc:xt,expected:Qt})}if(Pe[0]instanceof Array&&Pe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+vn+", token: "+Ot);switch(Pe[0]){case 1:gt.push(Ot),bt.push(Ct.yytext),Z.push(Ct.yylloc),gt.push(Pe[1]),Ot=null,V=Ct.yyleng,Y=Ct.yytext,Et=Ct.yylineno,xt=Ct.yylloc;break;case 2:if(me=this.productions_[Pe[1]][1],nn.$=bt[bt.length-me],nn._$={first_line:Z[Z.length-(me||1)].first_line,last_line:Z[Z.length-1].last_line,first_column:Z[Z.length-(me||1)].first_column,last_column:Z[Z.length-1].last_column},Gt&&(nn._$.range=[Z[Z.length-(me||1)].range[0],Z[Z.length-1].range[1]]),Ee=this.performAction.apply(nn,[Y,V,Et,Ft.yy,Pe[1],bt,Z].concat(jt)),typeof Ee<"u")return Ee;me&&(gt=gt.slice(0,-1*me*2),bt=bt.slice(0,-1*me),Z=Z.slice(0,-1*me)),gt.push(this.productions_[Pe[1]][0]),bt.push(nn.$),Z.push(nn._$),Fe=ft[gt[gt.length-2]][gt[gt.length-1]],gt.push(Fe);break;case 3:return!0}}return!0}},at=function(){var pt={EOF:1,parseError:function(mt,gt){if(this.yy.parser)this.yy.parser.parseError(mt,gt);else throw new Error(mt)},setInput:function(yt,mt){return this.yy=mt||this.yy||{},this._input=yt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var yt=this._input[0];this.yytext+=yt,this.yyleng++,this.offset++,this.match+=yt,this.matched+=yt;var mt=yt.match(/(?:\r\n?|\n).*/g);return mt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),yt},unput:function(yt){var mt=yt.length,gt=yt.split(/(?:\r\n?|\n)/g);this._input=yt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-mt),this.offset-=mt;var ht=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),gt.length-1&&(this.yylineno-=gt.length-1);var bt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:gt?(gt.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-gt.length].length-gt[0].length:this.yylloc.first_column-mt},this.options.ranges&&(this.yylloc.range=[bt[0],bt[0]+this.yyleng-mt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(yt){this.unput(this.match.slice(yt))},pastInput:function(){var yt=this.matched.substr(0,this.matched.length-this.match.length);return(yt.length>20?"...":"")+yt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var yt=this.match;return yt.length<20&&(yt+=this._input.substr(0,20-yt.length)),(yt.substr(0,20)+(yt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var yt=this.pastInput(),mt=new Array(yt.length+1).join("-");return yt+this.upcomingInput()+`
|
|||
|
`+mt+"^"},test_match:function(yt,mt){var gt,ht,bt;if(this.options.backtrack_lexer&&(bt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(bt.yylloc.range=this.yylloc.range.slice(0))),ht=yt[0].match(/(?:\r\n?|\n).*/g),ht&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+yt[0].length},this.yytext+=yt[0],this.match+=yt[0],this.matches=yt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(yt[0].length),this.matched+=yt[0],gt=this.performAction.call(this,this.yy,this,mt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var Z in bt)this[Z]=bt[Z];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var yt,mt,gt,ht;this._more||(this.yytext="",this.match="");for(var bt=this._currentRules(),Z=0;Z<bt.length;Z++)if(gt=this._input.match(this.rules[bt[Z]]),gt&&(!mt||gt[0].length>mt[0].length)){if(mt=gt,ht=Z,this.options.backtrack_lexer){if(yt=this.test_match(gt,bt[Z]),yt!==!1)return yt;if(this._backtrack){mt=!1;continue}else return!1}else if(!this.options.flex)break}return mt?(yt=this.test_match(mt,bt[ht]),yt!==!1?yt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var mt=this.next();return mt||this.lex()},begin:function(mt){this.conditionStack.push(mt)},popState:function(){var mt=this.conditionStack.length-1;return mt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(mt){return mt=this.conditionStack.length-1-Math.abs(mt||0),mt>=0?this.conditionStack[mt]:"INITIAL"},pushState:function(mt){this.begin(mt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(mt,gt,ht,bt){switch(ht){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return pt}();rt.lexer=at;function ut(){this.yy={}}return ut.prototype=rt,rt.Parser=ut,new ut}();fbt.parser=fbt;const RYe=fbt,Dzt=yf.pie,cX={sections:{},showData:!1,config:Dzt};let uX=cX.sections,dbt=cX.showData;const jYe=structuredClone(Dzt),$Ye={getConfig:()=>structuredClone(jYe),clear:()=>{uX=structuredClone(cX.sections),dbt=cX.showData,Wg()},setDiagramTitle:y2,getDiagramTitle:Jg,setAccTitle:ng,getAccTitle:Yg,setAccDescription:Xg,getAccDescription:Qg,addSection:(i,a)=>{i=Ed(i,Re()),uX[i]===void 0&&(uX[i]=a,Wt.debug(`added new section: ${i}, with value: ${a}`))},getSections:()=>uX,cleanupValue:i=>(i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())),setShowData:i=>{dbt=i},getShowData:()=>dbt},zYe=i=>`
|
|||
|
.pieCircle{
|
|||
|
stroke: ${i.pieStrokeColor};
|
|||
|
stroke-width : ${i.pieStrokeWidth};
|
|||
|
opacity : ${i.pieOpacity};
|
|||
|
}
|
|||
|
.pieOuterCircle{
|
|||
|
stroke: ${i.pieOuterStrokeColor};
|
|||
|
stroke-width: ${i.pieOuterStrokeWidth};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
.pieTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: ${i.pieTitleTextSize};
|
|||
|
fill: ${i.pieTitleTextColor};
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
}
|
|||
|
.slice {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
fill: ${i.pieSectionTextColor};
|
|||
|
font-size:${i.pieSectionTextSize};
|
|||
|
// fill: white;
|
|||
|
}
|
|||
|
.legend text {
|
|||
|
fill: ${i.pieLegendTextColor};
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: ${i.pieLegendTextSize};
|
|||
|
}
|
|||
|
`,qYe=i=>{const a=Object.entries(i).map(g=>({label:g[0],value:g[1]})).sort((g,w)=>w.value-g.value);return WLe().value(g=>g.value)(a)},HYe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:RYe,db:$Ye,renderer:{draw:(i,a,f,g)=>{Wt.debug(`rendering pie chart
|
|||
|
`+i);const w=g.db,v=Re(),b=TF(w.getConfig(),v.pie),E=40,_=18,S=4,I=450,B=I,F=wY(a),R=F.append("g"),q=w.getSections();R.attr("transform","translate("+B/2+","+I/2+")");const{themeVariables:X}=v;let[rt]=QL(X.pieOuterStrokeWidth);rt??(rt=2);const at=b.textPosition,ut=Math.min(B,I)/2-E,pt=jL().innerRadius(0).outerRadius(ut),yt=jL().innerRadius(ut*at).outerRadius(ut*at);R.append("circle").attr("cx",0).attr("cy",0).attr("r",ut+rt/2).attr("class","pieOuterCircle");const mt=qYe(q),gt=[X.pie1,X.pie2,X.pie3,X.pie4,X.pie5,X.pie6,X.pie7,X.pie8,X.pie9,X.pie10,X.pie11,X.pie12],ht=TW(gt);R.selectAll("mySlices").data(mt).enter().append("path").attr("d",pt).attr("fill",Et=>ht(Et.data.label)).attr("class","pieCircle");let bt=0;Object.keys(q).forEach(Et=>{bt+=q[Et]}),R.selectAll("mySlices").data(mt).enter().append("text").text(Et=>(Et.data.value/bt*100).toFixed(0)+"%").attr("transform",Et=>"translate("+yt.centroid(Et)+")").style("text-anchor","middle").attr("class","slice"),R.append("text").text(w.getDiagramTitle()).attr("x",0).attr("y",-(I-50)/2).attr("class","pieTitleText");const Z=R.selectAll(".legend").data(ht.domain()).enter().append("g").attr("class","legend").attr("transform",(Et,V)=>{const Nt=_+S,Dt=Nt*ht.domain().length/2,jt=12*_,Ct=V*Nt-Dt;return"translate("+jt+","+Ct+")"});Z.append("rect").attr("width",_).attr("height",_).style("fill",ht).style("stroke",ht),Z.data(mt).append("text").attr("x",_+S).attr("y",_-S).text(Et=>{const{label:V,value:Nt}=Et.data;return w.getShowData()?`${V} [${Nt}]`:V});const ft=Math.max(...Z.selectAll("text").nodes().map(Et=>(Et==null?void 0:Et.getBoundingClientRect().width)??0)),Y=B+E+_+S+ft;F.attr("viewBox",`0 0 ${Y} ${I}`),Kg(F,I,Y,b.useMaxWidth)}},styles:zYe}},Symbol.toStringTag,{value:"Module"}));var gbt=function(){var i=function(Pe,Ee,nn,sn){for(nn=nn||{},sn=Pe.length;sn--;nn[Pe[sn]]=Ee);return nn},a=[1,3],f=[1,4],g=[1,5],w=[1,6],v=[1,7],b=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],E=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],_=[32,33,34],S=[2,7],I=[1,13],B=[1,17],F=[1,18],R=[1,19],q=[1,20],X=[1,21],rt=[1,22],at=[1,23],ut=[1,24],pt=[1,25],yt=[1,26],mt=[1,27],gt=[1,30],ht=[1,31],bt=[1,32],Z=[1,33],ft=[1,34],Y=[1,35],Et=[1,36],V=[1,37],Nt=[1,38],Dt=[1,39],jt=[1,40],Ct=[1,41],Ft=[1,42],_t=[1,57],xt=[1,58],Gt=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],Be={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(Ee,nn,sn,me,Fe,Qt,Ae){var Se=Qt.length-1;switch(Fe){case 12:this.$=Qt[Se].trim(),me.setDiagramTitle(this.$);break;case 13:this.
|
|||
|
`+yi.showPosition()+`
|
|||
|
Expecting `+mo.join(", ")+", got '"+(this.terminals_[Pn]||Pn)+"'":vo="Parse error on line "+(Dn+1)+": Unexpected "+(Pn==we?"end of input":"'"+(this.terminals_[Pn]||Pn)+"'"),this.parseError(vo,{text:yi.match,token:this.terminals_[Pn]||Pn,line:yi.yylineno,loc:Ra,expected:mo})}if(Te[0]instanceof Array&&Te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Bn+", token: "+Pn);switch(Te[0]){case 1:sn.push(Pn),Fe.push(yi.yytext),Qt.push(yi.yylloc),sn.push(Te[1]),Pn=null,oe=yi.yyleng,Se=yi.yytext,Dn=yi.yylineno,Ra=yi.yylloc;break;case 2:if(yn=this.productions_[Te[1]][1],Qe.$=Fe[Fe.length-yn],Qe._$={first_line:Qt[Qt.length-(yn||1)].first_line,last_line:Qt[Qt.length-1].last_line,first_column:Qt[Qt.length-(yn||1)].first_column,last_column:Qt[Qt.length-1].last_column},fr&&(Qe._$.range=[Qt[Qt.length-(yn||1)].range[0],Qt[Qt.length-1].range[1]]),be=this.performAction.apply(Qe,[Se,oe,Dn,da.yy,Te[1],Fe,Qt].concat(Ri)),typeof be<"u")return be;yn&&(sn=sn.slice(0,-1*yn*2),Fe=Fe.slice(0,-1*yn),Qt=Qt.slice(0,-1*yn)),sn.push(this.productions_[Te[1]][0]),Fe.push(Qe.$),Qt.push(Qe._$),ja=Ae[sn[sn.length-2]][sn[sn.length-1]],sn.push(ja);break;case 3:return!0}}return!0}},Ot=function(){var Pe={EOF:1,parseError:function(nn,sn){if(this.yy.parser)this.yy.parser.parseError(nn,sn);else throw new Error(nn)},setInput:function(Ee,nn){return this.yy=nn||this.yy||{},this._input=Ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ee=this._input[0];this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee;var nn=Ee.match(/(?:\r\n?|\n).*/g);return nn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ee},unput:function(Ee){var nn=Ee.length,sn=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nn),this.offset-=nn;var me=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),sn.length-1&&(this.yylineno-=sn.length-1);var Fe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:sn?(sn.length===me.length?this.yylloc.first_column:0)+me[me.length-sn.length].length-sn[0].length:this.yylloc.first_column-nn},this.options.ranges&&(this.yylloc.range=[Fe[0],Fe[0]+this.yyleng-nn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),nn=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+`
|
|||
|
`+nn+"^"},test_match:function(Ee,nn){var sn,me,Fe;if(this.options.backtrack_lexer&&(Fe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Fe.yylloc.range=this.yylloc.range.slice(0))),me=Ee[0].match(/(?:\r\n?|\n).*/g),me&&(this.yylineno+=me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:me?me[me.length-1].length-me[me.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ee[0].length),this.matched+=Ee[0],sn=this.performAction.call(this,this.yy,this,nn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),sn)return sn;if(this._backtrack){for(var Qt in Fe)this[Qt]=Fe[Qt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ee,nn,sn,me;this._more||(this.yytext="",this.match="");for(var Fe=this._currentRules(),Qt=0;Qt<Fe.length;Qt++)if(sn=this._input.match(this.rules[Fe[Qt]]),sn&&(!nn||sn[0].length>nn[0].length)){if(nn=sn,me=Qt,this.options.backtrack_lexer){if(Ee=this.test_match(sn,Fe[Qt]),Ee!==!1)return Ee;if(this._backtrack){nn=!1;continue}else return!1}else if(!this.options.flex)break}return nn?(Ee=this.test_match(nn,Fe[me]),Ee!==!1?Ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var nn=this.next();return nn||this.lex()},begin:function(nn){this.conditionStack.push(nn)},popState:function(){var nn=this.conditionStack.length-1;return nn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(nn){return nn=this.conditionStack.length-1-Math.abs(nn||0),nn>=0?this.conditionStack[nn]:"INITIAL"},pushState:function(nn){this.begin(nn)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(nn,sn,me,Fe){switch(me){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return Pe}();Be.lexer=Ot;function vn(){this.yy={}}return vn.prototype=Be,Be.Parser=vn,new vn}();gbt.parser=gbt;const VYe=gbt,np=sgt();class UYe{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var a,f,g,w,v,b,E,_,S,I,B,F,R,q,X,rt,at,ut;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((a=yf.quadrantChart)==null?void 0:a.chartWidth)||500,chartWidth:((f=yf.quadrantChart)==null?void 0:f.chartHeight)||500,titlePadding:(
|
|||
|
`+i);const _=E.securityLevel;let S;_==="sandbox"&&(S=xr("#i"+a));const B=xr(_==="sandbox"?S.nodes()[0].contentDocument.body:"body").select(`[id="${a}"]`),F=B.append("g").attr("class","main"),R=((bt=E.quadrantChart)==null?void 0:bt.chartWidth)||500,q=((Z=E.quadrantChart)==null?void 0:Z.chartHeight)||500;Kg(B,q,R,((ft=E.quadrantChart)==null?void 0:ft.useMaxWidth)||!0),B.attr("viewBox","0 0 "+R+" "+q),g.db.setHeight(q),g.db.setWidth(R);const X=g.db.getQuadrantData(),rt=F.append("g").attr("class","quadrants"),at=F.append("g").attr("class","border"),ut=F.append("g").attr("class","data-points"),pt=F.append("g").attr("class","labels"),yt=F.append("g").attr("class","title");X.title&&yt.append("text").attr("x",0).attr("y",0).attr("fill",X.title.fill).attr("font-size",X.title.fontSize).attr("dominant-baseline",w(X.title.horizontalPos)).attr("text-anchor",v(X.title.verticalPos)).attr("transform",b(X.title)).text(X.title.text),X.borderLines&&at.selectAll("line").data(X.borderLines).enter().append("line").attr("x1",Y=>Y.x1).attr("y1",Y=>Y.y1).attr("x2",Y=>Y.x2).attr("y2",Y=>Y.y2).style("stroke",Y=>Y.strokeFill).style("stroke-width",Y=>Y.strokeWidth);const mt=rt.selectAll("g.quadrant").data(X.quadrants).enter().append("g").attr("class","quadrant");mt.append("rect").attr("x",Y=>Y.x).attr("y",Y=>Y.y).attr("width",Y=>Y.width).attr("height",Y=>Y.height).attr("fill",Y=>Y.fill),mt.append("text").attr("x",0).attr("y",0).attr("fill",Y=>Y.text.fill).attr("font-size",Y=>Y.text.fontSize).attr("dominant-baseline",Y=>w(Y.text.horizontalPos)).attr("text-anchor",Y=>v(Y.text.verticalPos)).attr("transform",Y=>b(Y.text)).text(Y=>Y.text.text),pt.selectAll("g.label").data(X.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(Y=>Y.text).attr("fill",Y=>Y.fill).attr("font-size",Y=>Y.fontSize).attr("dominant-baseline",Y=>w(Y.horizontalPos)).attr("text-anchor",Y=>v(Y.verticalPos)).attr("transform",Y=>b(Y));const ht=ut.selectAll("g.data-point").data(X.points).enter().append("g").attr("class","data-point");ht.append("circle").attr("cx",Y=>Y.x).attr("cy",Y=>Y.y).attr("r",Y=>Y.radius).attr("fill",Y=>Y.fill),ht.append("text").attr("x",0).attr("y",0).text(Y=>Y.text.text).attr("fill",Y=>Y.text.fill).attr("font-size",Y=>Y.text.fontSize).attr("dominant-baseline",Y=>w(Y.text.horizontalPos)).attr("text-anchor",Y=>v(Y.text.verticalPos)).attr("transform",Y=>b(Y.text))}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var pbt=function(){var i=function(Dt,jt,Ct,Ft){for(Ct=Ct||{},Ft=Dt.length;Ft--;Ct[Dt[Ft]]=jt);return Ct},a=[1,10,12,14,16,18,19,21,23],f=[2,6],g=[1,3],w=[1,5],v=[1,6],b=[1,7],E=[1,5,10,12,14,16,18,19,21,23,34,35,36],_=[1,25],S=[1,26],I=[1,28],B=[1,29],F=[1,30],R=[1,31],q=[1,32],X=[1,33],rt=[1,34],at=[1,35],ut=[1,36],pt=[1,37],yt=[1,43],mt=[1,42],gt=[1,47],ht=[1,50],bt=[1,10,12,14,16,18,19,21,23,34,35,36],Z=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],ft=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Y=[1,64],Et={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:
|
|||
|
`+me.showPosition()+`
|
|||
|
Expecting `+fr.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":An="Parse error on line "+(vn+1)+": Unexpected "+(oe==nn?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(An,{text:me.match,token:this.terminals_[oe]||oe,line:me.yylineno,loc:Ae,expected:fr})}if(we[0]instanceof Array&&we.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pr+", token: "+oe);switch(we[0]){case 1:Ft.push(oe),xt.push(me.yytext),Gt.push(me.yylloc),Ft.push(we[1]),oe=null,Pe=me.yyleng,Ot=me.yytext,vn=me.yylineno,Ae=me.yylloc;break;case 2:if(Ss=this.productions_[we[1]][1],yi.$=xt[xt.length-Ss],yi._$={first_line:Gt[Gt.length-(Ss||1)].first_line,last_line:Gt[Gt.length-1].last_line,first_column:Gt[Gt.length-(Ss||1)].first_column,last_column:Gt[Gt.length-1].last_column},Se&&(yi._$.range=[Gt[Gt.length-(Ss||1)].range[0],Gt[Gt.length-1].range[1]]),Ri=this.performAction.apply(yi,[Ot,Pe,vn,Fe.yy,we[1],xt,Gt].concat(sn)),typeof Ri<"u")return Ri;Ss&&(Ft=Ft.slice(0,-1*Ss*2),xt=xt.slice(0,-1*Ss),Gt=Gt.slice(0,-1*Ss)),Ft.push(this.productions_[we[1]][0]),xt.push(yi.$),Gt.push(yi._$),Ra=Be[Ft[Ft.length-2]][Ft[Ft.length-1]],Ft.push(Ra);break;case 3:return!0}}return!0}},V=function(){var Dt={EOF:1,parseError:function(Ct,Ft){if(this.yy.parser)this.yy.parser.parseError(Ct,Ft);else throw new Error(Ct)},setInput:function(jt,Ct){return this.yy=Ct||this.yy||{},this._input=jt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var jt=this._input[0];this.yytext+=jt,this.yyleng++,this.offset++,this.match+=jt,this.matched+=jt;var Ct=jt.match(/(?:\r\n?|\n).*/g);return Ct?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),jt},unput:function(jt){var Ct=jt.length,Ft=jt.split(/(?:\r\n?|\n)/g);this._input=jt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ct),this.offset-=Ct;var _t=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ft.length-1&&(this.yylineno-=Ft.length-1);var xt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ft?(Ft.length===_t.length?this.yylloc.first_column:0)+_t[_t.length-Ft.length].length-Ft[0].length:this.yylloc.first_column-Ct},this.options.ranges&&(this.yylloc.range=[xt[0],xt[0]+this.yyleng-Ct]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(jt){this.unput(this.match.slice(jt))},pastInput:function(){var jt=this.matched.substr(0,this.matched.length-this.match.length);return(jt.length>20?"...":"")+jt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var jt=this.match;return jt.length<20&&(jt+=this._input.substr(0,20-jt.length)),(jt.substr(0,20)+(jt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var jt=this.pastInput(),Ct=new Array(jt.length+1).join("-");return jt+this.upcomingInput()+`
|
|||
|
`+Ct+"^"},test_match:function(jt,Ct){var Ft,_t,xt;if(this.options.backtrack_lexer&&(xt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(xt.yylloc.range=this.yylloc.range.slice(0))),_t=jt[0].match(/(?:\r\n?|\n).*/g),_t&&(this.yylineno+=_t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_t?_t[_t.length-1].length-_t[_t.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+jt[0].length},this.yytext+=jt[0],this.match+=jt[0],this.matches=jt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(jt[0].length),this.matched+=jt[0],Ft=this.performAction.call(this,this.yy,this,Ct,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ft)return Ft;if(this._backtrack){for(var Gt in xt)this[Gt]=xt[Gt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var jt,Ct,Ft,_t;this._more||(this.yytext="",this.match="");for(var xt=this._currentRules(),Gt=0;Gt<xt.length;Gt++)if(Ft=this._input.match(this.rules[xt[Gt]]),Ft&&(!Ct||Ft[0].length>Ct[0].length)){if(Ct=Ft,_t=Gt,this.options.backtrack_lexer){if(jt=this.test_match(Ft,xt[Gt]),jt!==!1)return jt;if(this._backtrack){Ct=!1;continue}else return!1}else if(!this.options.flex)break}return Ct?(jt=this.test_match(Ct,xt[_t]),jt!==!1?jt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ct=this.next();return Ct||this.lex()},begin:function(Ct){this.conditionStack.push(Ct)},popState:function(){var Ct=this.conditionStack.length-1;return Ct>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ct){return Ct=this.conditionStack.length-1-Math.abs(Ct||0),Ct>=0?this.conditionStack[Ct]:"INITIAL"},pushState:function(Ct){this.begin(Ct)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ct,Ft,_t,xt){switch(_t){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return Dt}();Et.lexer=V;function Nt(){this.yy={}}return Nt.prototype=Et,Et.Parser=Nt,new Nt}();pbt.parser=pbt;const aXe=pbt;function Izt(i){return i.type==="bar"}function Ozt(i){return i.type==="band"}function rB(i){return i.type==="linear"}class Pzt{construc
|
|||
|
`+i);const I=wY(a),B=I.append("g").attr("class","main"),F=B.append("rect").attr("width",b.width).attr("height",b.height).attr("class","background");Kg(I,b.height,b.width,!0),I.attr("viewBox",`0 0 ${b.width} ${b.height}`),F.attr("fill",v.backgroundColor),w.setTmpSVGG(I.append("g").attr("class","mermaid-tmp-group"));const R=w.getDrawableElem(),q={};function X(rt){let at=B,ut="";for(const[pt]of rt.entries()){let yt=B;pt>0&&q[ut]&&(yt=q[ut]),ut+=rt[pt],at=q[ut],at||(at=q[ut]=yt.append("g").attr("class",rt[pt]))}return at}for(const rt of R){if(rt.data.length===0)continue;const at=X(rt.groupTexts);switch(rt.type){case"rect":at.selectAll("rect").data(rt.data).enter().append("rect").attr("x",ut=>ut.x).attr("y",ut=>ut.y).attr("width",ut=>ut.width).attr("height",ut=>ut.height).attr("fill",ut=>ut.fill).attr("stroke",ut=>ut.strokeFill).attr("stroke-width",ut=>ut.strokeWidth);break;case"text":at.selectAll("text").data(rt.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",ut=>ut.fill).attr("font-size",ut=>ut.fontSize).attr("dominant-baseline",ut=>E(ut.verticalPos)).attr("text-anchor",ut=>_(ut.horizontalPos)).attr("transform",ut=>S(ut)).text(ut=>ut.text);break;case"path":at.selectAll("path").data(rt.data).enter().append("path").attr("d",ut=>ut.path).attr("fill",ut=>ut.fill?ut.fill:"none").attr("stroke",ut=>ut.strokeFill).attr("stroke-width",ut=>ut.strokeWidth);break}}}}}},Symbol.toStringTag,{value:"Module"}));var vbt=function(){var i=function(Pe,Ee,nn,sn){for(nn=nn||{},sn=Pe.length;sn--;nn[Pe[sn]]=Ee);return nn},a=[1,3],f=[1,4],g=[1,5],w=[1,6],v=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],b=[1,18],E=[2,7],_=[1,22],S=[1,23],I=[1,24],B=[1,25],F=[1,26],R=[1,27],q=[1,20],X=[1,28],rt=[1,29],at=[62,63],ut=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pt=[1,47],yt=[1,48],mt=[1,49],gt=[1,50],ht=[1,51],bt=[1,52],Z=[1,53],ft=[53,54],Y=[1,64],Et=[1,60],V=[1,61],Nt=[1,62],Dt=[1,63],jt=[1,65],Ct=[1,69],Ft=[1,70],_t=[1,67],xt=[1,68],Gt=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],Be={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(Ee,nn,sn,me,Fe,Qt,A
|
|||
|
`+yi.showPosition()+`
|
|||
|
Expecting `+mo.join(", ")+", got '"+(this.terminals_[Pn]||Pn)+"'":vo="Parse error on line "+(Dn+1)+": Unexpected "+(Pn==we?"end of input":"'"+(this.terminals_[Pn]||Pn)+"'"),this.parseError(vo,{text:yi.match,token:this.terminals_[Pn]||Pn,line:yi.yylineno,loc:Ra,expected:mo})}if(Te[0]instanceof Array&&Te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Bn+", token: "+Pn);switch(Te[0]){case 1:sn.push(Pn),Fe.push(yi.yytext),Qt.push(yi.yylloc),sn.push(Te[1]),Pn=null,oe=yi.yyleng,Se=yi.yytext,Dn=yi.yylineno,Ra=yi.yylloc;break;case 2:if(yn=this.productions_[Te[1]][1],Qe.$=Fe[Fe.length-yn],Qe._$={first_line:Qt[Qt.length-(yn||1)].first_line,last_line:Qt[Qt.length-1].last_line,first_column:Qt[Qt.length-(yn||1)].first_column,last_column:Qt[Qt.length-1].last_column},fr&&(Qe._$.range=[Qt[Qt.length-(yn||1)].range[0],Qt[Qt.length-1].range[1]]),be=this.performAction.apply(Qe,[Se,oe,Dn,da.yy,Te[1],Fe,Qt].concat(Ri)),typeof be<"u")return be;yn&&(sn=sn.slice(0,-1*yn*2),Fe=Fe.slice(0,-1*yn),Qt=Qt.slice(0,-1*yn)),sn.push(this.productions_[Te[1]][0]),Fe.push(Qe.$),Qt.push(Qe._$),ja=Ae[sn[sn.length-2]][sn[sn.length-1]],sn.push(ja);break;case 3:return!0}}return!0}},Ot=function(){var Pe={EOF:1,parseError:function(nn,sn){if(this.yy.parser)this.yy.parser.parseError(nn,sn);else throw new Error(nn)},setInput:function(Ee,nn){return this.yy=nn||this.yy||{},this._input=Ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ee=this._input[0];this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee;var nn=Ee.match(/(?:\r\n?|\n).*/g);return nn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ee},unput:function(Ee){var nn=Ee.length,sn=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nn),this.offset-=nn;var me=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),sn.length-1&&(this.yylineno-=sn.length-1);var Fe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:sn?(sn.length===me.length?this.yylloc.first_column:0)+me[me.length-sn.length].length-sn[0].length:this.yylloc.first_column-nn},this.options.ranges&&(this.yylloc.range=[Fe[0],Fe[0]+this.yyleng-nn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),nn=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+`
|
|||
|
`+nn+"^"},test_match:function(Ee,nn){var sn,me,Fe;if(this.options.backtrack_lexer&&(Fe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Fe.yylloc.range=this.yylloc.range.slice(0))),me=Ee[0].match(/(?:\r\n?|\n).*/g),me&&(this.yylineno+=me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:me?me[me.length-1].length-me[me.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ee[0].length),this.matched+=Ee[0],sn=this.performAction.call(this,this.yy,this,nn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),sn)return sn;if(this._backtrack){for(var Qt in Fe)this[Qt]=Fe[Qt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ee,nn,sn,me;this._more||(this.yytext="",this.match="");for(var Fe=this._currentRules(),Qt=0;Qt<Fe.length;Qt++)if(sn=this._input.match(this.rules[Fe[Qt]]),sn&&(!nn||sn[0].length>nn[0].length)){if(nn=sn,me=Qt,this.options.backtrack_lexer){if(Ee=this.test_match(sn,Fe[Qt]),Ee!==!1)return Ee;if(this._backtrack){nn=!1;continue}else return!1}else if(!this.options.flex)break}return nn?(Ee=this.test_match(nn,Fe[me]),Ee!==!1?Ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var nn=this.next();return nn||this.lex()},begin:function(nn){this.conditionStack.push(nn)},popState:function(){var nn=this.conditionStack.length-1;return nn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(nn){return nn=this.conditionStack.length-1-Math.abs(nn||0),nn>=0?this.conditionStack[nn]:"INITIAL"},pushState:function(nn){this.begin(nn)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(nn,sn,me,Fe){switch(me){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return sn.yytext=sn.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return Pe}();Be.lexer=Ot;function vn(){this.yy={}}return vn.prototype=Be,Be.Parser=vn,new vn}();vbt.parser=vbt;const MXe=vbt;let ybt=[],ob={},oB={},T8={},cB={};const DXe={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},getConfig:()=>Re().req,addRequireme
|
|||
|
|
|||
|
marker {
|
|||
|
fill: ${i.relationColor};
|
|||
|
stroke: ${i.relationColor};
|
|||
|
}
|
|||
|
|
|||
|
marker.cross {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
svg {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: ${i.fontSize};
|
|||
|
}
|
|||
|
|
|||
|
.reqBox {
|
|||
|
fill: ${i.requirementBackground};
|
|||
|
fill-opacity: 1.0;
|
|||
|
stroke: ${i.requirementBorderColor};
|
|||
|
stroke-width: ${i.requirementBorderSize};
|
|||
|
}
|
|||
|
|
|||
|
.reqTitle, .reqLabel{
|
|||
|
fill: ${i.requirementTextColor};
|
|||
|
}
|
|||
|
.reqLabelBox {
|
|||
|
fill: ${i.relationLabelBackground};
|
|||
|
fill-opacity: 1.0;
|
|||
|
}
|
|||
|
|
|||
|
.req-title-line {
|
|||
|
stroke: ${i.requirementBorderColor};
|
|||
|
stroke-width: ${i.requirementBorderSize};
|
|||
|
}
|
|||
|
.relationshipLine {
|
|||
|
stroke: ${i.relationColor};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
.relationshipLabel {
|
|||
|
fill: ${i.relationLabelColor};
|
|||
|
}
|
|||
|
|
|||
|
`,xbt={CONTAINS:"contains",ARROW:"arrow"},Gzt={ReqMarkers:xbt,insertLineEndings:(i,a)=>{let f=i.append("defs").append("marker").attr("id",xbt.CONTAINS+"_line_ending").attr("refX",0).attr("refY",a.line_height/2).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("g");f.append("circle").attr("cx",a.line_height/2).attr("cy",a.line_height/2).attr("r",a.line_height/2).attr("fill","none"),f.append("line").attr("x1",0).attr("x2",a.line_height).attr("y1",a.line_height/2).attr("y2",a.line_height/2).attr("stroke-width",1),f.append("line").attr("y1",0).attr("y2",a.line_height).attr("x1",a.line_height/2).attr("x2",a.line_height/2).attr("stroke-width",1),i.append("defs").append("marker").attr("id",xbt.ARROW+"_line_ending").attr("refX",a.line_height).attr("refY",.5*a.line_height).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|||
|
L${a.line_height},${a.line_height/2}
|
|||
|
M${a.line_height},${a.line_height/2}
|
|||
|
L0,${a.line_height}`).attr("stroke-width",1)}};let Kh={},Kzt=0;const Wzt=(i,a)=>i.insert("rect","#"+a).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Kh.rect_min_width+"px").attr("height",Kh.rect_min_height+"px"),Yzt=(i,a,f)=>{let g=Kh.rect_min_width/2,w=i.append("text").attr("class","req reqLabel reqTitle").attr("id",a).attr("x",g).attr("y",Kh.rect_padding).attr("dominant-baseline","hanging"),v=0;f.forEach(S=>{v==0?w.append("tspan").attr("text-anchor","middle").attr("x",Kh.rect_min_width/2).attr("dy",0).text(S):w.append("tspan").attr("text-anchor","middle").attr("x",Kh.rect_min_width/2).attr("dy",Kh.line_height*.75).text(S),v++});let b=1.5*Kh.rect_padding,E=v*Kh.line_height*.75,_=b+E;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Kh.rect_min_width).attr("y1",_).attr("y2",_),{titleNode:w,y:_}},Xzt=(i,a,f,g)=>{let w=i.append("text").attr("class","req reqLabel").attr("id",a).attr("x",Kh.rect_padding).attr("y",g).attr("dominant-baseline","hanging"),v=0;const b=30;let E=[];return f.forEach(_=>{let S=_.length;for(;S>b&&v<3;){let I=_.substring(0,b);_=_.substring(b,_.length),S=_.length,E[E.length]=I,v++}if(v==3){let I=E[E.length-1];E[E.length-1]=I.substring(0,I.length-4)+"..."}else E[E.length]=_;v=0}),E.forEach(_=>{w.append("tspan").attr("x",Kh.rect_padding).attr("dy",Kh.line_height).text(_)}),w},OXe=(i,a,f,g)=>{const w=a.node().getTotalLength(),v=a.node().getPointAtLength(w*.5),b="rel"+Kzt;Kzt++;const _=i.append("text").attr("class","req relationshipLabel").attr("id",b).attr("x",v.x).attr("y",v.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(g).node().getBBox();i.insert("rect","#"+b).attr("class","req reqLabelBox").attr("x",v.x-_.width/2).attr("y",v.y-_.height/2).attr("width",_.width).attr("height",_.height).attr("fill","white").attr("fill-opacity","85%")},PXe=function(i,a,f,g,w){const v=f.edge(xM(a.src),xM(a.dst)),b=Cx().x(function(_){return _.x}).y(function(_){return _.y}),E=i.insert("path","#"+g).attr("class","er relationshipLine").attr("d",b(v.points)).attr("fill","none");a.type==w.db.Relationships.CONTAINS?E.attr("marker-start","url("+ei.getUrl(Kh.arrowMarkerAbsolute)+"#"+a.type+"_line_ending)"):(E.attr("stroke-dasharray","10,7"),E.attr("marker-end","url("+ei.getUrl(Kh.arrowMarkerAbsolute)+"#"+Gzt.ReqMarkers.ARROW+"_line_ending)")),OXe(i,E,Kh,`<<${a.type}>>`)},NXe=(i,a,f)=>{Object.keys(i).forEach(g=>{let w=i[g];g=xM(g),Wt.info("Added new requirement: ",g);const v=f.append("g").attr("id",g),b="req-"+g,E=Wzt(v,b);let _=Yzt(v,g+"_title",[`<<${w.type}>>`,`${w.name}`]);Xzt(v,g+"_body",[`Id: ${w.id}`,`Text: ${w.text}`,`Risk: ${w.risk}`,`Verification: ${w.verifyMethod}`],_.y);const S=E.node().getBBox();a.setNode(g,{width:S.width,height:S.height,shape:"rect",id:g})})},FXe=(i,a,f)=>{Object.keys(i).forEach(g=>{let w=i[g];const v=xM(g),b=f.append("g").attr("id",v),E="element-"+v,_=Wzt(b,E);let S=Yzt(b,E+"_title",["<<Element>>",`${g}`]);Xzt(b,E+"_body",[`Type: ${w.type||"Not Specified"}`,`Doc Ref: ${w.docRef||"None"}`],S.y);const I=_.node().getBBox();a.setNode(v,{width:I.width,height:I.height,shape:"rect",id:v})})},BXe=(i,a)=>(i.forEach(function(f){let g=xM(f.src),w=xM(f.dst);a.setEdge(g,w,{relationship:f})}),i),RXe=function(i,a){a.nodes().forEach(function(f){f!==void 0&&a.node(f)!==void 0&&(i.select("#"+f),i.select("#"+f).attr("transform","translate("+(a.node(f).x-a.node(f).width/2)+","+(a.node(f).y-a.node(f).height/2)+" )"))})},xM=i=>i.replace(/\s/g,"").replace(/\./g,"_"),jXe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:MXe,db:DXe,renderer:{draw:(i,a,f,g)=>{Kh=Re().requirement;const w=Kh.securityLevel;let v;w==="sandbox"&&(v=xr("#i"+a));const E=xr(w==="sandbox"?v.nodes()[0].contentDocument.body:"body").select(`[id='${a}']`);Gzt.insertLineEndings(E,Kh);const _=new R1({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Kh.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let S=g.db.getRequirements(),I=g.db.getElements(),B=g.db.getRelationships();NXe(S,_,E),F
|
|||
|
`+fr.showPosition()+`
|
|||
|
Expecting `+gs.join(", ")+", got '"+(this.terminals_[Qe]||Qe)+"'":Nu="Parse error on line "+(Ri+1)+": Unexpected "+(Qe==Ss?"end of input":"'"+(this.terminals_[Qe]||Qe)+"'"),this.parseError(Nu,{text:fr.match,token:this.terminals_[Qe]||Qe,line:fr.yylineno,loc:Bn,expected:gs})}if(yn[0]instanceof Array&&yn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+rn+", token: "+Qe);switch(yn[0]){case 1:Ae.push(Qe),Dn.push(fr.yytext),oe.push(fr.yylloc),Ae.push(yn[1]),Qe=null,yi=fr.yyleng,we=fr.yytext,Ri=fr.yylineno,Bn=fr.yylloc;break;case 2:if(ma=this.productions_[yn[1]][1],mo.$=Dn[Dn.length-ma],mo._$={first_line:oe[oe.length-(ma||1)].first_line,last_line:oe[oe.length-1].last_line,first_column:oe[oe.length-(ma||1)].first_column,last_column:oe[oe.length-1].last_column},Te&&(mo._$.range=[oe[oe.length-(ma||1)].range[0],oe[oe.length-1].range[1]]),ja=this.performAction.apply(mo,[we,yi,Ri,An.yy,yn[1],Dn,oe].concat(Ra)),typeof ja<"u")return ja;ma&&(Ae=Ae.slice(0,-1*ma*2),Dn=Dn.slice(0,-1*ma),oe=oe.slice(0,-1*ma)),Ae.push(this.productions_[yn[1]][0]),Dn.push(mo.$),oe.push(mo._$),$a=Pr[Ae[Ae.length-2]][Ae[Ae.length-1]],Ae.push($a);break;case 3:return!0}}return!0}},nn=function(){var me={EOF:1,parseError:function(Qt,Ae){if(this.yy.parser)this.yy.parser.parseError(Qt,Ae);else throw new Error(Qt)},setInput:function(Fe,Qt){return this.yy=Qt||this.yy||{},this._input=Fe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Fe=this._input[0];this.yytext+=Fe,this.yyleng++,this.offset++,this.match+=Fe,this.matched+=Fe;var Qt=Fe.match(/(?:\r\n?|\n).*/g);return Qt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Fe},unput:function(Fe){var Qt=Fe.length,Ae=Fe.split(/(?:\r\n?|\n)/g);this._input=Fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qt),this.offset-=Qt;var Se=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ae.length-1&&(this.yylineno-=Ae.length-1);var Dn=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ae?(Ae.length===Se.length?this.yylloc.first_column:0)+Se[Se.length-Ae.length].length-Ae[0].length:this.yylloc.first_column-Qt},this.options.ranges&&(this.yylloc.range=[Dn[0],Dn[0]+this.yyleng-Qt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Fe){this.unput(this.match.slice(Fe))},pastInput:function(){var Fe=this.matched.substr(0,this.matched.length-this.match.length);return(Fe.length>20?"...":"")+Fe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Fe=this.match;return Fe.length<20&&(Fe+=this._input.substr(0,20-Fe.length)),(Fe.substr(0,20)+(Fe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Fe=this.pastInput(),Qt=new Array(Fe.length+1).join("-");return Fe+this.upcomingInput()+`
|
|||
|
`+Qt+"^"},test_match:function(Fe,Qt){var Ae,Se,Dn;if(this.options.backtrack_lexer&&(Dn={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Dn.yylloc.range=this.yylloc.range.slice(0))),Se=Fe[0].match(/(?:\r\n?|\n).*/g),Se&&(this.yylineno+=Se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Se?Se[Se.length-1].length-Se[Se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Fe[0].length},this.yytext+=Fe[0],this.match+=Fe[0],this.matches=Fe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Fe[0].length),this.matched+=Fe[0],Ae=this.performAction.call(this,this.yy,this,Qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ae)return Ae;if(this._backtrack){for(var oe in Dn)this[oe]=Dn[oe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Fe,Qt,Ae,Se;this._more||(this.yytext="",this.match="");for(var Dn=this._currentRules(),oe=0;oe<Dn.length;oe++)if(Ae=this._input.match(this.rules[Dn[oe]]),Ae&&(!Qt||Ae[0].length>Qt[0].length)){if(Qt=Ae,Se=oe,this.options.backtrack_lexer){if(Fe=this.test_match(Ae,Dn[oe]),Fe!==!1)return Fe;if(this._backtrack){Qt=!1;continue}else return!1}else if(!this.options.flex)break}return Qt?(Fe=this.test_match(Qt,Dn[Se]),Fe!==!1?Fe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Qt=this.next();return Qt||this.lex()},begin:function(Qt){this.conditionStack.push(Qt)},popState:function(){var Qt=this.conditionStack.length-1;return Qt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Qt){return Qt=this.conditionStack.length-1-Math.abs(Qt||0),Qt>=0?this.conditionStack[Qt]:"INITIAL"},pushState:function(Qt){this.begin(Qt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Qt,Ae,Se,Dn){switch(Se){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return Ae.yytext=Ae.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return Ae.yytext=Ae.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2
|
|||
|
stroke: ${i.actorBorder};
|
|||
|
fill: ${i.actorBkg};
|
|||
|
}
|
|||
|
|
|||
|
text.actor > tspan {
|
|||
|
fill: ${i.actorTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.actor-line {
|
|||
|
stroke: ${i.actorLineColor};
|
|||
|
}
|
|||
|
|
|||
|
.messageLine0 {
|
|||
|
stroke-width: 1.5;
|
|||
|
stroke-dasharray: none;
|
|||
|
stroke: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
.messageLine1 {
|
|||
|
stroke-width: 1.5;
|
|||
|
stroke-dasharray: 2, 2;
|
|||
|
stroke: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
#arrowhead path {
|
|||
|
fill: ${i.signalColor};
|
|||
|
stroke: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
.sequenceNumber {
|
|||
|
fill: ${i.sequenceNumberColor};
|
|||
|
}
|
|||
|
|
|||
|
#sequencenumber {
|
|||
|
fill: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
#crosshead path {
|
|||
|
fill: ${i.signalColor};
|
|||
|
stroke: ${i.signalColor};
|
|||
|
}
|
|||
|
|
|||
|
.messageText {
|
|||
|
fill: ${i.signalTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.labelBox {
|
|||
|
stroke: ${i.labelBoxBorderColor};
|
|||
|
fill: ${i.labelBoxBkgColor};
|
|||
|
}
|
|||
|
|
|||
|
.labelText, .labelText > tspan {
|
|||
|
fill: ${i.labelTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.loopText, .loopText > tspan {
|
|||
|
fill: ${i.loopTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.loopLine {
|
|||
|
stroke-width: 2px;
|
|||
|
stroke-dasharray: 2, 2;
|
|||
|
stroke: ${i.labelBoxBorderColor};
|
|||
|
fill: ${i.labelBoxBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.note {
|
|||
|
//stroke: #decc93;
|
|||
|
stroke: ${i.noteBorderColor};
|
|||
|
fill: ${i.noteBkgColor};
|
|||
|
}
|
|||
|
|
|||
|
.noteText, .noteText > tspan {
|
|||
|
fill: ${i.noteTextColor};
|
|||
|
stroke: none;
|
|||
|
}
|
|||
|
|
|||
|
.activation0 {
|
|||
|
fill: ${i.activationBkgColor};
|
|||
|
stroke: ${i.activationBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.activation1 {
|
|||
|
fill: ${i.activationBkgColor};
|
|||
|
stroke: ${i.activationBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.activation2 {
|
|||
|
fill: ${i.activationBkgColor};
|
|||
|
stroke: ${i.activationBorderColor};
|
|||
|
}
|
|||
|
|
|||
|
.actorPopupMenu {
|
|||
|
position: absolute;
|
|||
|
}
|
|||
|
|
|||
|
.actorPopupMenuPanel {
|
|||
|
position: absolute;
|
|||
|
fill: ${i.actorBkg};
|
|||
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|||
|
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|||
|
}
|
|||
|
.actor-man line {
|
|||
|
stroke: ${i.actorBorder};
|
|||
|
fill: ${i.actorBkg};
|
|||
|
}
|
|||
|
.actor-man circle, line {
|
|||
|
stroke: ${i.actorBorder};
|
|||
|
fill: ${i.actorBkg};
|
|||
|
stroke-width: 2px;
|
|||
|
}
|
|||
|
`,I9=18*2,Cbt=function(i,a){return _Y(i,a)},iqt=(i,a)=>{sNe(()=>{const f=document.querySelectorAll(i);f.length!==0&&(f[0].addEventListener("mouseover",function(){pQe("actor"+a+"_popup")}),f[0].addEventListener("mouseout",function(){bQe("actor"+a+"_popup")}))})},fQe=function(i,a,f,g,w){if(a.links===void 0||a.links===null||Object.keys(a.links).length===0)return{height:0,width:0};const v=a.links,b=a.actorCnt,E=a.rectData;var _="none";w&&(_="block !important");const S=i.append("g");S.attr("id","actor"+b+"_popup"),S.attr("class","actorPopupMenu"),S.attr("display",_),iqt("#actor"+b+"_popup",b);var I="";E.class!==void 0&&(I=" "+E.class);let B=E.width>f?E.width:f;const F=S.append("rect");if(F.attr("class","actorPopupMenuPanel"+I),F.attr("x",E.x),F.attr("y",E.height),F.attr("fill",E.fill),F.attr("stroke",E.stroke),F.attr("width",B),F.attr("height",E.height),F.attr("rx",E.rx),F.attr("ry",E.ry),v!=null){var R=20;for(let rt in v){var q=S.append("a"),X=c8(v[rt]);q.attr("xlink:href",X),q.attr("target","_blank"),IQe(g)(rt,q,E.x+10,E.height+R,B,20,{class:"actor"},g),R+=30}}return F.attr("height",R),{height:E.height+R,width:B}},dQe=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = 'block'; }"},gQe=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = 'none'; }"},pQe=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="block")},bQe=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="none")},kM=function(i,a){let f=0,g=0;const w=a.text.split(ei.lineBreakRegex),[v,b]=QL(a.fontSize);let E=[],_=0,S=()=>a.y;if(a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0)switch(a.valign){case"top":case"start":S=()=>Math.round(a.y+a.textMargin);break;case"middle":case"center":S=()=>Math.round(a.y+(f+g+a.textMargin)/2);break;case"bottom":case"end":S=()=>Math.round(a.y+(f+g+2*a.textMargin)-a.textMargin);break}if(a.anchor!==void 0&&a.textMargin!==void 0&&a.width!==void 0)switch(a.anchor){case"left":case"start":a.x=Math.round(a.x+a.textMargin),a.anchor="start",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"middle":case"center":a.x=Math.round(a.x+a.width/2),a.anchor="middle",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"right":case"end":a.x=Math.round(a.x+a.width-a.textMargin),a.anchor="end",a.dominantBaseline="middle",a.alignmentBaseline="middle";break}for(let[I,B]of w.entries()){a.textMargin!==void 0&&a.textMargin===0&&v!==void 0&&(_=I*v);const F=i.append("text");F.attr("x",a.x),F.attr("y",S()),a.anchor!==void 0&&F.attr("text-anchor",a.anchor).attr("dominant-baseline",a.dominantBaseline).attr("alignment-baseline",a.alignmentBaseline),a.fontFamily!==void 0&&F.style("font-family",a.fontFamily),b!==void 0&&F.style("font-size",b),a.fontWeight!==void 0&&F.style("font-weight",a.fontWeight),a.fill!==void 0&&F.attr("fill",a.fill),a.class!==void 0&&F.attr("class",a.class),a.dy!==void 0?F.attr("dy",a.dy):_!==0&&F.attr("dy",_);const R=B||oFt;if(a.tspan){const q=F.append("tspan");q.attr("x",a.x),a.fill!==void 0&&q.attr("fill",a.fill),q.text(R)}else F.text(R);a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0&&(g+=(F._groups||F)[0][0].getBBox().height,f=g),E.push(F)}return E},sqt=function(i,a){function f(w,v,b,E,_){return w+","+v+" "+(w+b)+","+v+" "+(w+b)+","+(v+E-_)+" "+(w+b-_*1.2)+","+(v+E)+" "+w+","+(v+E)}const g=i.append("polygon");return g.attr("points",f(a.x,a.y,a.width,a.height,7)),g.attr("class","labelBox"),a.y=a.y+a.height/2,kM(i,a),g};let ny=-1;const aqt=(i,a,f,g)=>{i.select&&f.forEach(w=>{const v=a[w],b=i.select("#actor"+v.actorCnt);!g.mirrorActors&&v.stopy?b.attr("y2",v.stopy+v.height/2):g.mirrorActors&&b.attr("y2",v.stopy)})},wQe=function(i,a,f,g){const w=g?a.stopy:a.starty,v=a.x+a.width/2,b=w+5,E=i.append("g").lower();var _=E;g||(ny++,_.append("line").attr("id","actor"+ny).attr("x1",v).attr("y1",b).attr("x2",v).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),_=E.append("g"),a.actorCnt=ny,a.links!=null&&(_.att
|
|||
|
`+$a.showPosition()+`
|
|||
|
Expecting `+oa.join(", ")+", got '"+(this.terminals_[ll]||ll)+"'":va="Parse error on line "+(yn+1)+": Unexpected "+(ll==vo?"end of input":"'"+(this.terminals_[ll]||ll)+"'"),this.parseError(va,{text:$a.match,token:this.terminals_[ll]||ll,line:$a.yylineno,loc:ta,expected:oa})}if(pc[0]instanceof Array&&pc.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ac+", token: "+ll);switch(pc[0]){case 1:Pn.push(ll),Te.push($a.yytext),be.push($a.yylloc),Pn.push(pc[1]),ll=null,ja=$a.yyleng,rn=$a.yytext,yn=$a.yylineno,ta=$a.yylloc;break;case 2:if(co=this.productions_[pc[1]][1],du.$=Te[Te.length-co],du._$={first_line:be[be.length-(co||1)].first_line,last_line:be[be.length-1].last_line,first_column:be[be.length-(co||1)].first_column,last_column:be[be.length-1].last_column},l1&&(du._$.range=[be[be.length-(co||1)].range[0],be[be.length-1].range[1]]),ka=this.performAction.apply(du,[rn,ja,yn,gs.yy,pc[1],Te,be].concat(ma)),typeof ka<"u")return ka;co&&(Pn=Pn.slice(0,-1*co*2),Te=Te.slice(0,-1*co),be=be.slice(0,-1*co)),Pn.push(this.productions_[pc[1]][0]),Te.push(du.$),be.push(du._$),bc=Qe[Pn[Pn.length-2]][Pn[Pn.length-1]],Pn.push(bc);break;case 3:return!0}}return!0}},da=function(){var Ra={EOF:1,parseError:function(An,Pn){if(this.yy.parser)this.yy.parser.parseError(An,Pn);else throw new Error(An)},setInput:function(fr,An){return this.yy=An||this.yy||{},this._input=fr,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var fr=this._input[0];this.yytext+=fr,this.yyleng++,this.offset++,this.match+=fr,this.matched+=fr;var An=fr.match(/(?:\r\n?|\n).*/g);return An?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),fr},unput:function(fr){var An=fr.length,Pn=fr.split(/(?:\r\n?|\n)/g);this._input=fr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-An),this.offset-=An;var Bn=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Pn.length-1&&(this.yylineno-=Pn.length-1);var Te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Pn?(Pn.length===Bn.length?this.yylloc.first_column:0)+Bn[Bn.length-Pn.length].length-Pn[0].length:this.yylloc.first_column-An},this.options.ranges&&(this.yylloc.range=[Te[0],Te[0]+this.yyleng-An]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(fr){this.unput(this.match.slice(fr))},pastInput:function(){var fr=this.matched.substr(0,this.matched.length-this.match.length);return(fr.length>20?"...":"")+fr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var fr=this.match;return fr.length<20&&(fr+=this._input.substr(0,20-fr.length)),(fr.substr(0,20)+(fr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var fr=this.pastInput(),An=new Array(fr.length+1).join("-");return fr+this.upcomingInput()+`
|
|||
|
`+An+"^"},test_match:function(fr,An){var Pn,Bn,Te;if(this.options.backtrack_lexer&&(Te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Te.yylloc.range=this.yylloc.range.slice(0))),Bn=fr[0].match(/(?:\r\n?|\n).*/g),Bn&&(this.yylineno+=Bn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Bn?Bn[Bn.length-1].length-Bn[Bn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fr[0].length},this.yytext+=fr[0],this.match+=fr[0],this.matches=fr,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(fr[0].length),this.matched+=fr[0],Pn=this.performAction.call(this,this.yy,this,An,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Pn)return Pn;if(this._backtrack){for(var be in Te)this[be]=Te[be];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var fr,An,Pn,Bn;this._more||(this.yytext="",this.match="");for(var Te=this._currentRules(),be=0;be<Te.length;be++)if(Pn=this._input.match(this.rules[Te[be]]),Pn&&(!An||Pn[0].length>An[0].length)){if(An=Pn,Bn=be,this.options.backtrack_lexer){if(fr=this.test_match(Pn,Te[be]),fr!==!1)return fr;if(this._backtrack){An=!1;continue}else return!1}else if(!this.options.flex)break}return An?(fr=this.test_match(An,Te[Bn]),fr!==!1?fr:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var An=this.next();return An||this.lex()},begin:function(An){this.conditionStack.push(An)},popState:function(){var An=this.conditionStack.length-1;return An>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(An){return An=this.conditionStack.length-1-Math.abs(An||0),An>=0?this.conditionStack[An]:"INITIAL"},pushState:function(An){this.begin(An)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(An,Pn,Bn,Te){switch(Bn){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/
|
|||
|
fill: ${i.nodeBorder||i.classText};
|
|||
|
stroke: none;
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: 10px;
|
|||
|
|
|||
|
.title {
|
|||
|
font-weight: bolder;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
.nodeLabel, .edgeLabel {
|
|||
|
color: ${i.classText};
|
|||
|
}
|
|||
|
.edgeLabel .label rect {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
}
|
|||
|
.label text {
|
|||
|
fill: ${i.classText};
|
|||
|
}
|
|||
|
.edgeLabel .label span {
|
|||
|
background: ${i.mainBkg};
|
|||
|
}
|
|||
|
|
|||
|
.classTitle {
|
|||
|
font-weight: bolder;
|
|||
|
}
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
.divider {
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
g.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
g.classGroup rect {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
g.classGroup line {
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
.classLabel .box {
|
|||
|
stroke: none;
|
|||
|
stroke-width: 0;
|
|||
|
fill: ${i.mainBkg};
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
|
|||
|
.classLabel .label {
|
|||
|
fill: ${i.nodeBorder};
|
|||
|
font-size: 10px;
|
|||
|
}
|
|||
|
|
|||
|
.relation {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 1;
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.dashed-line{
|
|||
|
stroke-dasharray: 3;
|
|||
|
}
|
|||
|
|
|||
|
.dotted-line{
|
|||
|
stroke-dasharray: 1 2;
|
|||
|
}
|
|||
|
|
|||
|
#compositionStart, .composition {
|
|||
|
fill: ${i.lineColor} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#compositionEnd, .composition {
|
|||
|
fill: ${i.lineColor} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#dependencyStart, .dependency {
|
|||
|
fill: ${i.lineColor} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#dependencyStart, .dependency {
|
|||
|
fill: ${i.lineColor} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#extensionStart, .extension {
|
|||
|
fill: transparent !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#extensionEnd, .extension {
|
|||
|
fill: transparent !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#aggregationStart, .aggregation {
|
|||
|
fill: transparent !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#aggregationEnd, .aggregation {
|
|||
|
fill: transparent !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#lollipopStart, .lollipop {
|
|||
|
fill: ${i.mainBkg} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
#lollipopEnd, .lollipop {
|
|||
|
fill: ${i.mainBkg} !important;
|
|||
|
stroke: ${i.lineColor} !important;
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
.edgeTerminals {
|
|||
|
font-size: 11px;
|
|||
|
line-height: initial;
|
|||
|
}
|
|||
|
|
|||
|
.classTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
`;let xqt=0;const hJe=function(i,a,f,g,w){const v=function(ut){switch(ut){case w.db.relationType.AGGREGATION:return"aggregation";case w.db.relationType.EXTENSION:return"extension";case w.db.relationType.COMPOSITION:return"composition";case w.db.relationType.DEPENDENCY:return"dependency";case w.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(ut=>!Number.isNaN(ut.y));const b=a.points,E=Cx().x(function(ut){return ut.x}).y(function(ut){return ut.y}).curve(lF),_=i.append("path").attr("d",E(b)).attr("id","edge"+xqt).attr("class","relation");let S="";g.arrowMarkerAbsolute&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),f.relation.lineType==1&&_.attr("class","relation dashed-line"),f.relation.lineType==10&&_.attr("class","relation dotted-line"),f.relation.type1!=="none"&&_.attr("marker-start","url("+S+"#"+v(f.relation.type1)+"Start)"),f.relation.type2!=="none"&&_.attr("marker-end","url("+S+"#"+v(f.relation.type2)+"End)");let I,B;const F=a.points.length;let R=ao.calcLabelPosition(a.points);I=R.x,B=R.y;let q,X,rt,at;if(F%2!==0&&F>1){let ut=ao.calcCardinalityPosition(f.relation.type1!=="none",a.points,a.points[0]),pt=ao.calcCardinalityPosition(f.relation.type2!=="none",a.points,a.points[F-1]);Wt.debug("cardinality_1_point "+JSON.stringify(ut)),Wt.debug("cardinality_2_point "+JSON.stringify(pt)),q=ut.x,X=ut.y,rt=pt.x,at=pt.y}if(f.title!==void 0){const ut=i.append("g").attr("class","classLabel"),pt=ut.append("text").attr("class","label").attr("x",I).attr("y",B).attr("fill","red").attr("text-anchor","middle").text(f.title);window.label=pt;const yt=pt.node().getBBox();ut.insert("rect",":first-child").attr("class","box").attr("x",yt.x-g.padding/2).attr("y",yt.y-g.padding/2).attr("width",yt.width+g.padding).attr("height",yt.height+g.padding)}Wt.info("Rendering relation "+JSON.stringify(f)),f.relationTitle1!==void 0&&f.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",q).attr("y",X).attr("fill","black").attr("font-size","6").text(f.relationTitle1),f.relationTitle2!==void 0&&f.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",rt).attr("y",at).attr("fill","black").attr("font-size","6").text(f.relationTitle2),xqt++},fJe=function(i,a,f,g){Wt.debug("Rendering class ",a,f);const w=a.id,v={id:w,label:a.id,width:0,height:0},b=i.append("g").attr("id",g.db.lookUpDomId(w)).attr("class","classGroup");let E;a.link?E=b.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",f.textHeight+f.padding).attr("x",0):E=b.append("text").attr("y",f.textHeight+f.padding).attr("x",0);let _=!0;a.annotations.forEach(function(pt){const yt=E.append("tspan").text("«"+pt+"»");_||yt.attr("dy",f.textHeight),_=!1});let S=kqt(a);const I=E.append("tspan").text(S).attr("class","title");_||I.attr("dy",f.textHeight);const B=E.node().getBBox().height;let F,R,q;if(a.members.length>0){F=b.append("line").attr("x1",0).attr("y1",f.padding+B+f.dividerMargin/2).attr("y2",f.padding+B+f.dividerMargin/2);const pt=b.append("text").attr("x",f.padding).attr("y",B+f.dividerMargin+f.textHeight).attr("fill","white").attr("class","classText");_=!0,a.members.forEach(function(yt){Eqt(pt,yt,_,f),_=!1}),R=pt.node().getBBox()}if(a.methods.length>0){q=b.append("line").attr("x1",0).attr("y1",f.padding+B+f.dividerMargin+R.height).attr("y2",f.padding+B+f.dividerMargin+R.height);const pt=b.append("text").attr("x",f.padding).attr("y",B+2*f.dividerMargin+R.height+f.textHeight).attr("fill","white").attr("class","classText");_=!0,a.methods.forEach(function(yt){Eqt(pt,yt,_,f),_=!1})}const X=b.node().getBBox();var rt=" ";a.cssClasses.length>0&&(rt=rt+a.cssClasses.join(" "));const ut=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",X.width+2*f.padding).attr("height",X.height+f.padding+.5*f.dividerMargin).attr("class",rt).node().getBBox().width;return E.node().childNodes.forEach(function(pt){pt.setAttribu
|
|||
|
`);_.forEach(function(F){Wt.debug(`Adding line: ${F}`),E.append("tspan").text(F).attr("class","title").attr("dy",f.textHeight)});const S=b.node().getBBox(),B=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",S.width+2*f.padding).attr("height",S.height+_.length*f.textHeight+f.padding+.5*f.dividerMargin).node().getBBox().width;return E.node().childNodes.forEach(function(F){F.setAttribute("x",(B-F.getBBox().width)/2)}),v.width=B,v.height=S.height+_.length*f.textHeight+f.padding+.5*f.dividerMargin,v},Eqt=function(i,a,f,g){const{displayText:w,cssStyle:v}=a.getDisplayDetails(),b=i.append("tspan").attr("x",g.padding).text(w);v!==""&&b.attr("style",a.cssStyle),f||b.attr("dy",g.textHeight)},Obt={getClassTitleString:kqt,drawClass:fJe,drawEdge:hJe,drawNote:dJe};let bX={};const wX=20,fB=function(i){const a=Object.entries(bX).find(f=>f[1].label===i);if(a)return a[0]},gJe=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},pJe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:fqt,db:pX,renderer:{draw:function(i,a,f,g){const w=Re().class;bX={},Wt.info("Rendering diagram "+i);const v=Re().securityLevel;let b;v==="sandbox"&&(b=xr("#i"+a));const E=xr(v==="sandbox"?b.nodes()[0].contentDocument.body:"body"),_=E.select(`[id='${a}']`);gJe(_);const S=new R1({multigraph:!0});S.setGraph({isMultiGraph:!0}),S.setDefaultEdgeLabel(function(){return{}});const I=g.db.getClasses(),B=Object.keys(I);for(const ut of B){const pt=I[ut],yt=Obt.drawClass(_,pt,w,g);bX[yt.id]=yt,S.setNode(yt.id,yt),Wt.info("Org height: "+yt.height)}g.db.getRelations().forEach(function(ut){Wt.info("tjoho"+fB(ut.id1)+fB(ut.id2)+JSON.stringify(ut)),S.setEdge(fB(ut.id1),fB(ut.id2),{relation:ut},ut.title||"DEFAULT")}),g.db.getNotes().forEach(function(ut){Wt.debug(`Adding note: ${JSON.stringify(ut)}`);const pt=Obt.drawNote(_,ut,w,g);bX[pt.id]=pt,S.setNode(pt.id,pt),ut.class&&ut.class in I&&S.setEdge(ut.id,fB(ut.class),{relation:{id1:ut.id,id2:ut.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),gM(S),S.nodes().forEach(function(ut){ut!==void 0&&S.node(ut)!==void 0&&(Wt.debug("Node "+ut+": "+JSON.stringify(S.node(ut))),E.select("#"+(g.db.lookUpDomId(ut)||ut)).attr("transform","translate("+(S.node(ut).x-S.node(ut).width/2)+","+(S.node(ut).y-S.node(ut).height/2)+" )"))}),S.edges().forEach(funct
|
|||
|
`),w.style===void 0&&(v.style=v.style||"stroke: #333; stroke-width: 1.5px;fill:none"),v.labelStyle=v.labelStyle.replace("color:","fill:"))),a.setEdge(w.id1,w.id2,v,g)})},vJe=function(i){Nbt={...Nbt,...i}},yJe=async function(i,a,f,g){Wt.info("Drawing class - ",a);const w=Re().flowchart??Re().class,v=Re().securityLevel;Wt.info("config:",w);const b=(w==null?void 0:w.nodeSpacing)??50,E=(w==null?void 0:w.rankSpacing)??50,_=new R1({multigraph:!0,compound:!0}).setGraph({rankdir:g.db.getDirection(),nodesep:b,ranksep:E,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),S=g.db.getNamespaces(),I=g.db.getClasses(),B=g.db.getRelations(),F=g.db.getNotes();Wt.info(B),bJe(S,_,a,g),Tqt(I,_,a,g),mJe(B,_),wJe(F,_,B.length+1,I);let R;v==="sandbox"&&(R=xr("#i"+a));const q=xr(v==="sandbox"?R.nodes()[0].contentDocument.body:"body"),X=q.select(`[id="${a}"]`),rt=q.select("#"+a+" g");if(await Vpt(rt,_,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",a),ao.insertTitle(X,"classTitleText",(w==null?void 0:w.titleTopMargin)??5,g.db.getDiagramTitle()),g8(_,X,w==null?void 0:w.diagramPadding,w==null?void 0:w.useMaxWidth),!(w!=null&&w.htmlLabels)){const at=v==="sandbox"?R.nodes()[0].contentDocument:document,ut=at.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const pt of ut){const yt=pt.getBBox(),mt=at.createElementNS("http://www.w3.org/2000/svg","rect");mt.setAttribute("rx",0),mt.setAttribute("ry",0),mt.setAttribute("width",yt.width),mt.setAttribute("height",yt.height),pt.insertBefore(mt,pt.firstChild)}}};function Cqt(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}const xJe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:fqt,db:pX,renderer:{setConf:vJe,draw:yJe},styles:yqt,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,pX.clear()}}},Symbol.toStringTag,{value:"Module"}));var Fbt=function(){var i=function(Ct,Ft,_t,xt){for(_t=_t||{},xt=Ct.length;xt--;_t[Ct[xt]]=Ft);return _t},a=[1,2],f=[1,3],g=[1,4],w=[2,4],v=[1,9],b=[1,11],E=[1,15],_=[1,16],S=[1,17],I=[1,18],B=[1,30],F=[1,19],R=[1,20],q=[1,21],X=[1,22],rt=[1,23],at=[1,25],ut=[1,26],pt=[1,27],yt=[1,28],mt=[1,29],gt=[1,32],ht=[1,33],bt=[1,34],Z=[1,35],ft=[1,31],Y=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],V=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Nt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4]
|
|||
|
`+Qt.showPosition()+`
|
|||
|
Expecting `+Pn.join(", ")+", got '"+(this.terminals_[we]||we)+"'":Bn="Parse error on line "+(Ee+1)+": Unexpected "+(we==me?"end of input":"'"+(this.terminals_[we]||we)+"'"),this.parseError(Bn,{text:Qt.match,token:this.terminals_[we]||we,line:Qt.yylineno,loc:Dn,expected:Pn})}if(yi[0]instanceof Array&&yi.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ri+", token: "+we);switch(yi[0]){case 1:xt.push(we),Be.push(Qt.yytext),Ot.push(Qt.yylloc),xt.push(yi[1]),we=null,nn=Qt.yyleng,Pe=Qt.yytext,Ee=Qt.yylineno,Dn=Qt.yylloc;break;case 2:if(fr=this.productions_[yi[1]][1],Ss.$=Be[Be.length-fr],Ss._$={first_line:Ot[Ot.length-(fr||1)].first_line,last_line:Ot[Ot.length-1].last_line,first_column:Ot[Ot.length-(fr||1)].first_column,last_column:Ot[Ot.length-1].last_column},oe&&(Ss._$.range=[Ot[Ot.length-(fr||1)].range[0],Ot[Ot.length-1].range[1]]),da=this.performAction.apply(Ss,[Pe,nn,Ee,Ae.yy,yi[1],Be,Ot].concat(Fe)),typeof da<"u")return da;fr&&(xt=xt.slice(0,-1*fr*2),Be=Be.slice(0,-1*fr),Ot=Ot.slice(0,-1*fr)),xt.push(this.productions_[yi[1]][0]),Be.push(Ss.$),Ot.push(Ss._$),An=vn[xt[xt.length-2]][xt[xt.length-1]],xt.push(An);break;case 3:return!0}}return!0}},Dt=function(){var Ct={EOF:1,parseError:function(_t,xt){if(this.yy.parser)this.yy.parser.parseError(_t,xt);else throw new Error(_t)},setInput:function(Ft,_t){return this.yy=_t||this.yy||{},this._input=Ft,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ft=this._input[0];this.yytext+=Ft,this.yyleng++,this.offset++,this.match+=Ft,this.matched+=Ft;var _t=Ft.match(/(?:\r\n?|\n).*/g);return _t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ft},unput:function(Ft){var _t=Ft.length,xt=Ft.split(/(?:\r\n?|\n)/g);this._input=Ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_t),this.offset-=_t;var Gt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),xt.length-1&&(this.yylineno-=xt.length-1);var Be=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:xt?(xt.length===Gt.length?this.yylloc.first_column:0)+Gt[Gt.length-xt.length].length-xt[0].length:this.yylloc.first_column-_t},this.options.ranges&&(this.yylloc.range=[Be[0],Be[0]+this.yyleng-_t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ft){this.unput(this.match.slice(Ft))},pastInput:function(){var Ft=this.matched.substr(0,this.matched.length-this.match.length);return(Ft.length>20?"...":"")+Ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ft=this.match;return Ft.length<20&&(Ft+=this._input.substr(0,20-Ft.length)),(Ft.substr(0,20)+(Ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ft=this.pastInput(),_t=new Array(Ft.length+1).join("-");return Ft+this.upcomingInput()+`
|
|||
|
`+_t+"^"},test_match:function(Ft,_t){var xt,Gt,Be;if(this.options.backtrack_lexer&&(Be={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Be.yylloc.range=this.yylloc.range.slice(0))),Gt=Ft[0].match(/(?:\r\n?|\n).*/g),Gt&&(this.yylineno+=Gt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Gt?Gt[Gt.length-1].length-Gt[Gt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ft[0].length},this.yytext+=Ft[0],this.match+=Ft[0],this.matches=Ft,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ft[0].length),this.matched+=Ft[0],xt=this.performAction.call(this,this.yy,this,_t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xt)return xt;if(this._backtrack){for(var Ot in Be)this[Ot]=Be[Ot];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ft,_t,xt,Gt;this._more||(this.yytext="",this.match="");for(var Be=this._currentRules(),Ot=0;Ot<Be.length;Ot++)if(xt=this._input.match(this.rules[Be[Ot]]),xt&&(!_t||xt[0].length>_t[0].length)){if(_t=xt,Gt=Ot,this.options.backtrack_lexer){if(Ft=this.test_match(xt,Be[Ot]),Ft!==!1)return Ft;if(this._backtrack){_t=!1;continue}else return!1}else if(!this.options.flex)break}return _t?(Ft=this.test_match(_t,Be[Gt]),Ft!==!1?Ft:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var _t=this.next();return _t||this.lex()},begin:function(_t){this.conditionStack.push(_t)},popState:function(){var _t=this.conditionStack.length-1;return _t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(_t){return _t=this.conditionStack.length-1-Math.abs(_t||0),_t>=0?this.conditionStack[_t]:"INITIAL"},pushState:function(_t){this.begin(_t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(_t,xt,Gt,Be){switch(Gt){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),xt.yytext=xt.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),xt.yytext=xt.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),xt.yytext=xt.yytext.substr(2).trim(),30;case 64:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return xt.yytext=xt.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:
|
|||
|
defs #statediagram-barbEnd {
|
|||
|
fill: ${i.transitionColor};
|
|||
|
stroke: ${i.transitionColor};
|
|||
|
}
|
|||
|
g.stateGroup text {
|
|||
|
fill: ${i.nodeBorder};
|
|||
|
stroke: none;
|
|||
|
font-size: 10px;
|
|||
|
}
|
|||
|
g.stateGroup text {
|
|||
|
fill: ${i.textColor};
|
|||
|
stroke: none;
|
|||
|
font-size: 10px;
|
|||
|
|
|||
|
}
|
|||
|
g.stateGroup .state-title {
|
|||
|
font-weight: bolder;
|
|||
|
fill: ${i.stateLabelColor};
|
|||
|
}
|
|||
|
|
|||
|
g.stateGroup rect {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
g.stateGroup line {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
.transition {
|
|||
|
stroke: ${i.transitionColor};
|
|||
|
stroke-width: 1;
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.stateGroup .composit {
|
|||
|
fill: ${i.background};
|
|||
|
border-bottom: 1px
|
|||
|
}
|
|||
|
|
|||
|
.stateGroup .alt-composit {
|
|||
|
fill: #e0e0e0;
|
|||
|
border-bottom: 1px
|
|||
|
}
|
|||
|
|
|||
|
.state-note {
|
|||
|
stroke: ${i.noteBorderColor};
|
|||
|
fill: ${i.noteBkgColor};
|
|||
|
|
|||
|
text {
|
|||
|
fill: ${i.noteTextColor};
|
|||
|
stroke: none;
|
|||
|
font-size: 10px;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.stateLabel .box {
|
|||
|
stroke: none;
|
|||
|
stroke-width: 0;
|
|||
|
fill: ${i.mainBkg};
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel .label rect {
|
|||
|
fill: ${i.labelBackgroundColor};
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
.edgeLabel .label text {
|
|||
|
fill: ${i.transitionLabelColor||i.tertiaryTextColor};
|
|||
|
}
|
|||
|
.label div .edgeLabel {
|
|||
|
color: ${i.transitionLabelColor||i.tertiaryTextColor};
|
|||
|
}
|
|||
|
|
|||
|
.stateLabel text {
|
|||
|
fill: ${i.stateLabelColor};
|
|||
|
font-size: 10px;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
.node circle.state-start {
|
|||
|
fill: ${i.specialStateColor};
|
|||
|
stroke: ${i.specialStateColor};
|
|||
|
}
|
|||
|
|
|||
|
.node .fork-join {
|
|||
|
fill: ${i.specialStateColor};
|
|||
|
stroke: ${i.specialStateColor};
|
|||
|
}
|
|||
|
|
|||
|
.node circle.state-end {
|
|||
|
fill: ${i.innerEndBackground};
|
|||
|
stroke: ${i.background};
|
|||
|
stroke-width: 1.5
|
|||
|
}
|
|||
|
.end-state-inner {
|
|||
|
fill: ${i.compositeBackground||i.background};
|
|||
|
// stroke: ${i.background};
|
|||
|
stroke-width: 1.5
|
|||
|
}
|
|||
|
|
|||
|
.node rect {
|
|||
|
fill: ${i.stateBkg||i.mainBkg};
|
|||
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
.node polygon {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.stateBorder||i.nodeBorder};;
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
#statediagram-barbEnd {
|
|||
|
fill: ${i.lineColor};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-cluster rect {
|
|||
|
fill: ${i.compositeTitleBackground};
|
|||
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.cluster-label, .nodeLabel {
|
|||
|
color: ${i.stateLabelColor};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-cluster rect.outer {
|
|||
|
rx: 5px;
|
|||
|
ry: 5px;
|
|||
|
}
|
|||
|
.statediagram-state .divider {
|
|||
|
stroke: ${i.stateBorder||i.nodeBorder};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-state .title-state {
|
|||
|
rx: 5px;
|
|||
|
ry: 5px;
|
|||
|
}
|
|||
|
.statediagram-cluster.statediagram-cluster .inner {
|
|||
|
fill: ${i.compositeBackground||i.background};
|
|||
|
}
|
|||
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|||
|
fill: ${i.altBackground?i.altBackground:"#efefef"};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-cluster .inner {
|
|||
|
rx:0;
|
|||
|
ry:0;
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-state rect.basic {
|
|||
|
rx: 5px;
|
|||
|
ry: 5px;
|
|||
|
}
|
|||
|
.statediagram-state rect.divider {
|
|||
|
stroke-dasharray: 10,10;
|
|||
|
fill: ${i.altBackground?i.altBackground:"#efefef"};
|
|||
|
}
|
|||
|
|
|||
|
.note-edge {
|
|||
|
stroke-dasharray: 5;
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-note rect {
|
|||
|
fill: ${i.noteBkgColor};
|
|||
|
stroke: ${i.noteBorderColor};
|
|||
|
stroke-width: 1px;
|
|||
|
rx: 0;
|
|||
|
ry: 0;
|
|||
|
}
|
|||
|
.statediagram-note rect {
|
|||
|
fill: ${i.noteBkgColor};
|
|||
|
stroke: ${i.noteBorderColor};
|
|||
|
stroke-width: 1px;
|
|||
|
rx: 0;
|
|||
|
ry: 0;
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-note text {
|
|||
|
fill: ${i.noteTextColor};
|
|||
|
}
|
|||
|
|
|||
|
.statediagram-note .nodeLabel {
|
|||
|
color: ${i.noteTextColor};
|
|||
|
}
|
|||
|
.statediagram .edgeLabel {
|
|||
|
color: red; // ${i.noteTextColor};
|
|||
|
}
|
|||
|
|
|||
|
#dependencyStart, #dependencyEnd {
|
|||
|
fill: ${i.lineColor};
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 1;
|
|||
|
}
|
|||
|
|
|||
|
.statediagramTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
`,Hbt={},UJe=(i,a)=>{Hbt[i]=a},GJe=i=>Hbt[i],zqt=()=>Object.keys(Hbt),KJe={get:GJe,set:UJe,keys:zqt,size:()=>zqt().length},WJe=i=>i.append("circle").attr("class","start-state").attr("r",Re().state.sizeUnit).attr("cx",Re().state.padding+Re().state.sizeUnit).attr("cy",Re().state.padding+Re().state.sizeUnit),YJe=i=>i.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Re().state.textHeight).attr("class","divider").attr("x2",Re().state.textHeight*2).attr("y1",0).attr("y2",0),XJe=(i,a)=>{const f=i.append("text").attr("x",2*Re().state.padding).attr("y",Re().state.textHeight+2*Re().state.padding).attr("font-size",Re().state.fontSize).attr("class","state-title").text(a.id),g=f.node().getBBox();return i.insert("rect",":first-child").attr("x",Re().state.padding).attr("y",Re().state.padding).attr("width",g.width+2*Re().state.padding).attr("height",g.height+2*Re().state.padding).attr("rx",Re().state.radius),f},QJe=(i,a)=>{const f=function(F,R,q){const X=F.append("tspan").attr("x",2*Re().state.padding).text(R);q||X.attr("dy",Re().state.textHeight)},w=i.append("text").attr("x",2*Re().state.padding).attr("y",Re().state.textHeight+1.3*Re().state.padding).attr("font-size",Re().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),v=w.height,b=i.append("text").attr("x",Re().state.padding).attr("y",v+Re().state.padding*.4+Re().state.dividerMargin+Re().state.textHeight).attr("class","state-description");let E=!0,_=!0;a.descriptions.forEach(function(F){E||(f(b,F,_),_=!1),E=!1});const S=i.append("line").attr("x1",Re().state.padding).attr("y1",Re().state.padding+v+Re().state.dividerMargin/2).attr("y2",Re().state.padding+v+Re().state.dividerMargin/2).attr("class","descr-divider"),I=b.node().getBBox(),B=Math.max(I.width,w.width);return S.attr("x2",B+3*Re().state.padding),i.insert("rect",":first-child").attr("x",Re().state.padding).attr("y",Re().state.padding).attr("width",B+2*Re().state.padding).attr("height",I.height+v+2*Re().state.padding).attr("rx",Re().state.radius),i},JJe=(i,a,f)=>{const g=Re().state.padding,w=2*Re().state.padding,v=i.node().getBBox(),b=v.width,E=v.x,_=i.append("text").attr("x",0).attr("y",Re().state.titleShift).attr("font-size",Re().state.fontSize).attr("class","state-title").text(a.id),I=_.node().getBBox().width+w;let B=Math.max(I,b);B===b&&(B=B+w);let F;const R=i.node().getBBox();a.doc,F=E-g,I>b&&(F=(b-B)/2+g),Math.abs(E-R.x)<g&&I>b&&(F=E-(I-b)/2);const q=1-Re().state.textHeight;return i.insert("rect",":first-child").attr("x",F).attr("y",q).attr("class",f?"alt-composit":"composit").attr("width",B).attr("height",R.height+Re().state.textHeight+Re().state.titleShift+1).attr("rx","0"),_.attr("x",F+g),I<=b&&_.attr("x",E+(B-w)/2-I/2+g),i.insert("rect",":first-child").attr("x",F).attr("y",Re().state.titleShift-Re().state.textHeight-Re().state.padding).attr("width",B).attr("height",Re().state.textHeight*3).attr("rx",Re().state.radius),i.insert("rect",":first-child").attr("x",F).attr("y",Re().state.titleShift-Re().state.textHeight-Re().state.padding).attr("width",B).attr("height",R.height+3+2*Re().state.textHeight).attr("rx",Re().state.radius),i},ZJe=i=>(i.append("circle").attr("class","end-state-outer").attr("r",Re().state.sizeUnit+Re().state.miniPadding).attr("cx",Re().state.padding+Re().state.sizeUnit+Re().state.miniPadding).attr("cy",Re().state.padding+Re().state.sizeUnit+Re().state.miniPadding),i.append("circle").attr("class","end-state-inner").attr("r",Re().state.sizeUnit).attr("cx",Re().state.padding+Re().state.sizeUnit+2).attr("cy",Re().state.padding+Re().state.sizeUnit+2)),tZe=(i,a)=>{let f=Re().state.forkWidth,g=Re().state.forkHeight;if(a.parentId){let w=f;f=g,g=w}return i.append("rect").style("stroke","black").style("fill","black").attr("width",f).attr("height",g).attr("x",Re().state.padding).attr("y",Re().state.padding)},eZe=(i,a,f,g)=>{let w=0;const v=g.append("text");v.style("text-anchor","start"),v.attr("class","noteText");let b=i.replace(/\r\n/g,"<br/>");b=b.replace(/\n/g,"<br/>");const E=b.split(ei.lineBreakRegex);let _=1.25*Re().state.noteMargin;for(const
|
|||
|
`+Z.showPosition()+`
|
|||
|
Expecting `+Ot.join(", ")+", got '"+(this.terminals_[Dt]||Dt)+"'":vn="Parse error on line "+(yt+1)+": Unexpected "+(Dt==ht?"end of input":"'"+(this.terminals_[Dt]||Dt)+"'"),this.parseError(vn,{text:Z.match,token:this.terminals_[Dt]||Dt,line:Z.yylineno,loc:Et,expected:Ot})}if(Ct[0]instanceof Array&&Ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+jt+", token: "+Dt);switch(Ct[0]){case 1:q.push(Dt),rt.push(Z.yytext),at.push(Z.yylloc),q.push(Ct[1]),Dt=null,mt=Z.yyleng,pt=Z.yytext,yt=Z.yylineno,Et=Z.yylloc;break;case 2:if(Gt=this.productions_[Ct[1]][1],_t.$=rt[rt.length-Gt],_t._$={first_line:at[at.length-(Gt||1)].first_line,last_line:at[at.length-1].last_line,first_column:at[at.length-(Gt||1)].first_column,last_column:at[at.length-1].last_column},V&&(_t._$.range=[at[at.length-(Gt||1)].range[0],at[at.length-1].range[1]]),Ft=this.performAction.apply(_t,[pt,mt,yt,ft.yy,Ct[1],rt,at].concat(bt)),typeof Ft<"u")return Ft;Gt&&(q=q.slice(0,-1*Gt*2),rt=rt.slice(0,-1*Gt),at=at.slice(0,-1*Gt)),q.push(this.productions_[Ct[1]][0]),rt.push(_t.$),at.push(_t._$),Be=ut[q[q.length-2]][q[q.length-1]],q.push(Be);break;case 3:return!0}}return!0}},S=function(){var B={EOF:1,parseError:function(R,q){if(this.yy.parser)this.yy.parser.parseError(R,q);else throw new Error(R)},setInput:function(F,R){return this.yy=R||this.yy||{},this._input=F,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var F=this._input[0];this.yytext+=F,this.yyleng++,this.offset++,this.match+=F,this.matched+=F;var R=F.match(/(?:\r\n?|\n).*/g);return R?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),F},unput:function(F){var R=F.length,q=F.split(/(?:\r\n?|\n)/g);this._input=F+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-R),this.offset-=R;var X=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),q.length-1&&(this.yylineno-=q.length-1);var rt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:q?(q.length===X.length?this.yylloc.first_column:0)+X[X.length-q.length].length-q[0].length:this.yylloc.first_column-R},this.options.ranges&&(this.yylloc.range=[rt[0],rt[0]+this.yyleng-R]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(F){this.unput(this.match.slice(F))},pastInput:function(){var F=this.matched.substr(0,this.matched.length-this.match.length);return(F.length>20?"...":"")+F.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var F=this.match;return F.length<20&&(F+=this._input.substr(0,20-F.length)),(F.substr(0,20)+(F.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var F=this.pastInput(),R=new Array(F.length+1).join("-");return F+this.upcomingInput()+`
|
|||
|
`+R+"^"},test_match:function(F,R){var q,X,rt;if(this.options.backtrack_lexer&&(rt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(rt.yylloc.range=this.yylloc.range.slice(0))),X=F[0].match(/(?:\r\n?|\n).*/g),X&&(this.yylineno+=X.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:X?X[X.length-1].length-X[X.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+F[0].length},this.yytext+=F[0],this.match+=F[0],this.matches=F,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(F[0].length),this.matched+=F[0],q=this.performAction.call(this,this.yy,this,R,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),q)return q;if(this._backtrack){for(var at in rt)this[at]=rt[at];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var F,R,q,X;this._more||(this.yytext="",this.match="");for(var rt=this._currentRules(),at=0;at<rt.length;at++)if(q=this._input.match(this.rules[rt[at]]),q&&(!R||q[0].length>R[0].length)){if(R=q,X=at,this.options.backtrack_lexer){if(F=this.test_match(q,rt[at]),F!==!1)return F;if(this._backtrack){R=!1;continue}else return!1}else if(!this.options.flex)break}return R?(F=this.test_match(R,rt[X]),F!==!1?F:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var R=this.next();return R||this.lex()},begin:function(R){this.conditionStack.push(R)},popState:function(){var R=this.conditionStack.length-1;return R>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(R){return R=this.conditionStack.length-1-Math.abs(R||0),R>=0?this.conditionStack[R]:"INITIAL"},pushState:function(R){this.begin(R)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(R,q,X,rt){switch(X){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return B}();_.lexer=S;function I(){this.yy={}}return I.prototype=_,_.Parser=I,new I}();Ybt.parser=Ybt;const AZe=Ybt;let CM="";const Xbt=[],mB=[],vB=[],LZe=function(){Xbt.length=0,mB.length=0,CM="",vB.length=0,Wg()},MZe=function(i){CM=i,Xbt.push(i)},DZe=function(){return Xbt},IZe=function(){let i=tHt();const a=100;let f=0;for(;!i&&f<a;)i=tHt(),f++;return mB.push(...vB),mB},OZe=function(){const i=[];return mB.forEach(f=>{f.people&&i.push(...f.people)}),[...new Set(i)].sort()},PZe=function(i,a){const f=a.substr(1).split(":");let g=0,w=[];f.length===1?(g=Number(f[0]),w=[]):(g=Number(f[0]),w=f[1].split(","));const v=w.map(E=>E.trim()),b={section:CM,type:CM,people:v,task:i,score:g};vB.push(b)},NZe=function(i){const a={section:CM,type:CM,description:i,task:i,classes:[]};mB.push(a)},tHt=function(){const i=function(f){return vB[f].processed};let a=!0;for(const[f,g]of vB.entries())i(f),a=a&&g.processed;return a},eHt={getConfig:()=>Re().journey,clear:LZe,setDiagramTitle:y2,getDiagramTitle:Jg,setAccTitle:ng,getAccTitle:Yg,setAccDescription:Xg,getAccDescription:Qg,addSection:MZe,getSections:DZe,getTasks:IZe,addTask:PZe,addTaskOrg:NZe,getActors:function(){return OZe()}},FZe=i=>`.label {
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
color: ${i.textColor};
|
|||
|
}
|
|||
|
.mouth {
|
|||
|
stroke: #666;
|
|||
|
}
|
|||
|
|
|||
|
line {
|
|||
|
stroke: ${i.textColor}
|
|||
|
}
|
|||
|
|
|||
|
.legend {
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
|
|||
|
.label text {
|
|||
|
fill: #333;
|
|||
|
}
|
|||
|
.label {
|
|||
|
color: ${i.textColor}
|
|||
|
}
|
|||
|
|
|||
|
.face {
|
|||
|
${i.faceColor?`fill: ${i.faceColor}`:"fill: #FFF8DC"};
|
|||
|
stroke: #999;
|
|||
|
}
|
|||
|
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.node .label {
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
.node.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
.arrowheadPath {
|
|||
|
fill: ${i.arrowheadColor};
|
|||
|
}
|
|||
|
|
|||
|
.edgePath .path {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 1.5px;
|
|||
|
}
|
|||
|
|
|||
|
.flowchart-link {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel {
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
rect {
|
|||
|
opacity: 0.5;
|
|||
|
}
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
|
|||
|
.cluster rect {
|
|||
|
}
|
|||
|
|
|||
|
.cluster text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
div.mermaidTooltip {
|
|||
|
position: absolute;
|
|||
|
text-align: center;
|
|||
|
max-width: 200px;
|
|||
|
padding: 2px;
|
|||
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|||
|
font-family: var(--mermaid-font-family);
|
|||
|
font-size: 12px;
|
|||
|
background: ${i.tertiaryColor};
|
|||
|
border: 1px solid ${i.border2};
|
|||
|
border-radius: 2px;
|
|||
|
pointer-events: none;
|
|||
|
z-index: 100;
|
|||
|
}
|
|||
|
|
|||
|
.task-type-0, .section-type-0 {
|
|||
|
${i.fillType0?`fill: ${i.fillType0}`:""};
|
|||
|
}
|
|||
|
.task-type-1, .section-type-1 {
|
|||
|
${i.fillType0?`fill: ${i.fillType1}`:""};
|
|||
|
}
|
|||
|
.task-type-2, .section-type-2 {
|
|||
|
${i.fillType0?`fill: ${i.fillType2}`:""};
|
|||
|
}
|
|||
|
.task-type-3, .section-type-3 {
|
|||
|
${i.fillType0?`fill: ${i.fillType3}`:""};
|
|||
|
}
|
|||
|
.task-type-4, .section-type-4 {
|
|||
|
${i.fillType0?`fill: ${i.fillType4}`:""};
|
|||
|
}
|
|||
|
.task-type-5, .section-type-5 {
|
|||
|
${i.fillType0?`fill: ${i.fillType5}`:""};
|
|||
|
}
|
|||
|
.task-type-6, .section-type-6 {
|
|||
|
${i.fillType0?`fill: ${i.fillType6}`:""};
|
|||
|
}
|
|||
|
.task-type-7, .section-type-7 {
|
|||
|
${i.fillType0?`fill: ${i.fillType7}`:""};
|
|||
|
}
|
|||
|
|
|||
|
.actor-0 {
|
|||
|
${i.actor0?`fill: ${i.actor0}`:""};
|
|||
|
}
|
|||
|
.actor-1 {
|
|||
|
${i.actor1?`fill: ${i.actor1}`:""};
|
|||
|
}
|
|||
|
.actor-2 {
|
|||
|
${i.actor2?`fill: ${i.actor2}`:""};
|
|||
|
}
|
|||
|
.actor-3 {
|
|||
|
${i.actor3?`fill: ${i.actor3}`:""};
|
|||
|
}
|
|||
|
.actor-4 {
|
|||
|
${i.actor4?`fill: ${i.actor4}`:""};
|
|||
|
}
|
|||
|
.actor-5 {
|
|||
|
${i.actor5?`fill: ${i.actor5}`:""};
|
|||
|
}
|
|||
|
`,Qbt=function(i,a){return _Y(i,a)},BZe=function(i,a){const g=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),w=i.append("g");w.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),w.append("circle").attr("cx",a.cx+15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function v(_){const S=jL().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",S).attr("transform","translate("+a.cx+","+(a.cy+2)+")")}function b(_){const S=jL().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",S).attr("transform","translate("+a.cx+","+(a.cy+7)+")")}function E(_){_.append("line").attr("class","mouth").attr("stroke",2).attr("x1",a.cx-5).attr("y1",a.cy+7).attr("x2",a.cx+5).attr("y2",a.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.score>3?v(w):a.score<3?b(w):E(w),g},nHt=function(i,a){const f=i.append("circle");return f.attr("cx",a.cx),f.attr("cy",a.cy),f.attr("class","actor-"+a.pos),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("r",a.r),f.class!==void 0&&f.attr("class",f.class),a.title!==void 0&&f.append("title").text(a.title),f},rHt=function(i,a){return ERe(i,a)},RZe=function(i,a){function f(w,v,b,E,_){return w+","+v+" "+(w+b)+","+v+" "+(w+b)+","+(v+E-_)+" "+(w+b-_*1.2)+","+(v+E)+" "+w+","+(v+E)}const g=i.append("polygon");g.attr("points",f(a.x,a.y,50,20,7)),g.attr("class","labelBox"),a.y=a.y+a.labelMargin,a.x=a.x+.5*a.labelMargin,rHt(i,a)},jZe=function(i,a,f){const g=i.append("g"),w=k9();w.x=a.x,w.y=a.y,w.fill=a.fill,w.width=f.width*a.taskCount+f.diagramMarginX*(a.taskCount-1),w.height=f.height,w.class="journey-section section-type-"+a.num,w.rx=3,w.ry=3,Qbt(g,w),sHt(f)(a.text,g,w.x,w.y,w.width,w.height,{class:"journey-section section-type-"+a.num},f,a.colour)};let iHt=-1;const $Ze=function(i,a,f){const g=a.x+f.width/2,w=i.append("g");iHt++;const v=300+5*30;w.append("line").attr("id","task"+iHt).attr("x1",g).attr("y1",a.y).attr("x2",g).attr("y2",v).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),BZe(w,{cx:g,cy:300+(5-a.score)*30,score:a.score});const b=k9();b.x=a.x,b.y=a.y,b.fill=a.fill,b.width=f.width,b.height=f.height,b.class="task task-type-"+a.num,b.rx=3,b.ry=3,Qbt(w,b);let E=a.x+14;a.people.forEach(_=>{const S=a.actors[_].color,I={cx:E,cy:a.y,r:7,fill:S,stroke:"#000",title:_,pos:a.actors[_].position};nHt(w,I),E+=10}),sHt(f)(a.task,w,b.x,b.y,b.width,b.height,{class:"task"},f,a.colour)},zZe=function(i,a){qBt(i,a)},sHt=function(){function i(w,v,b,E,_,S,I,B){const F=v.append("text").attr("x",b+_/2).attr("y",E+S/2+5).style("font-color",B).style("text-anchor","middle").text(w);g(F,I)}function a(w,v,b,E,_,S,I,B,F){const{taskFontSize:R,taskFontFamily:q}=B,X=w.split(/<br\s*\/?>/gi);for(let rt=0;rt<X.length;rt++){const at=rt*R-R*(X.length-1)/2,ut=v.append("text").attr("x",b+_/2).attr("y",E).attr("fill",F).style("text-anchor","middle").style("font-size",R).style("font-family",q);ut.append("tspan").attr("x",b+_/2).attr("dy",at).text(X[rt]),ut.attr("y",E+S/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(ut,I)}}function f(w,v,b,E,_,S,I,B){const F=v.append("switch"),q=F.append("foreignObject").attr("x",b).attr("y",E).attr("width",_).attr("height",S).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");q.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(w),a(w,F,b,E,_,S,I,B),g(q,I)}function g(w,v){for(const b in v)b in v&&w.attr(b,v[b])}return function(w){return w.textPlacement==="fo"?f:w.textPlacement==="old"?i:a}}(),yB={drawRect:Qbt,drawCircle:nHt,drawSection:jZe,drawTex
|
|||
|
`,qu(qa(t,e[0])))>=0;)++e[0]}function e0n(t,e){Cu(t,e==null||hz((Wn(e),e))||isNaN((Wn(e),e))?0:(Wn(e),e))}function n0n(t,e){_u(t,e==null||hz((Wn(e),e))||isNaN((Wn(e),e))?0:(Wn(e),e))}function r0n(t,e){zm(t,e==null||hz((Wn(e),e))||isNaN((Wn(e),e))?0:(Wn(e),e))}function i0n(t,e){$m(t,e==null||hz((Wn(e),e))||isNaN((Wn(e),e))?0:(Wn(e),e))}function s0n(t,e,n){return N6(new se(n.e.a+n.f.a/2,n.e.b+n.f.b/2),t)==(Wn(e),e)}function a0n(t,e){return At(e,102)&&u(e,19).Bb&fo?new jrt(e,t):new i7(e,t)}function o0n(t,e){return At(e,102)&&u(e,19).Bb&fo?new jrt(e,t):new i7(e,t)}function qI(t){return t.__elementTypeCategory$==null?10:t.__elementTypeCategory$}function fae(t,e){return e==(cit(),cit(),jve)?t.toLocaleLowerCase():t.toLowerCase()}function dae(t){if(!t.e)throw nt(new ac);return t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function G3t(t){if(!t.c)throw nt(new ac);return t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function gae(t){var e;for(++t.a,e=t.c.a.length;t.a<e;++t.a)if(t.c.b[t.a])return}function c0n(t){var e,n;if(t.a){n=null;do e=t.a,t.a=null,n=Tfe(e,n);while(t.a);t.a=n}}function u0n(t){var e,n;if(t.b){n=null;do e=t.b,t.b=null,n=Tfe(e,n);while(t.b);t.b=n}}function l0n(t,e){var n;for(n=0;t.e!=t.i.gc();)Pcn(e,sr(t),fe(n)),n!=ki&&++n}function h0n(t,e){var n;return n=Km(t.e.c,e.e.c),n==0?ji(t.e.d,e.e.d):n}function f0n(t,e){var n,r;for(r=e.c,n=r+1;n<=e.f;n++)t.a[n]>t.a[r]&&(r=n);return r}function pae(t){var e;return e=u(K(t,(ae(),mv)),313),e?e.a==t:!1}function bae(t){var e;return e=u(K(t,(ae(),mv)),313),e?e.i==t:!1}function wae(){wae=V,O3e=Rr((Ha(),ot(st(dCt,1),te,367,0,[Wf,$0,Yc,ou,Qo])))}function mae(){mae=V,b4e=Rr((Qy(),ot(st(p4e,1),te,375,0,[VP,dG,gG,fG,hG])))}function vae(){vae=V,S4e=Rr((Mp(),ot(st(b_t,1),te,348,0,[kft,p_t,Eft,ET,kT])))}function yae(){yae=V,d6e=Rr((oS(),ot(st(mAt,1),te,323,0,[wAt,f1t,d1t,DA,IA])))}function xae(){xae=V,$4e=Rr((Ph(),ot(st(K_t,1),te,171,0,[QP,EA,t2,TA,_3])))}function kae(){kae=V,e8e=Rr((FH(),ot(st(t8e,1),te,368,0,[H1t,$1t,V1t,z1t,q1t])))}function Eae(){Eae=V,eEe=Rr((mS(),ot(st(tEe,1),te,373,0,[tx,Kk,XA,YA,pN])))}function Tae(){Tae=V,oEe=Rr((TO(),ot(st(TMt,1),te,324,0,[xMt,fdt,EMt,ddt,kMt])))}function Cae(){Cae=V,i7e=Rr((Rs(),ot(st(iL,1),te,88,0,[wd,Jo,Ho,bd,qh])))}function _ae(){_ae=V,MEe=Rr((A1(),ot(st(H0,1),te,170,0,[_n,Js,c0,Dw,Gp])))}function Sae(){Sae=V,d7e=Rr((i5(),ot(st(cL,1),te,256,0,[o2,LN,XDt,oL,QDt])))}function Aae(){Aae=V,b7e=Rr((ve(),ot(st(go,1),$c,64,0,[gc,Hn,Jn,vr,Gn])))}function _q(){_q=V,k9t=new Awt("BY_SIZE",0),Pht=new Awt("BY_SIZE_AND_SHAPE",1)}function Sq(){Sq=V,Uht=new Dwt("EADES",0),$U=new Dwt("FRUCHTERMAN_REINGOLD",1)}function HI(){HI=V,bG=new Nwt("READING_DIRECTION",0),w_t=new Nwt("ROTATION",1)}function j_(){j_=V,z3e=new LM,q3e=new PX,j3e=new L2,$3e=new Vc,H3e=new NX}function Lae(t){this.b=new ge,this.a=new ge,this.c=new ge,this.d=new ge,this.e=t}function Mae(t){this.g=t,this.f=new ge,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function Dae(t,e,n){uz.call(this),Y3t(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function d0n(t,e,n){var r,s;for(s=new J(n);s.a<s.c.c.length;)r=et(s),Oxt(t,e,r)}function C1(t,e,n){var r;if(e==null)throw nt(new y6);return r=bg(t,e),_1n(t,e,n),r}function qst(t,e){var n;return n=u(tr(t.a,e),137),n||(n=new Ls,di(t.a,e,n)),n}function Tn(t,e){var n;return n=(t.i==null&&Kd(t),t.i),e>=0&&e<n.length?n[e]:null}function g0n(t,e){var n;return n=e>0?e-1:e,fWt($nn(eoe(Fvt(new E6,n),t.n),t.j),t.k)}function jo(t){var e,n;n=(e=new Fnt,e),Mr((!t.q&&(t.q=new Jt(bf,t,11,10)),t.q),n)}function K3t(t){return(t.i&2?"interface ":t.i&1?"":"class ")+(gg(t),t.o)}function Aq(t){return Rc(t,ki)>0?ki:Rc(t,Va)<0?Va:qr(t)}function zy(t){return t<3?(ih(t,Kpe),t+1):t<DS?Xs(t/.75+1):ki}function Iae(t,e){return Wn(e),iyt(t),t.d.Ob()?(e.Cd(t.d.Pb()),!0):!1}function p0n(t,e){var n,r;return n=u(Gy(t.d,e),16),n?(r=e,t.e.pc(r,n)):null}function b0n(t,e,n,r){var s;t.j=-1,k6t(t,e6t(t,e,n),(bo(),s=u(e,69).vk(),s.xl(r)))}function w0n(t,e){return rk(),-Bc(u(K(t,(xc(),Q5)),17).a,u(K(e,Q5),17).a)}function Oae(t,e){return!!H_(t,e,qr(Qa(P0,_0(qr(Qa(e==null?0:Hi(e),N0)),15))))}function m0n(){return M7(),ot(st(zK,1),te,2
|
|||
|
`)}return e&&(e.stack||n(t[Oct]))}function S5t(t,e){switch(e){case 3:return t.f!=0;case 4:return t.g!=0;case 5:return t.i!=0;case 6:return t.j!=0}return S4t(t,e)}function Pue(t){switch(t.g){case 0:return new nC;case 1:return new ts;default:throw nt(new zn(Dut+(t.f!=null?t.f:""+t.g)))}}function w2n(t){switch(t.g){case 0:return new mc;case 1:return new pu;default:throw nt(new zn(wlt+(t.f!=null?t.f:""+t.g)))}}function m2n(t){switch(t.g){case 1:return new htt;case 2:return new yJt;default:throw nt(new zn(wlt+(t.f!=null?t.f:""+t.g)))}}function Nue(t){switch(t.g){case 0:return new H2t;case 1:return new bKt;default:throw nt(new zn(rU+(t.f!=null?t.f:""+t.g)))}}function jat(){Rxt();var t,e,n;n=p_n+++Date.now(),t=Xs(b.Math.floor(n*iP))&vV,e=Xs(n-t*o8t),this.a=t^1502,this.b=e^sut}function Ph(){Ph=V,QP=new jD(Zd,0),EA=new jD("FIRST",1),t2=new jD(r2e,2),TA=new jD("LAST",3),_3=new jD(i2e,4)}function lH(){lH=V,$dt=new H$(o7t,0),sIt=new H$("GROUP_DEC",1),oIt=new H$("GROUP_MIXED",2),aIt=new H$("GROUP_INC",3)}function v2n(t,e){var n,r,s,o;e&&(s=Tg(e,"x"),n=new dGt(t),WE(n.a,(Wn(s),s)),o=Tg(e,"y"),r=new pGt(t),XE(r.a,(Wn(o),o)))}function y2n(t,e){var n,r,s,o;e&&(s=Tg(e,"x"),n=new wGt(t),KE(n.a,(Wn(s),s)),o=Tg(e,"y"),r=new mGt(t),YE(r.a,(Wn(o),o)))}function x2n(t,e){var n,r,s,o;for(s=new bu(e.gc()),r=e.Kc();r.Ob();)n=r.Pb(),o=nct(t,u(n,58)),o&&In(s.c,o);return s}function Ky(t,e,n){var r,s;for(s=t.Kc();s.Ob();)if(r=s.Pb(),$t(e)===$t(r)||e!=null&&Ci(e,r))return n&&s.Qb(),!0;return!1}function Fue(t){var e,n,r;return n=t.jh(),n?(e=t.Eh(),At(e,167)&&(r=Fue(u(e,167)),r!=null)?r+"."+n:n):null}function k2n(t){var e,n,r;return t.e==0?0:(e=t.d<<5,n=t.a[t.d-1],t.e<0&&(r=zoe(t),r==t.d-1&&(--n,n=n|0)),e-=DO(n),e)}function E2n(t){var e,n,r;return t<MU.length?MU[t]:(n=t>>5,e=t&31,r=Vt(Or,ii,28,n+1,15,1),r[n]=1<<e,new H2(1,n+1,r))}function Bue(t,e){var n,r;if(e){for(n=0;n<t.i;++n)if(r=u(t.g[n],378),r.mj(e))return!1;return Mr(t,e)}else return!1}function A5t(t,e,n){var r,s;if(++t.j,n.dc())return!1;for(s=n.Kc();s.Ob();)r=s.Pb(),t.qj(e,t.Zi(e,r)),++e;return!0}function T2n(t,e,n,r){var s,o;if(o=n-e,o<3)for(;o<3;)t*=10,++o;else{for(s=1;o>3;)s*=10,--o;t=(t+(s>>1))/s|0}return r.i=t,!0}function ss(t,e){var n,r,s;if(n=(t.i==null&&Kd(t),t.i),r=e.Lj(),r!=-1){for(s=n.length;r<s;++r)if(n[r]==e)return r}return-1}function C2n(t){var e,n,r,s,o;for(n=u(t.g,689),r=t.i-1;r>=0;--r)for(e=n[r],s=0;s<r;++s)if(o=n[s],V0e(t,e,o)){fk(t,r);break}}function L5t(t){var e,n,r,s;for(e=new lg,s=new Nr(t.b.Kc());s.b.Ob();)r=u(s.b.Pb(),701),n=z3n(r),Sun(e,e.a.length,n);return e.a}function M5t(t){var e;return!t.c&&(t.c=new Xl),Ms(t.d,new Zw),Tkn(t),e=pkn(t),xs(new ln(null,new gn(t.d,16)),new vD(t)),e}function _2n(t,e){e.Ug("End label post-processing",1),xs(Ai(lc(new ln(null,new gn(t.b,16)),new WX),new YX),new XX),e.Vg()}function D5t(t){$at(),this.c=J1(ot(st(P_n,1),Ln,845,0,[c6e])),this.b=new Er,this.a=t,di(this.b,VG,1),Tu(u6e,new UUt(this))}function Rue(t,e,n){Zae(),hKt.call(this),this.a=$2(iye,[le,m8t],[603,217],0,[PU,Fht],2),this.c=new P6,this.g=t,this.f=e,this.d=n}function I5t(t,e){this.n=$2(b2,[le,tut],[376,28],14,[e,Xs(b.Math.ceil(t/32))],2),this.o=t,this.p=e,this.j=t-1>>1,this.k=e-1>>1}function S2n(t){vq(),u(t.of((si(),s2)),181).Hc((Dl(),DK))&&(u(t.of(j3),181).Fc((wl(),Zk)),u(t.of(s2),181).Mc(DK))}function jue(t){var e,n;e=t.d==(gk(),vT),n=Lxt(t),e&&!n||!e&&n?Zt(t.a,(Me(),s0),(L0(),mN)):Zt(t.a,(Me(),s0),(L0(),wN))}function $at(){$at=V,y$(),VG=(Me(),Sv),u6e=J1(ot(st(mdt,1),a7t,149,0,[tN,Yf,G5,_v,O3,n1t,OT,PT,r1t,LA,U5,Lw,K5]))}function A2n(t,e){var n;return n=u(tc(t,gl(new Pr,new oe,new An,ot(st(zo,1),te,108,0,[(bl(),rc)]))),15),n.Qc(ate(n.gc()))}function $ue(t,e){var n,r;if(r=new b1(t.a.ad(e,!0)),r.a.gc()<=1)throw nt(new y6);return n=r.a.ec().Kc(),n.Pb(),u(n.Pb(),39)}function L2n(t,e,n){var r,s;return r=Rt(t.p[e.i.p])+Rt(t.d[e.i.p])+e.n.b+e.a.b,s=Rt(t.p[n.i.p])+Rt(t.d[n.i.p])+n.n.b+n.a.b,s-r}function O5t(t,e){var n;return t.i>0&&(e.length<t.i&&(n=VI(Gl(e).c,t.i),e=n),Wc(t.g,0,e,0,t.i)),e.length>t.i&&hs(e,t.i,null),e}function hH(t){var e;return t.Db&64?Z_(t):(e=new Jh(Z_(t)),e.a+=" (in
|
|||
|
`;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(`
|
|||
|
`)}return[]}function Cmn(t){var e;return e=(coe(),Sve),e[t>>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[t&15]<<28}function ohe(t){var e,n,r;t.b==t.c&&(r=t.a.length,n=N4t(b.Math.max(8,r))<<1,t.b!=0?(e=Ff(t.a,n),Eoe(t,e,r),t.a=e,t.b=0):wy(t.a,n),t.c=r)}function _mn(t,e){var n;return n=t.b,n.pf((si(),Nl))?n.ag()==(ve(),Gn)?-n.Mf().a-Rt(Ht(n.of(Nl))):e+Rt(Ht(n.of(Nl))):n.ag()==(ve(),Gn)?-n.Mf().a:e}function wO(t){var e;return t.b.c.length!=0&&u(Oe(t.b,0),72).a?u(Oe(t.b,0),72).a:(e=Uit(t),e??""+(t.c?Wo(t.c.a,t,0):-1))}function IH(t){var e;return t.f.c.length!=0&&u(Oe(t.f,0),72).a?u(Oe(t.f,0),72).a:(e=Uit(t),e??""+(t.i?Wo(t.i.j,t,0):-1))}function Smn(t,e){var n,r;if(e<0||e>=t.gc())return null;for(n=e;n<t.gc();++n)if(r=u(t.Xb(n),131),n==t.gc()-1||!r.o)return new Ys(fe(n),r);return null}function Amn(t,e,n){var r,s,o,h,d;for(o=t.c,d=n?e:t,r=n?t:e,s=d.p+1;s<r.p;++s)if(h=u(Oe(o.a,s),10),!(h.k==(Un(),fd)||nvn(h)))return!1;return!0}function ixt(t){var e,n,r,s,o;for(o=0,s=Vs,r=0,n=new J(t.a);n.a<n.c.c.length;)e=u(et(n),172),o+=e.r+(r>0?t.c:0),s=b.Math.max(s,e.d),++r;t.e=o,t.b=s}function Lmn(t){var e,n;if(!t.b)for(t.b=aq(u(t.f,123).kh().i),n=new Zn(u(t.f,123).kh());n.e!=n.i.gc();)e=u(sr(n),135),pe(t.b,new Hnt(e));return t.b}function Mmn(t,e){var n,r,s;if(e.dc())return TE(),TE(),$N;for(n=new VJt(t,e.gc()),s=new Zn(t);s.e!=s.i.gc();)r=sr(s),e.Hc(r)&&Mr(n,r);return n}function sxt(t,e,n,r){return e==0?r?(!t.o&&(t.o=new el((jc(),K0),Yp,t,0)),t.o):(!t.o&&(t.o=new el((jc(),K0),Yp,t,0)),II(t.o)):EH(t,e,n,r)}function got(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e<n;++e)eI(Lt(t.rb,e));if(t.vb)for(e=0,n=t.vb.i;e<n;++e)eI(Lt(t.vb,e));x_((rl(),Fa),t),t.Bb|=1}function Wi(t,e,n,r,s,o,h,d,m,k,T,A,N,j){return zfe(t,e,r,null,s,o,h,d,m,k,N,!0,j),w5t(t,T),At(t.Cb,90)&&t3(Sl(u(t.Cb,90)),2),n&&b4t(t,n),m5t(t,A),t}function Dmn(t){var e,n;if(t==null)return null;n=0;try{n=oh(t,Va,ki)&js}catch(r){if(r=is(r),At(r,130))e=Tq(t),n=e[0];else throw nt(r)}return KI(n)}function Imn(t){var e,n;if(t==null)return null;n=0;try{n=oh(t,Va,ki)&js}catch(r){if(r=is(r),At(r,130))e=Tq(t),n=e[0];else throw nt(r)}return KI(n)}function Omn(t,e){var n,r,s;return s=t.h-e.h,s<0||(n=t.l-e.l,r=t.m-e.m+(n>>22),s+=r>>22,s<0)?!1:(t.l=n&Il,t.m=r&Il,t.h=s&Og,!0)}function pot(t,e,n,r,s,o,h){var d,m;return!(e.Te()&&(m=t.a.Ne(n,r),m<0||!s&&m==0)||e.Ue()&&(d=t.a.Ne(n,o),d>0||!h&&d==0))}function Pmn(t,e){h7();var n;if(n=t.j.g-e.j.g,n!=0)return 0;switch(t.j.g){case 2:return Nat(e,o_t)-Nat(t,o_t);case 4:return Nat(t,a_t)-Nat(e,a_t)}return 0}function Nmn(t){switch(t.g){case 0:return Cft;case 1:return _ft;case 2:return Sft;case 3:return Aft;case 4:return wG;case 5:return Lft;default:return null}}function $o(t,e,n){var r,s;return r=(s=new Bnt,rw(s,e),wu(s,n),Mr((!t.c&&(t.c=new Jt(Iv,t,12,10)),t.c),s),s),Tp(r,0),Hy(r,1),Lp(r,!0),Ap(r,!0),r}function fk(t,e){var n,r;if(e>=t.i)throw nt(new Rrt(e,t.i));return++t.j,n=t.g[e],r=t.i-e-1,r>0&&Wc(t.g,e+1,t.g,e,r),hs(t.g,--t.i,null),t.Qi(e,n),t.Ni(),n}function che(t,e){var n,r;return t.Db>>16==17?t.Cb.Th(t,21,pf,e):(r=wo(u(Tn((n=u($n(t,16),29),n||t.ii()),t.Db>>16),19)),t.Cb.Th(t,r.n,r.f,e))}function Fmn(t){var e,n,r,s;for(wn(),Ms(t.c,t.a),s=new J(t.c);s.a<s.c.c.length;)for(r=et(s),n=new J(t.b);n.a<n.c.c.length;)e=u(et(n),693),e.bf(r)}function Bmn(t){var e,n,r,s;for(wn(),Ms(t.c,t.a),s=new J(t.c);s.a<s.c.c.length;)for(r=et(s),n=new J(t.b);n.a<n.c.c.length;)e=u(et(n),382),e.bf(r)}function Rmn(t){var e,n,r,s,o;for(s=ki,o=null,r=new J(t.d);r.a<r.c.c.length;)n=u(et(r),218),n.d.j^n.e.j&&(e=n.e.e-n.d.e-n.a,e<s&&(s=e,o=n));return o}function axt(){axt=V,k3e=new un(P8t,(Nn(),!1)),v3e=new un(N8t,100),sCt=(R_(),Yht),y3e=new un(F8t,sCt),x3e=new un(B8t,Jd),E3e=new un(R8t,fe(ki))}function uhe(t,e,n){var r,s,o,h,d,m,k,T;for(k=0,s=t.a[e],o=0,h=s.length;o<h;++o)for(r=s[o],T=J_(r,n),m=T.Kc();m.Ob();)d=u(m.Pb(),12),di(t.f,d,fe(k++))}function jmn(t,e,n){var r,s,o,h;if(n)for(s=n.a.length,r=new q2(s),h=(r.b-r.a)*r.c<0?(vb(),p2):new kb(r);h.Ob();)o=u(h.Pb(),17),dn(t,e,pk($y(n,o.a)))}function $mn(t,e,n){var r,s,o,h;if(n)for(s=n.a.length,r=
|
|||
|
\r\f]+`);try{gL=ot(st(R_n,1),Ln,2114,0,[new kD((imt(),dH("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",sI((a$(),a$(),cA))))),new kD(dH("yyyy-MM-dd'T'HH:mm:ss'.'SSS",sI(cA))),new kD(dH("yyyy-MM-dd'T'HH:mm:ss",sI(cA))),new kD(dH("yyyy-MM-dd'T'HH:mm",sI(cA))),new kD(dH("yyyy-MM-dd",sI(cA)))])}catch(t){if(t=is(t),!At(t,82))throw nt(t)}}function i7n(t,e){var n,r,s,o;if(s=Ml(t.d,1)!=0,r=okt(t,e),r==0&&Ie(De(K(e.j,(ae(),Zb)))))return 0;!Ie(De(K(e.j,(ae(),Zb))))&&!Ie(De(K(e.j,q5)))||$t(K(e.j,(Me(),q0)))===$t((Vd(),Hp))?e.c.mg(e.e,s):s=Ie(De(K(e.j,Zb))),FO(t,e,s,!0),Ie(De(K(e.j,q5)))&&Zt(e.j,q5,(Nn(),!1)),Ie(De(K(e.j,Zb)))&&(Zt(e.j,Zb,(Nn(),!1)),Zt(e.j,q5,!0)),n=okt(t,e);do{if(v4t(t),n==0)return 0;s=!s,o=n,FO(t,e,s,!1),n=okt(t,e)}while(o>n);return o}function lge(t,e){var n,r,s,o;if(s=Ml(t.d,1)!=0,r=zH(t,e),r==0&&Ie(De(K(e.j,(ae(),Zb)))))return 0;!Ie(De(K(e.j,(ae(),Zb))))&&!Ie(De(K(e.j,q5)))||$t(K(e.j,(Me(),q0)))===$t((Vd(),Hp))?e.c.mg(e.e,s):s=Ie(De(K(e.j,Zb))),FO(t,e,s,!0),Ie(De(K(e.j,q5)))&&Zt(e.j,q5,(Nn(),!1)),Ie(De(K(e.j,Zb)))&&(Zt(e.j,Zb,(Nn(),!1)),Zt(e.j,q5,!0)),n=zH(t,e);do{if(v4t(t),n==0)return 0;s=!s,o=n,FO(t,e,s,!1),n=zH(t,e)}while(o>n);return o}function Akt(t,e,n,r){var s,o,h,d,m,k,T,A,N;return m=ra(new se(n.a,n.b),t),k=m.a*e.b-m.b*e.a,T=e.a*r.b-e.b*r.a,A=(m.a*r.b-m.b*r.a)/T,N=k/T,T==0?k==0?(s=Ei(new se(n.a,n.b),Rd(new se(r.a,r.b),.5)),o=Lb(t,s),h=Lb(Ei(new se(t.a,t.b),e),s),d=b.Math.sqrt(r.a*r.a+r.b*r.b)*.5,o<h&&o<=d?new se(t.a,t.b):h<=d?Ei(new se(t.a,t.b),e):null):null:A>=0&&A<=1&&N>=0&&N<=1?Ei(new se(t.a,t.b),Rd(new se(e.a,e.b),A)):null}function s7n(t,e,n){var r,s,o,h,d;if(r=u(K(t,(Me(),Gft)),21),n.a>e.a&&(r.Hc((aw(),JA))?t.c.a+=(n.a-e.a)/2:r.Hc(ZA)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((aw(),eL))?t.c.b+=(n.b-e.b)/2:r.Hc(tL)&&(t.c.b+=n.b-e.b)),u(K(t,(ae(),uu)),21).Hc((ko(),zh))&&(n.a>e.a||n.b>e.b))for(d=new J(t.a);d.a<d.c.c.length;)h=u(et(d),10),h.k==(Un(),Ds)&&(s=u(K(h,_c),64),s==(ve(),Jn)?h.n.a+=n.a-e.a:s==vr&&(h.n.b+=n.b-e.b));o=t.d,t.f.a=n.a-o.b-o.c,t.f.b=n.b-o.d-o.a}function a7n(t,e,n){var r,s,o,h,d;if(r=u(K(t,(Me(),Gft)),21),n.a>e.a&&(r.Hc((aw(),JA))?t.c.a+=(n.a-e.a)/2:r.Hc(ZA)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((aw(),eL))?t.c.b+=(n.b-e.b)/2:r.Hc(tL)&&(t.c.b+=n.b-e.b)),u(K(t,(ae(),uu)),21).Hc((ko(),zh))&&(n.a>e.a||n.b>e.b))for(h=new J(t.a);h.a<h.c.c.length;)o=u(et(h),10),o.k==(Un(),Ds)&&(s=u(K(o,_c),64),s==(ve(),Jn)?o.n.a+=n.a-e.a:s==vr&&(o.n.b+=n.b-e.b));d=t.d,t.f.a=n.a-d.b-d.c,t.f.b=n.b-d.d-d.a}function o7n(t){var e,n,r,s,o,h,d,m,k,T,A,N;for(e=T1e(t),T=(d=new ui(e).a.vc().Kc(),new Xi(d));T.a.Ob();){for(k=(s=u(T.a.Pb(),44),u(s.ld(),10)),A=0,N=0,A=k.d.d,N=k.o.b+k.d.a,t.d[k.p]=0,n=k;(o=t.a[n.p])!=k;)r=nwn(n,o),m=0,t.c==(qd(),Vp)?m=r.d.n.b+r.d.a.b-r.c.n.b-r.c.a.b:m=r.c.n.b+r.c.a.b-r.d.n.b-r.d.a.b,h=Rt(t.d[n.p])+m,t.d[o.p]=h,A=b.Math.max(A,o.d.d-h),N=b.Math.max(N,h+o.o.b+o.d.a),n=o;n=k;do t.d[n.p]=Rt(t.d[n.p])+A,n=t.a[n.p];while(n!=k);t.b[k.p]=A+N}}function SS(t,e,n){var r,s,o,h,d,m,k,T,A,N;for(o=0,h=t.t,s=0,r=0,m=0,N=0,A=0,n&&(t.n.c.length=0,pe(t.n,new eq(t.s,t.t,t.i))),d=0,T=new J(t.b);T.a<T.c.c.length;)k=u(et(T),27),o+k.g+(d>0?t.i:0)>e&&m>0&&(o=0,h+=m+t.i,s=b.Math.max(s,N),r+=m+t.i,m=0,N=0,n&&(++A,pe(t.n,new eq(t.s,h,t.i))),d=0),N+=k.g+(d>0?t.i:0),m=b.Math.max(m,k.f),n&&txt(u(Oe(t.n,A),209),k),o+=k.g+(d>0?t.i:0),++d;return s=b.Math.max(s,N),r+=m,n&&(t.r=s,t.d=r,ixt(t.j)),new Th(t.s,t.t,s,r)}function cct(t){var e,n,r,s,o,h,d,m,k,T,A,N;for(t.b=!1,A=ns,m=Vs,N=ns,k=Vs,r=t.e.a.ec().Kc();r.Ob();)for(n=u(r.Pb(),272),s=n.a,A=b.Math.min(A,s.c),m=b.Math.max(m,s.c+s.b),N=b.Math.min(N,s.d),k=b.Math.max(k,s.d+s.a),h=new J(n.c);h.a<h.c.c.length;)o=u(et(h),407),e=o.a,e.a?(T=s.d+o.b.b,d=T+o.c,N=b.Math.min(N,T),k=b.Math.max(k,d)):(T=s.c+o.b.a,d=T+o.c,A=b.Math.min(A,T),m=b.Math.max(m,d));t.a=new se(m-A,k-N),t.c=new se(A+t.d.a,N+t.d.b)}function b5(t){var e,n,r,s,o,h,d,m;if(!t.a){if(t.o=null,m=new MGt(t),e=new Gtt,n=wL,d=n.a.zc(t,n),d==null){for(h=new Zn(Ko(t));h.e!=h.i.gc();)o=u(sr(h),29),bs(m,b5(o));n.a.Bc(t)!=null,n.a.gc()==0}for(s=(!t.s&&(t.s=new Jt(Ku,t,21,17)),new Zn(t.s));s.e!=s.i.gc();)r=u(sr(s),179),At(r,331)&&Mr(e,u(r,35));Uy(e),t.k=new Z
|
|||
|
\r\r `),Bo(dx,aht,r),Bo(YT,aht,i3(r)),r=new eh(4),dO(r,sve),Bo(dx,oA,r),Bo(YT,oA,i3(r)),r=new eh(4),dO(r,sve),Bo(dx,oA,r),Bo(YT,oA,i3(r)),r=new eh(4),dO(r,ave),a3(r,u(eu(dx,oA),122)),Bo(dx,sht,r),Bo(YT,sht,i3(r)),r=new eh(4),dO(r,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Bo(dx,oht,r),Bo(YT,oht,i3(r)),r=new eh(4),dO(r,ave),ru(r,95,95),ru(r,58,58),Bo(dx,cht,r),Bo(YT,cht,i3(r))),n=u(eu(e?dx:YT,t),138),n}function Fpe(t){bm(t,new ow(awt(l$(dm(lm(fm(hm(new cg,Xn),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new OJ),Xn),Gi((M7(),Udt),ot(st(zK,1),te,245,0,[jK,$K,RK,Vdt,BK,FK]))))),he(t,Xn,AEt,_e(e1t)),he(t,Xn,LEt,_e(tAt)),he(t,Xn,xut,_e(tN)),he(t,Xn,MEt,_e(Yf)),he(t,Xn,Sut,_e(G5)),he(t,Xn,olt,_e(_v)),he(t,Xn,DEt,_e(O3)),he(t,Xn,IEt,_e(OT)),he(t,Xn,OEt,_e(PT)),he(t,Xn,PEt,_e(n1t)),he(t,Xn,h3,_e(Sv)),he(t,Xn,NEt,_e(r1t)),he(t,Xn,FEt,_e(LA)),he(t,Xn,BEt,_e(qG)),he(t,Xn,uEt,_e(ZP)),he(t,Xn,hEt,_e(U5)),he(t,Xn,lEt,_e(Lw)),he(t,Xn,fEt,_e(K5)),he(t,Xn,cP,fe(0)),he(t,Xn,dEt,_e(IT)),he(t,Xn,gEt,_e(ZSt)),he(t,Xn,pEt,_e(Gk)),he(t,Xn,Pg,_e(uAt)),he(t,Xn,RV,_e(nAt)),he(t,Xn,jV,_e(rAt)),he(t,Xn,VS,_e(s1t)),he(t,Xn,Zut,_e(iAt)),he(t,Xn,tlt,_e(sAt)),he(t,Xn,$V,_e(HG)),he(t,Xn,zV,_e(a1t)),he(t,Xn,qV,_e(oAt)),he(t,Xn,HV,_e(aAt)),he(t,Xn,elt,_e(cAt)),he(t,Xn,Kut,_e(Tv)),he(t,Xn,Wut,_e(AA)),he(t,Xn,NV,_e(Qft)),he(t,Xn,FV,_e(ISt)),he(t,Xn,uP,_e(a6e)),he(t,Xn,lP,_e(o6e)),he(t,Xn,hP,_e(s6e)),he(t,Xn,fP,_e(i6e)),he(t,Xn,ov,eAt),he(t,Xn,av,WSt),he(t,Xn,wP,LSt),he(t,Xn,REt,0),he(t,Xn,SV,fe(1)),he(t,Xn,Sk,Q7),he(t,Xn,jEt,_e(Aw)),he(t,Xn,Aut,_e(ms)),he(t,Xn,$Et,_e(DT)),he(t,Xn,mP,_e(Wxe)),he(t,Xn,zEt,_e(s0)),he(t,Xn,UV,_e(A3)),he(t,Xn,RS,(Nn(),!0)),he(t,Xn,qEt,_e(L3)),he(t,Xn,HEt,_e(Cw)),he(t,Xn,T5,_e(Sw)),he(t,Xn,Ak,_e(zG)),he(t,Xn,J7,_e(t1t)),he(t,Xn,clt,ASt),he(t,Xn,Z7,_e(Ev)),he(t,Xn,VEt,_e(jG)),he(t,Xn,tT,_e(D3)),he(t,Xn,UEt,_e(t6e)),he(t,Xn,GEt,_e(QSt)),he(t,Xn,KEt,XSt),he(t,Xn,WEt,_e(Qxe)),he(t,Xn,YEt,_e(Jxe)),he(t,Xn,XEt,_e(Zxe)),he(t,Xn,QEt,_e(Xxe)),he(t,Xn,X8t,_e(i1t)),he(t,Xn,bP,_e(_w)),he(t,Xn,Rut,_e(e2)
|
|||
|
`,Gbe=`)]}"' \r
|
|||
|
`,Kbe="The given string contains parts that cannot be parsed as numbers.",gP="org.eclipse.elk.core.math",Wbe={3:1,4:1,140:1,214:1,423:1},Ybe={3:1,4:1,107:1,214:1,423:1},Rp="org.eclipse.elk.alg.layered.graph.transform",Xbe="ElkGraphImporter",Qbe="ElkGraphImporter/lambda$1$Type",Jbe="ElkGraphImporter/lambda$2$Type",Zbe="ElkGraphImporter/lambda$4$Type",Yn="org.eclipse.elk.alg.layered.intermediate",t2e="Node margin calculation",e2e="ONE_SIDED_GREEDY_SWITCH",n2e="TWO_SIDED_GREEDY_SWITCH",Dut="No implementation is available for the layout processor ",Iut="IntermediateProcessorStrategy",Out="Node '",r2e="FIRST_SEPARATE",i2e="LAST_SEPARATE",s2e="Odd port side processing",Gs="org.eclipse.elk.alg.layered.intermediate.compaction",qS="org.eclipse.elk.alg.layered.intermediate.greedyswitch",R0="org.eclipse.elk.alg.layered.p3order.counting",pP={230:1},Dk="org.eclipse.elk.alg.layered.intermediate.loops",lh="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Ub="org.eclipse.elk.alg.layered.intermediate.loops.routing",z8t="org.eclipse.elk.alg.layered.intermediate.preserveorder",t0="org.eclipse.elk.alg.layered.intermediate.wrapping",zc="org.eclipse.elk.alg.layered.options",Put="INTERACTIVE",q8t="GREEDY",a2e="DEPTH_FIRST",o2e="EDGE_LENGTH",c2e="SELF_LOOPS",u2e="firstTryWithInitialOrder",H8t="org.eclipse.elk.layered.directionCongruency",V8t="org.eclipse.elk.layered.feedbackEdges",IV="org.eclipse.elk.layered.interactiveReferencePoint",U8t="org.eclipse.elk.layered.mergeEdges",G8t="org.eclipse.elk.layered.mergeHierarchyEdges",K8t="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",W8t="org.eclipse.elk.layered.portSortingStrategy",Y8t="org.eclipse.elk.layered.thoroughness",X8t="org.eclipse.elk.layered.unnecessaryBendpoints",Q8t="org.eclipse.elk.layered.generatePositionAndLayerIds",Nut="org.eclipse.elk.layered.cycleBreaking.strategy",bP="org.eclipse.elk.layered.layering.strategy",J8t="org.eclipse.elk.layered.layering.layerConstraint",Z8t="org.eclipse.elk.layered.layering.layerChoiceConstraint",tEt="org.eclipse.elk.layered.layering.layerId",Fut="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",But="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Rut="org.eclipse.elk.layered.layering.nodePromotion.strategy",jut="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",$ut="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",HS="org.eclipse.elk.layered.crossingMinimization.strategy",eEt="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",zut="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",qut="org.eclipse.elk.layered.crossingMinimization.semiInteractive",nEt="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",rEt="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",iEt="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",sEt="org.eclipse.elk.layered.crossingMinimization.positionId",aEt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Hut="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",OV="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",C5="org.eclipse.elk.layered.nodePlacement.strategy",PV="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Vut="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Uut="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Gut="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Kut="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Wut="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",oEt="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",cEt="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",NV="org.eclipse.elk.layered.edgeRouting.splines.mode",FV="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Yut="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",uEt="org.eclipse.elk.layered.spacing.baseValue",lEt="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",hEt="org.ecli
|
|||
|
`,e=fe(0),h=0;h<this.p;h++){for(r+=""+e.a,e=fe(FJt(e.a)),s=0;s<this.o;s++)n=Xst(this,s,h),Rc(n,0)==0?r+="_":Rc(n,1)==0?r+="X":r+="0";r+=`
|
|||
|
`}return Ch(r,0,r.length-1)},l.o=0,l.p=0,D(EV,"TwoBitGrid",1317),M(330,1317,{330:1},I5t),l.j=0,l.k=0,D(EV,"PlanarGrid",330),M(176,330,{330:1,176:1}),l.g=0,l.i=0,D(EV,"Polyomino",176);var k_n=us(aP,Lbe);M(137,1,k8t,Ls),l.qf=function(e,n){return eO(this,e,n)},l.nf=function(){return mte(this)},l.of=function(e){return K(this,e)},l.pf=function(e){return Ui(this,e)},D(aP,"MapPropertyHolder",137),M(1318,137,k8t,kde),D(EV,"Polyominoes",1318);var Bye=!1,fA,q9t;M(1828,1,rr,Za),l.Cd=function(e){Tge(u(e,225))},D(_k,"DepthFirstCompaction/0methodref$compactTree$Type",1828),M(825,1,rr,yD),l.Cd=function(e){Wun(this.a,u(e,225))},D(_k,"DepthFirstCompaction/lambda$1$Type",825),M(1829,1,rr,SZt),l.Cd=function(e){Q2n(this.a,this.b,this.c,u(e,225))},D(_k,"DepthFirstCompaction/lambda$2$Type",1829);var dA,H9t;M(68,1,{68:1},One),D(_k,"Node",68),M(1214,1,{},IQt),D(_k,"ScanlineOverlapCheck",1214),M(1215,1,{693:1},one),l.bf=function(e){_sn(this,u(e,450))},D(_k,"ScanlineOverlapCheck/OverlapsScanlineHandler",1215),M(1216,1,Xr,_i),l.Ne=function(e,n){return Pbn(u(e,68),u(n,68))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(_k,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1216),M(450,1,{450:1},Mwt),l.a=!1,D(_k,"ScanlineOverlapCheck/Timestamp",450),M(1217,1,Xr,gu),l.Ne=function(e,n){return gvn(u(e,450),u(n,450))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(_k,"ScanlineOverlapCheck/lambda$0$Type",1217),M(557,1,{},Le),D(Mbe,"SVGImage",557),M(334,1,{334:1},wvt),l.Ib=function(){return"("+this.a+ro+this.b+ro+this.c+")"},D(Mbe,"UniqueTriple",334),M(205,1,fw),D(x5,"AbstractLayoutProvider",205),M(1114,205,fw,ry),l.rf=function(e,n){var r,s,o,h;switch(n.Ug(Dbe,1),this.a=Rt(Ht(ne(e,(aS(),Y9t)))),td(e,zht)&&(o=Gr(ne(e,zht)),r=Jot(JE(),o),r&&(s=u(xI(r.f),205),s.rf(e,n.eh(1)))),h=new Zre(this.a),this.b=u9n(h,e),u(ne(e,(Eat(),U9t)),488).g){case 0:C5n(new $e,this.b),Oi(e,RU,K(this.b,RU));break;default:fg()}T9n(h),Oi(e,K9t,this.b),n.Vg()},l.a=0,D(Ibe,"DisCoLayoutProvider",1114),M(1208,1,{},$e),l.c=!1,l.e=0,l.f=0,D(Ibe,"DisCoPolyominoCompactor",1208),M(567,1,{567:1},bte),l.b=!0,D(CV,"DCComponent",567),M(406,22,{3:1,34:1,22:1,406:1},M$),l.a=!1;var FU,BP,BU,RP,Rye=Cr(CV,"DCDirection",406,Ir,Qfn,ban),jye;M(272,137,{3:1,272:1,96:1,137:1},$ot),D(CV,"DCElement",272),M(407,1,{407:1},nxt),l.c=0,D(CV,"DCExtension",407),M(762,137,k8t,sWt),D(CV,"DCGraph",762),M(488,22,{3:1,34:1,22:1,488:1},CJt);var $ht,V9t=Cr(yut,E8t,488,Ir,sln,wan),$ye;M(865,1,af,xC),l.hf=function(e){Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,T8t),Obe),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),G9t),(Pp(),rs)),V9t),Ze((A1(),_n))))),Xe(e,new qe(We(Ke(Ye(He(Ge(Ve(Ue(new je,C8t),Obe),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),ex),Ne),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(He(Ge(Ve(Ue(new je,_8t),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),pd),sa),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(He(Ge(Ve(Ue(new je,S8t),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),pd),sa),Ze(_n)))),uge((new xj,e))};var zye,U9t,G9t,qye,Hye;D(yut,"DisCoMetaDataProvider",865),M(1010,1,af,xj),l.hf=function(e){uge(e)};var Vye,zht,Uye,K9t,RU,qht,W9t,Gye,Kye,Wye,Yye,Y9t;D(yut,"DisCoOptions",1010),M(1011,1,{},h1),l.sf=function(){var e;return e=new ry,e},l.tf=function(e){},D(yut,"DisCoOptions/DiscoFactory",1011),M(568,176,{330:1,176:1,568:1},ide),l.a=0,l.b=0,l.c=0,l.d=0,D("org.eclipse.elk.alg.disco.structures","DCPolyomino",568);var Hht,Vht,jU;M(1286,1,Kr,rp),l.Mb=function(e){return smt(e)},D(k5,"ElkGraphComponentsProcessor/lambda$0$Type",1286),M(1287,1,{},iy),l.Kb=function(e){return Y6(),M0(u(e,74))},D(k5,"ElkGraphComponentsProcessor/lambda$1$Type",1287),M(1288,1,Kr,S8),l.Mb=function(e){return Tcn(u(e,74))},D(k5,"ElkGrap
|
|||
|
start=`,Zc(e,this.i),e.a+=`
|
|||
|
end=`,Zc(e,this.a),e.a+=`
|
|||
|
nodeStartEdge=`,Zc(e,this.e),e.a+=`
|
|||
|
startEndEdge=`,Zc(e,this.j),e.a+=`
|
|||
|
originalEdge=`,Zc(e,this.f),e.a+=`
|
|||
|
startInLayerDummy=`,Zc(e,this.k),e.a+=`
|
|||
|
startInLayerEdge=`,Zc(e,this.n),e.a+=`
|
|||
|
endInLayerDummy=`,Zc(e,this.b),e.a+=`
|
|||
|
endInLayerEdge=`,Zc(e,this.c),e.a},D(t0,"BreakingPointInserter/BPInfo",313),M(661,1,{661:1},YVt),l.a=!1,l.b=0,l.c=0,D(t0,"BreakingPointInserter/Cut",661),M(1545,1,Vi,_J),l.Kf=function(e,n){Oxn(u(e,36),n)},D(t0,"BreakingPointProcessor",1545),M(1546,1,Kr,SJ),l.Mb=function(e){return pae(u(e,10))},D(t0,"BreakingPointProcessor/0methodref$isEnd$Type",1546),M(1547,1,Kr,AJ),l.Mb=function(e){return bae(u(e,10))},D(t0,"BreakingPointProcessor/1methodref$isStart$Type",1547),M(1548,1,Vi,LJ),l.Kf=function(e,n){e6n(this,u(e,36),n)},D(t0,"BreakingPointRemover",1548),M(1549,1,rr,MJ),l.Cd=function(e){u(e,131).k=!0},D(t0,"BreakingPointRemover/lambda$0$Type",1549),M(811,1,{},L6t),l.b=0,l.e=0,l.f=0,l.j=0,D(t0,"GraphStats",811),M(812,1,{},oR),l.Ve=function(e,n){return b.Math.max(Rt(Ht(e)),Rt(Ht(n)))},D(t0,"GraphStats/0methodref$max$Type",812),M(813,1,{},cR),l.Ve=function(e,n){return b.Math.max(Rt(Ht(e)),Rt(Ht(n)))},D(t0,"GraphStats/2methodref$max$Type",813),M(1726,1,{},DJ),l.Ve=function(e,n){return ncn(Ht(e),Ht(n))},D(t0,"GraphStats/lambda$1$Type",1726),M(1727,1,{},$Vt),l.Kb=function(e){return xle(this.a,u(e,30))},D(t0,"GraphStats/lambda$2$Type",1727),M(1728,1,{},zVt),l.Kb=function(e){return dde(this.a,u(e,30))},D(t0,"GraphStats/lambda$6$Type",1728),M(814,1,{},uR),l.og=function(e,n){var r;return r=u(K(e,(Me(),iAt)),15),r||(wn(),wn(),so)},l.pg=function(){return!1},D(t0,"ICutIndexCalculator/ManualCutIndexCalculator",814),M(816,1,{},lR),l.og=function(e,n){var r,s,o,h,d,m,k,T,A,N,j,U,W,tt,ct,Tt,St,Bt,Kt;for(Kt=(n.n==null&&Yle(n),n.n),k=(n.d==null&&Yle(n),n.d),Bt=Vt(wa,Io,28,Kt.length,15,1),Bt[0]=Kt[0],Tt=Kt[0],T=1;T<Kt.length;T++)Bt[T]=Bt[T-1]+Kt[T],Tt+=Kt[T];for(o=pfe(n)-1,d=u(K(e,(Me(),sAt)),17).a,s=Vs,r=new ge,j=b.Math.max(0,o-d);j<=b.Math.min(n.f-1,o+d);j++){if(tt=Tt/(j+1),ct=0,A=1,h=new ge,St=Vs,N=0,m=0,W=k[0],j==0)St=Tt,m=(n.g==null&&(n.g=Poe(n,new cR)),Rt(n.g));else{for(;A<n.f;)Bt[A-1]-ct>=tt&&(pe(h,fe(A)),St=b.Math.max(St,Bt[A-1]-N),m+=W,ct+=Bt[A-1]-ct,N=Bt[A-1],W=k[A]),W=b.Math.max(W,k[A]),++A;m+=W}U=b.Math.min(1/St,1/n.b/m),U>s&&(s=U,r=h)}return r},l.pg=function(){return!1},D(t0,"MSDCutIndexHeuristic",816),M(1683,1,Vi,IJ),l.Kf=function(e,n){HEn(u(e,36),n)},D(t0,"SingleEdgeGraphWrapper",1683),M(232,22,{3:1,34:1,22:1,232:1},QC);var F5,vT,yT,T3,bA,B5,xT=Cr(zc,"CenterEdgeLabelPlacementStrategy",232,Ir,Adn,Man),E4e;M(431,22,{3:1,34:1,22:1,431:1},Pwt);var u_t,yft,l_t=Cr(zc,"ConstraintCalculationStrategy",431,Ir,Wln,Dan),T4e;M(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},drt),l.dg=function(){return Jfe(this)},l.qg=function(){return Jfe(this)};var UP,wA,h_t,f_t=Cr(zc,"CrossingMinimizationStrategy",322,Ir,qhn,Ian),C4e;M(351,22,{3:1,34:1,22:1,351:1},grt);var d_t,xft,pG,g_t=Cr(zc,"CuttingStrategy",351,Ir,Hhn,Oan),_4e;M(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},RD),l.dg=function(){return q1e(this)},l.qg=function(){return q1e(this)};var p_t,kft,kT,Eft,ET,b_t=Cr(zc,"CycleBreakingStrategy",348,Ir,G1n,Pan),S4e;M(428,22,{3:1,34:1,22:1,428:1},Nwt);var bG,w_t,m_t=Cr(zc,"DirectionCongruency",428,Ir,Kln,Nan),A4e;M(459,22,{3:1,34:1,22:1,459:1},prt);var TT,Tft,R5,L4e=Cr(zc,"EdgeConstraint",459,Ir,Vhn,qan),M4e;M(283,22,{3:1,34:1,22:1,283:1},JC);var Cft,_ft,Sft,Aft,wG,Lft,v_t=Cr(zc,"EdgeLabelSideSelection",283,Ir,Cdn,Han),D4e;M(487,22,{3:1,34:1,22:1,487:1},Fwt);var mG,y_t,x_t=Cr(zc,"EdgeStraighteningStrategy",487,Ir,Gln,Van),I4e;M(281,22,{3:1,34:1,22:1,281:1},ZC);var Mft,k_t,E_t,vG,T_t,C_t,__t=Cr(zc,"FixedAlignment",281,Ir,_dn,zan),O4e;M(282,22,{3:1,34:1,22:1,282:1},t_);var S_t,A_t,L_t,M_t,mA,D_t,I_t=Cr(zc,"GraphCompactionStrategy",282,Ir,Sdn,Fan),P4e;M(259,22,{3:1,34:1,22:1,259:1},ky);var CT,yG,_T,zh,vA,xG,ST,j5,kG,yA,Dft=Cr(zc,"GraphProperties",259,Ir,hgn,Ban),N4e;M(298,22,{3:1,34:1,22:1,298:1},brt);var GP,Ift,Oft,Pft=Cr(zc,"GreedySwitchType",298,Ir,Uhn,Ran),F4e;M(311,22,{3:1,34:1,22:1,311:1},wrt);var jk,KP,$5,B4e=Cr(zc,"InLayerConstraint",311,Ir,Ghn,jan),R4e;M(429,22,{3:1,34:1,22:1,429:1},Bwt);var Nft,O_t,P_t=Cr(zc,"InteractiveReferencePoint",429,Ir,thn,$an),j4e,N_t,$k,mv,EG,F_t,B_t,TG,R_t,WP,CG,xA,zk,Bg,Fft,_G,_c,j_t,Zb,uu,Bft,Rft,YP,kw,vv,qk,$_t,Hk,XP,C3,I1,h
|
|||
|
`;for(n=_r(this.a,0);n.b!=n.d.c;)e=u(Tr(n),65),o+=(e.b&&e.c?K2(e.b)+"->"+K2(e.c):"e_"+Hi(e))+`
|
|||
|
`;return o};var M_n=D(GS,"TGraph",121);M(643,508,{3:1,508:1,643:1,96:1,137:1}),D(GS,"TShape",643),M(39,643,{3:1,508:1,39:1,643:1,96:1,137:1},pat),l.Ib=function(){return K2(this)};var eK=D(GS,"TNode",39);M(236,1,O0,hg),l.Jc=function(e){Oa(this,e)},l.Kc=function(){var e;return e=_r(this.a.d,0),new A4(e)},D(GS,"TNode/2",236),M(329,1,ba,A4),l.Nb=function(e){Da(this,e)},l.Pb=function(){return u(Tr(this.a),65).c},l.Ob=function(){return _D(this.a)},l.Qb=function(){Hst(this.a)},D(GS,"TNode/2/1",329),M(1923,1,Vi,e6),l.Kf=function(e,n){VCn(this,u(e,121),n)},D(au,"CompactionProcessor",1923),M(1924,1,Xr,EUt),l.Ne=function(e,n){return Dgn(this.a,u(e,39),u(n,39))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(au,"CompactionProcessor/lambda$0$Type",1924),M(1925,1,Kr,fXt),l.Mb=function(e){return Bln(this.b,this.a,u(e,42))},l.a=0,l.b=0,D(au,"CompactionProcessor/lambda$1$Type",1925),M(1934,1,Xr,gR),l.Ne=function(e,n){return Aun(u(e,39),u(n,39))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(au,"CompactionProcessor/lambda$10$Type",1934),M(1935,1,Xr,DZ),l.Ne=function(e,n){return qin(u(e,39),u(n,39))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(au,"CompactionProcessor/lambda$11$Type",1935),M(1936,1,Xr,UM),l.Ne=function(e,n){return Lun(u(e,39),u(n,39))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(au,"CompactionProcessor/lambda$12$Type",1936),M(1926,1,Kr,TUt),l.Mb=function(e){return Cin(this.a,u(e,42))},l.a=0,D(au,"CompactionProcessor/lambda$2$Type",1926),M(1927,1,Kr,CUt),l.Mb=function(e){return _in(this.a,u(e,42))},l.a=0,D(au,"CompactionProcessor/lambda$3$Type",1927),M(1928,1,Kr,IZ),l.Mb=function(e){return u(e,39).c.indexOf(QV)==-1},D(au,"CompactionProcessor/lambda$4$Type",1928),M(1929,1,{},_Ut),l.Kb=function(e){return jfn(this.a,u(e,39))},l.a=0,D(au,"CompactionProcessor/lambda$5$Type",1929),M(1930,1,{},SUt),l.Kb=function(e){return Kdn(this.a,u(e,39))},l.a=0,D(au,"CompactionProcessor/lambda$6$Type",1930),M(1931,1,Xr,AUt),l.Ne=function(e,n){return idn(this.a,u(e,240),u(n,240))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(au,"CompactionProcessor/lambda$7$Type",1931),M(1932,1,Xr,LUt),l.Ne=function(e,n){return sdn(this.a,u(e,39),u(n,39))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(au,"CompactionProcessor/lambda$8$Type",1932),M(1933,1,Xr,OZ),l.Ne=function(e,n){return Hin(u(e,39),u(n,39))},l.Fb=function(e){return this===e},l.Oe=function(){return new Qn(this)},D(au,"CompactionProcessor/lambda$9$Type",1933),M(1921,1,Vi,PZ),l.Kf=function(e,n){$kn(u(e,121),n)},D(au,"DirectionProcessor",1921),M(1913,1,Vi,ZJt),l.Kf=function(e,n){uEn(this,u(e,121),n)},D(au,"FanProcessor",1913),M(1937,1,Vi,NZ),l.Kf=function(e,n){Akn(u(e,121),n)},D(au,"GraphBoundsProcessor",1937),M(1938,1,{},FZ),l.Ye=function(e){return u(e,39).e.a},D(au,"GraphBoundsProcessor/lambda$0$Type",1938),M(1939,1,{},BZ),l.Ye=function(e){return u(e,39).e.b},D(au,"GraphBoundsProcessor/lambda$1$Type",1939),M(1940,1,{},RZ),l.Ye=function(e){return crn(u(e,39))},D(au,"GraphBoundsProcessor/lambda$2$Type",1940),M(1941,1,{},pR),l.Ye=function(e){return orn(u(e,39))},D(au,"GraphBoundsProcessor/lambda$3$Type",1941),M(262,22,{3:1,34:1,22:1,262:1,196:1},wm),l.dg=function(){switch(this.g){case 0:return new LKt;case 1:return new ZJt;case 2:return new AKt;case 3:return new mR;case 4:return new bR;case 8:return new jZ;case 5:return new PZ;case 6:return new zZ;case 7:return new e6;case 9:return new NZ;case 10:return new qZ;default:throw nt(new zn(Dut+(this.f!=null?this.f:""+this.g)))}};var qAt,HAt,VAt,UAt,GAt,KAt,WAt,YAt,XAt,QAt,C1t,D_n=Cr(au,Iut,262,Ir,Koe,fon),Eke;M(1920,1,Vi,jZ),l.Kf=function(e,n){z9n(u(e,121),n)},D(au,"LevelCoordinatesProcessor",1920),M(1918,1,Vi,bR),l.Kf=function(e,n){c6n(this,u(e,121),n)},l.a=0,D(au,"LevelHeightProcessor",1918),M(1919,1,O0,$Z),l.Jc=function(e){Oa(this,e)},l.Kc=function(){return wn(),wE(),pT},D(au,"LevelHeightProcessor/1",1919),M(1914,1,Vi,AKt),l.Kf=function(e,n){kkn(this,u(e,121),n)},D(au,"LevelProcessor",1914
|
|||
|
`),o.length!=2)throw nt(new zn("Exactly two numbers are expected, "+o.length+" were found."));try{this.a=Jy(Zy(o[0])),this.b=Jy(Zy(o[1]))}catch(h){throw h=is(h),At(h,130)?(r=h,nt(new zn(Kbe+r))):nt(h)}},l.Ib=function(){return"("+this.a+","+this.b+")"},l.a=0,l.b=0;var ua=D(gP,"KVector",8);M(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Xu,h$,EJt),l.Pc=function(){return Fpn(this)},l.cg=function(e){var n,r,s,o,h,d;s=s3(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
|||
|
`),Zl(this);try{for(r=0,h=0,o=0,d=0;r<s.length;)s[r]!=null&&Zy(s[r]).length>0&&(h%2==0?o=Jy(s[r]):d=Jy(s[r]),h>0&&h%2!=0&&Zr(this,new se(o,d)),++h),++r}catch(m){throw m=is(m),At(m,130)?(n=m,nt(new zn("The given string does not match the expected format for vectors."+n))):nt(m)}},l.Ib=function(){var e,n,r;for(e=new Jl("("),n=_r(this,0);n.b!=n.d.c;)r=u(Tr(n),8),ni(e,r.a+","+r.b),n.b!=n.d.c&&(e.a+="; ");return(e.a+=")",e).a};var GMt=D(gP,"KVectorChain",75);M(255,22,{3:1,34:1,22:1,255:1},e_);var vdt,yK,xK,wN,mN,kK,KMt=Cr(Pl,"Alignment",255,Ir,Odn,$on),OEe;M(991,1,af,Sj),l.hf=function(e){O0e(e)};var WMt,ydt,PEe,YMt,XMt,NEe,QMt,FEe,BEe,JMt,ZMt,REe;D(Pl,"BoxLayouterOptions",991),M(992,1,{},OR),l.sf=function(){var e;return e=new H8,e},l.tf=function(e){},D(Pl,"BoxLayouterOptions/BoxFactory",992),M(297,22,{3:1,34:1,22:1,297:1},n_);var JA,xdt,ZA,tL,eL,kdt,Edt=Cr(Pl,"ContentAlignment",297,Ir,Pdn,zon),jEe;M(699,1,af,Aj),l.hf=function(e){Xe(e,new qe(We(Ke(Ye(He(Ge(Ve(Ue(new je,W2e),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Pp(),ex)),Ne),Ze((A1(),_n))))),Xe(e,new qe(We(Ke(Ye(He(Ge(Ve(Ue(new je,Y2e),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),pd),N_n),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,zEt),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),tDt),rs),KMt),Ze(Js)))),Xe(e,new qe(We(Ke(Ye(He(Ge(Ve(Ue(new je,Sk),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Ga),zs),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(He(Ge(Ve(Ue(new je,tTt),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),pd),GMt),Ze(c0)))),Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,GV),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),nDt),Wk),Edt),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,mP),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Nn(),!1)),aa),Es),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,clt),""),x8t),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),rDt),rs),iL),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,wP),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),aDt),rs),Bdt),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,J7t),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),aa),Es),Ze(_n)))),Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,UV),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),uDt),rs),YDt),Gi(_n,ot(st(H0,1),te,170,0,[Js]))))),Xe(e,new qe(We(Ke(Ye(fn(He(Ge(Ve(Ue(new je,av),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output o
|
|||
|
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
|||
|
... Falling back to non-web worker version.`);if(!R.workerFactory){var rt=f("./elk-worker.min.js"),at=rt.Worker;R.workerFactory=function(ut){return new at(ut)}}return b(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,R))}return B}(_);Object.defineProperty(g.exports,"__esModule",{value:!0}),g.exports=S,S.default=S},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(f,g,w){g.exports=Worker},{}]},{},[3])(3)})})(cHt);var WZe=cHt.exports;const YZe=JT(WZe),uHt=new YZe;let Qw={};const XZe={};let qx={};const QZe=async function(i,a,f,g,w,v,b){const _=f.select(`[id="${a}"]`).insert("g").attr("class","nodes"),S=Object.keys(i);return await Promise.all(S.map(async function(I){const B=i[I];let F="default";B.classes.length>0&&(F=B.classes.join(" ")),F=F+" flowchart-label";const R=Uw(B.styles);let q=B.text!==void 0?B.text:B.id;const X={width:0,height:0},rt=[{id:B.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:B.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:B.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:B.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let at=0,ut="",pt={};switch(B.type){case"round":at=5,ut="rect";break;case"square":ut="rect";break;case"diamond":ut="question",pt={portConstraints:"FIXED_SIDE"};break;case"hexagon":ut="hexagon";break;case"odd":ut="rect_left_inv_arrow";break;case"lean_right":ut="lean_right";break;case"lean_left":ut="lean_left";break;case"trapezoid":ut="trapezoid";break;case"inv_trapezoid":ut="inv_trapezoid";break;case"odd_right":ut="rect_left_inv_arrow";break;case"circle":ut="circle";break;case"ellipse":ut="ellipse";break;case"stadium":ut="stadium";break;case"subroutine":ut="subroutine";break;case"cylinder":ut="cylinder";break;case"group":ut="rect";break;case"doublecircle":ut="doublecircle";break;default:ut="rect"}const yt={labelStyle:R.labelStyle,shape:ut,labelText:q,labelType:B.labelType,rx:at,ry:at,class:F,style:R.style,id:B.id,link:B.link,linkTarget:B.linkTarget,tooltip:w.db.getTooltip(B.id)||"",domId:w.db.lookUpDomId(B.id),haveCallback:B.haveCallback,width:B.type==="group"?500:void 0,dir:B.dir,type:B.type,props:B.props,padding:h0().flowchart.padding};let mt,gt;if(yt.type!=="group")gt=await U$t(_,yt,B.dir),mt=gt.node().getBBox();else{g.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:bt,bbox:Z}=await f0(_,yt,void 0,!0);X.width=Z.width,X.wrappingWidth=h0().flowchart.wrappingWidth,X.height=Z.height,X.labelNode=bt.node(),yt.labelData=X}const ht={id:B.id,ports:B.type==="diamond"?rt:[],layoutOptions:pt,labelText:q,labelData:X,domId:w.db.lookUpDomId(B.id),width:mt==null?void 0:mt.width,height:mt==null?void 0:mt.height,type:B.type,el:gt,parent:v.parentById[B.id]};qx[yt.id]=ht})),b},lHt=(i,a,f)=>{const g={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return g.TD=g.TB,Wt.info("abc88",f,a,i),g[f][a][i]},hHt=(i,a,f)=>{if(Wt.info("getNextPort abc88",{node:i,edgeDirection:a,graphDirection:f}),!Qw[i])switch(f){case"TB":case"TD":Qw[i]={inPosition:"north",outPosition:"south"};break;case"BT":Qw[i]={inPosition:"south",outPosition:"north"};break;case"RL":Qw[i]={inPosition:"east",outPosition:"west"};break;case"LR":Qw[i]={inPosition:"west",outPosition:"east"};break}const g=a==="in"?Qw[i].inPosition:Qw[i].outPosition;return a==="in"?Qw[i].inPosition=lHt(Qw[i].inPosition,a,f):Qw[i].outPosition=lHt(Qw[i].outPosition,a,f),g},JZe=(i,a)=>{let f=i.start,g=i.end;const w=f,v=g,b=qx[f],E=qx[g];return!b||!E?{source:f,target:g}:(b.type==="diamond"&&(f=`${f}-${hHt(f,"out",a)}`),E.type==="diamond"&&(g=`${g}-${hHt(g,"in",a)}`),{source:f,target:g,sourceId:w,targetId:v})},ZZe=function(i,a,f,g){Wt.info("abc78 edges = ",i);const w=g.insert("g").attr("class","edgeLabels");let v={},b=a.db.getDirection(),E,_;if(i.defaultStyle!==void 0){const S=Uw(i.defaultStyle);E=S.style,_=S.labelStyle}return i.forEach(function(S){const I="L-"+S.start+"-"+S.end;v[I]===void 0
|
|||
|
`),S.style===void 0&&(q.style=q.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),q.labelStyle=q.labelStyle.replace("color:","fill:"),q.id=B,q.classes="flowchart-link "+F+" "+R;const at=Q$t(w,q),{source:ut,target:pt,sourceId:yt,targetId:mt}=JZe(S,b);Wt.debug("abc78 source and target",ut,pt),f.edges.push({id:"e"+S.start+S.end,sources:[ut],targets:[pt],sourceId:yt,targetId:mt,labelEl:at,labels:[{width:q.width,height:q.height,orgWidth:q.width,orgHeight:q.height,text:q.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:q})}),f},ttn=function(i,a,f,g,w){let v="";g&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),Y$t(i,a,v,w,f)},etn=function(i,a){return Wt.info("Extracting classes"),a.db.getClasses()},ntn=function(i){const a={parentById:{},childrenById:{}},f=i.getSubGraphs();return Wt.info("Subgraphs - ",f),f.forEach(function(g){g.nodes.forEach(function(w){a.parentById[w]=g.id,a.childrenById[g.id]===void 0&&(a.childrenById[g.id]=[]),a.childrenById[g.id].push(w)})}),f.forEach(function(g){g.id,a.parentById[g.id]!==void 0&&a.parentById[g.id]}),a},rtn=function(i,a,f){const g=KZe(i,a,f);if(g===void 0||g==="root")return{x:0,y:0};const w=qx[g].offset;return{x:w.posX,y:w.posY}},itn=function(i,a,f,g,w,v){const b=rtn(a.sourceId,a.targetId,w),E=a.sections[0].startPoint,_=a.sections[0].endPoint,I=(a.sections[0].bendPoints?a.sections[0].bendPoints:[]).map(pt=>[pt.x+b.x,pt.y+b.y]),B=[[E.x+b.x,E.y+b.y],...I,[_.x+b.x,_.y+b.y]],{x:F,y:R}=W$t(a.edgeData),q=Cx().x(F).y(R).curve(Vg),X=i.insert("path").attr("d",q(B)).attr("class","path "+f.classes).attr("fill","none"),rt=i.insert("g").attr("class","edgeLabel"),at=xr(rt.node().appendChild(a.labelEl)),ut=at.node().firstChild.getBoundingClientRect();at.attr("width",ut.width),at.attr("height",ut.height),rt.attr("transform",`translate(${a.labels[0].x+b.x}, ${a.labels[0].y+b.y})`),ttn(X,f,g.type,g.arrowMarkerAbsolute,v)},fHt=(i,a)=>{i.forEach(f=>{f.children||(f.children=[]);const g=a.childrenById[f.id];g&&g.forEach(w=>{f.children.push(qx[w])}),fHt(f.children,a)})},stn=async function(i,a,f,g){var ht;g.db.clear(),qx={},Qw={},g.db.setGen("gen-2"),g.parser.parse(i);const w=xr("body").append("div").attr("style","height:400px").attr("id","cy");let v={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(Wt.info("Drawing flowchart using v3 renderer",uHt),g.db.getDirection()){case"BT":v.layoutOptions["elk.direction"]="UP";break;case"TB":v.layoutOptions["elk.direction"]="DOWN";break;case"LR":v.layoutOptions["elk.direction"]="RIGHT";break;case"RL":v.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:E,flowchart:_}=h0();let S;E==="sandbox"&&(S=xr("#i"+a));const I=xr(E==="sandbox"?S.nodes()[0].contentDocument.body:"body"),B=E==="sandbox"?S.nodes()[0].contentDocument:document,F=I.select(`[id="${a}"]`);r$t(F,["point","circle","cross"],g.type,a);const q=g.db.getVertices();let X;const rt=g.db.getSubGraphs();Wt.info("Subgraphs - ",rt);for(let bt=rt.length-1;bt>=0;bt--)X=rt[bt],g.db.addVertex(X.id,{text:X.title,type:X.labelType},"group",void 0,X.classes,X.dir);const at=F.insert("g").attr("class","subgraphs"),ut=ntn(g.db);v=await QZe(q,a,I,B,g,ut,v);const pt=F.insert("g").attr("class","edges edgePath"),yt=g.db.getEdges();v=ZZe(yt,g,v,F),Object.keys(qx).forEach(bt=>{const Z=qx[bt];Z.parent||v.children.push(Z),ut.childrenById[bt]!==void 0&&(Z.labels=[{text:Z.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:Z.labelData.width,height:Z.labelData.height}],delete Z.x,delete Z.y,delete Z.width,delete Z.height)}),fHt(v.children,ut),Wt.info("after layout",JSON.stringify(v,null,2));const gt=await uHt.layout(v);dHt(0,0,gt.children,F,at,g,0),Wt.info("after layout",gt),(ht=gt.edges)==null||ht.map(bt=>{itn(pt,bt,bt.edgeData,g,ut,a)}),g8({},F,_.diagramPadding,
|
|||
|
.subgraph-lvl-${f} {
|
|||
|
fill: ${i[`surface${f}`]};
|
|||
|
stroke: ${i[`surfacePeer${f}`]};
|
|||
|
}
|
|||
|
`;return a},ctn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:YRe,renderer:atn,parser:Jgt,styles:i=>`.label {
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
}
|
|||
|
.cluster-label text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
.cluster-label span {
|
|||
|
color: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.label text,span {
|
|||
|
fill: ${i.nodeTextColor||i.textColor};
|
|||
|
color: ${i.nodeTextColor||i.textColor};
|
|||
|
}
|
|||
|
|
|||
|
.node rect,
|
|||
|
.node circle,
|
|||
|
.node ellipse,
|
|||
|
.node polygon,
|
|||
|
.node path {
|
|||
|
fill: ${i.mainBkg};
|
|||
|
stroke: ${i.nodeBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.node .label {
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
.node.clickable {
|
|||
|
cursor: pointer;
|
|||
|
}
|
|||
|
|
|||
|
.arrowheadPath {
|
|||
|
fill: ${i.arrowheadColor};
|
|||
|
}
|
|||
|
|
|||
|
.edgePath .path {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
stroke-width: 2.0px;
|
|||
|
}
|
|||
|
|
|||
|
.flowchart-link {
|
|||
|
stroke: ${i.lineColor};
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
|
|||
|
.edgeLabel {
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
rect {
|
|||
|
opacity: 0.85;
|
|||
|
background-color: ${i.edgeLabelBackground};
|
|||
|
fill: ${i.edgeLabelBackground};
|
|||
|
}
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
|
|||
|
.cluster rect {
|
|||
|
fill: ${i.clusterBkg};
|
|||
|
stroke: ${i.clusterBorder};
|
|||
|
stroke-width: 1px;
|
|||
|
}
|
|||
|
|
|||
|
.cluster text {
|
|||
|
fill: ${i.titleColor};
|
|||
|
}
|
|||
|
|
|||
|
.cluster span {
|
|||
|
color: ${i.titleColor};
|
|||
|
}
|
|||
|
/* .cluster div {
|
|||
|
color: ${i.titleColor};
|
|||
|
} */
|
|||
|
|
|||
|
div.mermaidTooltip {
|
|||
|
position: absolute;
|
|||
|
text-align: center;
|
|||
|
max-width: 200px;
|
|||
|
padding: 2px;
|
|||
|
font-family: ${i.fontFamily};
|
|||
|
font-size: 12px;
|
|||
|
background: ${i.tertiaryColor};
|
|||
|
border: 1px solid ${i.border2};
|
|||
|
border-radius: 2px;
|
|||
|
pointer-events: none;
|
|||
|
z-index: 100;
|
|||
|
}
|
|||
|
|
|||
|
.flowchartTitleText {
|
|||
|
text-anchor: middle;
|
|||
|
font-size: 18px;
|
|||
|
fill: ${i.textColor};
|
|||
|
}
|
|||
|
.subgraph {
|
|||
|
stroke-width:2;
|
|||
|
rx:3;
|
|||
|
}
|
|||
|
// .subgraph-lvl-1 {
|
|||
|
// fill:#ccc;
|
|||
|
// // stroke:black;
|
|||
|
// }
|
|||
|
|
|||
|
.flowchart-label text {
|
|||
|
text-anchor: middle;
|
|||
|
}
|
|||
|
|
|||
|
${otn(i)}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var Zbt=function(){var i=function(F,R,q,X){for(q=q||{},X=F.length;X--;q[F[X]]=R);return q},a=[6,8,10,11,12,14,16,17,20,21],f=[1,9],g=[1,10],w=[1,11],v=[1,12],b=[1,13],E=[1,16],_=[1,17],S={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(R,q,X,rt,at,ut,pt){var yt=ut.length-1;switch(at){case 1:return ut[yt-1];case 2:this.$=[];break;case 3:ut[yt-1].push(ut[yt]),this.$=ut[yt-1];break;case 4:case 5:this.$=ut[yt];break;case 6:case 7:this.$=[];break;case 8:rt.getCommonDb().setDiagramTitle(ut[yt].substr(6)),this.$=ut[yt].substr(6);break;case 9:this.$=ut[yt].trim(),rt.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=ut[yt].trim(),rt.getCommonDb().setAccDescription(this.$);break;case 12:rt.addSection(ut[yt].substr(8)),this.$=ut[yt].substr(8);break;case 15:rt.addTask(ut[yt],0,""),this.$=ut[yt];break;case 16:rt.addEvent(ut[yt].substr(2)),this.$=ut[yt];break}},table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:f,12:g,14:w,16:v,17:b,18:14,19:15,20:E,21:_},i(a,[2,7],{1:[2,1]}),i(a,[2,3]),{9:18,11:f,12:g,14:w,16:v,17:b,18:14,19:15,20:E,21:_},i(a,[2,5]),i(a,[2,6]),i(a,[2,8]),{13:[1,19]},{15:[1,20]},i(a,[2,11]),i(a,[2,12]),i(a,[2,13]),i(a,[2,14]),i(a,[2,15]),i(a,[2,16]),i(a,[2,4]),i(a,[2,9]),i(a,[2,10])],defaultActions:{},parseError:function(R,q){if(q.recoverable)this.trace(R);else{var X=new Error(R);throw X.hash=q,X}},parse:function(R){var q=this,X=[0],rt=[],at=[null],ut=[],pt=this.table,yt="",mt=0,gt=0,ht=2,bt=1,Z=ut.slice.call(arguments,1),ft=Object.create(this.lexer),Y={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(Y.yy[Et]=this.yy[Et]);ft.setInput(R,Y.yy),Y.yy.lexer=ft,Y.yy.parser=this,typeof ft.yylloc>"u"&&(ft.yylloc={});var V=ft.yylloc;ut.push(V);var Nt=ft.options&&ft.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Dt(){var Ee;return Ee=rt.pop()||ft.lex()||bt,typeof Ee!="number"&&(Ee instanceof Array&&(rt=Ee,Ee=rt.pop()),Ee=q.symbols_[Ee]||Ee),Ee}for(var jt,Ct,Ft,_t,xt={},Gt,Be,Ot,vn;;){if(Ct=X[X.length-1],this.defaultActions[Ct]?Ft=this.defaultActions[Ct]:((jt===null||typeof jt>"u")&&(jt=Dt()),Ft=pt[Ct]&&pt[Ct][jt]),typeof Ft>"u"||!Ft.length||!Ft[0]){var Pe="";vn=[];for(Gt in pt[Ct])this.terminals_[Gt]&&Gt>ht&&vn.push("'"+this.terminals_[Gt]+"'");ft.showPosition?Pe="Parse error on line "+(mt+1)+`:
|
|||
|
`+ft.showPosition()+`
|
|||
|
Expecting `+vn.join(", ")+", got '"+(this.terminals_[jt]||jt)+"'":Pe="Parse error on line "+(mt+1)+": Unexpected "+(jt==bt?"end of input":"'"+(this.terminals_[jt]||jt)+"'"),this.parseError(Pe,{text:ft.match,token:this.terminals_[jt]||jt,line:ft.yylineno,loc:V,expected:vn})}if(Ft[0]instanceof Array&&Ft.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+jt);switch(Ft[0]){case 1:X.push(jt),at.push(ft.yytext),ut.push(ft.yylloc),X.push(Ft[1]),jt=null,gt=ft.yyleng,yt=ft.yytext,mt=ft.yylineno,V=ft.yylloc;break;case 2:if(Be=this.productions_[Ft[1]][1],xt.$=at[at.length-Be],xt._$={first_line:ut[ut.length-(Be||1)].first_line,last_line:ut[ut.length-1].last_line,first_column:ut[ut.length-(Be||1)].first_column,last_column:ut[ut.length-1].last_column},Nt&&(xt._$.range=[ut[ut.length-(Be||1)].range[0],ut[ut.length-1].range[1]]),_t=this.performAction.apply(xt,[yt,gt,mt,Y.yy,Ft[1],at,ut].concat(Z)),typeof _t<"u")return _t;Be&&(X=X.slice(0,-1*Be*2),at=at.slice(0,-1*Be),ut=ut.slice(0,-1*Be)),X.push(this.productions_[Ft[1]][0]),at.push(xt.$),ut.push(xt._$),Ot=pt[X[X.length-2]][X[X.length-1]],X.push(Ot);break;case 3:return!0}}return!0}},I=function(){var F={EOF:1,parseError:function(q,X){if(this.yy.parser)this.yy.parser.parseError(q,X);else throw new Error(q)},setInput:function(R,q){return this.yy=q||this.yy||{},this._input=R,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var R=this._input[0];this.yytext+=R,this.yyleng++,this.offset++,this.match+=R,this.matched+=R;var q=R.match(/(?:\r\n?|\n).*/g);return q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),R},unput:function(R){var q=R.length,X=R.split(/(?:\r\n?|\n)/g);this._input=R+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-q),this.offset-=q;var rt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),X.length-1&&(this.yylineno-=X.length-1);var at=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:X?(X.length===rt.length?this.yylloc.first_column:0)+rt[rt.length-X.length].length-X[0].length:this.yylloc.first_column-q},this.options.ranges&&(this.yylloc.range=[at[0],at[0]+this.yyleng-q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(R){this.unput(this.match.slice(R))},pastInput:function(){var R=this.matched.substr(0,this.matched.length-this.match.length);return(R.length>20?"...":"")+R.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var R=this.match;return R.length<20&&(R+=this._input.substr(0,20-R.length)),(R.substr(0,20)+(R.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var R=this.pastInput(),q=new Array(R.length+1).join("-");return R+this.upcomingInput()+`
|
|||
|
`+q+"^"},test_match:function(R,q){var X,rt,at;if(this.options.backtrack_lexer&&(at={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(at.yylloc.range=this.yylloc.range.slice(0))),rt=R[0].match(/(?:\r\n?|\n).*/g),rt&&(this.yylineno+=rt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:rt?rt[rt.length-1].length-rt[rt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+R[0].length},this.yytext+=R[0],this.match+=R[0],this.matches=R,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(R[0].length),this.matched+=R[0],X=this.performAction.call(this,this.yy,this,q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var ut in at)this[ut]=at[ut];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var R,q,X,rt;this._more||(this.yytext="",this.match="");for(var at=this._currentRules(),ut=0;ut<at.length;ut++)if(X=this._input.match(this.rules[at[ut]]),X&&(!q||X[0].length>q[0].length)){if(q=X,rt=ut,this.options.backtrack_lexer){if(R=this.test_match(X,at[ut]),R!==!1)return R;if(this._backtrack){q=!1;continue}else return!1}else if(!this.options.flex)break}return q?(R=this.test_match(q,at[rt]),R!==!1?R:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var q=this.next();return q||this.lex()},begin:function(q){this.conditionStack.push(q)},popState:function(){var q=this.conditionStack.length-1;return q>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(q){return q=this.conditionStack.length-1-Math.abs(q||0),q>=0?this.conditionStack[q]:"INITIAL"},pushState:function(q){this.begin(q)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(q,X,rt,at){switch(rt){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return F}();S.lexer=I;function B(){this.yy={}}return B.prototype=S,S.Parser=B,new B}();Zbt.parser=Zbt;const utn=Zbt;let _M="",gHt=0;const t2t=[],SX=[],SM=[],pHt=()=>WFt,bHt=function(){t2t.length=0,SX.length=0,_M="",SM.length=0,Wg()},wHt=function(i){_M=i,t2t.push(i)},mHt=function(){return t2t},vHt=function(){let i=EHt();const a=100;let f=0;for(;!i&&f<a;)i=EHt(),f++;return SX.push(...SM),SX},yHt=function(i,a,f){const g={id:gHt++,section:_M,type:_M,task:i,score:a||0,events:f?[f]:[]};SM.push(g)},xHt=function(i){SM.find(f=>f.id===gHt-1).events.push(i)},kHt=function(i){const a={section:_M,type:_M,description:i,task:i,classes:[]};SX.push(a)},EHt=function(){const i=function(f){return SM[f].processed};let a=!0;for(const[f,g]of SM.entries())i(f),a=a&&g.processed;return a},ltn=Object.freeze(Object.defineProperty({__proto__:null,addEvent:xHt,addSection:wHt,addTask:yHt,addTaskOrg:kHt,clear:bHt,default:{clear:bHt,getCommonDb:pHt,addSection:wHt,getSections:mHt,getTasks:vHt,addTask:yHt,addTaskOrg:kHt,addEvent:xHt},getCommonDb:pHt,getSections:mHt,getTasks:vHt},Symbol.toStringTag,{value:"Module"})),htn=12,AX=function(i,a){const f=i.append("rect");return f.attr("x",a.x),f.attr("y",a.y),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("width",a.width),f.attr("height",a.height),f.attr("rx",a.rx),f.attr("ry",a.ry),a.class!==void 0&&f.attr("class",a.class),f},ftn=function(i,a){const g=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),w=i.append("g");w.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),w.append("circle").attr("cx",a.cx+15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function v(_){const S=jL().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",S).attr("transform","translate("+a.cx+","+(a.cy+2)+")")}function b(_){const S=jL().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",S).attr("transform",
|
|||
|
.section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} path {
|
|||
|
fill: ${i["cScale"+f]};
|
|||
|
}
|
|||
|
.section-${f-1} text {
|
|||
|
fill: ${i["cScaleLabel"+f]};
|
|||
|
}
|
|||
|
.node-icon-${f-1} {
|
|||
|
font-size: 40px;
|
|||
|
color: ${i["cScaleLabel"+f]};
|
|||
|
}
|
|||
|
.section-edge-${f-1}{
|
|||
|
stroke: ${i["cScale"+f]};
|
|||
|
}
|
|||
|
.edge-depth-${f-1}{
|
|||
|
stroke-width: ${g};
|
|||
|
}
|
|||
|
.section-${f-1} line {
|
|||
|
stroke: ${i["cScaleInv"+f]} ;
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
|
|||
|
.lineWrapper line{
|
|||
|
stroke: ${i["cScaleLabel"+f]} ;
|
|||
|
}
|
|||
|
|
|||
|
.disabled, .disabled circle, .disabled text {
|
|||
|
fill: lightgray;
|
|||
|
}
|
|||
|
.disabled text {
|
|||
|
fill: #efefef;
|
|||
|
}
|
|||
|
`}return a},Stn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:ltn,renderer:Ctn,parser:utn,styles:i=>`
|
|||
|
.edge {
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
${_tn(i)}
|
|||
|
.section-root rect, .section-root path, .section-root circle {
|
|||
|
fill: ${i.git0};
|
|||
|
}
|
|||
|
.section-root text {
|
|||
|
fill: ${i.gitBranchLabel0};
|
|||
|
}
|
|||
|
.icon-container {
|
|||
|
height:100%;
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
align-items: center;
|
|||
|
}
|
|||
|
.edge {
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
.eventWrapper {
|
|||
|
filter: brightness(120%);
|
|||
|
}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var n2t=function(){var i=function(yt,mt,gt,ht){for(gt=gt||{},ht=yt.length;ht--;gt[yt[ht]]=mt);return gt},a=[1,4],f=[1,13],g=[1,12],w=[1,15],v=[1,16],b=[1,20],E=[1,19],_=[6,7,8],S=[1,26],I=[1,24],B=[1,25],F=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],X=[1,34],rt=[1,6,7,11,13,15,16,19,22],at={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(mt,gt,ht,bt,Z,ft,Y){var Et=ft.length-1;switch(Z){case 6:case 7:return bt;case 8:bt.getLogger().trace("Stop NL ");break;case 9:bt.getLogger().trace("Stop EOF ");break;case 11:bt.getLogger().trace("Stop NL2 ");break;case 12:bt.getLogger().trace("Stop EOF2 ");break;case 15:bt.getLogger().info("Node: ",ft[Et].id),bt.addNode(ft[Et-1].length,ft[Et].id,ft[Et].descr,ft[Et].type);break;case 16:bt.getLogger().trace("Icon: ",ft[Et]),bt.decorateNode({icon:ft[Et]});break;case 17:case 21:bt.decorateNode({class:ft[Et]});break;case 18:bt.getLogger().trace("SPACELIST");break;case 19:bt.getLogger().trace("Node: ",ft[Et].id),bt.addNode(0,ft[Et].id,ft[Et].descr,ft[Et].type);break;case 20:bt.decorateNode({icon:ft[Et]});break;case 25:bt.getLogger().trace("node found ..",ft[Et-2]),this.$={id:ft[Et-1],descr:ft[Et-1],type:bt.getType(ft[Et-2],ft[Et])};break;case 26:this.$={id:ft[Et],descr:ft[Et],type:bt.nodeType.DEFAULT};break;case 27:bt.getLogger().trace("node found ..",ft[Et-3]),this.$={id:ft[Et-3],descr:ft[Et-1],type:bt.getType(ft[Et-2],ft[Et])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:a},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:a},{6:f,7:[1,10],9:9,12:11,13:g,14:14,15:w,16:v,17:17,18:18,19:b,22:E},i(_,[2,3]),{1:[2,2]},i(_,[2,4]),i(_,[2,5]),{1:[2,6],6:f,12:21,13:g,14:14,15:w,16:v,17:17,18:18,19:b,22:E},{6:f,9:22,12:11,13:g,14:14,15:w,16:v,17:17,18:18,19:b,22:E},{6:S,7:I,10:23,11:B},i(F,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:b,22:E}),i(F,[2,18]),i(F,[2,19]),i(F,[2,20]),i(F,[2,21]),i(F,[2,23]),i(F,[2,24]),i(F,[2,26],{19:[1,30]}),{20:[1,31]},{6:S,7:I,10:32,11:B},{1:[2,7],6:f,12:21,13:g,14:14,15:w,16:v,17:17,18:18,19:b,22:E},i(R,[2,14],{7:q,11:X}),i(rt,[2,8]),i(rt,[2,9]),i(rt,[2,10]),i(F,[2,15]),i(F,[2,16]),i(F,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:q,11:X}),i(rt,[2,11]),i(rt,[2,12]),{21:[1,37]},i(F,[2,25]),i(F,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(mt,gt){if(gt.recoverable)this.trace(mt);else{var ht=new Error(mt);throw ht.hash=gt,ht}},parse:function(mt){var gt=this,ht=[0],bt=[],Z=[null],ft=[],Y=this.table,Et="",V=0,Nt=0,Dt=2,jt=1,Ct=ft.slice.call(arguments,1),Ft=Object.create(this.lexer),_t={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(_t.yy[xt]=this.yy[xt]);Ft.setInput(mt,_t.yy),_t.yy.lexer=Ft,_t.yy.parser=this,typeof Ft.yylloc>"u"&&(Ft.yylloc={});var Gt=Ft.yylloc;ft.push(Gt);var Be=Ft.options&&Ft.options.ranges;typeof _t.yy.parseError=="function"?this.parseError=_t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var Dn;return Dn=bt.pop()||Ft.lex()||jt,typeof Dn!="number"&&(Dn instanceof Array&&(bt=Dn,Dn=bt.pop()),Dn=gt.symbols_[Dn]||Dn),Dn}for(var vn,Pe,Ee,nn,sn={},me,Fe,Qt,Ae;;){if(Pe=ht[ht.length-1],this.defaultActions[Pe]?Ee=this.defaultActions[Pe]:((vn===null||typeof vn>"u")&&(vn=Ot()),Ee=Y[Pe]&&Y[Pe][vn]),typeof Ee>"u"||!Ee.length||!Ee[0]){var Se="";Ae=[];for(me in Y[Pe])this.terminals_[me]&&me>Dt&&Ae.push("'"+this.terminals_[me]+"'");Ft.showPosition?Se="Parse error on line "+(V+1)+`:
|
|||
|
`+Ft.showPosition()+`
|
|||
|
Expecting `+Ae.join(", ")+", got '"+(this.terminals_[vn]||vn)+"'":Se="Parse error on line "+(V+1)+": Unexpected "+(vn==jt?"end of input":"'"+(this.terminals_[vn]||vn)+"'"),this.parseError(Se,{text:Ft.match,token:this.terminals_[vn]||vn,line:Ft.yylineno,loc:Gt,expected:Ae})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pe+", token: "+vn);switch(Ee[0]){case 1:ht.push(vn),Z.push(Ft.yytext),ft.push(Ft.yylloc),ht.push(Ee[1]),vn=null,Nt=Ft.yyleng,Et=Ft.yytext,V=Ft.yylineno,Gt=Ft.yylloc;break;case 2:if(Fe=this.productions_[Ee[1]][1],sn.$=Z[Z.length-Fe],sn._$={first_line:ft[ft.length-(Fe||1)].first_line,last_line:ft[ft.length-1].last_line,first_column:ft[ft.length-(Fe||1)].first_column,last_column:ft[ft.length-1].last_column},Be&&(sn._$.range=[ft[ft.length-(Fe||1)].range[0],ft[ft.length-1].range[1]]),nn=this.performAction.apply(sn,[Et,Nt,V,_t.yy,Ee[1],Z,ft].concat(Ct)),typeof nn<"u")return nn;Fe&&(ht=ht.slice(0,-1*Fe*2),Z=Z.slice(0,-1*Fe),ft=ft.slice(0,-1*Fe)),ht.push(this.productions_[Ee[1]][0]),Z.push(sn.$),ft.push(sn._$),Qt=Y[ht[ht.length-2]][ht[ht.length-1]],ht.push(Qt);break;case 3:return!0}}return!0}},ut=function(){var yt={EOF:1,parseError:function(gt,ht){if(this.yy.parser)this.yy.parser.parseError(gt,ht);else throw new Error(gt)},setInput:function(mt,gt){return this.yy=gt||this.yy||{},this._input=mt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var mt=this._input[0];this.yytext+=mt,this.yyleng++,this.offset++,this.match+=mt,this.matched+=mt;var gt=mt.match(/(?:\r\n?|\n).*/g);return gt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),mt},unput:function(mt){var gt=mt.length,ht=mt.split(/(?:\r\n?|\n)/g);this._input=mt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-gt),this.offset-=gt;var bt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ht.length-1&&(this.yylineno-=ht.length-1);var Z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ht?(ht.length===bt.length?this.yylloc.first_column:0)+bt[bt.length-ht.length].length-ht[0].length:this.yylloc.first_column-gt},this.options.ranges&&(this.yylloc.range=[Z[0],Z[0]+this.yyleng-gt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(mt){this.unput(this.match.slice(mt))},pastInput:function(){var mt=this.matched.substr(0,this.matched.length-this.match.length);return(mt.length>20?"...":"")+mt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var mt=this.match;return mt.length<20&&(mt+=this._input.substr(0,20-mt.length)),(mt.substr(0,20)+(mt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var mt=this.pastInput(),gt=new Array(mt.length+1).join("-");return mt+this.upcomingInput()+`
|
|||
|
`+gt+"^"},test_match:function(mt,gt){var ht,bt,Z;if(this.options.backtrack_lexer&&(Z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Z.yylloc.range=this.yylloc.range.slice(0))),bt=mt[0].match(/(?:\r\n?|\n).*/g),bt&&(this.yylineno+=bt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:bt?bt[bt.length-1].length-bt[bt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+mt[0].length},this.yytext+=mt[0],this.match+=mt[0],this.matches=mt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(mt[0].length),this.matched+=mt[0],ht=this.performAction.call(this,this.yy,this,gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var ft in Z)this[ft]=Z[ft];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var mt,gt,ht,bt;this._more||(this.yytext="",this.match="");for(var Z=this._currentRules(),ft=0;ft<Z.length;ft++)if(ht=this._input.match(this.rules[Z[ft]]),ht&&(!gt||ht[0].length>gt[0].length)){if(gt=ht,bt=ft,this.options.backtrack_lexer){if(mt=this.test_match(ht,Z[ft]),mt!==!1)return mt;if(this._backtrack){gt=!1;continue}else return!1}else if(!this.options.flex)break}return gt?(mt=this.test_match(gt,Z[bt]),mt!==!1?mt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var gt=this.next();return gt||this.lex()},begin:function(gt){this.conditionStack.push(gt)},popState:function(){var gt=this.conditionStack.length-1;return gt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(gt){return gt=this.conditionStack.length-1-Math.abs(gt||0),gt>=0?this.conditionStack[gt]:"INITIAL"},pushState:function(gt){this.begin(gt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(gt,ht,bt,Z){switch(bt){case 0:return gt.getLogger().trace("Found comment",ht.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:gt.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return gt.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:gt.getLogger().trace("end icon"),this.popState();break;case 10:return gt.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return gt.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return gt.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return gt.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:gt.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return gt.getLogger().trace("description:",ht.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),gt.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),gt.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),gt.getLogger().trace("node end ...",ht.yytext),"NODE_DEND";case 30:return this.popState(),gt.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),gt.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),gt.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),gt.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),gt.getLogger().trace("node end (("),"NODE_DEND";case 35:return gt.getLogger().trace("Long description:",ht.yytext),20;case 36:return gt.getLogger().trace("Long description:",ht.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return yt}();at.lexer=ut;function pt(){this.yy={}}return pt.prototype=at,at.Parser=pt,new pt}();n2t.parser=n2t;const Atn=n2t,xB=i=>Ed(i,Re());let Jw=[],LHt=0,r2t={};const Ltn=()=>{Jw=[],LHt=0,r2t={}},Mtn=function(i){for(let a=Jw.length-1;a>=0;a--)if(Jw[a].level<i)return Jw[a];return null},Dtn=()=>Jw.length>0?Jw[0]:null,Itn=(i,a,f,g)=>{Wt.info("addNode",i,a,f,g);const w=Re(),v={id:LHt++,nodeId:xB(a),level:i,descr:xB(f),type:g,children:[],width:Re().mindmap.maxNodeWidth};switch(v.type){case ul.ROUNDED_RECT:v.padding=2*w.mindmap.padding;break;case ul.REC
|
|||
|
a${b},${b} 1 0,1 ${f*.4},${-1*f*.1}
|
|||
|
a${v},${v} 1 0,1 ${f*.35},${1*f*.2}
|
|||
|
|
|||
|
a${w},${w} 1 0,1 ${f*.15},${1*g*.35}
|
|||
|
a${E},${E} 1 0,1 ${-1*f*.15},${1*g*.65}
|
|||
|
|
|||
|
a${v},${w} 1 0,1 ${-1*f*.25},${f*.15}
|
|||
|
a${b},${b} 1 0,1 ${-1*f*.5},0
|
|||
|
a${w},${w} 1 0,1 ${-1*f*.25},${-1*f*.15}
|
|||
|
|
|||
|
a${w},${w} 1 0,1 ${-1*f*.1},${-1*g*.35}
|
|||
|
a${E},${E} 1 0,1 ${f*.1},${-1*g*.65}
|
|||
|
|
|||
|
H0 V0 Z`)},qtn=function(i,a){const f=a.width,g=a.height,w=.15*f;i.append("path").attr("id","node-"+a.id).attr("class","node-bkg node-"+j9(a.type)).attr("d",`M0 0 a${w},${w} 1 0,0 ${f*.25},${-1*g*.1}
|
|||
|
a${w},${w} 1 0,0 ${f*.25},0
|
|||
|
a${w},${w} 1 0,0 ${f*.25},0
|
|||
|
a${w},${w} 1 0,0 ${f*.25},${1*g*.1}
|
|||
|
|
|||
|
a${w},${w} 1 0,0 ${f*.15},${1*g*.33}
|
|||
|
a${w*.8},${w*.8} 1 0,0 0,${1*g*.34}
|
|||
|
a${w},${w} 1 0,0 ${-1*f*.15},${1*g*.33}
|
|||
|
|
|||
|
a${w},${w} 1 0,0 ${-1*f*.25},${g*.15}
|
|||
|
a${w},${w} 1 0,0 ${-1*f*.25},0
|
|||
|
a${w},${w} 1 0,0 ${-1*f*.25},0
|
|||
|
a${w},${w} 1 0,0 ${-1*f*.25},${-1*g*.15}
|
|||
|
|
|||
|
a${w},${w} 1 0,0 ${-1*f*.1},${-1*g*.33}
|
|||
|
a${w*.8},${w*.8} 1 0,0 0,${-1*g*.34}
|
|||
|
a${w},${w} 1 0,0 ${f*.1},${-1*g*.33}
|
|||
|
|
|||
|
H0 V0 Z`)},Htn=function(i,a){i.append("circle").attr("id","node-"+a.id).attr("class","node-bkg node-"+j9(a.type)).attr("r",a.width/2)};function Vtn(i,a,f,g,w){return i.insert("polygon",":first-child").attr("points",g.map(function(v){return v.x+","+v.y}).join(" ")).attr("transform","translate("+(w.width-a)/2+", "+f+")")}const Utn=function(i,a){const f=a.height,w=f/4,v=a.width-a.padding+2*w,b=[{x:w,y:0},{x:v-w,y:0},{x:v,y:-f/2},{x:v-w,y:-f},{x:w,y:-f},{x:0,y:-f/2}];Vtn(i,v,f,b,a)},Gtn=function(i,a){i.append("rect").attr("id","node-"+a.id).attr("class","node-bkg node-"+j9(a.type)).attr("height",a.height).attr("rx",a.padding).attr("ry",a.padding).attr("width",a.width)},OHt={drawNode:function(i,a,f,g){const w=g.htmlLabels,v=f%(IHt-1),b=i.append("g");a.section=v;let E="section-"+v;v<0&&(E+=" section-root"),b.attr("class",(a.class?a.class+" ":"")+"mindmap-node "+E);const _=b.append("g"),S=b.append("g"),I=a.descr.replace(/(<br\/*>)/g,`
|
|||
|
`);XY(S,I,{useHtmlLabels:w,width:a.width,classes:"mindmap-node-label"}),w||S.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const B=S.node().getBBox(),F=g.fontSize.replace?g.fontSize.replace("px",""):g.fontSize;if(a.height=B.height+F*1.1*.5+a.padding,a.width=B.width+2*a.padding,a.icon)if(a.type===ul.CIRCLE)a.height+=50,a.width+=50,b.append("foreignObject").attr("height","50px").attr("width",a.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+v+" "+a.icon),S.attr("transform","translate("+a.width/2+", "+(a.height/2-1.5*a.padding)+")");else{a.width+=50;const R=a.height;a.height=Math.max(R,60);const q=Math.abs(a.height-R);b.append("foreignObject").attr("width","60px").attr("height",a.height).attr("style","text-align: center;margin-top:"+q/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+v+" "+a.icon),S.attr("transform","translate("+(25+a.width/2)+", "+(q/2+a.padding/2)+")")}else if(w){const R=(a.width-B.width)/2,q=(a.height-B.height)/2;S.attr("transform","translate("+R+", "+q+")")}else{const R=a.width/2,q=a.padding/2;S.attr("transform","translate("+R+", "+q+")")}switch(a.type){case ul.DEFAULT:jtn(_,a,v);break;case ul.ROUNDED_RECT:Gtn(_,a);break;case ul.RECT:$tn(_,a);break;case ul.CIRCLE:_.attr("transform","translate("+a.width/2+", "+ +a.height/2+")"),Htn(_,a);break;case ul.CLOUD:ztn(_,a);break;case ul.BANG:qtn(_,a);break;case ul.HEXAGON:Utn(_,a);break}return MHt(a.id,b),a.height},positionNode:function(i){const a=i2t(i.id),f=i.x||0,g=i.y||0;a.attr("transform","translate("+f+","+g+")")},drawEdge:function(a,f,g,w,v){const b=v%(IHt-1),E=g.x+g.width/2,_=g.y+g.height/2,S=f.x+f.width/2,I=f.y+f.height/2,B=S>E?E+Math.abs(E-S)/2:E-Math.abs(E-S)/2,F=I>_?_+Math.abs(_-I)/2:_-Math.abs(_-I)/2,R=S>E?Math.abs(E-B)/2+E:-Math.abs(E-B)/2+E,q=I>_?Math.abs(_-F)/2+_:-Math.abs(_-F)/2+_;a.append("path").attr("d",g.direction==="TB"||g.direction==="BT"?`M${E},${_} Q${E},${q} ${B},${F} T${S},${I}`:`M${E},${_} Q${R},${_} ${B},${F} T${S},${I}`).attr("class","edge section-edge-"+b+" edge-depth-"+w)}};var PHt={exports:{}};(function(i,a){(function(f,g){i.exports=g()})(X0,function(){function f(y){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},f(y)}function g(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function w(y,p){for(var x=0;x<p.length;x++){var C=p[x];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(y,C.key,C)}}function v(y,p,x){return p&&w(y.prototype,p),x&&w(y,x),Object.defineProperty(y,"prototype",{writable:!1}),y}function b(y,p,x){return p in y?Object.defineProperty(y,p,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[p]=x,y}function E(y,p){return _(y)||S(y,p)||I(y,p)||F()}function _(y){if(Array.isArray(y))return y}function S(y,p){var x=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(x!=null){var C=[],L=!0,O=!1,P,$;try{for(x=x.call(y);!(L=(P=x.next()).done)&&(C.push(P.value),!(p&&C.length===p));L=!0);}catch(H){O=!0,$=H}finally{try{!L&&x.return!=null&&x.return()}finally{if(O)throw $}}return C}}function I(y,p){if(y){if(typeof y=="string")return B(y,p);var x=Object.prototype.toString.call(y).slice(8,-1);if(x==="Object"&&y.constructor&&(x=y.constructor.name),x==="Map"||x==="Set")return Array.from(y);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return B(y,p)}}function B(y,p){(p==null||p>y.length)&&(p=y.length);for(var x=0,C=new Array(p);x<p;x++)C[x]=y[x];return C}function F(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=typeof window>"u"?null:window,q=R?R.navigator:null;R&&R.document;var X=f(""),rt=f({}),at=f(function(){}),ut=typeof HTMLElement>"u"?"undefined":f(HTMLElement),pt=function(p){return p&&p.instanceString&&mt(p.instanceString)?p.instanceString():null},yt=function(p){return p!=null&&f(p)==X},mt=function(p){return p!=null&&f(p)===at},gt=function(p){return!Et(p)&&(Array.isArray?Array.isArray(p):p!=null&&p instanceof Array)},ht=function(p){return p!=null&&f(p)===rt&&!gt(p)&&p.constructor===Object},bt=function(p){return p!=null&&f(p)===rt},Z=function(p){return p!=null&&f(p)===f(1)&&!isNaN(p)},ft=function(p){return Z(p)&&Math.floor(p)===p},Y=function(p){if(ut!=="undefined")return p!=null&&p instanceof HTMLElement},Et=function(p){return V(p)||Nt(p)},V=function(p){return pt(p)==="collection"&&p._private.single},Nt=function(p){return pt(p)==="collection"&&!p._private.single},Dt=function(p){return pt(p)==="core"},jt=function(p){return pt(p)==="stylesheet"},Ct=function(p){return pt(p)==="event"},Ft=function(p){return p==null?!0:!!(p===""||p.match(/^\s+$/))},_t=function(p){return typeof HTMLElement>"u"?!1:p instanceof HTMLElement},xt=function(p){return ht(p)&&Z(p.x1)&&Z(p.x2)&&Z(p.y1)&&Z(p.y2)},Gt=function(p){return bt(p)&&mt(p.then)},Be=function(){return q&&q.userAgent.match(/msie|trident|edge/i)},Ot=function(p,x){x||(x=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var O=[],P=0;P<arguments.length;P++)O.push(arguments[P]);return O.join("$")});var C=function L(){var O=this,P=arguments,$,H=x.apply(O,P),z=L.cache;return($=z[H])||($=z[H]=p.apply(O,P)),$};return C.cache={},C},vn=Ot(function(y){return y.replace(/([A-Z])/g,function(p){return"-"+p.toLowerCase()})}),Pe=Ot(function(y){return y.replace(/(-\w)/g,function(p){return p[1].toUpperCase()})}),Ee=Ot(function(y,p){return y+p[0].toUpperCase()+p.substring(1)},function(y,p){return y+"$"+p}),nn=function(p){return Ft(p)?p:p.charAt(0).toUpperCase()+p.substring(1)},sn="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",me="rgb[a]?\\(("+sn+"[%]?)\\s*,\\s*("+sn+"[%]?)\\s*,\\s*("+sn+"[%]?)(?:\\s*,\\s*("+sn+"))?\\)",Fe="rgb[a]?\\((?:"+sn+"[%]?)\\s*,\\s*(?:"+sn+"[%]?)\\s*,\\s*(?:"+sn+"[%]?)(?:\\s*,\\s*(?:"+sn+"))?\\)",Qt="hsl[a]?\\(("+sn+")\\s*,\\s*("+sn+"[%])\\s*,\\s*("+sn+"[%])(?:\\s*,\\s*("+sn+"))?\\)",Ae="hsl[a]?\\((?:"+sn+")\\s*,\\s*(?:"+sn+"[%])\\s*,\\s*(?:"+sn+"[%])(?:\\s*,\\s*(?:"+sn+"))?\\)",Se="\\#[0-9a-fA-F]{3}",Dn="\\#[0-9a-fA-F]{6}",oe=function(p,x){return p<x?-1:p>x?1:0},Pr=function(p,x){return-1*oe(p,x)},we=Object.assign!=null?Object.assign.bind(Object):function(y){for(var p=arguments,x=1;x<p.length;x++){var C=p[x];if(C!=null)for(var L=Object.keys(C),O=0;O<L.length;O++){var P=L[O];y[P]=C[P]}}return y},Ri=function(p){if(!(!(p.length===4||p.length===7)||p[0]!=="#")){var x=p.length===4,C,L,O,P=16;return x?(C=parseInt(p[1]+p[1],P),L=parseInt(p[2]+p[2],P),O=parseInt(p[3]+p[3],P)):(C=parseInt(p[1]+p[2],P),L=parseInt(p[3]+p[4],P),O=parseInt(p[5]+p[6],P)),[C,L,O]}},yi=function(p){var x,C,L,O,P,$,H,z;function G(dt,vt,Mt){return Mt<0&&(Mt+=1),Mt>1&&(Mt-=1),Mt<1/6?dt+(vt-dt)*6*Mt:Mt<1/2?vt:Mt<2/3?dt+(vt-dt)*(2/3-Mt)*6:dt}var Q=new RegExp("^"+Qt+"$").exec(p);if(Q){if(C=parseInt(Q[1]),C<0?C=(360- -1*C%360)%360:C>360&&(C=C%360),C/=360,L=parseFloat(Q[2]),L<0||L>100||(L=L/100,O=parseFloat(Q[3]),O<0||O>100)||(O=O/100,P=Q[4],P!==void 0&&(P=parseFloat(P),P<0||P>1)))return;if(L===0)$=H=z=Math.round(O*255);else{var it=O<.5?O*(1+L):O+L-O*L,lt=2*O-it;$=Math.round(255*G(lt,it,C+1/3)),H=Math.round(255*G(lt,it,C)),z=Math.round(255*G(lt,it,C-1/3))}x=[$,H,z,P]}return x},da=function(p){var x,C=new RegExp("^"+me+"$").exec(p);if(C){x=[];for(var L=[],O=1;O<=3;O++){var P=C[O];if(P[P.length-1]==="%"&&(L[O]=!0),P=parseFloat(P),L[O]&&(P=P/100*255),P<0||P>255)return;x.push(Math.floor(P))}var $=L[1]||L[2]||L[3],H=L[1]&&L[2]&&L[3];if($&&!H)return;var z=C[4];if(z!==void 0){if(z=parseFloat(z),z<0||z>1)return;x.push(z)}}return x},Ss=function(p){return fr[p.toLowerCase()]},Ra=functio
|
|||
|
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
|
|||
|
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
|
|||
|
Licensed under The MIT License (http://opensource.org/licenses/MIT)
|
|||
|
*/var ZB=0,tR=1,eR=2,nm=function y(p){if(!(this instanceof y))return new y(p);this.id="Thenable/1.0.7",this.state=ZB,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof p=="function"&&p.call(this,this.fulfill.bind(this),this.reject.bind(this))};nm.prototype={fulfill:function(p){return nR(this,tR,"fulfillValue",p)},reject:function(p){return nR(this,eR,"rejectReason",p)},then:function(p,x){var C=this,L=new nm;return C.onFulfilled.push(sR(p,L,"fulfill")),C.onRejected.push(sR(x,L,"reject")),rR(C),L.proxy}};var nR=function(p,x,C,L){return p.state===ZB&&(p.state=x,p[C]=L,rR(p)),p},rR=function(p){p.state===tR?iR(p,"onFulfilled",p.fulfillValue):p.state===eR&&iR(p,"onRejected",p.rejectReason)},iR=function(p,x,C){if(p[x].length!==0){var L=p[x];p[x]=[];var O=function(){for(var $=0;$<L.length;$++)L[$](C)};typeof setImmediate=="function"?setImmediate(O):setTimeout(O,0)}},sR=function(p,x,C){return function(L){if(typeof p!="function")x[C].call(x,L);else{var O;try{O=p(L)}catch(P){x.reject(P);return}fJ(x,O)}}},fJ=function y(p,x){if(p===x||p.proxy===x){p.reject(new TypeError("cannot resolve promise with itself"));return}var C;if(f(x)==="object"&&x!==null||typeof x=="function")try{C=x.then}catch(O){p.reject(O);return}if(typeof C=="function"){var L=!1;try{C.call(x,function(O){L||(L=!0,O===x?p.reject(new TypeError("circular thenable chain")):y(p,O))},function(O){L||(L=!0,p.reject(O))})}catch(O){L||p.reject(O)}return}p.fulfill(x)};nm.all=function(y){return new nm(function(p,x){for(var C=new Array(y.length),L=0,O=function(H,z){C[H]=z,L++,L===y.length&&p(C)},P=0;P<y.length;P++)(function($){var H=y[$],z=H!=null&&H.then!=null;if(z)H.then(function(Q){O($,Q)},function(Q){x(Q)});else{var G=H;O($,G)}})(P)})},nm.resolve=function(y){return new nm(function(p,x){p(y)})},nm.reject=function(y){return new nm(function(p,x){x(y)})};var Jx=typeof Promise<"u"?Promise:nm,zM=function(p,x,C){var L=Dt(p),O=!L,P=this._private=we({duration:1e3},x,C);if(P.target=p,P.style=P.style||P.css,P.started=!1,P.playing=!1,P.hooked=!1,P.applying=!1,P.progress=0,P.completes=[],P.frames=[],P.complete&&mt(P.complete)&&P.completes.push(P.complete),O){var $=p.position();P.startPosition=P.startPosition||{x:$.x,y:$.y},P.startStyle=P.startStyle||p.cy().style().getAnimationStartStyle(p,P.style)}if(L){var H=p.pan();P.startPan={x:H.x,y:H.y},P.startZoom=p.zoom()}this.length=1,this[0]=this},m4=zM.prototype;we(m4,{instanceString:function(){return"animation"},hook:function(){var p=this._private;if(!p.hooked){var x,C=p.target._private.animation;p.queue?x=C.queue:x=C.current,x.push(this),Et(p.target)&&p.target.cy().addToAnimationPool(p.target),p.hooked=!0}return this},play:function(){var p=this._private;return p.progress===1&&(p.progress=0),p.playing=!0,p.started=!1,p.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var p=this._private;return p.applying=!0,p.started=!1,p.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var p=this._private;return p.playing=!1,p.started=!1,this},stop:function(){var p=this._private;return p.playing=!1,p.started=!1,p.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(p){var x=this._private;return p===void 0?x.progress*x.duration:this.progress(p/x.duration)},progress:function(p){var x=this._private,C=x.playing;return p===void 0?x.progress:(C&&this.pause(),x.progress=p,x.started=!1,C&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var p=this._private,x=p.playing;x&&this.pause(),p.progress=1-p.progress,p.started=!1;var C=function(z,G){var Q=p[z];Q!=null&&(p[z]=p[G],p[G]=Q)};if(C("zoom","startZoom"),C("pan","startPan"),C("position","startPosition"),p.style)for(var L=0;L<p.style.length;L++){var O=p.style[L],P=O.name,$=p.startStyle[P];p.startStyle[P]=O,p.style[L]=$}return x&&this.play(),this},promise:function(p){var x=this._private,C;switch(p){case"frame":C=x.frames;break;default:c
|
|||
|
Event object based on jQuery events, MIT license
|
|||
|
|
|||
|
https://jquery.org/license/
|
|||
|
https://tldrlegal.com/license/mit-license
|
|||
|
https://github.com/jquery/jquery/blob/master/src/event.js
|
|||
|
*/var FR=function(p,x){this.recycle(p,x)};function x4(){return!1}function k4(){return!0}FR.prototype={instanceString:function(){return"event"},recycle:function(p,x){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=x4,p!=null&&p.preventDefault?(this.type=p.type,this.isDefaultPrevented=p.defaultPrevented?k4:x4):p!=null&&p.type?x=p:this.type=p,x!=null&&(this.originalEvent=x.originalEvent,this.type=x.type!=null?x.type:this.type,this.cy=x.cy,this.target=x.target,this.position=x.position,this.renderedPosition=x.renderedPosition,this.namespace=x.namespace,this.layout=x.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var C=this.position,L=this.cy.zoom(),O=this.cy.pan();this.renderedPosition={x:C.x*L+O.x,y:C.y*L+O.y}}this.timeStamp=p&&p.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=k4;var p=this.originalEvent;p&&p.preventDefault&&p.preventDefault()},stopPropagation:function(){this.isPropagationStopped=k4;var p=this.originalEvent;p&&p.stopPropagation&&p.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=k4,this.stopPropagation()},isDefaultPrevented:x4,isPropagationStopped:x4,isImmediatePropagationStopped:x4};var BR=/^([^.]+)(\.(?:[^.]+))?$/,RR=".*",jR={qualifierCompare:function(p,x){return p===x},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(p){return p},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},$R=Object.keys(jR),Htt={};function aC(){for(var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Htt,p=arguments.length>1?arguments[1]:void 0,x=0;x<$R.length;x++){var C=$R[x];this[C]=y[C]||jR[C]}this.context=p||this.context,this.listeners=[],this.emitting=0}var dy=aC.prototype,zR=function(p,x,C,L,O,P,$){mt(L)&&(O=L,L=null),$&&(P==null?P=$:P=we({},P,$));for(var H=gt(C)?C:C.split(/\s+/),z=0;z<H.length;z++){var G=H[z];if(!Ft(G)){var Q=G.match(BR);if(Q){var it=Q[1],lt=Q[2]?Q[2]:null,dt=x(p,G,it,lt,L,O,P);if(dt===!1)break}}}},V8=function(p,x){return p.addEventFields(p.context,x),new FR(x.type,x)},Vtt=function(p,x,C){if(Ct(C)){x(p,C);return}else if(ht(C)){x(p,V8(p,C));return}for(var L=gt(C)?C:C.split(/\s+/),O=0;O<L.length;O++){var P=L[O];if(!Ft(P)){var $=P.match(BR);if($){var H=$[1],z=$[2]?$[2]:null,G=V8(p,{type:H,namespace:z,target:p.context});x(p,G)}}}};dy.on=dy.addListener=function(y,p,x,C,L){return zR(this,function(O,P,$,H,z,G,Q){mt(G)&&O.listeners.push({event:P,callback:G,type:$,namespace:H,qualifier:z,conf:Q})},y,p,x,C,L),this},dy.one=function(y,p,x,C){return this.on(y,p,x,C,{one:!0})},dy.removeListener=dy.off=function(y,p,x,C){var L=this;this.emitting!==0&&(this.listeners=NX(this.listeners));for(var O=this.listeners,P=function(z){var G=O[z];zR(L,function(Q,it,lt,dt,vt,Mt){if((G.type===lt||y==="*")&&(!dt&&G.namespace!==".*"||G.namespace===dt)&&(!vt||Q.qualifierCompare(G.qualifier,vt))&&(!Mt||G.callback===Mt))return O.splice(z,1),!1},y,p,x,C)},$=O.length-1;$>=0;$--)P($);return this},dy.removeAllListeners=function(){return this.removeListener("*")},dy.emit=dy.trigger=function(y,p,x){var C=this.listeners,L=C.length;return this.emitting++,gt(p)||(p=[p]),Vtt(this,function(O,P){x!=null&&(C=[{event:P.event,type:P.type,namespace:P.namespace,callback:x}],L=C.length);for(var $=function(G){var Q=C[G];if(Q.type===P.type&&(!Q.namespace||Q.namespace===P.namespace||Q.namespace===RR)&&O.eventMatches(O.context,Q,P)){var it=[P];p!=null&&TB(it,p),O.beforeEmit(O.context,Q,P),Q.conf&&Q.conf.one&&(O.listeners=O.listeners.filter(function(vt){return vt!==Q}));var lt=O.callbackContext(O.context,Q,P),dt=Q.callback.apply(lt,it);O.afterEmit(O.context,Q,P),dt===!1&&(P.stopPropagation(),P.preventDefault())}},H=0;H<L;H++)$(H);O.bubble(O.context)&&!P.isPropagationStopped()&&O.parent(O.context).emit(P,p)},y),this.emitting--,this};var Utt={qualifierCompare:function(p,x){return p==null||x==null?p==null&&x==null:p.sameText(x)},eventMatches:function(p,x,C){var L=x.qualifier;return L!=null?p!==C.target&&V(C.target)&&
|
|||
|
`),Q=y.pstyle("text-max-width").pfValue,it=y.pstyle("text-overflow-wrap").value,lt=it==="anywhere",dt=[],vt=/[\s\u200b]+/,Mt=lt?"":" ",kt=0;kt<G.length;kt++){var It=G[kt],Pt=this.calculateLabelDimensions(y,It),qt=Pt.width;if(lt){var ce=It.split("").join(z);It=ce}if(qt>Q){for(var ee=It.split(vt),Ut="",ue=0;ue<ee.length;ue++){var Yt=ee[ue],ye=Ut.length===0?Yt:Ut+Mt+Yt,xe=this.calculateLabelDimensions(y,ye),de=xe.width;de<=Q?Ut+=Yt+Mt:(Ut&&dt.push(Ut),Ut=Yt+Mt)}Ut.match(/^[\s\u200b]+$/)||dt.push(Ut)}else dt.push(It)}P("labelWrapCachedLines",dt),L=P("labelWrapCachedText",dt.join(`
|
|||
|
`)),P("labelWrapKey",H)}else if($==="ellipsis"){var ze=y.pstyle("text-max-width").pfValue,ke="",xn="…",tn=!1;if(this.calculateLabelDimensions(y,L).width<ze)return L;for(var an=0;an<L.length;an++){var Sn=this.calculateLabelDimensions(y,ke+L[an]+xn).width;if(Sn>ze)break;ke+=L[an],an===L.length-1&&(tn=!0)}return tn||(ke+=xn),ke}return L},I2.getLabelJustification=function(y){var p=y.pstyle("text-justification").strValue,x=y.pstyle("text-halign").strValue;if(p==="auto")if(y.isNode())switch(x){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return p},I2.calculateLabelDimensions=function(y,p){var x=this,C=Ld(p,y._private.labelDimsKey),L=x.labelDimCache||(x.labelDimCache=[]),O=L[C];if(O!=null)return O;var P=0,$=y.pstyle("font-style").strValue,H=y.pstyle("font-size").pfValue,z=y.pstyle("font-family").strValue,G=y.pstyle("font-weight").strValue,Q=this.labelCalcCanvas,it=this.labelCalcCanvasContext;if(!Q){Q=this.labelCalcCanvas=document.createElement("canvas"),it=this.labelCalcCanvasContext=Q.getContext("2d");var lt=Q.style;lt.position="absolute",lt.left="-9999px",lt.top="-9999px",lt.zIndex="-1",lt.visibility="hidden",lt.pointerEvents="none"}it.font="".concat($," ").concat(G," ").concat(H,"px ").concat(z);for(var dt=0,vt=0,Mt=p.split(`
|
|||
|
`),kt=0;kt<Mt.length;kt++){var It=Mt[kt],Pt=it.measureText(It),qt=Math.ceil(Pt.width),ce=H;dt=Math.max(qt,dt),vt+=ce}return dt+=P,vt+=P,L[C]={width:dt,height:vt}},I2.calculateLabelAngle=function(y,p){var x=y._private,C=x.rscratch,L=y.isEdge(),O=p?p+"-":"",P=y.pstyle(O+"text-rotation"),$=P.strValue;return $==="none"?0:L&&$==="autorotate"?C.labelAutoAngle:$==="autorotate"?0:P.pfValue},I2.calculateLabelAngles=function(y){var p=this,x=y.isEdge(),C=y._private,L=C.rscratch;L.labelAngle=p.calculateLabelAngle(y),x&&(L.sourceLabelAngle=p.calculateLabelAngle(y,"source"),L.targetLabelAngle=p.calculateLabelAngle(y,"target"))};var vj={},vC=28,yj=!1;vj.getNodeShape=function(y){var p=this,x=y.pstyle("shape").value;if(x==="cutrectangle"&&(y.width()<vC||y.height()<vC))return yj||(Vc("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),yj=!0),"rectangle";if(y.isParent())return x==="rectangle"||x==="roundrectangle"||x==="round-rectangle"||x==="cutrectangle"||x==="cut-rectangle"||x==="barrel"?x:"rectangle";if(x==="polygon"){var C=y.pstyle("shape-polygon-points").value;return p.nodeShapes.makePolygon(C).name}return x};var yC={};yC.registerCalculationListeners=function(){var y=this.cy,p=y.collection(),x=this,C=function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(p.merge(P),$)for(var H=0;H<P.length;H++){var z=P[H],G=z._private,Q=G.rstyle;Q.clean=!1,Q.cleanConnected=!1}};x.binder(y).on("bounds.* dirty.*",function(P){var $=P.target;C($)}).on("style.* background.*",function(P){var $=P.target;C($,!1)});var L=function(P){if(P){var $=x.onUpdateEleCalcsFns;p.cleanStyle();for(var H=0;H<p.length;H++){var z=p[H],G=z._private.rstyle;z.isNode()&&!G.cleanConnected&&(C(z.connectedEdges()),G.cleanConnected=!0)}if($)for(var Q=0;Q<$.length;Q++){var it=$[Q];it(P,p)}x.recalculateRenderedStyle(p),p=y.collection()}};x.flushRenderedStyleQueue=function(){L(!0)},x.beforeRender(L,x.beforeRenderPriorities.eleCalcs)},yC.onUpdateEleCalcs=function(y){var p=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];p.push(y)},yC.recalculateRenderedStyle=function(y,p){var x=function(qt){return qt._private.rstyle.cleanConnected},C=[],L=[];if(!this.destroyed){p===void 0&&(p=!0);for(var O=0;O<y.length;O++){var P=y[O],$=P._private,H=$.rstyle;P.isEdge()&&(!x(P.source())||!x(P.target()))&&(H.clean=!1),!(p&&H.clean||P.removed())&&P.pstyle("display").value!=="none"&&($.group==="nodes"?L.push(P):C.push(P),H.clean=!0)}for(var z=0;z<L.length;z++){var G=L[z],Q=G._private,it=Q.rstyle,lt=G.position();this.recalculateNodeLabelProjection(G),it.nodeX=lt.x,it.nodeY=lt.y,it.nodeW=G.pstyle("width").pfValue,it.nodeH=G.pstyle("height").pfValue}this.recalculateEdgeProjections(C);for(var dt=0;dt<C.length;dt++){var vt=C[dt],Mt=vt._private,kt=Mt.rstyle,It=Mt.rscratch;kt.srcX=It.arrowStartX,kt.srcY=It.arrowStartY,kt.tgtX=It.arrowEndX,kt.tgtY=It.arrowEndY,kt.midX=It.midX,kt.midY=It.midY,kt.labelAngle=It.labelAngle,kt.sourceLabelAngle=It.sourceLabelAngle,kt.targetLabelAngle=It.targetLabelAngle}}};var xC={};xC.updateCachedGrabbedEles=function(){var y=this.cachedZSortedEles;if(y){y.drag=[],y.nondrag=[];for(var p=[],x=0;x<y.length;x++){var C=y[x],L=C._private.rscratch;C.grabbed()&&!C.isParent()?p.push(C):L.inDragLayer?y.drag.push(C):y.nondrag.push(C)}for(var x=0;x<p.length;x++){var C=p[x];y.drag.push(C)}}},xC.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},xC.getCachedZSortedEles=function(y){if(y||!this.cachedZSortedEles){var p=this.cy.mutableElements().toArray();p.sort(VR),p.interactive=p.filter(function(x){return x.interactive()}),this.cachedZSortedEles=p,this.updateCachedGrabbedEles()}else p=this.cachedZSortedEles;return p};var xj={};[C4,mC,Id,Q8,lD,I2,vj,yC,xC].forEach(function(y){we(xj,y)});var kj={};kj.getCachedImage=function(y,p,x){var C=this,L=C.imageCache=C.imageCache||{},O=L[y];if(O)return O.image.complete||O.image.addEventListener("load",x),O.image;O=L[y]=L[y]||{};var P=O.image=new Image;P.addEventListener("load",x),P.addEventListener("error",function(){P.error=!0});var $="data:",H=y.substring(0,$.length).toLowe
|
|||
|
`+i,g.parser);const v=Re().securityLevel;let b;v==="sandbox"&&(b=xr("#i"+a));const _=xr(v==="sandbox"?b.nodes()[0].contentDocument.body:"body").select("#"+a);_.append("g");const S=g.db.getMindmap(),I=_.append("g");I.attr("class","mindmap-edges");const B=_.append("g");B.attr("class","mindmap-nodes"),jHt(B,S,-1,w);const F=await Ztn(S,w);Jtn(I,F),ten(F),g8(void 0,_,w.mindmap.padding,w.mindmap.useMaxWidth)}},nen=i=>{let a="";for(let f=0;f<i.THEME_COLOR_LIMIT;f++)i["lineColor"+f]=i["lineColor"+f]||i["cScaleInv"+f],h9(i["lineColor"+f])?i["lineColor"+f]=Is(i["lineColor"+f],20):i["lineColor"+f]=Zs(i["lineColor"+f],20);for(let f=0;f<i.THEME_COLOR_LIMIT;f++){const g=""+(17-3*f);a+=`
|
|||
|
.section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} polygon, .section-${f-1} path {
|
|||
|
fill: ${i["cScale"+f]};
|
|||
|
}
|
|||
|
.section-${f-1} text {
|
|||
|
fill: ${i["cScaleLabel"+f]};
|
|||
|
}
|
|||
|
.node-icon-${f-1} {
|
|||
|
font-size: 40px;
|
|||
|
color: ${i["cScaleLabel"+f]};
|
|||
|
}
|
|||
|
.section-edge-${f-1}{
|
|||
|
stroke: ${i["cScale"+f]};
|
|||
|
}
|
|||
|
.edge-depth-${f-1}{
|
|||
|
stroke-width: ${g};
|
|||
|
}
|
|||
|
.section-${f-1} line {
|
|||
|
stroke: ${i["cScaleInv"+f]} ;
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
|
|||
|
.disabled, .disabled circle, .disabled text {
|
|||
|
fill: lightgray;
|
|||
|
}
|
|||
|
.disabled text {
|
|||
|
fill: #efefef;
|
|||
|
}
|
|||
|
`}return a},ren=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:Rtn,renderer:een,parser:Atn,styles:i=>`
|
|||
|
.edge {
|
|||
|
stroke-width: 3;
|
|||
|
}
|
|||
|
${nen(i)}
|
|||
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|||
|
fill: ${i.git0};
|
|||
|
}
|
|||
|
.section-root text {
|
|||
|
fill: ${i.gitBranchLabel0};
|
|||
|
}
|
|||
|
.icon-container {
|
|||
|
height:100%;
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
align-items: center;
|
|||
|
}
|
|||
|
.edge {
|
|||
|
fill: none;
|
|||
|
}
|
|||
|
.mindmap-node-label {
|
|||
|
dy: 1em;
|
|||
|
alignment-baseline: middle;
|
|||
|
text-anchor: middle;
|
|||
|
dominant-baseline: middle;
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
`}},Symbol.toStringTag,{value:"Module"}));var o2t=function(){var i=function(E,_,S,I){for(S=S||{},I=E.length;I--;S[E[I]]=_);return S},a=[1,9],f=[1,10],g=[1,5,10,12],w={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(_,S,I,B,F,R,q){var X=R.length-1;switch(F){case 7:const rt=B.findOrCreateNode(R[X-4].trim().replaceAll('""','"')),at=B.findOrCreateNode(R[X-2].trim().replaceAll('""','"')),ut=parseFloat(R[X].trim());B.addLink(rt,at,ut);break;case 8:case 9:case 11:this.$=R[X];break;case 10:this.$=R[X-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:a,20:f},{1:[2,6],7:11,10:[1,12]},i(f,[2,4],{9:13,5:[1,14]}),{12:[1,15]},i(g,[2,8]),i(g,[2,9]),{19:[1,16]},i(g,[2,11]),{1:[2,1]},{1:[2,5]},i(f,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:a,20:f},{15:18,16:7,17:8,18:a,20:f},{18:[1,19]},i(f,[2,3]),{12:[1,20]},i(g,[2,10]),{15:21,16:7,17:8,18:a,20:f},i([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(_,S){if(S.recoverable)this.trace(_);else{var I=new Error(_);throw I.hash=S,I}},parse:function(_){var S=this,I=[0],B=[],F=[null],R=[],q=this.table,X="",rt=0,at=0,ut=2,pt=1,yt=R.slice.call(arguments,1),mt=Object.create(this.lexer),gt={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(gt.yy[ht]=this.yy[ht]);mt.setInput(_,gt.yy),gt.yy.lexer=mt,gt.yy.parser=this,typeof mt.yylloc>"u"&&(mt.yylloc={});var bt=mt.yylloc;R.push(bt);var Z=mt.options&&mt.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(){var Gt;return Gt=B.pop()||mt.lex()||pt,typeof Gt!="number"&&(Gt instanceof Array&&(B=Gt,Gt=B.pop()),Gt=S.symbols_[Gt]||Gt),Gt}for(var Y,Et,V,Nt,Dt={},jt,Ct,Ft,_t;;){if(Et=I[I.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((Y===null||typeof Y>"u")&&(Y=ft()),V=q[Et]&&q[Et][Y]),typeof V>"u"||!V.length||!V[0]){var xt="";_t=[];for(jt in q[Et])this.terminals_[jt]&&jt>ut&&_t.push("'"+this.terminals_[jt]+"'");mt.showPosition?xt="Parse error on line "+(rt+1)+`:
|
|||
|
`+mt.showPosition()+`
|
|||
|
Expecting `+_t.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":xt="Parse error on line "+(rt+1)+": Unexpected "+(Y==pt?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(xt,{text:mt.match,token:this.terminals_[Y]||Y,line:mt.yylineno,loc:bt,expected:_t})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+Y);switch(V[0]){case 1:I.push(Y),F.push(mt.yytext),R.push(mt.yylloc),I.push(V[1]),Y=null,at=mt.yyleng,X=mt.yytext,rt=mt.yylineno,bt=mt.yylloc;break;case 2:if(Ct=this.productions_[V[1]][1],Dt.$=F[F.length-Ct],Dt._$={first_line:R[R.length-(Ct||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(Ct||1)].first_column,last_column:R[R.length-1].last_column},Z&&(Dt._$.range=[R[R.length-(Ct||1)].range[0],R[R.length-1].range[1]]),Nt=this.performAction.apply(Dt,[X,at,rt,gt.yy,V[1],F,R].concat(yt)),typeof Nt<"u")return Nt;Ct&&(I=I.slice(0,-1*Ct*2),F=F.slice(0,-1*Ct),R=R.slice(0,-1*Ct)),I.push(this.productions_[V[1]][0]),F.push(Dt.$),R.push(Dt._$),Ft=q[I[I.length-2]][I[I.length-1]],I.push(Ft);break;case 3:return!0}}return!0}},v=function(){var E={EOF:1,parseError:function(S,I){if(this.yy.parser)this.yy.parser.parseError(S,I);else throw new Error(S)},setInput:function(_,S){return this.yy=S||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var S=_.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var S=_.length,I=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var B=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),I.length-1&&(this.yylineno-=I.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:I?(I.length===B.length?this.yylloc.first_column:0)+B[B.length-I.length].length-I[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),S=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
|
|||
|
`+S+"^"},test_match:function(_,S){var I,B,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),B=_[0].match(/(?:\r\n?|\n).*/g),B&&(this.yylineno+=B.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],I=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),I)return I;if(this._backtrack){for(var R in F)this[R]=F[R];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,S,I,B;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),R=0;R<F.length;R++)if(I=this._input.match(this.rules[F[R]]),I&&(!S||I[0].length>S[0].length)){if(S=I,B=R,this.options.backtrack_lexer){if(_=this.test_match(I,F[R]),_!==!1)return _;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(_=this.test_match(S,F[B]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|||
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var S=this.next();return S||this.lex()},begin:function(S){this.conditionStack.push(S)},popState:function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},pushState:function(S){this.begin(S)},stateStackSize:function(){return this.conditionStack.length},options:{easy_keword_rules:!0},performAction:function(S,I,B,F){switch(B){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/,/^(?:$)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:(\u002C))/,/^(?:(\u0022))/,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/,/^(?:(\u0022)(?!(\u0022)))/,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return E}();w.lexer=v;function b(){this.yy={}}return b.prototype=w,w.Parser=b,new b}();o2t.parser=o2t;const LX=o2t;let MX=[],DX=[],AM={};const ien=()=>{MX=[],DX=[],AM={},Wg()};class sen{constructor(a,f,g=0){this.source=a,this.target=f,this.value=g}}const aen=(i,a,f)=>{MX.push(new sen(i,a,f))};class oen{constructor(a){this.ID=a}}const cen={nodesMap:AM,getConfig:()=>Re().sankey,getNodes:()=>DX,getLinks:()=>MX,getGraph:()=>({nodes:DX.map(i=>({id:i.ID})),links:MX.map(i=>({source:i.source.ID,target:i.target.ID,value:i.value}))}),addLink:aen,findOrCreateNode:i=>(i=ei.sanitizeText(i,Re()),AM[i]||(AM[i]=new oen(i),DX.push(AM[i])),AM[i]),getAccTitle:Yg,setAccTitle:ng,getAccDescription:Qg,setAccDescription:Xg,getDiagramTitle:Jg,setDiagramTitle:y2,clear:ien};function zHt(i,a){let f;if(a===void 0)for(const g of i)g!=null&&(f<g||f===void 0&&g>=g)&&(f=g);else{let g=-1;for(let w of i)(w=a(w,++g,i))!=null&&(f<w||f===void 0&&w>=w)&&(f=w)}return f}function qHt(i,a){let f;if(a===void 0)for(const g of i)g!=null&&(f>g||f===void 0&&g>=g)&&(f=g);else{let g=-1;for(let w of i)(w=a(w,++g,i))!=null&&(f>w||f===void 0&&w>=w)&&(f=w)}return f}function c2t(i,a){let f=0;if(a===void 0)for(let g of i)(g=+g)&&(f+=g);else{let g=-1;for(let w of i)(w=+a(w,++g,i))&&(f+=w)}return f}function uen(i){return i.target.depth}function len(i){return i.depth}function hen(i,a){return a-1-i.height}function HHt(i,a){return i.sourceLinks.length?i.depth:a-1}function fen(i){return i.targetLinks.length?i.depth:i.sourceLinks.length?qHt(i.sourceLinks,uen)-1:0}function IX(i){return function(){return i}}function VHt(i,a){return OX(i.source,a.source)||i.index-a.index}function UHt(i,a){return OX(i.target,a.target)||i.index-a.index}function OX(i,a){return i.y0-a.y0}function u2t(i){return i.value}function den(i){return i.index}function gen(i){return i.nodes}function pen(i){return i.links}function GHt(i,a){const f=i.get(a);if(!f)throw new Error("missing: "+a);return f}function KHt({nodes:i}){for(const a of i){let f=a.y0,g=f;for(const w of a.sourceLinks)w.y0=f+w.width/2,f+=w.width;for(const w of a.targetLinks)w.y1=g+w.width/2,g+=w.width}}function ben(){let i=0,a=0,f=1,g=1,w=24,v=8,b,E=den,_=HHt,S,I,B=gen,F=pen,R=6;function q(){const Dt={nodes:B.apply(null,arguments),links:F.apply(null,arguments)};return X(Dt),rt(Dt),at(Dt),ut(Dt),mt(Dt),KHt(Dt),Dt}q.update=function(Dt){return KHt(Dt),Dt},q.nodeId=function(Dt){return arguments.length?(E=typeof Dt=="function"?Dt:IX(Dt),q):E},q.nodeAlign=function(Dt){return arguments.length?(_=typeof Dt=="function"?Dt:IX(Dt),q):_},q.nodeSort=function(Dt){return arguments.length?(S=Dt,q):S},q.nodeWidth=function(Dt){return arguments.length?(w=+Dt,q):w},q.nodePadd
|
|||
|
${q}${Math.round(Y*100)/100}${X}`:ft;S.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(at.nodes).join("text").attr("x",ft=>ft.x0<I/2?ft.x1+6:ft.x0-6).attr("y",ft=>(ft.y1+ft.y0)/2).attr("dy",`${rt?"0":"0.35"}em`).attr("text-anchor",ft=>ft.x0<I/2?"start":"end").text(gt);const ht=S.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(at.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),bt=(v==null?void 0:v.linkColor)||"gradient";if(bt==="gradient"){const ft=ht.append("linearGradient").attr("id",Y=>(Y.uid=QHt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",Y=>Y.source.x1).attr("x2",Y=>Y.target.x0);ft.append("stop").attr("offset","0%").attr("stop-color",Y=>mt(Y.source.id)),ft.append("stop").attr("offset","100%").attr("stop-color",Y=>mt(Y.target.id))}let Z;switch(bt){case"gradient":Z=ft=>ft.uid;break;case"source":Z=ft=>mt(ft.source.id);break;case"target":Z=ft=>mt(ft.target.id);break;default:Z=bt}ht.append("path").attr("d",Aen()).attr("stroke",Z).attr("stroke-width",ft=>Math.max(1,ft.width)),g8(void 0,S,0,F)}},Den=i=>i.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|||
|
`).trim(),Ien=LX.parse.bind(LX);LX.parse=i=>Ien(Den(i));const Oen=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:LX,db:cen,renderer:Men}},Symbol.toStringTag,{value:"Module"}));return x2});
|
|||
|
|
|||
|
;
|
|||
|
function css(e){return"rgb("+getComputedStyle(document.documentElement).getPropertyValue(e)+")"}let isDark=document.documentElement.classList.contains("dark");mermaid.initialize({theme:"base",themeVariables:{background:css("--color-neutral"),primaryTextColor:css(isDark?"--color-neutral-200":"--color-neutral-700"),primaryColor:css(isDark?"--color-primary-700":"--color-primary-200"),secondaryColor:css(isDark?"--color-secondary-700":"--color-secondary-200"),tertiaryColor:css(isDark?"--color-neutral-700":"--color-neutral-100"),primaryBorderColor:css(isDark?"--color-primary-500":"--color-primary-400"),secondaryBorderColor:css("--color-secondary-400"),tertiaryBorderColor:css(isDark?"--color-neutral-300":"--color-neutral-400"),lineColor:css(isDark?"--color-neutral-300":"--color-neutral-600"),fontFamily:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif",fontSize:"16px",pieTitleTextSize:"19px",pieSectionTextSize:"16px",pieLegendTextSize:"16px",pieStrokeWidth:"1px",pieOuterStrokeWidth:"0.5px",pieStrokeColor:css(isDark?"--color-neutral-300":"--color-neutral-400"),pieOpacity:"1"}})
|