paul-ai-assistant 1.0.6 → 1.0.8
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/dist/1.async.js +1 -1
- package/dist/1387.async.js +1 -1
- package/dist/1424.async.js +258 -0
- package/dist/1481.async.js +1 -1
- package/dist/1548.async.js +1 -1
- package/dist/1805.async.js +1150 -0
- package/dist/1815.async.js +2 -2
- package/dist/1819.async.js +1 -1
- package/dist/1851.async.js +1 -1
- package/dist/2369.async.js +263 -0
- package/dist/2491.async.js +2 -2
- package/dist/2678.async.js +1 -1
- package/dist/2856.async.js +1 -1
- package/dist/295.async.js +1 -1
- package/dist/3098.async.js +1 -1
- package/dist/3138.async.js +1 -1
- package/dist/34.async.js +6 -6
- package/dist/3472.async.js +1 -1
- package/dist/3614.async.js +1 -1
- package/dist/3959.async.js +1 -1
- package/dist/404.html +0 -1
- package/dist/4445.async.js +18 -0
- package/dist/4484.async.js +1 -1
- package/dist/4498.async.js +1 -1
- package/dist/4911.async.js +1 -1
- package/dist/4927.async.js +1 -1
- package/dist/5067.async.js +1 -1
- package/dist/5588.async.js +1 -1
- package/dist/5754.async.js +1 -1
- package/dist/6355.async.js +4 -4
- package/dist/6662.async.js +1 -1
- package/dist/6680.async.js +13 -13
- package/dist/6690.async.js +5 -5
- package/dist/6949.async.js +1 -0
- package/dist/7267.async.js +3 -3
- package/dist/7329.async.js +1 -1
- package/dist/7718.async.js +6 -6
- package/dist/7762.async.js +1 -1
- package/dist/7787.async.js +5 -5
- package/dist/7929.async.js +1 -1
- package/dist/804.async.js +1 -0
- package/dist/8164.async.js +1 -1
- package/dist/834.async.js +1 -1
- package/dist/8456.async.js +1 -1
- package/dist/8542.async.js +1 -1
- package/dist/8749.async.js +1 -1
- package/dist/8914.async.js +10 -10
- package/dist/9570.async.js +1 -1
- package/dist/components/llm-trace-v2/index.html +0 -1
- package/dist/components/llm-trace-v3/index.html +0 -1
- package/dist/components/llm-trace-v3-advanced/index.html +0 -1
- package/dist/components/llm-trace-v3-examples/index.html +0 -1
- package/dist/components/llm-trace-v3-visual-demos/index.html +0 -1
- package/dist/demos.async.js +9 -383
- package/dist/demos__index.md.async.js +1 -1
- package/dist/demos__markdown-latex-mermaid__index.md.async.js +1 -1
- package/dist/demos__toolChatType__index.md.async.js +6 -1
- package/dist/docs/index.html +0 -1
- package/dist/docs__components__llm-trace-v2.md.async.js +1 -1
- package/dist/docs__components__llm-trace-v3-advanced.md.async.js +1 -1
- package/dist/docs__components__llm-trace-v3-examples.md.async.js +1 -1
- package/dist/docs__components__llm-trace-v3-visual-demos.md.async.js +1 -1
- package/dist/docs__components__llm-trace-v3.md.async.js +1 -1
- package/dist/docs__docs__index.md.async.js +1 -1
- package/dist/docs__index.md.async.js +1 -1
- package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -1
- package/dist/index.html +0 -1
- package/dist/markdown-latex-mermaid/index.html +0 -1
- package/dist/meta__demos.async.js +16538 -4968
- package/dist/meta__docs.async.js +28 -29
- package/dist/nm__dumi__dist__client__pages__404.async.js +2 -2
- package/dist/nm__dumi__dist__client__pages__Demo__index.async.js +1 -1
- package/dist/nm__dumi__theme-default__layouts__DocLayout__index.async.js +1 -1
- package/dist/preload_helper.js +1 -1
- package/dist/tool-chat-type/index.html +0 -1
- package/dist/umi.js +63 -63
- package/dist/~demos/:id/index.html +0 -1
- package/dist/~demos/demos-markdown-latex-mermaid-demo-markdown-latex-mermaid/index.html +0 -1
- package/dist/~demos/demos-tool-chat-type-demo-agentschemaformdemo/index.html +0 -1
- package/dist/~demos/demos-tool-chat-type-demo-assistant-drawer/index.html +0 -1
- package/dist/~demos/demos-tool-chat-type-demo-chat-input-demo/index.html +0 -1
- package/dist/~demos/demos-tool-chat-type-demo-chat-list-demo/index.html +0 -1
- package/dist/~demos/demos-tool-chat-type-demo-chat-scenario-demo/index.html +0 -1
- package/dist/~demos/{demos-customer-service-typewriter-demo-customer-service-demo → demos-tool-chat-type-demo-default-demo}/index.html +0 -1
- package/dist/~demos/demos-tool-chat-type-demo-schema-input/index.html +0 -1
- package/dist/~demos/demos-tool-chat-type-demo-toolchattype/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-2-demo-0/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-2-demo-1/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-2-demo-2/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-2-demo-3/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-2-demo-4/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-0/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-1/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-2/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-3/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-demo-0/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-demo-1/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-demo-2/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-demo-3/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-0/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-1/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-2/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-3/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-4/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-0/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-1/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-2/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-3/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-4/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-5/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-6/index.html +0 -1
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-7/index.html +0 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.js +1 -1
- package/es/context/index.js +175 -42
- package/es/hooks/index.js +1 -0
- package/es/hooks/useAutoSend.js +95 -0
- package/es/index.js +8 -1
- package/es/service/conversation.js +74 -0
- package/es/service/index.js +1 -0
- package/es/utils/apushAssistant.js +21 -12
- package/package.json +3 -1
- package/dist/1013.async.js +0 -1
- package/dist/123.async.js +0 -258
- package/dist/6254.async.js +0 -30286
- package/dist/7084.async.js +0 -247
- package/dist/9725.async.js +0 -18
- package/dist/customer-service-typewriter/index.html +0 -44
- package/dist/demos__customerServiceTypewriter__index.md.async.js +0 -2
- package/dist/~demos/demos-customer-service-typewriter-demo-smart-scroll-demo/index.html +0 -44
- package/es/utils/im.js +0 -386
package/dist/7787.async.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(self.
|
|
2
|
-
`+
|
|
3
|
-
Expecting `+yt.join(", ")+", got '"+(this.terminals_[R]||R)+"'":It="Parse error on line "+(
|
|
1
|
+
"use strict";(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[7787],{97787:function(De,oe,H){var J,Z,tt,et,it,st,at,nt,rt,ot;H.d(oe,{diagram:function(){return Ce}});var he=H(88674),le=H(21347),Mt=H(4284),w=H(99970),a=H(35096),Q=H(989),mt=function(){var s=(0,a.eW)(function(N,o,c,g){for(c=c||{},g=N.length;g--;c[N[g]]=o);return c},"o"),t=[1,10,12,14,16,18,19,21,23],e=[2,6],i=[1,3],n=[1,5],h=[1,6],d=[1,7],b=[1,5,10,12,14,16,18,19,21,23,34,35,36],A=[1,25],L=[1,26],B=[1,28],D=[1,29],I=[1,30],z=[1,31],F=[1,32],W=[1,33],V=[1,34],X=[1,35],Y=[1,36],f=[1,37],v=[1,43],l=[1,42],O=[1,47],P=[1,50],k=[1,10,12,14,16,18,19,21,23,34,35,36],$=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],u=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],S=[1,64],T={trace:(0,a.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,a.eW)(function(o,c,g,x,m,r,gt){var p=r.length-1;switch(m){case 5:x.setOrientation(r[p]);break;case 9:x.setDiagramTitle(r[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},r[p]);break;case 13:x.setLineData(r[p-1],r[p]);break;case 14:x.setBarData({text:"",type:"text"},r[p]);break;case 15:x.setBarData(r[p-1],r[p]);break;case 16:this.$=r[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=r[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=r[p-1];break;case 20:this.$=[Number(r[p-2]),...r[p]];break;case 21:this.$=[Number(r[p])];break;case 22:x.setXAxisTitle(r[p]);break;case 23:x.setXAxisTitle(r[p-1]);break;case 24:x.setXAxisTitle({type:"text",text:""});break;case 25:x.setXAxisBand(r[p]);break;case 26:x.setXAxisRangeData(Number(r[p-2]),Number(r[p]));break;case 27:this.$=r[p-1];break;case 28:this.$=[r[p-2],...r[p]];break;case 29:this.$=[r[p]];break;case 30:x.setYAxisTitle(r[p]);break;case 31:x.setYAxisTitle(r[p-1]);break;case 32:x.setYAxisTitle({type:"text",text:""});break;case 33:x.setYAxisRangeData(Number(r[p-2]),Number(r[p]));break;case 37:this.$={text:r[p],type:"text"};break;case 38:this.$={text:r[p],type:"text"};break;case 39:this.$={text:r[p],type:"markdown"};break;case 40:this.$=r[p];break;case 41:this.$=r[p-1]+""+r[p];break}},"anonymous"),table:[s(t,e,{3:1,4:2,7:4,5:i,34:n,35:h,36:d}),{1:[3]},s(t,e,{4:2,7:4,3:8,5:i,34:n,35:h,36:d}),s(t,e,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:n,35:h,36:d}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},s(b,[2,34]),s(b,[2,35]),s(b,[2,36]),{1:[2,1]},s(t,e,{4:2,7:4,3:21,5:i,34:n,35:h,36:d}),{1:[2,3]},s(b,[2,5]),s(t,[2,7],{4:22,34:n,35:h,36:d}),{11:23,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:f},{11:39,13:38,24:v,27:l,29:40,30:41,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:f},{11:45,15:44,27:O,33:46,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:f},{11:49,17:48,24:P,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:f},{11:52,17:51,24:P,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:f},{20:[1,53]},{22:[1,54]},s(k,[2,18]),{1:[2,2]},s(k,[2,8]),s(k,[2,9]),s($,[2,37],{40:55,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:f}),s($,[2,38]),s($,[2,39]),s(u,[2,40]),s(u,[2,42]),s(u,[2,43]),s(u,[2,44]),s(u,[2,45]),s(u,[2,46]),s(u,[2,47]),s(u,[2,48]),s(u,[2,49]),s(u,[2,50]),s(u,[2,51]),s(k,[2,10]),s(k,[2,22],{30:41,29:56,24:v,27:l}),s(k,[2,24]),s(k,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:f},s(k,[2,11]),s(k,[2,30],{33:60,27:O}),s(k,[2,32]),{31:[1,61]},s(k,[2,12]),{17:62,24:P},{25:63,27:S},s(k,[2,14]),{17:65,24:P},s(k,[2,16]),s(k,[2,17]),s(u,[2,41]),s(k,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},s(k,[2,31]),{27:[1,69]},s(k,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},s(k,[2,15]),s(k,[2,26]),s(k,[2,27]),{11:59,32:72,37:24,38:A,39:L,40:27,41:B,42:D,43:I,44:z,45:F,46:W,47:V,48:X,49:Y,50:f},s(k,[2,33]),s(k,[2,19]),{25:73,27:S},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,a.eW)(function(o,c){if(c.recoverable)this.trace(o);else{var g=new Error(o);throw g.hash=c,g}},"parseError"),parse:(0,a.eW)(function(o){var c=this,g=[0],x=[],m=[null],r=[],gt=this.table,p="",pt=0,ie=0,se=0,we=2,ae=1,Se=r.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var vt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,vt)&&(G.yy[vt]=this.yy[vt]);_.setInput(o,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc=="undefined"&&(_.yylloc={});var Pt=_.yylloc;r.push(Pt);var Re=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(E){g.length=g.length-2*E,m.length=m.length-E,r.length=r.length-E}(0,a.eW)(Te,"popStack");function ne(){var E;return E=x.pop()||_.lex()||ae,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=c.symbols_[E]||E),E}(0,a.eW)(ne,"lex");for(var R,Et,K,M,We,Lt,ht={},ft,U,re,yt;;){if(K=g[g.length-1],this.defaultActions[K]?M=this.defaultActions[K]:((R===null||typeof R=="undefined")&&(R=ne()),M=gt[K]&>[K][R]),typeof M=="undefined"||!M.length||!M[0]){var It="";yt=[];for(ft in gt[K])this.terminals_[ft]&&ft>we&&yt.push("'"+this.terminals_[ft]+"'");_.showPosition?It="Parse error on line "+(pt+1)+`:
|
|
2
|
+
`+_.showPosition()+`
|
|
3
|
+
Expecting `+yt.join(", ")+", got '"+(this.terminals_[R]||R)+"'":It="Parse error on line "+(pt+1)+": Unexpected "+(R==ae?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(It,{text:_.match,token:this.terminals_[R]||R,line:_.yylineno,loc:Pt,expected:yt})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+R);switch(M[0]){case 1:g.push(R),m.push(_.yytext),r.push(_.yylloc),g.push(M[1]),R=null,Et?(R=Et,Et=null):(ie=_.yyleng,p=_.yytext,pt=_.yylineno,Pt=_.yylloc,se>0&&se--);break;case 2:if(U=this.productions_[M[1]][1],ht.$=m[m.length-U],ht._$={first_line:r[r.length-(U||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(U||1)].first_column,last_column:r[r.length-1].last_column},Re&&(ht._$.range=[r[r.length-(U||1)].range[0],r[r.length-1].range[1]]),Lt=this.performAction.apply(ht,[p,ie,pt,G.yy,M[1],m,r].concat(Se)),typeof Lt!="undefined")return Lt;U&&(g=g.slice(0,-1*U*2),m=m.slice(0,-1*U),r=r.slice(0,-1*U)),g.push(this.productions_[M[1]][0]),m.push(ht.$),r.push(ht._$),re=gt[g[g.length-2]][g[g.length-1]],g.push(re);break;case 3:return!0}}return!0},"parse")},C=function(){var N={EOF:1,parseError:(0,a.eW)(function(c,g){if(this.yy.parser)this.yy.parser.parseError(c,g);else throw new Error(c)},"parseError"),setInput:(0,a.eW)(function(o,c){return this.yy=c||this.yy||{},this._input=o,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,a.eW)(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:(0,a.eW)(function(o){var c=o.length,g=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var m=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:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.eW)(function(){return this._more=!0,this},"more"),reject:(0,a.eW)(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:(0,a.eW)(function(o){this.unput(this.match.slice(o))},"less"),pastInput:(0,a.eW)(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.eW)(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,a.eW)(function(){var o=this.pastInput(),c=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
5
|
`+c+"^"},"showPosition"),test_match:(0,a.eW)(function(o,c){var g,x,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),x=o[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],g=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var r in m)this[r]=m[r];return!1}return!1},"test_match"),next:(0,a.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,c,g,x;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),r=0;r<m.length;r++)if(g=this._input.match(this.rules[m[r]]),g&&(!c||g[0].length>c[0].length)){if(c=g,x=r,this.options.backtrack_lexer){if(o=this.test_match(g,m[r]),o!==!1)return o;if(this._backtrack){c=!1;continue}else return!1}else if(!this.options.flex)break}return c?(o=this.test_match(c,m[x]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,a.eW)(function(){var c=this.next();return c||this.lex()},"lex"),begin:(0,a.eW)(function(c){this.conditionStack.push(c)},"begin"),popState:(0,a.eW)(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.eW)(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,a.eW)(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:(0,a.eW)(function(c){this.begin(c)},"pushState"),stateStackSize:(0,a.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.eW)(function(c,g,x,m){var r=m;switch(x){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 31;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 27;case 25:return this.popState(),26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return N}();T.lexer=C;function j(){this.yy={}}return(0,a.eW)(j,"Parser"),j.prototype=T,T.Parser=j,new j}();mt.parser=mt;var ce=mt;function bt(s){return s.type==="bar"}(0,a.eW)(bt,"isBarPlot");function At(s){return s.type==="band"}(0,a.eW)(At,"isBandAxisData");function q(s){return s.type==="linear"}(0,a.eW)(q,"isLinearAxisData");var Bt=(J=class{constructor(t){this.parentGroup=t}getMaxDimension(t,e){if(!this.parentGroup)return{width:t.reduce((h,d)=>Math.max(d.length,h),0)*e,height:e};const i={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e);for(const h of t){const d=(0,le.QA)(n,1,h),b=d?d.width:h.length*e,A=d?d.height:e;i.width=Math.max(i.width,b),i.height=Math.max(i.height,A)}return n.remove(),i}},(0,a.eW)(J,"TextDimensionCalculatorWithFont"),J),Vt=.7,Ot=.2,zt=(Z=class{constructor(t,e,i,n){this.axisConfig=t,this.title=e,this.textDimensionCalculator=i,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Vt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Vt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let e=t.height;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const i=this.getLabelDimension(),n=Ot*t.width;this.outerPadding=Math.min(i.width/2,n);const h=i.height+this.axisConfig.labelPadding*2;this.labelTextHeight=i.height,h<=e&&(e-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,n<=e&&(e-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-e}calculateSpaceIfDrawnVertical(t){let e=t.width;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const i=this.getLabelDimension(),n=Ot*t.height;this.outerPadding=Math.min(i.height/2,n);const h=i.width+this.axisConfig.labelPadding*2;h<=e&&(e-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,n<=e&&(e-=n,this.showTitle=!0)}this.boundingRect.width=t.width-e,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${e},${this.boundingRect.y} L ${e},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const e=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${e},${this.getScaleValue(i)} L ${e-this.axisConfig.tickLength},${this.getScaleValue(i)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const e=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${e} L ${this.getScaleValue(i)},${e+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const e=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${e+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(i)},${e+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},(0,a.eW)(Z,"BaseAxis"),Z),ue=(tt=class extends zt{constructor(t,e,i,n,h){super(t,n,h,e),this.categories=i,this.scale=(0,Q.tiA)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,Q.tiA)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),a.cM.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){var e;return(e=this.scale(t))!=null?e:this.getRange()[0]}},(0,a.eW)(tt,"BandAxis"),tt),ge=(et=class extends zt{constructor(t,e,i,n,h){super(t,n,h,e),this.domain=i,this.scale=(0,Q.BYU)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=(0,Q.BYU)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},(0,a.eW)(et,"LinearAxis"),et);function _t(s,t,e,i){const n=new Bt(i);return At(s)?new ue(t,e,s.categories,s.title,n):new ge(t,e,[s.min,s.max],s.title,n)}(0,a.eW)(_t,"getAxis");var xe=(it=class{constructor(t,e,i,n){this.textDimensionCalculator=t,this.chartConfig=e,this.chartData=i,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const e=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),i=Math.max(e.width,t.width),n=e.height+2*this.chartConfig.titlePadding;return e.width<=i&&e.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=i,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},(0,a.eW)(it,"ChartTitle"),it);function Ft(s,t,e,i){const n=new Bt(i);return new xe(n,s,t,e)}(0,a.eW)(Ft,"getChartTitleComponent");var de=(st=class{constructor(t,e,i,n,h){this.plotData=t,this.xAxis=e,this.yAxis=i,this.orientation=n,this.plotIndex=h}getDrawableElement(){const t=this.plotData.data.map(i=>[this.xAxis.getScaleValue(i[0]),this.yAxis.getScaleValue(i[1])]);let e;return this.orientation==="horizontal"?e=(0,Q.jvg)().y(i=>i[0]).x(i=>i[1])(t):e=(0,Q.jvg)().x(i=>i[0]).y(i=>i[1])(t),e?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:e,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},(0,a.eW)(st,"LinePlot"),st),fe=(at=class{constructor(t,e,i,n,h,d){this.barData=t,this.boundingRect=e,this.xAxis=i,this.yAxis=n,this.orientation=h,this.plotIndex=d}getDrawableElement(){const t=this.barData.data.map(h=>[this.xAxis.getScaleValue(h[0]),this.yAxis.getScaleValue(h[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:this.boundingRect.x,y:h[0]-n,height:i,width:h[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:h[0]-n,y:h[1],width:i,height:this.boundingRect.y+this.boundingRect.height-h[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},(0,a.eW)(at,"BarPlot"),at),pe=(nt=class{constructor(t,e,i){this.chartConfig=t,this.chartData=e,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,e){this.xAxis=t,this.yAxis=e}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[e,i]of this.chartData.plots.entries())switch(i.type){case"line":{const n=new de(i,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...n.getDrawableElement())}break;case"bar":{const n=new fe(i,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...n.getDrawableElement())}break}return t}},(0,a.eW)(nt,"BasePlot"),nt);function Xt(s,t,e){return new pe(s,t,e)}(0,a.eW)(Xt,"getPlotComponent");var ye=(rt=class{constructor(t,e,i,n){this.chartConfig=t,this.chartData=e,this.componentStore={title:Ft(t,e,i,n),plot:Xt(t,e,i),xAxis:_t(e.xAxis,t.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},n),yAxis:_t(e.yAxis,t.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,i=0,n=0,h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),b=this.componentStore.plot.calculateSpace({width:h,height:d});t-=b.width,e-=b.height,b=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),n=b.height,e-=b.height,this.componentStore.xAxis.setAxisPosition("bottom"),b=this.componentStore.xAxis.calculateSpace({width:t,height:e}),e-=b.height,this.componentStore.yAxis.setAxisPosition("left"),b=this.componentStore.yAxis.calculateSpace({width:t,height:e}),i=b.width,t-=b.width,t>0&&(h+=t,t=0),e>0&&(d+=e,e=0),this.componentStore.plot.calculateSpace({width:h,height:d}),this.componentStore.plot.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([i,i+h]),this.componentStore.xAxis.setBoundingBoxXY({x:i,y:n+d}),this.componentStore.yAxis.setRange([n,n+d]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(A=>bt(A))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,i=0,n=0,h=0,d=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),b=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),A=this.componentStore.plot.calculateSpace({width:d,height:b});t-=A.width,e-=A.height,A=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),i=A.height,e-=A.height,this.componentStore.xAxis.setAxisPosition("left"),A=this.componentStore.xAxis.calculateSpace({width:t,height:e}),t-=A.width,n=A.width,this.componentStore.yAxis.setAxisPosition("top"),A=this.componentStore.yAxis.calculateSpace({width:t,height:e}),e-=A.height,h=i+A.height,t>0&&(d+=t,t=0),e>0&&(b+=e,e=0),this.componentStore.plot.calculateSpace({width:d,height:b}),this.componentStore.plot.setBoundingBoxXY({x:n,y:h}),this.componentStore.yAxis.setRange([n,n+d]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([h,h+b]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:h}),this.chartData.plots.some(L=>bt(L))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const e of Object.values(this.componentStore))t.push(...e.getDrawableElements());return t}},(0,a.eW)(rt,"Orchestrator"),rt),me=(ot=class{static build(t,e,i,n){return new ye(t,e,i,n).getDrawableElement()}},(0,a.eW)(ot,"XYChartBuilder"),ot),lt=0,Yt,ct=St(),ut=wt(),y=Rt(),kt=ut.plotColorPalette.split(",").map(s=>s.trim()),xt=!1,Ct=!1;function wt(){const s=(0,w.xN)(),t=(0,w.iE)();return(0,Mt.Rb)(s.xyChart,t.themeVariables.xyChart)}(0,a.eW)(wt,"getChartDefaultThemeConfig");function St(){const s=(0,w.iE)();return(0,Mt.Rb)(w.vZ.xyChart,s.xyChart)}(0,a.eW)(St,"getChartDefaultConfig");function Rt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}(0,a.eW)(Rt,"getChartDefaultData");function dt(s){const t=(0,w.iE)();return(0,w.oO)(s.trim(),t)}(0,a.eW)(dt,"textSanitizer");function Nt(s){Yt=s}(0,a.eW)(Nt,"setTmpSVGG");function Ut(s){s==="horizontal"?ct.chartOrientation="horizontal":ct.chartOrientation="vertical"}(0,a.eW)(Ut,"setOrientation");function Ht(s){y.xAxis.title=dt(s.text)}(0,a.eW)(Ht,"setXAxisTitle");function Tt(s,t){y.xAxis={type:"linear",title:y.xAxis.title,min:s,max:t},xt=!0}(0,a.eW)(Tt,"setXAxisRangeData");function $t(s){y.xAxis={type:"band",title:y.xAxis.title,categories:s.map(t=>dt(t.text))},xt=!0}(0,a.eW)($t,"setXAxisBand");function jt(s){y.yAxis.title=dt(s.text)}(0,a.eW)(jt,"setYAxisTitle");function Gt(s,t){y.yAxis={type:"linear",title:y.yAxis.title,min:s,max:t},Ct=!0}(0,a.eW)(Gt,"setYAxisRangeData");function Kt(s){const t=Math.min(...s),e=Math.max(...s),i=q(y.yAxis)?y.yAxis.min:1/0,n=q(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(i,t),max:Math.max(n,e)}}(0,a.eW)(Kt,"setYAxisRangeFromPlotData");function Dt(s){let t=[];if(s.length===0)return t;if(!xt){const e=q(y.xAxis)?y.xAxis.min:1/0,i=q(y.xAxis)?y.xAxis.max:-1/0;Tt(Math.min(e,1),Math.max(i,s.length))}if(Ct||Kt(s),At(y.xAxis)&&(t=y.xAxis.categories.map((e,i)=>[e,s[i]])),q(y.xAxis)){const e=y.xAxis.min,i=y.xAxis.max,n=(i-e)/(s.length-1),h=[];for(let d=e;d<=i;d+=n)h.push(`${d}`);t=h.map((d,b)=>[d,s[b]])}return t}(0,a.eW)(Dt,"transformDataWithoutCategory");function Wt(s){return kt[s===0?0:s%kt.length]}(0,a.eW)(Wt,"getPlotColorFromPalette");function Qt(s,t){const e=Dt(t);y.plots.push({type:"line",strokeFill:Wt(lt),strokeWidth:2,data:e}),lt++}(0,a.eW)(Qt,"setLineData");function qt(s,t){const e=Dt(t);y.plots.push({type:"bar",fill:Wt(lt),data:e}),lt++}(0,a.eW)(qt,"setBarData");function Jt(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=(0,w.Kr)(),me.build(ct,y,ut,Yt)}(0,a.eW)(Jt,"getDrawableElem");function Zt(){return ut}(0,a.eW)(Zt,"getChartThemeConfig");function te(){return ct}(0,a.eW)(te,"getChartConfig");function ee(){return y}(0,a.eW)(ee,"getXYChartData");var be=(0,a.eW)(function(){(0,w.ZH)(),lt=0,ct=St(),y=Rt(),ut=wt(),kt=ut.plotColorPalette.split(",").map(s=>s.trim()),xt=!1,Ct=!1},"clear"),Ae={getDrawableElem:Jt,clear:be,setAccTitle:w.GN,getAccTitle:w.eu,setDiagramTitle:w.g2,getDiagramTitle:w.Kr,getAccDescription:w.Mx,setAccDescription:w.U$,setOrientation:Ut,setXAxisTitle:Ht,setXAxisRangeData:Tt,setXAxisBand:$t,setYAxisTitle:jt,setYAxisRangeData:Gt,setLineData:Qt,setBarData:qt,setTmpSVGG:Nt,getChartThemeConfig:Zt,getChartConfig:te,getXYChartData:ee},_e=(0,a.eW)((s,t,e,i)=>{const n=i.db,h=n.getChartThemeConfig(),d=n.getChartConfig(),b=n.getXYChartData().plots[0].data.map(p=>p[1]);function A(p){return p==="top"?"text-before-edge":"middle"}(0,a.eW)(A,"getDominantBaseLine");function L(p){return p==="left"?"start":p==="right"?"end":"middle"}(0,a.eW)(L,"getTextAnchor");function B(p){return`translate(${p.x}, ${p.y}) rotate(${p.rotation||0})`}(0,a.eW)(B,"getTextTransformation"),a.cM.debug(`Rendering xychart chart
|
|
7
|
-
`+s);const D=(0,he.P)(t),I=D.append("g").attr("class","main"),z=I.append("rect").attr("width",d.width).attr("height",d.height).attr("class","background");(0,w.v2)(D,d.height,d.width,!0),D.attr("viewBox",`0 0 ${d.width} ${d.height}`),z.attr("fill",h.backgroundColor),n.setTmpSVGG(D.append("g").attr("class","mermaid-tmp-group"));const F=n.getDrawableElem(),W={};function V(
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,a.eW)(function(){var c=this.next();return c||this.lex()},"lex"),begin:(0,a.eW)(function(c){this.conditionStack.push(c)},"begin"),popState:(0,a.eW)(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.eW)(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,a.eW)(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:(0,a.eW)(function(c){this.begin(c)},"pushState"),stateStackSize:(0,a.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.eW)(function(c,g,x,m){var r=m;switch(x){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 31;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 27;case 25:return this.popState(),26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return N}();T.lexer=C;function j(){this.yy={}}return(0,a.eW)(j,"Parser"),j.prototype=T,T.Parser=j,new j}();mt.parser=mt;var ce=mt;function bt(s){return s.type==="bar"}(0,a.eW)(bt,"isBarPlot");function At(s){return s.type==="band"}(0,a.eW)(At,"isBandAxisData");function q(s){return s.type==="linear"}(0,a.eW)(q,"isLinearAxisData");var Bt=(J=class{constructor(t){this.parentGroup=t}getMaxDimension(t,e){if(!this.parentGroup)return{width:t.reduce((h,d)=>Math.max(d.length,h),0)*e,height:e};const i={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e);for(const h of t){const d=(0,le.QA)(n,1,h),b=d?d.width:h.length*e,A=d?d.height:e;i.width=Math.max(i.width,b),i.height=Math.max(i.height,A)}return n.remove(),i}},(0,a.eW)(J,"TextDimensionCalculatorWithFont"),J),Vt=.7,Ot=.2,zt=(Z=class{constructor(t,e,i,n){this.axisConfig=t,this.title=e,this.textDimensionCalculator=i,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Vt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Vt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let e=t.height;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const i=this.getLabelDimension(),n=Ot*t.width;this.outerPadding=Math.min(i.width/2,n);const h=i.height+this.axisConfig.labelPadding*2;this.labelTextHeight=i.height,h<=e&&(e-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,n<=e&&(e-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-e}calculateSpaceIfDrawnVertical(t){let e=t.width;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const i=this.getLabelDimension(),n=Ot*t.height;this.outerPadding=Math.min(i.height/2,n);const h=i.width+this.axisConfig.labelPadding*2;h<=e&&(e-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,n<=e&&(e-=n,this.showTitle=!0)}this.boundingRect.width=t.width-e,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${e},${this.boundingRect.y} L ${e},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const e=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${e},${this.getScaleValue(i)} L ${e-this.axisConfig.tickLength},${this.getScaleValue(i)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const e=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${e} L ${this.getScaleValue(i)},${e+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const e=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${e+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(i)},${e+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},(0,a.eW)(Z,"BaseAxis"),Z),ue=(tt=class extends zt{constructor(t,e,i,n,h){super(t,n,h,e),this.categories=i,this.scale=(0,Q.tiA)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,Q.tiA)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),a.cM.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){var e;return(e=this.scale(t))!=null?e:this.getRange()[0]}},(0,a.eW)(tt,"BandAxis"),tt),ge=(et=class extends zt{constructor(t,e,i,n,h){super(t,n,h,e),this.domain=i,this.scale=(0,Q.BYU)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=(0,Q.BYU)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},(0,a.eW)(et,"LinearAxis"),et);function kt(s,t,e,i){const n=new Bt(i);return At(s)?new ue(t,e,s.categories,s.title,n):new ge(t,e,[s.min,s.max],s.title,n)}(0,a.eW)(kt,"getAxis");var xe=(it=class{constructor(t,e,i,n){this.textDimensionCalculator=t,this.chartConfig=e,this.chartData=i,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const e=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),i=Math.max(e.width,t.width),n=e.height+2*this.chartConfig.titlePadding;return e.width<=i&&e.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=i,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},(0,a.eW)(it,"ChartTitle"),it);function Ft(s,t,e,i){const n=new Bt(i);return new xe(n,s,t,e)}(0,a.eW)(Ft,"getChartTitleComponent");var de=(st=class{constructor(t,e,i,n,h){this.plotData=t,this.xAxis=e,this.yAxis=i,this.orientation=n,this.plotIndex=h}getDrawableElement(){const t=this.plotData.data.map(i=>[this.xAxis.getScaleValue(i[0]),this.yAxis.getScaleValue(i[1])]);let e;return this.orientation==="horizontal"?e=(0,Q.jvg)().y(i=>i[0]).x(i=>i[1])(t):e=(0,Q.jvg)().x(i=>i[0]).y(i=>i[1])(t),e?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:e,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},(0,a.eW)(st,"LinePlot"),st),pe=(at=class{constructor(t,e,i,n,h,d){this.barData=t,this.boundingRect=e,this.xAxis=i,this.yAxis=n,this.orientation=h,this.plotIndex=d}getDrawableElement(){const t=this.barData.data.map(h=>[this.xAxis.getScaleValue(h[0]),this.yAxis.getScaleValue(h[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:this.boundingRect.x,y:h[0]-n,height:i,width:h[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:h[0]-n,y:h[1],width:i,height:this.boundingRect.y+this.boundingRect.height-h[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},(0,a.eW)(at,"BarPlot"),at),fe=(nt=class{constructor(t,e,i){this.chartConfig=t,this.chartData=e,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,e){this.xAxis=t,this.yAxis=e}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[e,i]of this.chartData.plots.entries())switch(i.type){case"line":{const n=new de(i,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...n.getDrawableElement())}break;case"bar":{const n=new pe(i,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...n.getDrawableElement())}break}return t}},(0,a.eW)(nt,"BasePlot"),nt);function Xt(s,t,e){return new fe(s,t,e)}(0,a.eW)(Xt,"getPlotComponent");var ye=(rt=class{constructor(t,e,i,n){this.chartConfig=t,this.chartData=e,this.componentStore={title:Ft(t,e,i,n),plot:Xt(t,e,i),xAxis:kt(e.xAxis,t.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},n),yAxis:kt(e.yAxis,t.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,i=0,n=0,h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),b=this.componentStore.plot.calculateSpace({width:h,height:d});t-=b.width,e-=b.height,b=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),n=b.height,e-=b.height,this.componentStore.xAxis.setAxisPosition("bottom"),b=this.componentStore.xAxis.calculateSpace({width:t,height:e}),e-=b.height,this.componentStore.yAxis.setAxisPosition("left"),b=this.componentStore.yAxis.calculateSpace({width:t,height:e}),i=b.width,t-=b.width,t>0&&(h+=t,t=0),e>0&&(d+=e,e=0),this.componentStore.plot.calculateSpace({width:h,height:d}),this.componentStore.plot.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([i,i+h]),this.componentStore.xAxis.setBoundingBoxXY({x:i,y:n+d}),this.componentStore.yAxis.setRange([n,n+d]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(A=>bt(A))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,i=0,n=0,h=0,d=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),b=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),A=this.componentStore.plot.calculateSpace({width:d,height:b});t-=A.width,e-=A.height,A=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),i=A.height,e-=A.height,this.componentStore.xAxis.setAxisPosition("left"),A=this.componentStore.xAxis.calculateSpace({width:t,height:e}),t-=A.width,n=A.width,this.componentStore.yAxis.setAxisPosition("top"),A=this.componentStore.yAxis.calculateSpace({width:t,height:e}),e-=A.height,h=i+A.height,t>0&&(d+=t,t=0),e>0&&(b+=e,e=0),this.componentStore.plot.calculateSpace({width:d,height:b}),this.componentStore.plot.setBoundingBoxXY({x:n,y:h}),this.componentStore.yAxis.setRange([n,n+d]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([h,h+b]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:h}),this.chartData.plots.some(L=>bt(L))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const e of Object.values(this.componentStore))t.push(...e.getDrawableElements());return t}},(0,a.eW)(rt,"Orchestrator"),rt),me=(ot=class{static build(t,e,i,n){return new ye(t,e,i,n).getDrawableElement()}},(0,a.eW)(ot,"XYChartBuilder"),ot),lt=0,Yt,ct=St(),ut=wt(),y=Rt(),_t=ut.plotColorPalette.split(",").map(s=>s.trim()),xt=!1,Ct=!1;function wt(){const s=(0,w.xN)(),t=(0,w.iE)();return(0,Mt.Rb)(s.xyChart,t.themeVariables.xyChart)}(0,a.eW)(wt,"getChartDefaultThemeConfig");function St(){const s=(0,w.iE)();return(0,Mt.Rb)(w.vZ.xyChart,s.xyChart)}(0,a.eW)(St,"getChartDefaultConfig");function Rt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}(0,a.eW)(Rt,"getChartDefaultData");function dt(s){const t=(0,w.iE)();return(0,w.oO)(s.trim(),t)}(0,a.eW)(dt,"textSanitizer");function Nt(s){Yt=s}(0,a.eW)(Nt,"setTmpSVGG");function Ut(s){s==="horizontal"?ct.chartOrientation="horizontal":ct.chartOrientation="vertical"}(0,a.eW)(Ut,"setOrientation");function Ht(s){y.xAxis.title=dt(s.text)}(0,a.eW)(Ht,"setXAxisTitle");function Tt(s,t){y.xAxis={type:"linear",title:y.xAxis.title,min:s,max:t},xt=!0}(0,a.eW)(Tt,"setXAxisRangeData");function $t(s){y.xAxis={type:"band",title:y.xAxis.title,categories:s.map(t=>dt(t.text))},xt=!0}(0,a.eW)($t,"setXAxisBand");function jt(s){y.yAxis.title=dt(s.text)}(0,a.eW)(jt,"setYAxisTitle");function Gt(s,t){y.yAxis={type:"linear",title:y.yAxis.title,min:s,max:t},Ct=!0}(0,a.eW)(Gt,"setYAxisRangeData");function Kt(s){const t=Math.min(...s),e=Math.max(...s),i=q(y.yAxis)?y.yAxis.min:1/0,n=q(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(i,t),max:Math.max(n,e)}}(0,a.eW)(Kt,"setYAxisRangeFromPlotData");function Dt(s){let t=[];if(s.length===0)return t;if(!xt){const e=q(y.xAxis)?y.xAxis.min:1/0,i=q(y.xAxis)?y.xAxis.max:-1/0;Tt(Math.min(e,1),Math.max(i,s.length))}if(Ct||Kt(s),At(y.xAxis)&&(t=y.xAxis.categories.map((e,i)=>[e,s[i]])),q(y.xAxis)){const e=y.xAxis.min,i=y.xAxis.max,n=(i-e)/(s.length-1),h=[];for(let d=e;d<=i;d+=n)h.push(`${d}`);t=h.map((d,b)=>[d,s[b]])}return t}(0,a.eW)(Dt,"transformDataWithoutCategory");function Wt(s){return _t[s===0?0:s%_t.length]}(0,a.eW)(Wt,"getPlotColorFromPalette");function Qt(s,t){const e=Dt(t);y.plots.push({type:"line",strokeFill:Wt(lt),strokeWidth:2,data:e}),lt++}(0,a.eW)(Qt,"setLineData");function qt(s,t){const e=Dt(t);y.plots.push({type:"bar",fill:Wt(lt),data:e}),lt++}(0,a.eW)(qt,"setBarData");function Jt(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=(0,w.Kr)(),me.build(ct,y,ut,Yt)}(0,a.eW)(Jt,"getDrawableElem");function Zt(){return ut}(0,a.eW)(Zt,"getChartThemeConfig");function te(){return ct}(0,a.eW)(te,"getChartConfig");function ee(){return y}(0,a.eW)(ee,"getXYChartData");var be=(0,a.eW)(function(){(0,w.ZH)(),lt=0,ct=St(),y=Rt(),ut=wt(),_t=ut.plotColorPalette.split(",").map(s=>s.trim()),xt=!1,Ct=!1},"clear"),Ae={getDrawableElem:Jt,clear:be,setAccTitle:w.GN,getAccTitle:w.eu,setDiagramTitle:w.g2,getDiagramTitle:w.Kr,getAccDescription:w.Mx,setAccDescription:w.U$,setOrientation:Ut,setXAxisTitle:Ht,setXAxisRangeData:Tt,setXAxisBand:$t,setYAxisTitle:jt,setYAxisRangeData:Gt,setLineData:Qt,setBarData:qt,setTmpSVGG:Nt,getChartThemeConfig:Zt,getChartConfig:te,getXYChartData:ee},ke=(0,a.eW)((s,t,e,i)=>{const n=i.db,h=n.getChartThemeConfig(),d=n.getChartConfig(),b=n.getXYChartData().plots[0].data.map(f=>f[1]);function A(f){return f==="top"?"text-before-edge":"middle"}(0,a.eW)(A,"getDominantBaseLine");function L(f){return f==="left"?"start":f==="right"?"end":"middle"}(0,a.eW)(L,"getTextAnchor");function B(f){return`translate(${f.x}, ${f.y}) rotate(${f.rotation||0})`}(0,a.eW)(B,"getTextTransformation"),a.cM.debug(`Rendering xychart chart
|
|
7
|
+
`+s);const D=(0,he.P)(t),I=D.append("g").attr("class","main"),z=I.append("rect").attr("width",d.width).attr("height",d.height).attr("class","background");(0,w.v2)(D,d.height,d.width,!0),D.attr("viewBox",`0 0 ${d.width} ${d.height}`),z.attr("fill",h.backgroundColor),n.setTmpSVGG(D.append("g").attr("class","mermaid-tmp-group"));const F=n.getDrawableElem(),W={};function V(f){let v=I,l="";for(const[O]of f.entries()){let P=I;O>0&&W[l]&&(P=W[l]),l+=f[O],v=W[l],v||(v=W[l]=P.append("g").attr("class",f[O]))}return v}(0,a.eW)(V,"getGroup");for(const f of F){if(f.data.length===0)continue;const v=V(f.groupTexts);switch(f.type){case"rect":if(v.selectAll("rect").data(f.data).enter().append("rect").attr("x",l=>l.x).attr("y",l=>l.y).attr("width",l=>l.width).attr("height",l=>l.height).attr("fill",l=>l.fill).attr("stroke",l=>l.strokeFill).attr("stroke-width",l=>l.strokeWidth),d.showDataLabel)if(d.chartOrientation==="horizontal"){let l=function(u,S){const{data:T,label:C}=u;return S*C.length*O<=T.width-10};var X=l;(0,a.eW)(l,"fitsHorizontally");const O=.7,P=f.data.map((u,S)=>({data:u,label:b[S].toString()})).filter(u=>u.data.width>0&&u.data.height>0),k=P.map(u=>{const{data:S}=u;let T=S.height*.7;for(;!l(u,T)&&T>0;)T-=1;return T}),$=Math.floor(Math.min(...k));v.selectAll("text").data(P).enter().append("text").attr("x",u=>u.data.x+u.data.width-10).attr("y",u=>u.data.y+u.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${$}px`).text(u=>u.label)}else{let l=function(u,S,T){const{data:C,label:j}=u,o=S*j.length*.7,c=C.x+C.width/2,g=c-o/2,x=c+o/2,m=g>=C.x&&x<=C.x+C.width,r=C.y+T+S<=C.y+C.height;return m&&r};var Y=l;(0,a.eW)(l,"fitsInBar");const O=10,P=f.data.map((u,S)=>({data:u,label:b[S].toString()})).filter(u=>u.data.width>0&&u.data.height>0),k=P.map(u=>{const{data:S,label:T}=u;let C=S.width/(T.length*.7);for(;!l(u,C,O)&&C>0;)C-=1;return C}),$=Math.floor(Math.min(...k));v.selectAll("text").data(P).enter().append("text").attr("x",u=>u.data.x+u.data.width/2).attr("y",u=>u.data.y+O).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${$}px`).text(u=>u.label)}break;case"text":v.selectAll("text").data(f.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",l=>l.fill).attr("font-size",l=>l.fontSize).attr("dominant-baseline",l=>A(l.verticalPos)).attr("text-anchor",l=>L(l.horizontalPos)).attr("transform",l=>B(l)).text(l=>l.text);break;case"path":v.selectAll("path").data(f.data).enter().append("path").attr("d",l=>l.path).attr("fill",l=>l.fill?l.fill:"none").attr("stroke",l=>l.strokeFill).attr("stroke-width",l=>l.strokeWidth);break}}},"draw"),_e={draw:ke},Ce={parser:ce,db:Ae,renderer:_e}}}]);
|
package/dist/7929.async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.
|
|
1
|
+
"use strict";(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[7929],{47929:function(n,s,_){_.d(s,{createGitGraphServices:function(){return a.z}});var a=_(62815),u=_(9423)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[804],{80804:function(pn,kt,N){N.d(kt,{Z:function(){return ln}});var f=N(4942),x=N(87462),Rt=N(93967),I=N.n(Rt),xe=N(98423),a=N(1024),te=N(53124),Ue=N(97647),he=N(71002),It=function(t){var r=t.prefixCls,n=t.className,i=t.style,o=t.size,l=t.shape,c=I()((0,f.Z)((0,f.Z)({},"".concat(r,"-lg"),o==="large"),"".concat(r,"-sm"),o==="small")),s=I()((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(r,"-circle"),l==="circle"),"".concat(r,"-square"),l==="square"),"".concat(r,"-round"),l==="round")),v=a.useMemo(function(){return typeof o=="number"?{width:o,height:o,lineHeight:"".concat(o,"px")}:{}},[o]);return a.createElement("span",{className:I()(r,c,s,n),style:(0,x.Z)((0,x.Z)({},v),i)})},Ee=It,wt=function(t){var r=t.prefixCls,n=t.className,i=t.active,o=t.shape,l=o===void 0?"circle":o,c=t.size,s=c===void 0?"default":c,v=a.useContext(te.E_),d=v.getPrefixCls,u=d("skeleton",r),b=(0,xe.Z)(t,["prefixCls","className"]),y=I()(u,"".concat(u,"-element"),(0,f.Z)({},"".concat(u,"-active"),i),n);return a.createElement("div",{className:y},a.createElement(Ee,(0,x.Z)({prefixCls:"".concat(u,"-avatar"),shape:l,size:s},b)))},Ot=wt,zt=function(t){var r=t.prefixCls,n=t.className,i=t.active,o=t.block,l=o===void 0?!1:o,c=t.size,s=c===void 0?"default":c,v=a.useContext(te.E_),d=v.getPrefixCls,u=d("skeleton",r),b=(0,xe.Z)(t,["prefixCls"]),y=I()(u,"".concat(u,"-element"),(0,f.Z)((0,f.Z)({},"".concat(u,"-active"),i),"".concat(u,"-block"),l),n);return a.createElement("div",{className:y},a.createElement(Ee,(0,x.Z)({prefixCls:"".concat(u,"-button"),size:s},b)))},At=zt,G=N(1413),Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Lt=Mt,Fe=N(84089),Bt=function(t,r){return a.createElement(Fe.Z,(0,G.Z)((0,G.Z)({},t),{},{ref:r,icon:Lt}))},Dt=a.forwardRef(Bt),$t=Dt,Kt=function(t){var r=t.prefixCls,n=t.className,i=t.style,o=t.active,l=t.children,c=a.useContext(te.E_),s=c.getPrefixCls,v=s("skeleton",r),d=I()(v,"".concat(v,"-element"),(0,f.Z)({},"".concat(v,"-active"),o),n),u=l!=null?l:a.createElement($t,null);return a.createElement("div",{className:d},a.createElement("div",{className:I()("".concat(v,"-image"),n),style:i},u))},jt=Kt,Wt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Vt=function(t){var r=t.prefixCls,n=t.className,i=t.style,o=t.active,l=a.useContext(te.E_),c=l.getPrefixCls,s=c("skeleton",r),v=I()(s,"".concat(s,"-element"),(0,f.Z)({},"".concat(s,"-active"),o),n);return a.createElement("div",{className:v},a.createElement("div",{className:I()("".concat(s,"-image"),n),style:i},a.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(s,"-image-svg")},a.createElement("path",{d:Wt,className:"".concat(s,"-image-path")}))))},Gt=Vt,Ut=function(t){var r=t.prefixCls,n=t.className,i=t.active,o=t.block,l=t.size,c=l===void 0?"default":l,s=a.useContext(te.E_),v=s.getPrefixCls,d=v("skeleton",r),u=(0,xe.Z)(t,["prefixCls"]),b=I()(d,"".concat(d,"-element"),(0,f.Z)((0,f.Z)({},"".concat(d,"-active"),i),"".concat(d,"-block"),o),n);return a.createElement("div",{className:b},a.createElement(Ee,(0,x.Z)({prefixCls:"".concat(d,"-input"),size:c},u)))},Ft=Ut,Ie=N(74902),Ht=function(t){var r=function(v){var d=t.width,u=t.rows,b=u===void 0?2:u;if(Array.isArray(d))return d[v];if(b-1===v)return d},n=t.prefixCls,i=t.className,o=t.style,l=t.rows,c=(0,Ie.Z)(Array(l)).map(function(s,v){return a.createElement("li",{key:v,style:{width:r(v)}})});return a.createElement("ul",{className:I()(n,i),style:o},c)},Xt=Ht,Yt=function(t){var r=t.prefixCls,n=t.className,i=t.width,o=t.style;return a.createElement("h3",{className:I()(r,n),style:(0,x.Z)({width:i},o)})},Qt=Yt;function we(e){return e&&(0,he.Z)(e)==="object"?e:{}}function Jt(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function qt(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function _t(e,t){var r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}var me=function(t){var r=t.prefixCls,n=t.loading,i=t.className,o=t.style,l=t.children,c=t.avatar,s=c===void 0?!1:c,v=t.title,d=v===void 0?!0:v,u=t.paragraph,b=u===void 0?!0:u,y=t.active,T=t.round,E=a.useContext(te.E_),L=E.getPrefixCls,A=E.direction,p=L("skeleton",r);if(n||!("loading"in t)){var Z=!!s,D=!!d,M=!!b,k;if(Z){var S=(0,x.Z)((0,x.Z)({prefixCls:"".concat(p,"-avatar")},Jt(D,M)),we(s));k=a.createElement("div",{className:"".concat(p,"-header")},a.createElement(Ee,(0,x.Z)({},S)))}var B;if(D||M){var h;if(D){var R=(0,x.Z)((0,x.Z)({prefixCls:"".concat(p,"-title")},qt(Z,M)),we(d));h=a.createElement(Qt,(0,x.Z)({},R))}var m;if(M){var w=(0,x.Z)((0,x.Z)({prefixCls:"".concat(p,"-paragraph")},_t(Z,D)),we(b));m=a.createElement(Xt,(0,x.Z)({},w))}B=a.createElement("div",{className:"".concat(p,"-content")},h,m)}var g=I()(p,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(p,"-with-avatar"),Z),"".concat(p,"-active"),y),"".concat(p,"-rtl"),A==="rtl"),"".concat(p,"-round"),T),i);return a.createElement("div",{className:g,style:o},k,B)}return typeof l!="undefined"?l:null};me.Button=At,me.Avatar=Ot,me.Input=Ft,me.Image=Gt,me.Node=jt;var ea=me,ta=ea,aa=N(97937),na=N(89705),ra={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ia=ra,oa=function(t,r){return a.createElement(Fe.Z,(0,G.Z)((0,G.Z)({},t),{},{ref:r,icon:ia}))},la=a.forwardRef(oa),ca=la,$=N(97685),Se=N(91),sa=N(31131),He=N(21770),ua=N(29372),Ze=(0,a.createContext)(null),va=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,i=e.style,o=e.id,l=e.active,c=e.tabKey,s=e.children;return a.createElement("div",{id:o&&"".concat(o,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(c),"aria-hidden":!l,style:i,className:I()(r,l&&"".concat(r,"-active"),n),ref:t},s)}),Xe=va,da=["key","forceRender","style","className"];function fa(e){var t=e.id,r=e.activeKey,n=e.animated,i=e.tabPosition,o=e.destroyInactiveTabPane,l=a.useContext(Ze),c=l.prefixCls,s=l.tabs,v=n.tabPane,d="".concat(c,"-tabpane");return a.createElement("div",{className:I()("".concat(c,"-content-holder"))},a.createElement("div",{className:I()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),(0,f.Z)({},"".concat(c,"-content-animated"),v))},s.map(function(u){var b=u.key,y=u.forceRender,T=u.style,E=u.className,L=(0,Se.Z)(u,da),A=b===r;return a.createElement(ua.ZP,(0,x.Z)({key:b,visible:A,forceRender:y,removeOnLeave:!!o,leavedClassName:"".concat(d,"-hidden")},n.tabPaneMotion),function(p,Z){var D=p.style,M=p.className;return a.createElement(Xe,(0,x.Z)({},L,{prefixCls:d,id:t,tabKey:b,animated:v,active:A,style:(0,G.Z)((0,G.Z)({},T),D),className:I()(E,M),ref:Z}))})})))}var Ye=N(48555),ma=N(66680),Qe=N(75164),ba=N(42550),Je={width:0,height:0,left:0,top:0};function ha(e,t,r){return(0,a.useMemo)(function(){for(var n,i=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||Je,l=o.left+o.width,c=0;c<e.length;c+=1){var s=e[c].key,v=t.get(s);if(!v){var d;v=t.get((d=e[c-1])===null||d===void 0?void 0:d.key)||Je}var u=i.get(s)||(0,G.Z)({},v);u.right=l-u.left-u.width,i.set(s,u)}return i},[e.map(function(n){return n.key}).join("_"),t,r])}function qe(e,t){var r=a.useRef(e),n=a.useState({}),i=(0,$.Z)(n,2),o=i[1];function l(c){var s=typeof c=="function"?c(r.current):c;s!==r.current&&t(s,r.current),r.current=s,o({})}return[r.current,l]}var ya=.1,_e=.01,Pe=20,et=Math.pow(.995,Pe);function ga(e,t){var r=(0,a.useState)(),n=(0,$.Z)(r,2),i=n[0],o=n[1],l=(0,a.useState)(0),c=(0,$.Z)(l,2),s=c[0],v=c[1],d=(0,a.useState)(0),u=(0,$.Z)(d,2),b=u[0],y=u[1],T=(0,a.useState)(),E=(0,$.Z)(T,2),L=E[0],A=E[1],p=(0,a.useRef)();function Z(h){var R=h.touches[0],m=R.screenX,w=R.screenY;o({x:m,y:w}),window.clearInterval(p.current)}function D(h){if(i){h.preventDefault();var R=h.touches[0],m=R.screenX,w=R.screenY;o({x:m,y:w});var g=m-i.x,O=w-i.y;t(g,O);var Y=Date.now();v(Y),y(Y-s),A({x:g,y:O})}}function M(){if(i&&(o(null),A(null),L)){var h=L.x/b,R=L.y/b,m=Math.abs(h),w=Math.abs(R);if(Math.max(m,w)<ya)return;var g=h,O=R;p.current=window.setInterval(function(){if(Math.abs(g)<_e&&Math.abs(O)<_e){window.clearInterval(p.current);return}g*=et,O*=et,t(g*Pe,O*Pe)},Pe)}}var k=(0,a.useRef)();function S(h){var R=h.deltaX,m=h.deltaY,w=0,g=Math.abs(R),O=Math.abs(m);g===O?w=k.current==="x"?R:m:g>O?(w=R,k.current="x"):(w=m,k.current="y"),t(-w,-w)&&h.preventDefault()}var B=(0,a.useRef)(null);B.current={onTouchStart:Z,onTouchMove:D,onTouchEnd:M,onWheel:S},a.useEffect(function(){function h(g){B.current.onTouchStart(g)}function R(g){B.current.onTouchMove(g)}function m(g){B.current.onTouchEnd(g)}function w(g){B.current.onWheel(g)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",m,{passive:!1}),e.current.addEventListener("touchstart",h,{passive:!1}),e.current.addEventListener("wheel",w),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",m)}},[])}var Ca=N(8410);function tt(e){var t=(0,a.useState)(0),r=(0,$.Z)(t,2),n=r[0],i=r[1],o=(0,a.useRef)(0),l=(0,a.useRef)();return l.current=e,(0,Ca.o)(function(){var c;(c=l.current)===null||c===void 0||c.call(l)},[n]),function(){o.current===n&&(o.current+=1,i(o.current))}}function pa(e){var t=(0,a.useRef)([]),r=(0,a.useState)({}),n=(0,$.Z)(r,2),i=n[1],o=(0,a.useRef)(typeof e=="function"?e():e),l=tt(function(){var s=o.current;t.current.forEach(function(v){s=v(s)}),t.current=[],o.current=s,i({})});function c(s){t.current.push(s),l()}return[o.current,c]}var at={width:0,height:0,left:0,top:0,right:0};function xa(e,t,r,n,i,o,l){var c=l.tabs,s=l.tabPosition,v=l.rtl,d,u,b;return["top","bottom"].includes(s)?(d="width",u=v?"right":"left",b=Math.abs(r)):(d="height",u="top",b=-r),(0,a.useMemo)(function(){if(!c.length)return[0,0];for(var y=c.length,T=y,E=0;E<y;E+=1){var L=e.get(c[E].key)||at;if(L[u]+L[d]>b+t){T=E-1;break}}for(var A=0,p=y-1;p>=0;p-=1){var Z=e.get(c[p].key)||at;if(Z[u]<b){A=p+1;break}}return[A,T]},[e,t,n,i,o,b,s,c.map(function(y){return y.key}).join("_"),v])}function nt(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var Ea="TABS_DQ";function rt(e){return String(e).replace(/"/g,Ea)}function Sa(e,t){var r=e.prefixCls,n=e.editable,i=e.locale,o=e.style;return!n||n.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(c){n.onEdit("add",{event:c})}},n.addIcon||"+")}var it=a.forwardRef(Sa),Za=a.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,i=e.extra;if(!i)return null;var o,l={};return(0,he.Z)(i)==="object"&&!a.isValidElement(i)?l=i:l.right=i,r==="right"&&(o=l.right),r==="left"&&(o=l.left),o?a.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null}),ot=Za,Pa=N(60057),lt=N(97868),ae=N(15105);function Na(e,t){var r=e.prefixCls,n=e.id,i=e.tabs,o=e.locale,l=e.mobile,c=e.moreIcon,s=c===void 0?"More":c,v=e.moreTransitionName,d=e.style,u=e.className,b=e.editable,y=e.tabBarGutter,T=e.rtl,E=e.removeAriaLabel,L=e.onTabClick,A=e.getPopupContainer,p=e.popupClassName,Z=(0,a.useState)(!1),D=(0,$.Z)(Z,2),M=D[0],k=D[1],S=(0,a.useState)(null),B=(0,$.Z)(S,2),h=B[0],R=B[1],m="".concat(n,"-more-popup"),w="".concat(r,"-dropdown"),g=h!==null?"".concat(m,"-").concat(h):null,O=o==null?void 0:o.dropdownAriaLabel;function Y(C,W){C.preventDefault(),C.stopPropagation(),b.onEdit("remove",{key:W,event:C})}var K=a.createElement(lt.ZP,{onClick:function(W){var J=W.key,U=W.domEvent;L(J,U),k(!1)},prefixCls:"".concat(w,"-menu"),id:m,tabIndex:-1,role:"listbox","aria-activedescendant":g,selectedKeys:[h],"aria-label":O!==void 0?O:"expanded dropdown"},i.map(function(C){var W=b&&C.closable!==!1&&!C.disabled;return a.createElement(lt.sN,{key:C.key,id:"".concat(m,"-").concat(C.key),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(C.key),disabled:C.disabled},a.createElement("span",null,C.label),W&&a.createElement("button",{type:"button","aria-label":E||"remove",tabIndex:0,className:"".concat(w,"-menu-item-remove"),onClick:function(U){U.stopPropagation(),Y(U,C.key)}},C.closeIcon||b.removeIcon||"\xD7"))}));function ne(C){for(var W=i.filter(function(Q){return!Q.disabled}),J=W.findIndex(function(Q){return Q.key===h})||0,U=W.length,_=0;_<U;_+=1){J=(J+C+U)%U;var ce=W[J];if(!ce.disabled){R(ce.key);return}}}function F(C){var W=C.which;if(!M){[ae.Z.DOWN,ae.Z.SPACE,ae.Z.ENTER].includes(W)&&(k(!0),C.preventDefault());return}switch(W){case ae.Z.UP:ne(-1),C.preventDefault();break;case ae.Z.DOWN:ne(1),C.preventDefault();break;case ae.Z.ESC:k(!1);break;case ae.Z.SPACE:case ae.Z.ENTER:h!==null&&L(h,C);break}}(0,a.useEffect)(function(){var C=document.getElementById(g);C&&C.scrollIntoView&&C.scrollIntoView(!1)},[h]),(0,a.useEffect)(function(){M||R(null)},[M]);var q=(0,f.Z)({},T?"marginRight":"marginLeft",y);i.length||(q.visibility="hidden",q.order=1);var le=I()((0,f.Z)({},"".concat(w,"-rtl"),T)),re=l?null:a.createElement(Pa.Z,{prefixCls:w,overlay:K,trigger:["hover"],visible:i.length?M:!1,transitionName:v,onVisibleChange:k,overlayClassName:I()(le,p),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:A},a.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:q,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":m,id:"".concat(n,"-more"),"aria-expanded":M,onKeyDown:F},s));return a.createElement("div",{className:I()("".concat(r,"-nav-operations"),u),style:d,ref:t},re,a.createElement(it,{prefixCls:r,locale:o,editable:b}))}var Ta=a.memo(a.forwardRef(Na),function(e,t){return t.tabMoving});function ka(e){var t,r=e.prefixCls,n=e.id,i=e.active,o=e.tab,l=o.key,c=o.label,s=o.disabled,v=o.closeIcon,d=e.closable,u=e.renderWrapper,b=e.removeAriaLabel,y=e.editable,T=e.onClick,E=e.onFocus,L=e.style,A="".concat(r,"-tab"),p=y&&d!==!1&&!s;function Z(k){s||T(k)}function D(k){k.preventDefault(),k.stopPropagation(),y.onEdit("remove",{key:l,event:k})}var M=a.createElement("div",{key:l,"data-node-key":rt(l),className:I()(A,(t={},(0,f.Z)(t,"".concat(A,"-with-remove"),p),(0,f.Z)(t,"".concat(A,"-active"),i),(0,f.Z)(t,"".concat(A,"-disabled"),s),t)),style:L,onClick:Z},a.createElement("div",{role:"tab","aria-selected":i,id:n&&"".concat(n,"-tab-").concat(l),className:"".concat(A,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(l),"aria-disabled":s,tabIndex:s?null:0,onClick:function(S){S.stopPropagation(),Z(S)},onKeyDown:function(S){[ae.Z.SPACE,ae.Z.ENTER].includes(S.which)&&(S.preventDefault(),Z(S))},onFocus:E},c),p&&a.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(A,"-remove"),onClick:function(S){S.stopPropagation(),D(S)}},v||y.removeIcon||"\xD7"));return u?u(M):M}var Ra=ka,be=function(t){var r=t.current||{},n=r.offsetWidth,i=n===void 0?0:n,o=r.offsetHeight,l=o===void 0?0:o;return[i,l]},Ne=function(t,r){return t[r?0:1]};function Ia(e,t){var r,n=a.useContext(Ze),i=n.prefixCls,o=n.tabs,l=e.className,c=e.style,s=e.id,v=e.animated,d=e.activeKey,u=e.rtl,b=e.extra,y=e.editable,T=e.locale,E=e.tabPosition,L=e.tabBarGutter,A=e.children,p=e.onTabClick,Z=e.onTabScroll,D=(0,a.useRef)(),M=(0,a.useRef)(),k=(0,a.useRef)(),S=(0,a.useRef)(),B=(0,a.useRef)(),h=(0,a.useRef)(),R=(0,a.useRef)(),m=E==="top"||E==="bottom",w=qe(0,function(z,P){m&&Z&&Z({direction:z>P?"left":"right"})}),g=(0,$.Z)(w,2),O=g[0],Y=g[1],K=qe(0,function(z,P){!m&&Z&&Z({direction:z>P?"top":"bottom"})}),ne=(0,$.Z)(K,2),F=ne[0],q=ne[1],le=(0,a.useState)([0,0]),re=(0,$.Z)(le,2),C=re[0],W=re[1],J=(0,a.useState)([0,0]),U=(0,$.Z)(J,2),_=U[0],ce=U[1],Q=(0,a.useState)([0,0]),X=(0,$.Z)(Q,2),ee=X[0],ze=X[1],Ae=(0,a.useState)([0,0]),ye=(0,$.Z)(Ae,2),Me=ye[0],Le=ye[1],j=pa(new Map),se=(0,$.Z)(j,2),ge=se[0],cn=se[1],Te=ha(o,ge,_[0]),Be=Ne(C,m),Ce=Ne(_,m),De=Ne(ee,m),dt=Ne(Me,m),ft=Be<Ce+De,ie=ft?Be-dt:Be-De,sn="".concat(i,"-nav-operations-hidden"),ue=0,fe=0;m&&u?(ue=0,fe=Math.max(0,Ce-ie)):(ue=Math.min(0,ie-Ce),fe=0);function $e(z){return z<ue?ue:z>fe?fe:z}var mt=(0,a.useRef)(),un=(0,a.useState)(),bt=(0,$.Z)(un,2),ke=bt[0],ht=bt[1];function Ke(){ht(Date.now())}function je(){window.clearTimeout(mt.current)}ga(S,function(z,P){function V(H,de){H(function(oe){var Cn=$e(oe+de);return Cn})}return ft?(m?V(Y,z):V(q,P),je(),Ke(),!0):!1}),(0,a.useEffect)(function(){return je(),ke&&(mt.current=window.setTimeout(function(){ht(0)},100)),je},[ke]);var vn=xa(Te,ie,m?O:F,Ce,De,dt,(0,G.Z)((0,G.Z)({},e),{},{tabs:o})),yt=(0,$.Z)(vn,2),dn=yt[0],fn=yt[1],gt=(0,ma.Z)(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,P=Te.get(z)||{width:0,height:0,left:0,right:0,top:0};if(m){var V=O;u?P.right<O?V=P.right:P.right+P.width>O+ie&&(V=P.right+P.width-ie):P.left<-O?V=-P.left:P.left+P.width>-O+ie&&(V=-(P.left+P.width-ie)),q(0),Y($e(V))}else{var H=F;P.top<-F?H=-P.top:P.top+P.height>-F+ie&&(H=-(P.top+P.height-ie)),Y(0),q($e(H))}}),Re={};E==="top"||E==="bottom"?Re[u?"marginRight":"marginLeft"]=L:Re.marginTop=L;var Ct=o.map(function(z,P){var V=z.key;return a.createElement(Ra,{id:s,prefixCls:i,key:V,tab:z,style:P===0?void 0:Re,closable:z.closable,editable:y,active:V===d,renderWrapper:A,removeAriaLabel:T==null?void 0:T.removeAriaLabel,onClick:function(de){p(V,de)},onFocus:function(){gt(V),Ke(),S.current&&(u||(S.current.scrollLeft=0),S.current.scrollTop=0)}})}),pt=function(){return cn(function(){var P=new Map;return o.forEach(function(V){var H,de=V.key,oe=(H=B.current)===null||H===void 0?void 0:H.querySelector('[data-node-key="'.concat(rt(de),'"]'));oe&&P.set(de,{width:oe.offsetWidth,height:oe.offsetHeight,left:oe.offsetLeft,top:oe.offsetTop})}),P})};(0,a.useEffect)(function(){pt()},[o.map(function(z){return z.key}).join("_")]);var We=tt(function(){var z=be(D),P=be(M),V=be(k);W([z[0]-P[0]-V[0],z[1]-P[1]-V[1]]);var H=be(R);ze(H);var de=be(h);Le(de);var oe=be(B);ce([oe[0]-H[0],oe[1]-H[1]]),pt()}),mn=o.slice(0,dn),bn=o.slice(fn+1),xt=[].concat((0,Ie.Z)(mn),(0,Ie.Z)(bn)),hn=(0,a.useState)(),Et=(0,$.Z)(hn,2),yn=Et[0],gn=Et[1],ve=Te.get(d),St=(0,a.useRef)();function Zt(){Qe.Z.cancel(St.current)}(0,a.useEffect)(function(){var z={};return ve&&(m?(u?z.right=ve.right:z.left=ve.left,z.width=ve.width):(z.top=ve.top,z.height=ve.height)),Zt(),St.current=(0,Qe.Z)(function(){gn(z)}),Zt},[ve,m,u]),(0,a.useEffect)(function(){gt()},[d,ue,fe,nt(ve),nt(Te),m]),(0,a.useEffect)(function(){We()},[u]);var Pt=!!xt.length,pe="".concat(i,"-nav-wrap"),Ve,Ge,Nt,Tt;return m?u?(Ge=O>0,Ve=O!==fe):(Ve=O<0,Ge=O!==ue):(Nt=F<0,Tt=F!==ue),a.createElement(Ye.Z,{onResize:We},a.createElement("div",{ref:(0,ba.x1)(t,D),role:"tablist",className:I()("".concat(i,"-nav"),l),style:c,onKeyDown:function(){Ke()}},a.createElement(ot,{ref:M,position:"left",extra:b,prefixCls:i}),a.createElement("div",{className:I()(pe,(r={},(0,f.Z)(r,"".concat(pe,"-ping-left"),Ve),(0,f.Z)(r,"".concat(pe,"-ping-right"),Ge),(0,f.Z)(r,"".concat(pe,"-ping-top"),Nt),(0,f.Z)(r,"".concat(pe,"-ping-bottom"),Tt),r)),ref:S},a.createElement(Ye.Z,{onResize:We},a.createElement("div",{ref:B,className:"".concat(i,"-nav-list"),style:{transform:"translate(".concat(O,"px, ").concat(F,"px)"),transition:ke?"none":void 0}},Ct,a.createElement(it,{ref:R,prefixCls:i,locale:T,editable:y,style:(0,G.Z)((0,G.Z)({},Ct.length===0?void 0:Re),{},{visibility:Pt?"hidden":null})}),a.createElement("div",{className:I()("".concat(i,"-ink-bar"),(0,f.Z)({},"".concat(i,"-ink-bar-animated"),v.inkBar)),style:yn})))),a.createElement(Ta,(0,x.Z)({},e,{removeAriaLabel:T==null?void 0:T.removeAriaLabel,ref:h,prefixCls:i,tabs:xt,className:!Pt&&sn,tabMoving:!!ke})),a.createElement(ot,{ref:k,position:"right",extra:b,prefixCls:i})))}var ct=a.forwardRef(Ia),wa=["renderTabBar"],Oa=["label","key"];function za(e){var t=e.renderTabBar,r=(0,Se.Z)(e,wa),n=a.useContext(Ze),i=n.tabs;if(t){var o=(0,G.Z)((0,G.Z)({},r),{},{panes:i.map(function(l){var c=l.label,s=l.key,v=(0,Se.Z)(l,Oa);return a.createElement(Xe,(0,x.Z)({tab:c,key:s,tabKey:s},v))})});return t(o,ct)}return a.createElement(ct,r)}var xn=N(80334);function Aa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,G.Z)({inkBar:!0},(0,he.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Ma=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],st=0;function La(e,t){var r,n=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,l=e.className,c=e.items,s=e.direction,v=e.activeKey,d=e.defaultActiveKey,u=e.editable,b=e.animated,y=e.tabPosition,T=y===void 0?"top":y,E=e.tabBarGutter,L=e.tabBarStyle,A=e.tabBarExtraContent,p=e.locale,Z=e.moreIcon,D=e.moreTransitionName,M=e.destroyInactiveTabPane,k=e.renderTabBar,S=e.onChange,B=e.onTabClick,h=e.onTabScroll,R=e.getPopupContainer,m=e.popupClassName,w=(0,Se.Z)(e,Ma),g=a.useMemo(function(){return(c||[]).filter(function(j){return j&&(0,he.Z)(j)==="object"&&"key"in j})},[c]),O=s==="rtl",Y=Aa(b),K=(0,a.useState)(!1),ne=(0,$.Z)(K,2),F=ne[0],q=ne[1];(0,a.useEffect)(function(){q((0,sa.Z)())},[]);var le=(0,He.Z)(function(){var j;return(j=g[0])===null||j===void 0?void 0:j.key},{value:v,defaultValue:d}),re=(0,$.Z)(le,2),C=re[0],W=re[1],J=(0,a.useState)(function(){return g.findIndex(function(j){return j.key===C})}),U=(0,$.Z)(J,2),_=U[0],ce=U[1];(0,a.useEffect)(function(){var j=g.findIndex(function(ge){return ge.key===C});if(j===-1){var se;j=Math.max(0,Math.min(_,g.length-1)),W((se=g[j])===null||se===void 0?void 0:se.key)}ce(j)},[g.map(function(j){return j.key}).join("_"),C,_]);var Q=(0,He.Z)(null,{value:n}),X=(0,$.Z)(Q,2),ee=X[0],ze=X[1];(0,a.useEffect)(function(){n||(ze("rc-tabs-".concat(st)),st+=1)},[]);function Ae(j,se){B==null||B(j,se);var ge=j!==C;W(j),ge&&(S==null||S(j))}var ye={id:ee,activeKey:C,animated:Y,tabPosition:T,rtl:O,mobile:F},Me,Le=(0,G.Z)((0,G.Z)({},ye),{},{editable:u,locale:p,moreIcon:Z,moreTransitionName:D,tabBarGutter:E,onTabClick:Ae,onTabScroll:h,extra:A,style:L,panes:null,getPopupContainer:R,popupClassName:m});return a.createElement(Ze.Provider,{value:{tabs:g,prefixCls:o}},a.createElement("div",(0,x.Z)({ref:t,id:n,className:I()(o,"".concat(o,"-").concat(T),(r={},(0,f.Z)(r,"".concat(o,"-mobile"),F),(0,f.Z)(r,"".concat(o,"-editable"),u),(0,f.Z)(r,"".concat(o,"-rtl"),O),r),l)},w),Me,a.createElement(za,(0,x.Z)({},Le,{renderTabBar:k})),a.createElement(fa,(0,x.Z)({destroyInactiveTabPane:M},ye,{animated:Y}))))}var Ba=a.forwardRef(La),Da=Ba,$a=Da,Ka=N(33603),ja={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=(0,x.Z)({inkBar:!0},(0,he.Z)(t)==="object"?t:{}),r.tabPane&&(r.tabPaneMotion=(0,x.Z)((0,x.Z)({},ja),{motionName:(0,Ka.mL)(e,"switch")})),r}var Va=N(50344),Ga=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function Ua(e){return e.filter(function(t){return t})}function Fa(e,t){if(e)return e;var r=(0,Va.Z)(t).map(function(n){if(a.isValidElement(n)){var i=n.key,o=n.props,l=o||{},c=l.tab,s=Ga(l,["tab"]),v=(0,x.Z)((0,x.Z)({key:String(i)},s),{label:c});return v}return null});return Ua(r)}var Ha=function(){return null},Xa=Ha,Ya=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function ut(e){var t=e.type,r=e.className,n=e.size,i=e.onEdit,o=e.hideAdd,l=e.centered,c=e.addIcon,s=e.children,v=e.items,d=e.animated,u=Ya(e,["type","className","size","onEdit","hideAdd","centered","addIcon","children","items","animated"]),b=u.prefixCls,y=u.moreIcon,T=y===void 0?a.createElement(na.Z,null):y,E=a.useContext(te.E_),L=E.getPrefixCls,A=E.direction,p=E.getPopupContainer,Z=L("tabs",b),D;t==="editable-card"&&(D={onEdit:function(h,R){var m=R.key,w=R.event;i==null||i(h==="add"?w:m,h)},removeIcon:a.createElement(aa.Z,null),addIcon:c||a.createElement(ca,null),showAdd:o!==!0});var M=L(),k=Fa(v,s),S=Wa(Z,d);return a.createElement(Ue.Z.Consumer,null,function(B){var h=n!==void 0?n:B;return a.createElement($a,(0,x.Z)({direction:A,getPopupContainer:p,moreTransitionName:"".concat(M,"-slide-up")},u,{items:k,className:I()((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(Z,"-").concat(h),h),"".concat(Z,"-card"),["card","editable-card"].includes(t)),"".concat(Z,"-editable-card"),t==="editable-card"),"".concat(Z,"-centered"),l),r),editable:D,moreIcon:T,prefixCls:Z,animated:S}))})}ut.TabPane=Xa;var Qa=ut,Ja=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},qa=function(t){var r=t.prefixCls,n=t.className,i=t.hoverable,o=i===void 0?!0:i,l=Ja(t,["prefixCls","className","hoverable"]);return a.createElement(te.C,null,function(c){var s=c.getPrefixCls,v=s("card",r),d=I()("".concat(v,"-grid"),n,(0,f.Z)({},"".concat(v,"-grid-hoverable"),o));return a.createElement("div",(0,x.Z)({},l,{className:d}))})},vt=qa,_a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function en(e){var t=e.map(function(r,n){return a.createElement("li",{style:{width:"".concat(100/e.length,"%")},key:"action-".concat(n)},a.createElement("span",null,r))});return t}var tn=a.forwardRef(function(e,t){var r=a.useContext(te.E_),n=r.getPrefixCls,i=r.direction,o=a.useContext(Ue.Z),l=function(X){var ee;(ee=e.onTabChange)===null||ee===void 0||ee.call(e,X)},c=function(){var X;return a.Children.forEach(e.children,function(ee){ee&&ee.type&&ee.type===vt&&(X=!0)}),X},s=e.prefixCls,v=e.className,d=e.extra,u=e.headStyle,b=u===void 0?{}:u,y=e.bodyStyle,T=y===void 0?{}:y,E=e.title,L=e.loading,A=e.bordered,p=A===void 0?!0:A,Z=e.size,D=e.type,M=e.cover,k=e.actions,S=e.tabList,B=e.children,h=e.activeTabKey,R=e.defaultActiveTabKey,m=e.tabBarExtraContent,w=e.hoverable,g=e.tabProps,O=g===void 0?{}:g,Y=_a(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),K=n("card",s),ne=a.createElement(ta,{loading:!0,active:!0,paragraph:{rows:4},title:!1},B),F=h!==void 0,q=(0,x.Z)((0,x.Z)({},O),(0,f.Z)((0,f.Z)({},F?"activeKey":"defaultActiveKey",F?h:R),"tabBarExtraContent",m)),le,re=S&&S.length?a.createElement(Qa,(0,x.Z)({size:"large"},q,{className:"".concat(K,"-head-tabs"),onChange:l,items:S.map(function(Q){var X;return{label:Q.tab,key:Q.key,disabled:(X=Q.disabled)!==null&&X!==void 0?X:!1}})})):null;(E||d||re)&&(le=a.createElement("div",{className:"".concat(K,"-head"),style:b},a.createElement("div",{className:"".concat(K,"-head-wrapper")},E&&a.createElement("div",{className:"".concat(K,"-head-title")},E),d&&a.createElement("div",{className:"".concat(K,"-extra")},d)),re));var C=M?a.createElement("div",{className:"".concat(K,"-cover")},M):null,W=a.createElement("div",{className:"".concat(K,"-body"),style:T},L?ne:B),J=k&&k.length?a.createElement("ul",{className:"".concat(K,"-actions")},en(k)):null,U=(0,xe.Z)(Y,["onTabChange"]),_=Z||o,ce=I()(K,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(K,"-loading"),L),"".concat(K,"-bordered"),p),"".concat(K,"-hoverable"),w),"".concat(K,"-contain-grid"),c()),"".concat(K,"-contain-tabs"),S&&S.length),"".concat(K,"-").concat(_),_),"".concat(K,"-type-").concat(D),!!D),"".concat(K,"-rtl"),i==="rtl"),v);return a.createElement("div",(0,x.Z)({ref:t},U,{className:ce}),le,C,W,J)}),an=tn,nn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},rn=function(t){return a.createElement(te.C,null,function(r){var n=r.getPrefixCls,i=t.prefixCls,o=t.className,l=t.avatar,c=t.title,s=t.description,v=nn(t,["prefixCls","className","avatar","title","description"]),d=n("card",i),u=I()("".concat(d,"-meta"),o),b=l?a.createElement("div",{className:"".concat(d,"-meta-avatar")},l):null,y=c?a.createElement("div",{className:"".concat(d,"-meta-title")},c):null,T=s?a.createElement("div",{className:"".concat(d,"-meta-description")},s):null,E=y||T?a.createElement("div",{className:"".concat(d,"-meta-detail")},y,T):null;return a.createElement("div",(0,x.Z)({},v,{className:u}),b,E)})},on=rn,Oe=an;Oe.Grid=vt,Oe.Meta=on;var ln=Oe}}]);
|
package/dist/8164.async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.
|
|
1
|
+
"use strict";(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[8164],{8164:function(n,a,_){_.d(a,{createRadarServices:function(){return s.T}});var s=_(2557),u=_(9423)}}]);
|
package/dist/834.async.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!(function(){"use strict";var ae=(yt,Z,k)=>new Promise((Q,R)=>{var q=r=>{try{_(k.next(r))}catch(v){R(v)}},F=r=>{try{_(k.throw(r))}catch(v){R(v)}},_=r=>r.done?Q(r.value):Promise.resolve(r.value).then(q,F);_((k=k.apply(yt,Z)).next())});(self.
|
|
1
|
+
!(function(){"use strict";var ae=(yt,Z,k)=>new Promise((Q,R)=>{var q=r=>{try{_(k.next(r))}catch(v){R(v)}},F=r=>{try{_(k.throw(r))}catch(v){R(v)}},_=r=>r.done?Q(r.value):Promise.resolve(r.value).then(q,F);_((k=k.apply(yt,Z)).next())});(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[834],{26620:function(yt,Z,k){k.d(Z,{q:function(){return q}});var Q=k(35096),R=k(989),q=(0,Q.eW)((F,_)=>{let r;return _==="sandbox"&&(r=(0,R.Ys)("#i"+F)),(_==="sandbox"?(0,R.Ys)(r.nodes()[0].contentDocument.body):(0,R.Ys)("body")).select(`[id="${F}"]`)},"getDiagramElement")},80834:function(yt,Z,k){var tt;k.d(Z,{Ee:function(){return Ie},J8:function(){return $},_$:function(){return Ae},oI:function(){return Oe}});var Q=k(26620),R=k(43663),q=k(23386),F=k(4284),_=k(99970),r=k(35096),v=function(){var e=(0,r.eW)(function(X,c,d,o){for(d=d||{},o=X.length;o--;d[X[o]]=c);return d},"o"),t=[1,2],s=[1,3],n=[1,4],i=[2,4],l=[1,9],u=[1,11],S=[1,16],p=[1,17],E=[1,18],T=[1,19],m=[1,33],M=[1,20],W=[1,21],A=[1,22],I=[1,23],N=[1,24],f=[1,26],O=[1,27],x=[1,28],G=[1,29],Y=[1,30],w=[1,31],V=[1,32],et=[1,35],Tt=[1,36],bt=[1,37],kt=[1,38],nt=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],se=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],It={trace:(0,r.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,r.eW)(function(c,d,o,g,b,a,pt){var h=a.length-1;switch(b){case 3:return g.setRootDoc(a[h]),a[h];break;case 4:this.$=[];break;case 5:a[h]!="nl"&&(a[h-1].push(a[h]),this.$=a[h-1]);break;case 6:case 7:this.$=a[h];break;case 8:this.$="nl";break;case 12:this.$=a[h];break;case 13:const vt=a[h-1];vt.description=g.trimColon(a[h]),this.$=vt;break;case 14:this.$={stmt:"relation",state1:a[h-2],state2:a[h]};break;case 15:const Ct=g.trimColon(a[h]);this.$={stmt:"relation",state1:a[h-3],state2:a[h-1],description:Ct};break;case 19:this.$={stmt:"state",id:a[h-3],type:"default",description:"",doc:a[h-1]};break;case 20:var st=a[h],ot=a[h-2].trim();if(a[h].match(":")){var St=a[h].split(":");st=St[0],ot=[ot,St[1]]}this.$={stmt:"state",id:st,type:"default",description:ot};break;case 21:this.$={stmt:"state",id:a[h-3],type:"default",description:a[h-5],doc:a[h-1]};break;case 22:this.$={stmt:"state",id:a[h],type:"fork"};break;case 23:this.$={stmt:"state",id:a[h],type:"join"};break;case 24:this.$={stmt:"state",id:a[h],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[h-1].trim(),note:{position:a[h-2].trim(),text:a[h].trim()}};break;case 29:this.$=a[h].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=a[h].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:a[h-3],url:a[h-2],tooltip:a[h-1]};break;case 33:this.$={stmt:"click",id:a[h-3],url:a[h-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:a[h-1].trim(),classes:a[h].trim()};break;case 36:this.$={stmt:"style",id:a[h-1].trim(),styleClass:a[h].trim()};break;case 37:this.$={stmt:"applyClass",id:a[h-1].trim(),styleClass:a[h].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[h].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:a[h-2].trim(),classes:[a[h].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:a[h-2].trim(),classes:[a[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:n},{1:[3]},{3:5,4:t,5:s,6:n},{3:6,4:t,5:s,6:n},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:E,22:T,24:m,25:M,26:W,27:A,28:I,29:N,32:25,33:f,35:O,37:x,38:G,41:Y,45:w,48:V,51:et,52:Tt,53:bt,54:kt,57:nt},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:E,22:T,24:m,25:M,26:W,27:A,28:I,29:N,32:25,33:f,35:O,37:x,38:G,41:Y,45:w,48:V,51:et,52:Tt,53:bt,54:kt,57:nt},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:m,57:nt},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(mt,[2,44],{58:[1,56]}),e(mt,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:m,57:nt},e(y,[2,17]),e(se,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:l,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:E,21:[1,72],22:T,24:m,25:M,26:W,27:A,28:I,29:N,32:25,33:f,35:O,37:x,38:G,41:Y,45:w,48:V,51:et,52:Tt,53:bt,54:kt,57:nt},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(mt,[2,46]),e(mt,[2,47]),e(y,[2,15]),e(y,[2,19]),e(se,i,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:E,21:[1,81],22:T,24:m,25:M,26:W,27:A,28:I,29:N,32:25,33:f,35:O,37:x,38:G,41:Y,45:w,48:V,51:et,52:Tt,53:bt,54:kt,57:nt},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,r.eW)(function(c,d){if(d.recoverable)this.trace(c);else{var o=new Error(c);throw o.hash=d,o}},"parseError"),parse:(0,r.eW)(function(c){var d=this,o=[0],g=[],b=[null],a=[],pt=this.table,h="",st=0,ot=0,St=0,vt=2,Ct=1,we=a.slice.call(arguments,1),D=Object.create(this.lexer),it={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(it.yy[Nt]=this.yy[Nt]);D.setInput(c,it.yy),it.yy.lexer=D,it.yy.parser=this,typeof D.yylloc=="undefined"&&(D.yylloc={});var wt=D.yylloc;a.push(wt);var Pe=D.options&&D.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function We(P){o.length=o.length-2*P,b.length=b.length-P,a.length=a.length-P}(0,r.eW)(We,"popStack");function ie(){var P;return P=g.pop()||D.lex()||Ct,typeof P!="number"&&(P instanceof Array&&(g=P,P=g.pop()),P=d.symbols_[P]||P),P}(0,r.eW)(ie,"lex");for(var L,Pt,rt,B,Be,Wt,ct={},At,U,re,xt;;){if(rt=o[o.length-1],this.defaultActions[rt]?B=this.defaultActions[rt]:((L===null||typeof L=="undefined")&&(L=ie()),B=pt[rt]&&pt[rt][L]),typeof B=="undefined"||!B.length||!B[0]){var Bt="";xt=[];for(At in pt[rt])this.terminals_[At]&&At>vt&&xt.push("'"+this.terminals_[At]+"'");D.showPosition?Bt="Parse error on line "+(st+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+xt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Bt="Parse error on line "+(st+1)+": Unexpected "+(L==Ct?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Bt,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:wt,expected:xt})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+rt+", token: "+L);switch(B[0]){case 1:o.push(L),b.push(D.yytext),a.push(D.yylloc),o.push(B[1]),L=null,Pt?(L=Pt,Pt=null):(ot=D.yyleng,h=D.yytext,st=D.yylineno,wt=D.yylloc,St>0&&St--);break;case 2:if(U=this.productions_[B[1]][1],ct.$=b[b.length-U],ct._$={first_line:a[a.length-(U||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(U||1)].first_column,last_column:a[a.length-1].last_column},Pe&&(ct._$.range=[a[a.length-(U||1)].range[0],a[a.length-1].range[1]]),Wt=this.performAction.apply(ct,[h,ot,st,it.yy,B[1],b,a].concat(we)),typeof Wt!="undefined")return Wt;U&&(o=o.slice(0,-1*U*2),b=b.slice(0,-1*U),a=a.slice(0,-1*U)),o.push(this.productions_[B[1]][0]),b.push(ct.$),a.push(ct._$),re=pt[o[o.length-2]][o[o.length-1]],o.push(re);break;case 3:return!0}}return!0},"parse")},Ne=function(){var X={EOF:1,parseError:(0,r.eW)(function(d,o){if(this.yy.parser)this.yy.parser.parseError(d,o);else throw new Error(d)},"parseError"),setInput:(0,r.eW)(function(c,d){return this.yy=d||this.yy||{},this._input=c,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.eW)(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:(0,r.eW)(function(c){var d=c.length,o=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=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),o.length-1&&(this.yylineno-=o.length-1);var b=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:o?(o.length===g.length?this.yylloc.first_column:0)+g[g.length-o.length].length-o[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.eW)(function(){return this._more=!0,this},"more"),reject:(0,r.eW)(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:(0,r.eW)(function(c){this.unput(this.match.slice(c))},"less"),pastInput:(0,r.eW)(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.eW)(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.eW)(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
package/dist/8456.async.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!(function(){"use strict";var cs=Object.defineProperty,ls=Object.defineProperties;var hs=Object.getOwnPropertyDescriptors;var Ee=Object.getOwnPropertySymbols;var ds=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var be=(tt,H,M)=>H in tt?cs(tt,H,{enumerable:!0,configurable:!0,writable:!0,value:M}):tt[H]=M,me=(tt,H)=>{for(var M in H||(H={}))ds.call(H,M)&&be(tt,M,H[M]);if(Ee)for(var M of Ee(H))ps.call(H,M)&&be(tt,M,H[M]);return tt},we=(tt,H)=>ls(tt,hs(H));var at=(tt,H,M)=>new Promise((O,J)=>{var rt=u=>{try{T(M.next(u))}catch(ft){J(ft)}},B=u=>{try{T(M.throw(u))}catch(ft){J(ft)}},T=u=>u.done?O(u.value):Promise.resolve(u.value).then(rt,B);T((M=M.apply(tt,H)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[8456],{6095:function(tt,H,M){var rt;M.d(H,{A:function(){return J}});var O=M(35096),J=(rt=class{constructor(T){this.init=T,this.records=this.init()}reset(){this.records=this.init()}},(0,O.eW)(rt,"ImperativeState"),rt)},29270:function(tt,H,M){M.d(H,{AD:function(){return Kt},AE:function(){return ft},Mu:function(){return B},O:function(){return T},kc:function(){return Wt},rB:function(){return Ct},yU:function(){return u}});var O=M(99970),J=M(35096),rt=M(17967),B=(0,J.eW)((it,P)=>{const q=it.append("rect");if(q.attr("x",P.x),q.attr("y",P.y),q.attr("fill",P.fill),q.attr("stroke",P.stroke),q.attr("width",P.width),q.attr("height",P.height),P.name&&q.attr("name",P.name),P.rx&&q.attr("rx",P.rx),P.ry&&q.attr("ry",P.ry),P.attrs!==void 0)for(const U in P.attrs)q.attr(U,P.attrs[U]);return P.class&&q.attr("class",P.class),q},"drawRect"),T=(0,J.eW)((it,P)=>{const q={x:P.startx,y:P.starty,width:P.stopx-P.startx,height:P.stopy-P.starty,fill:P.fill,stroke:P.stroke,class:"rect"};B(it,q).lower()},"drawBackgroundRect"),u=(0,J.eW)((it,P)=>{const q=P.text.replace(O.Vw," "),U=it.append("text");U.attr("x",P.x),U.attr("y",P.y),U.attr("class","legend"),U.style("text-anchor",P.anchor),P.class&&U.attr("class",P.class);const dt=U.append("tspan");return dt.attr("x",P.x+P.textMargin*2),dt.text(q),U},"drawText"),ft=(0,J.eW)((it,P,q,U)=>{const dt=it.append("image");dt.attr("x",P),dt.attr("y",q);const Rt=(0,rt.N)(U);dt.attr("xlink:href",Rt)},"drawImage"),Ct=(0,J.eW)((it,P,q,U)=>{const dt=it.append("use");dt.attr("x",P),dt.attr("y",q);const Rt=(0,rt.N)(U);dt.attr("xlink:href",`#${Rt}`)},"drawEmbeddedImage"),Wt=(0,J.eW)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Kt=(0,J.eW)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")},28456:function(tt,H,M){var St;M.d(H,{diagram:function(){return ss}});var O=M(29270),J=M(57923),rt=M(6095),B=M(4284),T=M(99970),u=M(35096),ft=M(989),Ct=M(17967),Wt=function(){var e=(0,u.eW)(function(_t,_,A,v){for(A=A||{},v=_t.length;v--;A[_t[v]]=_);return A},"o"),t=[1,2],n=[1,3],s=[1,4],r=[2,4],i=[1,9],c=[1,11],h=[1,13],o=[1,14],a=[1,16],p=[1,17],g=[1,18],f=[1,24],y=[1,25],m=[1,26],k=[1,27],L=[1,28],S=[1,29],W=[1,30],R=[1,31],D=[1,32],K=[1,33],Z=[1,34],nt=[1,35],pt=[1,36],Q=[1,37],$=[1,38],X=[1,39],F=[1,41],ot=[1,42],et=[1,43],ct=[1,44],ut=[1,45],Y=[1,46],b=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],I=[2,71],st=[4,5,16,50,52,53],lt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],C=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Jt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],ue=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],yt=[69,70,71],Et=[1,127],Zt={trace:(0,u.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:(0,u.eW)(function(_,A,v,w,V,d,Dt){var x=d.length-1;switch(V){case 3:return w.apply(d[x]),d[x];break;case 4:case 9:this.$=[];break;case 5:case 10:d[x-1].push(d[x]),this.$=d[x-1];break;case 6:case 7:case 11:case 12:this.$=d[x];break;case 8:case 13:this.$=[];break;case 15:d[x].type="createParticipant",this.$=d[x];break;case 16:d[x-1].unshift({type:"boxStart",boxData:w.parseBoxData(d[x-2])}),d[x-1].push({type:"boxEnd",boxText:d[x-2]}),this.$=d[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[x-2]),sequenceIndexStep:Number(d[x-1]),sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:w.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:w.LINETYPE.ACTIVE_START,actor:d[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:w.LINETYPE.ACTIVE_END,actor:d[x-1].actor};break;case 29:w.setDiagramTitle(d[x].substring(6)),this.$=d[x].substring(6);break;case 30:w.setDiagramTitle(d[x].substring(7)),this.$=d[x].substring(7);break;case 31:this.$=d[x].trim(),w.setAccTitle(this.$);break;case 32:case 33:this.$=d[x].trim(),w.setAccDescription(this.$);break;case 34:d[x-1].unshift({type:"loopStart",loopText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.LOOP_START}),d[x-1].push({type:"loopEnd",loopText:d[x-2],signalType:w.LINETYPE.LOOP_END}),this.$=d[x-1];break;case 35:d[x-1].unshift({type:"rectStart",color:w.parseMessage(d[x-2]),signalType:w.LINETYPE.RECT_START}),d[x-1].push({type:"rectEnd",color:w.parseMessage(d[x-2]),signalType:w.LINETYPE.RECT_END}),this.$=d[x-1];break;case 36:d[x-1].unshift({type:"optStart",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.OPT_START}),d[x-1].push({type:"optEnd",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.OPT_END}),this.$=d[x-1];break;case 37:d[x-1].unshift({type:"altStart",altText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.ALT_START}),d[x-1].push({type:"altEnd",signalType:w.LINETYPE.ALT_END}),this.$=d[x-1];break;case 38:d[x-1].unshift({type:"parStart",parText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.PAR_START}),d[x-1].push({type:"parEnd",signalType:w.LINETYPE.PAR_END}),this.$=d[x-1];break;case 39:d[x-1].unshift({type:"parStart",parText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.PAR_OVER_START}),d[x-1].push({type:"parEnd",signalType:w.LINETYPE.PAR_END}),this.$=d[x-1];break;case 40:d[x-1].unshift({type:"criticalStart",criticalText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.CRITICAL_START}),d[x-1].push({type:"criticalEnd",signalType:w.LINETYPE.CRITICAL_END}),this.$=d[x-1];break;case 41:d[x-1].unshift({type:"breakStart",breakText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.BREAK_START}),d[x-1].push({type:"breakEnd",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.BREAK_END}),this.$=d[x-1];break;case 43:this.$=d[x-3].concat([{type:"option",optionText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.CRITICAL_OPTION},d[x]]);break;case 45:this.$=d[x-3].concat([{type:"and",parText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.PAR_AND},d[x]]);break;case 47:this.$=d[x-3].concat([{type:"else",altText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.ALT_ELSE},d[x]]);break;case 48:d[x-3].draw="participant",d[x-3].type="addParticipant",d[x-3].description=w.parseMessage(d[x-1]),this.$=d[x-3];break;case 49:d[x-1].draw="participant",d[x-1].type="addParticipant",this.$=d[x-1];break;case 50:d[x-3].draw="actor",d[x-3].type="addParticipant",d[x-3].description=w.parseMessage(d[x-1]),this.$=d[x-3];break;case 51:d[x-1].draw="actor",d[x-1].type="addParticipant",this.$=d[x-1];break;case 52:d[x-1].type="destroyParticipant",this.$=d[x-1];break;case 53:d[x-1].draw="participant",d[x-1].type="addParticipant",this.$=d[x-1];break;case 54:this.$=[d[x-1],{type:"addNote",placement:d[x-2],actor:d[x-1].actor,text:d[x]}];break;case 55:d[x-2]=[].concat(d[x-1],d[x-1]).slice(0,2),d[x-2][0]=d[x-2][0].actor,d[x-2][1]=d[x-2][1].actor,this.$=[d[x-1],{type:"addNote",placement:w.PLACEMENT.OVER,actor:d[x-2].slice(0,2),text:d[x]}];break;case 56:this.$=[d[x-1],{type:"addLinks",actor:d[x-1].actor,text:d[x]}];break;case 57:this.$=[d[x-1],{type:"addALink",actor:d[x-1].actor,text:d[x]}];break;case 58:this.$=[d[x-1],{type:"addProperties",actor:d[x-1].actor,text:d[x]}];break;case 59:this.$=[d[x-1],{type:"addDetails",actor:d[x-1].actor,text:d[x]}];break;case 62:this.$=[d[x-2],d[x]];break;case 63:this.$=d[x];break;case 64:this.$=w.PLACEMENT.LEFTOF;break;case 65:this.$=w.PLACEMENT.RIGHTOF;break;case 66:this.$=[d[x-4],d[x-1],{type:"addMessage",from:d[x-4].actor,to:d[x-1].actor,signalType:d[x-3],msg:d[x],activate:!0},{type:"activeStart",signalType:w.LINETYPE.ACTIVE_START,actor:d[x-1].actor}];break;case 67:this.$=[d[x-4],d[x-1],{type:"addMessage",from:d[x-4].actor,to:d[x-1].actor,signalType:d[x-3],msg:d[x]},{type:"activeEnd",signalType:w.LINETYPE.ACTIVE_END,actor:d[x-4].actor}];break;case 68:this.$=[d[x-3],d[x-1],{type:"addMessage",from:d[x-3].actor,to:d[x-1].actor,signalType:d[x-2],msg:d[x]}];break;case 69:this.$={type:"addParticipant",actor:d[x-1],config:d[x]};break;case 70:this.$=d[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:d[x]};break;case 72:this.$=w.LINETYPE.SOLID_OPEN;break;case 73:this.$=w.LINETYPE.DOTTED_OPEN;break;case 74:this.$=w.LINETYPE.SOLID;break;case 75:this.$=w.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=w.LINETYPE.DOTTED;break;case 77:this.$=w.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=w.LINETYPE.SOLID_CROSS;break;case 79:this.$=w.LINETYPE.DOTTED_CROSS;break;case 80:this.$=w.LINETYPE.SOLID_POINT;break;case 81:this.$=w.LINETYPE.DOTTED_POINT;break;case 82:this.$=w.parseMessage(d[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:n,6:s},{1:[3]},{3:5,4:t,5:n,6:s},{3:6,4:t,5:n,6:s},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},e(b,[2,5]),{9:47,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},e(b,[2,7]),e(b,[2,8]),e(b,[2,14]),{12:48,50:Q,52:$,53:X},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:Y},{22:55,71:Y},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(b,[2,29]),e(b,[2,30]),{32:[1,61]},{34:[1,62]},e(b,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:Y},{22:75,71:Y},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:Y},{22:92,71:Y},{22:93,71:Y},{22:94,71:Y},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],I),e(b,[2,6]),e(b,[2,15]),e(st,[2,9],{10:95}),e(b,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(b,[2,21]),{5:[1,99]},{5:[1,100]},e(b,[2,24]),e(b,[2,25]),e(b,[2,26]),e(b,[2,27]),e(b,[2,28]),e(b,[2,31]),e(b,[2,32]),e(lt,r,{7:101}),e(lt,r,{7:102}),e(lt,r,{7:103}),e(C,r,{40:104,7:105}),e(Jt,r,{42:106,7:107}),e(Jt,r,{7:107,42:108}),e(ue,r,{45:109,7:110}),e(lt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],I,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:Y},e(yt,[2,72]),e(yt,[2,73]),e(yt,[2,74]),e(yt,[2,75]),e(yt,[2,76]),e(yt,[2,77]),e(yt,[2,78]),e(yt,[2,79]),e(yt,[2,80]),e(yt,[2,81]),{22:123,71:Y},{22:125,59:124,71:Y},{71:[2,64]},{71:[2,65]},{57:126,86:Et},{57:128,86:Et},{57:129,86:Et},{57:130,86:Et},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:Q,52:$,53:X},{5:[1,136]},e(b,[2,19]),e(b,[2,20]),e(b,[2,22]),e(b,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,137],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,138],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,139],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,46],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,49:[1,141],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,44],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,48:[1,143],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,42],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,47:[1,146],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,147],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{15:[1,148]},e(b,[2,49]),e(b,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(b,[2,51]),e(b,[2,52]),{22:151,71:Y},{22:152,71:Y},{57:153,86:Et},{57:154,86:Et},{57:155,86:Et},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(b,[2,16]),e(st,[2,10]),{12:157,50:Q,52:$,53:X},e(st,[2,12]),e(st,[2,13]),e(b,[2,18]),e(b,[2,34]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),{15:[1,158]},e(b,[2,38]),{15:[1,159]},e(b,[2,39]),e(b,[2,40]),{15:[1,160]},e(b,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:Et},{57:165,86:Et},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:Y},e(st,[2,11]),e(C,r,{7:105,40:167}),e(Jt,r,{7:107,42:168}),e(ue,r,{7:110,45:169}),e(b,[2,48]),{5:[2,70]},e(b,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:(0,u.eW)(function(_,A){if(A.recoverable)this.trace(_);else{var v=new Error(_);throw v.hash=A,v}},"parseError"),parse:(0,u.eW)(function(_){var A=this,v=[0],w=[],V=[null],d=[],Dt=this.table,x="",zt=0,ge=0,xe=0,rs=2,fe=1,is=d.slice.call(arguments,1),G=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);G.setInput(_,At.yy),At.yy.lexer=G,At.yy.parser=this,typeof G.yylloc=="undefined"&&(G.yylloc={});var $t=G.yylloc;d.push($t);var ns=G.options&&G.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function os(ht){v.length=v.length-2*ht,V.length=V.length-ht,d.length=d.length-ht}(0,u.eW)(os,"popStack");function ye(){var ht;return ht=w.pop()||G.lex()||fe,typeof ht!="number"&&(ht instanceof Array&&(w=ht,ht=w.pop()),ht=A.symbols_[ht]||ht),ht}(0,u.eW)(ye,"lex");for(var j,jt,Lt,gt,us,te,Mt={},Ht,bt,Te,Ut;;){if(Lt=v[v.length-1],this.defaultActions[Lt]?gt=this.defaultActions[Lt]:((j===null||typeof j=="undefined")&&(j=ye()),gt=Dt[Lt]&&Dt[Lt][j]),typeof gt=="undefined"||!gt.length||!gt[0]){var ee="";Ut=[];for(Ht in Dt[Lt])this.terminals_[Ht]&&Ht>rs&&Ut.push("'"+this.terminals_[Ht]+"'");G.showPosition?ee="Parse error on line "+(zt+1)+`:
|
|
1
|
+
!(function(){"use strict";var cs=Object.defineProperty,ls=Object.defineProperties;var hs=Object.getOwnPropertyDescriptors;var Ee=Object.getOwnPropertySymbols;var ds=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var be=(tt,H,M)=>H in tt?cs(tt,H,{enumerable:!0,configurable:!0,writable:!0,value:M}):tt[H]=M,me=(tt,H)=>{for(var M in H||(H={}))ds.call(H,M)&&be(tt,M,H[M]);if(Ee)for(var M of Ee(H))ps.call(H,M)&&be(tt,M,H[M]);return tt},we=(tt,H)=>ls(tt,hs(H));var at=(tt,H,M)=>new Promise((O,J)=>{var rt=u=>{try{T(M.next(u))}catch(ft){J(ft)}},B=u=>{try{T(M.throw(u))}catch(ft){J(ft)}},T=u=>u.done?O(u.value):Promise.resolve(u.value).then(rt,B);T((M=M.apply(tt,H)).next())});(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[8456],{6095:function(tt,H,M){var rt;M.d(H,{A:function(){return J}});var O=M(35096),J=(rt=class{constructor(T){this.init=T,this.records=this.init()}reset(){this.records=this.init()}},(0,O.eW)(rt,"ImperativeState"),rt)},29270:function(tt,H,M){M.d(H,{AD:function(){return Kt},AE:function(){return ft},Mu:function(){return B},O:function(){return T},kc:function(){return Wt},rB:function(){return Ct},yU:function(){return u}});var O=M(99970),J=M(35096),rt=M(17967),B=(0,J.eW)((it,P)=>{const q=it.append("rect");if(q.attr("x",P.x),q.attr("y",P.y),q.attr("fill",P.fill),q.attr("stroke",P.stroke),q.attr("width",P.width),q.attr("height",P.height),P.name&&q.attr("name",P.name),P.rx&&q.attr("rx",P.rx),P.ry&&q.attr("ry",P.ry),P.attrs!==void 0)for(const U in P.attrs)q.attr(U,P.attrs[U]);return P.class&&q.attr("class",P.class),q},"drawRect"),T=(0,J.eW)((it,P)=>{const q={x:P.startx,y:P.starty,width:P.stopx-P.startx,height:P.stopy-P.starty,fill:P.fill,stroke:P.stroke,class:"rect"};B(it,q).lower()},"drawBackgroundRect"),u=(0,J.eW)((it,P)=>{const q=P.text.replace(O.Vw," "),U=it.append("text");U.attr("x",P.x),U.attr("y",P.y),U.attr("class","legend"),U.style("text-anchor",P.anchor),P.class&&U.attr("class",P.class);const dt=U.append("tspan");return dt.attr("x",P.x+P.textMargin*2),dt.text(q),U},"drawText"),ft=(0,J.eW)((it,P,q,U)=>{const dt=it.append("image");dt.attr("x",P),dt.attr("y",q);const Rt=(0,rt.N)(U);dt.attr("xlink:href",Rt)},"drawImage"),Ct=(0,J.eW)((it,P,q,U)=>{const dt=it.append("use");dt.attr("x",P),dt.attr("y",q);const Rt=(0,rt.N)(U);dt.attr("xlink:href",`#${Rt}`)},"drawEmbeddedImage"),Wt=(0,J.eW)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Kt=(0,J.eW)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")},28456:function(tt,H,M){var St;M.d(H,{diagram:function(){return ss}});var O=M(29270),J=M(57923),rt=M(6095),B=M(4284),T=M(99970),u=M(35096),ft=M(989),Ct=M(17967),Wt=function(){var e=(0,u.eW)(function(_t,_,A,v){for(A=A||{},v=_t.length;v--;A[_t[v]]=_);return A},"o"),t=[1,2],n=[1,3],s=[1,4],r=[2,4],i=[1,9],c=[1,11],h=[1,13],o=[1,14],a=[1,16],p=[1,17],g=[1,18],f=[1,24],y=[1,25],m=[1,26],k=[1,27],L=[1,28],S=[1,29],W=[1,30],R=[1,31],D=[1,32],K=[1,33],Z=[1,34],nt=[1,35],pt=[1,36],Q=[1,37],$=[1,38],X=[1,39],F=[1,41],ot=[1,42],et=[1,43],ct=[1,44],ut=[1,45],Y=[1,46],b=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],I=[2,71],st=[4,5,16,50,52,53],lt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],C=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Jt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],ue=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],yt=[69,70,71],Et=[1,127],Zt={trace:(0,u.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:(0,u.eW)(function(_,A,v,w,V,d,Dt){var x=d.length-1;switch(V){case 3:return w.apply(d[x]),d[x];break;case 4:case 9:this.$=[];break;case 5:case 10:d[x-1].push(d[x]),this.$=d[x-1];break;case 6:case 7:case 11:case 12:this.$=d[x];break;case 8:case 13:this.$=[];break;case 15:d[x].type="createParticipant",this.$=d[x];break;case 16:d[x-1].unshift({type:"boxStart",boxData:w.parseBoxData(d[x-2])}),d[x-1].push({type:"boxEnd",boxText:d[x-2]}),this.$=d[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[x-2]),sequenceIndexStep:Number(d[x-1]),sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:w.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:w.LINETYPE.ACTIVE_START,actor:d[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:w.LINETYPE.ACTIVE_END,actor:d[x-1].actor};break;case 29:w.setDiagramTitle(d[x].substring(6)),this.$=d[x].substring(6);break;case 30:w.setDiagramTitle(d[x].substring(7)),this.$=d[x].substring(7);break;case 31:this.$=d[x].trim(),w.setAccTitle(this.$);break;case 32:case 33:this.$=d[x].trim(),w.setAccDescription(this.$);break;case 34:d[x-1].unshift({type:"loopStart",loopText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.LOOP_START}),d[x-1].push({type:"loopEnd",loopText:d[x-2],signalType:w.LINETYPE.LOOP_END}),this.$=d[x-1];break;case 35:d[x-1].unshift({type:"rectStart",color:w.parseMessage(d[x-2]),signalType:w.LINETYPE.RECT_START}),d[x-1].push({type:"rectEnd",color:w.parseMessage(d[x-2]),signalType:w.LINETYPE.RECT_END}),this.$=d[x-1];break;case 36:d[x-1].unshift({type:"optStart",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.OPT_START}),d[x-1].push({type:"optEnd",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.OPT_END}),this.$=d[x-1];break;case 37:d[x-1].unshift({type:"altStart",altText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.ALT_START}),d[x-1].push({type:"altEnd",signalType:w.LINETYPE.ALT_END}),this.$=d[x-1];break;case 38:d[x-1].unshift({type:"parStart",parText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.PAR_START}),d[x-1].push({type:"parEnd",signalType:w.LINETYPE.PAR_END}),this.$=d[x-1];break;case 39:d[x-1].unshift({type:"parStart",parText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.PAR_OVER_START}),d[x-1].push({type:"parEnd",signalType:w.LINETYPE.PAR_END}),this.$=d[x-1];break;case 40:d[x-1].unshift({type:"criticalStart",criticalText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.CRITICAL_START}),d[x-1].push({type:"criticalEnd",signalType:w.LINETYPE.CRITICAL_END}),this.$=d[x-1];break;case 41:d[x-1].unshift({type:"breakStart",breakText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.BREAK_START}),d[x-1].push({type:"breakEnd",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.BREAK_END}),this.$=d[x-1];break;case 43:this.$=d[x-3].concat([{type:"option",optionText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.CRITICAL_OPTION},d[x]]);break;case 45:this.$=d[x-3].concat([{type:"and",parText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.PAR_AND},d[x]]);break;case 47:this.$=d[x-3].concat([{type:"else",altText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.ALT_ELSE},d[x]]);break;case 48:d[x-3].draw="participant",d[x-3].type="addParticipant",d[x-3].description=w.parseMessage(d[x-1]),this.$=d[x-3];break;case 49:d[x-1].draw="participant",d[x-1].type="addParticipant",this.$=d[x-1];break;case 50:d[x-3].draw="actor",d[x-3].type="addParticipant",d[x-3].description=w.parseMessage(d[x-1]),this.$=d[x-3];break;case 51:d[x-1].draw="actor",d[x-1].type="addParticipant",this.$=d[x-1];break;case 52:d[x-1].type="destroyParticipant",this.$=d[x-1];break;case 53:d[x-1].draw="participant",d[x-1].type="addParticipant",this.$=d[x-1];break;case 54:this.$=[d[x-1],{type:"addNote",placement:d[x-2],actor:d[x-1].actor,text:d[x]}];break;case 55:d[x-2]=[].concat(d[x-1],d[x-1]).slice(0,2),d[x-2][0]=d[x-2][0].actor,d[x-2][1]=d[x-2][1].actor,this.$=[d[x-1],{type:"addNote",placement:w.PLACEMENT.OVER,actor:d[x-2].slice(0,2),text:d[x]}];break;case 56:this.$=[d[x-1],{type:"addLinks",actor:d[x-1].actor,text:d[x]}];break;case 57:this.$=[d[x-1],{type:"addALink",actor:d[x-1].actor,text:d[x]}];break;case 58:this.$=[d[x-1],{type:"addProperties",actor:d[x-1].actor,text:d[x]}];break;case 59:this.$=[d[x-1],{type:"addDetails",actor:d[x-1].actor,text:d[x]}];break;case 62:this.$=[d[x-2],d[x]];break;case 63:this.$=d[x];break;case 64:this.$=w.PLACEMENT.LEFTOF;break;case 65:this.$=w.PLACEMENT.RIGHTOF;break;case 66:this.$=[d[x-4],d[x-1],{type:"addMessage",from:d[x-4].actor,to:d[x-1].actor,signalType:d[x-3],msg:d[x],activate:!0},{type:"activeStart",signalType:w.LINETYPE.ACTIVE_START,actor:d[x-1].actor}];break;case 67:this.$=[d[x-4],d[x-1],{type:"addMessage",from:d[x-4].actor,to:d[x-1].actor,signalType:d[x-3],msg:d[x]},{type:"activeEnd",signalType:w.LINETYPE.ACTIVE_END,actor:d[x-4].actor}];break;case 68:this.$=[d[x-3],d[x-1],{type:"addMessage",from:d[x-3].actor,to:d[x-1].actor,signalType:d[x-2],msg:d[x]}];break;case 69:this.$={type:"addParticipant",actor:d[x-1],config:d[x]};break;case 70:this.$=d[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:d[x]};break;case 72:this.$=w.LINETYPE.SOLID_OPEN;break;case 73:this.$=w.LINETYPE.DOTTED_OPEN;break;case 74:this.$=w.LINETYPE.SOLID;break;case 75:this.$=w.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=w.LINETYPE.DOTTED;break;case 77:this.$=w.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=w.LINETYPE.SOLID_CROSS;break;case 79:this.$=w.LINETYPE.DOTTED_CROSS;break;case 80:this.$=w.LINETYPE.SOLID_POINT;break;case 81:this.$=w.LINETYPE.DOTTED_POINT;break;case 82:this.$=w.parseMessage(d[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:n,6:s},{1:[3]},{3:5,4:t,5:n,6:s},{3:6,4:t,5:n,6:s},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},e(b,[2,5]),{9:47,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},e(b,[2,7]),e(b,[2,8]),e(b,[2,14]),{12:48,50:Q,52:$,53:X},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:Y},{22:55,71:Y},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(b,[2,29]),e(b,[2,30]),{32:[1,61]},{34:[1,62]},e(b,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:Y},{22:75,71:Y},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:Y},{22:92,71:Y},{22:93,71:Y},{22:94,71:Y},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],I),e(b,[2,6]),e(b,[2,15]),e(st,[2,9],{10:95}),e(b,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(b,[2,21]),{5:[1,99]},{5:[1,100]},e(b,[2,24]),e(b,[2,25]),e(b,[2,26]),e(b,[2,27]),e(b,[2,28]),e(b,[2,31]),e(b,[2,32]),e(lt,r,{7:101}),e(lt,r,{7:102}),e(lt,r,{7:103}),e(C,r,{40:104,7:105}),e(Jt,r,{42:106,7:107}),e(Jt,r,{7:107,42:108}),e(ue,r,{45:109,7:110}),e(lt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],I,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:Y},e(yt,[2,72]),e(yt,[2,73]),e(yt,[2,74]),e(yt,[2,75]),e(yt,[2,76]),e(yt,[2,77]),e(yt,[2,78]),e(yt,[2,79]),e(yt,[2,80]),e(yt,[2,81]),{22:123,71:Y},{22:125,59:124,71:Y},{71:[2,64]},{71:[2,65]},{57:126,86:Et},{57:128,86:Et},{57:129,86:Et},{57:130,86:Et},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:Q,52:$,53:X},{5:[1,136]},e(b,[2,19]),e(b,[2,20]),e(b,[2,22]),e(b,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,137],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,138],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,139],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,46],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,49:[1,141],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,44],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,48:[1,143],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,42],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,47:[1,146],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,147],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{15:[1,148]},e(b,[2,49]),e(b,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(b,[2,51]),e(b,[2,52]),{22:151,71:Y},{22:152,71:Y},{57:153,86:Et},{57:154,86:Et},{57:155,86:Et},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(b,[2,16]),e(st,[2,10]),{12:157,50:Q,52:$,53:X},e(st,[2,12]),e(st,[2,13]),e(b,[2,18]),e(b,[2,34]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),{15:[1,158]},e(b,[2,38]),{15:[1,159]},e(b,[2,39]),e(b,[2,40]),{15:[1,160]},e(b,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:Et},{57:165,86:Et},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:Y},e(st,[2,11]),e(C,r,{7:105,40:167}),e(Jt,r,{7:107,42:168}),e(ue,r,{7:110,45:169}),e(b,[2,48]),{5:[2,70]},e(b,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:(0,u.eW)(function(_,A){if(A.recoverable)this.trace(_);else{var v=new Error(_);throw v.hash=A,v}},"parseError"),parse:(0,u.eW)(function(_){var A=this,v=[0],w=[],V=[null],d=[],Dt=this.table,x="",zt=0,ge=0,xe=0,rs=2,fe=1,is=d.slice.call(arguments,1),G=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);G.setInput(_,At.yy),At.yy.lexer=G,At.yy.parser=this,typeof G.yylloc=="undefined"&&(G.yylloc={});var $t=G.yylloc;d.push($t);var ns=G.options&&G.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function os(ht){v.length=v.length-2*ht,V.length=V.length-ht,d.length=d.length-ht}(0,u.eW)(os,"popStack");function ye(){var ht;return ht=w.pop()||G.lex()||fe,typeof ht!="number"&&(ht instanceof Array&&(w=ht,ht=w.pop()),ht=A.symbols_[ht]||ht),ht}(0,u.eW)(ye,"lex");for(var j,jt,Lt,gt,us,te,Mt={},Ht,bt,Te,Ut;;){if(Lt=v[v.length-1],this.defaultActions[Lt]?gt=this.defaultActions[Lt]:((j===null||typeof j=="undefined")&&(j=ye()),gt=Dt[Lt]&&Dt[Lt][j]),typeof gt=="undefined"||!gt.length||!gt[0]){var ee="";Ut=[];for(Ht in Dt[Lt])this.terminals_[Ht]&&Ht>rs&&Ut.push("'"+this.terminals_[Ht]+"'");G.showPosition?ee="Parse error on line "+(zt+1)+`:
|
|
2
2
|
`+G.showPosition()+`
|
|
3
3
|
Expecting `+Ut.join(", ")+", got '"+(this.terminals_[j]||j)+"'":ee="Parse error on line "+(zt+1)+": Unexpected "+(j==fe?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(ee,{text:G.match,token:this.terminals_[j]||j,line:G.yylineno,loc:$t,expected:Ut})}if(gt[0]instanceof Array&>.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lt+", token: "+j);switch(gt[0]){case 1:v.push(j),V.push(G.yytext),d.push(G.yylloc),v.push(gt[1]),j=null,jt?(j=jt,jt=null):(ge=G.yyleng,x=G.yytext,zt=G.yylineno,$t=G.yylloc,xe>0&&xe--);break;case 2:if(bt=this.productions_[gt[1]][1],Mt.$=V[V.length-bt],Mt._$={first_line:d[d.length-(bt||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(bt||1)].first_column,last_column:d[d.length-1].last_column},ns&&(Mt._$.range=[d[d.length-(bt||1)].range[0],d[d.length-1].range[1]]),te=this.performAction.apply(Mt,[x,ge,zt,At.yy,gt[1],V,d].concat(is)),typeof te!="undefined")return te;bt&&(v=v.slice(0,-1*bt*2),V=V.slice(0,-1*bt),d=d.slice(0,-1*bt)),v.push(this.productions_[gt[1]][0]),V.push(Mt.$),d.push(Mt._$),Te=Dt[v[v.length-2]][v[v.length-1]],v.push(Te);break;case 3:return!0}}return!0},"parse")},as=function(){var _t={EOF:1,parseError:(0,u.eW)(function(A,v){if(this.yy.parser)this.yy.parser.parseError(A,v);else throw new Error(A)},"parseError"),setInput:(0,u.eW)(function(_,A){return this.yy=A||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,u.eW)(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var A=_.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:(0,u.eW)(function(_){var A=_.length,v=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var w=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),v.length-1&&(this.yylineno-=v.length-1);var V=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===w.length?this.yylloc.first_column:0)+w[w.length-v.length].length-v[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:(0,u.eW)(function(){return this._more=!0,this},"more"),reject:(0,u.eW)(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:(0,u.eW)(function(_){this.unput(this.match.slice(_))},"less"),pastInput:(0,u.eW)(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,u.eW)(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,u.eW)(function(){var _=this.pastInput(),A=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
|
package/dist/8542.async.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!(function(){"use strict";var Ee=Object.defineProperty;var ie=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var ce=(_,m,n)=>m in _?Ee(_,m,{enumerable:!0,configurable:!0,writable:!0,value:n}):_[m]=n,le=(_,m)=>{for(var n in m||(m={}))Le.call(m,n)&&ce(_,n,m[n]);if(ie)for(var n of ie(m))Pe.call(m,n)&&ce(_,n,m[n]);return _};var de=(_,m,n)=>new Promise((A,v)=>{var f=o=>{try{b(n.next(o))}catch(r){v(r)}},y=o=>{try{b(n.throw(o))}catch(r){v(r)}},b=o=>o.done?A(o.value):Promise.resolve(o.value).then(f,y);b((n=n.apply(_,m)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[8542],{25925:function(_,m,n){n.d(m,{A:function(){return v}});var A=n(35096);function v(f,y){var b,o,r;f.accDescr&&((b=y.setAccDescription)==null||b.call(y,f.accDescr)),f.accTitle&&((o=y.setAccTitle)==null||o.call(y,f.accTitle)),f.title&&((r=y.setDiagramTitle)==null||r.call(y,f.title))}(0,A.eW)(v,"populateCommonDb")},43663:function(_,m,n){n.d(m,{j:function(){return f}});var A=n(99970),v=n(35096),f=(0,v.eW)((o,r,w,p)=>{o.attr("class",w);const{width:M,height:z,x:te,y:ae}=y(o,r);(0,A.v2)(o,z,M,p);const I=b(te,ae,M,z,r);o.attr("viewBox",I),v.cM.debug(`viewBox configured: ${I} with padding: ${r}`)},"setupViewPortForSVG"),y=(0,v.eW)((o,r)=>{var p;const w=((p=o.node())==null?void 0:p.getBBox())||{width:0,height:0,x:0,y:0};return{width:w.width+r*2,height:w.height+r*2,x:w.x,y:w.y}},"calculateDimensionsWithPadding"),b=(0,v.eW)((o,r,w,p,M)=>`${o-M} ${r-M} ${w} ${p}`,"createViewBox")},88542:function(_,m,n){var N;n.d(m,{diagram:function(){return Se}});var A=n(88674),v=n(43663),f=n(2831),y=n(25925),b=n(4284),o=n(99970),r=n(35096),w=n(12491),p=n(989),M=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o.GN,this.getAccTitle=o.eu,this.setDiagramTitle=o.g2,this.getDiagramTitle=o.Kr,this.getAccDescription=o.Mx,this.setAccDescription=o.U$}getNodes(){return this.nodes}getConfig(){var s;const l=o.vZ,c=(0,o.iE)();return(0,b.Rb)(le(le({},l.treemap),(s=c.treemap)!=null?s:{}))}addNode(l,c){var s;this.nodes.push(l),this.levels.set(l,c),c===0&&(this.outerNodes.push(l),(s=this.root)!=null||(this.root=l))}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,c){var d;const s=(d=this.classes.get(l))!=null?d:{id:l,styles:[],textStyles:[]},u=c.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");u&&u.forEach(E=>{(0,f.Fh)(E)&&(s!=null&&s.textStyles?s.textStyles.push(E):s.textStyles=[E]),s!=null&&s.styles?s.styles.push(E):s.styles=[E]}),this.classes.set(l,s)}getClasses(){return this.classes}getStylesForClass(l){var c,s;return(s=(c=this.classes.get(l))==null?void 0:c.styles)!=null?s:[]}clear(){(0,o.ZH)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},(0,r.eW)(N,"TreeMapDB"),N);function z(g){if(!g.length)return[];const l=[],c=[];return g.forEach(s=>{const u={name:s.name,children:s.type==="Leaf"?void 0:[]};for(u.classSelector=s==null?void 0:s.classSelector,s!=null&&s.cssCompiledStyles&&(u.cssCompiledStyles=[s.cssCompiledStyles]),s.type==="Leaf"&&s.value!==void 0&&(u.value=s.value);c.length>0&&c[c.length-1].level>=s.level;)c.pop();if(c.length===0)l.push(u);else{const d=c[c.length-1].node;d.children?d.children.push(u):d.children=[u]}s.type!=="Leaf"&&c.push({node:u,level:s.level})}),l}(0,r.eW)(z,"buildHierarchy");var te=(0,r.eW)((g,l)=>{var d,E,R,H;(0,y.A)(g,l);const c=[];for(const a of(d=g.TreemapRows)!=null?d:[])a.$type==="ClassDefStatement"&&l.addClass((E=a.className)!=null?E:"",(R=a.styleText)!=null?R:"");for(const a of(H=g.TreemapRows)!=null?H:[]){const S=a.item;if(!S)continue;const C=a.indent?parseInt(a.indent):0,X=ae(S),K=S.classSelector?l.getStylesForClass(S.classSelector):[],G=K.length>0?K.join(";"):void 0,J={level:C,name:X,type:S.$type,value:S.value,classSelector:S.classSelector,cssCompiledStyles:G};c.push(J)}const s=z(c),u=(0,r.eW)((a,S)=>{for(const C of a)l.addNode(C,S),C.children&&C.children.length>0&&u(C.children,S+1)},"addNodesRecursively");u(s,0)},"populate"),ae=(0,r.eW)(g=>g.name?String(g.name):"","getItemName"),I={parser:{yy:void 0},parse:(0,r.eW)(g=>de(this,null,function*(){var l;try{const c=w.Qc,s=yield c("treemap",g);r.cM.debug("Treemap AST:",s);const u=(l=I.parser)==null?void 0:l.yy;if(!(u instanceof M))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");te(s,u)}catch(c){throw r.cM.error("Error parsing treemap:",c),c}}),"parse")},pe=10,k=10,U=25,he=(0,r.eW)((g,l,c,s)=>{var oe,re;const u=s.db,d=u.getConfig(),E=(oe=d.padding)!=null?oe:pe,R=u.getDiagramTitle(),H=u.getRoot(),{themeVariables:a}=(0,o.iE)();if(!H)return;const S=R?30:0,C=(0,A.P)(l),X=d.nodeWidth?d.nodeWidth*k:960,K=d.nodeHeight?d.nodeHeight*k:500,G=X,J=K+S;C.attr("viewBox",`0 0 ${G} ${J}`),(0,o.v2)(C,J,G,d.useMaxWidth);let B;try{const e=d.valueFormat||",";if(e==="$0,0")B=(0,r.eW)(t=>"$"+(0,p.WUZ)(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),i=t?t[0]:"";B=(0,r.eW)(x=>"$"+(0,p.WUZ)(","+i)(x),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);B=(0,r.eW)(i=>"$"+(0,p.WUZ)(t||"")(i),"valueFormat")}else B=(0,p.WUZ)(e)}catch(e){r.cM.error("Error creating format function:",e),B=(0,p.WUZ)(",")}const j=(0,p.PKp)().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),xe=(0,p.PKp)().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),Q=(0,p.PKp)().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);R&&C.append("text").attr("x",G/2).attr("y",S/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const se=C.append("g").attr("transform",`translate(0, ${S})`).attr("class","treemapContainer"),_e=(0,p.bT9)(H).sum(e=>{var t;return(t=e.value)!=null?t:0}).sort((e,t)=>{var i,x;return((i=t.value)!=null?i:0)-((x=e.value)!=null?x:0)}),ne=(0,p.pNI)().size([X,K]).paddingTop(e=>e.children&&e.children.length>0?U+k:0).paddingInner(E).paddingLeft(e=>e.children&&e.children.length>0?k:0).paddingRight(e=>e.children&&e.children.length>0?k:0).paddingBottom(e=>e.children&&e.children.length>0?k:0).round(!0)(_e),ve=ne.descendants().filter(e=>e.children&&e.children.length>0),Y=se.selectAll(".treemapSection").data(ve).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",U).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),Y.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",U),Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>j(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>xe(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),Y.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",U/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+Q(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=(0,p.Ys)(this),i=e.data.name;t.text(i);const x=e.x1-e.x0,W=6;let D;d.showValues!==!1&&e.value?D=x-10-30-10-W:D=x-W-6;const L=Math.max(15,D),h=t.node();if(h.getComputedTextLength()>L){const T="...";let P=i;for(;P.length>0;){if(P=i.substring(0,P.length-1),P.length===0){t.text(T),h.getComputedTextLength()>L&&t.text("");break}if(t.text(P+T),h.getComputedTextLength()<=L)break}}}),d.showValues!==!1&&Y.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",U/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?B(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+Q(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")});const Ce=ne.leaves(),q=se.selectAll(".treemapLeafGroup").data(Ce).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);q.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?j(e.parent.data.name):j(e.data.name)).attr("style",e=>(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?j(e.parent.data.name):j(e.data.name)).attr("stroke-width",3),q.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),q.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+Q(e.data.name)+";",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=(0,p.Ys)(this),i=e.x1-e.x0,x=e.y1-e.y0,W=t.node(),D=4,O=i-2*D,L=x-2*D;if(O<10||L<10){t.style("display","none");return}let h=parseInt(t.style("font-size"),10);const F=8,T=28,P=.6,$=6,Z=2;for(;W.getComputedTextLength()>O&&h>F;)h--,t.style("font-size",`${h}px`);let V=Math.max($,Math.min(T,Math.round(h*P))),ee=h+Z+V;for(;ee>L&&h>F&&(h--,V=Math.max($,Math.min(T,Math.round(h*P))),!(V<$&&h===F));)t.style("font-size",`${h}px`),ee=h+Z+V,V<=$&&ee>L;t.style("font-size",`${h}px`),(W.getComputedTextLength()>O||h<F||L<h)&&t.style("display","none")}),d.showValues!==!1&&q.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const i="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+Q(t.data.name)+";",x=(0,f.UG)({cssCompiledStyles:t.data.cssCompiledStyles});return i+x.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${l}-${i})`).text(t=>t.value?B(t.value):"").each(function(t){const i=(0,p.Ys)(this),x=this.parentNode;if(!x){i.style("display","none");return}const W=(0,p.Ys)(x).select(".treemapLabel");if(W.empty()||W.style("display")==="none"){i.style("display","none");return}const D=parseFloat(W.style("font-size")),O=28,L=.6,h=6,F=2,T=Math.max(h,Math.min(O,Math.round(D*L)));i.style("font-size",`${T}px`);const $=(t.y1-t.y0)/2+D/2+F;i.attr("y",$);const Z=t.x1-t.x0,Te=t.y1-t.y0-4,we=Z-2*4;i.node().getComputedTextLength()>we||$+T>Te||T<h?i.style("display","none"):i.style("display",null)});const be=(re=d.diagramPadding)!=null?re:8;(0,v.j)(C,be,"flowchart",(d==null?void 0:d.useMaxWidth)||!1)},"draw"),ue=(0,r.eW)(function(g,l){return l.db.getClasses()},"getClasses"),me={draw:he,getClasses:ue},fe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},ye=(0,r.eW)(({treemap:g}={})=>{const l=(0,b.Rb)(fe,g);return`
|
|
1
|
+
!(function(){"use strict";var Ee=Object.defineProperty;var ie=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var ce=(_,m,n)=>m in _?Ee(_,m,{enumerable:!0,configurable:!0,writable:!0,value:n}):_[m]=n,le=(_,m)=>{for(var n in m||(m={}))Le.call(m,n)&&ce(_,n,m[n]);if(ie)for(var n of ie(m))Pe.call(m,n)&&ce(_,n,m[n]);return _};var de=(_,m,n)=>new Promise((A,v)=>{var f=o=>{try{b(n.next(o))}catch(r){v(r)}},y=o=>{try{b(n.throw(o))}catch(r){v(r)}},b=o=>o.done?A(o.value):Promise.resolve(o.value).then(f,y);b((n=n.apply(_,m)).next())});(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[8542],{25925:function(_,m,n){n.d(m,{A:function(){return v}});var A=n(35096);function v(f,y){var b,o,r;f.accDescr&&((b=y.setAccDescription)==null||b.call(y,f.accDescr)),f.accTitle&&((o=y.setAccTitle)==null||o.call(y,f.accTitle)),f.title&&((r=y.setDiagramTitle)==null||r.call(y,f.title))}(0,A.eW)(v,"populateCommonDb")},43663:function(_,m,n){n.d(m,{j:function(){return f}});var A=n(99970),v=n(35096),f=(0,v.eW)((o,r,w,p)=>{o.attr("class",w);const{width:M,height:z,x:te,y:ae}=y(o,r);(0,A.v2)(o,z,M,p);const I=b(te,ae,M,z,r);o.attr("viewBox",I),v.cM.debug(`viewBox configured: ${I} with padding: ${r}`)},"setupViewPortForSVG"),y=(0,v.eW)((o,r)=>{var p;const w=((p=o.node())==null?void 0:p.getBBox())||{width:0,height:0,x:0,y:0};return{width:w.width+r*2,height:w.height+r*2,x:w.x,y:w.y}},"calculateDimensionsWithPadding"),b=(0,v.eW)((o,r,w,p,M)=>`${o-M} ${r-M} ${w} ${p}`,"createViewBox")},88542:function(_,m,n){var N;n.d(m,{diagram:function(){return Se}});var A=n(88674),v=n(43663),f=n(2831),y=n(25925),b=n(4284),o=n(99970),r=n(35096),w=n(12491),p=n(989),M=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o.GN,this.getAccTitle=o.eu,this.setDiagramTitle=o.g2,this.getDiagramTitle=o.Kr,this.getAccDescription=o.Mx,this.setAccDescription=o.U$}getNodes(){return this.nodes}getConfig(){var s;const l=o.vZ,c=(0,o.iE)();return(0,b.Rb)(le(le({},l.treemap),(s=c.treemap)!=null?s:{}))}addNode(l,c){var s;this.nodes.push(l),this.levels.set(l,c),c===0&&(this.outerNodes.push(l),(s=this.root)!=null||(this.root=l))}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,c){var d;const s=(d=this.classes.get(l))!=null?d:{id:l,styles:[],textStyles:[]},u=c.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");u&&u.forEach(E=>{(0,f.Fh)(E)&&(s!=null&&s.textStyles?s.textStyles.push(E):s.textStyles=[E]),s!=null&&s.styles?s.styles.push(E):s.styles=[E]}),this.classes.set(l,s)}getClasses(){return this.classes}getStylesForClass(l){var c,s;return(s=(c=this.classes.get(l))==null?void 0:c.styles)!=null?s:[]}clear(){(0,o.ZH)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},(0,r.eW)(N,"TreeMapDB"),N);function z(g){if(!g.length)return[];const l=[],c=[];return g.forEach(s=>{const u={name:s.name,children:s.type==="Leaf"?void 0:[]};for(u.classSelector=s==null?void 0:s.classSelector,s!=null&&s.cssCompiledStyles&&(u.cssCompiledStyles=[s.cssCompiledStyles]),s.type==="Leaf"&&s.value!==void 0&&(u.value=s.value);c.length>0&&c[c.length-1].level>=s.level;)c.pop();if(c.length===0)l.push(u);else{const d=c[c.length-1].node;d.children?d.children.push(u):d.children=[u]}s.type!=="Leaf"&&c.push({node:u,level:s.level})}),l}(0,r.eW)(z,"buildHierarchy");var te=(0,r.eW)((g,l)=>{var d,E,R,H;(0,y.A)(g,l);const c=[];for(const a of(d=g.TreemapRows)!=null?d:[])a.$type==="ClassDefStatement"&&l.addClass((E=a.className)!=null?E:"",(R=a.styleText)!=null?R:"");for(const a of(H=g.TreemapRows)!=null?H:[]){const S=a.item;if(!S)continue;const C=a.indent?parseInt(a.indent):0,X=ae(S),K=S.classSelector?l.getStylesForClass(S.classSelector):[],G=K.length>0?K.join(";"):void 0,J={level:C,name:X,type:S.$type,value:S.value,classSelector:S.classSelector,cssCompiledStyles:G};c.push(J)}const s=z(c),u=(0,r.eW)((a,S)=>{for(const C of a)l.addNode(C,S),C.children&&C.children.length>0&&u(C.children,S+1)},"addNodesRecursively");u(s,0)},"populate"),ae=(0,r.eW)(g=>g.name?String(g.name):"","getItemName"),I={parser:{yy:void 0},parse:(0,r.eW)(g=>de(this,null,function*(){var l;try{const c=w.Qc,s=yield c("treemap",g);r.cM.debug("Treemap AST:",s);const u=(l=I.parser)==null?void 0:l.yy;if(!(u instanceof M))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");te(s,u)}catch(c){throw r.cM.error("Error parsing treemap:",c),c}}),"parse")},pe=10,k=10,U=25,he=(0,r.eW)((g,l,c,s)=>{var oe,re;const u=s.db,d=u.getConfig(),E=(oe=d.padding)!=null?oe:pe,R=u.getDiagramTitle(),H=u.getRoot(),{themeVariables:a}=(0,o.iE)();if(!H)return;const S=R?30:0,C=(0,A.P)(l),X=d.nodeWidth?d.nodeWidth*k:960,K=d.nodeHeight?d.nodeHeight*k:500,G=X,J=K+S;C.attr("viewBox",`0 0 ${G} ${J}`),(0,o.v2)(C,J,G,d.useMaxWidth);let B;try{const e=d.valueFormat||",";if(e==="$0,0")B=(0,r.eW)(t=>"$"+(0,p.WUZ)(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),i=t?t[0]:"";B=(0,r.eW)(x=>"$"+(0,p.WUZ)(","+i)(x),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);B=(0,r.eW)(i=>"$"+(0,p.WUZ)(t||"")(i),"valueFormat")}else B=(0,p.WUZ)(e)}catch(e){r.cM.error("Error creating format function:",e),B=(0,p.WUZ)(",")}const j=(0,p.PKp)().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),xe=(0,p.PKp)().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),Q=(0,p.PKp)().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);R&&C.append("text").attr("x",G/2).attr("y",S/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const se=C.append("g").attr("transform",`translate(0, ${S})`).attr("class","treemapContainer"),_e=(0,p.bT9)(H).sum(e=>{var t;return(t=e.value)!=null?t:0}).sort((e,t)=>{var i,x;return((i=t.value)!=null?i:0)-((x=e.value)!=null?x:0)}),ne=(0,p.pNI)().size([X,K]).paddingTop(e=>e.children&&e.children.length>0?U+k:0).paddingInner(E).paddingLeft(e=>e.children&&e.children.length>0?k:0).paddingRight(e=>e.children&&e.children.length>0?k:0).paddingBottom(e=>e.children&&e.children.length>0?k:0).round(!0)(_e),ve=ne.descendants().filter(e=>e.children&&e.children.length>0),Y=se.selectAll(".treemapSection").data(ve).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",U).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),Y.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",U),Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>j(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>xe(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),Y.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",U/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+Q(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=(0,p.Ys)(this),i=e.data.name;t.text(i);const x=e.x1-e.x0,W=6;let D;d.showValues!==!1&&e.value?D=x-10-30-10-W:D=x-W-6;const L=Math.max(15,D),h=t.node();if(h.getComputedTextLength()>L){const T="...";let P=i;for(;P.length>0;){if(P=i.substring(0,P.length-1),P.length===0){t.text(T),h.getComputedTextLength()>L&&t.text("");break}if(t.text(P+T),h.getComputedTextLength()<=L)break}}}),d.showValues!==!1&&Y.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",U/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?B(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+Q(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")});const Ce=ne.leaves(),q=se.selectAll(".treemapLeafGroup").data(Ce).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);q.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?j(e.parent.data.name):j(e.data.name)).attr("style",e=>(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?j(e.parent.data.name):j(e.data.name)).attr("stroke-width",3),q.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),q.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+Q(e.data.name)+";",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=(0,p.Ys)(this),i=e.x1-e.x0,x=e.y1-e.y0,W=t.node(),D=4,O=i-2*D,L=x-2*D;if(O<10||L<10){t.style("display","none");return}let h=parseInt(t.style("font-size"),10);const F=8,T=28,P=.6,$=6,Z=2;for(;W.getComputedTextLength()>O&&h>F;)h--,t.style("font-size",`${h}px`);let V=Math.max($,Math.min(T,Math.round(h*P))),ee=h+Z+V;for(;ee>L&&h>F&&(h--,V=Math.max($,Math.min(T,Math.round(h*P))),!(V<$&&h===F));)t.style("font-size",`${h}px`),ee=h+Z+V,V<=$&&ee>L;t.style("font-size",`${h}px`),(W.getComputedTextLength()>O||h<F||L<h)&&t.style("display","none")}),d.showValues!==!1&&q.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const i="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+Q(t.data.name)+";",x=(0,f.UG)({cssCompiledStyles:t.data.cssCompiledStyles});return i+x.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${l}-${i})`).text(t=>t.value?B(t.value):"").each(function(t){const i=(0,p.Ys)(this),x=this.parentNode;if(!x){i.style("display","none");return}const W=(0,p.Ys)(x).select(".treemapLabel");if(W.empty()||W.style("display")==="none"){i.style("display","none");return}const D=parseFloat(W.style("font-size")),O=28,L=.6,h=6,F=2,T=Math.max(h,Math.min(O,Math.round(D*L)));i.style("font-size",`${T}px`);const $=(t.y1-t.y0)/2+D/2+F;i.attr("y",$);const Z=t.x1-t.x0,Te=t.y1-t.y0-4,we=Z-2*4;i.node().getComputedTextLength()>we||$+T>Te||T<h?i.style("display","none"):i.style("display",null)});const be=(re=d.diagramPadding)!=null?re:8;(0,v.j)(C,be,"flowchart",(d==null?void 0:d.useMaxWidth)||!1)},"draw"),ue=(0,r.eW)(function(g,l){return l.db.getClasses()},"getClasses"),me={draw:he,getClasses:ue},fe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},ye=(0,r.eW)(({treemap:g}={})=>{const l=(0,b.Rb)(fe,g);return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${l.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${l.sectionStrokeWidth};
|