8 lines
124 KiB
JavaScript
8 lines
124 KiB
JavaScript
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["-------"],{"./node_modules/dagre-d3-es/src/dagre/index.js":function(hn,W,h){h.d(W,{Zp:function(){return Gt}});var g=h("./node_modules/lodash-es/forEach.js"),R=h("./node_modules/lodash-es/uniqueId.js"),F=h("./node_modules/lodash-es/has.js"),M=h("./node_modules/lodash-es/constant.js"),z=h("./node_modules/lodash-es/flatten.js"),D=h("./node_modules/lodash-es/map.js"),H=h("./node_modules/lodash-es/range.js"),N=h("./node_modules/dagre-d3-es/src/graphlib/index.js");class Y{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return nn(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&nn(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,u=r._prev;u!==r;)t.push(JSON.stringify(u,an)),u=u._prev;return"["+t.join(", ")+"]"}}function nn(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function an(e,t){if(e!=="_next"&&e!=="_prev")return t}var Q=M.A(1);function rn(e,t){if(e.nodeCount()<=1)return[];var r=Ln(e,t||Q),u=q(r.graph,r.buckets,r.zeroIdx);return z.A(D.A(u,function(o){return e.outEdges(o.v,o.w)}))}function q(e,t,r){for(var u=[],o=t[t.length-1],f=t[0],m;e.nodeCount();){for(;m=f.dequeue();)yn(e,t,r,m);for(;m=o.dequeue();)yn(e,t,r,m);if(e.nodeCount()){for(var y=t.length-2;y>0;--y)if(m=t[y].dequeue(),m){u=u.concat(yn(e,t,r,m,!0));break}}}return u}function yn(e,t,r,u,o){var f=o?[]:void 0;return g.A(e.inEdges(u.v),function(m){var y=e.edge(m),C=e.node(m.v);o&&f.push({v:m.v,w:m.w}),C.out-=y,mn(t,r,C)}),g.A(e.outEdges(u.v),function(m){var y=e.edge(m),C=m.w,S=e.node(C);S.in-=y,mn(t,r,S)}),e.removeNode(u.v),f}function Ln(e,t){var r=new N.T,u=0,o=0;g.A(e.nodes(),function(y){r.setNode(y,{v:y,in:0,out:0})}),g.A(e.edges(),function(y){var C=r.edge(y.v,y.w)||0,S=t(y),P=C+S;r.setEdge(y.v,y.w,P),o=Math.max(o,r.node(y.v).out+=S),u=Math.max(u,r.node(y.w).in+=S)});var f=H.A(o+u+3).map(function(){return new Y}),m=u+1;return g.A(r.nodes(),function(y){mn(f,m,r.node(y))}),{graph:r,buckets:f,zeroIdx:m}}function mn(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Bn(e){var t=e.graph().acyclicer==="greedy"?rn(e,r(e)):ve(e);g.A(t,function(u){var o=e.edge(u);e.removeEdge(u),o.forwardName=u.name,o.reversed=!0,e.setEdge(u.w,u.v,o,R.A("rev"))});function r(u){return function(o){return u.edge(o).weight}}}function ve(e){var t=[],r={},u={};function o(f){F.A(u,f)||(u[f]=!0,r[f]=!0,g.A(e.outEdges(f),function(m){F.A(r,m.w)?t.push(m):o(m.w)}),delete r[f])}return g.A(e.nodes(),o),t}function sn(e){g.A(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var u=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,u)}})}var gn=h("./node_modules/lodash-es/merge.js"),Rn=h("./node_modules/lodash-es/pick.js"),xe=h("./node_modules/lodash-es/defaults.js"),Z=h("./node_modules/lodash-es/isSymbol.js");function Mn(e,t,r){for(var u=-1,o=e.length;++u<o;){var f=e[u],m=t(f);if(m!=null&&(y===void 0?m===m&&!(0,Z.A)(m):r(m,y)))var y=m,C=f}return C}var ln=Mn;function _e(e,t){return e>t}var te=_e,Nn=h("./node_modules/lodash-es/identity.js");function vn(e){return e&&e.length?ln(e,Nn.A,te):void 0}var ue=vn;function pt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ye=pt,rt=h("./node_modules/lodash-es/_baseAssignValue.js"),it=h("./node_modules/lodash-es/_baseForOwn.js"),Pe=h("./node_modules/lodash-es/_baseIteratee.js");function Ee(e,t){var r={};return t=(0,Pe.A)(t,3),(0,it.A)(e,function(u,o,f){(0,rt.A)(r,o,t(u,o,f))}),r}var Ne=Ee,re=h("./node_modules/lodash-es/isUndefined.js");function ce(e,t){return e<t}var Le=ce;function Ye(e){return e&&e.length?ln(e,Nn.A,Le):void 0}var we=Ye,Qe=h("./node_modules/lodash-es/_root.js"),ke=function(){return Qe.A.Date.now()},Me=ke;function Ae(e,t,r,u){var o;do o=R.A(u);while(e.hasNode(o));return r.dummy=t,e.setNode(o,r),o}function dn(e){var t=new N.T().setGraph(e.graph());return g.A(e.nodes(),function(r){t.setNode(r,e.node(r))}),g.A(e.edges(),function(r){var u=t.edge(r.v,r.w)||{weigh
|
||
|
`;break}case-3:{d=`\r
|
||
|
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&c)continue;d=" ";break}default:d=String.fromCharCode(l)}c=l===-2,s.push(d)}return s.join("")}const fe={name:"thematicBreak",tokenize:Ce};function Ce(n,a,i){let s=0,c;return l;function l(E){return n.enter("thematicBreak"),d(E)}function d(E){return c=E,p(E)}function p(E){return E===c?(n.enter("thematicBreakSequence"),I(E)):s>=3&&(E===null||Z(E))?(n.exit("thematicBreak"),a(E)):i(E)}function I(E){return E===c?(n.consume(E),s++,I):(n.exit("thematicBreakSequence"),ln(E)?vn(n,p,"whitespace")(E):p(E))}}const Zn={name:"list",tokenize:Ft,continuation:{tokenize:Ot},exit:yt},Tt={tokenize:Pt,partial:!0},xt={tokenize:gt,partial:!0};function Ft(n,a,i){const s=this,c=s.events[s.events.length-1];let l=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,d=0;return p;function p(x){const In=s.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(In==="listUnordered"?!s.containerState.marker||x===s.containerState.marker:gn(x)){if(s.containerState.type||(s.containerState.type=In,n.enter(In,{_container:!0})),In==="listUnordered")return n.enter("listItemPrefix"),x===42||x===45?n.check(fe,i,E)(x):E(x);if(!s.interrupt||x===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),I(x)}return i(x)}function I(x){return gn(x)&&++d<10?(n.consume(x),I):(!s.interrupt||d<2)&&(s.containerState.marker?x===s.containerState.marker:x===41||x===46)?(n.exit("listItemValue"),E(x)):i(x)}function E(x){return n.enter("listItemMarker"),n.consume(x),n.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||x,n.check(Ee,s.interrupt?i:b,n.attempt(Tt,k,j))}function b(x){return s.containerState.initialBlankLine=!0,l++,k(x)}function j(x){return ln(x)?(n.enter("listItemPrefixWhitespace"),n.consume(x),n.exit("listItemPrefixWhitespace"),k):i(x)}function k(x){return s.containerState.size=l+s.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(x)}}function Ot(n,a,i){const s=this;return s.containerState._closeFlow=void 0,n.check(Ee,c,l);function c(p){return s.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,vn(n,a,"listItemIndent",s.containerState.size+1)(p)}function l(p){return s.containerState.furtherBlankLines||!ln(p)?(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,d(p)):(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,n.attempt(xt,a,d)(p))}function d(p){return s.containerState._closeFlow=!0,s.interrupt=void 0,vn(n,n.attempt(Zn,a,i),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function gt(n,a,i){const s=this;return vn(n,c,"listItemIndent",s.containerState.size+1);function c(l){const d=s.events[s.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===s.containerState.size?a(l):i(l)}}function yt(n){n.exit(this.containerState.type)}function Pt(n,a,i){const s=this;return vn(n,c,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(l){const d=s.events[s.events.length-1];return!ln(l)&&d&&d[1].type==="listItemPrefixWhitespace"?a(l):i(l)}}const Ze={name:"blockQuote",tokenize:Et,continuation:{tokenize:_t},exit:Lt};function Et(n,a,i){const s=this;return c;function c(d){if(d===62){const p=s.containerState;return p.open||(n.enter("blockQuote",{_container:!0}),p.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(d),n.exit("blockQuoteMarker"),l}return i(d)}function l(d){return ln(d)?(n.enter("blockQuotePrefixWhitespace"),n.consume(d),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(d))}}function _t(n,a,i){const s=this;return c;function c(d){return ln(d)?vn(n,l,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):l(d)}function l(d){return n.attempt(Ze,a,i)(d)}}function Lt(n){n.exit("blockQuote")}function At(n,a,i,s,c,l,d,p,I){const E=I||Number.POSITIVE_INFINITY;let b=0;return j;function j($){return $===60?(n.enter(s),n.enter(c),
|
||
|
`);return(0,Cr.T)(a)}function Jr(n){const a=Xr(n),{children:i}=Er(a),s=[[]];let c=0;function l(d,p="normal"){d.type==="text"?d.value.split(`
|
||
|
`).forEach((E,b)=>{b!==0&&(c++,s.push([])),E.split(" ").forEach(j=>{j&&s[c].push({content:j,type:p})})}):(d.type==="strong"||d.type==="emphasis")&&d.children.forEach(I=>{l(I,d.type)})}return i.forEach(d=>{d.type==="paragraph"&&d.children.forEach(p=>{l(p)})}),s}function Ir(n){const{children:a}=Er(n);function i(s){return s.type==="text"?s.value.replace(/\n/g,"<br/>"):s.type==="strong"?`<strong>${s.children.map(i).join("")}</strong>`:s.type==="emphasis"?`<em>${s.children.map(i).join("")}</em>`:s.type==="paragraph"?`<p>${s.children.map(i).join("")}</p>`:`Unsupported markdown: ${s.type}`}return a.map(i).join("")}function qr(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(a=>a.segment):[...n]}function ni(n,a){const i=qr(a.content);return Sr(n,[],i,a.type)}function Sr(n,a,i,s){if(i.length===0)return[{content:a.join(""),type:s},{content:"",type:s}];const[c,...l]=i,d=[...a,c];return n([{content:d.join(""),type:s}])?Sr(n,d,l,s):(a.length===0&&c&&(a.push(c),i.shift()),[{content:a.join(""),type:s},{content:i.join(""),type:s}])}function jr(n,a){if(n.some(({content:i})=>i.includes(`
|
||
|
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return ft(n,a)}function ft(n,a,i=[],s=[]){if(n.length===0)return s.length>0&&i.push(s),i.length>0?i:[];let c="";n[0].content===" "&&(c=" ",n.shift());const l=n.shift()??{content:" ",type:"normal"},d=[...s];if(c!==""&&d.push({content:c,type:"normal"}),d.push(l),a(d))return ft(n,a,i,d);if(s.length>0)i.push(s),n.unshift(l);else if(l.content){const[p,I]=ni(a,l);i.push([p]),I.content&&n.unshift(I)}return ft(n,a,i)}function nr(n,a){a&&n.attr("style",a)}function ei(n,a,i,s,c=!1){const l=n.append("foreignObject"),d=l.append("xhtml:div"),p=a.label,I=a.isNode?"nodeLabel":"edgeLabel";d.html(`
|
||
|
<span class="${I} ${s}" `+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+p+"</span>"),nr(d,a.labelStyle),d.style("display","table-cell"),d.style("white-space","nowrap"),d.style("max-width",i+"px"),d.attr("xmlns","http://www.w3.org/1999/xhtml"),c&&d.attr("class","labelBkg");let E=d.node().getBoundingClientRect();return E.width===i&&(d.style("display","table"),d.style("white-space","break-spaces"),d.style("width",i+"px"),E=d.node().getBoundingClientRect()),l.style("width",E.width),l.style("height",E.height),l.node()}function er(n,a,i){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",a*i-.1+"em").attr("dy",i+"em")}function ti(n,a,i){const s=n.append("text"),c=er(s,1,a);dr(c,i);const l=c.node().getComputedTextLength();return s.remove(),l}function ri(n,a,i){var s;const c=n.append("text"),l=er(c,1,a);dr(l,[{content:i,type:"normal"}]);const d=(s=l.node())==null?void 0:s.getBoundingClientRect();return d&&c.remove(),d}function ii(n,a,i,s=!1){const l=a.append("g"),d=l.insert("rect").attr("class","background"),p=l.append("text").attr("y","-10.1");let I=0;for(const E of i){const b=k=>ti(l,1.1,k)<=n,j=b(E)?[E]:jr(E,b);for(const k of j){const x=er(p,I,1.1);dr(x,k),I++}}if(s){const E=p.node().getBBox(),b=2;return d.attr("x",-b).attr("y",-b).attr("width",E.width+2*b).attr("height",E.height+2*b),l.node()}else return p.node()}function dr(n,a){n.text(""),a.forEach((i,s)=>{const c=n.append("tspan").attr("font-style",i.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");s===0?c.text(i.content):c.text(" "+i.content)})}const si=(n,a="",{style:i="",isTitle:s=!1,classes:c="",useHtmlLabels:l=!0,isNode:d=!0,width:p=200,addSvgBackground:I=!1}={})=>{if(R.l.info("createText",a,i,s,c,l,d,I),l){const E=Ir(a),b={isNode:d,label:(0,R.M)(E).replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),labelStyle:i.replace("fill:","color:")};return ei(n,b,p,c,I)}else{const E=Jr(a);return ii(p,n,E,I)}}}}]);
|