-
Notifications
You must be signed in to change notification settings - Fork 0
/
156.e1f1d57c.iframe.bundle.js
1 lines (1 loc) · 17.6 KB
/
156.e1f1d57c.iframe.bundle.js
1
"use strict";(self.webpackChunk_gsmlg_lit=self.webpackChunk_gsmlg_lit||[]).push([[156],{"../../common/temp/node_modules/.pnpm/mermaid@10.0.2/node_modules/mermaid/dist/classDiagram-4456d403.js":(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{diagram:()=>diagram});var _styles_0dd3ba1e_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../common/temp/node_modules/.pnpm/mermaid@10.0.2/node_modules/mermaid/dist/styles-0dd3ba1e.js"),d3__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../common/temp/node_modules/.pnpm/d3@7.8.2/node_modules/d3/src/index.js"),dagre_d3_es_src_dagre_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../common/temp/node_modules/.pnpm/dagre-d3-es@7.0.9/node_modules/dagre-d3-es/src/dagre/index.js"),dagre_d3_es_src_graphlib_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../common/temp/node_modules/.pnpm/dagre-d3-es@7.0.9/node_modules/dagre-d3-es/src/graphlib/index.js"),_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../common/temp/node_modules/.pnpm/mermaid@10.0.2/node_modules/mermaid/dist/config-389b86ff.js"),_svgDraw_6a237a99_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../common/temp/node_modules/.pnpm/mermaid@10.0.2/node_modules/mermaid/dist/svgDraw-6a237a99.js"),_setupGraphViewbox_e35e4124_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../common/temp/node_modules/.pnpm/mermaid@10.0.2/node_modules/mermaid/dist/setupGraphViewbox-e35e4124.js");__webpack_require__("../../common/temp/node_modules/.pnpm/@braintree+sanitize-url@6.0.2/node_modules/@braintree/sanitize-url/dist/index.js"),__webpack_require__("../../common/temp/node_modules/.pnpm/dompurify@2.4.3/node_modules/dompurify/dist/purify.js"),__webpack_require__("../../common/temp/node_modules/.pnpm/dayjs@1.11.7/node_modules/dayjs/dayjs.min.js");let idCache={};const getGraphId=function(label){const foundEntry=Object.entries(idCache).find((entry=>entry[1].label===label));if(foundEntry)return foundEntry[0]},renderer={draw:function(text,id,_version,diagObj){const conf=(0,_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.g)().class;idCache={},_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.l.info("Rendering diagram "+text);const securityLevel=(0,_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.g)().securityLevel;let sandboxElement;"sandbox"===securityLevel&&(sandboxElement=(0,d3__WEBPACK_IMPORTED_MODULE_0__.Ys)("#i"+id));const root="sandbox"===securityLevel?(0,d3__WEBPACK_IMPORTED_MODULE_0__.Ys)(sandboxElement.nodes()[0].contentDocument.body):(0,d3__WEBPACK_IMPORTED_MODULE_0__.Ys)("body"),diagram2=root.select(`[id='${id}']`);var elem;(elem=diagram2).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),elem.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),elem.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),elem.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),elem.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),elem.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),elem.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),elem.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");const g=new dagre_d3_es_src_graphlib_index_js__WEBPACK_IMPORTED_MODULE_2__.k({multigraph:!0});g.setGraph({isMultiGraph:!0}),g.setDefaultEdgeLabel((function(){return{}}));const classes=diagObj.db.getClasses(),keys=Object.keys(classes);for(const key of keys){const classDef=classes[key],node=_svgDraw_6a237a99_js__WEBPACK_IMPORTED_MODULE_7__.s.drawClass(diagram2,classDef,conf,diagObj);idCache[node.id]=node,g.setNode(node.id,node),_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.l.info("Org height: "+node.height)}diagObj.db.getRelations().forEach((function(relation){_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.l.info("tjoho"+getGraphId(relation.id1)+getGraphId(relation.id2)+JSON.stringify(relation)),g.setEdge(getGraphId(relation.id1),getGraphId(relation.id2),{relation},relation.title||"DEFAULT")}));diagObj.db.getNotes().forEach((function(note){_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.l.debug(`Adding note: ${JSON.stringify(note)}`);const node=_svgDraw_6a237a99_js__WEBPACK_IMPORTED_MODULE_7__.s.drawNote(diagram2,note,conf,diagObj);idCache[node.id]=node,g.setNode(node.id,node),note.class&¬e.class in classes&&g.setEdge(note.id,getGraphId(note.class),{relation:{id1:note.id,id2:note.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),(0,dagre_d3_es_src_dagre_index_js__WEBPACK_IMPORTED_MODULE_1__.bK)(g),g.nodes().forEach((function(v){void 0!==v&&void 0!==g.node(v)&&(_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.l.debug("Node "+v+": "+JSON.stringify(g.node(v))),root.select("#"+(diagObj.db.lookUpDomId(v)||v)).attr("transform","translate("+(g.node(v).x-g.node(v).width/2)+","+(g.node(v).y-g.node(v).height/2)+" )"))})),g.edges().forEach((function(e){void 0!==e&&void 0!==g.edge(e)&&(_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.l.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(g.edge(e))),_svgDraw_6a237a99_js__WEBPACK_IMPORTED_MODULE_7__.s.drawEdge(diagram2,g.edge(e),g.edge(e).relation,conf,diagObj))}));const svgBounds=diagram2.node().getBBox(),width=svgBounds.width+40,height=svgBounds.height+40;(0,_setupGraphViewbox_e35e4124_js__WEBPACK_IMPORTED_MODULE_8__.c)(diagram2,height,width,conf.useMaxWidth);const vBox=`${svgBounds.x-20} ${svgBounds.y-20} ${width} ${height}`;_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_6__.l.debug(`viewBox ${vBox}`),diagram2.attr("viewBox",vBox)}},diagram={parser:_styles_0dd3ba1e_js__WEBPACK_IMPORTED_MODULE_9__.p,db:_styles_0dd3ba1e_js__WEBPACK_IMPORTED_MODULE_9__.d,renderer,styles:_styles_0dd3ba1e_js__WEBPACK_IMPORTED_MODULE_9__.s,init:cnf=>{cnf.class||(cnf.class={}),cnf.class.arrowMarkerAbsolute=cnf.arrowMarkerAbsolute,_styles_0dd3ba1e_js__WEBPACK_IMPORTED_MODULE_9__.d.clear()}}},"../../common/temp/node_modules/.pnpm/mermaid@10.0.2/node_modules/mermaid/dist/svgDraw-6a237a99.js":(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{p:()=>parseMember,s:()=>svgDraw});var d3__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../common/temp/node_modules/.pnpm/d3@7.8.2/node_modules/d3/src/index.js"),_utils_d5eeff82_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../common/temp/node_modules/.pnpm/mermaid@10.0.2/node_modules/mermaid/dist/utils-d5eeff82.js"),_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../common/temp/node_modules/.pnpm/mermaid@10.0.2/node_modules/mermaid/dist/config-389b86ff.js");let edgeCount=0;const parseMember=function(text){let fieldMatch=text.match(/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/),methodMatch=text.match(/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/);return fieldMatch&&!methodMatch?buildFieldDisplay(fieldMatch):methodMatch?buildMethodDisplay(methodMatch):buildLegacyDisplay(text)},buildFieldDisplay=function(parsedText){let cssStyle="",displayText="";try{let visibility=parsedText[1]?parsedText[1].trim():"",fieldType=parsedText[2]?parsedText[2].trim():"",genericType=parsedText[3]?(0,_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.p)(parsedText[3].trim()):"",fieldName=parsedText[4]?parsedText[4].trim():"",classifier=parsedText[5]?parsedText[5].trim():"";displayText=visibility+fieldType+genericType+" "+fieldName,cssStyle=parseClassifier(classifier)}catch(err){displayText=parsedText}return{displayText,cssStyle}},buildMethodDisplay=function(parsedText){let cssStyle="",displayText="";try{let visibility=parsedText[1]?parsedText[1].trim():"",methodName=parsedText[2]?parsedText[2].trim():"",parameters=parsedText[3]?(0,_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.p)(parsedText[3].trim()):"",classifier=parsedText[4]?parsedText[4].trim():"";displayText=visibility+methodName+"("+parameters+")"+(parsedText[5]?" : "+(0,_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.p)(parsedText[5]).trim():""),cssStyle=parseClassifier(classifier)}catch(err){displayText=parsedText}return{displayText,cssStyle}},buildLegacyDisplay=function(text){let displayText="",cssStyle="",returnType="",methodStart=text.indexOf("("),methodEnd=text.indexOf(")");if(methodStart>1&&methodEnd>methodStart&&methodEnd<=text.length){let visibility="",methodName="",firstChar=text.substring(0,1);firstChar.match(/\w/)?methodName=text.substring(0,methodStart).trim():(firstChar.match(/[#+~-]/)&&(visibility=firstChar),methodName=text.substring(1,methodStart).trim());const parameters=text.substring(methodStart+1,methodEnd);text.substring(methodEnd+1,1),cssStyle=parseClassifier(text.substring(methodEnd+1,methodEnd+2)),displayText=visibility+methodName+"("+(0,_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.p)(parameters.trim())+")",methodEnd<text.length&&(returnType=text.substring(methodEnd+2).trim(),""!==returnType&&(returnType=" : "+(0,_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.p)(returnType),displayText+=returnType))}else displayText=(0,_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.p)(text);return{displayText,cssStyle}},addTspan=function(textEl,txt,isFirst,conf){let member=parseMember(txt);const tSpan=textEl.append("tspan").attr("x",conf.padding).text(member.displayText);""!==member.cssStyle&&tSpan.attr("style",member.cssStyle),isFirst||tSpan.attr("dy",conf.textHeight)},parseClassifier=function(classifier){switch(classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},svgDraw={drawClass:function(elem,classDef,conf,diagObj){_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.l.debug("Rendering class ",classDef,conf);const id=classDef.id,classInfo={id,label:classDef.id,width:0,height:0},g=elem.append("g").attr("id",diagObj.db.lookUpDomId(id)).attr("class","classGroup");let title;title=classDef.link?g.append("svg:a").attr("xlink:href",classDef.link).attr("target",classDef.linkTarget).append("text").attr("y",conf.textHeight+conf.padding).attr("x",0):g.append("text").attr("y",conf.textHeight+conf.padding).attr("x",0);let isFirst=!0;classDef.annotations.forEach((function(member){const titleText2=title.append("tspan").text("«"+member+"»");isFirst||titleText2.attr("dy",conf.textHeight),isFirst=!1}));let classTitleString=classDef.id;void 0!==classDef.type&&""!==classDef.type&&(classTitleString+="<"+classDef.type+">");const classTitle=title.append("tspan").text(classTitleString).attr("class","title");isFirst||classTitle.attr("dy",conf.textHeight);const titleHeight=title.node().getBBox().height,membersLine=g.append("line").attr("x1",0).attr("y1",conf.padding+titleHeight+conf.dividerMargin/2).attr("y2",conf.padding+titleHeight+conf.dividerMargin/2),members=g.append("text").attr("x",conf.padding).attr("y",titleHeight+conf.dividerMargin+conf.textHeight).attr("fill","white").attr("class","classText");isFirst=!0,classDef.members.forEach((function(member){addTspan(members,member,isFirst,conf),isFirst=!1}));const membersBox=members.node().getBBox(),methodsLine=g.append("line").attr("x1",0).attr("y1",conf.padding+titleHeight+conf.dividerMargin+membersBox.height).attr("y2",conf.padding+titleHeight+conf.dividerMargin+membersBox.height),methods=g.append("text").attr("x",conf.padding).attr("y",titleHeight+2*conf.dividerMargin+membersBox.height+conf.textHeight).attr("fill","white").attr("class","classText");isFirst=!0,classDef.methods.forEach((function(method){addTspan(methods,method,isFirst,conf),isFirst=!1}));const classBox=g.node().getBBox();var cssClassStr=" ";classDef.cssClasses.length>0&&(cssClassStr+=classDef.cssClasses.join(" "));const rectWidth=g.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",classBox.width+2*conf.padding).attr("height",classBox.height+conf.padding+.5*conf.dividerMargin).attr("class",cssClassStr).node().getBBox().width;return title.node().childNodes.forEach((function(x){x.setAttribute("x",(rectWidth-x.getBBox().width)/2)})),classDef.tooltip&&title.insert("title").text(classDef.tooltip),membersLine.attr("x2",rectWidth),methodsLine.attr("x2",rectWidth),classInfo.width=rectWidth,classInfo.height=classBox.height+conf.padding+.5*conf.dividerMargin,classInfo},drawEdge:function(elem,path,relation,conf,diagObj){const getRelationType=function(type){switch(type){case diagObj.db.relationType.AGGREGATION:return"aggregation";case diagObj.db.relationType.EXTENSION:return"extension";case diagObj.db.relationType.COMPOSITION:return"composition";case diagObj.db.relationType.DEPENDENCY:return"dependency";case diagObj.db.relationType.LOLLIPOP:return"lollipop"}};path.points=path.points.filter((p=>!Number.isNaN(p.y)));const lineData=path.points,lineFunction=(0,d3__WEBPACK_IMPORTED_MODULE_0__.jvg)().x((function(d){return d.x})).y((function(d){return d.y})).curve(d3__WEBPACK_IMPORTED_MODULE_0__.$0Z),svgPath=elem.append("path").attr("d",lineFunction(lineData)).attr("id","edge"+edgeCount).attr("class","relation");let x,y,url="";conf.arrowMarkerAbsolute&&(url=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,url=url.replace(/\(/g,"\\("),url=url.replace(/\)/g,"\\)")),1==relation.relation.lineType&&svgPath.attr("class","relation dashed-line"),10==relation.relation.lineType&&svgPath.attr("class","relation dotted-line"),"none"!==relation.relation.type1&&svgPath.attr("marker-start","url("+url+"#"+getRelationType(relation.relation.type1)+"Start)"),"none"!==relation.relation.type2&&svgPath.attr("marker-end","url("+url+"#"+getRelationType(relation.relation.type2)+"End)");const l=path.points.length;let p1_card_x,p1_card_y,p2_card_x,p2_card_y,labelPosition=_utils_d5eeff82_js__WEBPACK_IMPORTED_MODULE_1__.u.calcLabelPosition(path.points);if(x=labelPosition.x,y=labelPosition.y,l%2!=0&&l>1){let cardinality_1_point=_utils_d5eeff82_js__WEBPACK_IMPORTED_MODULE_1__.u.calcCardinalityPosition("none"!==relation.relation.type1,path.points,path.points[0]),cardinality_2_point=_utils_d5eeff82_js__WEBPACK_IMPORTED_MODULE_1__.u.calcCardinalityPosition("none"!==relation.relation.type2,path.points,path.points[l-1]);_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.l.debug("cardinality_1_point "+JSON.stringify(cardinality_1_point)),_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.l.debug("cardinality_2_point "+JSON.stringify(cardinality_2_point)),p1_card_x=cardinality_1_point.x,p1_card_y=cardinality_1_point.y,p2_card_x=cardinality_2_point.x,p2_card_y=cardinality_2_point.y}if(void 0!==relation.title){const g=elem.append("g").attr("class","classLabel"),label=g.append("text").attr("class","label").attr("x",x).attr("y",y).attr("fill","red").attr("text-anchor","middle").text(relation.title);window.label=label;const bounds=label.node().getBBox();g.insert("rect",":first-child").attr("class","box").attr("x",bounds.x-conf.padding/2).attr("y",bounds.y-conf.padding/2).attr("width",bounds.width+conf.padding).attr("height",bounds.height+conf.padding)}if(_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.l.info("Rendering relation "+JSON.stringify(relation)),void 0!==relation.relationTitle1&&"none"!==relation.relationTitle1){elem.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",p1_card_x).attr("y",p1_card_y).attr("fill","black").attr("font-size","6").text(relation.relationTitle1)}if(void 0!==relation.relationTitle2&&"none"!==relation.relationTitle2){elem.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",p2_card_x).attr("y",p2_card_y).attr("fill","black").attr("font-size","6").text(relation.relationTitle2)}edgeCount++},drawNote:function(elem,note,conf,diagObj){_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.l.debug("Rendering note ",note,conf);const id=note.id,noteInfo={id,text:note.text,width:0,height:0},g=elem.append("g").attr("id",id).attr("class","classGroup");let text=g.append("text").attr("y",conf.textHeight+conf.padding).attr("x",0);const lines=JSON.parse(`"${note.text}"`).split("\n");lines.forEach((function(line2){_config_389b86ff_js__WEBPACK_IMPORTED_MODULE_2__.l.debug(`Adding line: ${line2}`),text.append("tspan").text(line2).attr("class","title").attr("dy",conf.textHeight)}));const noteBox=g.node().getBBox(),rectWidth=g.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",noteBox.width+2*conf.padding).attr("height",noteBox.height+lines.length*conf.textHeight+conf.padding+.5*conf.dividerMargin).node().getBBox().width;return text.node().childNodes.forEach((function(x){x.setAttribute("x",(rectWidth-x.getBBox().width)/2)})),noteInfo.width=rectWidth,noteInfo.height=noteBox.height+lines.length*conf.textHeight+conf.padding+.5*conf.dividerMargin,noteInfo},parseMember}}}]);