markdown-flow-ui 0.3.1 → 0.3.2-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/_virtual/index.es3.js +4 -5
- package/dist/_virtual/index.es3.js.map +1 -1
- package/dist/_virtual/index.es4.js +5 -4
- package/dist/_virtual/index.es4.js.map +1 -1
- package/dist/_virtual/index.es6.js +5 -3
- package/dist/_virtual/index.es6.js.map +1 -1
- package/dist/_virtual/index.es7.js +3 -5
- package/dist/_virtual/index.es7.js.map +1 -1
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +440 -415
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +1 -0
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +71 -68
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +22 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +16 -14
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +19 -17
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +15 -13
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +21 -19
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +27 -25
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +21 -19
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +19 -17
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +18 -16
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +17 -15
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +25 -23
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +28 -26
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.d.ts +5 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +154 -149
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/utils.es.js +54 -52
- package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { utils_default as ne } from "./chunk-NSK5VX7P.es.js";
|
|
|
2
2
|
import { getAccDescription as oe, setAccDescription as ce, getDiagramTitle as le, setDiagramTitle as ue, getAccTitle as de, setAccTitle as fe, getConfig2 as Z, configureSvgSize as me, common_default as he, clear as ke } from "./chunk-I66GZJ75.es.js";
|
|
3
3
|
import { log as G } from "./chunk-X3CZISLH.es.js";
|
|
4
4
|
import { __name as l } from "./chunk-Y2CYZVJY.es.js";
|
|
5
|
-
import { d as ye } from "../../../../../_virtual/index.
|
|
5
|
+
import { d as ye } from "../../../../../_virtual/index.es7.js";
|
|
6
6
|
import L from "../../../../../_virtual/dayjs.min.es.js";
|
|
7
7
|
import ge from "../../../../../_virtual/isoWeek.es.js";
|
|
8
8
|
import pe from "../../../../../_virtual/customParseFormat.es.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-2Q5K7J3B.cjs"),Le=require("js-yaml"),J=require("./chunk-2GRJ4B5K.cjs"),X=require("./chunk-NSK5VX7P.cjs"),I=require("./chunk-I66GZJ75.cjs"),at=require("./chunk-X3CZISLH.cjs"),m=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Ae=require("../../../../../_virtual/index6.cjs"),Mt=require("../../../../d3-selection/src/select.cjs");var Zt=(function(){var e=m.__name(function(pt,N,C,P){for(C=C||{},P=pt.length;P--;C[pt[P]]=N);return C},"o"),t=[1,2],r=[1,3],a=[1,4],n=[2,4],i=[1,9],s=[1,11],c=[1,12],E=[1,14],d=[1,15],p=[1,17],f=[1,18],_=[1,19],O=[1,25],T=[1,26],g=[1,27],u=[1,28],x=[1,29],L=[1,30],b=[1,31],w=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],Z=[1,40],nt=[1,42],$=[1,43],H=[1,44],rt=[1,45],j=[1,46],Y=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],bt=[1,74],wt=[1,80],S=[1,81],k=[1,82],ct=[1,83],tt=[1,84],K=[1,85],It=[1,86],jt=[1,87],te=[1,88],ee=[1,89],ae=[1,90],re=[1,91],se=[1,92],ne=[1,93],ie=[1,94],oe=[1,95],ce=[1,96],le=[1,97],de=[1,98],he=[1,99],Te=[1,100],pe=[1,101],Ee=[1,102],_e=[1,103],ue=[1,104],fe=[1,105],ge=[2,78],St=[4,5,17,51,53,54],Pt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],qt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ft=[5,52],q=[70,71,72,73],it=[1,151],Ht={trace:m.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:m.__name(function(N,C,P,y,z,o,At){var h=o.length-1;switch(z){case 3:return y.apply(o[h]),o[h];case 4:case 10:this.$=[];break;case 5:case 11:o[h-1].push(o[h]),this.$=o[h-1];break;case 6:case 7:case 12:case 13:this.$=o[h];break;case 8:case 9:case 14:this.$=[];break;case 16:o[h].type="createParticipant",this.$=o[h];break;case 17:o[h-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[h-2])}),o[h-1].push({type:"boxEnd",boxText:o[h-2]}),this.$=o[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-2]),sequenceIndexStep:Number(o[h-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-1].actor};break;case 30:y.setDiagramTitle(o[h].substring(6)),this.$=o[h].substring(6);break;case 31:y.setDiagramTitle(o[h].substring(7)),this.$=o[h].substring(7);break;case 32:this.$=o[h].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[h].trim(),y.setAccDescription(this.$);break;case 35:o[h-1].unshift({type:"loopStart",loopText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.LOOP_START}),o[h-1].push({type:"loopEnd",loopText:o[h-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[h-1];break;case 36:o[h-1].unshift({type:"rectStart",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_START}),o[h-1].push({type:"rectEnd",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[h-1];break;case 37:o[h-1].unshift({type:"optStart",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_START}),o[h-1].push({type:"optEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[h-1];break;case 38:o[h-1].unshift({type:"altStart",altText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.ALT_START}),o[h-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[h-1];break;case 39:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 40:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 41:o[h-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.CRITICAL_START}),o[h-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[h-1];break;case 42:o[h-1].unshift({type:"breakStart",breakText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_START}),o[h-1].push({type:"breakEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[h-1];break;case 44:this.$=o[h-3].concat([{type:"option",optionText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[h]]);break;case 46:this.$=o[h-3].concat([{type:"and",parText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.PAR_AND},o[h]]);break;case 48:this.$=o[h-3].concat([{type:"else",altText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.ALT_ELSE},o[h]]);break;case 49:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 50:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 51:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 52:case 57:o[h-1].draw="actor",o[h-1].type="addParticipant",this.$=o[h-1];break;case 53:o[h-1].type="destroyParticipant",this.$=o[h-1];break;case 54:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 55:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 56:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 58:this.$=[o[h-1],{type:"addNote",placement:o[h-2],actor:o[h-1].actor,text:o[h]}];break;case 59:o[h-2]=[].concat(o[h-1],o[h-1]).slice(0,2),o[h-2][0]=o[h-2][0].actor,o[h-2][1]=o[h-2][1].actor,this.$=[o[h-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[h-2].slice(0,2),text:o[h]}];break;case 60:this.$=[o[h-1],{type:"addLinks",actor:o[h-1].actor,text:o[h]}];break;case 61:this.$=[o[h-1],{type:"addALink",actor:o[h-1].actor,text:o[h]}];break;case 62:this.$=[o[h-1],{type:"addProperties",actor:o[h-1].actor,text:o[h]}];break;case 63:this.$=[o[h-1],{type:"addDetails",actor:o[h-1].actor,text:o[h]}];break;case 66:this.$=[o[h-2],o[h]];break;case 67:this.$=o[h];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor}];break;case 71:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-4].actor}];break;case 72:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor}];break;case 73:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-4].actor}];break;case 74:this.$=[o[h-5],o[h-1],{type:"addMessage",from:o[h-5].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-5].actor}];break;case 75:this.$=[o[h-3],o[h-1],{type:"addMessage",from:o[h-3].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h]}];break;case 76:this.$={type:"addParticipant",actor:o[h-1],config:o[h]};break;case 77:this.$=o[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[h]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,5]),{9:48,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,7]),e(v,[2,8]),e(v,[2,9]),e(v,[2,15]),{13:49,51:U,53:G,54:Z},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(v,[2,30]),e(v,[2,31]),{33:[1,62]},{35:[1,63]},e(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:bt},{23:75,55:76,73:bt},{23:77,73:Y},{69:78,72:[1,79],78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ge),e(v,[2,6]),e(v,[2,16]),e(St,[2,10],{11:114}),e(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(v,[2,22]),{5:[1,118]},{5:[1,119]},e(v,[2,25]),e(v,[2,26]),e(v,[2,27]),e(v,[2,28]),e(v,[2,29]),e(v,[2,32]),e(v,[2,33]),e(Pt,n,{7:120}),e(Pt,n,{7:121}),e(Pt,n,{7:122}),e(me,n,{41:123,7:124}),e(qt,n,{43:125,7:126}),e(qt,n,{7:126,43:127}),e(xe,n,{46:128,7:129}),e(Pt,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ft,ge,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:Y},{69:146,78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:it},{58:152,104:it},{58:153,104:it},{58:154,104:it},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:Z},{5:[1,160]},e(v,[2,20]),e(v,[2,21]),e(v,[2,23]),e(v,[2,24]),{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,161],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,162],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,163],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,164]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,47],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,166]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,45],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,168]},{17:[1,169]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,43],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,171],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{16:[1,172]},e(v,[2,50]),{16:[1,173]},e(v,[2,55]),e(Ft,[2,76]),{76:[1,174]},{16:[1,175]},e(v,[2,52]),{16:[1,176]},e(v,[2,57]),e(v,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:it},{23:181,72:[1,182],73:Y},{58:183,104:it},{58:184,104:it},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(v,[2,17]),e(St,[2,11]),{13:186,51:U,53:G,54:Z},e(St,[2,13]),e(St,[2,14]),e(v,[2,19]),e(v,[2,35]),e(v,[2,36]),e(v,[2,37]),e(v,[2,38]),{16:[1,187]},e(v,[2,39]),{16:[1,188]},e(v,[2,40]),e(v,[2,41]),{16:[1,189]},e(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:it},{58:196,104:it},{58:197,104:it},{5:[2,75]},{58:198,104:it},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(St,[2,12]),e(me,n,{7:124,41:201}),e(qt,n,{7:126,43:202}),e(xe,n,{7:129,46:203}),e(v,[2,49]),e(v,[2,54]),e(Ft,[2,77]),e(v,[2,51]),e(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:it},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:m.__name(function(N,C){if(C.recoverable)this.trace(N);else{var P=new Error(N);throw P.hash=C,P}},"parseError"),parse:m.__name(function(N){var C=this,P=[0],y=[],z=[null],o=[],At=this.table,h="",Dt=0,Ie=0,Ke=2,ye=1,qe=o.slice.call(arguments,1),Q=Object.create(this.lexer),ut={yy:{}};for(var zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zt)&&(ut.yy[zt]=this.yy[zt]);Q.setInput(N,ut.yy),ut.yy.lexer=Q,ut.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var Ut=Q.yylloc;o.push(Ut);var Fe=Q.options&&Q.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(st){P.length=P.length-2*st,z.length=z.length-st,o.length=o.length-st}m.__name(He,"popStack");function Re(){var st;return st=y.pop()||Q.lex()||ye,typeof st!="number"&&(st instanceof Array&&(y=st,st=y.pop()),st=C.symbols_[st]||st),st}m.__name(Re,"lex");for(var et,ft,ot,Gt,yt={},Ct,dt,Oe,vt;;){if(ft=P[P.length-1],this.defaultActions[ft]?ot=this.defaultActions[ft]:((et===null||typeof et>"u")&&(et=Re()),ot=At[ft]&&At[ft][et]),typeof ot>"u"||!ot.length||!ot[0]){var Xt="";vt=[];for(Ct in At[ft])this.terminals_[Ct]&&Ct>Ke&&vt.push("'"+this.terminals_[Ct]+"'");Q.showPosition?Xt="Parse error on line "+(Dt+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-2Q5K7J3B.cjs"),Le=require("js-yaml"),J=require("./chunk-2GRJ4B5K.cjs"),X=require("./chunk-NSK5VX7P.cjs"),I=require("./chunk-I66GZJ75.cjs"),at=require("./chunk-X3CZISLH.cjs"),m=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Ae=require("../../../../../_virtual/index7.cjs"),Mt=require("../../../../d3-selection/src/select.cjs");var Zt=(function(){var e=m.__name(function(pt,N,C,P){for(C=C||{},P=pt.length;P--;C[pt[P]]=N);return C},"o"),t=[1,2],r=[1,3],a=[1,4],n=[2,4],i=[1,9],s=[1,11],c=[1,12],E=[1,14],d=[1,15],p=[1,17],f=[1,18],_=[1,19],O=[1,25],T=[1,26],g=[1,27],u=[1,28],x=[1,29],L=[1,30],b=[1,31],w=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],Z=[1,40],nt=[1,42],$=[1,43],H=[1,44],rt=[1,45],j=[1,46],Y=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],bt=[1,74],wt=[1,80],S=[1,81],k=[1,82],ct=[1,83],tt=[1,84],K=[1,85],It=[1,86],jt=[1,87],te=[1,88],ee=[1,89],ae=[1,90],re=[1,91],se=[1,92],ne=[1,93],ie=[1,94],oe=[1,95],ce=[1,96],le=[1,97],de=[1,98],he=[1,99],Te=[1,100],pe=[1,101],Ee=[1,102],_e=[1,103],ue=[1,104],fe=[1,105],ge=[2,78],St=[4,5,17,51,53,54],Pt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],qt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ft=[5,52],q=[70,71,72,73],it=[1,151],Ht={trace:m.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:m.__name(function(N,C,P,y,z,o,At){var h=o.length-1;switch(z){case 3:return y.apply(o[h]),o[h];case 4:case 10:this.$=[];break;case 5:case 11:o[h-1].push(o[h]),this.$=o[h-1];break;case 6:case 7:case 12:case 13:this.$=o[h];break;case 8:case 9:case 14:this.$=[];break;case 16:o[h].type="createParticipant",this.$=o[h];break;case 17:o[h-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[h-2])}),o[h-1].push({type:"boxEnd",boxText:o[h-2]}),this.$=o[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-2]),sequenceIndexStep:Number(o[h-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-1].actor};break;case 30:y.setDiagramTitle(o[h].substring(6)),this.$=o[h].substring(6);break;case 31:y.setDiagramTitle(o[h].substring(7)),this.$=o[h].substring(7);break;case 32:this.$=o[h].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[h].trim(),y.setAccDescription(this.$);break;case 35:o[h-1].unshift({type:"loopStart",loopText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.LOOP_START}),o[h-1].push({type:"loopEnd",loopText:o[h-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[h-1];break;case 36:o[h-1].unshift({type:"rectStart",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_START}),o[h-1].push({type:"rectEnd",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[h-1];break;case 37:o[h-1].unshift({type:"optStart",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_START}),o[h-1].push({type:"optEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[h-1];break;case 38:o[h-1].unshift({type:"altStart",altText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.ALT_START}),o[h-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[h-1];break;case 39:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 40:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 41:o[h-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.CRITICAL_START}),o[h-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[h-1];break;case 42:o[h-1].unshift({type:"breakStart",breakText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_START}),o[h-1].push({type:"breakEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[h-1];break;case 44:this.$=o[h-3].concat([{type:"option",optionText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[h]]);break;case 46:this.$=o[h-3].concat([{type:"and",parText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.PAR_AND},o[h]]);break;case 48:this.$=o[h-3].concat([{type:"else",altText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.ALT_ELSE},o[h]]);break;case 49:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 50:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 51:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 52:case 57:o[h-1].draw="actor",o[h-1].type="addParticipant",this.$=o[h-1];break;case 53:o[h-1].type="destroyParticipant",this.$=o[h-1];break;case 54:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 55:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 56:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 58:this.$=[o[h-1],{type:"addNote",placement:o[h-2],actor:o[h-1].actor,text:o[h]}];break;case 59:o[h-2]=[].concat(o[h-1],o[h-1]).slice(0,2),o[h-2][0]=o[h-2][0].actor,o[h-2][1]=o[h-2][1].actor,this.$=[o[h-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[h-2].slice(0,2),text:o[h]}];break;case 60:this.$=[o[h-1],{type:"addLinks",actor:o[h-1].actor,text:o[h]}];break;case 61:this.$=[o[h-1],{type:"addALink",actor:o[h-1].actor,text:o[h]}];break;case 62:this.$=[o[h-1],{type:"addProperties",actor:o[h-1].actor,text:o[h]}];break;case 63:this.$=[o[h-1],{type:"addDetails",actor:o[h-1].actor,text:o[h]}];break;case 66:this.$=[o[h-2],o[h]];break;case 67:this.$=o[h];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor}];break;case 71:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-4].actor}];break;case 72:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor}];break;case 73:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-4].actor}];break;case 74:this.$=[o[h-5],o[h-1],{type:"addMessage",from:o[h-5].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-5].actor}];break;case 75:this.$=[o[h-3],o[h-1],{type:"addMessage",from:o[h-3].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h]}];break;case 76:this.$={type:"addParticipant",actor:o[h-1],config:o[h]};break;case 77:this.$=o[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[h]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,5]),{9:48,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,7]),e(v,[2,8]),e(v,[2,9]),e(v,[2,15]),{13:49,51:U,53:G,54:Z},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(v,[2,30]),e(v,[2,31]),{33:[1,62]},{35:[1,63]},e(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:bt},{23:75,55:76,73:bt},{23:77,73:Y},{69:78,72:[1,79],78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ge),e(v,[2,6]),e(v,[2,16]),e(St,[2,10],{11:114}),e(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(v,[2,22]),{5:[1,118]},{5:[1,119]},e(v,[2,25]),e(v,[2,26]),e(v,[2,27]),e(v,[2,28]),e(v,[2,29]),e(v,[2,32]),e(v,[2,33]),e(Pt,n,{7:120}),e(Pt,n,{7:121}),e(Pt,n,{7:122}),e(me,n,{41:123,7:124}),e(qt,n,{43:125,7:126}),e(qt,n,{7:126,43:127}),e(xe,n,{46:128,7:129}),e(Pt,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ft,ge,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:Y},{69:146,78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:it},{58:152,104:it},{58:153,104:it},{58:154,104:it},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:Z},{5:[1,160]},e(v,[2,20]),e(v,[2,21]),e(v,[2,23]),e(v,[2,24]),{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,161],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,162],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,163],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,164]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,47],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,166]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,45],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,168]},{17:[1,169]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,43],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,171],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{16:[1,172]},e(v,[2,50]),{16:[1,173]},e(v,[2,55]),e(Ft,[2,76]),{76:[1,174]},{16:[1,175]},e(v,[2,52]),{16:[1,176]},e(v,[2,57]),e(v,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:it},{23:181,72:[1,182],73:Y},{58:183,104:it},{58:184,104:it},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(v,[2,17]),e(St,[2,11]),{13:186,51:U,53:G,54:Z},e(St,[2,13]),e(St,[2,14]),e(v,[2,19]),e(v,[2,35]),e(v,[2,36]),e(v,[2,37]),e(v,[2,38]),{16:[1,187]},e(v,[2,39]),{16:[1,188]},e(v,[2,40]),e(v,[2,41]),{16:[1,189]},e(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:it},{58:196,104:it},{58:197,104:it},{5:[2,75]},{58:198,104:it},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(St,[2,12]),e(me,n,{7:124,41:201}),e(qt,n,{7:126,43:202}),e(xe,n,{7:129,46:203}),e(v,[2,49]),e(v,[2,54]),e(Ft,[2,77]),e(v,[2,51]),e(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:it},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:m.__name(function(N,C){if(C.recoverable)this.trace(N);else{var P=new Error(N);throw P.hash=C,P}},"parseError"),parse:m.__name(function(N){var C=this,P=[0],y=[],z=[null],o=[],At=this.table,h="",Dt=0,Ie=0,Ke=2,ye=1,qe=o.slice.call(arguments,1),Q=Object.create(this.lexer),ut={yy:{}};for(var zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zt)&&(ut.yy[zt]=this.yy[zt]);Q.setInput(N,ut.yy),ut.yy.lexer=Q,ut.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var Ut=Q.yylloc;o.push(Ut);var Fe=Q.options&&Q.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(st){P.length=P.length-2*st,z.length=z.length-st,o.length=o.length-st}m.__name(He,"popStack");function Re(){var st;return st=y.pop()||Q.lex()||ye,typeof st!="number"&&(st instanceof Array&&(y=st,st=y.pop()),st=C.symbols_[st]||st),st}m.__name(Re,"lex");for(var et,ft,ot,Gt,yt={},Ct,dt,Oe,vt;;){if(ft=P[P.length-1],this.defaultActions[ft]?ot=this.defaultActions[ft]:((et===null||typeof et>"u")&&(et=Re()),ot=At[ft]&&At[ft][et]),typeof ot>"u"||!ot.length||!ot[0]){var Xt="";vt=[];for(Ct in At[ft])this.terminals_[Ct]&&Ct>Ke&&vt.push("'"+this.terminals_[Ct]+"'");Q.showPosition?Xt="Parse error on line "+(Dt+1)+`:
|
|
2
2
|
`+Q.showPosition()+`
|
|
3
3
|
Expecting `+vt.join(", ")+", got '"+(this.terminals_[et]||et)+"'":Xt="Parse error on line "+(Dt+1)+": Unexpected "+(et==ye?"end of input":"'"+(this.terminals_[et]||et)+"'"),this.parseError(Xt,{text:Q.match,token:this.terminals_[et]||et,line:Q.yylineno,loc:Ut,expected:vt})}if(ot[0]instanceof Array&&ot.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+et);switch(ot[0]){case 1:P.push(et),z.push(Q.yytext),o.push(Q.yylloc),P.push(ot[1]),et=null,Ie=Q.yyleng,h=Q.yytext,Dt=Q.yylineno,Ut=Q.yylloc;break;case 2:if(dt=this.productions_[ot[1]][1],yt.$=z[z.length-dt],yt._$={first_line:o[o.length-(dt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(dt||1)].first_column,last_column:o[o.length-1].last_column},Fe&&(yt._$.range=[o[o.length-(dt||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(yt,[h,Ie,Dt,ut.yy,ot[1],z,o].concat(qe)),typeof Gt<"u")return Gt;dt&&(P=P.slice(0,-1*dt*2),z=z.slice(0,-1*dt),o=o.slice(0,-1*dt)),P.push(this.productions_[ot[1]][0]),z.push(yt.$),o.push(yt._$),Oe=At[P[P.length-2]][P[P.length-1]],P.push(Oe);break;case 3:return!0}}return!0},"parse")},We=(function(){var pt={EOF:1,parseError:m.__name(function(C,P){if(this.yy.parser)this.yy.parser.parseError(C,P);else throw new Error(C)},"parseError"),setInput:m.__name(function(N,C){return this.yy=C||this.yy||{},this._input=N,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:m.__name(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var C=N.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),N},"input"),unput:m.__name(function(N){var C=N.length,P=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var y=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),P.length-1&&(this.yylineno-=P.length-1);var z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:P?(P.length===y.length?this.yylloc.first_column:0)+y[y.length-P.length].length-P[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:m.__name(function(){return this._more=!0,this},"more"),reject:m.__name(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:m.__name(function(N){this.unput(this.match.slice(N))},"less"),pastInput:m.__name(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m.__name(function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m.__name(function(){var N=this.pastInput(),C=new Array(N.length+1).join("-");return N+this.upcomingInput()+`
|
|
@@ -7,7 +7,7 @@ import { log as at } from "./chunk-X3CZISLH.es.js";
|
|
|
7
7
|
import { __name as x } from "./chunk-Y2CYZVJY.es.js";
|
|
8
8
|
import "../../../../d3-transition/src/selection/index.es.js";
|
|
9
9
|
import "../../../../d3-zoom/src/transform.es.js";
|
|
10
|
-
import { d as Ve } from "../../../../../_virtual/index.
|
|
10
|
+
import { d as Ve } from "../../../../../_virtual/index.es7.js";
|
|
11
11
|
import Wt from "../../../../d3-selection/src/select.es.js";
|
|
12
12
|
var ee = (function() {
|
|
13
13
|
var e = /* @__PURE__ */ x(function(ut, S, v, P) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./chunk-5RXB4S5H.cjs"),x=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const t=require("./chunk-I66GZJ75.cjs"),S=require("./chunk-X3CZISLH.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index6.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");const z=require("./chunk-NSK5VX7P.cjs"),L=require("../../../../dagre-d3-es/src/graphlib/graph.cjs"),G=require("../../../../dagre-d3-es/src/dagre/layout.cjs");require("../../../../dagre-d3-es/src/dagre/rank/network-simplex.cjs");const N=require("../../../../d3-selection/src/select.cjs"),P=require("../../../../d3-shape/src/line.cjs"),R=require("../../../../d3-shape/src/curve/basis.cjs");var A=x.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),W=x.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),U=x.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),D=x.__name((e,n)=>{const d=x.__name(function(s,w,C){const b=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(w);C||b.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=r.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,o=!0;n.descriptions.forEach(function(s){i||(d(h,s,o),o=!1),i=!1});const m=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,r.width);return m.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),F=x.__name((e,n,d)=>{const g=t.getConfig2().state.padding,r=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,o=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=o.node().getBBox().width+r;let c=Math.max(p,h);c===h&&(c=c+r);let s;const w=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-w.x)<g&&p>h&&(s=i-(p-h)/2);const C=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",C).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",w.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),o.attr("x",s+g),p<=h&&o.attr("x",i+(c-r)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",w.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),X=x.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),J=x.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let r=d;d=g,g=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),O=x.__name((e,n,d,g)=>{let r=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let o=1.25*t.getConfig2().state.noteMargin;for(const m of i){const p=m.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),o===0){const s=c.node().getBBox();o+=s.height}r+=o,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+r+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:r}},"_drawLongText"),Y=x.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:r,textHeight:l}=O(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",r+t.getConfig2().state.noteMargin*2),d},"drawNote"),H=x.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},r=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&A(r),n.type==="end"&&X(r),(n.type==="fork"||n.type==="join")&&J(r,n),n.type==="note"&&Y(n.note.text,r),n.type==="divider"&&W(r),n.type==="default"&&n.descriptions.length===0&&U(r,n),n.type==="default"&&n.descriptions.length>0&&D(r,n);const l=r.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),T=0,I=x.__name(function(e,n,d){const g=x.__name(function(o){switch(o){case v.StateDB.relationType.AGGREGATION:return"aggregation";case v.StateDB.relationType.EXTENSION:return"extension";case v.StateDB.relationType.COMPOSITION:return"composition";case v.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(o=>!Number.isNaN(o.y));const r=n.points,l=P.default().x(function(o){return o.x}).y(function(o){return o.y}).curve(R.default),h=e.append("path").attr("d",l(r)).attr("id","edge"+T).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(v.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const o=e.append("g").attr("class","stateLabel"),{x:m,y:p}=z.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const w=[];let C=0,b=0;for(let u=0;u<=c.length;u++){const f=o.append("text").attr("text-anchor","middle").text(c[u]).attr("x",m).attr("y",p+s),y=f.node().getBBox();C=Math.max(C,y.width),b=Math.min(b,y.x),S.log.info(y.x,m,p+s),s===0&&(s=f.node().getBBox().height,S.log.info("Title height",s,p)),w.push(f)}let k=s*c.length;if(c.length>1){const u=(c.length-1)*s*.5;w.forEach((f,y)=>f.attr("y",p+y*s-u)),k=s*c.length}const a=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-C/2-t.getConfig2().state.padding/2).attr("y",p-k/2-t.getConfig2().state.padding/2-3.5).attr("width",C+t.getConfig2().state.padding).attr("height",k+t.getConfig2().state.padding),S.log.info(a)}T++},"drawEdge"),B,M={},Z=x.__name(function(){},"setConf"),$=x.__name(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),V=x.__name(function(e,n,d,g){B=t.getConfig2().state;const r=t.getConfig2().securityLevel;let l;r==="sandbox"&&(l=N.default("#i"+n));const h=r==="sandbox"?N.default(l.nodes()[0].contentDocument.body):N.default("body"),i=r==="sandbox"?l.nodes()[0].contentDocument:document;S.log.debug("Rendering diagram "+e);const o=h.select(`[id='${n}']`);$(o);const m=g.db.getRootDoc(),p=o.append("g").attr("id",n+"-root");q(m,p,void 0,!1,h,i,g);const c=B.padding,s=o.node().getBBox(),w=s.width+c*2,C=s.height+c*2,b=w*1.75;t.configureSvgSize(o,C,b,B.useMaxWidth),o.attr("viewBox",`${s.x-B.padding} ${s.y-B.padding} `+w+" "+C)},"draw"),j=x.__name(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),q=x.__name((e,n,d,g,r,l,h)=>{const i=new L.Graph({compound:!0,multigraph:!0});let o,m=!0;for(o=0;o<e.length;o++)if(e[o].stmt==="relation"){m=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const u=p[a];d&&(u.parentId=d);let f;if(u.doc){let y=n.append("g").attr("id",u.id).attr("class","stateGroup");f=q(u.doc,y,u.id,!g,r,l,h);{y=F(y,u,g);let _=y.node().getBBox();f.width=_.width,f.height=_.height+B.padding/2,M[u.id]={y:B.compositTitleSize}}}else f=H(n,u,i);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},_=H(n,y,i);u.note.position==="left of"?(i.setNode(f.id+"-note",_),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",_)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}S.log.debug("Count=",i.nodeCount(),i);let w=0;c.forEach(function(a){w++,S.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:j(a.title),height:B.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+w)}),G.layout(i),S.log.debug("Graph after layout",i.nodes());const C=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(S.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),r.select("#"+C.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(M[a]?M[a].y:0)-i.node(a).height/2)+" )"),r.select("#"+C.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+C.id+" #"+a+" .divider").forEach(f=>{const y=f.parentElement;let _=0,E=0;y&&(y.parentElement&&(_=y.parentElement.getBBox().width),E=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(E)&&(E=0)),f.setAttribute("x1",0-E+8),f.setAttribute("x2",_-E-8)})):S.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let b=C.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(S.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),I(n,i.edge(a),i.edge(a).relation))}),b=C.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=b.width+2*B.padding,k.height=b.height+2*B.padding,S.log.debug("Doc rendered",k,i),k},"renderDoc"),K={setConf:Z,draw:V},Q={parser:v.stateDiagram_default,get db(){return new v.StateDB(1)},renderer:K,styles:v.styles_default,init:x.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./chunk-5RXB4S5H.cjs"),x=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const t=require("./chunk-I66GZJ75.cjs"),S=require("./chunk-X3CZISLH.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");const z=require("./chunk-NSK5VX7P.cjs"),L=require("../../../../dagre-d3-es/src/graphlib/graph.cjs"),G=require("../../../../dagre-d3-es/src/dagre/layout.cjs");require("../../../../dagre-d3-es/src/dagre/rank/network-simplex.cjs");const N=require("../../../../d3-selection/src/select.cjs"),P=require("../../../../d3-shape/src/line.cjs"),R=require("../../../../d3-shape/src/curve/basis.cjs");var A=x.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),W=x.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),U=x.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),D=x.__name((e,n)=>{const d=x.__name(function(s,w,C){const b=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(w);C||b.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=r.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,o=!0;n.descriptions.forEach(function(s){i||(d(h,s,o),o=!1),i=!1});const m=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,r.width);return m.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),F=x.__name((e,n,d)=>{const g=t.getConfig2().state.padding,r=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,o=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=o.node().getBBox().width+r;let c=Math.max(p,h);c===h&&(c=c+r);let s;const w=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-w.x)<g&&p>h&&(s=i-(p-h)/2);const C=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",C).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",w.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),o.attr("x",s+g),p<=h&&o.attr("x",i+(c-r)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",w.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),X=x.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),J=x.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let r=d;d=g,g=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),O=x.__name((e,n,d,g)=>{let r=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let o=1.25*t.getConfig2().state.noteMargin;for(const m of i){const p=m.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),o===0){const s=c.node().getBBox();o+=s.height}r+=o,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+r+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:r}},"_drawLongText"),Y=x.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:r,textHeight:l}=O(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",r+t.getConfig2().state.noteMargin*2),d},"drawNote"),H=x.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},r=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&A(r),n.type==="end"&&X(r),(n.type==="fork"||n.type==="join")&&J(r,n),n.type==="note"&&Y(n.note.text,r),n.type==="divider"&&W(r),n.type==="default"&&n.descriptions.length===0&&U(r,n),n.type==="default"&&n.descriptions.length>0&&D(r,n);const l=r.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),T=0,I=x.__name(function(e,n,d){const g=x.__name(function(o){switch(o){case v.StateDB.relationType.AGGREGATION:return"aggregation";case v.StateDB.relationType.EXTENSION:return"extension";case v.StateDB.relationType.COMPOSITION:return"composition";case v.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(o=>!Number.isNaN(o.y));const r=n.points,l=P.default().x(function(o){return o.x}).y(function(o){return o.y}).curve(R.default),h=e.append("path").attr("d",l(r)).attr("id","edge"+T).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(v.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const o=e.append("g").attr("class","stateLabel"),{x:m,y:p}=z.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const w=[];let C=0,b=0;for(let u=0;u<=c.length;u++){const f=o.append("text").attr("text-anchor","middle").text(c[u]).attr("x",m).attr("y",p+s),y=f.node().getBBox();C=Math.max(C,y.width),b=Math.min(b,y.x),S.log.info(y.x,m,p+s),s===0&&(s=f.node().getBBox().height,S.log.info("Title height",s,p)),w.push(f)}let k=s*c.length;if(c.length>1){const u=(c.length-1)*s*.5;w.forEach((f,y)=>f.attr("y",p+y*s-u)),k=s*c.length}const a=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-C/2-t.getConfig2().state.padding/2).attr("y",p-k/2-t.getConfig2().state.padding/2-3.5).attr("width",C+t.getConfig2().state.padding).attr("height",k+t.getConfig2().state.padding),S.log.info(a)}T++},"drawEdge"),B,M={},Z=x.__name(function(){},"setConf"),$=x.__name(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),V=x.__name(function(e,n,d,g){B=t.getConfig2().state;const r=t.getConfig2().securityLevel;let l;r==="sandbox"&&(l=N.default("#i"+n));const h=r==="sandbox"?N.default(l.nodes()[0].contentDocument.body):N.default("body"),i=r==="sandbox"?l.nodes()[0].contentDocument:document;S.log.debug("Rendering diagram "+e);const o=h.select(`[id='${n}']`);$(o);const m=g.db.getRootDoc(),p=o.append("g").attr("id",n+"-root");q(m,p,void 0,!1,h,i,g);const c=B.padding,s=o.node().getBBox(),w=s.width+c*2,C=s.height+c*2,b=w*1.75;t.configureSvgSize(o,C,b,B.useMaxWidth),o.attr("viewBox",`${s.x-B.padding} ${s.y-B.padding} `+w+" "+C)},"draw"),j=x.__name(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),q=x.__name((e,n,d,g,r,l,h)=>{const i=new L.Graph({compound:!0,multigraph:!0});let o,m=!0;for(o=0;o<e.length;o++)if(e[o].stmt==="relation"){m=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const u=p[a];d&&(u.parentId=d);let f;if(u.doc){let y=n.append("g").attr("id",u.id).attr("class","stateGroup");f=q(u.doc,y,u.id,!g,r,l,h);{y=F(y,u,g);let _=y.node().getBBox();f.width=_.width,f.height=_.height+B.padding/2,M[u.id]={y:B.compositTitleSize}}}else f=H(n,u,i);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},_=H(n,y,i);u.note.position==="left of"?(i.setNode(f.id+"-note",_),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",_)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}S.log.debug("Count=",i.nodeCount(),i);let w=0;c.forEach(function(a){w++,S.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:j(a.title),height:B.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+w)}),G.layout(i),S.log.debug("Graph after layout",i.nodes());const C=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(S.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),r.select("#"+C.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(M[a]?M[a].y:0)-i.node(a).height/2)+" )"),r.select("#"+C.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+C.id+" #"+a+" .divider").forEach(f=>{const y=f.parentElement;let _=0,E=0;y&&(y.parentElement&&(_=y.parentElement.getBBox().width),E=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(E)&&(E=0)),f.setAttribute("x1",0-E+8),f.setAttribute("x2",_-E-8)})):S.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let b=C.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(S.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),I(n,i.edge(a),i.edge(a).relation))}),b=C.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=b.width+2*B.padding,k.height=b.height+2*B.padding,S.log.debug("Doc rendered",k,i),k},"renderDoc"),K={setConf:Z,draw:V},Q={parser:v.stateDiagram_default,get db(){return new v.StateDB(1)},renderer:K,styles:v.styles_default,init:x.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Q;
|
|
2
2
|
//# sourceMappingURL=stateDiagram-OKZ733FA.cjs.map
|
|
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.es.js";
|
|
|
5
5
|
import { getConfig2 as t, configureSvgSize as P, common_default as z, getUrl as U } from "./chunk-I66GZJ75.es.js";
|
|
6
6
|
import { log as S } from "./chunk-X3CZISLH.es.js";
|
|
7
7
|
import "./chunk-J7OUQ5F2.es.js";
|
|
8
|
-
import "../../../../../_virtual/index.
|
|
8
|
+
import "../../../../../_virtual/index.es7.js";
|
|
9
9
|
import "./chunk-7Z6QIM7H.es.js";
|
|
10
10
|
import "./chunk-QR6OTTB3.es.js";
|
|
11
11
|
import "./chunk-7BUUIJ7U.es.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-5RXB4S5H.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-5RXB4S5H.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var i={parser:r.stateDiagram_default,get db(){return new r.StateDB(2)},renderer:r.stateRenderer_v3_unified_default,styles:r.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=i;
|
|
2
2
|
//# sourceMappingURL=stateDiagram-v2-UEYNNEHI.cjs.map
|
|
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.es.js";
|
|
|
5
5
|
import "./chunk-I66GZJ75.es.js";
|
|
6
6
|
import "../../../../../_virtual/dayjs.min.es.js";
|
|
7
7
|
import "./chunk-J7OUQ5F2.es.js";
|
|
8
|
-
import "../../../../../_virtual/index.
|
|
8
|
+
import "../../../../../_virtual/index.es7.js";
|
|
9
9
|
import "./chunk-7Z6QIM7H.es.js";
|
|
10
10
|
import "./chunk-QR6OTTB3.es.js";
|
|
11
11
|
import "./chunk-7BUUIJ7U.es.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-JQJVKLGR.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("js-yaml");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-JQJVKLGR.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("js-yaml");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var u=t.__name(e=>`${r.styles_default(e)}
|
|
2
2
|
.swimlane.cluster rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
|
@@ -6,7 +6,7 @@ import "./chunk-I66GZJ75.es.js";
|
|
|
6
6
|
import "../../../../../_virtual/dayjs.min.es.js";
|
|
7
7
|
import "js-yaml";
|
|
8
8
|
import "./chunk-J7OUQ5F2.es.js";
|
|
9
|
-
import "../../../../../_virtual/index.
|
|
9
|
+
import "../../../../../_virtual/index.es7.js";
|
|
10
10
|
import "./chunk-7Z6QIM7H.es.js";
|
|
11
11
|
import "./chunk-QR6OTTB3.es.js";
|
|
12
12
|
import "./chunk-7BUUIJ7U.es.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const H=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),te=require("../../@babel/runtime/helpers/esm/extends.cjs"),i=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),oe=require("../../@babel/runtime/helpers/esm/typeof.cjs"),u=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const H=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),te=require("../../@babel/runtime/helpers/esm/extends.cjs"),i=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),oe=require("../../@babel/runtime/helpers/esm/typeof.cjs"),u=require("../../../_virtual/index4.cjs"),n=require("react"),T=require("./utils/commonUtils.cjs");var de=n.forwardRef(function(e,U){var p,x,y,$=e.inputElement,N=e.children,r=e.prefixCls,k=e.prefix,f=e.suffix,C=e.addonBefore,W=e.addonAfter,z=e.className,J=e.style,m=e.disabled,I=e.readOnly,K=e.focused,E=e.triggerFocus,d=e.allowClear,b=e.value,h=e.handleReset,L=e.hidden,t=e.classes,a=e.classNames,g=e.dataAttrs,o=e.styles,l=e.components,w=e.onClear,M=N??$,Q=l?.affixWrapper||"span",V=l?.groupWrapper||"span",X=l?.wrapper||"span",S=l?.groupAddon||"span",A=n.useRef(null),Y=function(s){var q;(q=A.current)!==null&&q!==void 0&&q.contains(s.target)&&E?.()},j=T.hasPrefixSuffix(e),c=n.cloneElement(M,{value:b,className:u.default((p=M.props)===null||p===void 0?void 0:p.className,!j&&a?.variant)||null}),B=n.useRef(null);if(n.useImperativeHandle(U,function(){return{nativeElement:B.current||A.current}}),j){var D=null;if(d){var Z=!m&&!I&&b,R="".concat(r,"-clear-icon"),P=oe.default(d)==="object"&&d!==null&&d!==void 0&&d.clearIcon?d.clearIcon:"✖";D=n.createElement("button",{type:"button",tabIndex:-1,onClick:function(s){h?.(s),w?.()},onMouseDown:function(s){return s.preventDefault()},className:u.default(R,i.default(i.default({},"".concat(R,"-hidden"),!Z),"".concat(R,"-has-suffix"),!!f))},P)}var v="".concat(r,"-affix-wrapper"),ee=u.default(v,i.default(i.default(i.default(i.default(i.default({},"".concat(r,"-disabled"),m),"".concat(v,"-disabled"),m),"".concat(v,"-focused"),K),"".concat(v,"-readonly"),I),"".concat(v,"-input-with-clear-btn"),f&&d&&b),t?.affixWrapper,a?.affixWrapper,a?.variant),ae=(f||d)&&n.createElement("span",{className:u.default("".concat(r,"-suffix"),a?.suffix),style:o?.suffix},D,f);c=n.createElement(Q,te.default({className:ee,style:o?.affixWrapper,onClick:Y},g?.affixWrapper,{ref:A}),k&&n.createElement("span",{className:u.default("".concat(r,"-prefix"),a?.prefix),style:o?.prefix},k),c,ae)}if(T.hasAddon(e)){var _="".concat(r,"-group"),O="".concat(_,"-addon"),F="".concat(_,"-wrapper"),ne=u.default("".concat(r,"-wrapper"),_,t?.wrapper,a?.wrapper),le=u.default(F,i.default({},"".concat(F,"-disabled"),m),t?.group,a?.groupWrapper);c=n.createElement(V,{className:le,ref:B},n.createElement(X,{className:ne},C&&n.createElement(S,{className:O},C),c,W&&n.createElement(S,{className:O},W)))}return n.cloneElement(c,{className:u.default((x=c.props)===null||x===void 0?void 0:x.className,z)||null,style:H.default(H.default({},(y=c.props)===null||y===void 0?void 0:y.style),J),hidden:L})});exports.default=de;
|
|
2
2
|
//# sourceMappingURL=BaseInput.cjs.map
|
|
@@ -2,7 +2,7 @@ import $ from "../../@babel/runtime/helpers/esm/objectSpread2.es.js";
|
|
|
2
2
|
import oe from "../../@babel/runtime/helpers/esm/extends.es.js";
|
|
3
3
|
import r from "../../@babel/runtime/helpers/esm/defineProperty.es.js";
|
|
4
4
|
import te from "../../@babel/runtime/helpers/esm/typeof.es.js";
|
|
5
|
-
import d from "../../../_virtual/index.
|
|
5
|
+
import d from "../../../_virtual/index.es4.js";
|
|
6
6
|
import l, { useRef as q, cloneElement as ie } from "react";
|
|
7
7
|
import { hasPrefixSuffix as re, hasAddon as de } from "./utils/commonUtils.es.js";
|
|
8
8
|
var xe = /* @__PURE__ */ l.forwardRef(function(e, z) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Y=require("../../@babel/runtime/helpers/esm/extends.cjs"),F=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),N=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),J=require("../../@babel/runtime/helpers/esm/typeof.cjs"),f=require("../../@babel/runtime/helpers/esm/slicedToArray.cjs"),K=require("../../@babel/runtime/helpers/esm/objectWithoutProperties.cjs"),Q=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Y=require("../../@babel/runtime/helpers/esm/extends.cjs"),F=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),N=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),J=require("../../@babel/runtime/helpers/esm/typeof.cjs"),f=require("../../@babel/runtime/helpers/esm/slicedToArray.cjs"),K=require("../../@babel/runtime/helpers/esm/objectWithoutProperties.cjs"),Q=require("../../../_virtual/index4.cjs"),ee=require("../../rc-resize-observer/es/index.cjs"),j=require("../../rc-util/es/hooks/useLayoutEffect.cjs"),te=require("../../rc-util/es/hooks/useMergedState.cjs"),w=require("../../rc-util/es/raf.cjs"),ae=require("react"),re=require("./calculateNodeHeight.cjs");function ne(n){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(o,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return o.default=n,Object.freeze(o)}const t=ne(ae);var ue=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],g=0,m=1,_=2,le=t.forwardRef(function(n,o){var e=n,s=e.prefixCls,O=e.defaultValue,p=e.value,a=e.autoSize,i=e.onResize,T=e.className,$=e.style,b=e.disabled,c=e.onChange,d=e.onInternalAutoSize,P=K.default(e,ue),V=te.default(O,{value:p,postState:function(r){return r??""}}),y=f.default(V,2),D=y[0],Z=y[1],H=function(r){Z(r.target.value),c?.(r)},S=t.useRef();t.useImperativeHandle(o,function(){return{textArea:S.current}});var L=t.useMemo(function(){return a&&J.default(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=f.default(L,2),q=E[0],x=E[1],R=!!a,k=t.useState(_),A=f.default(k,2),u=A[0],v=A[1],B=t.useState(),I=f.default(B,2),G=I[0],U=I[1],M=function(){v(g),process.env.NODE_ENV==="test"&&d?.()};j.default(function(){R&&M()},[p,q,x,R]),j.default(function(){if(u===g)v(m);else if(u===m){var l=re.default(S.current,!1,q,x);v(_),U(l)}},[u]);var h=t.useRef(),C=function(){w.default.cancel(h.current)},W=function(r){u===_&&(i?.(r),a&&(C(),h.current=w.default(function(){M()})))};t.useEffect(function(){return C},[]);var X=R?G:null,z=N.default(N.default({},$),X);return(u===g||u===m)&&(z.overflowY="hidden",z.overflowX="hidden"),t.createElement(ee.default,{onResize:W,disabled:!(a||i)},t.createElement("textarea",Y.default({},P,{ref:S,style:z,className:Q.default(s,T,F.default({},"".concat(s,"-disabled"),b)),disabled:b,value:D,onChange:H})))});exports.default=le;
|
|
2
2
|
//# sourceMappingURL=ResizableTextArea.cjs.map
|
|
@@ -4,7 +4,7 @@ import w from "../../@babel/runtime/helpers/esm/objectSpread2.es.js";
|
|
|
4
4
|
import J from "../../@babel/runtime/helpers/esm/typeof.es.js";
|
|
5
5
|
import s from "../../@babel/runtime/helpers/esm/slicedToArray.es.js";
|
|
6
6
|
import K from "../../@babel/runtime/helpers/esm/objectWithoutProperties.es.js";
|
|
7
|
-
import Q from "../../../_virtual/index.
|
|
7
|
+
import Q from "../../../_virtual/index.es4.js";
|
|
8
8
|
import ee from "../../rc-resize-observer/es/index.es.js";
|
|
9
9
|
import M from "../../rc-util/es/hooks/useLayoutEffect.es.js";
|
|
10
10
|
import te from "../../rc-util/es/hooks/useMergedState.es.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const be=require("../../@babel/runtime/helpers/esm/extends.cjs"),X=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),d=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),ze=require("../../@babel/runtime/helpers/esm/toConsumableArray.cjs"),x=require("../../@babel/runtime/helpers/esm/slicedToArray.cjs"),qe=require("../../@babel/runtime/helpers/esm/objectWithoutProperties.cjs"),g=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const be=require("../../@babel/runtime/helpers/esm/extends.cjs"),X=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),d=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),ze=require("../../@babel/runtime/helpers/esm/toConsumableArray.cjs"),x=require("../../@babel/runtime/helpers/esm/slicedToArray.cjs"),qe=require("../../@babel/runtime/helpers/esm/objectWithoutProperties.cjs"),g=require("../../../_virtual/index4.cjs"),Te=require("../../rc-input/es/BaseInput.cjs"),Ae=require("../../rc-util/es/hooks/useMergedState.cjs"),n=require("react"),Fe=require("../../rc-input/es/hooks/useCount.cjs"),Y=require("../../rc-input/es/utils/commonUtils.cjs"),Ne=require("./ResizableTextArea.cjs");var Oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],$e=n.forwardRef(function(t,Z){var C,B=t.defaultValue,_=t.value,p=t.onFocus,y=t.onBlur,L=t.onChange,R=t.allowClear,M=t.maxLength,S=t.onCompositionStart,w=t.onCompositionEnd,ee=t.suffix,P=t.prefixCls,s=P===void 0?"rc-textarea":P,E=t.showCount,te=t.count,ae=t.className,v=t.style,m=t.disabled,ne=t.hidden,l=t.classNames,i=t.styles,b=t.onResize,oe=t.onClear,D=t.onPressEnter,K=t.readOnly,V=t.autoSize,z=t.onKeyDown,le=qe.default(t,Oe),re=Ae.default(B,{value:_,defaultValue:B}),W=x.default(re,2),q=W[0],j=W[1],T=q==null?"":String(q),ue=n.useState(!1),k=x.default(ue,2),se=k[0],A=k[1],F=n.useRef(!1),ie=n.useState(null),H=x.default(ie,2),de=H[0],ce=H[1],U=n.useRef(null),N=n.useRef(null),r=function(){var e;return(e=N.current)===null||e===void 0?void 0:e.textArea},G=function(){r().focus()};n.useImperativeHandle(Z,function(){var a;return{resizableTextArea:N.current,focus:G,blur:function(){r().blur()},nativeElement:((a=U.current)===null||a===void 0?void 0:a.nativeElement)||r()}}),n.useEffect(function(){A(function(a){return!m&&a})},[m]);var fe=n.useState(null),J=x.default(fe,2),O=J[0],ve=J[1];n.useEffect(function(){if(O){var a;(a=r()).setSelectionRange.apply(a,ze.default(O))}},[O]);var o=Fe.default(te,E),c=(C=o.max)!==null&&C!==void 0?C:M,me=Number(c)>0,$=o.strategy(T),he=!!c&&$>c,Q=function(e,u){var h=u;!F.current&&o.exceedFormatter&&o.max&&o.strategy(u)>o.max&&(h=o.exceedFormatter(u,{max:o.max}),u!==h&&ve([r().selectionStart||0,r().selectionEnd||0])),j(h),Y.resolveOnChange(e.currentTarget,e,L,h)},xe=function(e){F.current=!0,S?.(e)},ge=function(e){F.current=!1,Q(e,e.currentTarget.value),w?.(e)},Ce=function(e){Q(e,e.target.value)},pe=function(e){e.key==="Enter"&&D&&D(e),z?.(e)},ye=function(e){A(!0),p?.(e)},Re=function(e){A(!1),y?.(e)},Se=function(e){j(""),G(),Y.resolveOnChange(r(),e,L)},I=ee,f;o.show&&(o.showFormatter?f=o.showFormatter({value:T,count:$,maxLength:c}):f="".concat($).concat(me?" / ".concat(c):""),I=n.createElement(n.Fragment,null,I,n.createElement("span",{className:g.default("".concat(s,"-data-count"),l?.count),style:i?.count},f)));var we=function(e){var u;b?.(e),(u=r())!==null&&u!==void 0&&u.style.height&&ce(!0)},Ee=!V&&!E&&!R;return n.createElement(Te.default,{ref:U,value:T,allowClear:R,handleReset:Se,suffix:I,prefixCls:s,classNames:d.default(d.default({},l),{},{affixWrapper:g.default(l?.affixWrapper,X.default(X.default({},"".concat(s,"-show-count"),E),"".concat(s,"-textarea-allow-clear"),R))}),disabled:m,focused:se,className:g.default(ae,he&&"".concat(s,"-out-of-range")),style:d.default(d.default({},v),de&&!Ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof f=="string"?f:void 0}},hidden:ne,readOnly:K,onClear:oe},n.createElement(Ne.default,be.default({},le,{autoSize:V,maxLength:M,onKeyDown:pe,onChange:Ce,onFocus:ye,onBlur:Re,onCompositionStart:xe,onCompositionEnd:ge,className:g.default(l?.textarea),style:d.default(d.default({},i?.textarea),{},{resize:v?.resize}),disabled:m,prefixCls:s,onResize:we,ref:N,readOnly:K})))});exports.default=$e;
|
|
2
2
|
//# sourceMappingURL=TextArea.cjs.map
|
|
@@ -4,7 +4,7 @@ import d from "../../@babel/runtime/helpers/esm/objectSpread2.es.js";
|
|
|
4
4
|
import Ae from "../../@babel/runtime/helpers/esm/toConsumableArray.es.js";
|
|
5
5
|
import x from "../../@babel/runtime/helpers/esm/slicedToArray.es.js";
|
|
6
6
|
import Fe from "../../@babel/runtime/helpers/esm/objectWithoutProperties.es.js";
|
|
7
|
-
import h from "../../../_virtual/index.
|
|
7
|
+
import h from "../../../_virtual/index.es4.js";
|
|
8
8
|
import Ne from "../../rc-input/es/BaseInput.es.js";
|
|
9
9
|
import Te from "../../rc-util/es/hooks/useMergedState.es.js";
|
|
10
10
|
import o, { useRef as Y, useImperativeHandle as $e, useEffect as Ie } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./TextArea.cjs");require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./TextArea.cjs");require("../../../_virtual/index4.cjs");require("../../rc-resize-observer/es/index.cjs");require("../../rc-util/es/hooks/useLayoutEffect.cjs");require("react");require("../../rc-util/es/raf.cjs");exports.default=e.default;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../../../_virtual/interaction-plugin-core.cjs"),P=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../../../_virtual/interaction-plugin-core.cjs"),P=require("../../../_virtual/index3.cjs"),b=require("./interaction-parser.cjs"),E=require("./escaping.cjs"),T=require("./interaction-syntax.cjs"),N=require("./variable-name.cjs");var v;function O(){if(v)return _.__exports;v=1,Object.defineProperty(_.__exports,"__esModule",{value:!0}),_.__exports.transformInteractionsInTree=q;const p=P.default,y=b.__require(),f=E.__require(),d=T.__require(),h=N.__require();function g(e,s,l,o,r){return[{type:"text",value:e.substring(0,s)},{type:"element",data:{hName:r,hProperties:o}},{type:"text",value:e.substring(l)}]}function m(e,s,l){const o=(0,f.readInteraction)(e);if(!o?.complete||o.end!==e.length)return null;const r=(0,h.trimVariablePadding)(o.content);if(r.startsWith("%{")&&!r.startsWith("%{{"))return null;try{return s.parse(e).error?null:s.parseToRemarkFormat(e)}catch(n){return console.warn(`Failed to parse ${l} syntax:`,n),null}}function q(e,s){const l=e.data,o=new y.InteractionParser;if(l?.[d.TOKENIZED_TREE]===!0){(0,p.visit)(e,d.VARIABLE_NODE,(r,n,a)=>{n===null||a===null||a.children.splice(n,1,{type:"text",value:r.value})}),(0,p.visit)(e,d.INTERACTION_NODE,(r,n,a)=>{if(n===null||a===null)return;const i=r.value,t=m(i,o,s);a.children.splice(n,1,t?{type:"element",data:{hName:"custom-variable",hProperties:t}}:{type:"text",value:i})});return}(0,p.visit)(e,"text",(r,n,a)=>{if(n===null||a===null)return;const i=r.value;let t=0;for(;t<i.length;){if(i.startsWith("{{",t)){const c=(0,h.readVariableMarker)(i,t);if(!c)return;t=c.end;continue}if(!i.startsWith("?[",t)){t+=1;continue}const u=(0,f.readInteraction)(i,t);if(!u){t+=2;continue}if(!u.complete)return;const I=i.slice(u.start,u.end);try{const c=m(I,o,s);if(!c){t=u.end;continue}const x=g(i,u.start,u.end,c,"custom-variable");a.children.splice(n,1,...x);return}catch(c){console.warn(`Failed to parse ${s} syntax:`,c);return}}})}return _.__exports}exports.__require=O;
|
|
2
2
|
//# sourceMappingURL=interaction-plugin-core.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exports as p } from "../../../_virtual/interaction-plugin-core.es.js";
|
|
2
|
-
import P from "../../../_virtual/index.
|
|
2
|
+
import P from "../../../_virtual/index.es3.js";
|
|
3
3
|
import { __require as x } from "./interaction-parser.es.js";
|
|
4
4
|
import { __require as b } from "./escaping.es.js";
|
|
5
5
|
import { __require as N } from "./interaction-syntax.es.js";
|