fika-editor 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/embed/{947.js → 183.js} +25 -31
- package/dist/embed/_e2e-statika.json +10909 -0
- package/dist/embed/agentic-manifest.json +4 -4
- package/dist/embed/chunks/{9121.js → 1091.js} +1 -1
- package/dist/embed/chunks/112.js +64 -0
- package/dist/embed/chunks/1131.css +1 -1
- package/dist/embed/chunks/1131.js +1 -1
- package/dist/embed/chunks/{7854.js → 1483.js} +1 -1
- package/dist/embed/chunks/1488.js +93 -0
- package/dist/embed/chunks/1668.js +1 -1
- package/dist/embed/chunks/1742.js +90 -0
- package/dist/embed/chunks/190.js +1 -0
- package/dist/embed/chunks/2062.js +94 -0
- package/dist/embed/chunks/{1904.js → 2214.js} +1 -1
- package/dist/embed/chunks/2395.js +1 -0
- package/dist/embed/chunks/2595.js +1 -0
- package/dist/embed/chunks/{7594.js → 2619.js} +1 -1
- package/dist/embed/chunks/2638.js +1 -0
- package/dist/embed/chunks/2807.js +1 -1
- package/dist/embed/chunks/2853.js +1 -0
- package/dist/embed/chunks/2982.js +24 -0
- package/dist/embed/chunks/3009.js +1 -0
- package/dist/embed/chunks/3017.js +1 -0
- package/dist/embed/chunks/3084.js +27 -0
- package/dist/embed/chunks/3270.js +62 -0
- package/dist/embed/chunks/3275.js +226 -0
- package/dist/embed/chunks/3312.js +1 -0
- package/dist/embed/chunks/3671.js +1 -0
- package/dist/embed/chunks/4000.js +23 -0
- package/dist/embed/chunks/4392.js +41 -0
- package/dist/embed/chunks/4467.js +1 -1
- package/dist/embed/chunks/451.js +32 -0
- package/dist/embed/chunks/4630.js +148 -0
- package/dist/embed/chunks/4764.js +1 -0
- package/dist/embed/chunks/{4552.js → 4779.js} +1 -1
- package/dist/embed/chunks/4929.js +215 -0
- package/dist/embed/chunks/4936.js +12 -12
- package/dist/embed/chunks/4975.js +98 -97
- package/dist/embed/chunks/5216.js +1 -1
- package/dist/embed/chunks/5250.js +153 -1
- package/dist/embed/chunks/529.js +36 -0
- package/dist/embed/chunks/5428.js +1 -0
- package/dist/embed/chunks/{4619.js → 549.js} +2 -2
- package/dist/embed/chunks/5493.js +1 -0
- package/dist/embed/chunks/5681.js +1 -0
- package/dist/embed/chunks/5863.js +1 -0
- package/dist/embed/chunks/612.js +1 -0
- package/dist/embed/chunks/6520.js +1 -0
- package/dist/embed/chunks/6762.js +1 -0
- package/dist/embed/chunks/6771.js +1 -0
- package/dist/embed/chunks/7029.js +1 -0
- package/dist/embed/chunks/7057.js +1 -0
- package/dist/embed/chunks/7091.js +1 -0
- package/dist/embed/chunks/718.js +1 -0
- package/dist/embed/chunks/7276.js +79 -0
- package/dist/embed/chunks/7305.js +115 -0
- package/dist/embed/chunks/7463.js +1 -1
- package/dist/embed/chunks/7471.js +1 -0
- package/dist/embed/chunks/7798.js +1 -0
- package/dist/embed/chunks/788.js +29 -19
- package/dist/embed/chunks/7946.js +1 -0
- package/dist/embed/chunks/{3729.js → 8407.js} +16 -4
- package/dist/embed/chunks/8628.js +1 -0
- package/dist/embed/chunks/8665.js +1 -0
- package/dist/embed/chunks/9009.js +1 -0
- package/dist/embed/chunks/9010.js +1 -0
- package/dist/embed/chunks/9256.js +8 -0
- package/dist/embed/chunks/9464.js +77 -0
- package/dist/embed/chunks/9678.js +1 -0
- package/dist/embed/chunks/{273.js → 9686.js} +1 -1
- package/dist/embed/chunks/9918.js +138 -0
- package/dist/embed/fika-embed.css +1 -1
- package/dist/embed/fika-embed.js +9 -3
- package/dist/types/components/Draggable.d.ts +1 -1
- package/dist/types/components/Slider.d.ts +1 -0
- package/dist/types/configs/animation.d.ts +1 -1
- package/dist/types/configs/transitions.d.ts +28 -0
- package/dist/types/embed/agentic/types.d.ts +7 -0
- package/dist/types/embed/types.d.ts +8 -0
- package/dist/types/i18n/i18n-types.d.ts +202 -34
- package/dist/types/paint/rasterResources.d.ts +7 -0
- package/dist/types/paint/scheduler.d.ts +17 -0
- package/dist/types/paint/slidePainter.d.ts +17 -0
- package/dist/types/paint/textPainter.d.ts +31 -0
- package/dist/types/store/importConfirm.d.ts +6 -1
- package/dist/types/store/index.d.ts +2 -2
- package/dist/types/store/slides.d.ts +14 -5
- package/dist/types/types/slides.d.ts +3 -2
- package/dist/types/utils/elementOutline.d.ts +33 -3
- package/dist/types/utils/exportFonts.d.ts +7 -3
- package/dist/types/utils/importApply.d.ts +10 -0
- package/dist/types/utils/importTransition.d.ts +19 -0
- package/dist/types/utils/layerStack.d.ts +24 -0
- package/dist/types/utils/liveElementOffset.d.ts +6 -5
- package/dist/types/utils/mediaIntern.d.ts +9 -0
- package/dist/types/utils/textFit.d.ts +14 -6
- package/dist/types/views/Editor/Canvas/LayerStackPanel.d.ts +14 -0
- package/dist/types/views/Editor/Toolbar/common/ElementOutline.d.ts +2 -0
- package/dist/types/views/components/ThumbnailSlide/CanvasSlideThumb.d.ts +11 -0
- package/dist/types/views/components/ThumbnailSlide/index.d.ts +2 -7
- package/package.json +21 -17
- package/dist/embed/chunks/1169.js +0 -1
- package/dist/embed/chunks/1505.js +0 -8
- package/dist/embed/chunks/1605.js +0 -1
- package/dist/embed/chunks/1804.js +0 -8
- package/dist/embed/chunks/1916.js +0 -1
- package/dist/embed/chunks/1932.js +0 -1
- package/dist/embed/chunks/2143.js +0 -62
- package/dist/embed/chunks/2246.js +0 -1
- package/dist/embed/chunks/2289.js +0 -80
- package/dist/embed/chunks/2632.js +0 -1
- package/dist/embed/chunks/2796.js +0 -34
- package/dist/embed/chunks/3088.js +0 -1
- package/dist/embed/chunks/3443.js +0 -1
- package/dist/embed/chunks/3581.js +0 -77
- package/dist/embed/chunks/397.js +0 -1
- package/dist/embed/chunks/4335.js +0 -1
- package/dist/embed/chunks/435.js +0 -1
- package/dist/embed/chunks/4354.js +0 -27
- package/dist/embed/chunks/4359.js +0 -1
- package/dist/embed/chunks/4515.js +0 -1
- package/dist/embed/chunks/4607.js +0 -1
- package/dist/embed/chunks/4625.js +0 -153
- package/dist/embed/chunks/4794.js +0 -1
- package/dist/embed/chunks/4891.js +0 -226
- package/dist/embed/chunks/5026.js +0 -1
- package/dist/embed/chunks/5480.js +0 -1
- package/dist/embed/chunks/5659.js +0 -64
- package/dist/embed/chunks/5792.js +0 -141
- package/dist/embed/chunks/5889.js +0 -1
- package/dist/embed/chunks/5901.js +0 -1
- package/dist/embed/chunks/6014.js +0 -1
- package/dist/embed/chunks/627.js +0 -115
- package/dist/embed/chunks/6522.js +0 -1
- package/dist/embed/chunks/6567.js +0 -1
- package/dist/embed/chunks/6778.js +0 -1
- package/dist/embed/chunks/6999.js +0 -93
- package/dist/embed/chunks/7048.js +0 -1
- package/dist/embed/chunks/7101.js +0 -1
- package/dist/embed/chunks/717.js +0 -148
- package/dist/embed/chunks/7175.js +0 -90
- package/dist/embed/chunks/7311.js +0 -23
- package/dist/embed/chunks/7376.js +0 -1
- package/dist/embed/chunks/7588.js +0 -41
- package/dist/embed/chunks/7916.js +0 -79
- package/dist/embed/chunks/809.js +0 -1
- package/dist/embed/chunks/810.js +0 -1
- package/dist/embed/chunks/8212.js +0 -36
- package/dist/embed/chunks/8239.js +0 -1
- package/dist/embed/chunks/8620.js +0 -1
- package/dist/embed/chunks/8716.js +0 -215
- package/dist/embed/chunks/8941.js +0 -1
- package/dist/embed/chunks/9465.js +0 -5
- package/dist/embed/chunks/9761.js +0 -1
- package/dist/embed/chunks/9976.js +0 -1
- package/dist/types/views/components/ThumbnailSlide/LiveSlideThumb.d.ts +0 -21
- package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +0 -54
- /package/dist/embed/{947.css → 183.css} +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=2796;export const __rspack_esm_ids=[2796];export const __webpack_modules__={6471(t,e,n){n.d(e,{diagram:()=>te});var i=n(64183);n(31293);var r=n(86827),s=n(74045);function o(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function l(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function h(t,e){let n=0;if(void 0===e)for(let e of t)(e*=1)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function c(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function u(t){return function(){return t}}function f(t,e){return d(t.source,e.source)||t.index-e.index}function y(t,e){return d(t.target,e.target)||t.index-e.index}function d(t,e){return t.y0-e.y0}function p(t){return t.value}function g(t){return t.index}function _(t){return t.nodes}function x(t){return t.links}function k(t,e){let n=t.get(e);if(!n)throw Error("missing: "+e);return n}function m({nodes:t}){for(let e of t){let t=e.y0,n=t;for(let n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(let t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}var b=Math.PI,v=2*b,S=v-1e-6;function E(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function w(){return new E}E.prototype=w.prototype={constructor:E,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){t*=1,e*=1,n*=1,i*=1,r*=1;var s=this._x1,o=this._y1,l=n-t,a=i-e,h=s-t,c=o-e,u=h*h+c*c;if(r<0)throw Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>1e-6)if(Math.abs(c*l-a*h)>1e-6&&r){var f=n-s,y=i-o,d=l*l+a*a,p=Math.sqrt(d),g=Math.sqrt(u),_=r*Math.tan((b-Math.acos((d+u-(f*f+y*y))/(2*p*g)))/2),x=_/g,k=_/p;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*h)+","+(e+x*c)),this._+="A"+r+","+r+",0,0,"+ +(c*f>h*y)+","+(this._x1=t+k*l)+","+(this._y1=e+k*a)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,s){t*=1,e*=1,n*=1,s=!!s;var o=n*Math.cos(i),l=n*Math.sin(i),a=t+o,h=e+l,c=1^s,u=s?i-r:r-i;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+a+","+h:(Math.abs(this._x1-a)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+a+","+h),n&&(u<0&&(u=u%v+v),u>S?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=a)+","+(this._y1=h):u>1e-6&&(this._+="A"+n+","+n+",0,"+ +(u>=b)+","+c+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var K=Array.prototype.slice;function L(t){return function(){return t}}function A(t){return t[0]}function M(t){return t[1]}function I(t){return t.source}function T(t){return t.target}function P(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function $(t){return[t.source.x1,t.y0]}function N(t){return[t.target.x0,t.y1]}var C=function(){var t=(0,r.K)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[1,9],n=[1,10],i=[1,5,10,12],s={trace:(0,r.K)(function(){},"trace"),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:(0,r.K)(function(t,e,n,i,r,s,o){var l=s.length-1;switch(r){case 7:let a=i.findOrCreateNode(s[l-4].trim().replaceAll('""','"')),h=i.findOrCreateNode(s[l-2].trim().replaceAll('""','"')),c=parseFloat(s[l].trim());i.addLink(a,h,c);break;case 8:case 9:case 11:this.$=s[l];break;case 10:this.$=s[l-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:n},{15:18,16:7,17:8,18:e,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:e,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,r.K)(function(t){var e=this,n=[0],i=[],s=[null],o=[],l=this.table,a="",h=0,c=0,u=0,f=o.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;o.push(g);var _=y.options&&y.options.ranges;function x(){var t;return"number"!=typeof(t=i.pop()||y.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){n.length=n.length-2*t,s.length=s.length-t,o.length=o.length-t},"popStack"),(0,r.K)(x,"lex");for(var k,m,b,v,S,E,w,K,L,A={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==k&&(k=x()),v=l[b]&&l[b][k]),void 0===v||!v.length||!v[0]){var M="";for(E in L=[],l[b])this.terminals_[E]&&E>2&&L.push("'"+this.terminals_[E]+"'");M=y.showPosition?"Parse error on line "+(h+1)+":\n"+y.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(M,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:L})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(v[0]){case 1:n.push(k),s.push(y.yytext),o.push(y.yylloc),n.push(v[1]),k=null,m?(k=m,m=null):(c=y.yyleng,a=y.yytext,h=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(w=this.productions_[v[1]][1],A.$=s[s.length-w],A._$={first_line:o[o.length-(w||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(w||1)].first_column,last_column:o[o.length-1].last_column},_&&(A._$.range=[o[o.length-(w||1)].range[0],o[o.length-1].range[1]]),void 0!==(S=this.performAction.apply(A,[a,c,h,d,v[1],s,o].concat(f))))return S;w&&(n=n.slice(0,-1*w*2),s=s.slice(0,-1*w),o=o.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),s.push(A.$),o.push(A._$),K=l[n[n.length-2]][n[n.length-1]],n.push(K);break;case 3:return!0}}return!0},"parse")};function o(){this.yy={}}return s.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:(0,r.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(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+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in r)this[s]=r[s];return!1},"test_match"),next:(0,r.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),s=0;s<r.length;s++)if((n=this._input.match(this.rules[r[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,n,i){switch(n){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}},(0,r.K)(o,"Parser"),o.prototype=s,s.Parser=o,new o}();C.parser=C;var D=[],O=[],j=new Map,z=(0,r.K)(()=>{D=[],O=[],j=new Map,(0,i.IU)()},"clear"),F=class{constructor(t,e,n=0){this.source=t,this.target=e,this.value=n}static{(0,r.K)(this,"SankeyLink")}},U=(0,r.K)((t,e,n)=>{D.push(new F(t,e,n))},"addLink"),W=class{constructor(t){this.ID=t}static{(0,r.K)(this,"SankeyNode")}},V=(0,r.K)(t=>{t=i.Y2.sanitizeText(t,(0,i.D7)());let e=j.get(t);return void 0===e&&(e=new W(t),j.set(t,e),O.push(e)),e},"findOrCreateNode"),G=(0,r.K)(()=>O,"getNodes"),X=(0,r.K)(()=>D,"getLinks"),Y=(0,r.K)(()=>({nodes:O.map(t=>({id:t.ID})),links:D.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),q={nodesMap:j,getConfig:(0,r.K)(()=>(0,i.D7)().sankey,"getConfig"),getNodes:G,getLinks:X,getGraph:Y,addLink:U,findOrCreateNode:V,getAccTitle:i.iN,setAccTitle:i.SV,getAccDescription:i.m7,setAccDescription:i.EI,getDiagramTitle:i.ab,setDiagramTitle:i.ke,clear:z},B=class t{static{(0,r.K)(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},Q={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?o(t.sourceLinks,l)-1:0},justify:a},R=(0,r.K)(t=>{let e=0,n=0;for(let i of t){let t=i.value??0;t>e&&(e=t,n=i.layer??0)}return n},"findCentralNodeLayer"),Z=(0,r.K)(function(t,e,n,l){let b,v,{securityLevel:S,sankey:E}=(0,i.D7)(),C=i.ME.sankey;"sandbox"===S&&(b=(0,s.Ltv)("#i"+e));let D="sandbox"===S?(0,s.Ltv)(b.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),O="sandbox"===S?D.select(`[id="${e}"]`):(0,s.Ltv)(`[id="${e}"]`),j=E?.width??C.width,z=E?.height??C.width,F=E?.useMaxWidth??C.useMaxWidth,U=E?.nodeAlignment??C.nodeAlignment,W=E?.prefix??C.prefix,V=E?.suffix??C.suffix,G=E?.showValues??C.showValues,X=E?.nodeWidth??C.nodeWidth??10,Y=E?.nodePadding??C.nodePadding??12,q=E?.labelStyle??C.labelStyle??"legacy",Z=E?.nodeColors??{},H=l.db.getGraph(),J=Q[U];(function(){let t,e,n=0,i=0,r=1,s=1,l=24,b=8,v,S=g,E=a,w=_,K=x,L=6;function A(){let a={nodes:w.apply(null,arguments),links:K.apply(null,arguments)};return function({nodes:t,links:n}){for(let[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];let i=new Map(t.map((e,n)=>[S(e,n,t),e]));for(let[t,e]of n.entries()){e.index=t;let{source:n,target:r}=e;"object"!=typeof n&&(n=e.source=k(i,n)),"object"!=typeof r&&(r=e.target=k(i,r)),n.sourceLinks.push(e),r.targetLinks.push(e)}if(null!=e)for(let{sourceLinks:n,targetLinks:i}of t)n.sort(e),i.sort(e)}(a),function({nodes:t}){for(let e of t)e.value=void 0===e.fixedValue?Math.max(h(e.sourceLinks,p),h(e.targetLinks,p)):e.fixedValue}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{target:e}of(t.depth=r,t.sourceLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{source:e}of(t.height=r,t.targetLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function(a){let u=function({nodes:e}){let i=c(e,t=>t.depth)+1,s=(r-n-l)/(i-1),o=Array(i);for(let t of e){let e=Math.max(0,Math.min(i-1,Math.floor(E.call(null,t,i))));t.layer=e,t.x0=n+e*s,t.x1=t.x0+l,o[e]?o[e].push(t):o[e]=[t]}if(t)for(let e of o)e.sort(t);return o}(a);v=Math.min(b,(s-i)/(c(u,t=>t.length)-1));let g=o(u,t=>(s-i-(t.length-1)*v)/h(t,p));for(let t of u){let n=i;for(let e of t)for(let t of(e.y0=n,e.y1=n+e.value*g,n=e.y1+v,e.sourceLinks))t.width=t.value*g;n=(s-n+v)/(t.length+1);for(let e=0;e<t.length;++e){let i=t[e];i.y0+=n*(e+1),i.y1+=n*(e+1)}var _=t;if(void 0===e)for(let{sourceLinks:t,targetLinks:e}of _)t.sort(y),e.sort(f)}for(let e=0;e<L;++e){let n=Math.pow(.99,e),i=Math.max(1-n,(e+1)/L);(function(e,n,i){for(let r=e.length,s=r-2;s>=0;--s){let r=e[s];for(let t of r){let e=0,i=0;for(let{target:n,value:r}of t.sourceLinks){let s=r*(n.layer-t.layer);e+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*v/2;for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n+=r+v}for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n-=r}return n}(t,n)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,P(t)}void 0===t&&r.sort(d),M(r,i)}})(u,n,i),function(e,n,i){for(let r=1,s=e.length;r<s;++r){let s=e[r];for(let t of s){let e=0,i=0;for(let{source:n,value:r}of t.targetLinks){let s=r*(t.layer-n.layer);e+=function(t,e){let n=t.y0-(t.sourceLinks.length-1)*v/2;for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n+=r+v}for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n-=r}return n}(n,t)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,P(t)}void 0===t&&s.sort(d),M(s,i)}}(u,n,i)}}(a),m(a),a}function M(t,e){let n=t.length>>1,r=t[n];T(t,r.y0-v,n-1,e),I(t,r.y1+v,n+1,e),T(t,s,t.length-1,e),I(t,i,0,e)}function I(t,e,n,i){for(;n<t.length;++n){let r=t[n],s=(e-r.y0)*i;s>1e-6&&(r.y0+=s,r.y1+=s),e=r.y1+v}}function T(t,e,n,i){for(;n>=0;--n){let r=t[n],s=(r.y1-e)*i;s>1e-6&&(r.y0-=s,r.y1-=s),e=r.y0-v}}function P({sourceLinks:t,targetLinks:n}){if(void 0===e){for(let{source:{sourceLinks:t}}of n)t.sort(y);for(let{target:{targetLinks:e}}of t)e.sort(f)}}return A.update=function(t){return m(t),t},A.nodeId=function(t){return arguments.length?(S="function"==typeof t?t:u(t),A):S},A.nodeAlign=function(t){return arguments.length?(E="function"==typeof t?t:u(t),A):E},A.nodeSort=function(e){return arguments.length?(t=e,A):t},A.nodeWidth=function(t){return arguments.length?(l=+t,A):l},A.nodePadding=function(t){return arguments.length?(b=v=+t,A):b},A.nodes=function(t){return arguments.length?(w="function"==typeof t?t:u(t),A):w},A.links=function(t){return arguments.length?(K="function"==typeof t?t:u(t),A):K},A.linkSort=function(t){return arguments.length?(e=t,A):e},A.size=function(t){return arguments.length?(n=i=0,r=+t[0],s=+t[1],A):[r-n,s-i]},A.extent=function(t){return arguments.length?(n=+t[0][0],r=+t[1][0],i=+t[0][1],s=+t[1][1],A):[[n,i],[r,s]]},A.iterations=function(t){return arguments.length?(L=+t,A):L},A})().nodeId(t=>t.id).nodeWidth(X).nodePadding(Y+15*!!G).nodeAlign(J).extent([[0,0],[j,z]])(H);let tt=R(H.nodes),te=(0,s.UMr)(s.zt),tn=(0,r.K)(t=>Z[t]??te(t),"getNodeColor");O.append("g").attr("class","nodes").selectAll(".node").data(H.nodes).join("g").attr("class","node").attr("id",t=>(t.uid=B.next("node-")).id).attr("transform",function(t){return"translate("+t.x0+","+t.y0+")"}).attr("x",t=>t.x0).attr("y",t=>t.y0).append("rect").attr("height",t=>t.y1-t.y0).attr("width",t=>t.x1-t.x0).attr("fill",t=>tn(t.id));let ti=(0,r.K)(({id:t,value:e})=>G?`${t}
|
|
2
|
-
${W}${Math.round(100*e)/100}${V}`:t,"getText"),tr=(0,r.K)(t=>"outlined"===q?(t.layer??0)<tt?{x:t.x0-6,anchor:"end"}:{x:t.x1+6,anchor:"start"}:t.x0<j/2?{x:t.x1+6,anchor:"start"}:{x:t.x0-6,anchor:"end"},"getLabelPosition"),ts=O.append("g").attr("class","node-labels").attr("font-size",14),to=(0,r.K)(t=>ts.selectAll(t?`.${t}`:"text").data(H.nodes).join("text").attr("class",t??null).attr("x",t=>tr(t).x).attr("y",t=>(t.y1+t.y0)/2).attr("dy",`${G?"0":"0.35"}em`).attr("text-anchor",t=>tr(t).anchor).text(ti),"appendLabel");"outlined"===q?(to("sankey-label-bg"),to("sankey-label-fg")):to();let tl=O.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(H.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),ta=E?.linkColor??"gradient";if("gradient"===ta){let t=tl.append("linearGradient").attr("id",t=>(t.uid=B.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",t=>t.source.x1).attr("x2",t=>t.target.x0);t.append("stop").attr("offset","0%").attr("stop-color",t=>tn(t.source.id)),t.append("stop").attr("offset","100%").attr("stop-color",t=>tn(t.target.id))}switch(ta){case"gradient":v=(0,r.K)(t=>t.uid,"coloring");break;case"source":v=(0,r.K)(t=>tn(t.source.id),"coloring");break;case"target":v=(0,r.K)(t=>tn(t.target.id),"coloring");break;default:v=ta}tl.append("path").attr("d",(function(t){var e=I,n=T,i=A,r=M,s=null;function o(){var o,l=K.call(arguments),a=e.apply(this,l),h=n.apply(this,l);if(s||(s=o=w()),t(s,+i.apply(this,(l[0]=a,l)),+r.apply(this,l),+i.apply(this,(l[0]=h,l)),+r.apply(this,l)),o)return s=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(i="function"==typeof t?t:L(+t),o):i},o.y=function(t){return arguments.length?(r="function"==typeof t?t:L(+t),o):r},o.context=function(t){return arguments.length?(s=null==t?null:t,o):s},o})(P).source($).target(N)).attr("stroke",v).attr("stroke-width",t=>Math.max(1,t.width)),(0,i.ot)(void 0,O,0,F)},"draw"),H=(0,r.K)(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),J=(0,r.K)(t=>`.label {
|
|
3
|
-
font-family: ${t.fontFamily};
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.node-labels {
|
|
7
|
-
font-family: ${t.fontFamily};
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* Outlined label style - background stroke for better readability */
|
|
11
|
-
.sankey-label-bg {
|
|
12
|
-
stroke: ${t.mainBkg||t.background||"#fff"};
|
|
13
|
-
stroke-width: 4px;
|
|
14
|
-
stroke-linejoin: round;
|
|
15
|
-
paint-order: stroke;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Foreground label text */
|
|
19
|
-
.sankey-label-fg {
|
|
20
|
-
fill: ${t.textColor};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Node styling */
|
|
24
|
-
.node rect {
|
|
25
|
-
shape-rendering: crispEdges;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Link styling */
|
|
29
|
-
.link {
|
|
30
|
-
fill: none;
|
|
31
|
-
stroke-opacity: 0.5;
|
|
32
|
-
mix-blend-mode: multiply;
|
|
33
|
-
}
|
|
34
|
-
`,"getStyles"),tt=C.parse.bind(C);C.parse=t=>tt(H(t));var te={styles:J,parser:C,db:q,renderer:{draw:Z}}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=3088;export const __rspack_esm_ids=[3088];export const __webpack_modules__={46755(e,n,r){r.d(n,{Zp:()=>nJ});var t,o,i,u=r(8058),a=r(12926),d=0,c=function(e){var n=++d;return(0,a.A)(e)+n},f=r(39142),s=r(65325),h=function(e){return(null==e?0:e.length)?(0,s.A)(e,1):[]},v=r(74722),g=Math.ceil,l=Math.max,p=function(e,n,r,t){for(var o=-1,i=l(g((n-e)/(r||1)),0),u=Array(i);i--;)u[t?i:++o]=e,e+=r;return u},A=r(66984),w=r(38446),b=r(25353),y=r(23149),m=function(e,n,r){if(!(0,y.A)(r))return!1;var t=typeof n;return("number"==t?!!((0,w.A)(r)&&(0,b.A)(n,r.length)):"string"==t&&n in r)&&(0,A.A)(r[n],e)},x=/\s/,k=function(e){for(var n=e.length;n--&&x.test(e.charAt(n)););return n},E=/^\s+/,O=r(61882),_=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,P=/^0o[0-7]+$/i,N=parseInt,R=function(e){if("number"==typeof e)return e;if((0,O.A)(e))return 0/0;if((0,y.A)(e)){var n,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,y.A)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(n=e)?n.slice(0,k(n)+1).replace(E,""):n;var t=j.test(e);return t||P.test(e)?N(e.slice(2),t?2:8):_.test(e)?0/0:+e},M=function(e){return e?1/0===(e=R(e))||-1/0===e?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0},L=function(e,n,r){return r&&"number"!=typeof r&&m(e,n,r)&&(n=r=void 0),e=M(e),void 0===n?(n=e,e=0):n=M(n),r=void 0===r?e<n?1:-1:M(r),p(e,n,r,void 0)},C=r(697);class T{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,n=e._prev;if(n!==e)return G(n),n}enqueue(e){var n=this._sentinel;e._prev&&e._next&&G(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){for(var e=[],n=this._sentinel,r=n._prev;r!==n;)e.push(JSON.stringify(r,S)),r=r._prev;return"["+e.join(", ")+"]"}}function G(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function S(e,n){if("_next"!==e&&"_prev"!==e)return n}var B=f.A(1);function q(e,n,r,t,o){var i=o?[]:void 0;return u.A(e.inEdges(t.v),function(t){var u=e.edge(t),a=e.node(t.v);o&&i.push({v:t.v,w:t.w}),a.out-=u,z(n,r,a)}),u.A(e.outEdges(t.v),function(t){var o=e.edge(t),i=t.w,u=e.node(i);u.in-=o,z(n,r,u)}),e.removeNode(t.v),i}function z(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var I=r(74743),D=r(52528),F=function(e,n,r){(void 0===r||(0,A.A)(e[n],r))&&(void 0!==r||n in e)||(0,D.A)(e,n,r)},V=r(62022),$=r(80154),J=r(1801),Z=r(39759),H=r(97648),K=r(58390),Q=r(92049),U=r(53533),W=r(91223),X=r(89610),Y=r(47627),ee=r(15647),en=r(53098),er=Object.prototype,et=Function.prototype.toString,eo=er.hasOwnProperty,ei=et.call(Object),eu=function(e){if(!(0,en.A)(e)||"[object Object]"!=(0,Y.A)(e))return!1;var n=(0,ee.A)(e);if(null===n)return!0;var r=eo.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&et.call(r)==ei},ea=r(96212),ed=function(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]},ec=r(22031),ef=r(29865),es=function(e,n,r,t,o,i,u){var a=ed(e,r),d=ed(n,r),c=u.get(d);if(c)return void F(e,r,c);var f=i?i(a,d,r+"",e,n,u):void 0,s=void 0===f;if(s){var h=(0,Q.A)(d),v=!h&&(0,W.A)(d),g=!h&&!v&&(0,ea.A)(d);(f=d,h||v||g)?(0,Q.A)(a)?f=a:(0,U.A)(a)?f=(0,Z.A)(a):v?(s=!1,f=(0,$.A)(d,!0)):g?(s=!1,f=(0,J.A)(d,!0)):f=[]:eu(d)||(0,K.A)(d)?(f=a,(0,K.A)(a))?f=(0,ec.A)(a,(0,ef.A)(a)):(!(0,y.A)(a)||(0,X.A)(a))&&(f=(0,H.A)(d)):s=!1}s&&(u.set(d,f),o(f,d,t,i,u),u.delete(d)),F(e,r,f)},eh=function e(n,r,t,o,i){n!==r&&(0,V.A)(r,function(u,a){if(i||(i=new I.A),(0,y.A)(u))es(n,r,a,t,e,o,i);else{var d=o?o(ed(n,a),u,a+"",n,r,i):void 0;void 0===d&&(d=u),F(n,a,d)}},ef.A)},ev=r(1945),eg=(t=function(e,n,r){eh(e,n,r)},(0,ev.A)(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&m(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var a=n[r];a&&t(e,a,r)}return e})),el=r(66318),ep=r(52851),eA=r(46008),ew=r(30901),eb=function(e,n,r,t){if(!(0,y.A)(e))return e;n=(0,eA.A)(n,e);for(var o=-1,i=n.length,u=i-1,a=e;null!=a&&++o<i;){var d=(0,ew.A)(n[o]),c=r;if("__proto__"===d||"constructor"===d||"prototype"===d)break;if(o!=u){var f=a[d];void 0===(c=t?t(f,d,a):void 0)&&(c=(0,y.A)(f)?f:(0,b.A)(n[o+1])?[]:{})}(0,ep.A)(a,d,c),a=a[d]}return e},ey=function(e,n,r){for(var t=-1,o=n.length,i={};++t<o;){var u=n[t],a=(0,el.A)(e,u);r(a,u)&&eb(i,(0,eA.A)(u,e),a)}return i},em=r(30005),ex=r(22254),ek=r(88551),eE=(o=function(e,n){return null==e?{}:ey(e,n,function(n,r){return(0,em.A)(e,r)})},(0,ek.A)((0,ex.A)(o,void 0,h),o+"")),eO=Object.prototype,e_=eO.hasOwnProperty,ej=(0,ev.A)(function(e,n){e=Object(e);var r=-1,t=n.length,o=t>2?n[2]:void 0;for(o&&m(n[0],n[1],o)&&(t=1);++r<t;)for(var i=n[r],u=(0,ef.A)(i),a=-1,d=u.length;++a<d;){var c=u[a],f=e[c];(void 0===f||(0,A.A)(f,eO[c])&&!e_.call(e,c))&&(e[c]=i[c])}return e}),eP=function(e,n,r){for(var t=-1,o=e.length;++t<o;){var i=e[t],u=n(i);if(null!=u&&(void 0===a?u==u&&!(0,O.A)(u):r(u,a)))var a=u,d=i}return d},eN=function(e,n){return e>n},eR=r(29008),eM=function(e){return e&&e.length?eP(e,eR.A,eN):void 0},eL=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0},eC=r(79841),eT=r(24930),eG=function(e,n){var r={};return n=(0,eT.A)(n,3),(0,eC.A)(e,function(e,t,o){(0,D.A)(r,t,n(e,t,o))}),r},eS=r(69592),eB=function(e,n){return e<n},eq=function(e){return e&&e.length?eP(e,eR.A,eB):void 0},ez=Object.prototype.hasOwnProperty,eI=function(e,n){return null!=e&&ez.call(e,n)},eD=r(85054),eF=function(e,n){return null!=e&&(0,eD.A)(e,n,eI)},eV=r(41917),e$=function(){return eV.A.Date.now()};function eJ(e,n,r,t){var o;do o=c(t);while(e.hasNode(o))return r.dummy=n,e.setNode(o,r),o}function eZ(e){var n=new C.T({multigraph:e.isMultigraph()}).setGraph(e.graph());return u.A(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),u.A(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function eH(e,n){var r,t,o=e.x,i=e.y,u=n.x-o,a=n.y-i,d=e.width/2,c=e.height/2;if(!u&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*d>Math.abs(u)*c?(a<0&&(c=-c),r=c*u/a,t=c):(u<0&&(d=-d),r=d,t=d*a/u),{x:o+r,y:i+t}}function eK(e){var n=v.A(L(eU(e)+1),function(){return[]});return u.A(e.nodes(),function(r){var t=e.node(r),o=t.rank;eS.A(o)||(n[o][t.order]=r)}),n}function eQ(e,n,r,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=t),eJ(e,"border",o,n)}function eU(e){return eM(v.A(e.nodes(),function(n){var r=e.node(n).rank;if(!eS.A(r))return r}))}function eW(e,n){var r=e$();try{return n()}finally{console.log(e+" time: "+(e$()-r)+"ms")}}function eX(e,n){return n()}function eY(e,n,r,t,o,i){var u=o[n][i-1],a=eJ(e,"border",{width:0,height:0,rank:i,borderType:n},r);o[n][i]=a,e.setParent(a,t),u&&e.setEdge(u,a,{weight:1})}function e0(e){u.A(e.nodes(),function(n){e1(e.node(n))}),u.A(e.edges(),function(n){e1(e.edge(n))})}function e1(e){var n=e.width;e.width=e.height,e.height=n}function e2(e){e.y=-e.y}function e5(e){var n=e.x;e.x=e.y,e.y=n}var e3=function(e,n){return e&&e.length?eP(e,(0,eT.A)(n,2),eB):void 0};function e8(e){var n={};u.A(e.sources(),function r(t){var o=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return o.rank;n[t]=!0;var i=eq(v.A(e.outEdges(t),function(n){return r(n.w)-e.edge(n).minlen}));return(1/0===i||null==i)&&(i=0),o.rank=i})}function e9(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function e4(e){var n,r,t,o,i=new C.T({directed:!1}),a=e.nodes()[0],d=e.nodeCount();for(i.setNode(a,{});n=i,r=e,u.A(n.nodes(),function e(t){u.A(r.nodeEdges(t),function(o){var i=o.v,u=t===i?o.w:i;n.hasNode(u)||e9(r,o)||(n.setNode(u,{}),n.setEdge(t,u,{}),e(u))})}),n.nodeCount()<d;)t=function(e,n){return e3(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return e9(n,r)})}(i,e),o=i.hasNode(t.v)?e9(e,t):-e9(e,t),function(e,n,r){u.A(e.nodes(),function(e){n.node(e).rank+=r})}(i,e,o);return i}var e6=r(27422),e7=r(25707),ne=function(e){var n=M(e),r=n%1;return n==n?r?n-r:n:0},nn=Math.max,nr=(i=function(e,n,r){var t=null==e?0:e.length;if(!t)return -1;var o=null==r?0:ne(r);return o<0&&(o=nn(t+o,0)),(0,e7.A)(e,(0,eT.A)(n,3),o)},function(e,n,r){var t=Object(e);if(!(0,w.A)(e)){var o=(0,eT.A)(n,3);e=(0,e6.A)(e),n=function(e){return o(t[e],e,t)}}var u=i(e,n,r);return u>-1?t[o?e[u]:u]:void 0}),nt=r(41629);f.A(1),f.A(1);var no=r(54418),ni=r(20351),nu=(0,r(70805).A)("length"),na=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),nd="\\ud800-\\udfff",nc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nf="\\ud83c[\\udffb-\\udfff]",ns="[^"+nd+"]",nh="(?:\\ud83c[\\udde6-\\uddff]){2}",nv="[\\ud800-\\udbff][\\udc00-\\udfff]",ng="(?:"+nc+"|"+nf+")?",nl="[\\ufe0e\\ufe0f]?",np="(?:\\u200d(?:"+[ns,nh,nv].join("|")+")"+nl+ng+")*",nA=RegExp(nf+"(?="+nf+")|"+("(?:"+[ns+nc+"?",nc,nh,nv,"["+nd+"]"].join("|"))+")"+(nl+ng+np),"g");function nw(){}function nb(e,n,r){Q.A(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],i={};return u.A(n,function(n){if(!e.hasNode(n))throw Error("Graph does not have node: "+n);!function e(n,r,t,o,i,a){!Object.prototype.hasOwnProperty.call(o,r)&&(o[r]=!0,t||a.push(r),u.A(i(r),function(r){e(n,r,t,o,i,a)}),t&&a.push(r))}(e,n,"post"===r,i,t,o)}),o}function ny(e){n=e,r=new C.T().setGraph(n.graph()),u.A(n.nodes(),function(e){r.setNode(e,n.node(e))}),u.A(n.edges(),function(e){var t=r.edge(e.v,e.w)||{weight:0,minlen:1},o=n.edge(e);r.setEdge(e.v,e.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),e8(e=r);var n,r,t,o,i=e4(e);for(nk(i),nm(i,e);t=nE(i);)o=nO(i,e,t),n_(i,e,t,o)}function nm(e,n){var r=nb(e,e.nodes(),"post");r=r.slice(0,r.length-1),u.A(r,function(r){var t,o,i,u;t=e,o=n,i=r,u=t.node(i).parent,t.edge(i,u).cutvalue=nx(t,o,i)})}function nx(e,n,r){var t=e.node(r).parent,o=!0,i=n.edge(r,t),a=0;return i||(o=!1,i=n.edge(t,r)),a=i.weight,u.A(n.nodeEdges(r),function(i){var u=i.v===r,d=u?i.w:i.v;if(d!==t){var c,f,s,h=u===o,v=n.edge(i).weight;if(a+=h?v:-v,c=e,f=r,s=d,c.hasEdge(f,s)){var g=e.edge(r,d).cutvalue;a+=h?-g:g}}}),a}function nk(e,n){arguments.length<2&&(n=e.nodes()[0]),function e(n,r,t,o,i){var a=t,d=n.node(o);return r[o]=!0,u.A(n.neighbors(o),function(i){Object.prototype.hasOwnProperty.call(r,i)||(t=e(n,r,t,i,o))}),d.low=a,d.lim=t++,i?d.parent=i:delete d.parent,t}(e,{},1,n)}function nE(e){return nr(e.edges(),function(n){return e.edge(n).cutvalue<0})}function nO(e,n,r){var t=r.v,o=r.w;n.hasEdge(t,o)||(t=r.w,o=r.v);var i=e.node(t),u=e.node(o),a=i,d=!1;return i.lim>u.lim&&(a=u,d=!0),e3(nt.A(n.edges(),function(n){return d===nj(e,e.node(n.v),a)&&d!==nj(e,e.node(n.w),a)}),function(e){return e9(n,e)})}function n_(e,n,r,t){var o,i,a,d,c=r.v,f=r.w;e.removeEdge(c,f),e.setEdge(t.v,t.w,{}),nk(e),nm(e,n),o=e,i=n,a=nr(o.nodes(),function(e){return!i.node(e).parent}),d=(d=nb(o,a,"pre")).slice(1),u.A(d,function(e){var n=o.node(e).parent,r=i.edge(e,n),t=!1;r||(r=i.edge(n,e),t=!0),i.node(e).rank=i.node(n).rank+(t?r.minlen:-r.minlen)})}function nj(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}nw.prototype=Error(),r(15219),ny.initLowLimValues=nk,ny.initCutValues=nm,ny.calcCutValue=nx,ny.leaveEdge=nE,ny.enterEdge=nO,ny.exchangeEdges=n_;var nP=r(74899),nN=r(6517),nR=r(63190),nM=function(e,n,r){for(var t=-1,o=e.length,i=n.length,u={};++t<o;){var a=t<i?n[t]:void 0;r(u,e[t],a)}return u},nL=r(45572),nC=r(52568),nT=function(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e},nG=r(52789),nS=function(e,n){if(e!==n){var r=void 0!==e,t=null===e,o=e==e,i=(0,O.A)(e),u=void 0!==n,a=null===n,d=n==n,c=(0,O.A)(n);if(!a&&!c&&!i&&e>n||i&&u&&d&&!a&&!c||t&&u&&d||!r&&d||!o)return 1;if(!t&&!i&&!c&&e<n||c&&r&&o&&!t&&!i||a&&r&&o||!u&&o||!d)return -1}return 0},nB=function(e,n,r){for(var t=-1,o=e.criteria,i=n.criteria,u=o.length,a=r.length;++t<u;){var d=nS(o[t],i[t]);if(d){if(t>=a)return d;return d*("desc"==r[t]?-1:1)}}return e.index-n.index},nq=function(e,n,r){n=n.length?(0,nL.A)(n,function(e){return(0,Q.A)(e)?function(n){return(0,el.A)(n,1===e.length?e[0]:e)}:e}):[eR.A];var t=-1;return n=(0,nL.A)(n,(0,nG.A)(eT.A)),nT((0,nC.A)(e,function(e,r,o){return{criteria:(0,nL.A)(n,function(n){return n(e)}),index:++t,value:e}}),function(e,n){return nB(e,n,r)})},nz=(0,ev.A)(function(e,n){if(null==e)return[];var r=n.length;return r>1&&m(e,n[0],n[1])?n=[]:r>2&&m(n[0],n[1],n[2])&&(n=[n[0]]),nq(e,(0,s.A)(n,1),[])});function nI(e,n,r){for(var t;n.length&&(t=eL(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function nD(e,n,r){return v.A(n,function(n){var t,o;return t=function(e){for(var n;e.hasNode(n=c("_root")););return n}(e),o=new C.T({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(n){return e.node(n)}),u.A(e.nodes(),function(i){var a=e.node(i),d=e.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(o.setNode(i),o.setParent(i,d||t),u.A(e[r](i),function(n){var r=n.v===i?n.w:n.v,t=o.edge(r,i),u=eS.A(t)?0:t.weight;o.setEdge(r,i,{weight:e.edge(n).weight+u})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&o.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),o})}function nF(e,n){u.A(n,function(n){u.A(n,function(n,r){e.node(n).order=r})})}var nV=r(99922);function n$(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0}),Object.defineProperty(e[n],r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function nJ(e,n){var r=n&&n.debugTiming?eW:eX;r("layout",()=>{var n=r(" buildLayoutGraph",()=>{var n,r,t;return n=e,r=new C.T({multigraph:!0,compound:!0}),t=n1(n.graph()),r.setGraph(eg({},nH,n0(t,nZ),eE(t,nK))),u.A(n.nodes(),function(e){var t=n1(n.node(e));r.setNode(e,ej(n0(t,nQ),nU)),r.setParent(e,n.parent(e))}),u.A(n.edges(),function(e){var t=n1(n.edge(e));r.setEdge(e,eg({},nX,n0(t,nW),eE(t,nY)))}),r});r(" runLayout",()=>{var e,t;return e=n,void((t=r)(" makeSpaceForEdgeLabels",()=>{var n,r;return r=(n=e).graph(),void(r.ranksep/=2,u.A(n.edges(),function(e){var t=n.edge(e);t.minlen*=2,"c"!==t.labelpos.toLowerCase()&&("TB"===r.rankdir||"BT"===r.rankdir?t.width+=t.labeloffset:t.height+=t.labeloffset)}))}),t(" removeSelfEdges",()=>{var n;return n=e,void u.A(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:n.edge(e)}),n.removeEdge(e)}})}),t(" acyclic",()=>{var n,r,t,o,i,a;return n="greedy"===e.graph().acyclicer?function(e,n){if(1>=e.nodeCount())return[];var r,t,o,i,a,d,c,f=(r=e,t=n||B,o=new C.T,i=0,a=0,u.A(r.nodes(),function(e){o.setNode(e,{v:e,in:0,out:0})}),u.A(r.edges(),function(e){var n=o.edge(e.v,e.w)||0,r=t(e);o.setEdge(e.v,e.w,n+r),a=Math.max(a,o.node(e.v).out+=r),i=Math.max(i,o.node(e.w).in+=r)}),d=L(a+i+3).map(function(){return new T}),c=i+1,u.A(o.nodes(),function(e){z(d,c,o.node(e))}),{graph:o,buckets:d,zeroIdx:c}),s=function(e,n,r){for(var t,o=[],i=n[n.length-1],u=n[0];e.nodeCount();){for(;t=u.dequeue();)q(e,n,r,t);for(;t=i.dequeue();)q(e,n,r,t);if(e.nodeCount()){for(var a=n.length-2;a>0;--a)if(t=n[a].dequeue()){o=o.concat(q(e,n,r,t,!0));break}}}return o}(f.graph,f.buckets,f.zeroIdx);return h(v.A(s,function(n){return e.outEdges(n.v,n.w)}))}(e,(r=e,function(e){return r.edge(e).weight})):(t=e,o=[],i={},a={},u.A(t.nodes(),function e(n){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,i[n]=!0,u.A(t.outEdges(n),function(n){Object.prototype.hasOwnProperty.call(i,n.w)?o.push(n):e(n.w)}),delete i[n])}),o),void u.A(n,function(n){var r=e.edge(n);e.removeEdge(n),r.forwardName=n.name,r.reversed=!0,e.setEdge(n.w,n.v,r,c("rev"))})}),t(" nestingGraph.run",()=>{var n,r,t,o,i,a,d,c;return n=eJ(e,"root",{},"_root"),a=e,d={},u.A(a.children(),function(e){!function e(n,r){var t=a.children(n);t&&t.length&&u.A(t,function(n){e(n,r+1)}),d[n]=r}(e,1)}),r=d,o=2*(t=eM(nP.A(r))-1)+1,e.graph().nestingRoot=n,u.A(e.edges(),function(n){e.edge(n).minlen*=o}),i=(c=e,nN.A(c.edges(),function(e,n){return e+c.edge(n).weight},0)+1),void(u.A(e.children(),function(a){!function e(n,r,t,o,i,a,d){var c=n.children(d);if(!c.length){d!==r&&n.setEdge(r,d,{weight:0,minlen:t});return}var f=eQ(n,"_bt"),s=eQ(n,"_bb"),h=n.node(d);n.setParent(f,d),h.borderTop=f,n.setParent(s,d),h.borderBottom=s,u.A(c,function(u){e(n,r,t,o,i,a,u);var c=n.node(u),h=c.borderTop?c.borderTop:u,v=c.borderBottom?c.borderBottom:u,g=c.borderTop?o:2*o,l=h!==v?1:i-a[d]+1;n.setEdge(f,h,{weight:g,minlen:l,nestingEdge:!0}),n.setEdge(v,s,{weight:g,minlen:l,nestingEdge:!0})}),n.parent(d)||n.setEdge(r,f,{weight:0,minlen:i+a[d]})}(e,n,o,i,t,r,a)}),e.graph().nodeRankFactor=o)}),t(" rank",()=>(function(e){switch(e.graph().ranker){case"network-simplex":default:ny(e);break;case"tight-tree":var n;e8(n=e),e4(n);break;case"longest-path":e8(e)}})(eZ(e))),t(" injectEdgeLabelProxies",()=>{var n;return n=e,void u.A(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),o={rank:(n.node(e.w).rank-t.rank)/2+t.rank,e:e};eJ(n,"edge-proxy",o,"_ep")}})}),t(" removeEmptyRanks",()=>{var n,r,t,o;return n=eq(v.A(e.nodes(),function(n){return e.node(n).rank})),r=[],u.A(e.nodes(),function(t){var o=e.node(t).rank-n;r[o]||(r[o]=[]),r[o].push(t)}),t=0,o=e.graph().nodeRankFactor,void u.A(r,function(n,r){eS.A(n)&&r%o!=0?--t:t&&u.A(n,function(n){e.node(n).rank+=t})})}),t(" nestingGraph.cleanup",()=>{var n;return n=e.graph(),void(e.removeNode(n.nestingRoot),delete n.nestingRoot,u.A(e.edges(),function(n){e.edge(n).nestingEdge&&e.removeEdge(n)}))}),t(" normalizeRanks",()=>{var n;return n=eq(v.A(e.nodes(),function(n){return e.node(n).rank})),void u.A(e.nodes(),function(r){var t=e.node(r);eF(t,"rank")&&(t.rank-=n)})}),t(" assignRankMinMax",()=>{var n,r;return n=e,r=0,void(u.A(n.nodes(),function(e){var t=n.node(e);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,r=eM(r,t.maxRank))}),n.graph().maxRank=r)}),t(" removeEdgeLabelProxies",()=>{var n;return n=e,void u.A(n.nodes(),function(e){var r=n.node(e);"edge-proxy"===r.dummy&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}),t(" normalize.run",()=>{e.graph().dummyChains=[],u.A(e.edges(),function(n){!function(e,n){var r,t,o=n.v,i=e.node(o).rank,u=n.w,a=e.node(u).rank,d=n.name,c=e.edge(n),f=c.labelRank;if(a!==i+1){e.removeEdge(n);var s=void 0;for(t=0,++i;i<a;++t,++i)c.points=[],r=eJ(e,"edge",s={width:0,height:0,edgeLabel:c,edgeObj:n,rank:i},"_d"),i===f&&(s.width=c.width,s.height=c.height,s.dummy="edge-label",s.labelpos=c.labelpos),e.setEdge(o,r,{weight:c.weight},d),0===t&&e.graph().dummyChains.push(r),o=r;e.setEdge(o,u,{weight:c.weight},d)}}(e,n)})}),t(" parentDummyChains",()=>{var n,r,t,o;return r=e,t={},o=0,u.A(r.children(),function e(n){var i=o;u.A(r.children(n),e),t[n]={low:i,lim:o++}}),n=t,void u.A(e.graph().dummyChains,function(r){for(var t=e.node(r),o=t.edgeObj,i=function(e,n,r,t){var o,i,u=[],a=[],d=Math.min(n[r].low,n[t].low),c=Math.max(n[r].lim,n[t].lim);o=r;do u.push(o=e.parent(o));while(o&&(n[o].low>d||c>n[o].lim))for(i=o,o=t;(o=e.parent(o))!==i;)a.push(o);return{path:u.concat(a.reverse()),lca:i}}(e,n,o.v,o.w),u=i.path,a=i.lca,d=0,c=u[0],f=!0;r!==o.w;){if(t=e.node(r),f){for(;(c=u[d])!==a&&e.node(c).maxRank<t.rank;)d++;c===a&&(f=!1)}if(!f){for(;d<u.length-1&&e.node(c=u[d+1]).minRank<=t.rank;)d++;c=u[d]}e.setParent(r,c),r=e.successors(r)[0]}})}),t(" addBorderSegments",()=>{u.A(e.children(),function n(r){var t=e.children(r),o=e.node(r);if(t.length&&u.A(t,n),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,a=o.maxRank+1;i<a;++i)eY(e,"borderLeft","_bl",r,o,i),eY(e,"borderRight","_br",r,o,i)}})}),t(" order",()=>(function(e){var n=eU(e),r=nD(e,L(1,n+1),"inEdges"),t=nD(e,L(n-1,-1,-1),"outEdges"),o=(i={},a=nt.A(e.nodes(),function(n){return!e.children(n).length}),d=eM(v.A(a,function(n){return e.node(n).rank})),c=v.A(L(d+1),function(){return[]}),f=nz(a,function(n){return e.node(n).rank}),u.A(f,function n(r){eF(i,r)||(i[r]=!0,c[e.node(r).rank].push(r),u.A(e.successors(r),n))}),c);nF(e,o);for(var i,a,d,c,f,s,g=1/0,l=0,p=0;p<4;++l,++p){(function(e,n){var r=new C.T;u.A(e,function(e){var t,o,i,a=e.graph().root,d=function e(n,r,t,o){var i,a,d,c,f,s,g,l,p,A,w,b,y=n.children(r),m=n.node(r),x=m?m.borderLeft:void 0,k=m?m.borderRight:void 0,E={};x&&(y=nt.A(y,function(e){return e!==x&&e!==k}));var O=(i=y,v.A(i,function(e){var r=n.inEdges(e);if(!r.length)return{v:e};var t=nN.A(r,function(e,r){var t=n.edge(r),o=n.node(r.v);return{sum:e.sum+t.weight*o.order,weight:e.weight+t.weight}},{sum:0,weight:0});return{v:e,barycenter:t.sum/t.weight,weight:t.weight}}));u.A(O,function(r){if(n.children(r.v).length){var i,u,a=e(n,r.v,t,o);E[r.v]=a,Object.prototype.hasOwnProperty.call(a,"barycenter")&&(i=r,u=a,eS.A(i.barycenter)?(i.barycenter=u.barycenter,i.weight=u.weight):(i.barycenter=(i.barycenter*i.weight+u.barycenter*u.weight)/(i.weight+u.weight),i.weight+=u.weight))}});var _=(a={},u.A(O,function(e,n){var r=a[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};eS.A(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),u.A(t.edges(),function(e){var n=a[e.v],r=a[e.w];eS.A(n)||eS.A(r)||(r.indegree++,n.out.push(a[e.w]))}),function(e){for(var n=[];e.length;){var r=e.pop();n.push(r),u.A(r.in.reverse(),function(e){return function(n){!n.merged&&(eS.A(n.barycenter)||eS.A(e.barycenter)||n.barycenter>=e.barycenter)&&function(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}(r)),u.A(r.out,function(n){return function(r){r.in.push(n),0==--r.indegree&&e.push(r)}}(r))}return v.A(nt.A(n,function(e){return!e.merged}),function(e){return eE(e,["vs","i","barycenter","weight"])})}(nt.A(a,function(e){return!e.indegree})));!function(e,n){u.A(e,function(e){e.vs=h(e.vs.map(function(e){return n[e]?n[e].vs:e}))})}(_,E);var j=(s=(d=function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")},c={lhs:[],rhs:[]},u.A(_,function(e){d(e)?c.lhs.push(e):c.rhs.push(e)}),f=c).lhs,g=nz(f.rhs,function(e){return-e.i}),l=[],p=0,A=0,w=0,s.sort(function(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}(!!o)),w=nI(l,g,w),u.A(s,function(e){w+=e.vs.length,l.push(e.vs),p+=e.barycenter*e.weight,A+=e.weight,w=nI(l,g,w)}),b={vs:h(l)},A&&(b.barycenter=p/A,b.weight=A),b);if(x&&(j.vs=h([x,j.vs,k]),n.predecessors(x).length)){var P=n.node(n.predecessors(x)[0]),N=n.node(n.predecessors(k)[0]);Object.prototype.hasOwnProperty.call(j,"barycenter")||(j.barycenter=0,j.weight=0),j.barycenter=(j.barycenter*j.weight+P.order+N.order)/(j.weight+2),j.weight+=2}return j}(e,a,r,n);u.A(d.vs,function(n,r){e.node(n).order=r}),t=d.vs,i={},u.A(t,function(n){for(var t,u,a=e.parent(n);a;){if((t=e.parent(a))?(u=i[t],i[t]=a):(u=o,o=a),u&&u!==a)return void r.setEdge(u,a);a=t}})})})(l%2?r:t,l%4>=2),o=eK(e);var A,w=function(e,n){for(var r=0,t=1;t<n.length;++t)r+=function(e,n,r){for(var t=nM(r||[],v.A(r,function(e,n){return n})||[],ep.A),o=h(v.A(n,function(n){return nz(v.A(e.outEdges(n),function(n){return{pos:t[n.w],weight:e.edge(n).weight}}),"pos")})),i=1;i<r.length;)i<<=1;var a=2*i-1;i-=1;var d=v.A(Array(a),function(){return 0}),c=0;return u.A(o.forEach(function(e){var n=e.pos+i;d[n]+=e.weight;for(var r=0;n>0;)n%2&&(r+=d[n+1]),n=n-1>>1,d[n]+=e.weight;c+=e.weight*r})),c}(e,n[t-1],n[t]);return r}(e,o);w<g&&(p=0,A=o,s=(0,nR.A)(A,5),g=w)}nF(e,s)})(e)),t(" insertSelfEdges",()=>{var n,r;return r=eK(n=e),void u.A(r,function(e){var r=0;u.A(e,function(e,t){var o=n.node(e);o.order=t+r,u.A(o.selfEdges,function(e){eJ(n,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:t+ ++r,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),t(" adjustCoordinateSystem",()=>{var n;("lr"===(n=e.graph().rankdir.toLowerCase())||"rl"===n)&&e0(e)}),t(" position",()=>{var n,r,t,o,i,a,d,c,f,s,h,g,l,p,A,w,b;A=eK(p=n=eZ(n=e)),w=p.graph().ranksep,b=0,u.A(A,function(e){var n=eM(v.A(e,function(e){return p.node(e).height}));u.A(e,function(e){p.node(e).y=b+n/2}),b+=n+w}),o=eK(r=n),a=eg((i={},nN.A(o,function(e,n){var t=0,o=0,a=e.length,d=eL(n);return u.A(n,function(e,c){var f=function(e,n){if(e.node(n).dummy)return nr(e.predecessors(n),function(n){return e.node(n).dummy})}(r,e),s=f?r.node(f).order:a;(f||e===d)&&(u.A(n.slice(o,c+1),function(e){u.A(r.predecessors(e),function(n){var o=r.node(n),u=o.order;(u<t||s<u)&&!(o.dummy&&r.node(e).dummy)&&n$(i,n,e)})}),o=c+1,t=s)}),n}),i),function(e,n){var r={};function t(n,t,o,i,a){var d;u.A(L(t,o),function(t){d=n[t],e.node(d).dummy&&u.A(e.predecessors(d),function(n){var t=e.node(n);t.dummy&&(t.order<i||t.order>a)&&n$(r,n,d)})})}return nN.A(n,function(n,r){var o,i=-1,a=0;return u.A(r,function(u,d){if("border"===e.node(u).dummy){var c=e.predecessors(u);c.length&&(o=e.node(c[0]).order,t(r,a,d,i,o),a=d,i=o)}t(r,a,r.length,o,n.length)}),r}),r}(r,o)),d={},u.A(["u","d"],function(e){t="u"===e?o:nP.A(o).reverse(),u.A(["l","r"],function(n){"r"===n&&(t=v.A(t,function(e){return nP.A(e).reverse()}));var o,i,c,f,s=("u"===e?r.predecessors:r.successors).bind(r),h=(o=t,i={},c={},f={},u.A(o,function(e){u.A(e,function(e,n){i[e]=e,c[e]=e,f[e]=n})}),u.A(o,function(e){var n=-1;u.A(e,function(e){var r=s(e);if(r.length)for(var t=((r=nz(r,function(e){return f[e]})).length-1)/2,o=Math.floor(t),u=Math.ceil(t);o<=u;++o){var d=r[o];c[e]===e&&n<f[d]&&!function(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}(a,e,d)&&(c[d]=e,c[e]=i[e]=i[d],n=f[d])}})}),{root:i,align:c}),g=function(e,n,r,t,o){var i,a,d,c,f,s,h,v,g,l,p={},A=(i=e,a=n,d=r,c=o,v=new C.T,l=(f=(g=i.graph()).nodesep,s=g.edgesep,h=c,function(e,n,r){var t,o,i=e.node(n),u=e.node(r);if(t=0+i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":o=-i.width/2;break;case"r":o=i.width/2}if(o&&(t+=h?o:-o),o=0,t+=(i.dummy?s:f)/2,t+=(u.dummy?s:f)/2,t+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=u.width/2;break;case"r":o=-u.width/2}return o&&(t+=h?o:-o),o=0,t}),u.A(a,function(e){var n;u.A(e,function(e){var r=d[e];if(v.setNode(r),n){var t=d[n],o=v.edge(t,r);v.setEdge(t,r,Math.max(l(i,e,n),o||0))}n=e})}),v),w=o?"borderLeft":"borderRight";function b(e,n){for(var r=A.nodes(),t=r.pop(),o={};t;)o[t]?e(t):(o[t]=!0,r.push(t),r=r.concat(n(t))),t=r.pop()}return b(function(e){p[e]=A.inEdges(e).reduce(function(e,n){return Math.max(e,p[n.v]+A.edge(n))},0)},A.predecessors.bind(A)),b(function(n){var r=A.outEdges(n).reduce(function(e,n){return Math.min(e,p[n.w]-A.edge(n))},1/0),t=e.node(n);1/0!==r&&t.borderType!==w&&(p[n]=Math.max(p[n],r))},A.successors.bind(A)),u.A(t,function(e){p[e]=p[r[e]]}),p}(r,t,h.root,h.align,"r"===n);"r"===n&&(g=eG(g,function(e){return-e})),d[e+n]=g})}),c=e3(nP.A(d),function(e){var n,t=-1/0,o=1/0;return n=function(e,n){var i,u,a=(i=r,u=n,i.node(u).width/2);t=Math.max(e+a,t),o=Math.min(e-a,o)},null==e||(0,V.A)(e,(0,nV.A)(n),ef.A),t-o}),s=eq(f=nP.A(c)),h=eM(f),u.A(["u","d"],function(e){u.A(["l","r"],function(n){var r,t=e+n,o=d[t];if(o!==c){var i=nP.A(o);(r="l"===n?s-eq(i):h-eM(i))&&(d[t]=eG(o,function(e){return e+r}))}})}),g=r.graph().align,l=eG(d.ul,function(e,n){if(g)return d[g.toLowerCase()][n];var r=nz(v.A(d,n));return(r[1]+r[2])/2}),l&&(0,eC.A)(l,(0,nV.A)(function(e,r){n.node(r).x=e}))}),t(" positionSelfEdges",()=>{var n;return n=e,void u.A(n.nodes(),function(e){var r=n.node(e);if("selfedge"===r.dummy){var t=n.node(r.e.v),o=t.x+t.width/2,i=t.y,u=r.x-o,a=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:o+2*u/3,y:i-a},{x:o+5*u/6,y:i-a},{x:o+u,y:i},{x:o+5*u/6,y:i+a},{x:o+2*u/3,y:i+a}],r.label.x=r.x,r.label.y=r.y}})}),t(" removeBorderNodes",()=>{var n;return n=e,void(u.A(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),o=n.node(r.borderBottom),i=n.node(eL(r.borderLeft)),u=n.node(eL(r.borderRight));r.width=Math.abs(u.x-i.x),r.height=Math.abs(o.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),u.A(n.nodes(),function(e){"border"===n.node(e).dummy&&n.removeNode(e)}))}),t(" normalize.undo",()=>{u.A(e.graph().dummyChains,function(n){var r,t=e.node(n),o=t.edgeLabel;for(e.setEdge(t.edgeObj,o);t.dummy;)r=e.successors(n)[0],e.removeNode(n),o.points.push({x:t.x,y:t.y}),"edge-label"===t.dummy&&(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height),n=r,t=e.node(n)})}),t(" fixupEdgeLabelCoords",()=>{var n;return n=e,void u.A(n.edges(),function(e){var r=n.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),t(" undoCoordinateSystem",()=>{var n,r,t;("bt"===(n=e.graph().rankdir.toLowerCase())||"rl"===n)&&(r=e,u.A(r.nodes(),function(e){e2(r.node(e))}),u.A(r.edges(),function(e){var n=r.edge(e);u.A(n.points,e2),Object.prototype.hasOwnProperty.call(n,"y")&&e2(n)})),("lr"===n||"rl"===n)&&(t=e,u.A(t.nodes(),function(e){e5(t.node(e))}),u.A(t.edges(),function(e){var n=t.edge(e);u.A(n.points,e5),Object.prototype.hasOwnProperty.call(n,"x")&&e5(n)}),e0(e))}),t(" translateGraph",()=>(function(e){var n=1/0,r=0,t=1/0,o=0,i=e.graph(),a=i.marginx||0,d=i.marginy||0;function c(e){var i=e.x,u=e.y,a=e.width,d=e.height;n=Math.min(n,i-a/2),r=Math.max(r,i+a/2),t=Math.min(t,u-d/2),o=Math.max(o,u+d/2)}u.A(e.nodes(),function(n){c(e.node(n))}),u.A(e.edges(),function(n){var r=e.edge(n);Object.prototype.hasOwnProperty.call(r,"x")&&c(r)}),n-=a,t-=d,u.A(e.nodes(),function(r){var o=e.node(r);o.x-=n,o.y-=t}),u.A(e.edges(),function(r){var o=e.edge(r);u.A(o.points,function(e){e.x-=n,e.y-=t}),Object.prototype.hasOwnProperty.call(o,"x")&&(o.x-=n),Object.prototype.hasOwnProperty.call(o,"y")&&(o.y-=t)}),i.width=r-n+a,i.height=o-t+d})(e)),t(" assignNodeIntersects",()=>{var n;return n=e,void u.A(n.edges(),function(e){var r,t,o=n.edge(e),i=n.node(e.v),u=n.node(e.w);o.points?(r=o.points[0],t=o.points[o.points.length-1]):(o.points=[],r=u,t=i),o.points.unshift(eH(i,r)),o.points.push(eH(u,t))})}),t(" reversePoints",()=>{var n;return n=e,void u.A(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}),t(" acyclic.undo",()=>{u.A(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}))}),r(" updateInputGraph",()=>{var r,t;return r=e,t=n,void(u.A(r.nodes(),function(e){var n=r.node(e),o=t.node(e);n&&(n.x=o.x,n.y=o.y,t.children(e).length&&(n.width=o.width,n.height=o.height))}),u.A(r.edges(),function(e){var n=r.edge(e),o=t.edge(e);n.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(n.x=o.x,n.y=o.y)}),r.graph().width=t.graph().width,r.graph().height=t.graph().height)})})}var nZ=["nodesep","edgesep","ranksep","marginx","marginy"],nH={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nK=["acyclicer","ranker","rankdir","align"],nQ=["width","height"],nU={width:0,height:0},nW=["minlen","weight","width","height","labeloffset"],nX={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},nY=["labelpos"];function n0(e,n){return eG(eE(e,n),Number)}function n1(e){var n={};return u.A(e,function(e,r){n[r.toLowerCase()]=e}),n}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=3443;export const __rspack_esm_ids=[3443];export const __webpack_modules__={20206(e,_,s){var r=s(92275);s(51400),s.d(_,{createTreeViewServices:()=>r.I})}};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=3581;export const __rspack_esm_ids=[3581];export const __webpack_modules__={77454(t,e,a){function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}(0,a(86827).K)(r,"populateCommonDb"),a.d(e,{S:()=>r})},80764(t,e,a){var r=a(77454),o=a(22422),n=a(24692),i=a(64183),l=a(31293),s=a(86827),d=a(78731),c=(0,s.K)((t,e)=>{let a=t<=1?100*t:t;if(a<0||a>100)throw Error(`${e} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${t}`);return a},"toPercent"),p=(0,s.K)((t,e,a)=>({x:c(e,`${a} evolution`),y:c(t,`${a} visibility`)}),"toCoordinates"),h=(0,s.K)(t=>{if(t){if("+<>"===t)return"bidirectional";if("+<"===t)return"backward";if("+>"===t)return"forward"}},"getFlowFromPort"),x=(0,s.K)(t=>{if(!t?.startsWith("+"))return{};let e=/^\+'([^']*)'/.exec(t),a=e?.[1];return t.includes("<>")?{flow:"bidirectional",label:a}:t.includes("<")?{flow:"backward",label:a}:t.includes(">")?{flow:"forward",label:a}:{label:a}},"extractFlowFromArrow"),y=(0,s.K)((t,e)=>{if((0,r.S)(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){let a=t.evolution.stages.map(t=>t.secondName?`${t.name.trim()} / ${t.secondName.trim()}`:t.name.trim()),r=t.evolution.stages.filter(t=>void 0!==t.boundary).map(t=>t.boundary);e.updateAxes({stages:a,stageBoundaries:r})}if(t.anchors.forEach(t=>{let a=p(t.visibility,t.evolution,`Anchor "${t.name}"`);e.addNode(t.name,t.name,a.x,a.y,"anchor")}),t.components.forEach(t=>{let a=p(t.visibility,t.evolution,`Component "${t.name}"`),r=t.label?(t.label.negX?-1:1)*t.label.offsetX:void 0,o=t.label?(t.label.negY?-1:1)*t.label.offsetY:void 0,n=t.decorator?.strategy;e.addNode(t.name,t.name,a.x,a.y,"component",r,o,t.inertia,n)}),t.notes.forEach(t=>{let a=p(t.visibility,t.evolution,`Note "${t.text}"`);e.addNote(t.text,a.x,a.y)}),t.pipelines.forEach(t=>{let a=e.getNode(t.parent);if(!a||"number"!=typeof a.y)throw Error(`Pipeline "${t.parent}" must reference an existing component with coordinates.`);let r=a.y;e.startPipeline(t.parent),t.components.forEach(a=>{let o=`${t.parent}_${a.name}`,n=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,i=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,l=c(a.evolution,`Pipeline component "${a.name}" evolution`);e.addNode(o,a.name,l,r,"pipeline-component",n,i),e.addPipelineComponent(t.parent,o)})}),t.links.forEach(t=>{let a=!!t.arrow&&(t.arrow.includes("-.->")||t.arrow.includes(".-.")),r=h(t.fromPort)??h(t.toPort),{flow:o,label:n}=x(t.arrow);!r&&o&&(r=o);let i=t.linkLabel;e.addLink(e.resolveNodeId(t.from),e.resolveNodeId(t.to),a,n??i,r)}),t.evolves.forEach(t=>{let a=e.getNode(t.component);if(a?.y!==void 0){let r=c(t.target,`Evolve target for "${t.component}"`);e.addTrend(t.component,r,a.y)}}),t.annotations.length>0){let a=t.annotations[0],r=p(a.x,a.y,"Annotations box");e.setAnnotationsBox(r.x,r.y)}t.annotation.forEach(t=>{let a=p(t.x,t.y,`Annotation ${t.number}`);e.addAnnotation(t.number,[{x:a.x,y:a.y}],t.text)}),t.accelerators.forEach(t=>{let a=p(t.x,t.y,`Accelerator "${t.name}"`);e.addAccelerator(t.name,a.x,a.y)}),t.deaccelerators.forEach(t=>{let a=p(t.x,t.y,`Deaccelerator "${t.name}"`);e.addDeaccelerator(t.name,a.x,a.y)})},"populateDb"),g={parser:{yy:void 0},parse:(0,s.K)(async t=>{let e=await (0,d.qg)("wardley",t);l.R.debug(e);let a=g.parser?.yy;if(!a||"function"!=typeof a.addNode)throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");y(e,a)},"parse")},f=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{(0,s.K)(this,"WardleyBuilder")}addNode(t){let e=this.nodes.get(t.id)??{id:t.id,label:t.label},a={...e,...t,className:t.className??e.className,labelOffsetX:t.labelOffsetX??e.labelOffsetX,labelOffsetY:t.labelOffsetY??e.labelOffsetY};this.nodes.set(t.id,a)}addLink(t){this.links.push(t)}addTrend(t){this.trends.set(t.nodeId,t)}startPipeline(t){this.pipelines.set(t,{nodeId:t,componentIds:[]});let e=this.nodes.get(t);e&&(e.isPipelineParent=!0)}addPipelineComponent(t,e){let a=this.pipelines.get(t);a&&a.componentIds.push(e);let r=this.nodes.get(e);r&&(r.inPipeline=!0)}addAnnotation(t){this.annotations.push(t)}addNote(t){this.notes.push(t)}addAccelerator(t){this.accelerators.push(t)}addDeaccelerator(t){this.deaccelerators.push(t)}setAnnotationsBox(t,e){this.annotationsBox={x:t,y:e}}setAxes(t){this.axes={...this.axes,...t}}setSize(t,e){this.size={width:t,height:e}}getNode(t){return this.nodes.get(t)}resolveNodeId(t){if(this.nodes.has(t))return t;for(let[e,a]of this.nodes)if(a.label===t)return e;return t}build(){let t=[];for(let e of this.nodes.values()){if("number"!=typeof e.x||"number"!=typeof e.y)throw Error(`Node "${e.label}" is missing coordinates`);t.push(e)}return{nodes:t,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function u(){return(0,i.D7)()["wardley-beta"]}function m(t,e,a,r,o,n,i,l,s){f.addNode({id:t,label:e,x:a,y:r,className:o,labelOffsetX:n,labelOffsetY:i,inertia:l,sourceStrategy:s})}function w(t,e,a=!1,r,o){f.addLink({source:t,target:e,dashed:a,label:r,flow:o})}function k(t,e,a){f.addTrend({nodeId:t,targetX:e,targetY:a})}function b(t,e,a){f.addAnnotation({number:t,coordinates:e,text:a})}function $(t,e,a){f.addNote({text:t,x:e,y:a})}function S(t,e,a){f.addAccelerator({name:t,x:e,y:a})}function v(t,e,a){f.addDeaccelerator({name:t,x:e,y:a})}function M(t,e){f.setAnnotationsBox(t,e)}function C(t,e){f.setSize(t,e)}function P(t){f.startPipeline(t)}function N(t,e){f.addPipelineComponent(t,e)}function T(t){f.setAxes(t)}function z(t){return f.getNode(t)}function L(t){return f.resolveNodeId(t)}function A(){return f.build()}function E(){f.clear(),(0,i.IU)()}(0,s.K)(u,"getConfig"),(0,s.K)(m,"addNode"),(0,s.K)(w,"addLink"),(0,s.K)(k,"addTrend"),(0,s.K)(b,"addAnnotation"),(0,s.K)($,"addNote"),(0,s.K)(S,"addAccelerator"),(0,s.K)(v,"addDeaccelerator"),(0,s.K)(M,"setAnnotationsBox"),(0,s.K)(C,"setSize"),(0,s.K)(P,"startPipeline"),(0,s.K)(N,"addPipelineComponent"),(0,s.K)(T,"updateAxes"),(0,s.K)(z,"getNode"),(0,s.K)(L,"resolveNodeId"),(0,s.K)(A,"getWardleyData"),(0,s.K)(E,"clear");var K={getConfig:u,addNode:m,addLink:w,addTrend:k,addAnnotation:b,addNote:$,addAccelerator:S,addDeaccelerator:v,setAnnotationsBox:M,setSize:C,startPipeline:P,addPipelineComponent:N,updateAxes:T,getNode:z,resolveNodeId:L,getWardleyData:A,clear:E,setAccTitle:i.SV,getAccTitle:i.iN,setDiagramTitle:i.ke,getDiagramTitle:i.ab,getAccDescription:i.m7,setAccDescription:i.EI},I=["Genesis","Custom Built","Product","Commodity"],R=(0,s.K)(()=>{let{themeVariables:t}=(0,i.D7)();return{backgroundColor:t.wardley?.backgroundColor??t.background??"#fff",axisColor:t.wardley?.axisColor??"#000",axisTextColor:t.wardley?.axisTextColor??t.primaryTextColor??"#222",gridColor:t.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:t.wardley?.componentFill??"#fff",componentStroke:t.wardley?.componentStroke??"#000",componentLabelColor:t.wardley?.componentLabelColor??t.primaryTextColor??"#222",linkStroke:t.wardley?.linkStroke??"#000",evolutionStroke:t.wardley?.evolutionStroke??"#dc3545",annotationStroke:t.wardley?.annotationStroke??"#000",annotationTextColor:t.wardley?.annotationTextColor??t.primaryTextColor??"#222",annotationFill:t.wardley?.annotationFill??t.background??"#fff"}},"getTheme"),D=(0,s.K)(()=>{let t=(0,i.D7)()["wardley-beta"];return{width:t?.width??900,height:t?.height??600,padding:t?.padding??48,nodeRadius:t?.nodeRadius??6,nodeLabelOffset:t?.nodeLabelOffset??8,axisFontSize:t?.axisFontSize??12,labelFontSize:t?.labelFontSize??10,showGrid:t?.showGrid??!1,useMaxWidth:t?.useMaxWidth??!0}},"getConfigValues"),F={parser:g,db:K,renderer:{draw:(0,s.K)((t,e,a,r)=>{l.R.debug("Rendering Wardley map\n"+t);let n=D(),d=R(),c=1.6*n.nodeRadius,p=r.db,h=p.getWardleyData(),x=p.getDiagramTitle(),y=h.size?.width??n.width,g=h.size?.height??n.height,f=(0,o.D)(e);f.selectAll("*").remove(),(0,i.a$)(f,g,y,n.useMaxWidth),f.attr("viewBox",`0 0 ${y} ${g}`);let u=f.append("g").attr("class","wardley-map"),m=f.append("defs");m.append("marker").attr("id",`arrow-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),m.append("marker").attr("id",`link-arrow-end-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),m.append("marker").attr("id",`link-arrow-start-${e}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),u.append("rect").attr("class","wardley-background").attr("width",y).attr("height",g).attr("fill",d.backgroundColor);let w=y-2*n.padding,k=g-2*n.padding;x&&u.append("text").attr("class","wardley-title").attr("x",y/2).attr("y",n.padding/2).attr("fill",d.axisTextColor).attr("font-size",1.05*n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(x);let b=(0,s.K)(t=>n.padding+t/100*w,"projectX"),$=(0,s.K)(t=>g-n.padding-t/100*k,"projectY"),S=u.append("g").attr("class","wardley-axes");S.append("line").attr("x1",n.padding).attr("x2",y-n.padding).attr("y1",g-n.padding).attr("y2",g-n.padding).attr("stroke",d.axisColor).attr("stroke-width",1),S.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",g-n.padding).attr("stroke",d.axisColor).attr("stroke-width",1);let v=h.axes.xLabel??"Evolution",M=h.axes.yLabel??"Visibility";S.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+w/2).attr("y",g-n.padding/4).attr("fill",d.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(v),S.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+k/2).attr("fill",d.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${n.padding/3} ${n.padding+k/2})`).text(M);let C=h.axes.stages&&h.axes.stages.length>0?h.axes.stages:I;if(C.length>0){let t=u.append("g").attr("class","wardley-stages"),e=h.axes.stageBoundaries,a=[];if(e&&e.length===C.length){let t=0;e.forEach(e=>{a.push({start:t,end:e}),t=e})}else{let t=1/C.length;C.forEach((e,r)=>{a.push({start:r*t,end:(r+1)*t})})}C.forEach((e,r)=>{let o=a[r],i=n.padding+o.start*w,l=(i+(n.padding+o.end*w))/2;r>0&&t.append("line").attr("x1",i).attr("x2",i).attr("y1",n.padding).attr("y2",g-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",l).attr("y",g-n.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(e)})}if(n.showGrid){let t=u.append("g").attr("class","wardley-grid");for(let e=1;e<4;e++){let a=e/4,r=n.padding+w*a;t.append("line").attr("x1",r).attr("x2",r).attr("y1",n.padding).attr("y2",g-n.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",n.padding).attr("x2",y-n.padding).attr("y1",g-n.padding-k*a).attr("y2",g-n.padding-k*a).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}let P=new Map;if(h.nodes.forEach(t=>{P.set(t.id,{x:b(t.x),y:$(t.y),node:t})}),h.pipelines.length>0){let t=u.append("g").attr("class","wardley-pipelines"),e=u.append("g").attr("class","wardley-pipeline-links");h.pipelines.forEach(a=>{if(0===a.componentIds.length)return;let r=a.componentIds.map(t=>({id:t,pos:P.get(t),node:h.nodes.find(e=>e.id===t)})).filter(t=>t.pos&&t.node).sort((t,e)=>t.node.x-e.node.x);for(let t=0;t<r.length-1;t++){let a=r[t],o=r[t+1];e.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",a.pos.x).attr("y1",a.pos.y).attr("x2",o.pos.x).attr("y2",o.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let o=1/0,i=-1/0,l=0;if(a.componentIds.forEach(t=>{let e=P.get(t);e&&(o=Math.min(o,e.x),i=Math.max(i,e.x),l=e.y)}),1/0!==o&&-1/0!==i){let e=4*n.nodeRadius,r=l-e/2,s=P.get(a.nodeId);s&&(s.x=(o+i)/2,s.y=r-c/6),t.append("rect").attr("class","wardley-pipeline-box").attr("x",o-15).attr("y",r).attr("width",i-o+30).attr("height",e).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let N=u.append("g").attr("class","wardley-links"),T=new Map;h.pipelines.forEach(t=>{T.set(t.nodeId,new Set(t.componentIds))});let z=h.links.filter(t=>{if(!P.has(t.source)||!P.has(t.target))return!1;let e=T.get(t.target);return!e?.has(t.source)});N.selectAll("line").data(z).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{let e=P.get(t.source),a=P.get(t.target),r=h.nodes.find(e=>e.id===t.source).isPipelineParent?c/Math.sqrt(2):n.nodeRadius,o=a.x-e.x,i=a.y-e.y,l=Math.sqrt(o*o+i*i);return e.x+o/l*r}).attr("y1",t=>{let e=P.get(t.source),a=P.get(t.target),r=h.nodes.find(e=>e.id===t.source).isPipelineParent?c/Math.sqrt(2):n.nodeRadius,o=a.x-e.x,i=a.y-e.y,l=Math.sqrt(o*o+i*i);return e.y+i/l*r}).attr("x2",t=>{let e=P.get(t.source),a=P.get(t.target),r=h.nodes.find(e=>e.id===t.target).isPipelineParent?c/Math.sqrt(2):n.nodeRadius,o=e.x-a.x,i=e.y-a.y,l=Math.sqrt(o*o+i*i);return a.x+o/l*r}).attr("y2",t=>{let e=P.get(t.source),a=P.get(t.target),r=h.nodes.find(e=>e.id===t.target).isPipelineParent?c/Math.sqrt(2):n.nodeRadius,o=e.x-a.x,i=e.y-a.y,l=Math.sqrt(o*o+i*i);return a.y+i/l*r}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>"forward"===t.flow||"bidirectional"===t.flow?`url(#link-arrow-end-${e})`:null).attr("marker-start",t=>"backward"===t.flow||"bidirectional"===t.flow?`url(#link-arrow-start-${e})`:null),N.selectAll("text").data(z.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{let e=P.get(t.source),a=P.get(t.target),r=(e.x+a.x)/2,o=a.y-e.y,n=a.x-e.x,i=Math.sqrt(n*n+o*o);return r+o/i*8}).attr("y",t=>{let e=P.get(t.source),a=P.get(t.target),r=(e.y+a.y)/2,o=a.x-e.x,n=a.y-e.y,i=Math.sqrt(o*o+n*n);return r+-o/i*8}).attr("fill",d.axisTextColor).attr("font-size",n.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{let e=P.get(t.source),a=P.get(t.target),r=(e.x+a.x)/2,o=(e.y+a.y)/2,n=a.x-e.x,i=a.y-e.y,l=Math.sqrt(n*n+i*i),s=180*Math.atan2(i,n)/Math.PI;return(s>90||s<-90)&&(s+=180),`rotate(${s} ${r+i/l*8} ${o+-n/l*8})`}).text(t=>t.label);let L=u.append("g").attr("class","wardley-trends"),A=h.trends.map(t=>{let e=P.get(t.nodeId);if(!e)return null;let a=b(t.targetX),r=$(t.targetY),o=a-e.x,i=r-e.y,l=Math.sqrt(o*o+i*i),s=n.nodeRadius+2;return{origin:e,targetX:a,targetY:r,adjustedX2:l>s?a-o/l*s:a,adjustedY2:l>s?r-i/l*s:r}}).filter(t=>null!==t);L.selectAll("line").data(A).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${e})`);let E=u.append("g").attr("class","wardley-nodes").selectAll("g").data(h.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));E.filter(t=>"outsource"===t.sourceStrategy).append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),E.filter(t=>"buy"===t.sourceStrategy).append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),E.filter(t=>"build"===t.sourceStrategy).append("circle").attr("class","wardley-build-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let K=E.filter(t=>"market"===t.sourceStrategy);K.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),E.filter(t=>!t.isPipelineParent&&"market"!==t.sourceStrategy&&"anchor"!==t.className).append("circle").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",n.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);let F=.7*n.nodeRadius,B=1.2*n.nodeRadius;if(K.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x).attr("y1",t=>P.get(t.id).y-B).attr("x2",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("y2",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),K.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("y1",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("x2",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("y2",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),K.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("y1",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("x2",t=>P.get(t.id).x).attr("y2",t=>P.get(t.id).y-B).attr("stroke",d.componentStroke).attr("stroke-width",1),K.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y-B).attr("r",F).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),K.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("cy",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("r",F).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),K.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("cy",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("r",F).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),E.filter(t=>!0===t.isPipelineParent).append("rect").attr("x",t=>P.get(t.id).x-c/2).attr("y",t=>P.get(t.id).y-c/2).attr("width",c).attr("height",c).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),E.filter(t=>!0===t.inertia).append("line").attr("class","wardley-inertia").attr("x1",t=>{let e=P.get(t.id),a=t.isPipelineParent?c/2+15:n.nodeRadius+15;return t.sourceStrategy&&(a+=n.nodeRadius+10),e.x+a}).attr("y1",t=>{let e=P.get(t.id),a=t.isPipelineParent?c:2*n.nodeRadius;return e.y-a/2}).attr("x2",t=>{let e=P.get(t.id),a=t.isPipelineParent?c/2+15:n.nodeRadius+15;return t.sourceStrategy&&(a+=n.nodeRadius+10),e.x+a}).attr("y2",t=>{let e=P.get(t.id),a=t.isPipelineParent?c:2*n.nodeRadius;return e.y+a/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),E.append("text").attr("x",t=>{let e=P.get(t.id);if("anchor"===t.className)return void 0!==t.labelOffsetX?e.x+t.labelOffsetX:e.x;let a=n.nodeLabelOffset;t.sourceStrategy&&void 0===t.labelOffsetX&&(a+=10);let r=t.labelOffsetX??a;return e.x+r}).attr("y",t=>{let e=P.get(t.id);if("anchor"===t.className)return void 0!==t.labelOffsetY?e.y+t.labelOffsetY:e.y-3;let a=-n.nodeLabelOffset;t.sourceStrategy&&void 0===t.labelOffsetY&&(a-=10);let r=t.labelOffsetY??a;return e.y+r}).attr("class","wardley-node-label").attr("fill",t=>"evolved"===t.className?d.evolutionStroke:"anchor"===t.className?"#000":d.componentLabelColor).attr("font-size",n.labelFontSize).attr("font-weight",t=>"anchor"===t.className?"bold":"normal").attr("text-anchor",t=>"anchor"===t.className?"middle":"start").attr("dominant-baseline",t=>"anchor"===t.className?"middle":"auto").text(t=>t.label),h.annotations.length>0){let t=u.append("g").attr("class","wardley-annotations");if(h.annotations.forEach(e=>{let a=e.coordinates.map(t=>({x:b(t.x),y:$(t.y)}));if(a.length>1)for(let e=0;e<a.length-1;e++)t.append("line").attr("class","wardley-annotation-line").attr("x1",a[e].x).attr("y1",a[e].y).attr("x2",a[e+1].x).attr("y2",a[e+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");a.forEach(a=>{let r=t.append("g").attr("class","wardley-annotation");r.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),r.append("text").attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(e.number)})}),h.annotationsBox){let e=b(h.annotationsBox.x),a=$(h.annotationsBox.y),r=t.append("g").attr("class","wardley-annotations-box"),o=[...h.annotations].filter(t=>t.text).sort((t,e)=>t.number-e.number),i=[];if(o.forEach((t,o)=>{let n=r.append("text").attr("x",e+10).attr("y",a+10+(o+1)*16).attr("font-size",11).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${t.number}. ${t.text}`);i.push(n)}),i.length>0){let t=0,l=0;i.forEach(e=>{let a=e.node(),r=a.getComputedTextLength();t=Math.max(t,r);let o=a.getBBox();l=Math.max(l,o.height)});let s=t+20+105,c=16*o.length+20+l/2,p=n.padding,h=y-n.padding-s,x=n.padding,f=g-n.padding-c;e=Math.max(p,Math.min(e,h)),a=Math.max(x,Math.min(a,f)),i.forEach((t,r)=>{t.attr("x",e+10).attr("y",a+10+(r+1)*16)}),r.insert("rect","text").attr("x",e).attr("y",a).attr("width",s).attr("height",c).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(h.notes.length>0){let t=u.append("g").attr("class","wardley-notes");h.notes.forEach(e=>{let a=b(e.x),r=$(e.y);t.append("text").attr("x",a).attr("y",r).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(e.text)})}if(h.accelerators.length>0){let t=u.append("g").attr("class","wardley-accelerators");h.accelerators.forEach(e=>{let a=b(e.x),r=$(e.y),o=`
|
|
2
|
-
M ${a} ${r-15}
|
|
3
|
-
L ${a+60-20} ${r-15}
|
|
4
|
-
L ${a+60-20} ${r-15-8}
|
|
5
|
-
L ${a+60} ${r}
|
|
6
|
-
L ${a+60-20} ${r+15+8}
|
|
7
|
-
L ${a+60-20} ${r+15}
|
|
8
|
-
L ${a} ${r+15}
|
|
9
|
-
Z
|
|
10
|
-
`;t.append("path").attr("d",o).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",a+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(e.name)})}if(h.deaccelerators.length>0){let t=u.append("g").attr("class","wardley-deaccelerators");h.deaccelerators.forEach(e=>{let a=b(e.x),r=$(e.y),o=`
|
|
11
|
-
M ${a+60} ${r-15}
|
|
12
|
-
L ${a+20} ${r-15}
|
|
13
|
-
L ${a+20} ${r-15-8}
|
|
14
|
-
L ${a} ${r}
|
|
15
|
-
L ${a+20} ${r+15+8}
|
|
16
|
-
L ${a+20} ${r+15}
|
|
17
|
-
L ${a+60} ${r+15}
|
|
18
|
-
Z
|
|
19
|
-
`;t.append("path").attr("d",o).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",a+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(e.name)})}},"draw")},styles:(0,s.K)(({wardley:t}={})=>{let e=(0,i.P$)(),a=(0,i.zj)(),r=(0,n.$t)(e,a.themeVariables),o=(0,n.$t)(r.wardley,t);return`
|
|
20
|
-
.wardley-background {
|
|
21
|
-
fill: ${o.backgroundColor};
|
|
22
|
-
}
|
|
23
|
-
.wardley-axes line, .wardley-axes path {
|
|
24
|
-
stroke: ${o.axisColor};
|
|
25
|
-
}
|
|
26
|
-
.wardley-axis-label {
|
|
27
|
-
fill: ${o.axisTextColor};
|
|
28
|
-
}
|
|
29
|
-
.wardley-stage-label {
|
|
30
|
-
fill: ${o.axisTextColor};
|
|
31
|
-
}
|
|
32
|
-
.wardley-grid line {
|
|
33
|
-
stroke: ${o.gridColor};
|
|
34
|
-
}
|
|
35
|
-
.wardley-node circle {
|
|
36
|
-
fill: ${o.componentFill};
|
|
37
|
-
stroke: ${o.componentStroke};
|
|
38
|
-
}
|
|
39
|
-
.wardley-node-label {
|
|
40
|
-
fill: ${o.componentLabelColor};
|
|
41
|
-
}
|
|
42
|
-
.wardley-link {
|
|
43
|
-
stroke: ${o.linkStroke};
|
|
44
|
-
}
|
|
45
|
-
.wardley-link--dashed {
|
|
46
|
-
stroke-dasharray: 4 4;
|
|
47
|
-
}
|
|
48
|
-
.wardley-link-label {
|
|
49
|
-
fill: ${o.axisTextColor};
|
|
50
|
-
}
|
|
51
|
-
.wardley-trend line {
|
|
52
|
-
stroke: ${o.evolutionStroke};
|
|
53
|
-
}
|
|
54
|
-
.wardley-annotation-line {
|
|
55
|
-
stroke: ${o.annotationStroke};
|
|
56
|
-
}
|
|
57
|
-
.wardley-annotation circle {
|
|
58
|
-
fill: ${o.annotationFill};
|
|
59
|
-
stroke: ${o.annotationStroke};
|
|
60
|
-
}
|
|
61
|
-
.wardley-annotation text {
|
|
62
|
-
fill: ${o.annotationTextColor};
|
|
63
|
-
}
|
|
64
|
-
.wardley-annotations-box rect {
|
|
65
|
-
fill: ${o.annotationFill};
|
|
66
|
-
stroke: ${o.annotationStroke};
|
|
67
|
-
}
|
|
68
|
-
.wardley-annotations-box text {
|
|
69
|
-
fill: ${o.annotationTextColor};
|
|
70
|
-
}
|
|
71
|
-
.wardley-pipeline-box {
|
|
72
|
-
stroke: ${o.componentStroke};
|
|
73
|
-
}
|
|
74
|
-
.wardley-notes text {
|
|
75
|
-
fill: ${o.axisTextColor};
|
|
76
|
-
}
|
|
77
|
-
`},"styles")};a.d(e,{diagram:()=>F})}};
|
package/dist/embed/chunks/397.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=397;export const __rspack_esm_ids=[397];export const __webpack_modules__={69308(_,e,s){var r=s(51392);s(51400),s.d(e,{createRailroadPegServices:()=>r.P})}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=4335;export const __rspack_esm_ids=[4335];export const __webpack_modules__={46002(e,t,a){var r=a(22422),s=a(64183),d=a(31293),n=a(86827),o=a(78731),_={parse:(0,n.K)(async e=>{let t=await (0,o.qg)("info",e);d.R.debug(t)},"parse")},i=(0,n.K)(()=>"11.16.1","getVersion"),p={parser:_,db:{getVersion:i},renderer:{draw:(0,n.K)((e,t,a)=>{d.R.debug("rendering info diagram\n"+e);let n=(0,r.D)(t);(0,s.a$)(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${a}`)},"draw")}};a.d(t,{diagram:()=>p})}};
|
package/dist/embed/chunks/435.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=435;export const __rspack_esm_ids=[435];export const __webpack_modules__={2862(r,s,e){var a=e(3975);e(64918),e(96755),e(78257),e(21570),e(91730),e(9290),e(9636),e(14782),e(91865),e(6129),e(23656),e(15198),e(24692),e(64183),e(31293);var t=e(86827),_={parser:a._$,get db(){return new a.NM},renderer:a.Lh,styles:a.tM,init:(0,t.K)(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};e.d(s,{diagram:()=>_})}};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=4354;export const __rspack_esm_ids=[4354];export const __webpack_modules__={15350(e,t,i){var r=i(86827),n=class{constructor(e){this.init=e,this.records=this.init()}static{(0,r.K)(this,"ImperativeState")}reset(){this.records=this.init()}};i.d(t,{m:()=>n})},77454(e,t,i){function r(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}(0,i(86827).K)(r,"populateCommonDb"),i.d(t,{S:()=>r})},47017(e,t,i){var r=i(15350),n=i(77454),o=i(22422),s=i(15198),a=i(24692),l=i(64183),d=i(31293),c=i(86827),h=i(78731),p=/[─━│┃└┗├┣]/,f=/[└┗├┣]/,g=/[─━]/,u=/^[\s│┃]+$/,w=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,x=/^\s*%%/;function m(e){return e.some(e=>p.test(e))}function b(e){for(let t of e){let e=f.exec(t);if(e?.index&&e.index>0)return e.index}return 4}function y(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,i)=>{let r=parseInt(i,10),n=t.get(r);return n?`line ${n}`:e})}function $(e){let t=e.split("\n"),i=new Map,r=-1;for(let[e,i]of t.entries())if("treeView-beta"===i.trim()){r=e;break}if(-1===r)return{text:e,lineMap:i};let n=[];for(let e=r+1;e<t.length;e++){let i=t[e];!(""===i.trim()||x.test(i)||w.test(i))&&(u.test(i)||n.push(i.replace(/\t/g," ")))}if(!m(n))return{text:e,lineMap:i};let o=b(n),s=[],a=0;for(let e=0;e<=r;e++)s.push(t[e]),a++,i.set(a,e+1);for(let e=r+1;e<t.length;e++){let r=t[e],n=r.trim(),l=e+1;if(""===n||x.test(r)||w.test(r)){s.push(r),a++,i.set(a,l);continue}if(u.test(r))continue;let d=r.replace(/\t/g," "),c=f.exec(d);if(c?.index!==void 0){let e=c.index,t=Math.round(e/o)+1,r=e+1;for(;r<d.length&&g.test(d[r]);)r++;for(;r<d.length&&" "===d[r];)r++;let n=d.slice(r).trimEnd();if(!n)throw Error(`Line ${l}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let h=" ".repeat(t);s.push(h+n),a++,i.set(a,l)}else if(/^[\s─━│┃└┗├┣]+$/.test(d))continue;else if(p.test(d))s.push(r),a++,i.set(a,l);else if(/^\s+/.test(d))throw Error(`Line ${l}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);else s.push(r),a++,i.set(a,l)}return{text:s.join("\n"),lineMap:i}}(0,c.K)(m,"isBoxDrawingFormat"),(0,c.K)(b,"inferSegmentWidth"),(0,c.K)(y,"remapErrorLines"),(0,c.K)($,"preprocessBoxDrawing");var k=new r.m(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),K=(0,c.K)(()=>{k.reset(),(0,l.IU)()},"clear"),v=(0,c.K)(()=>k.records.stack[0],"getRoot"),V=(0,c.K)(()=>k.records.cnt,"getCount"),B=l.UI.treeView,I=(0,c.K)(()=>(0,a.$t)(B,(0,l.zj)().treeView),"getConfig"),C={clear:K,addNode:(0,c.K)((e,t,i,r,n,o)=>{for(;e<=k.records.stack[k.records.stack.length-1].level;)k.records.stack.pop();let s={id:k.records.cnt++,level:e,name:t,nodeType:i,icon:n,cssClass:r,description:o,children:[]};k.records.stack[k.records.stack.length-1].children.push(s),k.records.stack.push(s)},"addNode"),getRoot:v,getCount:V,getConfig:I,getAccTitle:l.iN,getAccDescription:l.m7,getDiagramTitle:l.ab,setAccDescription:l.EI,setAccTitle:l.SV,setDiagramTitle:l.ke},T=(0,c.K)(e=>{for(let t of((0,n.S)(e,C),e.nodes)){let e="number"==typeof t.indent?t.indent:0,i=t.name,r=i.endsWith("/");r&&(i=i.slice(0,-1));let n=r?"directory":"file",o=t.classAnnotation||void 0,s=t.iconAnnotation,a=void 0!==s?s||"none":void 0,d=t.descAnnotation||void 0,c=d?(0,l.jZ)(d,(0,l.zj)()):void 0;C.addNode(e,i,n,o,a,c)}},"populate"),D={parse:(0,c.K)(async e=>{let{text:t,lineMap:i}=$(e);try{let e=await (0,h.qg)("treeView",t);d.R.debug(e),T(e)}catch(e){throw i.size>0&&e instanceof Error&&(e.message=y(e.message,i)),e}},"parse")},_={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function A(e,t){let i=t?.filenameIcons?.[e];if(i)return i;let r=e.lastIndexOf(".");if(r>0){let i=e.substring(r).toLowerCase(),n=t?.extensionIcons;return n?.[i]??n?.[i.slice(1)]}}function E(e,t){return e.includes(":")?e:e in _.icons||!t?`${_.prefix}:${e}`:`${t}:${e}`}function M(e,t){if("none"!==e.icon){if(e.icon)return E(e.icon,t.defaultIconPack);if(t.showIcons){if("file"===e.nodeType){let i=A(e.name,t);if("none"===i)return;if(i)return E(i,t.defaultIconPack)}return`${_.prefix}:${"directory"===e.nodeType?"folder":"file"}`}}}(0,c.K)(A,"detectIcon"),(0,c.K)(E,"qualifyIcon"),(0,c.K)(M,"getNodeIcon"),(0,s.pC)([{name:_.prefix,icons:_}]);var S=(0,c.K)((e,t)=>`tv-icon-${e}-${t.replace(/[^\w-]/g,"-")}`,"iconSymbolId"),z=(0,c.K)(async(e,t,i,r)=>{let n=new Set,o=(0,c.K)(e=>{let t=M(e,i);t&&n.add(t),e.children.forEach(o)},"collect");if(o(t),0===n.size)return;let a=await Promise.all([...n].map(async e=>({icon:e,svg:await (0,s.WY)(e,{height:14,width:14})}))),l=e.append("defs");for(let{icon:e,svg:t}of a)l.append("g").attr("id",S(r,e)).html(t)},"injectIconDefs"),N=(0,c.K)((e,t,i,r,n,o)=>{let s=r.append("g"),a="treeView-node-label";"directory"===i.nodeType&&(a+=" treeView-node-dir"),i.cssClass&&(a+=` ${i.cssClass}`);let l=M(i,n),d=void 0!==l;l&&s.append("use").attr("xlink:href",`#${S(o,l)}`).attr("x",e+n.paddingX).attr("y",t+n.paddingY).attr("class","treeView-node-icon");let c=s.append("text").text(i.name).attr("dominant-baseline","middle").attr("class",a),{height:h,width:p}=c.node().getBBox(),f=h+2*n.paddingY,g=e+n.paddingX+18*!!d;c.attr("x",g),c.attr("y",t+f/2);let u=g+p;return i.BBox={x:e,y:t,width:p+2*n.paddingX+18*!!d,height:f},i.cssClass?.split(/\s+/).includes("highlight")&&s.insert("rect",":first-child").attr("x",e).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:i,nodeGroup:s,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),X=(0,c.K)((e,t,i,r,n,o)=>e.append("line").attr("x1",t).attr("y1",i).attr("x2",r).attr("y2",n).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),L=(0,c.K)((e,t,i,r)=>{let n=0,o=0,s=[],a=(0,c.K)((e,t,i,a)=>{let l=a*(i.rowIndent+i.paddingX),d=N(l,n,t,e,i,r);s.push(d);let{height:c,width:h}=t.BBox;X(e,l-i.rowIndent,n+c/2,l,n+c/2,i.lineThickness),o=Math.max(o,l+h),n+=c},"drawNode"),l=(0,c.K)((t,r=0)=>{a(e,t,i,r),t.children.forEach(e=>{l(e,r+1)});let{x:n,y:o,height:s}=t.BBox;if(t.children.length){let{y:r,height:a}=t.children[t.children.length-1].BBox;X(e,n+i.paddingX,o+s,n+i.paddingX,r+a/2+i.lineThickness/2,i.lineThickness)}},"processNode");l(t);let d=s.filter(e=>e.node.description);if(d.length>0){let e=Math.max(...s.map(e=>e.labelRightEdge))+16;for(let t of d){let r=t.nodeGroup.append("text").text(t.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",e).attr("y",t.centerY).node().getBBox();o=Math.max(o,e+r.width+i.paddingX)}}for(let e of s)if(e.node.cssClass?.split(/\s+/).includes("highlight")){let t=e.nodeGroup.select(".treeView-highlight-bg");if(!t.empty()){let i=o-e.node.BBox.x+8;t.attr("width",i),o=Math.max(o,e.node.BBox.x+i+2)}}return{totalHeight:n,totalWidth:o}},"drawTree"),R=(0,c.K)(async(e,t,i,r)=>{d.R.debug("Rendering treeView diagram\n"+e);let n=r.db,s=n.getRoot(),a=n.getConfig(),c=(0,o.D)(t);await z(c,s,a,t);let h=c.append("g");h.attr("class","tree-view");let{totalHeight:p,totalWidth:f}=L(h,s,a,t);c.attr("viewBox",`-${a.lineThickness/2} 0 ${f} ${p}`),(0,l.a$)(c,p,f,a.useMaxWidth)},"draw"),j={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Y={db:C,renderer:{draw:R},parser:D,styles:(0,c.K)(({treeView:e})=>{let{labelFontSize:t,labelColor:i,lineColor:r,iconColor:n,descriptionColor:o,highlightBg:s,highlightStroke:l}=(0,a.$t)(j,e);return`
|
|
2
|
-
.treeView-node-label {
|
|
3
|
-
font-size: ${t};
|
|
4
|
-
fill: ${i};
|
|
5
|
-
white-space: pre;
|
|
6
|
-
}
|
|
7
|
-
.treeView-node-dir {
|
|
8
|
-
font-weight: bold;
|
|
9
|
-
}
|
|
10
|
-
.treeView-node-line {
|
|
11
|
-
stroke: ${r};
|
|
12
|
-
}
|
|
13
|
-
.treeView-node-icon {
|
|
14
|
-
color: ${n};
|
|
15
|
-
}
|
|
16
|
-
.treeView-node-description {
|
|
17
|
-
font-size: ${t};
|
|
18
|
-
fill: ${o};
|
|
19
|
-
font-style: italic;
|
|
20
|
-
white-space: pre;
|
|
21
|
-
}
|
|
22
|
-
.treeView-highlight-bg {
|
|
23
|
-
fill: ${s};
|
|
24
|
-
stroke: ${l};
|
|
25
|
-
stroke-width: 1;
|
|
26
|
-
}
|
|
27
|
-
`},"styles")};i.d(t,{diagram:()=>Y})}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=4359;export const __rspack_esm_ids=[4359];export const __webpack_modules__={17210(_,e,s){var r=s(97899);s(51400),s.d(e,{createRadarServices:()=>r.f})}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=4515;export const __rspack_esm_ids=[4515];export const __webpack_modules__={48478(_,e,s){var r=s(88937);s(51400),s.d(e,{createWardleyServices:()=>r.J})}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=4607;export const __rspack_esm_ids=[4607];export const __webpack_modules__={16402(e,r,a){var t=a(67977),n=a(77454);a(22422),a(64183);var l=a(31293),s=a(86827),i=a(78731),p=(0,i.lz)().Railroad.parser.LangiumParser,o=(0,s.K)(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(o);return 1===r.length?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(o);return 1===r.length?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:o(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:o(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),d=(0,s.K)(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),m=(0,s.K)(e=>{(0,n.S)(e,t.db),e.title&&t.db.setTitle(e.title),e.rules.map(e=>t.db.addRule(d(e)))},"populateDb"),u={parser:{parse:(0,s.K)(e=>{t.db.clear(),l.R.debug("[Railroad Parser] Starting Langium parse");let r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new i.zg(r);let a=r.value;l.R.debug("[Railroad Parser] Parsed rules:",a.rules.length),m(a),l.R.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t.db}},db:t.db,renderer:t.U,styles:t.$};a.d(r,{diagram:()=>u})}};
|