diff --git a/ChangeLog b/ChangeLog index b276a29e..85d6ba03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +02-DEC-2020: 13.10.6 + +- Adds auto-crop, origin for visible layers [688] +- Improves Lucidchart import + 01-DEC-2020: 13.10.5 - Uses mxGraph 4.2.3 beta 6 diff --git a/VERSION b/VERSION index f70f014e..f725cbdf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -13.10.5 \ No newline at end of file +13.10.6 \ No newline at end of file diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index 2b855927..3f29a2fe 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -2687,7 +2687,7 @@ Sidebar.prototype.addPalette=function(a,c,b,d){c=this.createTitle(c);this.contai Sidebar.prototype.addFoldingHandler=function(a,c,b){var d=!1;if(!mxClient.IS_IE||8<=document.documentMode)a.style.backgroundImage="none"==c.style.display?"url('"+this.collapsedImage+"')":"url('"+this.expandedImage+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="0% 50%";mxEvent.addListener(a,"click",mxUtils.bind(this,function(e){if("none"==c.style.display){if(d)c.style.display="block";else if(d=!0,null!=b){a.style.cursor="wait";var f=a.innerHTML;a.innerHTML=mxResources.get("loading")+ "...";window.setTimeout(function(){c.style.display="block";a.style.cursor="";a.innerHTML=f;var d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;b(c,a);mxClient.NO_FO=d},mxClient.IS_FF?20:0)}else c.style.display="block";a.style.backgroundImage="url('"+this.expandedImage+"')"}else a.style.backgroundImage="url('"+this.collapsedImage+"')",c.style.display="none";mxEvent.consume(e)}));mxClient.IS_QUIRKS||mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this, function(a){a.preventDefault()}))};Sidebar.prototype.removePalette=function(a){var c=this.palettes[a];if(null!=c){this.palettes[a]=null;for(a=0;amxUtils.indexOf(e,b)){c=this.getTagsForStencil(a,b);var l=null!=h?h[b]:null;null!=l&&c.push(l);n.push(this.createVertexTemplateEntry("shape="+a+b.toLowerCase()+d,Math.round(f*g),Math.round(k*g),"",b.replace(/_/g," "),null,null,this.filterTags(c.join(" "))))}}), !0,!0);this.addPaletteFunctions(a,c,!1,n)}else this.addPalette(a,c,!1,mxUtils.bind(this,function(a){null==d&&(d="");null!=f&&f.call(this,a);if(null!=k)for(var c=0;cmxUtils.indexOf(e,c))&&a.appendChild(this.createVertexTemplate("shape="+b+c.toLowerCase()+d,Math.round(h*g),Math.round(k*g),"",c.replace(/_/g," "),!0))}),!0)}))}; @@ -2699,22 +2699,22 @@ mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphMo mxGraphView.prototype.unit=mxConstants.POINTS;mxGraphView.prototype.setUnit=function(a){this.unit!=a&&(this.unit=a,this.fireEvent(new mxEventObject("unitChanged","unit",a)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(a,c,b){return null}; Graph=function(a,c,b,d,e,f){mxGraph.call(this,a,c,b,d);this.themes=e||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=f?f:!1;a=this.baseUrl;c=a.indexOf("//");this.domainPathUrl=this.domainUrl="";0d||Math.abs(g.y-b.getGraphY())>d){var f=this.selectionCellsHandler.getHandler(c.cell);null==f&&this.model.isEdge(c.cell)&&(f=this.createHandler(c));if(null!=f&&null!=f.bends&&0d||Math.abs(g.y-b.getGraphY())>d){var e=this.selectionCellsHandler.getHandler(c.cell);null==e&&this.model.isEdge(c.cell)&&(e=this.createHandler(c));if(null!=e&&null!=e.bends&&0m?"a":"p",tt:12>m?"am":"pm",T:12>m?"A":"P",TT:12>m?"AM":"PM",Z:b?"UTC":(String(a).match(e)||[""]).pop().replace(f,""),o:(0e&&"%"==c.charAt(match.index-1))g=f.substring(1);else{var h=f.substring(1,f.length-1);if("id"==h)g=a.id;else if(0>h.indexOf("{"))for(var k=a;null==g&&null!=k;)null!=k.value&&"object"==typeof k.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=k.getAttribute(h+"_"+Graph.diagramLanguage)), null==g&&(g=k.hasAttribute(h)?null!=k.getAttribute(h)?k.getAttribute(h):"":null)),k=this.model.getParent(k);null==g&&(g=this.getGlobalVariable(h));null==g&&null!=b&&(g=b[h])}d.push(c.substring(e,match.index)+(null!=g?g:f));e=match.index+f.length}}d.push(c.substring(e))}return d.join("")};Graph.prototype.restoreSelection=function(a){if(null!=a&&0
')))}catch(L){}})(); (function(){var a=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);a.beforeDecode=function(a,c,b){b.ui=a.ui;return c};a.afterDecode=function(a,c,b){b.previousColor=b.color;b.previousImage=b.image;b.previousFormat=b.format;null!=b.foldingEnabled&&(b.foldingEnabled=!b.foldingEnabled);null!=b.mathEnabled&&(b.mathEnabled=!b.mathEnabled);null!=b.shadowVisible&&(b.shadowVisible=!b.shadowVisible);return b};mxCodecRegistry.register(a)})(); -(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);a.beforeDecode=function(a,c,b){b.ui=a.ui;return c};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="13.10.5";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL; +(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);a.beforeDecode=function(a,c,b){b.ui=a.ui;return c};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="13.10.6";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL; EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl="1"==urlParams.dev?"/cache":window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron; EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://desk.draw.io/support/solutions/articles/16000042367";EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1}, gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.logError=function(a,b,c,d,f,g,l){g=null!=g?g:0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";if(EditorUi.enableLogging&&"1"!=urlParams.dev)try{if(a!=EditorUi.lastErrorMessage&&(null==a||null==b||-1==a.indexOf("Script error")&& diff --git a/src/main/webapp/js/diagramly/Extensions.js b/src/main/webapp/js/diagramly/Extensions.js index e7087c76..4972429d 100644 --- a/src/main/webapp/js/diagramly/Extensions.js +++ b/src/main/webapp/js/diagramly/Extensions.js @@ -87,7 +87,7 @@ LucidImporter = {}; 'PreparationBlock': 'shape=hexagon;perimeter=hexagonPerimeter2', 'DataBlock': 'shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0', 'DataBlockNew': 'shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0', - 'DatabaseBlock': 'shape=cylinder3;size=10;anchorPointDirection=0;boundedLbl=1;', + 'DatabaseBlock': 'shape=cylinder3;size=4;anchorPointDirection=0;boundedLbl=1;', 'DirectAccessStorageBlock': 'shape=cylinder3;direction=south;size=10;anchorPointDirection=0;boundedLbl=1;', 'InternalStorageBlock': 'shape=internalStorage;dx=10;dy=10', 'PaperTapeBlock': 'shape=tape;size=0.2', @@ -3810,7 +3810,7 @@ LucidImporter = {}; function convertTxt2Html(txt, srcM, props) { var blockStyles = {'a': true, 'il': true, 'ir': true, 'mt': true, 'mb': true, 'p': true, 't': true, 'l': true}; - var nonBlockStyles = {'lk': true, 's': true, 'c': true, 'b': true, 'fc': true, 'i': true, 'u': true, 'k': true, 'f': true}; + var nonBlockStyles = {'lk': true, 's': true, 'c': true, 'b': true, 'fc': true, 'i': true, 'u': true, 'k': true, 'f': true, 'ac': true}; srcM.sort(function(a, b) { @@ -3822,6 +3822,12 @@ LucidImporter = {}; return nonBlockStyles[m.n]; }); + //To prevent losing begining of a label when first one is not at zero (links case) + if (m[0] && m[0].s != 0) + { + m.unshift({s: 0, n: 'dummy', v: '', e: m[0].s}); + } + var globalStyles = srcM.filter(function(m) { return blockStyles[m.n]; @@ -4071,6 +4077,11 @@ LucidImporter = {}; str += 'font-style: italic;'; } + if (styles['ac'] && styles['ac'].v) + { + str += 'text-transform: uppercase;'; + } + var fontFamily = null; if (styles['f']) @@ -4167,12 +4178,12 @@ LucidImporter = {}; if (k < globalStyles.length) { var bs = globalStyles[k], curBS = globalStyles[k].s; - + if (blockActive) { curBlockStyles = {}; - html += endTag(txt, maxE, curS, true); //End any open tag - curS = maxE; + html += endTag(txt, curS, maxE, true); //End any open tag + curE = curS = maxE; html += endBlockTag(); } @@ -4207,14 +4218,15 @@ LucidImporter = {}; if (s && e && s.s < e.e) //s can be null when all starts are used, e ends after s BUT sometimes there are errors in the file { - if (s.s > maxE) break; + if (s.s >= maxE) break; curS = s.s; if (curS - curE > 0) { //NOTE: After the fix in end where we add dummy start and end, this shouldn't be called //End any open tag and add remaining text with current style - html += startTag(curStyles) + endTag(txt, curE, curS); + html += startTag(curStyles) + endTag(txt, curE, curS); + curE = curS; } while(s != null && s.s == curS) @@ -4334,7 +4346,7 @@ LucidImporter = {}; { for (var i = 0; i < m.length; i++) { - if (m[i].s > 0 || (m[i].e != null && m[i].e < txt.length) || m[i].n == 't') + if (m[i].s > 0 || (m[i].e != null && m[i].e < txt.length) || m[i].n == 't' || m[i].n == 'ac') { isLastLblHTML = true; break; @@ -5327,7 +5339,8 @@ LucidImporter = {}; { graph.setAttributeForCell(cell, 'link', getLink(p.Link[0])); } - else if (p.Text != null) + //If the text has a link, it will be handled by html labels + /*else if (p.Text != null) { var link = getLinkFromM(getTextM(p.Text)); @@ -5335,7 +5348,7 @@ LucidImporter = {}; { graph.setAttributeForCell(cell, 'link', link); } - } + }*/ replacePlaceholders(cell, graph); diff --git a/src/main/webapp/js/diagramly/GraphViewer.js b/src/main/webapp/js/diagramly/GraphViewer.js index 83ed4f6f..19c6f505 100644 --- a/src/main/webapp/js/diagramly/GraphViewer.js +++ b/src/main/webapp/js/diagramly/GraphViewer.js @@ -3,7 +3,7 @@ */ /** * No CSS and resources available in embed mode. Parameters and docs: - * https://desk.draw.io/solution/articles/16000042542-how-to-embed-html- + * https://www.diagrams.net/doc/faq/embed-html-options */ GraphViewer = function(container, xmlNode, graphConfig) { @@ -48,6 +48,11 @@ GraphViewer.prototype.toolbarZIndex = 999; */ GraphViewer.prototype.autoFit = false; +/** + * If automatic crop should be enabled when layers are toggled. Default is false. + */ +GraphViewer.prototype.autoCrop = false; + /** * If the diagram should be centered. Default is false. */ @@ -102,6 +107,8 @@ GraphViewer.prototype.init = function(container, xmlNode, graphConfig) this.graphConfig = (graphConfig != null) ? graphConfig : {}; this.autoFit = (this.graphConfig['auto-fit'] != null) ? this.graphConfig['auto-fit'] : this.autoFit; + this.autoCrop = (this.graphConfig['auto-crop'] != null) ? + this.graphConfig['auto-crop'] : this.autoCrop; this.allowZoomOut = (this.graphConfig['allow-zoom-out'] != null) ? this.graphConfig['allow-zoom-out'] : this.allowZoomOut; this.allowZoomIn = (this.graphConfig['allow-zoom-in'] != null) ? @@ -378,8 +385,13 @@ GraphViewer.prototype.init = function(container, xmlNode, graphConfig) { this.addSizeHandler(); } - - this.showLayers(this.graph); + + // Crops to visible layers if no layers toolbar button + if (this.showLayers(this.graph) && (!this.layersEnabled || this.autoCrop)) + { + this.crop(); + } + this.addClickHandler(this.graph); this.graph.setTooltips(this.graphConfig.tooltips != false); this.graph.initialViewState = { @@ -828,6 +840,21 @@ GraphViewer.prototype.addSizeHandler = function() }; }; +/** + * Moves the origin of the graph to the top, right corner. + */ +GraphViewer.prototype.crop = function() +{ + var graph = this.graph; + var bounds = graph.getGraphBounds(); + var border = graph.border; + var s = graph.view.scale; + var x0 = (bounds.x != null) ? Math.floor(graph.view.translate.x - bounds.x / s + border) : border; + var y0 = (bounds.y != null) ? Math.floor(graph.view.translate.y - bounds.y / s + border) : border; + + graph.view.setTranslate(x0, y0); +}; + /** * */ @@ -857,6 +884,7 @@ GraphViewer.prototype.showLayers = function(graph, sourceGraph) var idx = (layers != null) ? layers.split(' ') : []; var layerIds = this.graphConfig.layerIds; var hasLayerIds = layerIds != null && layerIds.length > 0; + var result = false; if (idx.length > 0 || hasLayerIds || sourceGraph != null) { @@ -898,7 +926,11 @@ GraphViewer.prototype.showLayers = function(graph, sourceGraph) { model.endUpdate(); } + + result = true; } + + return result; }; /** @@ -1199,7 +1231,13 @@ GraphViewer.prototype.addToolbar = function() } else { - layersDialog = this.graph.createLayersDialog(); + layersDialog = this.graph.createLayersDialog(mxUtils.bind(this, function() + { + if (this.autoCrop) + { + this.crop(); + } + })); mxEvent.addListener(layersDialog, 'mouseleave', function() { diff --git a/src/main/webapp/js/diagramly/sidebar/Sidebar-Advanced.js b/src/main/webapp/js/diagramly/sidebar/Sidebar-Advanced.js index 3ece6278..7ba52d76 100644 --- a/src/main/webapp/js/diagramly/sidebar/Sidebar-Advanced.js +++ b/src/main/webapp/js/diagramly/sidebar/Sidebar-Advanced.js @@ -55,7 +55,7 @@ flow4.insertEdge(edge, false); flow.insert(edge); - return fns.concat( + fns = fns.concat( [ this.addDataEntry('container swimlane pool horizontal', 480, 380, 'Horizontal Pool 1', 'zZRLbsIwEIZP4709TlHXhJYNSEicwCIjbNWJkWNKwumZxA6IlrRUaisWlmb+eX8LM5mXzdyrnV66Ai2TL0zm3rkQrbLJ0VoG3BRMzhgAp8fgdSQq+ijfKY9VuKcAYsG7snuMyso5G8U6tDaJ9cGUVlXkTXUoacuZIHOjjS0WqnX7blYd1OZt8KYea3PE1bCI+CAtVUMq7/o5b46uCmroSn18WFMm+XCdse5GpLq0OPqAzejxvZQun6MrMfiWUg6mCDpmZM8RENdotjqVyUFUdRS259oLSzISztto5Se0i44gcHEn3i9A/IQB3GbQpmi69DskAn4BSTaGBB4Jicj+k8nTGBP5SExg8odMyL38eH3s6kM8AQ=='), @@ -86,5 +86,7 @@ ]); this.setCurrentSearchEntryLibrary(); + + return fns; }; })(); diff --git a/src/main/webapp/js/diagramly/sidebar/Sidebar-Bootstrap.js b/src/main/webapp/js/diagramly/sidebar/Sidebar-Bootstrap.js index 01e29a5a..f53844f6 100644 --- a/src/main/webapp/js/diagramly/sidebar/Sidebar-Bootstrap.js +++ b/src/main/webapp/js/diagramly/sidebar/Sidebar-Bootstrap.js @@ -2521,7 +2521,7 @@ item1.vertex = true; var item2 = new mxCell('Mark', new mxGeometry(0, 30, 260, 40), s + 'rrect;rSize=5;fillColor=#ffffff;strokeColor=#CED4DA;align=left;spacing=15;fontSize=14;fontColor=#6C767D;'); item2.vertex = true; - var item3 = new mxCell('Last name', new mxGeometry(270, 00, 100, 30), 'fillColor=none;strokeColor=none;align=left;fontSize=14;'); + var item3 = new mxCell('Last name', new mxGeometry(270, 0, 100, 30), 'fillColor=none;strokeColor=none;align=left;fontSize=14;'); item3.vertex = true; var item4 = new mxCell('Otto', new mxGeometry(270, 30, 260, 40), s + 'rrect;rSize=5;fillColor=#ffffff;strokeColor=#CED4DA;align=left;spacing=15;fontSize=14;fontColor=#6C767D;'); item4.vertex = true; diff --git a/src/main/webapp/js/diagramly/sidebar/Sidebar-MSCAE.js b/src/main/webapp/js/diagramly/sidebar/Sidebar-MSCAE.js index 89144cc4..b6d18f6e 100644 --- a/src/main/webapp/js/diagramly/sidebar/Sidebar-MSCAE.js +++ b/src/main/webapp/js/diagramly/sidebar/Sidebar-MSCAE.js @@ -866,7 +866,7 @@ r * 0.5, r * 0.5, '', 'Azure DevOps', null, null, this.getTagsForStencil(gn, 'azure devops', dt).join(' ')), this.createVertexTemplateEntry(s + 'DevTest_Labs.svg;', r * 0.5, r * 0.5, '', 'Azure DevTest Labs', null, null, this.getTagsForStencil(gn, 'azure devtest labs', dt).join(' ')), - this.createVertexTemplateEntry(s + 'Azure_Pipelines .svg;', + this.createVertexTemplateEntry(s + 'Azure_Pipelines.svg;', r * 0.5, r * 0.5, '', 'Azure Pipelines', null, null, this.getTagsForStencil(gn, 'azure pipelines', dt).join(' ')), this.createVertexTemplateEntry(s + 'Azure_Repos.svg;', r * 0.45, r * 0.5, '', 'Azure Repos', null, null, this.getTagsForStencil(gn, 'azure repos', dt).join(' ')), diff --git a/src/main/webapp/js/extensions.min.js b/src/main/webapp/js/extensions.min.js index f7fd8cfe..eea39e58 100644 --- a/src/main/webapp/js/extensions.min.js +++ b/src/main/webapp/js/extensions.min.js @@ -1,68 +1,68 @@ LucidImporter={}; -(function(){function c(a,b,d){function n(a,b){var k="",n=a.t,e=a.l||{};if(null==n||0!=E&&E==n.v&&l==e.v)null==n&&(E&&(k+=c(!0),E=!1),k+='
',Ua.push("li"),k+='',B.push("a"),n++)}b+='"}while(0/g,">");do for(b=y.pop(),d=0;d"}while(k&&0f[m])b.splice(da,0,{s:f[m],n:"a",v:d.TextAlign||"center"});else{for(var C=0;da+C=C&&(daL)break;db=U.s;for(0L)break;H=F.e;do delete D[F.n],F=m[++C];while(null!=F&&F.e==H);f+=w(a,db,H);db=H;0!=y.length||null!=U&&U.s==H||(x.splice(da,0,{s:H,n:"dummy",v:""}),m.splice(C,0,{e:U?U.s:L,n:"dummy",v:""}))}else break}f+= -w(null,null,null,!0);S&&(f+=c(!0));return f}function f(a,b){y=!1;var d=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==d&&null!=a.State?null!=a.State.t&&(d=a.State):null==d&&null!=a.Note?null!=a.Note.t&&(d=a.Note):null==d&&null!=a.Title?null!=a.Title.t&&(d=a.Title):null!=a.t&&(d=a);null==d&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(d=a.TextAreas.Text.Value):null==d&&null!=a.t0&&null!=a.t0.t&&(d=a.t0);if(null!=d){if(null!=d.t){var k= -d.t,k=k.replace(/\u2028/g,"\n"),d=d.m;try{for(var n=0;n/g,">")}if(null!=d.Value&&null!=d.Value.t)return d.Value.t=d.Value.t.replace(//g,">"),d.Value.t}return""}function m(a){return null!=a.Action?a.Action:a}function p(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!= -a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else{if(null!=a.m)return a.m;if(null!=a.Title&&null!=a.Title.m)return a.Title.m}return null}function g(b,k){return"whiteSpace=wrap;"+(k?"overflow=block;html=1;fontSize=11;":a(b)+d(b)+n(b)+w(b)+z(b)+C(b)+D(b)+A(b)+B(b))+E(b)+F(b)+Va(mxConstants.STYLE_ALIGN,b.TextAlign,"center")}function e(a,d,k,n,e){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+= -"whiteSpace=wrap;"+(e?(wc(a,"overflow")?"":"overflow=block;")+(wc(a,"html")?"":"html=1;")+"fontSize=11;":b(mxConstants.STYLE_FONTSIZE,a,d,k,n)+b(mxConstants.STYLE_FONTFAMILY,a,d,k,n)+b(mxConstants.STYLE_FONTCOLOR,a,d,k,n)+b(mxConstants.STYLE_FONTSTYLE,a,d,k,n)+b(mxConstants.STYLE_ALIGN,a,d,k,n)+b(mxConstants.STYLE_SPACING_LEFT,a,d,k,n)+b(mxConstants.STYLE_SPACING_RIGHT,a,d,k,n)+b(mxConstants.STYLE_SPACING_TOP,a,d,k,n)+b(mxConstants.STYLE_SPACING_BOTTOM,a,d,k,n))+b(mxConstants.STYLE_ALIGN+"Global", -a,d,k,n)+b(mxConstants.STYLE_SPACING,a,d,k,n)+b(mxConstants.STYLE_VERTICAL_ALIGN,a,d,k,n)+b(mxConstants.STYLE_STROKECOLOR,a,d,k,n)+b(mxConstants.STYLE_OPACITY,a,d,k,n)+b(mxConstants.STYLE_ROUNDED,a,d,k,n)+b(mxConstants.STYLE_ROTATION,a,d,k,n)+b(mxConstants.STYLE_FLIPH,a,d,k,n)+b(mxConstants.STYLE_FLIPV,a,d,k,n)+b(mxConstants.STYLE_SHADOW,a,d,k,n)+b(mxConstants.STYLE_FILLCOLOR,a,d,k,n)+b(mxConstants.STYLE_DASHED,a,d,k,n)+b(mxConstants.STYLE_STROKEWIDTH,a,d,k,n)+b(mxConstants.STYLE_IMAGE,a,d,k,n)}function b(b, -k,e,c,h){if(!wc(k,b))switch(b){case mxConstants.STYLE_FONTSIZE:return a(e);case mxConstants.STYLE_FONTFAMILY:return d(e);case mxConstants.STYLE_FONTCOLOR:return n(e);case mxConstants.STYLE_FONTSTYLE:return w(e);case mxConstants.STYLE_ALIGN:return z(e);case mxConstants.STYLE_ALIGN+"Global":return Va(mxConstants.STYLE_ALIGN,e.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return C(e);case mxConstants.STYLE_SPACING_RIGHT:return D(e);case mxConstants.STYLE_SPACING_TOP:return A(e);case mxConstants.STYLE_SPACING_BOTTOM:return B(e); -case mxConstants.STYLE_SPACING:return E(e);case mxConstants.STYLE_VERTICAL_ALIGN:return F(e);case mxConstants.STYLE_STROKECOLOR:return H(e,c);case mxConstants.STYLE_OPACITY:return L(e,c,h);case mxConstants.STYLE_ROUNDED:return b=!h.edge&&!h.style.includes("rounded")&&null!=e.Rounding&&0k;)e=d["m"+k],null!= -e&&(n=fb(e,n,a)),k++;null!=d.Text&&(n=fb(d.Text,n,a));d=null!=b?b.TextAreas:a.TextAreas;null!=d.Message&&(n=fb(d.Message,n,a))}return n}function fb(a,b,d){var k=2*(parseFloat(a.Location)-.5);isNaN(k)&&null!=a.Text&&null!=a.Text.Location&&(k=2*(parseFloat(a.Text.Location)-.5));d=mxCell;var n=f(a),k=new mxGeometry(isNaN(k)?0:k,0,0,0),e="11",c="";if(null!=a&&null!=a.Value&&null!=a.Value.m)for(var c=x(a.Value.m),w=0;wk?1:dk?1:d'];m.push("");for(var C=null,p=0;p')}if(null!=A.n1){var E;var y=z[A.p2].x,S=z[A.p2].y,H=k,l=n,L=new Vb(z[A.p1].x,z[A.p1].y, -A.n1.x,A.n1.y,z[A.p2].x,z[A.p2].y,A.n2.x,A.n2.y);if(2<=L.getSize()){L.getX(0);L.getY(0);L.getX(1);L.getY(1);for(var y=Math.round(100*y/H*100)/100,S=Math.round(100*S/l*100)/100,H=[],l=[],ca=[],U=L.getSize(),F=0;F';E=T}else E=void 0;m.push(E)}else D=z[A.p2].x,B=z[A.p2].y,D=100*D/k,B=100*B/n,D=Math.round(100*D)/100,B=Math.round(100*B)/100,m.push('');C=A.p2}m.push("");m.push("");m.push("");d.push({shapeStencil:"stencil("+Graph.compress(m.join(""))+")",FillColor:w,LineColor:g,LineWidth:x})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,stencils:d}}catch(od){console.log("Stencil parsing error:",od)}}function yb(a,b,d,k, -n,e,c,w){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;c.insert(a);e=[a];d=d.clone();w.insertEdge(d,!1);a.insertEdge(d,!0);e.push(d);k.push(n.addCell(d,null,null,null,null))}function ta(a,b,d,k,n,e,c,w,g){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;g.insert(a);d=new mxCell("",new mxGeometry(d,k,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;g.insert(d);w=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1); -w.push(n);e.push(c.addCell(n,null,null,null,null))}function ha(a,b,d,k,n,c){k.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";k.style+=e(k.style,n,c,k);b=f(n);k.vertex=!0;a=new mxCell(b,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+a+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");a.style+=e(a.style,n,c,a,y);a.geometry.relative= -!0;a.geometry.offset=new mxPoint(5,-12);a.vertex=!0;k.insert(a)}function ma(a,b,d,k,n,c,w,g){n="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";c.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";c.style+=e(c.style,w,g,c);c.value=f(w);c.vertex=!0;a=new mxCell(null,new mxGeometry(.5,0,.7*k*b,.7*k*d),n+a+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");a.geometry.relative= -!0;a.geometry.offset=new mxPoint(-b*k*.35,10+(1-d)*k*.35);a.vertex=!0;a.style+=e(a.style,w,g,a,y);c.insert(a)}function wc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function xc(b,d,k){var c=m(b),h=c.Properties,x=h.BoundingBox,t=Math.round(.6*x.w),r=Math.round(.6*x.h),p=Math.round(.6*x.x+Kb),T=Math.round(.6*x.y+Lb);null==b.Class||"GCPInputDatabase"!==b.Class&&"GCPInputRecord"!==b.Class&&"GCPInputPayment"!==b.Class&&"GCPInputGateway"!==b.Class&&"GCPInputLocalCompute"!== -b.Class&&"GCPInputBeacon"!==b.Class&&"GCPInputStorage"!==b.Class&&"GCPInputList"!==b.Class&&"GCPInputStream"!==b.Class&&"GCPInputMobileDevices"!==b.Class&&"GCPInputCircuitBoard"!==b.Class&&"GCPInputLive"!==b.Class&&"GCPInputUsers"!==b.Class&&"GCPInputLaptop"!==b.Class&&"GCPInputApplication"!==b.Class&&"GCPInputLightbulb"!==b.Class&&"GCPInputGame"!==b.Class&&"GCPInputDesktop"!==b.Class&&"GCPInputDesktopAndMobile"!==b.Class&&"GCPInputWebcam"!==b.Class&&"GCPInputSpeaker"!==b.Class&&"GCPInputRetail"!== -b.Class&&"GCPInputReport"!==b.Class&&"GCPInputPhone"!==b.Class&&"GCPInputBlank"!==b.Class||(r+=20);v=new mxCell("",new mxGeometry(p,T,t,r),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Db=null!=b.Class?b.Class:null!=c?c.Class:null;switch(Db){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ic=!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(ic=!0);var da=null,oa=null;ic?(da=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),oa= -new mxCell("",new mxGeometry(0,0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(da=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),oa=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=e(v.style,h,c,v);da.vertex=!0;v.insert(da);da.style+=e(da.style,h,c,da);oa.vertex=!0;oa.value=f(h);v.insert(oa);oa.style+=e(oa.style,h,c,oa,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var qa= -"MainText",fb=null,Ua="HeaderFill_",db="BodyFill_",Ub=25,Jb=25,vc=0;if(null!=h.Lanes)vc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Tb=function(a){if(a)32>a?a=32:208',Va.push("li"),k+='',D.push("a"),n++)}b+='"}while(0/g,">");do for(b=y.pop(),d=0;d"}while(k&&0f[q])b.splice(da,0,{s:f[q],n:"a",v:d.TextAlign||"center"});else{for(var C=0;da+C=C&&(da=N)break;Ua=U.s;0N)break;H=E.e;do delete A[E.n],E=q[++C];while(null!=E&&E.e==H);f+=w(a,Ua,H);Ua=H;0!=y.length|| +null!=U&&U.s==H||(x.splice(da,0,{s:H,n:"dummy",v:""}),q.splice(C,0,{e:U?U.s:N,n:"dummy",v:""}))}else break}f+=w(null,null,null,!0);Q&&(f+=c(!0));return f}function f(a,b){y=!1;var d=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==d&&null!=a.State?null!=a.State.t&&(d=a.State):null==d&&null!=a.Note?null!=a.Note.t&&(d=a.Note):null==d&&null!=a.Title?null!=a.Title.t&&(d=a.Title):null!=a.t&&(d=a);null==d&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&& +(d=a.TextAreas.Text.Value):null==d&&null!=a.t0&&null!=a.t0.t&&(d=a.t0);if(null!=d){if(null!=d.t){var k=d.t,k=k.replace(/\u2028/g,"\n"),d=d.m;try{for(var n=0;n/g,">")}if(null!=d.Value&&null!=d.Value.t)return d.Value.t=d.Value.t.replace(//g,">"),d.Value.t}return""} +function q(a){return null!=a.Action?a.Action:a}function m(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else{if(null!=a.m)return a.m;if(null!=a.Title&&null!=a.Title.m)return a.Title.m}return null}function g(b,k){return"whiteSpace=wrap;"+(k?"overflow=block;html=1;fontSize=11;":a(b)+d(b)+n(b)+w(b)+z(b)+C(b)+A(b)+B(b)+D(b))+F(b)+E(b)+Wa(mxConstants.STYLE_ALIGN, +b.TextAlign,"center")}function e(a,d,k,n,e){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+="whiteSpace=wrap;"+(e?(wc(a,"overflow")?"":"overflow=block;")+(wc(a,"html")?"":"html=1;")+"fontSize=11;":b(mxConstants.STYLE_FONTSIZE,a,d,k,n)+b(mxConstants.STYLE_FONTFAMILY,a,d,k,n)+b(mxConstants.STYLE_FONTCOLOR,a,d,k,n)+b(mxConstants.STYLE_FONTSTYLE,a,d,k,n)+b(mxConstants.STYLE_ALIGN,a,d,k,n)+b(mxConstants.STYLE_SPACING_LEFT,a,d,k,n)+b(mxConstants.STYLE_SPACING_RIGHT,a,d,k,n)+b(mxConstants.STYLE_SPACING_TOP, +a,d,k,n)+b(mxConstants.STYLE_SPACING_BOTTOM,a,d,k,n))+b(mxConstants.STYLE_ALIGN+"Global",a,d,k,n)+b(mxConstants.STYLE_SPACING,a,d,k,n)+b(mxConstants.STYLE_VERTICAL_ALIGN,a,d,k,n)+b(mxConstants.STYLE_STROKECOLOR,a,d,k,n)+b(mxConstants.STYLE_OPACITY,a,d,k,n)+b(mxConstants.STYLE_ROUNDED,a,d,k,n)+b(mxConstants.STYLE_ROTATION,a,d,k,n)+b(mxConstants.STYLE_FLIPH,a,d,k,n)+b(mxConstants.STYLE_FLIPV,a,d,k,n)+b(mxConstants.STYLE_SHADOW,a,d,k,n)+b(mxConstants.STYLE_FILLCOLOR,a,d,k,n)+b(mxConstants.STYLE_DASHED, +a,d,k,n)+b(mxConstants.STYLE_STROKEWIDTH,a,d,k,n)+b(mxConstants.STYLE_IMAGE,a,d,k,n)}function b(b,k,e,c,h){if(!wc(k,b))switch(b){case mxConstants.STYLE_FONTSIZE:return a(e);case mxConstants.STYLE_FONTFAMILY:return d(e);case mxConstants.STYLE_FONTCOLOR:return n(e);case mxConstants.STYLE_FONTSTYLE:return w(e);case mxConstants.STYLE_ALIGN:return z(e);case mxConstants.STYLE_ALIGN+"Global":return Wa(mxConstants.STYLE_ALIGN,e.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return C(e);case mxConstants.STYLE_SPACING_RIGHT:return A(e); +case mxConstants.STYLE_SPACING_TOP:return B(e);case mxConstants.STYLE_SPACING_BOTTOM:return D(e);case mxConstants.STYLE_SPACING:return F(e);case mxConstants.STYLE_VERTICAL_ALIGN:return E(e);case mxConstants.STYLE_STROKECOLOR:return H(e,c);case mxConstants.STYLE_OPACITY:return N(e,c,h);case mxConstants.STYLE_ROUNDED:return b=!h.edge&&!h.style.includes("rounded")&&null!=e.Rounding&&0k;)e=d["m"+k],null!=e&&(n=fb(e,n,a)),k++;null!=d.Text&&(n=fb(d.Text,n,a));d=null!=b?b.TextAreas:a.TextAreas; +null!=d.Message&&(n=fb(d.Message,n,a))}return n}function fb(a,b,d){var k=2*(parseFloat(a.Location)-.5);isNaN(k)&&null!=a.Text&&null!=a.Text.Location&&(k=2*(parseFloat(a.Text.Location)-.5));d=mxCell;var n=f(a),k=new mxGeometry(isNaN(k)?0:k,0,0,0),e="11",c="";if(null!=a&&null!=a.Value&&null!=a.Value.m)for(var c=x(a.Value.m),w=0;wk?1:dk?1:d'];q.push("");for(var C=null,m=0;m')}if(null!=A.n1){var F;var Q=z[A.p2].x,y=z[A.p2].y,H=k,l=n,N=new Vb(z[A.p1].x,z[A.p1].y,A.n1.x,A.n1.y,z[A.p2].x,z[A.p2].y, +A.n2.x,A.n2.y);if(2<=N.getSize()){N.getX(0);N.getY(0);N.getX(1);N.getY(1);for(var Q=Math.round(100*Q/H*100)/100,y=Math.round(100*y/l*100)/100,H=[],l=[],ca=[],U=N.getSize(),E=0;E';F=T}else F= +void 0;q.push(F)}else B=z[A.p2].x,D=z[A.p2].y,B=100*B/k,D=100*D/n,B=Math.round(100*B)/100,D=Math.round(100*D)/100,q.push('');C=A.p2}q.push("");q.push("");q.push("");d.push({shapeStencil:"stencil("+Graph.compress(q.join(""))+")",FillColor:w,LineColor:g,LineWidth:x})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,stencils:d}}catch(od){console.log("Stencil parsing error:",od)}}function yb(a,b,d,k,n,e,c,w){a=new mxCell("",new mxGeometry(a, +b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;c.insert(a);e=[a];d=d.clone();w.insertEdge(d,!1);a.insertEdge(d,!0);e.push(d);k.push(n.addCell(d,null,null,null,null))}function ta(a,b,d,k,n,e,c,w,g){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;g.insert(a);d=new mxCell("",new mxGeometry(d,k,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;g.insert(d);w=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1);w.push(n);e.push(c.addCell(n,null,null,null, +null))}function ha(a,b,d,k,n,c){k.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";k.style+=e(k.style,n,c,k);b=f(n);k.vertex=!0;a=new mxCell(b,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+a+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");a.style+=e(a.style,n,c,a,y);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12); +a.vertex=!0;k.insert(a)}function ma(a,b,d,k,n,c,w,g){n="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";c.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";c.style+=e(c.style,w,g,c);c.value=f(w);c.vertex=!0;a=new mxCell(null,new mxGeometry(.5,0,.7*k*b,.7*k*d),n+a+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");a.geometry.relative=!0;a.geometry.offset=new mxPoint(-b*k*.35, +10+(1-d)*k*.35);a.vertex=!0;a.style+=e(a.style,w,g,a,y);c.insert(a)}function wc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function xc(b,d,k){var c=q(b),h=c.Properties,x=h.BoundingBox,t=Math.round(.6*x.w),r=Math.round(.6*x.h),m=Math.round(.6*x.x+Kb),T=Math.round(.6*x.y+Lb);null==b.Class||"GCPInputDatabase"!==b.Class&&"GCPInputRecord"!==b.Class&&"GCPInputPayment"!==b.Class&&"GCPInputGateway"!==b.Class&&"GCPInputLocalCompute"!==b.Class&&"GCPInputBeacon"!== +b.Class&&"GCPInputStorage"!==b.Class&&"GCPInputList"!==b.Class&&"GCPInputStream"!==b.Class&&"GCPInputMobileDevices"!==b.Class&&"GCPInputCircuitBoard"!==b.Class&&"GCPInputLive"!==b.Class&&"GCPInputUsers"!==b.Class&&"GCPInputLaptop"!==b.Class&&"GCPInputApplication"!==b.Class&&"GCPInputLightbulb"!==b.Class&&"GCPInputGame"!==b.Class&&"GCPInputDesktop"!==b.Class&&"GCPInputDesktopAndMobile"!==b.Class&&"GCPInputWebcam"!==b.Class&&"GCPInputSpeaker"!==b.Class&&"GCPInputRetail"!==b.Class&&"GCPInputReport"!== +b.Class&&"GCPInputPhone"!==b.Class&&"GCPInputBlank"!==b.Class||(r+=20);v=new mxCell("",new mxGeometry(m,T,t,r),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Db=null!=b.Class?b.Class:null!=c?c.Class:null;switch(Db){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ic=!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(ic=!0);var da=null,oa=null;ic?(da=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),oa=new mxCell("",new mxGeometry(0, +0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(da=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),oa=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=e(v.style,h,c,v);da.vertex=!0;v.insert(da);da.style+=e(da.style,h,c,da);oa.vertex=!0;oa.value=f(h);v.insert(oa);oa.style+=e(oa.style,h,c,oa,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var qa= +"MainText",fb=null,Va="HeaderFill_",Ua="BodyFill_",Ub=25,Jb=25,vc=0;if(null!=h.Lanes)vc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Tb=function(a){if(a)32>a?a=32:208h.DoorAngle&&(v.style+="flipV=1;");v.style+=e(v.style,h,c,v);break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0h.DoorAngle&&(v.style+="flipV=1;");v.style+=e(v.style,h,c,v);break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0q[l].style.indexOf(";align=")&&(q[l].style+="align=left;spacingLeft=5;");var ja=H(h,c),ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0, -20,r-h.Selected*N-20-(h.Panels-h.Selected)*N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-h.Selected*N-(h.Panels-h.Selected)*N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,h.Selected*N),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll? -new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20-(h.Panels-h.Selected)*N),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));Q=1==h.vScroll?new mxCell("",new mxGeometry(0,h.Selected*N,t-20,r-h.Selected*N-20-(h.Panels-h.Selected)*N),"part=1;fillColor=none;strokeColor=none;"): -new mxCell("",new mxGeometry(0,h.Selected*N,t-20,r-h.Selected*N-(h.Panels-h.Selected)*N),"part=1;fillColor=none;strokeColor=none;");Q.vertex=!0;v.insert(Q);Q.value=f(h.Content_1);Q.style+=g(h.Content_1,y);!y&&0>Q.style.indexOf(";align=")&&(Q.style+="align=left;spacingLeft=5;");v.style+=e(v.style,h,c,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var q=[],u=[],N=25,Pa=3,Y=(t+Pa)/(h.Tabs+1),ua=new mxCell("",new mxGeometry(0,N,t,r-N),"part=1;");ua.vertex=!0;v.insert(ua); -ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(10+l*Y,0,Y-Pa,N),""),u[l].vertex=!0,v.insert(u[l])):(q[l]=new mxCell("",new mxGeometry(10+l*Y,0,Y-Pa,N),"strokeColor=none;"),q[l].vertex=!0,v.insert(q[l]),q[l].style+=q[l].style+=e(q[l].style,h,c,q[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y-Pa,N),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l])),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y),0>u[l].style.indexOf(";align=")&& -(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=e(u[l].style,h,c,u[l]);ja=H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset= -new mxPoint(-20,N),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break; -case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];u=[];N=25;Pa=3;Y=(t+Pa)/h.Tabs;ua=new mxCell("",new mxGeometry(0,N,t,r-N),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(l*Y,0,Y-Pa,N),""),u[l].vertex=!0,v.insert(u[l])):(q[l]=new mxCell("",new mxGeometry(l*Y,0,Y-Pa,N),"strokeColor=none;"),q[l].vertex=!0,v.insert(q[l]),q[l].style+=e(q[l].style,h,c,q[l]),u[l]=new mxCell("",new mxGeometry(0, -0,Y-Pa,N),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l])),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;");ja=H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"): -new mxCell("",new mxGeometry(1,0,20,r-N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,N),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"), -G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];u=[];Pa=3;N=25+Pa;Y=80;Eb=10;ua=new mxCell("",new mxGeometry(Y,0,t-Y,r),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(0,Eb+l*N,Y,N-Pa),""),u[l].vertex=!0,v.insert(u[l]),u[l].value=f(h["Tab_"+(l+1)]), -u[l].style+=g(h["Tab_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y)):(q[l]=new mxCell("",new mxGeometry(0,Eb+l*N,Y,N-Pa),"strokeColor=none;"),q[l].vertex=!0,v.insert(q[l]),q[l].style+=e(q[l].style,h,c,q[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y,N-Pa),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l]),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y)),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=e(u[l].style,h,c,u[l]);ja= +0,20,r-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,110),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==h.hScroll&&(R=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"): +new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),R.geometry.relative=!0,R.geometry.offset=new mxPoint(0,-20),R.vertex=!0,v.insert(R));v.style+=e(v.style,h,c,v);break;case "UI2WindowBlock":v.value=f(h.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(y?"fontSize=11;":a(h.Title)+n(h.Title)+w(h.Title));1==h.vScroll&&(G=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"): +new mxCell("",new mxGeometry(1,0,20,r-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==h.hScroll&&(R=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"), +R.geometry.relative=!0,R.geometry.offset=new mxPoint(0,-20),R.vertex=!0,v.insert(R));v.style+=e(v.style,h,c,v,y);break;case "UI2DialogBlock":v.value=f(h.Text);v.style+=g(h.Text,y);p=new mxCell("",new mxGeometry(0,0,t,30),"part=1;resizeHeight=0;");p.vertex=!0;v.insert(p);p.value=f(h.Title);p.style+=g(h.Title,y);p.style+=e(p.style,h,c,p,y);u=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");u.geometry.relative=!0;u.geometry.offset=new mxPoint(-25, +-10);u.vertex=!0;p.insert(u);1==h.vScroll&&(G=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==h.hScroll&&(R=1==h.vScroll?new mxCell("",new mxGeometry(0, +1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),R.geometry.relative=!0,R.geometry.offset=new mxPoint(0,-20),R.vertex=!0,v.insert(R));v.style+=e(v.style,h,c,v);break;case "UI2AccordionBlock":p=[];M=25;for(l=0;l<=h.Panels-1;l++)p[l]=lp[l].style.indexOf(";align=")&&(p[l].style+="align=left;spacingLeft=5;");var ja=H(h,c),ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0, +20,r-h.Selected*M-20-(h.Panels-h.Selected)*M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-h.Selected*M-(h.Panels-h.Selected)*M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,h.Selected*M),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll? +new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20-(h.Panels-h.Selected)*M),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));R=1==h.vScroll?new mxCell("",new mxGeometry(0,h.Selected*M,t-20,r-h.Selected*M-20-(h.Panels-h.Selected)*M),"part=1;fillColor=none;strokeColor=none;"): +new mxCell("",new mxGeometry(0,h.Selected*M,t-20,r-h.Selected*M-(h.Panels-h.Selected)*M),"part=1;fillColor=none;strokeColor=none;");R.vertex=!0;v.insert(R);R.value=f(h.Content_1);R.style+=g(h.Content_1,y);!y&&0>R.style.indexOf(";align=")&&(R.style+="align=left;spacingLeft=5;");v.style+=e(v.style,h,c,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var p=[],u=[],M=25,Pa=3,Y=(t+Pa)/(h.Tabs+1),ua=new mxCell("",new mxGeometry(0,M,t,r-M),"part=1;");ua.vertex=!0;v.insert(ua); +ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(10+l*Y,0,Y-Pa,M),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(10+l*Y,0,Y-Pa,M),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y-Pa,M),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y),0>u[l].style.indexOf(";align=")&& +(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=e(u[l].style,h,c,u[l]);ja=H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset= +new mxPoint(-20,M),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break; +case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";p=[];u=[];M=25;Pa=3;Y=(t+Pa)/h.Tabs;ua=new mxCell("",new mxGeometry(0,M,t,r-M),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(l*Y,0,Y-Pa,M),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(l*Y,0,Y-Pa,M),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0, +0,Y-Pa,M),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;");ja=H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"): +new mxCell("",new mxGeometry(1,0,20,r-M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,M),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"), +G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";p=[];u=[];Pa=3;M=25+Pa;Y=80;Eb=10;ua=new mxCell("",new mxGeometry(Y,0,t-Y,r),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(0,Eb+l*M,Y,M-Pa),""),u[l].vertex=!0,v.insert(u[l]),u[l].value=f(h["Tab_"+(l+1)]), +u[l].style+=g(h["Tab_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y)):(p[l]=new mxCell("",new mxGeometry(0,Eb+l*M,Y,M-Pa),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y,M-Pa),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l]),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y)),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=e(u[l].style,h,c,u[l]);ja= H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,0),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+= -ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(Y,1,t-20-Y,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Y,1,t-Y,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";N=r/h.Options; -q=[];u=[];for(l=0;lv.style.indexOf("verticalAlign")&&(v.style+="verticalAlign=middle;");var uc=new mxCell("",new mxGeometry(0,0,8,r),"shape=partialRectangle;right=0;fillColor=none;");uc.geometry.relative=!0;uc.vertex=!0;uc.style+=e(uc.style,h,c,v,y);v.insert(uc);break; case "TimelineBlock":try{var Ga=new Date(h.StartDate),Ye=new Date(h.FinishDate),Ze={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6}[h.StartOfWeek],Od=new Date(h.StartOfFiscalYear),Ab,Bb;switch(h.TimeUnit){case "second":Ab=Bb=1E3;break;case "minute":Ab=Bb=6E4;break;case "hour":Ab=Bb=36E5;break;case "day":Ab=Bb=864E5;break;case "week":var $e=(7-Ga.getDay()+Ze)%7;Ab=(new Date(Ga.getFullYear(),Ga.getMonth(),Ga.getDate()+$e)).getTime()-Ga.getTime();Bb=6048E5;break;case "month":Ab= (new Date(Ga.getFullYear(),Ga.getMonth()+1,1)).getTime()-Ga.getTime();Bb=2592E6;break;case "quarter":var xe=(12-Ga.getMonth()+Od.getMonth())%3;Ab=(new Date(Ga.getFullYear(),Ga.getMonth()+(0==xe&&Ga.getDate()>=Od.getDate()?3:xe),Od.getDate())).getTime()-Ga.getTime();Bb=7776E6;break;case "year":Ab=(new Date(Ga.getFullYear()+1,0,1)).getTime()-Ga.getTime(),Bb=31536E6}var Pd=Ye.getTime()-Ga.getTime();console.log(Ab/Pd*t,Bb/Pd*t,Math.round((Pd-Ab)/Bb))}catch(Wb){console.log(Wb)}break;case "FreehandBlock":try{vb= -ca(h,c,v);v.style="group;"+vb;if(null!=h.Stencil){null==h.Stencil.id&&(h.Stencil.id="$$tmpId$$",Vd(h.Stencil.id,h.Stencil));for(var ec=LucidImporter.stencilsMap[h.Stencil.id],l=0;lv.style.indexOf("html")&&(v.style+="html=1;");if(h.Title&&h.Text)try{var Ae=v.geometry,Be=new mxCell(f(h.Title),new mxGeometry(0,Ae.height,Ae.width,10),"strokeColor=none;fillColor=none;");Be.vertex=!0;v.insert(Be);v.style+=g(h.Title,y)}catch(Wb){console.log(Wb)}Ud(v,h);return v}function Ud(a,b){if(b.Text_TRotation||b.TextRotation)try{var d= -mxUtils.toDegree(b.Text_TRotation)+mxUtils.toDegree(b.TextRotation);if(0!=d&&a.value){var k=a.geometry.width,n=a.geometry.height,c=k,e=n,w=0,g=0;if(-90==d||-270==d)var c=n,e=k,x=Math.abs(n-k)/2,w=x/k,g=-x/n;var d=d+mxUtils.toDegree(b.Rotation),z=a.style.split(";").filter(function(a){return 0>a.indexOf("fillColor=")&&0>a.indexOf("strokeColor=")&&0>a.indexOf("rotation=")}).join(";"),f=new mxCell(a.value,new mxGeometry(w,g,c,e),z+"fillColor=none;strokeColor=none;rotation="+d+";");a.value=null;f.geometry.relative= +mxUtils.toDegree(b.Text_TRotation)+mxUtils.toDegree(b.TextRotation);if(0!=d&&a.value){var k=a.geometry.width,n=a.geometry.height,e=k,c=n,w=0,g=0;if(-90==d||-270==d)var e=n,c=k,x=Math.abs(n-k)/2,w=x/k,g=-x/n;var d=d+mxUtils.toDegree(b.Rotation),z=a.style.split(";").filter(function(a){return 0>a.indexOf("fillColor=")&&0>a.indexOf("strokeColor=")&&0>a.indexOf("rotation=")}).join(";"),f=new mxCell(a.value,new mxGeometry(w,g,e,c),z+"fillColor=none;strokeColor=none;rotation="+d+";");a.value=null;f.geometry.relative= !0;f.vertex=!0;a.insert(f)}}catch(Ee){console.log(Ee)}}var Kb=0,Lb=0,y=!1,pd=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],qd=["fpDoor"],Tb={None:"none;",Arrow:"block;endFill=1;","Hollow Arrow":"block;endFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;startSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;startSize=10;","CFN ERD Many Arrow":"ERmany;startSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;startSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;startSize=10;", "CFN ERD One Arrow":"ERone;startSize=16;",Generalization:"block;endFill=0;startSize=12;","Big Open Arrow":"open;startSize=10;",Asynch1:"openAsync;flipH=1;startSize=10;",Asynch2:"openAsync;startSize=10;",Aggregation:"diamond;endFill=0;startSize=16;",Composition:"diamond;endFill=1;startSize=16;",BlockEnd:"none;endFill=1;startSize=16;",Measure:"ERone;startSize=10;"},Jb={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"", DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document;boundedLbl=1",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2", -DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DatabaseBlock:"shape=cylinder3;size=10;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder3;direction=south;size=10;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1", +DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DatabaseBlock:"shape=cylinder3;size=4;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder3;direction=south;size=10;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1", DelayBlock:"shape=delay",StoredDataBlock:"shape=cylinder3;boundedLbl=1;size=15;lid=0;direction=south;",MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"mxCompositeShape",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape", RectangleContainerBlock:"container=1;collapsible=0",DiamondContainerBlock:"shape=rhombus;container=1;collapsible=0",RoundedRectangleContainerBlock:"container=1;rounded=1;absoluteArcSize=1;arcSize=24;collapsible=0",CircleContainerBlock:"ellipse;container=1;collapsible=0",PillContainerBlock:"shape=mxgraph.flowchart.terminator;container=1;collapsible=0",BraceBlock:"mxCompositeShape",BracketBlock:"mxCompositeShape",BraceBlockRotated:"mxCompositeShape",BracketBlockRotated:"mxCompositeShape",IsoscelesTriangleBlock:"shape=mxgraph.basic.acute_triangle;dx=0.5;anchorPointDirection=0", RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",OctagonBlock:"shape=mxgraph.basic.octagon2;dx=15;",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",RightArrowBlock:"mxCompositeShape",DoubleArrowBlock:"mxCompositeShape",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star", @@ -975,87 +975,87 @@ SMProfile:"shape=mxgraph.sitemap.profile;strokeColor=#000000;fillColor=#E6E6E6", ExtShapeServerBlock:"strokeColor=none;shape=mxgraph.citrix.tower_server;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeCloudBlock:"strokeColor=none;shape=mxgraph.citrix.cloud;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeUserBlock:"strokeColor=none;shape=mxgraph.aws3d.end_user;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#073763",ExtShapeWorkstationLCDBlock:"strokeColor=none;shape=mxgraph.veeam.3d.workstation;verticalLabelPosition=bottom;verticalAlign=top"},sd=RegExp("{{(date{.*}|[^%^{^}]+)}}", "g");Vb.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Vb.prototype.getX=function(a){return Math.round(100*this.nurbsValues[4*(a+1)])/100};Vb.prototype.getY=function(a){return Math.round(100*this.nurbsValues[4*(a+1)+1])/100};LucidImporter.importState=function(a,b){function d(a){if(a.Properties){for(var b in a.Properties)"Stencil-"==b.substr(0,8)&&Vd(b.substr(8),a.Properties[b]);LucidImporter.globalProps=a.Properties}for(var d in a.Pages)b=a.Pages[d],b.id=d,n.push(b);n.sort(function(a, b){return a.Properties.Orderb.Properties.Order?1:0});for(a=0;a',""],n=[];null!=a.state&&"1"==urlParams.dev&&null!=window.console&&console.log(JSON.stringify(JSON.parse(a.state),null,2));null!=a.state?d(JSON.parse(a.state)): -null==a.Page&&null!=a.Pages?d(a):n.push(a);for(var c=ud(),e=new mxCodec,w=0;w"+Graph.compress(mxUtils.getXml(g))+"")}k.push("");LucidImporter.imgSrcRepl=null;return k.join("")}})();function VsdxExport(c){function f(a,b){var d={"[Content_Types].xml":"", +null==a.Page&&null!=a.Pages?d(a):n.push(a);for(var e=ud(),c=new mxCodec,w=0;w"+Graph.compress(mxUtils.getXml(g))+"")}k.push("");LucidImporter.imgSrcRepl=null;return k.join("")}})();function VsdxExport(c){function f(a,b){var d={"[Content_Types].xml":"", "_rels/.rels":"", "docProps/app.xml":'Microsoft Visio15.0000