7.4.8 release

This commit is contained in:
Gaudenz Alder 2017-09-28 21:37:32 +02:00
parent 85ee5e3e89
commit b964053970
25 changed files with 3401 additions and 2389 deletions

View file

@ -1,3 +1,10 @@
28-SEP-2017: 7.4.8
- Adds #P for URL parameters (beta)
- Bypasses caches for proxy servlet
- Uses mxGraph 3.7.6 beta 2
- Checks existing storage file before rename
26-SEP-2017: 7.4.7
- Adds components for Trello Power-Up

View file

@ -1 +1 @@
7.4.7
7.4.8

View file

@ -910,8 +910,9 @@ mxCellRenderer.registerShape(mxConstants.SHAPE_LABEL,mxLabel);mxCellRenderer.pro
mxCellRenderer.prototype.createIndicatorShape=function(a){a.shape.indicatorShape=this.getShape(a.view.graph.getIndicatorShape(a))};mxCellRenderer.prototype.getShape=function(a){return null!=a?mxCellRenderer.prototype.defaultShapes[a]:null};mxCellRenderer.prototype.getShapeConstructor=function(a){var b=this.getShape(a.style[mxConstants.STYLE_SHAPE]);null==b&&(b=a.view.graph.getModel().isEdge(a.cell)?this.defaultEdgeShape:this.defaultVertexShape);return b};
mxCellRenderer.prototype.configureShape=function(a){a.shape.apply(a);a.shape.image=a.view.graph.getImage(a);a.shape.indicatorColor=a.view.graph.getIndicatorColor(a);a.shape.indicatorStrokeColor=a.style[mxConstants.STYLE_INDICATOR_STROKECOLOR];a.shape.indicatorGradientColor=a.view.graph.getIndicatorGradientColor(a);a.shape.indicatorDirection=a.style[mxConstants.STYLE_INDICATOR_DIRECTION];a.shape.indicatorImage=a.view.graph.getIndicatorImage(a);this.postConfigureShape(a)};
mxCellRenderer.prototype.postConfigureShape=function(a){null!=a.shape&&(this.resolveColor(a,"indicatorColor",mxConstants.STYLE_FILLCOLOR),this.resolveColor(a,"indicatorGradientColor",mxConstants.STYLE_GRADIENTCOLOR),this.resolveColor(a,"fill",mxConstants.STYLE_FILLCOLOR),this.resolveColor(a,"stroke",mxConstants.STYLE_STROKECOLOR),this.resolveColor(a,"gradient",mxConstants.STYLE_GRADIENTCOLOR))};
mxCellRenderer.prototype.resolveColor=function(a,b,c){var d=a.shape[b],e=a.view.graph,f=null;"inherit"==d?f=e.model.getParent(a.cell):"swimlane"==d?(f=null!=e.model.getTerminal(a.cell,!1)?e.model.getTerminal(a.cell,!1):a.cell,f=e.getSwimlane(f),c=e.swimlaneIndicatorColorAttribute):"indicated"==d&&(a.shape[b]=a.shape.indicatorColor);null!=f&&(d=e.getView().getState(f),a.shape[b]=null,null!=d&&(a.shape[b]=null!=d.shape&&"indicatorColor"!=b?d.shape[b]:d.style[c]))};
mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
mxCellRenderer.prototype.checkPlaceholderStyles=function(a){if(null!=a.style)for(var b=["inherit","swimlane","indicated"],c=[mxConstants.STYLE_FILLCOLOR,mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_GRADIENTCOLOR],d=0;d<c.length;d++)if(0<=mxUtils.indexOf(b,a.style[c[d]]))return!0;return!1};
mxCellRenderer.prototype.resolveColor=function(a,b,c){var d=a.shape[b],e=a.view.graph,f=null;"inherit"==d?f=e.model.getParent(a.cell):"swimlane"==d?(a.shape[b]=c==mxConstants.STYLE_STROKECOLOR?"#000000":"#ffffff",f=null!=e.model.getTerminal(a.cell,!1)?e.model.getTerminal(a.cell,!1):a.cell,f=e.getSwimlane(f),c=e.swimlaneIndicatorColorAttribute):"indicated"==d&&(a.shape[b]=a.shape.indicatorColor);null!=f&&(d=e.getView().getState(f),a.shape[b]=null,null!=d&&(a.shape[b]=null!=d.shape&&"indicatorColor"!=
b?d.shape[b]:d.style[c]))};mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
mxCellRenderer.prototype.createLabel=function(a,b){var c=a.view.graph;c.getModel().isEdge(a.cell);if(0<a.style[mxConstants.STYLE_FONTSIZE]||null==a.style[mxConstants.STYLE_FONTSIZE]){var d=c.isHtmlLabel(a.cell)||null!=b&&mxUtils.isNode(b);a.text=new this.defaultTextShape(b,new mxRectangle,a.style[mxConstants.STYLE_ALIGN]||mxConstants.ALIGN_CENTER,c.getVerticalAlign(a),a.style[mxConstants.STYLE_FONTCOLOR],a.style[mxConstants.STYLE_FONTFAMILY],a.style[mxConstants.STYLE_FONTSIZE],a.style[mxConstants.STYLE_FONTSTYLE],
a.style[mxConstants.STYLE_SPACING],a.style[mxConstants.STYLE_SPACING_TOP],a.style[mxConstants.STYLE_SPACING_RIGHT],a.style[mxConstants.STYLE_SPACING_BOTTOM],a.style[mxConstants.STYLE_SPACING_LEFT],a.style[mxConstants.STYLE_HORIZONTAL],a.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],a.style[mxConstants.STYLE_LABEL_BORDERCOLOR],c.isWrapping(a.cell)&&c.isHtmlLabel(a.cell),c.isLabelClipped(a.cell),a.style[mxConstants.STYLE_OVERFLOW],a.style[mxConstants.STYLE_LABEL_PADDING],mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION,
mxConstants.DEFAULT_TEXT_DIRECTION));a.text.opacity=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_OPACITY,100);a.text.dialect=d?mxConstants.DIALECT_STRICTHTML:a.view.graph.dialect;a.text.style=a.style;a.text.state=a;this.initializeLabel(a,a.text);var e=!1,f=function(b){var d=a;if(mxClient.IS_TOUCH||e)d=mxEvent.getClientX(b),b=mxEvent.getClientY(b),b=mxUtils.convertPoint(c.container,d,b),d=c.view.getState(c.getCellAt(b.x,b.y));return d};mxEvent.addGestureListeners(a.text.node,mxUtils.bind(this,function(b){this.isLabelEvent(a,
@ -948,8 +949,8 @@ mxCellRenderer.prototype.insertStateAfter=function(a,b,c){for(var d=this.getShap
a.view.graph.container;)g=g.parentNode;null!=g&&null!=g.nextSibling?g.nextSibling!=d[e].node&&d[e].node.parentNode.insertBefore(d[e].node,g.nextSibling):d[e].node.parentNode.appendChild(d[e].node)}else null!=d[e].node.parentNode.firstChild&&d[e].node.parentNode.firstChild!=d[e].node&&d[e].node.parentNode.insertBefore(d[e].node,d[e].node.parentNode.firstChild);f?c=d[e].node:b=d[e].node}return[b,c]};mxCellRenderer.prototype.getShapesForState=function(a){return[a.shape,a.text,a.control]};
mxCellRenderer.prototype.redraw=function(a,b,c){b=this.redrawShape(a,b,c);null==a.shape||null!=c&&!c||(this.redrawLabel(a,b),this.redrawCellOverlays(a,b),this.redrawControl(a,b))};
mxCellRenderer.prototype.redrawShape=function(a,b,c){var d=a.view.graph.model,e=!1;null!=a.shape&&null!=a.shape.style&&null!=a.style&&a.shape.style[mxConstants.STYLE_SHAPE]!=a.style[mxConstants.STYLE_SHAPE]&&(a.shape.destroy(),a.shape=null);null==a.shape&&null!=a.view.graph.container&&a.cell!=a.view.currentRoot&&(d.isVertex(a.cell)||d.isEdge(a.cell))?(a.shape=this.createShape(a),null!=a.shape&&(a.shape.antiAlias=this.antiAlias,this.createIndicatorShape(a),this.initializeShape(a),this.createCellOverlays(a),
this.installListeners(a),a.view.graph.selectionCellsHandler.updateHandler(a))):null==a.shape||mxUtils.equalEntries(a.shape.style,a.style)||(a.shape.resetStyles(),this.configureShape(a),a.view.graph.selectionCellsHandler.updateHandler(a),b=!0);null!=a.shape&&(this.createControl(a),b||this.isShapeInvalid(a,a.shape))&&(null!=a.absolutePoints?(a.shape.points=a.absolutePoints.slice(),a.shape.bounds=null):(a.shape.points=null,a.shape.bounds=new mxRectangle(a.x,a.y,a.width,a.height)),a.shape.scale=a.view.scale,
null==c||c?this.doRedrawShape(a):a.shape.updateBoundingBox(),e=!0);return e};mxCellRenderer.prototype.doRedrawShape=function(a){a.shape.redraw()};mxCellRenderer.prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.absolutePoints&&!b.bounds.equals(a)||null!=a.absolutePoints&&!mxUtils.equalPoints(b.points,a.absolutePoints)};
this.installListeners(a),a.view.graph.selectionCellsHandler.updateHandler(a))):b||null==a.shape||mxUtils.equalEntries(a.shape.style,a.style)&&!this.checkPlaceholderStyles(a)||(a.shape.resetStyles(),this.configureShape(a),a.view.graph.selectionCellsHandler.updateHandler(a),b=!0);null!=a.shape&&(this.createControl(a),b||this.isShapeInvalid(a,a.shape))&&(null!=a.absolutePoints?(a.shape.points=a.absolutePoints.slice(),a.shape.bounds=null):(a.shape.points=null,a.shape.bounds=new mxRectangle(a.x,a.y,a.width,
a.height)),a.shape.scale=a.view.scale,null==c||c?this.doRedrawShape(a):a.shape.updateBoundingBox(),e=!0);return e};mxCellRenderer.prototype.doRedrawShape=function(a){a.shape.redraw()};mxCellRenderer.prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.absolutePoints&&!b.bounds.equals(a)||null!=a.absolutePoints&&!mxUtils.equalPoints(b.points,a.absolutePoints)};
mxCellRenderer.prototype.destroy=function(a){null!=a.shape&&(null!=a.text&&(a.text.destroy(),a.text=null),null!=a.overlays&&(a.overlays.visit(function(a,c){c.destroy()}),a.overlays=null),null!=a.control&&(a.control.destroy(),a.control=null),a.shape.destroy(),a.shape=null)};
var mxEdgeStyle={EntityRelation:function(a,b,c,d,e){var f=a.view,g=f.graph;d=mxUtils.getValue(a.style,mxConstants.STYLE_SEGMENT,mxConstants.ENTITY_SEGMENT)*f.scale;var k=a.absolutePoints,l=k[0],m=k[k.length-1],k=!1;if(null!=l)b=new mxCellState,b.x=l.x,b.y=l.y;else if(null!=b){var n=mxUtils.getPortConstraints(b,a,!0,mxConstants.DIRECTION_MASK_NONE);n!=mxConstants.DIRECTION_MASK_NONE&&n!=mxConstants.DIRECTION_MASK_WEST+mxConstants.DIRECTION_MASK_EAST?k=n==mxConstants.DIRECTION_MASK_WEST:(l=g.getCellGeometry(b.cell),
l.relative?k=.5>=l.x:null!=c&&(k=c.x+c.width<b.x))}else return;l=!0;null!=m?(c=new mxCellState,c.x=m.x,c.y=m.y):null!=c&&(n=mxUtils.getPortConstraints(c,a,!1,mxConstants.DIRECTION_MASK_NONE),n!=mxConstants.DIRECTION_MASK_NONE&&n!=mxConstants.DIRECTION_MASK_WEST+mxConstants.DIRECTION_MASK_EAST?l=n==mxConstants.DIRECTION_MASK_WEST:(a=g.getCellGeometry(c.cell),a.relative?l=.5>=a.x:null!=b&&(l=b.x+b.width<c.x)));null!=b&&null!=c&&(a=k?b.x:b.x+b.width,b=f.getRoutingCenterY(b),g=l?c.x:c.x+c.width,c=f.getRoutingCenterY(c),

View file

@ -1,6 +1,6 @@
/**
* Copyright (c) 2006-2016, JGraph Ltd
* Copyright (c) 2006-2016, Gaudenz Alder
* Copyright (c) 2006-2017, JGraph Ltd
* Copyright (c) 2006-2017, Gaudenz Alder
*/
package com.mxgraph.io.gliffy.importer;
@ -39,7 +39,6 @@ import com.mxgraph.model.mxGeometry;
import com.mxgraph.online.Utils;
import com.mxgraph.util.mxDomUtils;
import com.mxgraph.util.mxPoint;
import com.mxgraph.util.mxUtils;
import com.mxgraph.util.mxXmlUtils;
import com.mxgraph.view.mxGraphHeadless;
@ -247,7 +246,7 @@ public class GliffyDiagramConverter
double rads = Math.toRadians(object.rotation);
double cos = Math.cos(rads);
double sin = Math.sin(rads);
waypoint = mxUtils.getRotatedPoint(waypoint, cos, sin, pivot);
waypoint = Utils.getRotatedPoint(waypoint, cos, sin, pivot);
}
mxPoints.add(waypoint);

View file

@ -4,6 +4,7 @@ import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
@ -53,8 +54,6 @@ public class GliffyObject implements PostDeserializable
public Constraints constraints;
public List<LinkMap> linkMap;
public mxCell mxObject;// the mxCell this gliffy object got converted into
public GliffyObject parent = null;
@ -228,8 +227,17 @@ public class GliffyObject implements PostDeserializable
public String getLink()
{
if (linkMap != null && !linkMap.isEmpty())
return linkMap.get(0).url;
if(children == null || children.isEmpty())
return null;
Iterator<GliffyObject> it = children.iterator();
while(it.hasNext())
{
GliffyObject child = it.next();
if(child.isLink())
return child.graphic.getLink().href;
}
return null;
}
@ -265,6 +273,11 @@ public class GliffyObject implements PostDeserializable
{
return graphic != null && graphic.getType().equals(Graphic.Type.LINE);
}
public boolean isLink()
{
return graphic != null && graphic.getType().equals(Graphic.Type.LINK);
}
private boolean isUml()
{

View file

@ -90,12 +90,20 @@ public class Graphic
{
public String text;
}
public static class GliffyLink
{
String href;
boolean renderIcon;
}
public Type type;
public GliffyText Text;
public GliffyLine Line;
public GliffyLink Link;
public GliffyShape Shape;
@ -126,6 +134,11 @@ public class Graphic
{
return Line;
}
public GliffyLink getLink()
{
return Link;
}
public GliffyShape getShape()
{

View file

@ -50,6 +50,10 @@ public class ProxyServlet extends HttpServlet
URL url = new URL(urlParam);
URLConnection connection = url.openConnection();
response.setHeader("Pragma", "no-cache"); // HTTP 1.0
response.setHeader("Cache-control", "private, no-cache, no-store");
response.setHeader("Expires", "0");
// Status code pass-through
if (connection instanceof HttpURLConnection)
{

View file

@ -1,7 +1,7 @@
CACHE MANIFEST
# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 09/26/2017 04:27 PM
# 09/28/2017 09:30 PM
app.html
index.html?offline=1

View file

@ -55,6 +55,24 @@
return result;
})();
// Forces CDN caches by passing URL parameters via URL hash
if (window.location.hash != null && window.location.hash.substring(0, 2) == '#P')
{
try
{
urlParams = JSON.parse(decodeURIComponent(window.location.hash.substring(2)));
if (urlParams.hash != null)
{
window.location.hash = urlParams.hash;
}
}
catch (e)
{
// ignore
}
}
// Redirects page if required
if (urlParams['dev'] != '1')
{

308
war/js/app.min.js vendored
View file

@ -97,13 +97,13 @@ l--,_+=n[s++]<<u,u+=8}if(a.nlen=(31&_)+257,_>>>=5,u-=5,a.ndist=(31&_)+1,_>>>=5,u
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a,b){var c="",d,e,f,g,k,l,m=0;for(null!=b&&b||(a=Base64._utf8_encode(a));m<a.length;)d=a.charCodeAt(m++),e=a.charCodeAt(m++),f=a.charCodeAt(m++),g=d>>2,d=(d&3)<<4|e>>4,k=(e&15)<<2|f>>6,l=f&63,isNaN(e)?k=l=64:isNaN(f)&&(l=64),c=c+this._keyStr.charAt(g)+this._keyStr.charAt(d)+this._keyStr.charAt(k)+this._keyStr.charAt(l);return c},decode:function(a,b){b=null!=b?b:!1;var c="",d,e,f,g,k,l=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,
"");l<a.length;)d=this._keyStr.indexOf(a.charAt(l++)),e=this._keyStr.indexOf(a.charAt(l++)),g=this._keyStr.indexOf(a.charAt(l++)),k=this._keyStr.indexOf(a.charAt(l++)),d=d<<2|e>>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|k,c+=String.fromCharCode(d),64!=g&&(c+=String.fromCharCode(e)),64!=k&&(c+=String.fromCharCode(f));b||(c=Base64._utf8_decode(c));return c},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):(127<d&&2048>d?b+=
String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){var b="",c=0,d;for(c1=c2=0;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3);return b}};window.urlParams=window.urlParams||{};window.isLocalStorage=window.isLocalStorage||!1;window.isSvgBrowser=window.isSvgBrowser||0>navigator.userAgent.indexOf("MSIE")||9<=document.documentMode;window.EXPORT_URL=window.EXPORT_URL||"https://exp.draw.io/ImageExport4/export";window.SAVE_URL=window.SAVE_URL||"save";window.OPEN_URL=window.OPEN_URL||"open";window.PROXY_URL=window.PROXY_URL||"proxy";window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img";
window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||(0<=navigator.userAgent.indexOf("MSIE")||urlParams.dev)&&"file:"!=window.location.protocol?"iconSearch":"https://www.draw.io/iconSearch";window.TEMPLATE_PATH=window.TEMPLATE_PATH||"/templates";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||RESOURCES_PATH+"/dia";window.DRAWIO_LOG_URL=window.DRAWIO_LOG_URL||"";window.mxLoadResources=window.mxLoadResources||!1;
window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||(0<=navigator.userAgent.indexOf("MSIE")||urlParams.dev)&&"file:"!=window.location.protocol?"iconSearch":"https://www.draw.io/iconSearch";window.TEMPLATE_PATH=window.TEMPLATE_PATH||"/templates";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||RESOURCES_PATH+"/dia";window.mxLoadResources=window.mxLoadResources||!1;
window.mxLanguage=window.mxLanguage||function(){var a="1"==urlParams.offline?"en":urlParams.lang;if(null==a&&"undefined"!=typeof JSON&&isLocalStorage)try{var b=localStorage.getItem(".drawio-config");null!=b&&(a=JSON.parse(b).language||null)}catch(c){isLocalStorage=!1}return a}();
window.mxLanguageMap=window.mxLanguageMap||{i18n:"",id:"Bahasa Indonesia",ms:"Bahasa Melayu",bs:"Bosanski",bg:"Bulgarian",ca:"Català",cs:"Čeština",da:"Dansk",de:"Deutsch",et:"Eesti",en:"English",es:"Español",fil:"Filipino",fr:"Français",it:"Italiano",hu:"Magyar",nl:"Nederlands",no:"Norsk",pl:"Polski","pt-br":"Português (Brasil)",pt:"Português (Portugal)",ro:"Română",fi:"Suomi",sv:"Svenska",vi:"Tiếng Việt",tr:"Türkçe",el:"Ελληνικά",ru:"Русский",sr:"Српски",uk:"Українська",he:"עברית",ar:"العربية",th:"ไทย",
ko:"한국어",ja:"日本語",zh:"中文(中国)","zh-tw":"中文(台灣)"};"undefined"===typeof window.mxBasePath&&(window.mxBasePath="mxgraph");if(null==window.mxLanguages){window.mxLanguages=[];for(var lang in mxLanguageMap)"en"!=lang&&window.mxLanguages.push(lang)}window.uiTheme=window.uiTheme||function(){var a=urlParams.ui;if(null==a&&"undefined"!==typeof JSON&&isLocalStorage)try{var b=localStorage.getItem(".drawio-config");null!=b&&(a=JSON.parse(b).ui||null)}catch(c){isLocalStorage=!1}return a}();
function setCurrentXml(a,b){null!=window.parent&&null!=window.parent.openFile&&window.parent.openFile.setData(a,b)}(function(){if("undefined"!==typeof JSON&&isLocalStorage)try{var a=localStorage.getItem(".drawio-config"),b=!0;null!=a&&(b=JSON.parse(a).showStartScreen);0==b&&(urlParams.splash="0")}catch(c){}})();var ex=urlParams["export"];null!=ex&&("http://"!=ex.substring(0,7)&&"https://"!=ex.substring(0,8)&&(ex="http://"+ex),EXPORT_URL=ex);
if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local)urlParams.analytics="0",urlParams.picker="0",urlParams.gapi="0",urlParams.db="0",urlParams.od="0",urlParams.gh="0";if("1"==urlParams.offline||"1"==urlParams.local)urlParams.math="0";"1"==urlParams.lightbox&&(urlParams.chrome="0");var host=window.location.host,searchString="draw.io",position=host.length-searchString.length,lastIndex=host.lastIndexOf(searchString,position);
-1!==lastIndex&&lastIndex===position&&"test.draw.io"!=host&&(window.DRAWIO_LOG_URL="https://log.draw.io");window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
function setCurrentXml(a,b){null!=window.parent&&null!=window.parent.openFile&&window.parent.openFile.setData(a,b)}
(function(){if("undefined"!==typeof JSON&&isLocalStorage)try{var a=localStorage.getItem(".drawio-config"),b=!0;null!=a&&(b=JSON.parse(a).showStartScreen);0==b&&(urlParams.splash="0")}catch(c){}a=urlParams["export"];null!=a&&("http://"!=a.substring(0,7)&&"https://"!=a.substring(0,8)&&(a="http://"+a),EXPORT_URL=a);window.DRAWIO_LOG_URL=window.DRAWIO_LOG_URL||"";b=window.location.host;"test.draw.io"!=b&&(a=b.length-7,b=b.lastIndexOf("draw.io",a),-1!==b&&b===a&&(window.DRAWIO_LOG_URL="https://log.draw.io"))})();
if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local)urlParams.analytics="0",urlParams.picker="0",urlParams.gapi="0",urlParams.db="0",urlParams.od="0",urlParams.gh="0";if("1"==urlParams.offline||"1"==urlParams.local)urlParams.math="0";"1"==urlParams.lightbox&&(urlParams.chrome="0");window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"3.7.6",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
@ -1016,8 +1016,9 @@ mxCellRenderer.registerShape(mxConstants.SHAPE_LABEL,mxLabel);mxCellRenderer.pro
mxCellRenderer.prototype.createIndicatorShape=function(a){a.shape.indicatorShape=this.getShape(a.view.graph.getIndicatorShape(a))};mxCellRenderer.prototype.getShape=function(a){return null!=a?mxCellRenderer.prototype.defaultShapes[a]:null};mxCellRenderer.prototype.getShapeConstructor=function(a){var b=this.getShape(a.style[mxConstants.STYLE_SHAPE]);null==b&&(b=a.view.graph.getModel().isEdge(a.cell)?this.defaultEdgeShape:this.defaultVertexShape);return b};
mxCellRenderer.prototype.configureShape=function(a){a.shape.apply(a);a.shape.image=a.view.graph.getImage(a);a.shape.indicatorColor=a.view.graph.getIndicatorColor(a);a.shape.indicatorStrokeColor=a.style[mxConstants.STYLE_INDICATOR_STROKECOLOR];a.shape.indicatorGradientColor=a.view.graph.getIndicatorGradientColor(a);a.shape.indicatorDirection=a.style[mxConstants.STYLE_INDICATOR_DIRECTION];a.shape.indicatorImage=a.view.graph.getIndicatorImage(a);this.postConfigureShape(a)};
mxCellRenderer.prototype.postConfigureShape=function(a){null!=a.shape&&(this.resolveColor(a,"indicatorColor",mxConstants.STYLE_FILLCOLOR),this.resolveColor(a,"indicatorGradientColor",mxConstants.STYLE_GRADIENTCOLOR),this.resolveColor(a,"fill",mxConstants.STYLE_FILLCOLOR),this.resolveColor(a,"stroke",mxConstants.STYLE_STROKECOLOR),this.resolveColor(a,"gradient",mxConstants.STYLE_GRADIENTCOLOR))};
mxCellRenderer.prototype.resolveColor=function(a,b,c){var d=a.shape[b],e=a.view.graph,f=null;"inherit"==d?f=e.model.getParent(a.cell):"swimlane"==d?(f=null!=e.model.getTerminal(a.cell,!1)?e.model.getTerminal(a.cell,!1):a.cell,f=e.getSwimlane(f),c=e.swimlaneIndicatorColorAttribute):"indicated"==d&&(a.shape[b]=a.shape.indicatorColor);null!=f&&(d=e.getView().getState(f),a.shape[b]=null,null!=d&&(a.shape[b]=null!=d.shape&&"indicatorColor"!=b?d.shape[b]:d.style[c]))};
mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
mxCellRenderer.prototype.checkPlaceholderStyles=function(a){if(null!=a.style)for(var b=["inherit","swimlane","indicated"],c=[mxConstants.STYLE_FILLCOLOR,mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_GRADIENTCOLOR],d=0;d<c.length;d++)if(0<=mxUtils.indexOf(b,a.style[c[d]]))return!0;return!1};
mxCellRenderer.prototype.resolveColor=function(a,b,c){var d=a.shape[b],e=a.view.graph,f=null;"inherit"==d?f=e.model.getParent(a.cell):"swimlane"==d?(a.shape[b]=c==mxConstants.STYLE_STROKECOLOR?"#000000":"#ffffff",f=null!=e.model.getTerminal(a.cell,!1)?e.model.getTerminal(a.cell,!1):a.cell,f=e.getSwimlane(f),c=e.swimlaneIndicatorColorAttribute):"indicated"==d&&(a.shape[b]=a.shape.indicatorColor);null!=f&&(d=e.getView().getState(f),a.shape[b]=null,null!=d&&(a.shape[b]=null!=d.shape&&"indicatorColor"!=
b?d.shape[b]:d.style[c]))};mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
mxCellRenderer.prototype.createLabel=function(a,b){var c=a.view.graph;c.getModel().isEdge(a.cell);if(0<a.style[mxConstants.STYLE_FONTSIZE]||null==a.style[mxConstants.STYLE_FONTSIZE]){var d=c.isHtmlLabel(a.cell)||null!=b&&mxUtils.isNode(b);a.text=new this.defaultTextShape(b,new mxRectangle,a.style[mxConstants.STYLE_ALIGN]||mxConstants.ALIGN_CENTER,c.getVerticalAlign(a),a.style[mxConstants.STYLE_FONTCOLOR],a.style[mxConstants.STYLE_FONTFAMILY],a.style[mxConstants.STYLE_FONTSIZE],a.style[mxConstants.STYLE_FONTSTYLE],
a.style[mxConstants.STYLE_SPACING],a.style[mxConstants.STYLE_SPACING_TOP],a.style[mxConstants.STYLE_SPACING_RIGHT],a.style[mxConstants.STYLE_SPACING_BOTTOM],a.style[mxConstants.STYLE_SPACING_LEFT],a.style[mxConstants.STYLE_HORIZONTAL],a.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],a.style[mxConstants.STYLE_LABEL_BORDERCOLOR],c.isWrapping(a.cell)&&c.isHtmlLabel(a.cell),c.isLabelClipped(a.cell),a.style[mxConstants.STYLE_OVERFLOW],a.style[mxConstants.STYLE_LABEL_PADDING],mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION,
mxConstants.DEFAULT_TEXT_DIRECTION));a.text.opacity=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_OPACITY,100);a.text.dialect=d?mxConstants.DIALECT_STRICTHTML:a.view.graph.dialect;a.text.style=a.style;a.text.state=a;this.initializeLabel(a,a.text);var e=!1,f=function(b){var d=a;if(mxClient.IS_TOUCH||e)d=mxEvent.getClientX(b),b=mxEvent.getClientY(b),b=mxUtils.convertPoint(c.container,d,b),d=c.view.getState(c.getCellAt(b.x,b.y));return d};mxEvent.addGestureListeners(a.text.node,mxUtils.bind(this,function(b){this.isLabelEvent(a,
@ -1054,8 +1055,8 @@ mxCellRenderer.prototype.insertStateAfter=function(a,b,c){for(var d=this.getShap
a.view.graph.container;)g=g.parentNode;null!=g&&null!=g.nextSibling?g.nextSibling!=d[e].node&&d[e].node.parentNode.insertBefore(d[e].node,g.nextSibling):d[e].node.parentNode.appendChild(d[e].node)}else null!=d[e].node.parentNode.firstChild&&d[e].node.parentNode.firstChild!=d[e].node&&d[e].node.parentNode.insertBefore(d[e].node,d[e].node.parentNode.firstChild);f?c=d[e].node:b=d[e].node}return[b,c]};mxCellRenderer.prototype.getShapesForState=function(a){return[a.shape,a.text,a.control]};
mxCellRenderer.prototype.redraw=function(a,b,c){b=this.redrawShape(a,b,c);null==a.shape||null!=c&&!c||(this.redrawLabel(a,b),this.redrawCellOverlays(a,b),this.redrawControl(a,b))};
mxCellRenderer.prototype.redrawShape=function(a,b,c){var d=a.view.graph.model,e=!1;null!=a.shape&&null!=a.shape.style&&null!=a.style&&a.shape.style[mxConstants.STYLE_SHAPE]!=a.style[mxConstants.STYLE_SHAPE]&&(a.shape.destroy(),a.shape=null);null==a.shape&&null!=a.view.graph.container&&a.cell!=a.view.currentRoot&&(d.isVertex(a.cell)||d.isEdge(a.cell))?(a.shape=this.createShape(a),null!=a.shape&&(a.shape.antiAlias=this.antiAlias,this.createIndicatorShape(a),this.initializeShape(a),this.createCellOverlays(a),
this.installListeners(a),a.view.graph.selectionCellsHandler.updateHandler(a))):null==a.shape||mxUtils.equalEntries(a.shape.style,a.style)||(a.shape.resetStyles(),this.configureShape(a),a.view.graph.selectionCellsHandler.updateHandler(a),b=!0);null!=a.shape&&(this.createControl(a),b||this.isShapeInvalid(a,a.shape))&&(null!=a.absolutePoints?(a.shape.points=a.absolutePoints.slice(),a.shape.bounds=null):(a.shape.points=null,a.shape.bounds=new mxRectangle(a.x,a.y,a.width,a.height)),a.shape.scale=a.view.scale,
null==c||c?this.doRedrawShape(a):a.shape.updateBoundingBox(),e=!0);return e};mxCellRenderer.prototype.doRedrawShape=function(a){a.shape.redraw()};mxCellRenderer.prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.absolutePoints&&!b.bounds.equals(a)||null!=a.absolutePoints&&!mxUtils.equalPoints(b.points,a.absolutePoints)};
this.installListeners(a),a.view.graph.selectionCellsHandler.updateHandler(a))):b||null==a.shape||mxUtils.equalEntries(a.shape.style,a.style)&&!this.checkPlaceholderStyles(a)||(a.shape.resetStyles(),this.configureShape(a),a.view.graph.selectionCellsHandler.updateHandler(a),b=!0);null!=a.shape&&(this.createControl(a),b||this.isShapeInvalid(a,a.shape))&&(null!=a.absolutePoints?(a.shape.points=a.absolutePoints.slice(),a.shape.bounds=null):(a.shape.points=null,a.shape.bounds=new mxRectangle(a.x,a.y,a.width,
a.height)),a.shape.scale=a.view.scale,null==c||c?this.doRedrawShape(a):a.shape.updateBoundingBox(),e=!0);return e};mxCellRenderer.prototype.doRedrawShape=function(a){a.shape.redraw()};mxCellRenderer.prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.absolutePoints&&!b.bounds.equals(a)||null!=a.absolutePoints&&!mxUtils.equalPoints(b.points,a.absolutePoints)};
mxCellRenderer.prototype.destroy=function(a){null!=a.shape&&(null!=a.text&&(a.text.destroy(),a.text=null),null!=a.overlays&&(a.overlays.visit(function(a,c){c.destroy()}),a.overlays=null),null!=a.control&&(a.control.destroy(),a.control=null),a.shape.destroy(),a.shape=null)};
var mxEdgeStyle={EntityRelation:function(a,b,c,d,e){var f=a.view,g=f.graph;d=mxUtils.getValue(a.style,mxConstants.STYLE_SEGMENT,mxConstants.ENTITY_SEGMENT)*f.scale;var k=a.absolutePoints,l=k[0],m=k[k.length-1],k=!1;if(null!=l)b=new mxCellState,b.x=l.x,b.y=l.y;else if(null!=b){var n=mxUtils.getPortConstraints(b,a,!0,mxConstants.DIRECTION_MASK_NONE);n!=mxConstants.DIRECTION_MASK_NONE&&n!=mxConstants.DIRECTION_MASK_WEST+mxConstants.DIRECTION_MASK_EAST?k=n==mxConstants.DIRECTION_MASK_WEST:(l=g.getCellGeometry(b.cell),
l.relative?k=.5>=l.x:null!=c&&(k=c.x+c.width<b.x))}else return;l=!0;null!=m?(c=new mxCellState,c.x=m.x,c.y=m.y):null!=c&&(n=mxUtils.getPortConstraints(c,a,!1,mxConstants.DIRECTION_MASK_NONE),n!=mxConstants.DIRECTION_MASK_NONE&&n!=mxConstants.DIRECTION_MASK_WEST+mxConstants.DIRECTION_MASK_EAST?l=n==mxConstants.DIRECTION_MASK_WEST:(a=g.getCellGeometry(c.cell),a.relative?l=.5>=a.x:null!=b&&(l=b.x+b.width<c.x)));null!=b&&null!=c&&(a=k?b.x:b.x+b.width,b=f.getRoutingCenterY(b),g=l?c.x:c.x+c.width,c=f.getRoutingCenterY(c),
@ -5913,64 +5914,65 @@ LocalFile.prototype.saveFile=function(a,b,d,c){this.title=a;this.updateFileData(
LocalFile.prototype.open=function(){this.ui.setFileData(this.getData());this.changeListener=mxUtils.bind(this,function(a,b){this.setModified(!0);this.addUnsavedStatus()});this.ui.editor.graph.model.addListener(mxEvent.CHANGE,this.changeListener)};LocalLibrary=function(a,b,d){LocalFile.call(this,a,b,d)};mxUtils.extend(LocalLibrary,LocalFile);LocalLibrary.prototype.getHash=function(){return"F"+this.getTitle()};LocalLibrary.prototype.isAutosave=function(){return!1};LocalLibrary.prototype.saveAs=function(a,b,d){this.saveFile(a,!1,b,d)};LocalLibrary.prototype.updateFileData=function(){};LocalLibrary.prototype.open=function(){};StorageFile=function(a,b,d){DrawioFile.call(this,a,b);this.title=d};mxUtils.extend(StorageFile,DrawioFile);StorageFile.prototype.autosaveDelay=2E3;StorageFile.prototype.maxAutosaveDelay=2E4;StorageFile.prototype.getMode=function(){return App.MODE_BROWSER};StorageFile.prototype.isAutosaveOptional=function(){return!0};StorageFile.prototype.getHash=function(){return"L"+encodeURIComponent(this.getTitle())};StorageFile.prototype.getTitle=function(){return this.title};
StorageFile.prototype.isRenamable=function(){return!0};StorageFile.prototype.save=function(a,b,d){this.saveAs(this.getTitle(),b,d)};StorageFile.prototype.saveAs=function(a,b,d){DrawioFile.prototype.save.apply(this,arguments);this.saveFile(a,!1,b,d)};
StorageFile.prototype.saveFile=function(a,b,d,c){if(this.isEditable()){var f=mxUtils.bind(this,function(){this.isRenamable()&&(this.title=a);try{this.ui.setLocalData(this.title,this.getData(),mxUtils.bind(this,function(){this.setModified(!1);this.contentChanged();null!=d&&d()}))}catch(g){null!=c&&c(g)}});this.isRenamable()&&"."==a.charAt(0)&&null!=c?c({message:mxResources.get("invalidName")}):this.ui.getLocalData(a,mxUtils.bind(this,function(b){this.isRenamable()&&this.getTitle()!=a&&null!=b?this.ui.confirm(mxResources.get("replaceIt",
[a]),f,c):f()}))}else null!=d&&d()};StorageFile.prototype.rename=function(a,b,d){var c=this.getTitle();this.title=a;this.hasSameExtension(c,a)||this.setData(this.ui.getFileData());this.saveFile(a,!1,mxUtils.bind(this,function(){c!=a&&this.ui.removeLocalData(c,b)}),d)};StorageFile.prototype.open=function(){DrawioFile.prototype.open.apply(this,arguments);this.saveFile(this.getTitle())};
[a]),f,c):f()}))}else null!=d&&d()};StorageFile.prototype.rename=function(a,b,d){var c=this.getTitle();c!=a?this.ui.getLocalData(a,mxUtils.bind(this,function(f){this.ui.confirm(mxResources.get("replaceIt",[a]),mxUtils.bind(this,function(){this.title=a;this.hasSameExtension(c,a)||this.setData(this.ui.getFileData());this.saveFile(a,!1,mxUtils.bind(this,function(){this.ui.removeLocalData(c,b)}),d)}),d)})):b()};StorageFile.prototype.open=function(){DrawioFile.prototype.open.apply(this,arguments);this.saveFile(this.getTitle())};
StorageFile.prototype.destroy=function(){DrawioFile.prototype.destroy.apply(this,arguments);null!=this.storageListener&&(mxEvent.removeListener(window,"storage",this.storageListener),this.storageListener=null)};StorageLibrary=function(a,b,d){StorageFile.call(this,a,b,d)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(a,b,d){this.saveFile(a,!1,b,d)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title};
StorageLibrary.prototype.isRenamable=function(a,b,d){return".scratchpad"!=this.title};StorageLibrary.prototype.open=function(){};UrlLibrary=function(a,b,d){StorageFile.call(this,a,b,d);a=d;b=a.lastIndexOf("/");0<=b&&(a=a.substring(b+1));this.fname=a};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(a,b,d){return!1};UrlLibrary.prototype.saveAs=function(a,b,d){};UrlLibrary.prototype.open=function(){};var StorageDialog=function(a,b,d){function c(c,f,u,g,t,p){function q(){mxEvent.addListener(h,"click",null!=p?p:function(){u!=App.MODE_GOOGLE||a.isDriveDomain()?u==App.MODE_GOOGLE&&a.spinner.spin(document.body,mxResources.get("authorizing"))?a.drive.checkToken(mxUtils.bind(this,function(){a.spinner.stop();a.setMode(u,m.checked);b()})):(a.setMode(u,m.checked),b()):window.location.hostname=DriveClient.prototype.newAppHostname})}var h=document.createElement("a");h.style.overflow="hidden";h.style.display=
mxClient.IS_QUIRKS?"inline":"inline-block";h.className="geBaseButton";h.style.fontSize="11px";h.style.position="relative";h.style.margin="4px";h.style.padding="8px 10px 12px 10px";h.style.width="68px";h.style.height="80px";h.style.whiteSpace="nowrap";h.setAttribute("title",f);mxClient.IS_QUIRKS&&(h.style.cssFloat="left",h.style.zoom="1");var x=document.createElement("div");x.style.textOverflow="ellipsis";x.style.overflow="hidden";if(null!=c){var l=document.createElement("img");l.setAttribute("src",
c);l.setAttribute("border","0");l.setAttribute("align","absmiddle");l.style.width="60px";l.style.height="60px";l.style.paddingBottom="6px";h.appendChild(l)}else x.style.paddingTop="5px",x.style.whiteSpace="normal",mxClient.IS_IOS?(h.style.padding="0px 10px 20px 10px",h.style.top="6px"):mxClient.IS_FF&&(x.style.paddingTop="0px",x.style.marginTop="-2px");h.appendChild(x);mxUtils.write(x,f);if(null!=t)for(c=0;c<t.length;c++)mxUtils.br(x),mxUtils.write(x,t[c]);if(null!=g&&null==a[g]){l.style.visibility=
"hidden";mxUtils.setOpacity(x,10);var z=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});z.spin(h);var v=window.setTimeout(function(){null==a[g]&&(z.stop(),h.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[g]&&(window.clearTimeout(v),mxUtils.setOpacity(x,100),l.style.visibility="",z.stop(),q(),"drive"==g&&null!=n.parentNode&&n.parentNode.removeChild(n))}))}else q();e.appendChild(h);
++k>=d&&(mxUtils.br(e),k=0)}d=null!=d?d:3;var f=document.createElement("div");f.style.textAlign="center";f.style.whiteSpace="nowrap";f.style.paddingTop="0px";f.style.paddingBottom="20px";var g=a.addLanguageMenu(f);null!=g&&(g.style.bottom="28px");if(!a.isOffline()&&1<a.getServiceCount()){g=document.createElement("a");g.setAttribute("href","https://support.draw.io/display/DO/Selecting+Storage");g.setAttribute("title",mxResources.get("help"));g.setAttribute("target","_blank");g.style.position="absolute";
g.style.textDecoration="none";g.style.cursor="pointer";g.style.fontSize="12px";g.style.bottom="28px";g.style.left="26px";g.style.color="gray";var h=document.createElement("img");h.setAttribute("border","0");h.setAttribute("valign","bottom");h.setAttribute("src",Editor.helpImage);h.style.marginRight="2px";g.appendChild(h);mxUtils.write(g,mxResources.get("help"));f.appendChild(g)}var l=document.createElement("div");l.style.position="absolute";l.style.cursor="pointer";l.style.fontSize="12px";l.style.bottom=
"28px";l.style.color="gray";mxUtils.write(l,mxResources.get("decideLater"));a.isOfflineApp()?l.style.right="20px":(mxUtils.setPrefixedStyle(l.style,"transform","translate(-50%,0)"),l.style.left="50%");this.init=function(){if(mxClient.IS_QUIRKS||8==document.documentMode)l.style.marginLeft=-Math.round(l.clientWidth/2)+"px"};f.appendChild(l);mxEvent.addListener(l,"click",function(){a.hideDialog();var b=Editor.useLocalStorage;a.createFile(a.defaultFilename,null,null,null,null,null,null,!0);Editor.useLocalStorage=
b});var e=document.createElement("div");mxClient.IS_QUIRKS&&(e.style.whiteSpace="nowrap",e.style.cssFloat="left");e.style.border="1px solid #d3d3d3";e.style.borderWidth="1px 0px 1px 0px";e.style.padding="12px 0px 12px 0px";var m=document.createElement("input");m.setAttribute("type","checkbox");m.setAttribute("checked","checked");m.defaultChecked=!0;var k=0,n=document.createElement("p"),g=document.createElement("p");g.style.fontSize="16pt";g.style.padding="0px";g.style.paddingTop="4px";g.style.paddingBottom=
"16px";g.style.margin="0px";g.style.color="gray";mxUtils.write(g,mxResources.get("saveDiagramsTo")+":");f.appendChild(g);"function"===typeof window.DriveClient&&c(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");null!=a.gitHub&&c(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub");"function"===typeof window.DropboxClient&&c(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox");"function"===typeof window.OneDriveClient&&
c(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");"function"===typeof window.TrelloClient&&c(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello");mxClient.IS_IOS&&"device"!=urlParams.storage||c(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||c(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER);f.appendChild(e);
g=document.createElement("p");g.style.marginTop="12px";g.style.marginBottom="6px";g.appendChild(m);h=document.createElement("span");h.style.color="gray";h.style.fontSize="12px";mxUtils.write(h," "+mxResources.get("rememberThisSetting"));g.appendChild(h);mxUtils.br(g);var p=a.getRecent();if(null!=p&&0<p.length){var v=document.createElement("select");v.style.marginTop="8px";v.style.width="140px";var t=document.createElement("option");t.setAttribute("value","");t.setAttribute("selected","selected");
t.style.textAlign="center";mxUtils.write(t,mxResources.get("openRecent")+"...");v.appendChild(t);for(t=0;t<p.length;t++)(function(a){var b=a.mode;b==App.MODE_GOOGLE?b="googleDrive":b==App.MODE_ONEDRIVE&&(b="oneDrive");var c=document.createElement("option");c.setAttribute("value",a.id);mxUtils.write(c,a.title+" ("+mxResources.get(b)+")");v.appendChild(c)})(p[t]);g.appendChild(v);mxEvent.addListener(v,"change",function(b){""!=v.value&&a.loadFile(v.value)})}else g.style.marginTop="20px",e.style.padding=
"30px 0px 26px 0px";!Graph.fileSupport||mxClient.IS_IE||mxClient.IS_IE11||(p=document.createElement("div"),p.style.cursor="pointer",p.style.padding="18px 0px 6px 0px",p.style.fontSize="12px",p.style.color="gray",mxUtils.write(p,mxResources.get("import")+" "+mxResources.get("gliffy")+", "+mxResources.get("formatVssx")+", "+mxResources.get("formatVsdx")+", "+mxResources.get("lucidchart")+"..."),mxEvent.addListener(p,"click",function(){var b=document.createElement("input");b.setAttribute("type","file");
mxEvent.addListener(b,"change",function(){null!=b.files&&(a.hideDialog(),a.openFiles(b.files,!0))});b.click()}),g.appendChild(p),e.style.paddingBottom="4px");e.appendChild(g);mxEvent.addListener(h,"click",function(a){m.checked=!m.checked;mxEvent.consume(a)});mxClient.IS_SVG&&isLocalStorage&&"0"!=urlParams.gapi&&(null==document.documentMode||10<=document.documentMode)&&window.setTimeout(function(){null==a.drive&&(n.style.padding="8px",n.style.fontSize="9pt",n.style.marginTop="-14px",n.innerHTML='<a style="background-color:#dcdcdc;padding:5px;color:black;text-decoration:none;" href="https://plus.google.com/u/0/+DrawIo1/posts/1HTrfsb5wDN" target="_blank"><img border="0" src="'+
mxGraph.prototype.warningImage.src+'" align="top"> '+mxResources.get("googleDriveMissingClickHere")+"</a>",f.appendChild(n))},5E3);this.container=f},SplashDialog=function(a){var b=document.createElement("div");b.style.textAlign="center";a.addLanguageMenu(b);var d=null,c=a.getServiceCount();!a.isOffline()&&1<c&&(d=document.createElement("a"),d.setAttribute("href","https://support.draw.io/display/DO/Selecting+Storage"),d.setAttribute("title",mxResources.get("help")),d.setAttribute("target","_blank"),
d.style.position="absolute",d.style.fontSize="12px",d.style.textDecoration="none",d.style.cursor="pointer",d.style.bottom="22px",d.style.left="26px",d.style.color="gray",c=document.createElement("img"),c.setAttribute("border","0"),c.setAttribute("valign","bottom"),c.setAttribute("src",Editor.helpImage),c.style.marginRight="2px",d.appendChild(c),mxUtils.write(d,mxResources.get("help")),b.appendChild(d));c=document.createElement("p");c.style.fontSize="16pt";c.style.padding="0px";c.style.paddingTop=
"2px";c.style.margin="0px";c.style.color="gray";var f=document.createElement("img");f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.style.width="40px";f.style.height="40px";f.style.marginRight="12px";f.style.paddingBottom="4px";var g="";a.mode==App.MODE_GOOGLE?(f.src=IMAGE_PATH+"/google-drive-logo.svg",g=mxResources.get("googleDrive"),null!=d&&d.setAttribute("href","https://support.draw.io/display/DO/Using+draw.io+with+Google+Drive")):a.mode==App.MODE_DROPBOX?(f.src=IMAGE_PATH+
"/dropbox-logo.svg",g=mxResources.get("dropbox"),null!=d&&d.setAttribute("href","https://support.draw.io/display/DO/Using+draw.io+with+Dropbox")):a.mode==App.MODE_ONEDRIVE?(f.src=IMAGE_PATH+"/onedrive-logo.svg",g=mxResources.get("oneDrive"),null!=d&&d.setAttribute("href","https://support.draw.io/display/DO/Using+draw.io+with+OneDrive")):a.mode==App.MODE_GITHUB?(f.src=IMAGE_PATH+"/github-logo.svg",g=mxResources.get("github")):a.mode==App.MODE_TRELLO?(f.src=IMAGE_PATH+"/trello-logo.svg",g=mxResources.get("trello")):
a.mode==App.MODE_BROWSER?(f.src=IMAGE_PATH+"/osa_database.png",g=mxResources.get("browser")):(f.src=IMAGE_PATH+"/osa_drive-harddisk.png",g=mxResources.get("device"));var h=document.createElement("div");h.style.margin="4px 0px 0px 0px";var l=document.createElement("button");l.className="geBigButton";l.style.overflow="hidden";l.style.width="340px";mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?(h.style.padding="42px 0px 56px 0px",l.style.marginBottom="12px"):(c.appendChild(f),mxUtils.write(c,g),b.appendChild(c),
h.style.border="1px solid #d3d3d3",h.style.borderWidth="1px 0px 1px 0px",h.style.padding="18px 0px 24px 0px",l.style.marginBottom="8px");mxClient.IS_QUIRKS&&(h.style.whiteSpace="nowrap",h.style.cssFloat="left");mxClient.IS_QUIRKS&&(l.style.width="340px");mxUtils.write(l,mxResources.get("createNewDiagram"));mxEvent.addListener(l,"click",function(){a.hideDialog();a.actions.get("new").funct()});h.appendChild(l);mxUtils.br(h);l=document.createElement("button");l.className="geBigButton";l.style.marginBottom=
"22px";l.style.overflow="hidden";l.style.width="340px";mxClient.IS_QUIRKS&&(l.style.width="340px");mxUtils.write(l,mxResources.get("openExistingDiagram"));mxEvent.addListener(l,"click",function(){a.actions.get("open").funct()});h.appendChild(l);d="undefined";a.mode==App.MODE_GOOGLE?d=mxResources.get("googleDrive"):a.mode==App.MODE_DROPBOX?d=mxResources.get("dropbox"):a.mode==App.MODE_ONEDRIVE?d=mxResources.get("oneDrive"):a.mode==App.MODE_GITHUB?d=mxResources.get("github"):a.mode==App.MODE_TRELLO?
d=mxResources.get("trello"):a.mode==App.MODE_DEVICE?d=mxResources.get("device"):a.mode==App.MODE_BROWSER&&(d=mxResources.get("browser"));mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(f=function(b){l.style.marginBottom="24px";var c=document.createElement("a");c.setAttribute("href","javascript:void(0)");c.style.display="block";c.style.marginTop="6px";mxUtils.write(c,mxResources.get("signOut"));l.style.marginBottom="16px";h.style.paddingBottom="18px";mxEvent.addListener(c,"click",function(){a.confirm(mxResources.get("areYouSure"),
function(){b()})});h.appendChild(c)},c=null!=a.drive?a.drive.getUser():null,a.mode==App.MODE_GOOGLE&&null!=c?(l.style.marginBottom="24px",f=document.createElement("a"),f.setAttribute("href","javascript:void(0)"),f.style.display="block",f.style.marginTop="6px",mxUtils.write(f,mxResources.get("changeUser")+" ("+c.displayName+")"),l.style.marginBottom="16px",h.style.paddingBottom="18px",mxEvent.addListener(f,"click",function(){a.hideDialog();a.drive.clearUserId();a.drive.setUser(null);gapi.auth.signOut();
a.setMode(App.MODE_GOOGLE);a.hideDialog();a.showSplash();a.drive.authorize(!1,mxUtils.bind(this,mxUtils.bind(this,function(){a.hideDialog();a.showSplash()})),mxUtils.bind(this,function(b){a.handleError(b,null,function(){a.hideDialog();a.showSplash()})}))}),h.appendChild(f)):a.mode==App.MODE_ONEDRIVE&&null!=a.oneDrive?f(function(){a.oneDrive.logout()}):a.mode==App.MODE_GITHUB&&null!=a.gitHub?f(function(){a.gitHub.logout();window.open("https://www.github.com/logout")}):a.mode==App.MODE_TRELLO&&null!=
a.trello?a.trello.isAuthorized()&&f(function(){a.trello.logout()}):a.mode==App.MODE_DROPBOX&&null!=a.dropbox&&f(function(){a.dropbox.logout();window.open("https://www.dropbox.com/logout")}),f=document.createElement("a"),f.setAttribute("href","javascript:void(0)"),f.style.display="block",f.style.marginTop="8px",mxUtils.write(f,mxResources.get("notUsingService",[d])),mxEvent.addListener(f,"click",function(){a.hideDialog(!1);a.setMode(null);a.clearMode();a.showSplash(!0)}),h.appendChild(f));b.appendChild(h);
this.container=b},ConfirmDialog=function(a,b,d,c,f,g,h,l,e){var m=document.createElement("div");m.style.textAlign="center";var k=document.createElement("div");k.style.padding="6px";k.style.overflow="auto";k.style.maxHeight="40px";mxClient.IS_QUIRKS&&(k.style.height="60px");mxUtils.write(k,b);m.appendChild(k);k=document.createElement("div");k.style.textAlign="center";k.style.whiteSpace="nowrap";var n=document.createElement("input");n.setAttribute("type","checkbox");g=mxUtils.button(g||mxResources.get("cancel"),
function(){a.hideDialog();null!=c&&c(n.checked)});g.className="geBtn";null!=l&&(g.innerHTML=l+"<br>"+g.innerHTML,g.style.paddingBottom="8px",g.style.paddingTop="8px",g.style.height="auto",g.style.width="40%");a.editor.cancelFirst&&k.appendChild(g);f=mxUtils.button(f||mxResources.get("ok"),function(){a.hideDialog();null!=d&&d(n.checked)});k.appendChild(f);null!=h?(f.innerHTML=h+"<br>"+f.innerHTML+"<br>",f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.className="geBtn",
f.style.width="40%"):f.className="geBtn gePrimaryBtn";a.editor.cancelFirst||k.appendChild(g);m.appendChild(k);e?(k.style.marginTop="10px",k=document.createElement("p"),k.style.marginTop="20px",k.appendChild(n),h=document.createElement("span"),mxUtils.write(h," "+mxResources.get("rememberThisSetting")),k.appendChild(h),m.appendChild(k),mxEvent.addListener(h,"click",function(a){n.checked=!n.checked;mxEvent.consume(a)})):k.style.marginTop="16px";this.container=m},ErrorDialog=function(a,b,d,c,f,g,h,l,
e){e=null!=e?e:!0;var m=document.createElement("div");m.style.textAlign="center";if(null!=b){var k=document.createElement("div");k.style.padding="0px";k.style.margin="0px";k.style.fontSize="18px";k.style.paddingBottom="16px";k.style.marginBottom="16px";k.style.borderBottom="1px solid #c0c0c0";k.style.color="gray";mxUtils.write(k,b);m.appendChild(k)}b=document.createElement("div");b.style.padding="6px";b.innerHTML=d;m.appendChild(b);d=document.createElement("div");d.style.marginTop="16px";d.style.textAlign=
"right";null!=g&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();g()}),b.className="geBtn",d.appendChild(b),d.style.textAlign="center");var n=mxUtils.button(c,function(){e&&a.hideDialog();null!=f&&f()});n.className="geBtn";d.appendChild(n);null!=h&&(c=mxUtils.button(h,function(){e&&a.hideDialog();null!=l&&l()}),c.className="geBtn gePrimaryBtn",d.appendChild(c));this.init=function(){n.focus()};m.appendChild(d);this.container=m},EmbedDialog=function(a,b,d,c,f){c=document.createElement("div");
var g=/^https?:\/\//.test(b)||/^mailto:\/\//.test(b);mxUtils.write(c,mxResources.get(5E5>b.length?g?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(c);var h=document.createElement("div");h.style.position="absolute";h.style.top="30px";h.style.right="30px";h.style.color="gray";mxUtils.write(h,a.formatFileSize(b.length));c.appendChild(h);var l=document.createElement("textarea");l.setAttribute("autocomplete","off");l.setAttribute("autocorrect","off");l.setAttribute("autocapitalize","off");l.setAttribute("spellcheck",
"false");l.style.marginTop="10px";l.style.resize="none";l.style.height="150px";l.style.width="440px";l.style.border="1px solid gray";l.value=mxResources.get("updatingDocument");c.appendChild(l);mxUtils.br(c);this.init=function(){window.setTimeout(function(){5E5>b.length?(l.value=b,l.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",!1,null)):(l.setAttribute("readonly","true"),l.value=b.substring(0,340)+"... ("+mxResources.get("drawingTooLarge")+
")")},0)};h=document.createElement("div");h.style.position="absolute";h.style.bottom="36px";h.style.right="32px";var e=null;mxClient.IS_CHROMEAPP&&!g||navigator.standalone||!(g||mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode))||(e=mxUtils.button(mxResources.get(5E5>b.length?"preview":"openInNewWindow"),function(){var c=5E5>b.length?l.value:b;if(null!=f)f(c);else if(g)try{var e=window.open(c);(null==d||0<d)&&window.setTimeout(mxUtils.bind(this,function(){null!=e&&null!=e.location.href&&
e.location.href.substring(0,8)!=c.substring(0,8)&&(e.close(),a.handleError({message:mxResources.get("drawingTooLarge")}))}),d||500)}catch(t){a.handleError({message:t.message||mxResources.get("drawingTooLarge")})}else{var m=window.open().document;m.writeln("<html><head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+b+"</body></html>");m.close()}}),e.className="geBtn",h.appendChild(e));if(!g||7500<b.length){var m=mxUtils.button(mxResources.get("download"),
function(){a.saveData("embed.txt","txt",b,"text/plain")});m.className="geBtn";h.appendChild(m)}if(g&&(!a.isOffline()||mxClient.IS_CHROMEAPP)){if(51200>b.length){var k=mxUtils.button("",function(){try{var b="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(l.value);window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),m=document.createElement("img");m.setAttribute("src",Editor.facebookImage);m.setAttribute("width","18");m.setAttribute("height",
"18");m.setAttribute("border","0");k.appendChild(m);k.setAttribute("title",mxResources.get("facebook")+" ("+a.formatFileSize(51200)+" max)");k.style.verticalAlign="bottom";k.style.paddingTop="4px";k.style.minWidth="46px";k.className="geBtn";h.appendChild(k)}7168>b.length&&(k=mxUtils.button("",function(){try{var b="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(l.value);window.open(b)}catch(p){a.handleError({message:p.message||
mxResources.get("drawingTooLarge")})}}),m=document.createElement("img"),m.setAttribute("src",Editor.tweetImage),m.setAttribute("width","18"),m.setAttribute("height","18"),m.setAttribute("border","0"),m.style.marginBottom="5px",k.appendChild(m),k.setAttribute("title",mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),k.style.verticalAlign="bottom",k.style.paddingTop="4px",k.style.minWidth="46px",k.className="geBtn",h.appendChild(k))}m=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});
h.appendChild(m);k=mxUtils.button(mxResources.get("copy"),function(){l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))});5E5>b.length?mxClient.IS_SF||null!=document.documentMode?m.className="geBtn gePrimaryBtn":(h.appendChild(k),k.className="geBtn gePrimaryBtn",m.className="geBtn"):(h.appendChild(e),m.className="geBtn",e.className="geBtn gePrimaryBtn");
c.appendChild(h);this.container=c},GoogleSitesDialog=function(a,b){function d(){var a=null!=D.getTitle()?D.getTitle():this.defaultFilename;if(A.checked&&""!=p.value){var b="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(p.value));null!=a&&(b+="&title="+encodeURIComponent(a));0<C.length&&(b+="&s="+C);""!=v.value&&"0"!=v.value&&(b+="&border="+v.value);""!=n.value&&(b+="&height="+n.value);b+="&pan="+(t.checked?"1":"0");b+="&zoom="+(q.checked?"1":"0");b+="&fit="+
(z.checked?"1":"0");b+="&resize="+(x.checked?"1":"0");b+="&x0="+Number(k.value);b+="&y0="+e;f.mathEnabled&&(b+="&math=1");u.checked?b+="&edit=_blank":w.checked&&(b+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));m.value=b}else D.constructor==DriveFile||D.constructor==DropboxFile?(b="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=p.value?b+=encodeURIComponent(mxUtils.htmlEntities(p.value))+"&type=3":(b+=D.getHash().substring(1),b=D.constructor==DropboxFile?b+"&type=2":
b+"&type=1"),null!=a&&(b+="&title="+encodeURIComponent(a)),""!=n.value&&(a=parseInt(n.value)+parseInt(k.value),b+="&height="+a),m.value=b):m.value=""}var c=document.createElement("div"),f=a.editor.graph,g=f.getGraphBounds(),h=f.view.scale,l=Math.floor(g.x/h-f.view.translate.x),e=Math.floor(g.y/h-f.view.translate.y);mxUtils.write(c,mxResources.get("googleGadget")+":");mxUtils.br(c);var m=document.createElement("input");m.setAttribute("type","text");m.style.marginBottom="8px";m.style.marginTop="2px";
m.style.width="410px";c.appendChild(m);mxUtils.br(c);this.init=function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?m.select():document.execCommand("selectAll",!1,null)};mxUtils.write(c,mxResources.get("top")+":");var k=document.createElement("input");k.setAttribute("type","text");k.setAttribute("size","4");k.style.marginRight="16px";k.style.marginLeft="4px";k.value=l;c.appendChild(k);mxUtils.write(c,mxResources.get("height")+":");var n=document.createElement("input");
n.setAttribute("type","text");n.setAttribute("size","4");n.style.marginLeft="4px";n.value=Math.ceil(g.height/h);c.appendChild(n);mxUtils.br(c);g=document.createElement("hr");g.setAttribute("size","1");g.style.marginBottom="16px";g.style.marginTop="16px";c.appendChild(g);mxUtils.write(c,mxResources.get("publicDiagramUrl")+":");mxUtils.br(c);var p=document.createElement("input");p.setAttribute("type","text");p.setAttribute("size","28");p.style.marginBottom="8px";p.style.marginTop="2px";p.style.width=
"410px";p.value=b||"";c.appendChild(p);mxUtils.br(c);mxUtils.write(c,mxResources.get("borderWidth")+":");var v=document.createElement("input");v.setAttribute("type","text");v.setAttribute("size","3");v.style.marginBottom="8px";v.style.marginLeft="4px";v.value="0";c.appendChild(v);mxUtils.br(c);var t=document.createElement("input");t.setAttribute("type","checkbox");t.setAttribute("checked","checked");t.defaultChecked=!0;t.style.marginLeft="16px";c.appendChild(t);mxUtils.write(c,mxResources.get("pan")+
" ");var q=document.createElement("input");q.setAttribute("type","checkbox");q.setAttribute("checked","checked");q.defaultChecked=!0;q.style.marginLeft="8px";c.appendChild(q);mxUtils.write(c,mxResources.get("zoom")+" ");var w=document.createElement("input");w.setAttribute("type","checkbox");w.style.marginLeft="8px";w.setAttribute("title",window.location.href);c.appendChild(w);mxUtils.write(c,mxResources.get("edit")+" ");var u=document.createElement("input");u.setAttribute("type","checkbox");u.style.marginLeft=
"8px";c.appendChild(u);mxUtils.write(c,mxResources.get("asNew")+" ");mxUtils.br(c);var x=document.createElement("input");x.setAttribute("type","checkbox");x.setAttribute("checked","checked");x.defaultChecked=!0;x.style.marginLeft="16px";c.appendChild(x);mxUtils.write(c,mxResources.get("resize")+" ");var z=document.createElement("input");z.setAttribute("type","checkbox");z.style.marginLeft="8px";c.appendChild(z);mxUtils.write(c,mxResources.get("fit")+" ");var A=document.createElement("input");A.setAttribute("type",
"checkbox");A.style.marginLeft="8px";c.appendChild(A);mxUtils.write(c,mxResources.get("embed")+" ");var C=a.getBasenames().join(";"),D=a.getCurrentFile();mxEvent.addListener(t,"change",d);mxEvent.addListener(q,"change",d);mxEvent.addListener(x,"change",d);mxEvent.addListener(z,"change",d);mxEvent.addListener(w,"change",d);mxEvent.addListener(u,"change",d);mxEvent.addListener(A,"change",d);mxEvent.addListener(n,"change",d);mxEvent.addListener(k,"change",d);mxEvent.addListener(v,"change",d);mxEvent.addListener(p,
"change",d);d();mxEvent.addListener(m,"click",function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?m.select():document.execCommand("selectAll",!1,null)});g=document.createElement("div");g.style.paddingTop="12px";g.style.textAlign="right";h=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});h.className="geBtn gePrimaryBtn";g.appendChild(h);c.appendChild(g);this.container=c},CreateGraphDialog=function(a,b,d){var c=document.createElement("div");
c.style.textAlign="right";this.init=function(){var b=document.createElement("div");b.style.position="relative";b.style.border="1px solid gray";b.style.width="100%";b.style.height="360px";b.style.overflow="hidden";b.style.marginBottom="16px";mxEvent.disableContextMenu(b);c.appendChild(b);var g=new Graph(b);g.setCellsCloneable(!0);g.setPanning(!0);g.setAllowDanglingEdges(!1);g.connectionHandler.select=!1;g.view.setTranslate(20,20);g.border=20;g.panningHandler.useLeftButtonForPanning=!0;var h="curved=1;";
g.cellRenderer.installCellOverlayListeners=function(a,b,c){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(c.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(c){b.fireEvent(new mxEventObject("pointerdown","event",c,"state",a))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(c.node,"touchstart",function(c){b.fireEvent(new mxEventObject("pointerdown","event",c,"state",a))})};g.getAllConnectionConstraints=function(){return null};
g.connectionHandler.marker.highlight.keepOnTop=!1;g.connectionHandler.createEdgeState=function(a){a=g.createEdge(null,null,null,null,null,h);return new mxCellState(this.graph.view,a,this.graph.getCellStyle(a))};var l=g.getDefaultParent(),e=mxUtils.bind(this,function(a){var b=new mxCellOverlay(this.connectImage,"Add outgoing");b.cursor="hand";b.addListener(mxEvent.CLICK,function(b,c){g.connectionHandler.reset();g.clearSelection();var d=g.getCellGeometry(a),m;n(function(){m=g.insertVertex(l,null,"Entry",
d.x,d.y,80,30,"rounded=1;");e(m);g.view.refresh(m);g.insertEdge(l,null,"",a,m,h)},function(){g.scrollCellToVisible(m)})});b.addListener("pointerdown",function(a,b){var c=b.getProperty("event"),e=b.getProperty("state");g.popupMenuHandler.hideMenu();g.stopEditing(!1);var d=mxUtils.convertPoint(g.container,mxEvent.getClientX(c),mxEvent.getClientY(c));g.connectionHandler.start(e,d.x,d.y);g.isMouseDown=!0;g.isMouseTrigger=mxEvent.isMouseEvent(c);mxEvent.consume(c)});g.addCellOverlay(a,b)});g.getModel().beginUpdate();
var m;try{m=g.insertVertex(l,null,"Start",0,0,80,30,"ellipse"),e(m)}finally{g.getModel().endUpdate()}var k;"horizontalTree"==d?(k=new mxCompactTreeLayout(g),k.edgeRouting=!1,k.levelDistance=30,h="edgeStyle=elbowEdgeStyle;elbow=horizontal;"):"verticalTree"==d?(k=new mxCompactTreeLayout(g,!1),k.edgeRouting=!1,k.levelDistance=30,h="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"verticalFlow"==d?k=new mxHierarchicalLayout(g,mxConstants.DIRECTION_NORTH):"horizontalFlow"==d?k=new mxHierarchicalLayout(g,mxConstants.DIRECTION_WEST):
"organic"==d?(k=new mxFastOrganicLayout(g,!1),k.forceConstant=80):"circle"==d&&(k=new mxCircleLayout(g));if(null!=k){var n=function(a,b){g.getModel().beginUpdate();try{null!=a&&a(),k.execute(g.getDefaultParent(),m)}catch(x){throw x;}finally{var c=new mxMorphing(g);c.addListener(mxEvent.DONE,mxUtils.bind(this,function(){g.getModel().endUpdate();null!=b&&b()}));c.startAnimation()}},p=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(a,b,c,e,d){p.apply(this,arguments);n()};g.resizeCell=
function(){mxGraph.prototype.resizeCell.apply(this,arguments);n()};g.connectionHandler.addListener(mxEvent.CONNECT,function(){n()})}var v=mxUtils.button(mxResources.get("close"),function(){a.confirm(mxResources.get("areYouSure"),function(){null!=b.parentNode&&(g.destroy(),b.parentNode.removeChild(b));a.hideDialog()})});v.className="geBtn";a.editor.cancelFirst&&c.appendChild(v);var t=mxUtils.button(mxResources.get("insert"),function(){g.clearCellOverlays();var c=a.editor.graph.getFreeInsertPoint(),
c=a.editor.graph.importCells(g.getModel().getChildren(g.getDefaultParent()),c.x,c.y),e=a.editor.graph.view,d=e.getBounds(c);d.x-=e.translate.x;d.y-=e.translate.y;a.editor.graph.scrollRectToVisible(d);a.editor.graph.setSelectionCells(c);null!=b.parentNode&&(g.destroy(),b.parentNode.removeChild(b));a.hideDialog()});c.appendChild(t);t.className="geBtn gePrimaryBtn";a.editor.cancelFirst||c.appendChild(v)};this.container=c};
++k>=d&&(mxUtils.br(e),k=0)}d=null!=d?d:3;var f=document.createElement("div");f.style.textAlign="center";f.style.whiteSpace="nowrap";f.style.paddingTop="0px";f.style.paddingBottom="20px";var g=a.addLanguageMenu(f,!0);null!=g&&(g.style.bottom=parseInt("28px")-2+"px");if(!a.isOffline()&&1<a.getServiceCount()){g=document.createElement("a");g.setAttribute("href","https://support.draw.io/display/DO/Selecting+Storage");g.setAttribute("title",mxResources.get("help"));g.setAttribute("target","_blank");g.style.position=
"absolute";g.style.textDecoration="none";g.style.cursor="pointer";g.style.fontSize="12px";g.style.bottom="28px";g.style.left="26px";g.style.color="gray";var h=document.createElement("img");h.setAttribute("border","0");h.setAttribute("valign","bottom");h.setAttribute("src",Editor.helpImage);h.style.marginRight="2px";g.appendChild(h);mxUtils.write(g,mxResources.get("help"));f.appendChild(g)}var l=document.createElement("div");l.style.position="absolute";l.style.cursor="pointer";l.style.fontSize="12px";
l.style.bottom="28px";l.style.color="gray";mxUtils.write(l,mxResources.get("decideLater"));a.isOfflineApp()?l.style.right="20px":(mxUtils.setPrefixedStyle(l.style,"transform","translate(-50%,0)"),l.style.left="50%");this.init=function(){if(mxClient.IS_QUIRKS||8==document.documentMode)l.style.marginLeft=-Math.round(l.clientWidth/2)+"px"};f.appendChild(l);mxEvent.addListener(l,"click",function(){a.hideDialog();var b=Editor.useLocalStorage;a.createFile(a.defaultFilename,null,null,null,null,null,null,
!0);Editor.useLocalStorage=b});var e=document.createElement("div");mxClient.IS_QUIRKS&&(e.style.whiteSpace="nowrap",e.style.cssFloat="left");e.style.border="1px solid #d3d3d3";e.style.borderWidth="1px 0px 1px 0px";e.style.padding="12px 0px 12px 0px";var m=document.createElement("input");m.setAttribute("type","checkbox");m.setAttribute("checked","checked");m.defaultChecked=!0;var k=0,n=document.createElement("p"),g=document.createElement("p");g.style.fontSize="16pt";g.style.padding="0px";g.style.paddingTop=
"4px";g.style.paddingBottom="16px";g.style.margin="0px";g.style.color="gray";mxUtils.write(g,mxResources.get("saveDiagramsTo")+":");f.appendChild(g);"function"===typeof window.DriveClient&&c(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");null!=a.gitHub&&c(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub");"function"===typeof window.DropboxClient&&c(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,
"dropbox");"function"===typeof window.OneDriveClient&&c(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");"function"===typeof window.TrelloClient&&c(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello");mxClient.IS_IOS&&"device"!=urlParams.storage||c(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||c(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),
App.MODE_BROWSER);f.appendChild(e);g=document.createElement("p");g.style.marginTop="12px";g.style.marginBottom="6px";g.appendChild(m);h=document.createElement("span");h.style.color="gray";h.style.fontSize="12px";mxUtils.write(h," "+mxResources.get("rememberThisSetting"));g.appendChild(h);mxUtils.br(g);var p=a.getRecent();if(null!=p&&0<p.length){var v=document.createElement("select");v.style.marginTop="8px";v.style.width="140px";var t=document.createElement("option");t.setAttribute("value","");t.setAttribute("selected",
"selected");t.style.textAlign="center";mxUtils.write(t,mxResources.get("openRecent")+"...");v.appendChild(t);for(t=0;t<p.length;t++)(function(a){var b=a.mode;b==App.MODE_GOOGLE?b="googleDrive":b==App.MODE_ONEDRIVE&&(b="oneDrive");var c=document.createElement("option");c.setAttribute("value",a.id);mxUtils.write(c,a.title+" ("+mxResources.get(b)+")");v.appendChild(c)})(p[t]);g.appendChild(v);mxEvent.addListener(v,"change",function(b){""!=v.value&&a.loadFile(v.value)})}else g.style.marginTop="20px",
e.style.padding="30px 0px 26px 0px";!Graph.fileSupport||mxClient.IS_IE||mxClient.IS_IE11||(p=document.createElement("div"),p.style.cursor="pointer",p.style.padding="18px 0px 6px 0px",p.style.fontSize="12px",p.style.color="gray",mxUtils.write(p,mxResources.get("import")+" "+mxResources.get("gliffy")+", "+mxResources.get("formatVssx")+", "+mxResources.get("formatVsdx")+", "+mxResources.get("lucidchart")+"..."),mxEvent.addListener(p,"click",function(){var b=document.createElement("input");b.setAttribute("type",
"file");mxEvent.addListener(b,"change",function(){null!=b.files&&(a.hideDialog(),a.openFiles(b.files,!0))});b.click()}),g.appendChild(p),e.style.paddingBottom="4px");e.appendChild(g);mxEvent.addListener(h,"click",function(a){m.checked=!m.checked;mxEvent.consume(a)});mxClient.IS_SVG&&isLocalStorage&&"0"!=urlParams.gapi&&(null==document.documentMode||10<=document.documentMode)&&window.setTimeout(function(){null==a.drive&&(n.style.padding="8px",n.style.fontSize="9pt",n.style.marginTop="-14px",n.innerHTML=
'<a style="background-color:#dcdcdc;padding:5px;color:black;text-decoration:none;" href="https://plus.google.com/u/0/+DrawIo1/posts/1HTrfsb5wDN" target="_blank"><img border="0" src="'+mxGraph.prototype.warningImage.src+'" align="top"> '+mxResources.get("googleDriveMissingClickHere")+"</a>",f.appendChild(n))},5E3);this.container=f},SplashDialog=function(a){var b=document.createElement("div");b.style.textAlign="center";a.addLanguageMenu(b,!0);var d=null,c=a.getServiceCount();!a.isOffline()&&1<c&&(d=
document.createElement("a"),d.setAttribute("href","https://support.draw.io/display/DO/Selecting+Storage"),d.setAttribute("title",mxResources.get("help")),d.setAttribute("target","_blank"),d.style.position="absolute",d.style.fontSize="12px",d.style.textDecoration="none",d.style.cursor="pointer",d.style.bottom="22px",d.style.left="26px",d.style.color="gray",c=document.createElement("img"),c.setAttribute("border","0"),c.setAttribute("valign","bottom"),c.setAttribute("src",Editor.helpImage),c.style.marginRight=
"2px",d.appendChild(c),mxUtils.write(d,mxResources.get("help")),b.appendChild(d));c=document.createElement("p");c.style.fontSize="16pt";c.style.padding="0px";c.style.paddingTop="2px";c.style.margin="0px";c.style.color="gray";var f=document.createElement("img");f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.style.width="40px";f.style.height="40px";f.style.marginRight="12px";f.style.paddingBottom="4px";var g="";a.mode==App.MODE_GOOGLE?(f.src=IMAGE_PATH+"/google-drive-logo.svg",g=
mxResources.get("googleDrive"),null!=d&&d.setAttribute("href","https://support.draw.io/display/DO/Using+draw.io+with+Google+Drive")):a.mode==App.MODE_DROPBOX?(f.src=IMAGE_PATH+"/dropbox-logo.svg",g=mxResources.get("dropbox"),null!=d&&d.setAttribute("href","https://support.draw.io/display/DO/Using+draw.io+with+Dropbox")):a.mode==App.MODE_ONEDRIVE?(f.src=IMAGE_PATH+"/onedrive-logo.svg",g=mxResources.get("oneDrive"),null!=d&&d.setAttribute("href","https://support.draw.io/display/DO/Using+draw.io+with+OneDrive")):
a.mode==App.MODE_GITHUB?(f.src=IMAGE_PATH+"/github-logo.svg",g=mxResources.get("github")):a.mode==App.MODE_TRELLO?(f.src=IMAGE_PATH+"/trello-logo.svg",g=mxResources.get("trello")):a.mode==App.MODE_BROWSER?(f.src=IMAGE_PATH+"/osa_database.png",g=mxResources.get("browser")):(f.src=IMAGE_PATH+"/osa_drive-harddisk.png",g=mxResources.get("device"));var h=document.createElement("div");h.style.margin="4px 0px 0px 0px";var l=document.createElement("button");l.className="geBigButton";l.style.overflow="hidden";
l.style.width="340px";mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?(h.style.padding="42px 0px 56px 0px",l.style.marginBottom="12px"):(c.appendChild(f),mxUtils.write(c,g),b.appendChild(c),h.style.border="1px solid #d3d3d3",h.style.borderWidth="1px 0px 1px 0px",h.style.padding="18px 0px 24px 0px",l.style.marginBottom="8px");mxClient.IS_QUIRKS&&(h.style.whiteSpace="nowrap",h.style.cssFloat="left");mxClient.IS_QUIRKS&&(l.style.width="340px");mxUtils.write(l,mxResources.get("createNewDiagram"));mxEvent.addListener(l,
"click",function(){a.hideDialog();a.actions.get("new").funct()});h.appendChild(l);mxUtils.br(h);l=document.createElement("button");l.className="geBigButton";l.style.marginBottom="22px";l.style.overflow="hidden";l.style.width="340px";mxClient.IS_QUIRKS&&(l.style.width="340px");mxUtils.write(l,mxResources.get("openExistingDiagram"));mxEvent.addListener(l,"click",function(){a.actions.get("open").funct()});h.appendChild(l);d="undefined";a.mode==App.MODE_GOOGLE?d=mxResources.get("googleDrive"):a.mode==
App.MODE_DROPBOX?d=mxResources.get("dropbox"):a.mode==App.MODE_ONEDRIVE?d=mxResources.get("oneDrive"):a.mode==App.MODE_GITHUB?d=mxResources.get("github"):a.mode==App.MODE_TRELLO?d=mxResources.get("trello"):a.mode==App.MODE_DEVICE?d=mxResources.get("device"):a.mode==App.MODE_BROWSER&&(d=mxResources.get("browser"));mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(f=function(b){l.style.marginBottom="24px";var c=document.createElement("a");c.setAttribute("href","javascript:void(0)");c.style.display="block";
c.style.marginTop="6px";mxUtils.write(c,mxResources.get("signOut"));l.style.marginBottom="16px";h.style.paddingBottom="18px";mxEvent.addListener(c,"click",function(){a.confirm(mxResources.get("areYouSure"),function(){b()})});h.appendChild(c)},c=null!=a.drive?a.drive.getUser():null,a.mode==App.MODE_GOOGLE&&null!=c?(l.style.marginBottom="24px",f=document.createElement("a"),f.setAttribute("href","javascript:void(0)"),f.style.display="block",f.style.marginTop="6px",mxUtils.write(f,mxResources.get("changeUser")+
" ("+c.displayName+")"),l.style.marginBottom="16px",h.style.paddingBottom="18px",mxEvent.addListener(f,"click",function(){a.hideDialog();a.drive.clearUserId();a.drive.setUser(null);gapi.auth.signOut();a.setMode(App.MODE_GOOGLE);a.hideDialog();a.showSplash();a.drive.authorize(!1,mxUtils.bind(this,mxUtils.bind(this,function(){a.hideDialog();a.showSplash()})),mxUtils.bind(this,function(b){a.handleError(b,null,function(){a.hideDialog();a.showSplash()})}))}),h.appendChild(f)):a.mode==App.MODE_ONEDRIVE&&
null!=a.oneDrive?f(function(){a.oneDrive.logout()}):a.mode==App.MODE_GITHUB&&null!=a.gitHub?f(function(){a.gitHub.logout();window.open("https://www.github.com/logout")}):a.mode==App.MODE_TRELLO&&null!=a.trello?a.trello.isAuthorized()&&f(function(){a.trello.logout()}):a.mode==App.MODE_DROPBOX&&null!=a.dropbox&&f(function(){a.dropbox.logout();window.open("https://www.dropbox.com/logout")}),f=document.createElement("a"),f.setAttribute("href","javascript:void(0)"),f.style.display="block",f.style.marginTop=
"8px",mxUtils.write(f,mxResources.get("notUsingService",[d])),mxEvent.addListener(f,"click",function(){a.hideDialog(!1);a.setMode(null);a.clearMode();a.showSplash(!0)}),h.appendChild(f));b.appendChild(h);this.container=b},ConfirmDialog=function(a,b,d,c,f,g,h,l,e){var m=document.createElement("div");m.style.textAlign="center";var k=document.createElement("div");k.style.padding="6px";k.style.overflow="auto";k.style.maxHeight="40px";mxClient.IS_QUIRKS&&(k.style.height="60px");mxUtils.write(k,b);m.appendChild(k);
k=document.createElement("div");k.style.textAlign="center";k.style.whiteSpace="nowrap";var n=document.createElement("input");n.setAttribute("type","checkbox");g=mxUtils.button(g||mxResources.get("cancel"),function(){a.hideDialog();null!=c&&c(n.checked)});g.className="geBtn";null!=l&&(g.innerHTML=l+"<br>"+g.innerHTML,g.style.paddingBottom="8px",g.style.paddingTop="8px",g.style.height="auto",g.style.width="40%");a.editor.cancelFirst&&k.appendChild(g);f=mxUtils.button(f||mxResources.get("ok"),function(){a.hideDialog();
null!=d&&d(n.checked)});k.appendChild(f);null!=h?(f.innerHTML=h+"<br>"+f.innerHTML+"<br>",f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";a.editor.cancelFirst||k.appendChild(g);m.appendChild(k);e?(k.style.marginTop="10px",k=document.createElement("p"),k.style.marginTop="20px",k.appendChild(n),h=document.createElement("span"),mxUtils.write(h," "+mxResources.get("rememberThisSetting")),k.appendChild(h),
m.appendChild(k),mxEvent.addListener(h,"click",function(a){n.checked=!n.checked;mxEvent.consume(a)})):k.style.marginTop="16px";this.container=m},ErrorDialog=function(a,b,d,c,f,g,h,l,e){e=null!=e?e:!0;var m=document.createElement("div");m.style.textAlign="center";if(null!=b){var k=document.createElement("div");k.style.padding="0px";k.style.margin="0px";k.style.fontSize="18px";k.style.paddingBottom="16px";k.style.marginBottom="16px";k.style.borderBottom="1px solid #c0c0c0";k.style.color="gray";mxUtils.write(k,
b);m.appendChild(k)}b=document.createElement("div");b.style.padding="6px";b.innerHTML=d;m.appendChild(b);d=document.createElement("div");d.style.marginTop="16px";d.style.textAlign="right";null!=g&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();g()}),b.className="geBtn",d.appendChild(b),d.style.textAlign="center");var n=mxUtils.button(c,function(){e&&a.hideDialog();null!=f&&f()});n.className="geBtn";d.appendChild(n);null!=h&&(c=mxUtils.button(h,function(){e&&a.hideDialog();
null!=l&&l()}),c.className="geBtn gePrimaryBtn",d.appendChild(c));this.init=function(){n.focus()};m.appendChild(d);this.container=m},EmbedDialog=function(a,b,d,c,f){c=document.createElement("div");var g=/^https?:\/\//.test(b)||/^mailto:\/\//.test(b);mxUtils.write(c,mxResources.get(5E5>b.length?g?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(c);var h=document.createElement("div");h.style.position="absolute";h.style.top="30px";h.style.right="30px";h.style.color="gray";mxUtils.write(h,a.formatFileSize(b.length));
c.appendChild(h);var l=document.createElement("textarea");l.setAttribute("autocomplete","off");l.setAttribute("autocorrect","off");l.setAttribute("autocapitalize","off");l.setAttribute("spellcheck","false");l.style.marginTop="10px";l.style.resize="none";l.style.height="150px";l.style.width="440px";l.style.border="1px solid gray";l.value=mxResources.get("updatingDocument");c.appendChild(l);mxUtils.br(c);this.init=function(){window.setTimeout(function(){5E5>b.length?(l.value=b,l.focus(),mxClient.IS_GC||
mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",!1,null)):(l.setAttribute("readonly","true"),l.value=b.substring(0,340)+"... ("+mxResources.get("drawingTooLarge")+")")},0)};h=document.createElement("div");h.style.position="absolute";h.style.bottom="36px";h.style.right="32px";var e=null;mxClient.IS_CHROMEAPP&&!g||navigator.standalone||!(g||mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode))||(e=mxUtils.button(mxResources.get(5E5>
b.length?"preview":"openInNewWindow"),function(){var c=5E5>b.length?l.value:b;if(null!=f)f(c);else if(g)try{var e=window.open(c);(null==d||0<d)&&window.setTimeout(mxUtils.bind(this,function(){null!=e&&null!=e.location.href&&e.location.href.substring(0,8)!=c.substring(0,8)&&(e.close(),a.handleError({message:mxResources.get("drawingTooLarge")}))}),d||500)}catch(t){a.handleError({message:t.message||mxResources.get("drawingTooLarge")})}else{var m=window.open().document;m.writeln("<html><head><title>"+
encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+b+"</body></html>");m.close()}}),e.className="geBtn",h.appendChild(e));if(!g||7500<b.length){var m=mxUtils.button(mxResources.get("download"),function(){a.saveData("embed.txt","txt",b,"text/plain")});m.className="geBtn";h.appendChild(m)}if(g&&(!a.isOffline()||mxClient.IS_CHROMEAPP)){if(51200>b.length){var k=mxUtils.button("",function(){try{var b="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(l.value);
window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),m=document.createElement("img");m.setAttribute("src",Editor.facebookImage);m.setAttribute("width","18");m.setAttribute("height","18");m.setAttribute("border","0");k.appendChild(m);k.setAttribute("title",mxResources.get("facebook")+" ("+a.formatFileSize(51200)+" max)");k.style.verticalAlign="bottom";k.style.paddingTop="4px";k.style.minWidth="46px";k.className="geBtn";h.appendChild(k)}7168>b.length&&(k=
mxUtils.button("",function(){try{var b="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(l.value);window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),m=document.createElement("img"),m.setAttribute("src",Editor.tweetImage),m.setAttribute("width","18"),m.setAttribute("height","18"),m.setAttribute("border","0"),m.style.marginBottom="5px",k.appendChild(m),k.setAttribute("title",
mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),k.style.verticalAlign="bottom",k.style.paddingTop="4px",k.style.minWidth="46px",k.className="geBtn",h.appendChild(k))}m=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});h.appendChild(m);k=mxUtils.button(mxResources.get("copy"),function(){l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))});
5E5>b.length?mxClient.IS_SF||null!=document.documentMode?m.className="geBtn gePrimaryBtn":(h.appendChild(k),k.className="geBtn gePrimaryBtn",m.className="geBtn"):(h.appendChild(e),m.className="geBtn",e.className="geBtn gePrimaryBtn");c.appendChild(h);this.container=c},GoogleSitesDialog=function(a,b){function d(){var a=null!=D.getTitle()?D.getTitle():this.defaultFilename;if(A.checked&&""!=p.value){var b="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(p.value));
null!=a&&(b+="&title="+encodeURIComponent(a));0<C.length&&(b+="&s="+C);""!=v.value&&"0"!=v.value&&(b+="&border="+v.value);""!=n.value&&(b+="&height="+n.value);b+="&pan="+(t.checked?"1":"0");b+="&zoom="+(q.checked?"1":"0");b+="&fit="+(z.checked?"1":"0");b+="&resize="+(x.checked?"1":"0");b+="&x0="+Number(k.value);b+="&y0="+e;f.mathEnabled&&(b+="&math=1");u.checked?b+="&edit=_blank":w.checked&&(b+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));m.value=b}else D.constructor==
DriveFile||D.constructor==DropboxFile?(b="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=p.value?b+=encodeURIComponent(mxUtils.htmlEntities(p.value))+"&type=3":(b+=D.getHash().substring(1),b=D.constructor==DropboxFile?b+"&type=2":b+"&type=1"),null!=a&&(b+="&title="+encodeURIComponent(a)),""!=n.value&&(a=parseInt(n.value)+parseInt(k.value),b+="&height="+a),m.value=b):m.value=""}var c=document.createElement("div"),f=a.editor.graph,g=f.getGraphBounds(),h=f.view.scale,l=Math.floor(g.x/h-f.view.translate.x),
e=Math.floor(g.y/h-f.view.translate.y);mxUtils.write(c,mxResources.get("googleGadget")+":");mxUtils.br(c);var m=document.createElement("input");m.setAttribute("type","text");m.style.marginBottom="8px";m.style.marginTop="2px";m.style.width="410px";c.appendChild(m);mxUtils.br(c);this.init=function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?m.select():document.execCommand("selectAll",!1,null)};mxUtils.write(c,mxResources.get("top")+":");var k=document.createElement("input");
k.setAttribute("type","text");k.setAttribute("size","4");k.style.marginRight="16px";k.style.marginLeft="4px";k.value=l;c.appendChild(k);mxUtils.write(c,mxResources.get("height")+":");var n=document.createElement("input");n.setAttribute("type","text");n.setAttribute("size","4");n.style.marginLeft="4px";n.value=Math.ceil(g.height/h);c.appendChild(n);mxUtils.br(c);g=document.createElement("hr");g.setAttribute("size","1");g.style.marginBottom="16px";g.style.marginTop="16px";c.appendChild(g);mxUtils.write(c,
mxResources.get("publicDiagramUrl")+":");mxUtils.br(c);var p=document.createElement("input");p.setAttribute("type","text");p.setAttribute("size","28");p.style.marginBottom="8px";p.style.marginTop="2px";p.style.width="410px";p.value=b||"";c.appendChild(p);mxUtils.br(c);mxUtils.write(c,mxResources.get("borderWidth")+":");var v=document.createElement("input");v.setAttribute("type","text");v.setAttribute("size","3");v.style.marginBottom="8px";v.style.marginLeft="4px";v.value="0";c.appendChild(v);mxUtils.br(c);
var t=document.createElement("input");t.setAttribute("type","checkbox");t.setAttribute("checked","checked");t.defaultChecked=!0;t.style.marginLeft="16px";c.appendChild(t);mxUtils.write(c,mxResources.get("pan")+" ");var q=document.createElement("input");q.setAttribute("type","checkbox");q.setAttribute("checked","checked");q.defaultChecked=!0;q.style.marginLeft="8px";c.appendChild(q);mxUtils.write(c,mxResources.get("zoom")+" ");var w=document.createElement("input");w.setAttribute("type","checkbox");
w.style.marginLeft="8px";w.setAttribute("title",window.location.href);c.appendChild(w);mxUtils.write(c,mxResources.get("edit")+" ");var u=document.createElement("input");u.setAttribute("type","checkbox");u.style.marginLeft="8px";c.appendChild(u);mxUtils.write(c,mxResources.get("asNew")+" ");mxUtils.br(c);var x=document.createElement("input");x.setAttribute("type","checkbox");x.setAttribute("checked","checked");x.defaultChecked=!0;x.style.marginLeft="16px";c.appendChild(x);mxUtils.write(c,mxResources.get("resize")+
" ");var z=document.createElement("input");z.setAttribute("type","checkbox");z.style.marginLeft="8px";c.appendChild(z);mxUtils.write(c,mxResources.get("fit")+" ");var A=document.createElement("input");A.setAttribute("type","checkbox");A.style.marginLeft="8px";c.appendChild(A);mxUtils.write(c,mxResources.get("embed")+" ");var C=a.getBasenames().join(";"),D=a.getCurrentFile();mxEvent.addListener(t,"change",d);mxEvent.addListener(q,"change",d);mxEvent.addListener(x,"change",d);mxEvent.addListener(z,
"change",d);mxEvent.addListener(w,"change",d);mxEvent.addListener(u,"change",d);mxEvent.addListener(A,"change",d);mxEvent.addListener(n,"change",d);mxEvent.addListener(k,"change",d);mxEvent.addListener(v,"change",d);mxEvent.addListener(p,"change",d);d();mxEvent.addListener(m,"click",function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?m.select():document.execCommand("selectAll",!1,null)});g=document.createElement("div");g.style.paddingTop="12px";g.style.textAlign=
"right";h=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});h.className="geBtn gePrimaryBtn";g.appendChild(h);c.appendChild(g);this.container=c},CreateGraphDialog=function(a,b,d){var c=document.createElement("div");c.style.textAlign="right";this.init=function(){var b=document.createElement("div");b.style.position="relative";b.style.border="1px solid gray";b.style.width="100%";b.style.height="360px";b.style.overflow="hidden";b.style.marginBottom="16px";mxEvent.disableContextMenu(b);
c.appendChild(b);var g=new Graph(b);g.setCellsCloneable(!0);g.setPanning(!0);g.setAllowDanglingEdges(!1);g.connectionHandler.select=!1;g.view.setTranslate(20,20);g.border=20;g.panningHandler.useLeftButtonForPanning=!0;var h="curved=1;";g.cellRenderer.installCellOverlayListeners=function(a,b,c){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(c.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(c){b.fireEvent(new mxEventObject("pointerdown","event",
c,"state",a))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(c.node,"touchstart",function(c){b.fireEvent(new mxEventObject("pointerdown","event",c,"state",a))})};g.getAllConnectionConstraints=function(){return null};g.connectionHandler.marker.highlight.keepOnTop=!1;g.connectionHandler.createEdgeState=function(a){a=g.createEdge(null,null,null,null,null,h);return new mxCellState(this.graph.view,a,this.graph.getCellStyle(a))};var l=g.getDefaultParent(),e=mxUtils.bind(this,function(a){var b=
new mxCellOverlay(this.connectImage,"Add outgoing");b.cursor="hand";b.addListener(mxEvent.CLICK,function(b,c){g.connectionHandler.reset();g.clearSelection();var d=g.getCellGeometry(a),m;n(function(){m=g.insertVertex(l,null,"Entry",d.x,d.y,80,30,"rounded=1;");e(m);g.view.refresh(m);g.insertEdge(l,null,"",a,m,h)},function(){g.scrollCellToVisible(m)})});b.addListener("pointerdown",function(a,b){var c=b.getProperty("event"),d=b.getProperty("state");g.popupMenuHandler.hideMenu();g.stopEditing(!1);var e=
mxUtils.convertPoint(g.container,mxEvent.getClientX(c),mxEvent.getClientY(c));g.connectionHandler.start(d,e.x,e.y);g.isMouseDown=!0;g.isMouseTrigger=mxEvent.isMouseEvent(c);mxEvent.consume(c)});g.addCellOverlay(a,b)});g.getModel().beginUpdate();var m;try{m=g.insertVertex(l,null,"Start",0,0,80,30,"ellipse"),e(m)}finally{g.getModel().endUpdate()}var k;"horizontalTree"==d?(k=new mxCompactTreeLayout(g),k.edgeRouting=!1,k.levelDistance=30,h="edgeStyle=elbowEdgeStyle;elbow=horizontal;"):"verticalTree"==
d?(k=new mxCompactTreeLayout(g,!1),k.edgeRouting=!1,k.levelDistance=30,h="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"verticalFlow"==d?k=new mxHierarchicalLayout(g,mxConstants.DIRECTION_NORTH):"horizontalFlow"==d?k=new mxHierarchicalLayout(g,mxConstants.DIRECTION_WEST):"organic"==d?(k=new mxFastOrganicLayout(g,!1),k.forceConstant=80):"circle"==d&&(k=new mxCircleLayout(g));if(null!=k){var n=function(a,b){g.getModel().beginUpdate();try{null!=a&&a(),k.execute(g.getDefaultParent(),m)}catch(x){throw x;
}finally{var c=new mxMorphing(g);c.addListener(mxEvent.DONE,mxUtils.bind(this,function(){g.getModel().endUpdate();null!=b&&b()}));c.startAnimation()}},p=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(a,b,c,d,e){p.apply(this,arguments);n()};g.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);n()};g.connectionHandler.addListener(mxEvent.CONNECT,function(){n()})}var v=mxUtils.button(mxResources.get("close"),function(){a.confirm(mxResources.get("areYouSure"),
function(){null!=b.parentNode&&(g.destroy(),b.parentNode.removeChild(b));a.hideDialog()})});v.className="geBtn";a.editor.cancelFirst&&c.appendChild(v);var t=mxUtils.button(mxResources.get("insert"),function(){g.clearCellOverlays();var c=a.editor.graph.getFreeInsertPoint(),c=a.editor.graph.importCells(g.getModel().getChildren(g.getDefaultParent()),c.x,c.y),d=a.editor.graph.view,e=d.getBounds(c);e.x-=d.translate.x;e.y-=d.translate.y;a.editor.graph.scrollRectToVisible(e);a.editor.graph.setSelectionCells(c);
null!=b.parentNode&&(g.destroy(),b.parentNode.removeChild(b));a.hideDialog()});c.appendChild(t);t.className="geBtn gePrimaryBtn";a.editor.cancelFirst||c.appendChild(v)};this.container=c};
CreateGraphDialog.prototype.connectImage=new mxImage(mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjQ3OTk0QjMyRDcyMTFFNThGQThGNDVBMjNBMjFDMzkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjQ3OTk0QjQyRDcyMTFFNThGQThGNDVBMjNBMjFDMzkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyRjA0N0I2MjJENzExMUU1OEZBOEY0NUEyM0EyMUMzOSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGNDc5OTRCMjJENzIxMUU1OEZBOEY0NUEyM0EyMUMzOSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PjIf+MgAAATlSURBVHjanFZraFxFFD735u4ru3ls0yZG26ShgmJoKK1J2vhIYzBgRdtIURHyw1hQUH9IxIgI2h8iCEUF/1RRlNQYCsYfCTHVhiTtNolpZCEStqSC22xIsrs1bDfu7t37Gs/cO3Ozxs1DBw73zpk555vzmHNGgJ0NYatFgmNLYUHYUoHASMz5ijmgVLmxgfKCUiBxC4ACJAeSG8nb1dVVOTc3dyoSibwWDofPBIPBJzo7O8vpGtvjpDICGztxkciECpF2LS0tvZtOpwNkk5FKpcYXFxffwL1+JuPgllPj8nk1F6RoaGjoKCqZ5ApljZDZO4SMRA0SuG2QUJIQRV8HxMOM9vf3H0ZZH9Nhg20MMl2QkFwjIyNHWlpahtADnuUMwLcRHX5aNSBjCJYEsSSLUeLEbhGe3ytCmQtA1/XY+Pj46dbW1iDuyCJp9BC5ycBj4hoeHq5ra2sbw0Xn1ZgBZ+dVkA1Lc+6p0Ck2p0QS4Ox9EhwpEylYcmBg4LH29vYQLilIOt0u5FhDfevNZDI/u93uw6PLOrwTUtjxrbPYbhD42WgMrF8JmR894ICmCgnQjVe8Xu8pXEkzMJKbuo5oNPomBbm1ZsD7s2kwFA1JZ6QBUXWT1nmGNc/qoMgavDcrQzxjQGFh4aOYIJ0sFAXcEtui4uLiVjr5KpSBVFYDDZVrWUaKRRWSAYeK0fmKykgDXbVoNaPChRuyqdDv97czL5nXxQbq6empQmsaklkDBiNpSwFVrmr2P6UyicD5piI4f8wHh0oEm8/p4h8pyGiEWvVQd3e3nxtjAzU1NR2jP7NRBWQ8GbdEzzJAmc0V3RR4cI8Dvmwuhc8fKUFA0d6/ltHg5p+Kuaejo6OeY0jcNJ/PV00ZS0nFUoZRvvFS1bZFsKHCCQ2Pl8H0chY+C96B6ZUsrCQ1qKtwQVFRURW/QhIXMAzDPAZ6BgOr8tTa8dDxCmiYGApaJbJMxSzV+brE8pdgWkcpY5dbMF1AR9XH8/xu2ilef48bvn92n82ZwHh+8ssqTEXS9p7dHisiiURikd8PbpExNTU1UVNTA3V3Y7lC16n0gpB/NwpNcZjfa7dScC4Qh0kOQCwnlEgi3F/hMVl9fX0zvKrzSk2lfXjRhj0eT/2rvWG4+Pta3oJY7XfC3hInXAv/ldeFLx8shQ+eqQL0UAAz7ylkpej5eNZRVBWL6BU6ef14OYiY1oqyTtmsavr/5koaRucT1pzx+ZpL1+GV5nLutksUgIcmtwTRiuuVZXnU5XId7A2swJkfFsymRWC91hHg1Viw6x23+7vn9sPJ+j20BE1hCXqSWaNSQ8ScbknRZWxub1PGCw/fBV+c3AeijlUbY5bBjEqr9GuYZP4jP41WudGSC6erTRCqdGZm5i1WvXWeDHnbBCZGc2Nj4wBl/hZOwrmBBfgmlID1HmGJutHaF+tKoevp/XCgstDkjo2NtWKLuc6AVN4mNjY+s1XQxoenOoFuDPHGtnRbJj9ej5GvL0dI7+giuRyMk1giazc+DP6vgUDgOJVlOv7R+PJ12QIeL6SyeDz+Kfp8ZrNWjgDTsVjsQ7qXyTjztXJhm9ePxFLfMTg4eG9tbe1RTP9KFFYQfHliYmIS69kCC7jKYmKwxxD5P88tkVkqbPPcIps9t4T/+HjcuJ/s5BFJgf4WYABCtxGuxIZ90gAAAABJRU5ErkJggg==":IMAGE_PATH+
"/handle-connect.png",26,26);
var BackgroundImageDialog=function(a,b){var d=document.createElement("div");d.style.whiteSpace="nowrap";var c=document.createElement("h2");mxUtils.write(c,mxResources.get("backgroundImage"));c.style.marginTop="0px";d.appendChild(c);mxUtils.write(d,mxResources.get("image")+" "+mxResources.get("url")+":");mxUtils.br(d);var c=a.editor.graph.backgroundImage,f=document.createElement("input");f.setAttribute("type","text");f.style.marginTop="4px";f.style.marginBottom="4px";f.style.width="350px";f.value=
@ -6047,7 +6049,7 @@ function(){a.spinner.stop();if(null==a.linkPicker){var b=gapi.auth.getToken().ac
"1"==urlParams.photos&&b.addView(google.picker.ViewId.PHOTOS).addView(google.picker.ViewId.PHOTO_ALBUMS).addView(google.picker.ViewId.PHOTO_UPLOAD);a.linkPicker=b.setCallback(function(a){LinkDialog.filePicked(a)}).build()}a.linkPicker.setVisible(!0);a.movePickersToTop()}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&g(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(a){e.value=a[0].link;
e.focus()}})});null!=a.oneDrive&&g(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),function(){a.oneDrive.pickFile(function(a,b){e.value=b.value[0].webUrl;e.focus()})});null!=a.gitHub&&g(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),function(){a.gitHub.pickFile(function(a){if(null!=a){a=a.split("/");var b=a[0],c=a[1],d=a[2];a=a.slice(3,a.length).join("/");e.value="https://github.com/"+b+"/"+c+"/blob/"+d+"/"+a;e.focus()}})});mxEvent.addListener(e,"keypress",function(b){13==b.keyCode&&
(a.hideDialog(),c(n.checked?p.value:e.value,LinkDialog.selectedDocs))});w.appendChild(q);a.editor.cancelFirst||w.appendChild(d);h.appendChild(w);this.container=h},AboutDialog=function(a){var b=document.createElement("div");b.style.marginTop="6px";b.setAttribute("align","center");var d=document.createElement("img");d.style.border="0px";d.setAttribute("width","176");d.setAttribute("width","151");d.style.width="170px";d.style.height="219px";d.setAttribute("src",IMAGE_PATH+"/logo-flat.png");b.appendChild(d);
mxUtils.br(b);d=document.createElement("small");d.innerHTML="v "+EditorUi.VERSION;d.style.color="#505050";b.appendChild(d);mxUtils.br(b);mxUtils.br(b);d=document.createElement("small");d.style.color="#505050";d.innerHTML='&copy; 2005-2017 <a href="https://www.jgraph.com/" style="color:inherit;" target="_blank">JGraph Ltd</a>.<br>All Rights Reserved.';b.appendChild(d);mxEvent.addListener(b,"click",function(b){"A"!=mxEvent.getSource(b).nodeName&&a.hideDialog()});this.container=b},FeedbackDialog=function(a){var b=
mxUtils.br(b);d=document.createElement("small");d.innerHTML="v "+EditorUi.VERSION;d.style.color="#505050";b.appendChild(d);mxUtils.br(b);mxUtils.br(b);d=document.createElement("small");d.style.color="#505050";d.innerHTML='&copy; 2005-2017 <a href="https://about.draw.io/" style="color:inherit;" target="_blank">JGraph Ltd</a>.<br>All Rights Reserved.';b.appendChild(d);mxEvent.addListener(b,"click",function(b){"A"!=mxEvent.getSource(b).nodeName&&a.hideDialog()});this.container=b},FeedbackDialog=function(a){var b=
document.createElement("div"),d=document.createElement("div");mxUtils.write(d,mxResources.get("sendYourFeedbackToDrawIo"));d.style.fontSize="18px";d.style.marginBottom="18px";b.appendChild(d);d=document.createElement("div");mxUtils.write(d,mxResources.get("yourEmailAddress")+" ("+mxResources.get("required")+")");b.appendChild(d);var c=document.createElement("input");c.setAttribute("type","text");c.style.marginTop="6px";c.style.width="600px";var f=mxUtils.button(mxResources.get("sendMessage"),function(){var b=
(h.checked?"\nDiagram:\n"+a.getFileData():"")+"\nBrowser:\n"+navigator.userAgent;b.length>FeedbackDialog.maxAttachmentSize?a.alert(mxResources.get("drawingTooLarge")):(a.hideDialog(),a.spinner.spin(document.body)&&mxUtils.post(null!=FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(c.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent("Feedback:\n"+e.value+b),function(b){a.spinner.stop();
200<=b.getStatus()&&299>=b.getStatus()?a.alert(mxResources.get("feedbackSent")):a.alert(mxResources.get("errorSendingFeedback"))},function(){a.spinner.stop();a.alert(mxResources.get("errorSendingFeedback"))}))});f.className="geBtn gePrimaryBtn";f.setAttribute("disabled","disabled");var g=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;mxEvent.addListener(c,"change",function(){0<c.value.length&&
@ -6216,7 +6218,7 @@ Q.setAttribute("min","1");Q.setAttribute("type","number");Q.style.width="40px";V
P.appendChild(V);P.appendChild(K);M.appendChild(W);M.appendChild(S);M.appendChild(X);O.appendChild(P);O.appendChild(M);t.appendChild(O);n.appendChild(t);m.appendChild(n);n=document.createElement("div");k=document.createElement("div");k.style.fontWeight="bold";k.style.marginBottom="12px";mxUtils.write(k,mxResources.get("paperSize"));n.appendChild(k);k=document.createElement("div");k.style.marginBottom="12px";var U=PageSetupDialog.addPageFormatPanel(k,"printdialog",a.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);
n.appendChild(k);k=document.createElement("span");mxUtils.write(k,mxResources.get("pageScale"));n.appendChild(k);var R=document.createElement("input");R.style.cssText="margin:0 8px 0 8px;";R.setAttribute("value","100 %");R.style.width="60px";n.appendChild(R);m.appendChild(n);k=document.createElement("div");k.style.cssText="text-align:right;margin:62px 0 0 0;";n=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});n.className="geBtn";a.editor.cancelFirst&&k.appendChild(n);a.isOffline()||
(t=mxUtils.button(mxResources.get("help"),function(){window.open("https://desk.draw.io/support/solutions/articles/16000048947")}),t.className="geBtn",k.appendChild(t));PrintDialog.previewEnabled&&(t=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();d(!1)}),t.className="geBtn",k.appendChild(t));t=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();d(!0)});t.className="geBtn gePrimaryBtn";k.appendChild(t);a.editor.cancelFirst||k.appendChild(n);
m.appendChild(k);this.container=m}})();(function(){EditorUi.VERSION="7.4.7";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.enableLogging=/.*\.draw\.io$/.test(window.location.hostname);EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=
m.appendChild(k);this.container=m}})();(function(){EditorUi.VERSION="7.4.8";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.enableLogging=/.*\.draw\.io$/.test(window.location.hostname);EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=
36;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=
1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var a=document.createElement("canvas"),b=new Image;b.onload=function(){try{a.getContext("2d").drawImage(b,0,0);var c=a.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=
null!=c&&6<c.length}catch(p){}};b.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(n){}try{a=document.createElement("canvas");a.width=a.height=1;var c=a.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==c.match("image/jpeg")}catch(n){}})();
@ -6270,7 +6272,7 @@ null!=e&&(e.style.border="3px dotted lightGray"),k.style.cursor="default",this.s
null!=l.graphHandler.hint&&(l.graphHandler.hint.style.visibility="visible"),null!=e&&(e.style.border="3px dotted lightGray"))}));Graph.fileSupport&&(mxEvent.addListener(k,"dragover",mxUtils.bind(this,function(a){null!=e?e.style.border="3px dotted rgb(254, 137, 12)":k.style.border="3px dotted rgb(254, 137, 12)";a.dataTransfer.dropEffect="copy";k.style.cursor="copy";this.sidebar.hideTooltip();a.stopPropagation();a.preventDefault()})),mxEvent.addListener(k,"drop",mxUtils.bind(this,function(a){k.style.border=
"3px solid transparent";k.style.cursor="";null!=e&&(e.style.border="3px dotted lightGray");0<a.dataTransfer.files.length&&this.importFiles(a.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(c,d,f,g,n,h,u,l,p){if(null!=c&&"image/"==d.substring(0,6))c="shape=image;verticalLabelPosition=bottom;verticalAlign=top;aspect=fixed;image="+this.convertDataUri(c),c=[new mxCell("",new mxGeometry(0,0,n,h),c)],c[0].vertex=!0,D(c,new mxRectangle(0,0,n,h),a,mxEvent.isAltDown(a)?null:u.substring(0,
u.lastIndexOf(".")).replace(/_/g," ")),null!=e&&null!=e.parentNode&&0<b.length&&(e.parentNode.removeChild(e),e=null);else{var q=!1,x=mxUtils.bind(this,function(c,d){if(null!=c&&"text/xml"==d){var f=mxUtils.parseXml(c);if("mxlibrary"==f.documentElement.nodeName)try{var g=JSON.parse(mxUtils.getTextContent(f.documentElement));m(g,k);b=b.concat(g);C(a);this.spinner.stop();q=!0}catch(R){}else if("mxfile"==f.documentElement.nodeName)try{for(var n=f.documentElement.getElementsByTagName("diagram"),f=0;f<
n.length;f++){var g=mxUtils.getTextContent(n[f]),u=this.stringToCells(this.editor.graph.decompress(g)),h=this.editor.graph.getBoundingBoxFromGeometry(u);D(u,new mxRectangle(0,0,h.width,h.height),a)}q=!0}catch(R){null!=window.console&&console.log("error in drop handler:",R)}}q||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=e&&null!=e.parentNode&&0<b.length&&(e.parentNode.removeChild(e),e=null)});!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,
n.length;f++){var g=mxUtils.getTextContent(n[f]),h=this.stringToCells(this.editor.graph.decompress(g)),u=this.editor.graph.getBoundingBoxFromGeometry(h);D(h,new mxRectangle(0,0,u.width,u.height),a)}q=!0}catch(R){null!=window.console&&console.log("error in drop handler:",R)}}q||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=e&&null!=e.parentNode&&0<b.length&&(e.parentNode.removeChild(e),e=null)});!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,
u)&&null!=p?this.parseFile(p,mxUtils.bind(this,function(a){4==a.readyState&&(this.spinner.stop(),200<=a.status&&299>=a.status?x(a.responseText,"text/xml"):this.handleError({message:mxResources.get(413==a.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):x(c,d)}}));a.stopPropagation();a.preventDefault()})),mxEvent.addListener(k,"dragleave",function(a){null!=e?e.style.border="3px dotted lightGray":(k.style.border="3px solid transparent",k.style.cursor="");a.stopPropagation();
a.preventDefault()}));u=u.cloneNode(!1);u.setAttribute("src",IMAGE_PATH+"/edit.gif");u.setAttribute("title",mxResources.get("edit"));g.insertBefore(u,g.firstChild);mxEvent.addListener(u,"click",A);mxEvent.addListener(k,"dblclick",function(a){mxEvent.getSource(a)==k&&A(a)});u=u.cloneNode(!1);u.setAttribute("src",Editor.plusImage);u.setAttribute("title",mxResources.get("add"));g.insertBefore(u,g.firstChild);this.isOffline()||".scratchpad"!=a.title||(c=document.createElement("span"),c.setAttribute("title",
mxResources.get("help")),c.style.cssText="color:gray;text-decoration:none;",c.className="geButton",mxUtils.write(c,"?"),mxEvent.addGestureListeners(c,mxUtils.bind(this,function(a){window.open("https://desk.draw.io/support/solutions/articles/16000042367");mxEvent.consume(a)})),g.insertBefore(c,g.firstChild));var y=null;mxEvent.addListener(u,"click",F)}f.appendChild(g);f.style.paddingRight=18*g.childNodes.length+"px"};"1"==urlParams.offline?EditorUi.prototype.footerHeight=4:("atlas"==uiTheme?("undefined"!==
@ -6279,9 +6281,9 @@ typeof Toolbar&&(Toolbar.prototype.unselectedBackground=mxClient.IS_QUIRKS?"none
"relative",b.style.styleFloat="right",b.style.top="-30px",b.style.left="164px",b.style.cursor="pointer");mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideFooter()}))}return a});EditorUi.prototype.hideFooter=function(){var a=document.getElementById("geFooter");null!=a&&(this.footerHeight=0,a.style.display="none",this.refresh())};EditorUi.prototype.showImageDialog=function(a,b,c,d,f){a=new ImageDialog(this,a,b,c,d,f);this.showDialog(a.container,Graph.fileSupport?440:360,Graph.fileSupport?
200:90,!0,!0);a.init()};EditorUi.prototype.showBackgroundImageDialog=function(a){a=null!=a?a:mxUtils.bind(this,function(a){a=new ChangePageSetup(this,null,a);a.ignoreColor=!0;this.editor.graph.model.execute(a)});var b=new BackgroundImageDialog(this,mxUtils.bind(this,function(b){a(b)}));this.showDialog(b.container,360,200,!0,!0);b.init()};EditorUi.prototype.showLibraryDialog=function(a,b,c,d,f){a=new LibraryDialog(this,a,b,c,d,f);this.showDialog(a.container,620,440,!0,!1,mxUtils.bind(this,function(a){a&&
null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));a.init()};EditorUi.prototype.createSidebarFooterContainer=function(){var a=this.createDiv("geSidebarContainer");a.style.position="absolute";a.style.overflow="hidden";a.style.borderWidth="3px";var b=document.createElement("a");b.setAttribute("href","javascript:void(0);");b.className="geTitle";b.style.height="100%";b.style.paddingTop="9px";mxUtils.write(b,mxResources.get("moreShapes")+"...");mxEvent.addListener(b,"click",mxUtils.bind(this,
function(a){this.actions.get("shapes").funct();mxEvent.consume(a)}));a.appendChild(b);return a};EditorUi.prototype.handleError=function(a,b,c){var d=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},e=null!=a&&null!=a.error?a.error:a;if(null!=e||null!=b){a=mxUtils.htmlEntities(mxResources.get("unknownError"));var f=mxResources.get("ok"),k=null;b=null!=b?b:mxResources.get("error");if(null!=e)if(null!=e.retry&&(f=mxResources.get("cancel"),k=function(){d();e.retry()}),"undefined"!=
function(a){this.actions.get("shapes").funct();mxEvent.consume(a)}));a.appendChild(b);return a};EditorUi.prototype.handleError=function(a,b,c){var d=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},e=null!=a&&null!=a.error?a.error:a;if(null!=e||null!=b){a=mxUtils.htmlEntities(mxResources.get("unknownError"));var k=mxResources.get("ok"),f=null;b=null!=b?b:mxResources.get("error");if(null!=e)if(null!=e.retry&&(k=mxResources.get("cancel"),f=function(){d();e.retry()}),"undefined"!=
typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&e.type==gapi.drive.realtime.ErrorType.FORBIDDEN)a=mxUtils.htmlEntities(mxResources.get("forbidden"));else if(404==e.code||404==e.status||"undefined"!=typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&e.type==gapi.drive.realtime.ErrorType.NOT_FOUND){a=mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied"));var m=window.location.hash;null!=m&&"#G"==m.substring(0,2)&&(m=m.substring(2),
a+=' <a href="https://drive.google.com/open?id='+m+'" target="_blank">'+mxUtils.htmlEntities(mxResources.get("tryOpeningViaThisPage"))+"</a>")}else e.code==App.ERROR_TIMEOUT?a=mxUtils.htmlEntities(mxResources.get("timeout")):e.code==App.ERROR_BUSY?a=mxUtils.htmlEntities(mxResources.get("busy")):null!=e.message?a=mxUtils.htmlEntities(e.message):null!=e.response&&null!=e.response.error&&(a=mxUtils.htmlEntities(e.response.error));this.showError(b,a,f,c,k)}else null!=c&&c()};EditorUi.prototype.showError=
a+=' <a href="https://drive.google.com/open?id='+m+'" target="_blank">'+mxUtils.htmlEntities(mxResources.get("tryOpeningViaThisPage"))+"</a>")}else e.code==App.ERROR_TIMEOUT?a=mxUtils.htmlEntities(mxResources.get("timeout")):e.code==App.ERROR_BUSY?a=mxUtils.htmlEntities(mxResources.get("busy")):null!=e.message?a=mxUtils.htmlEntities(e.message):null!=e.response&&null!=e.response.error&&(a=mxUtils.htmlEntities(e.response.error));this.showError(b,a,k,c,f)}else null!=c&&c()};EditorUi.prototype.showError=
function(a,b,c,d,f,g,h){a=new ErrorDialog(this,a,b,c,d,f,g,h);this.showDialog(a.container,340,150,!0,!1);a.init()};EditorUi.prototype.alert=function(a,b){var c=new ErrorDialog(this,null,a,mxResources.get("ok"),b);this.showDialog(c.container,340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(a,b,c,d,f){var e=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){};this.showDialog((new ConfirmDialog(this,a,function(){e();null!=b&&b()},function(){e();null!=c&&c()},d,f)).container,
340,90,!0,!1)};EditorUi.prototype.setCurrentFile=function(a){this.currentFile=a};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isDiagramEmpty=function(){var a=this.editor.graph.getModel();return 1==a.getChildCount(a.root)&&0==a.getChildCount(a.getChildAt(a.root,0))};EditorUi.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||!this.editor.graph.mathEnabled&&this.useCanvasForExport};EditorUi.prototype.createSvgDataUri=function(a){return"data:image/svg+xml;base64,"+
btoa(unescape(encodeURIComponent(a)))};EditorUi.prototype.createImageDataUri=function(a,b,c){var d=a.toDataURL("image/"+c);if(6>=d.length||d==a.cloneNode(!1).toDataURL("image/"+c))throw{message:"Invalid image"};null!=b&&(d=this.writeGraphModelToPng(d,"zTXt","mxGraphModel",atob(this.editor.graph.compress(b))));return d};EditorUi.prototype.saveCanvas=function(a,b,c){var d="jpeg"==c?"jpg":c,e=this.getBaseFilename()+"."+d;a=this.createImageDataUri(a,b,c);this.saveData(e,d,a.substring(a.lastIndexOf(",")+
@ -6416,67 +6418,66 @@ null!=this.hoverIcons&&this.hoverIcons.update(d.view.getState(d.getSelectionCell
10<document.documentMode&&12>document.documentMode)&&(b=this.highlightElement());a.stopPropagation();a.preventDefault()})),mxEvent.addListener(a[c],"drop",mxUtils.bind(this,function(a){null!=b&&(b.parentNode.removeChild(b),b=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<a.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(a.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)):this.openFiles(a.dataTransfer.files,
!0);else{var c=this.extractGraphModelFromEvent(a);if(null==c){var d=null!=a.dataTransfer?a.dataTransfer:a.clipboardData;null!=d&&(10==document.documentMode||11==document.documentMode?c=d.getData("Text"):(c=null,c=0<=mxUtils.indexOf(d.types,"text/uri-list")?a.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(d.types,"text/html")?d.getData("text/html"):null,null!=c&&0<c.length?(d=document.createElement("div"),d.innerHTML=c,d=d.getElementsByTagName("img"),0<d.length&&(c=d[0].getAttribute("src"))):
0<=mxUtils.indexOf(d.types,"text/plain")&&(c=d.getData("text/plain"))),null!=c&&("data:image/png;base64,"==c.substring(0,22)?(c=this.extractGraphModelFromPng(c),null!=c&&0<c.length&&this.openLocalFile(c,null,!0)):!this.isOffline()&&this.isRemoteFileFormat(c)?(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(c))).send(mxUtils.bind(this,function(a){200<=a.getStatus()&&299>=a.getStatus()&&this.openLocalFile(a.getText(),null,!0)})):/^https?:\/\//.test(c)&&(null==this.getCurrentFile()?window.location.hash=
"#U"+encodeURIComponent(c):window.openWindow((mxClient.IS_CHROMEAPP?"https://www.draw.io/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(c)))))}else this.openLocalFile(c,null,!0)}a.stopPropagation();a.preventDefault()}))};EditorUi.prototype.highlightElement=function(a){console.trace("here");var b=0,c=0,d,e;if(null==a){e=document.body;var f=document.documentElement;d=(e.clientWidth||f.clientWidth)-3;e=Math.max(e.clientHeight||0,f.clientHeight)-3}else b=a.offsetTop,c=
a.offsetLeft,d=a.clientWidth,e=a.clientHeight;f=document.createElement("div");f.style.zIndex=mxPopupMenu.prototype.zIndex+2;f.style.border="3px dotted rgb(254, 137, 12)";f.style.pointerEvents="none";f.style.position="absolute";f.style.top=b+"px";f.style.left=c+"px";f.style.width=Math.max(0,d-3)+"px";f.style.height=Math.max(0,e-3)+"px";null!=a&&a.parentNode==this.editor.graph.container?this.editor.graph.container.appendChild(f):document.body.appendChild(f);return f};EditorUi.prototype.stringToCells=
function(a){a=mxUtils.parseXml(a);var b=this.editor.extractGraphModel(a.documentElement);a=[];if(null!=b){var c=new mxCodec(b.ownerDocument),d=new mxGraphModel;c.decode(b,d);b=d.getChildAt(d.getRoot(),0);for(c=0;c<d.getChildCount(b);c++)a.push(d.getChildAt(b,c))}return a};EditorUi.prototype.openFiles=function(a,b){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var c=0;c<a.length;c++)mxUtils.bind(this,function(a){var c=new FileReader;c.onload=mxUtils.bind(this,function(c){var d=
c.target.result,e=a.name;if(null!=e&&0<e.length)if(!this.useCanvasForExport&&/(\.png)$/i.test(e)&&(e=e.substring(0,e.length-4)+".xml"),Graph.fileSupport&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,e))e=0<=e.lastIndexOf(".")?e.substring(0,e.lastIndexOf("."))+".xml":e+".xml",this.parseFile(a,mxUtils.bind(this,function(a){if(4==a.readyState)if(this.spinner.stop(),200<=a.status&&299>=a.status)if(a=a.responseText,"<mxlibrary"==a.substring(0,10)){null==this.getCurrentFile()&&
"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,b);null!=e&&".vssx"==e.toLowerCase().substring(e.length-5)&&(e=e.substring(0,filename.length-5)+".xml");try{this.loadLibrary(new LocalLibrary(this,a,e))}catch(u){this.handleError(u,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(a,e,b);else this.handleError({message:mxResources.get(413==a.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}));else if('{"state":"{\\"Properties\\":'==
d.substring(0,26))/(\.json)$/i.test(e)&&(e=e.substring(0,e.length-5)+".xml"),this.openLocalFile(this.emptyDiagramXml,e,b),this.importLucidChart(d,0,0,null,mxUtils.bind(this,function(){this.editor.undoManager.clear();this.spinner.stop()}));else if("<mxlibrary"==c.target.result.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,b);try{this.loadLibrary(new LocalLibrary(this,c.target.result,a.name))}catch(w){this.handleError(w,
mxResources.get("errorLoadingFile"))}}else"image/png"==a.type.substring(0,9)&&(d=this.extractGraphModelFromPng(d)),this.spinner.stop(),this.openLocalFile(d,e,b)});c.onerror=mxUtils.bind(this,function(a){this.spinner.stop();this.handleError(a);window.openFile=null});"image"===a.type.substring(0,5)&&"image/svg"!==a.type.substring(0,9)?c.readAsDataURL(a):c.readAsText(a)})(a[c])};EditorUi.prototype.openLocalFile=function(a,b,c){var d=this.getCurrentFile(),e=mxUtils.bind(this,function(){window.openFile=
null;if(null==b&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var d=mxUtils.parseXml(a);null!=d&&(this.editor.setGraphXml(d.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,a,b||this.defaultFilename,c))});null!=a&&0<a.length&&(null==d||!d.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)?e():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&null!=d&&d.isModified()?this.confirm(mxResources.get("allChangesLost"),null,e,mxResources.get("cancel"),
mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(a,b),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){this.confirm(mxResources.get("allChangesLost"),null,e,mxResources.get("cancel"),mxResources.get("discardChanges"))}))))};EditorUi.prototype.getBasenames=function(){var a={};if(null!=this.pages)for(var b=0;b<this.pages.length;b++)this.updatePageRoot(this.pages[b]),this.addBasenamesForCell(this.pages[b].root,
a);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),a);var b=[],c;for(c in a)b.push(c);return b};EditorUi.prototype.addBasenamesForCell=function(a,b){function c(a){if(null!=a){var c=a.lastIndexOf(".");0<c&&(a=a.substring(c+1,a.length));null==b[a]&&(b[a]=!0)}}var d=this.editor.graph,e=d.getCellStyle(a);c(mxStencilRegistry.getBasenameForStencil(e[mxConstants.STYLE_SHAPE]));d.model.isEdge(a)&&(c(mxMarker.getPackageForType(e[mxConstants.STYLE_STARTARROW])),c(mxMarker.getPackageForType(e[mxConstants.STYLE_ENDARROW])));
for(var e=d.model.getChildCount(a),f=0;f<e;f++)this.addBasenamesForCell(d.model.getChildAt(a,f),b)};EditorUi.prototype.setGraphEnabled=function(a){this.diagramContainer.style.visibility=a?"":"hidden";this.formatContainer.style.visibility=a?"":"hidden";this.sidebarFooterContainer.style.display=a?"":"none";this.sidebarContainer.style.display=a?"":"none";this.hsplit.style.display=a?"":"none";this.editor.graph.setEnabled(a);null!=this.tabContainer&&(this.tabContainer.style.visibility=a?"":"hidden")};
EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);(window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))&&this.installMessageHandler(mxUtils.bind(this,function(a,b,c){this.spinner.stop();this.addEmbedButtons();this.setGraphEnabled(!0);null!=a&&0<a.length?(this.setFileData(a),this.showLayersDialog()):(this.editor.graph.model.clear(),this.editor.fireEvent(new mxEventObject("resetGraphView")));this.editor.undoManager.clear();
this.editor.modified=null!=c?c:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(a,b){null!=a?a.getPublicUrl(b):b(null)};EditorUi.prototype.createLoadMessage=
function(a){var b=this.editor.graph;return{event:a,pageVisible:b.pageVisible,translate:b.view.translate,scale:b.view.scale,page:b.view.getBackgroundPageBounds(),bounds:b.getGraphBounds()}};EditorUi.prototype.installMessageHandler=function(a){var b=null,c=!1,d=!1,e=null,f=mxUtils.bind(this,function(a,b){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified))):this.editor.setStatus("")});this.editor.graph.model.addListener(mxEvent.CHANGE,
f);mxEvent.addListener(window,"message",mxUtils.bind(this,function(f){function m(a){if(null!=a&&"function"===typeof a.charAt&&"<"!=a.charAt(0))try{"data:image/svg+xml;base64,"==a.substring(0,26)?a=atob(a.substring(26)):"data:image/svg+xml;utf8,"==a.substring(0,24)&&(a=a.substring(24)),null!=a&&("%"==a.charAt(0)?a=decodeURIComponent(a):"<"!=a.charAt(0)&&(a=this.editor.graph.decompress(a)))}catch(I){}return a}var h=f.data;if("json"==urlParams.proto){try{h=JSON.parse(h)}catch(H){h=null}if(null==h)return;
if("dialog"==h.action){this.showError(null!=h.titleKey?mxResources.get(h.titleKey):h.title,null!=h.messageKey?mxResources.get(h.messageKey):h.message,null!=h.buttonKey?mxResources.get(h.buttonKey):h.button);null!=h.modified&&(this.editor.modified=h.modified);return}if("prompt"==h.action){this.spinner.stop();var k=new FilenameDialog(this,h.defaultValue||"",null!=h.okKey?mxResources.get(h.okKey):null,function(a){null!=a&&g.postMessage(JSON.stringify({event:"prompt",value:a,message:h}),"*")},null!=h.titleKey?
mxResources.get(h.titleKey):h.title);this.showDialog(k.container,300,80,!0,!1);k.init();return}if("draft"==h.action){k=null;k="data:image/png;base64,"==h.xml.substring(0,22)?this.extractGraphModelFromPng(h.xml):m(h.xml);this.spinner.stop();k=new DraftDialog(this,mxResources.get("draftFound",[h.name||this.defaultFilename]),k,mxUtils.bind(this,function(){this.hideDialog();g.postMessage(JSON.stringify({event:"draft",result:"edit",message:h}),"*")}),mxUtils.bind(this,function(){this.hideDialog();g.postMessage(JSON.stringify({event:"draft",
result:"discard",message:h}),"*")}),h.editKey?mxResources.get(h.editKey):null,h.discardKey?mxResources.get(h.discardKey):null,h.ignore?mxUtils.bind(this,function(){this.hideDialog();g.postMessage(JSON.stringify({event:"draft",result:"ignore",message:h}),"*")}):null);this.showDialog(k.container,640,480,!0,!1,mxUtils.bind(this,function(a){a&&this.actions.get("exit").funct()}));try{k.init()}catch(H){g.postMessage(JSON.stringify({event:"draft",error:H.toString(),message:h}),"*")}return}if("template"==
h.action){this.spinner.stop();k=new NewDialog(this,!1,null!=h.callback,mxUtils.bind(this,function(b,c){b=b||this.emptyDiagramXml;null!=h.callback?g.postMessage(JSON.stringify({event:"template",xml:b,blank:b==this.emptyDiagramXml,name:c}),"*"):(a(b,f,b!=this.emptyDiagramXml),this.editor.modified||this.editor.setStatus(""))}));this.showDialog(k.container,620,440,!0,!1,mxUtils.bind(this,function(a){a&&this.actions.get("exit").funct()}));k.init();return}if("status"==h.action){null!=h.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(h.messageKey))):
null!=h.message&&this.editor.setStatus(mxUtils.htmlEntities(h.message));null!=h.modified&&(this.editor.modified=h.modified);return}if("spinner"==h.action){var l=null!=h.messageKey?mxResources.get(h.messageKey):h.message;null==h.show||h.show?this.spinner.spin(document.body,l):this.spinner.stop();return}if("export"==h.action){if("png"==h.format||"xmlpng"==h.format){if(null==h.spin&&null==h.spinKey||this.spinner.spin(document.body,null!=h.spinKey?mxResources.get(h.spinKey):h.spin)){var n=null!=h.xml?
h.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var p=this.editor.graph,q=mxUtils.bind(this,function(a){this.editor.graph.setEnabled(!0);this.spinner.stop();var b=this.createLoadMessage("export");b.format=h.format;b.message=h;b.data=a;b.xml=encodeURIComponent(n);g.postMessage(JSON.stringify(b),"*")}),t=mxUtils.bind(this,function(a){null==a&&(a=Editor.blankImage);"xmlpng"==h.format&&(a=this.writeGraphModelToPng(a,"zTXt","mxGraphModel",atob(this.editor.graph.compress(n))));p!=this.editor.graph&&
p.container.parentNode.removeChild(p.container);q(a)});if(this.isExportToCanvas()){if(null!=this.pages&&this.currentPage!=this.pages[0]){var p=this.createTemporaryGraph(p.getStylesheet()),v=p.getGlobalVariable,E=this.pages[0];p.getGlobalVariable=function(a){return"page"==a?E.getName():"pagenumber"==a?1:v.apply(this,arguments)};document.body.appendChild(p.container);p.model.setRoot(E.root)}this.exportToCanvas(mxUtils.bind(this,function(a){t(a.toDataURL("image/png"))}),null,null,null,mxUtils.bind(this,
function(){t(null)}),null,null,null,null,null,null,p)}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==h.format?"1":"0")+"&base64=1&xml="+encodeURIComponent(encodeURIComponent(n)))).send(mxUtils.bind(this,function(a){200<=a.getStatus()&&299>=a.getStatus()?q("data:image/png;base64,"+a.getText()):t(null)}),mxUtils.bind(this,function(){t(null)}))}}else{null!=h.xml&&0<h.xml.length&&this.setFileData(h.xml);l=this.createLoadMessage("export");if("html2"==h.format||"html"==h.format&&("0"!=
urlParams.pages||null!=this.pages&&1<this.pages.length))k=this.getXmlFileData(),l.xml=mxUtils.getXml(k),l.data=this.getFileData(null,null,!0,null,null,null,k),l.format=h.format;else if("html"==h.format)n=this.editor.getGraphXml(),l.data=this.getHtml(n,this.editor.graph),l.xml=mxUtils.getXml(n),l.format=h.format;else{mxSvgCanvas2D.prototype.foAltText=null;k=this.editor.graph.background;k==mxConstants.NONE&&(k=null);l.xml=this.getFileData(!0);l.format="svg";if(h.embedImages||null==h.embedImages){if(null==
h.spin&&null==h.spinKey||this.spinner.spin(document.body,null!=h.spinKey?mxResources.get(h.spinKey):h.spin))this.editor.graph.setEnabled(!1),"xmlsvg"==h.format?this.getEmbeddedSvg(l.xml,this.editor.graph,null,!0,mxUtils.bind(this,function(a){this.editor.graph.setEnabled(!0);this.spinner.stop();l.data=this.createSvgDataUri(a);g.postMessage(JSON.stringify(l),"*")})):this.convertImages(this.editor.graph.getSvg(k),mxUtils.bind(this,function(a){this.editor.graph.setEnabled(!0);this.spinner.stop();l.data=
this.createSvgDataUri(mxUtils.getXml(a));g.postMessage(JSON.stringify(l),"*")}));return}k="xmlsvg"==h.format?this.getEmbeddedSvg(this.getFileData(!0),this.editor.graph,null,!0):mxUtils.getXml(this.editor.graph.getSvg(k));l.data=this.createSvgDataUri(k)}g.postMessage(JSON.stringify(l),"*")}return}if("loadFile"==h.action&&this.loadFile)"T"==h.type&&(null==this.trello?this.addListener("clientLoaded",function(){this.loadFile(h.type+h.file,!0)}):this.loadFile(h.type+h.file,!0));else if("newFile"==h.action&&
this.createFile)"T"==h.type&&(null==this.trello?this.addListener("clientLoaded",function(){this.createFile(h.name+".drawio.png",null,null,App.MODE_TRELLO,null,!0,h.folderId)}):this.createFile(h.name+".drawio.png",null,null,App.MODE_TRELLO,null,!0,h.folderId));else if("load"==h.action)d=1==h.autosave,this.hideDialog(),null!=h.modified&&null==urlParams.modified&&(urlParams.modified=h.modified),null!=h.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=h.saveAndExit),null!=h.title&&null!=
this.buttonContainer&&(k=document.createElement("span"),mxUtils.write(k,h.title),"atlas"==uiTheme?(this.buttonContainer.style.paddingRight="12px",this.buttonContainer.style.paddingTop="12px"):(this.buttonContainer.style.paddingRight="38px",this.buttonContainer.style.paddingTop="6px"),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(k),this.embedFilenameSpan=k),h=null!=h.xmlpng?this.extractGraphModelFromPng(h.xmlpng):
null!=h.xml&&"data:image/png;base64,"==h.xml.substring(0,22)?this.extractGraphModelFromPng(h.xml):h.xml;else{g.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(h)}),"*");return}}h=m(h);c=!0;try{a(h,f)}catch(H){this.handleError(H)}c=!1;null!=urlParams.modified&&this.editor.setStatus("");var B=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())});e=B();d&&null==b&&(b=mxUtils.bind(this,
function(a,b){var d=B();if(d!=e&&!c){var f=this.createLoadMessage("autosave");f.xml=d;d=JSON.stringify(f);(window.opener||window.parent).postMessage(d,"*")}e=d}),this.editor.graph.model.addListener(mxEvent.CHANGE,b),this.editor.graph.addListener("gridSizeChanged",b),this.editor.graph.addListener("shadowVisibleChanged",b),this.addListener("pageFormatChanged",b),this.addListener("pageScaleChanged",b),this.addListener("backgroundColorChanged",b),this.addListener("backgroundImageChanged",b),this.addListener("foldingEnabledChanged",
b),this.addListener("mathEnabledChanged",b),this.addListener("gridEnabledChanged",b),this.addListener("guidesEnabledChanged",b),this.addListener("pageViewChanged",b));"1"!=urlParams.returnbounds&&"json"!=urlParams.proto||g.postMessage(JSON.stringify(this.createLoadMessage("load")),"*")}));var g=window.opener||window.parent,f="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";g.postMessage(f,"*")};EditorUi.prototype.addEmbedButtons=function(){if(null!=this.menubar){var a=
document.createElement("div");a.style.display="inline-block";a.style.position="absolute";a.style.paddingTop="atlas"==uiTheme?"2px":"3px";a.style.paddingLeft="8px";a.style.paddingBottom="2px";var b=document.createElement("button");mxUtils.write(b,mxResources.get("save"));b.setAttribute("title",mxResources.get("save")+" ("+Editor.ctrlKey+"+S)");b.className="geBigButton";b.style.fontSize="12px";b.style.padding="4px 6px 4px 6px";b.style.borderRadius="3px";mxEvent.addListener(b,"click",mxUtils.bind(this,
function(){this.actions.get("save").funct()}));a.appendChild(b);"1"==urlParams.saveAndExit&&(b=document.createElement("a"),mxUtils.write(b,mxResources.get("saveAndExit")),b.setAttribute("title",mxResources.get("saveAndExit")),b.style.fontSize="12px",b.style.marginLeft="6px",b.style.padding="4px",b.style.cursor="pointer",mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()})),a.appendChild(b));b=document.createElement("a");mxUtils.write(b,mxResources.get("exit"));
b.setAttribute("title",mxResources.get("exit"));b.style.fontSize="12px";b.style.marginLeft="6px";b.style.marginRight="20px";b.style.padding="4px";b.style.cursor="pointer";mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.actions.get("exit").funct()}));a.appendChild(b);this.toolbar.container.appendChild(a);this.toolbar.staticElements.push(a);a.style.right="atlas"!=uiTheme?"52px":"42px"}};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=
new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(a){this.importCsv(a)}),null,null,620,430,null,!0,!0,mxResources.get("import")));this.showDialog(this.importCsvDialog.container,640,520,!0,!0);this.importCsvDialog.init()};EditorUi.prototype.importCsv=function(a){try{var b=a.split("\n"),c=[];if(0<b.length){var d={},f=null,e=null,g="auto",h="auto",l=40,u=40,x=0,z=this.editor.graph;z.getGraphBounds();for(var A=function(){z.setSelectionCells(T);z.scrollCellToVisible(z.getSelectionCell())},
C=z.getFreeInsertPoint(),D=C.x,F=C.y,C=F,y=null,E="auto",B=[],H=null,I=null,G=0;G<b.length&&"#"==b[G].charAt(0);){a=b[G];for(G++;G<b.length&&"\\"==a.charAt(a.length-1)&&"#"==b[G].charAt(0);)a=a.substring(0,a.length-1)+mxUtils.trim(b[G].substring(1)),G++;if("#"!=a.charAt(1)){var J=a.indexOf(":");if(0<J){var L=mxUtils.trim(a.substring(1,J)),O=mxUtils.trim(a.substring(J+1));"label"==L?y=z.sanitizeHtml(O):"style"==L?f=O:"identity"==L&&0<O.length&&"-"!=O?e=O:"width"==L?g=O:"height"==L?h=O:"ignore"==L?
I=O.split(","):"connect"==L?B.push(JSON.parse(O)):"link"==L?H=O:"padding"==L?x=parseFloat(O):"edgespacing"==L?l=parseFloat(O):"nodespacing"==L?u=parseFloat(O):"layout"==L&&(E=O)}}}var P=this.editor.csvToArray(b[G]);a=null;if(null!=e)for(var M=0;M<P.length;M++)if(e==P[M]){a=M;break}null==y&&(y="%"+P[0]+"%");if(null!=B)for(var N=0;N<B.length;N++)null==d[B[N].to]&&(d[B[N].to]={});z.model.beginUpdate();try{for(M=G+1;M<b.length;M++){var V=this.editor.csvToArray(b[M]);if(V.length==P.length){var K=null,
W=null!=a?V[a]:null;null!=W&&(K=z.model.getCell(W));null==K&&(K=new mxCell(y,new mxGeometry(D,C,0,0),f||"whiteSpace=wrap;html=1;"),K.vertex=!0,K.id=W);for(var S=0;S<V.length;S++)z.setAttributeForCell(K,P[S],V[S]);z.setAttributeForCell(K,"placeholders","1");K.style=z.replacePlaceholders(K,K.style);for(N=0;N<B.length;N++)d[B[N].to][K.getAttribute(B[N].to)]=K;null!=H&&"link"!=H&&(z.setLinkForCell(K,K.getAttribute(H)),z.setAttributeForCell(K,H,null));var X=this.editor.graph.getPreferredSizeForCell(K);
K.geometry.width="auto"==g?X.width+x:parseFloat(g);K.geometry.height="auto"==h?X.height+x:parseFloat(h);C+=K.geometry.height+u;c.push(z.addCell(K))}}null==f&&z.fireEvent(new mxEventObject("cellsInserted","cells",c));for(var Q=c.slice(),T=c.slice(),N=0;N<B.length;N++)for(var U=B[N],M=0;M<c.length;M++){var K=c[M],R=K.getAttribute(U.from);if(null!=R){z.setAttributeForCell(K,U.from,null);for(var aa=R.split(","),S=0;S<aa.length;S++){var ba=d[U.to][aa[S]];null!=ba&&(T.push(z.insertEdge(null,null,U.label||
"",U.invert?ba:K,U.invert?K:ba,U.style||z.createCurrentEdgeStyle())),mxUtils.remove(U.invert?K:ba,Q))}}}if(null!=I)for(M=0;M<c.length;M++)for(K=c[M],S=0;S<I.length;S++)z.setAttributeForCell(K,mxUtils.trim(I[S]),null);var ca=new mxParallelEdgeLayout(z);ca.spacing=l;var fa=function(){ca.execute(z.getDefaultParent());for(var a=0;a<c.length;a++){var b=z.getCellGeometry(c[a]);b.x=Math.round(z.snap(b.x));b.y=Math.round(z.snap(b.y));"auto"==g&&(b.width=Math.round(z.snap(b.width)));"auto"==h&&(b.height=Math.round(z.snap(b.height)))}};
if("circle"==E){var da=new mxCircleLayout(z);da.resetEdges=!1;var ha=da.isVertexIgnored;da.isVertexIgnored=function(a){return ha.apply(this,arguments)||0>mxUtils.indexOf(c,a)};this.executeLayout(function(){da.execute(z.getDefaultParent());fa()},!0,A);A=null}else if("horizontaltree"==E||"verticaltree"==E||"auto"==E&&T.length==2*c.length-1&&1==Q.length){z.view.validate();var Y=new mxCompactTreeLayout(z,"horizontaltree"==E);Y.levelDistance=u;Y.edgeRouting=!1;Y.resetEdges=!1;this.executeLayout(function(){Y.execute(z.getDefaultParent(),
0<Q.length?Q[0]:null)},!0,A);A=null}else if("horizontalflow"==E||"verticalflow"==E||"auto"==E&&1==Q.length){z.view.validate();var ea=new mxHierarchicalLayout(z,"horizontalflow"==E?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);ea.intraCellSpacing=u;ea.disableEdgeStyle=!1;this.executeLayout(function(){ea.execute(z.getDefaultParent(),T);z.moveCells(T,D,F)},!0,A);A=null}else if("organic"==E||"auto"==E&&T.length>c.length){z.view.validate();var Z=new mxFastOrganicLayout(z);Z.forceConstant=3*u;
Z.resetEdges=!1;var ia=Z.isVertexIgnored;Z.isVertexIgnored=function(a){return ia.apply(this,arguments)||0>mxUtils.indexOf(c,a)};ca=new mxParallelEdgeLayout(z);ca.spacing=l;this.executeLayout(function(){Z.execute(z.getDefaultParent());fa()},!0,A);A=null}this.hideDialog()}finally{z.model.endUpdate()}null!=A&&A()}}catch(ja){this.handleError(ja)}};EditorUi.prototype.getSearch=function(a){var b="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=a&&0<window.location.search.length){var c="?",d;for(d in urlParams)0>
mxUtils.indexOf(a,d)&&null!=urlParams[d]&&(b+=c+d+"="+urlParams[d],c="&")}else b=window.location.search;return b};EditorUi.prototype.getUrl=function(a){a=null!=a?a:window.location.pathname;var b=0<a.indexOf("?")?1:0;if("1"==urlParams.offline)a+=window.location.search;else{var c="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),d;for(d in urlParams)0>mxUtils.indexOf(c,d)&&(a=0==b?a+"?":a+"&",null!=urlParams[d]&&(a+=d+"="+urlParams[d],b++))}return a};
EditorUi.prototype.showLinkDialog=function(a,b,c){a=new LinkDialog(this,a,b,c,!0);this.showDialog(a.container,420,120,!0,!0);a.init()};var h=EditorUi.prototype.createOutline;EditorUi.prototype.createOutline=function(a){var b=h.apply(this,arguments),c=this.editor.graph,d=b.getSourceGraphBounds;b.getSourceGraphBounds=function(){if(mxUtils.hasScrollbars(c.container)&&c.pageVisible&&null!=this.source.minimumGraphSize){var a=this.source.getPagePadding(),b=this.source.view.scale;return new mxRectangle(0,
0,Math.ceil(this.source.minimumGraphSize.width-2*a.x/b),Math.ceil(this.source.minimumGraphSize.height-2*a.y/b))}return d.apply(this,arguments)};var f=b.getSourceContainerSize;b.getSourceContainerSize=function(){if(mxUtils.hasScrollbars(c.container)&&null!=this.source.minimumGraphSize){var a=this.source.getPagePadding(),b=this.source.view.scale;return new mxRectangle(0,0,Math.ceil(this.source.minimumGraphSize.width*b-2*a.x),Math.ceil(this.source.minimumGraphSize.height*b-2*a.y))}return f.apply(this,
arguments)};b.getOutlineOffset=function(a){if(mxUtils.hasScrollbars(c.container)&&null!=this.source.minimumGraphSize){var d=this.source.getPagePadding();return new mxPoint(Math.round(Math.max(0,(b.outline.container.clientWidth/a-(this.source.minimumGraphSize.width-2*d.x))/2)-d.x),Math.round(Math.max(0,(b.outline.container.clientHeight/a-(this.source.minimumGraphSize.height-2*d.y))/2)-d.y-5/a))}return new mxPoint(8/a,8/a)};var e=b.init;b.init=function(){e.apply(this,arguments);b.outline.view.getBackgroundPageBounds=
function(){var a=c.getPageLayout(),b=c.getPageSize();return new mxRectangle(this.scale*(this.translate.x+a.x*b.width),this.scale*(this.translate.y+a.y*b.height),this.scale*a.width*b.width,this.scale*a.height*b.height)};b.outline.view.validateBackgroundPage()};this.editor.addListener("pageSelected",function(a,c){var d=c.getProperty("change"),f=b.source,e=b.outline;e.pageScale=f.pageScale;e.pageFormat=f.pageFormat;e.background=f.background;e.pageVisible=f.pageVisible;e.background=f.background;var g=
mxUtils.getCurrentStyle(f.container);e.container.style.backgroundColor=g.backgroundColor;null!=f.view.backgroundPageShape&&null!=e.view.backgroundPageShape&&(e.view.backgroundPageShape.fill=f.view.backgroundPageShape.fill);b.outline.view.clear(d.previousPage.root,!0);b.outline.view.validate()});return b};EditorUi.prototype.getServiceCount=function(a){var b=0;null==this.drive&&"function"!==typeof window.DriveClient||b++;null==this.dropbox&&"function"!==typeof window.DropboxClient||b++;null==this.oneDrive&&
"function"!==typeof window.OneDriveClient||b++;null!=this.gitHub&&b++;null==this.trello&&"function"!==typeof window.TrelloClient||b++;a&&isLocalStorage&&("1"==urlParams.browser||mxClient.IS_IOS)&&b++;mxClient.IS_IOS||b++;return b};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var a=this.getCurrentFile(),b=null!=a||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(b);this.menus.get("viewZoom").setEnabled(b);var c=
("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==a||a.isRestricted());this.actions.get("makeCopy").setEnabled(!c);this.actions.get("print").setEnabled(!c);this.menus.get("exportAs").setEnabled(!c);this.menus.get("embed").setEnabled(!c);c="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("openLibraryFrom").setEnabled(c);this.menus.get("newLibrary").setEnabled(c);this.menus.get("extras").setEnabled(c);a="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=a&&a.isEditable();
this.actions.get("image").setEnabled(b);this.actions.get("zoomIn").setEnabled(b);this.actions.get("zoomOut").setEnabled(b);this.actions.get("resetView").setEnabled(b);this.menus.get("edit").setEnabled(b);this.menus.get("view").setEnabled(b);this.menus.get("importFrom").setEnabled(a);this.menus.get("arrange").setEnabled(a);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(a),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(a));if(this.isOfflineApp()){var d=
applicationCache;if(null!=d&&null==this.offlineStatus){this.offlineStatus=document.createElement("div");this.offlineStatus.className="geItem";this.offlineStatus.style.position="absolute";this.offlineStatus.style.fontSize="8pt";this.offlineStatus.style.top="2px";this.offlineStatus.style.right="12px";this.offlineStatus.style.color="#666";this.offlineStatus.style.margin="4px";this.offlineStatus.style.padding="2px";this.offlineStatus.style.verticalAlign="middle";this.offlineStatus.innerHTML="";this.menubarContainer.appendChild(this.offlineStatus);
mxEvent.addListener(this.offlineStatus,"click",mxUtils.bind(this,function(){var a=this.offlineStatus.getElementsByTagName("img");null!=a&&0<a.length&&this.alert(a[0].getAttribute("title"))}));var d=window.applicationCache,f=null,b=mxUtils.bind(this,function(){var a=d.status,b;a==d.CHECKING&&(a=d.DOWNLOADING);switch(a){case d.UNCACHED:b="";break;case d.IDLE:b='<img title="draw.io is up to date." border="0" src="'+IMAGE_PATH+'/checkmark.gif"/>';break;case d.DOWNLOADING:b='<img title="Downloading new version..." border="0" src="'+
IMAGE_PATH+'/spin.gif"/>';break;case d.UPDATEREADY:b='<img title="'+mxUtils.htmlEntities(mxResources.get("restartForChangeRequired"))+'" border="0" src="'+IMAGE_PATH+'/download.png"/>';break;case d.OBSOLETE:b='<img title="Obsolete" border="0" src="'+IMAGE_PATH+'/clear.gif"/>';break;default:b='<img title="Unknown" border="0" src="'+IMAGE_PATH+'/clear.gif"/>'}a!=f&&(this.offlineStatus.innerHTML=b,f=a)});mxEvent.addListener(d,"checking",b);mxEvent.addListener(d,"noupdate",b);mxEvent.addListener(d,"downloading",
b);mxEvent.addListener(d,"progress",b);mxEvent.addListener(d,"cached",b);mxEvent.addListener(d,"updateready",b);mxEvent.addListener(d,"obsolete",b);mxEvent.addListener(d,"error",b);b()}}else this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};var l=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){l.apply(this,arguments);var a=this.editor.graph,b=this.getCurrentFile(),c=null!=b&&b.isEditable()||
"1"==urlParams.embed&&this.editor.graph.isEnabled();this.actions.get("pageSetup").setEnabled(c);this.actions.get("autosave").setEnabled(null!=b&&b.isEditable()&&b.isAutosaveOptional());this.actions.get("guides").setEnabled(c);this.actions.get("editData").setEnabled(c);this.actions.get("shadowVisible").setEnabled(c);this.actions.get("connectionArrows").setEnabled(c);this.actions.get("connectionPoints").setEnabled(c);this.actions.get("copyStyle").setEnabled(c&&!a.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(c&&
!a.isSelectionEmpty());this.actions.get("editGeometry").setEnabled(a.getModel().isVertex(a.getSelectionCell()));this.actions.get("createShape").setEnabled(c);this.actions.get("createRevision").setEnabled(c);this.actions.get("moveToFolder").setEnabled(null!=b);this.actions.get("makeCopy").setEnabled(null!=b&&!b.isRestricted());this.actions.get("editDiagram").setEnabled("1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&!b.isRestricted());this.actions.get("publishLink").setEnabled(null!=
b&&!b.isRestricted());this.actions.get("tags").setEnabled("1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&!b.isRestricted());this.actions.get("close").setEnabled(null!=b);this.menus.get("publish").setEnabled(null!=b&&!b.isRestricted());a=a.view.getState(a.getSelectionCell());this.actions.get("editShape").setEnabled(c&&null!=a&&null!=a.shape&&null!=a.shape.stencil)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(a,
b,c,d,f,g){var e=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(e.getSvg(d,f,g)),"image/svg+xml");else{var h=a.getFileData(!0,null,null,null,null,!0),l=e.getGraphBounds(),k=Math.floor(l.width*f/e.view.scale),m=Math.floor(l.height*f/e.view.scale);h.length<=MAX_REQUEST_SIZE&&k*m<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a,b){return new mxXmlRequest(EXPORT_URL,
"format="+c+"&base64="+(b||"0")+(null!=a?"&filename="+encodeURIComponent(a):"")+"&bg="+(null!=d?d:"none")+"&w="+k+"&h="+m+"&border="+g+"&xml="+encodeURIComponent(h))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})();var mxSettings={currentVersion:16,defaultFormatWidth:600>screen.width?"0":"240",key:".drawio-config",getLanguage:function(){return mxSettings.settings.language},setLanguage:function(a){mxSettings.settings.language=a},getUi:function(){return mxSettings.settings.ui},setUi:function(a){mxSettings.settings.ui=a},getShowStartScreen:function(){return mxSettings.settings.showStartScreen},setShowStartScreen:function(a){mxSettings.settings.showStartScreen=a},getGridColor:function(){return mxSettings.settings.gridColor},
"#U"+encodeURIComponent(c):window.openWindow((mxClient.IS_CHROMEAPP?"https://www.draw.io/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(c)))))}else this.openLocalFile(c,null,!0)}a.stopPropagation();a.preventDefault()}))};EditorUi.prototype.highlightElement=function(a){var b=0,c=0,d,e;if(null==a){e=document.body;var f=document.documentElement;d=(e.clientWidth||f.clientWidth)-3;e=Math.max(e.clientHeight||0,f.clientHeight)-3}else b=a.offsetTop,c=a.offsetLeft,d=a.clientWidth,
e=a.clientHeight;f=document.createElement("div");f.style.zIndex=mxPopupMenu.prototype.zIndex+2;f.style.border="3px dotted rgb(254, 137, 12)";f.style.pointerEvents="none";f.style.position="absolute";f.style.top=b+"px";f.style.left=c+"px";f.style.width=Math.max(0,d-3)+"px";f.style.height=Math.max(0,e-3)+"px";null!=a&&a.parentNode==this.editor.graph.container?this.editor.graph.container.appendChild(f):document.body.appendChild(f);return f};EditorUi.prototype.stringToCells=function(a){a=mxUtils.parseXml(a);
var b=this.editor.extractGraphModel(a.documentElement);a=[];if(null!=b){var c=new mxCodec(b.ownerDocument),d=new mxGraphModel;c.decode(b,d);b=d.getChildAt(d.getRoot(),0);for(c=0;c<d.getChildCount(b);c++)a.push(d.getChildAt(b,c))}return a};EditorUi.prototype.openFiles=function(a,b){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var c=0;c<a.length;c++)mxUtils.bind(this,function(a){var c=new FileReader;c.onload=mxUtils.bind(this,function(c){var d=c.target.result,e=a.name;if(null!=
e&&0<e.length)if(!this.useCanvasForExport&&/(\.png)$/i.test(e)&&(e=e.substring(0,e.length-4)+".xml"),Graph.fileSupport&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,e))e=0<=e.lastIndexOf(".")?e.substring(0,e.lastIndexOf("."))+".xml":e+".xml",this.parseFile(a,mxUtils.bind(this,function(a){if(4==a.readyState)if(this.spinner.stop(),200<=a.status&&299>=a.status)if(a=a.responseText,"<mxlibrary"==a.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,
this.defaultFilename,b);null!=e&&".vssx"==e.toLowerCase().substring(e.length-5)&&(e=e.substring(0,filename.length-5)+".xml");try{this.loadLibrary(new LocalLibrary(this,a,e))}catch(u){this.handleError(u,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(a,e,b);else this.handleError({message:mxResources.get(413==a.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}));else if('{"state":"{\\"Properties\\":'==d.substring(0,26))/(\.json)$/i.test(e)&&(e=e.substring(0,
e.length-5)+".xml"),this.openLocalFile(this.emptyDiagramXml,e,b),this.importLucidChart(d,0,0,null,mxUtils.bind(this,function(){this.editor.undoManager.clear();this.spinner.stop()}));else if("<mxlibrary"==c.target.result.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,b);try{this.loadLibrary(new LocalLibrary(this,c.target.result,a.name))}catch(w){this.handleError(w,mxResources.get("errorLoadingFile"))}}else"image/png"==
a.type.substring(0,9)&&(d=this.extractGraphModelFromPng(d)),this.spinner.stop(),this.openLocalFile(d,e,b)});c.onerror=mxUtils.bind(this,function(a){this.spinner.stop();this.handleError(a);window.openFile=null});"image"===a.type.substring(0,5)&&"image/svg"!==a.type.substring(0,9)?c.readAsDataURL(a):c.readAsText(a)})(a[c])};EditorUi.prototype.openLocalFile=function(a,b,c){var d=this.getCurrentFile(),e=mxUtils.bind(this,function(){window.openFile=null;if(null==b&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var d=
mxUtils.parseXml(a);null!=d&&(this.editor.setGraphXml(d.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,a,b||this.defaultFilename,c))});null!=a&&0<a.length&&(null==d||!d.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)?e():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&null!=d&&d.isModified()?this.confirm(mxResources.get("allChangesLost"),null,e,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=
null}),window.openFile.setData(a,b),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){this.confirm(mxResources.get("allChangesLost"),null,e,mxResources.get("cancel"),mxResources.get("discardChanges"))}))))};EditorUi.prototype.getBasenames=function(){var a={};if(null!=this.pages)for(var b=0;b<this.pages.length;b++)this.updatePageRoot(this.pages[b]),this.addBasenamesForCell(this.pages[b].root,a);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),a);var b=[],c;for(c in a)b.push(c);
return b};EditorUi.prototype.addBasenamesForCell=function(a,b){function c(a){if(null!=a){var c=a.lastIndexOf(".");0<c&&(a=a.substring(c+1,a.length));null==b[a]&&(b[a]=!0)}}var d=this.editor.graph,e=d.getCellStyle(a);c(mxStencilRegistry.getBasenameForStencil(e[mxConstants.STYLE_SHAPE]));d.model.isEdge(a)&&(c(mxMarker.getPackageForType(e[mxConstants.STYLE_STARTARROW])),c(mxMarker.getPackageForType(e[mxConstants.STYLE_ENDARROW])));for(var e=d.model.getChildCount(a),f=0;f<e;f++)this.addBasenamesForCell(d.model.getChildAt(a,
f),b)};EditorUi.prototype.setGraphEnabled=function(a){this.diagramContainer.style.visibility=a?"":"hidden";this.formatContainer.style.visibility=a?"":"hidden";this.sidebarFooterContainer.style.display=a?"":"none";this.sidebarContainer.style.display=a?"":"none";this.hsplit.style.display=a?"":"none";this.editor.graph.setEnabled(a);null!=this.tabContainer&&(this.tabContainer.style.visibility=a?"":"hidden")};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);(window.opener||window.parent)!=
window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))&&this.installMessageHandler(mxUtils.bind(this,function(a,b,c){this.spinner.stop();this.addEmbedButtons();this.setGraphEnabled(!0);null!=a&&0<a.length?(this.setFileData(a),this.showLayersDialog()):(this.editor.graph.model.clear(),this.editor.fireEvent(new mxEventObject("resetGraphView")));this.editor.undoManager.clear();this.editor.modified=null!=c?c:!1;this.updateUi();window.self!==window.top&&window.focus();
null!=this.format&&this.format.refresh()}))};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(a,b){null!=a?a.getPublicUrl(b):b(null)};EditorUi.prototype.createLoadMessage=function(a){var b=this.editor.graph;return{event:a,pageVisible:b.pageVisible,translate:b.view.translate,
scale:b.view.scale,page:b.view.getBackgroundPageBounds(),bounds:b.getGraphBounds()}};EditorUi.prototype.installMessageHandler=function(a){var b=null,c=!1,d=!1,e=null,f=mxUtils.bind(this,function(a,b){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified))):this.editor.setStatus("")});this.editor.graph.model.addListener(mxEvent.CHANGE,f);mxEvent.addListener(window,"message",mxUtils.bind(this,function(f){function m(a){if(null!=
a&&"function"===typeof a.charAt&&"<"!=a.charAt(0))try{"data:image/svg+xml;base64,"==a.substring(0,26)?a=atob(a.substring(26)):"data:image/svg+xml;utf8,"==a.substring(0,24)&&(a=a.substring(24)),null!=a&&("%"==a.charAt(0)?a=decodeURIComponent(a):"<"!=a.charAt(0)&&(a=this.editor.graph.decompress(a)))}catch(I){}return a}var h=f.data;if("json"==urlParams.proto){try{h=JSON.parse(h)}catch(H){h=null}if(null==h)return;if("dialog"==h.action){this.showError(null!=h.titleKey?mxResources.get(h.titleKey):h.title,
null!=h.messageKey?mxResources.get(h.messageKey):h.message,null!=h.buttonKey?mxResources.get(h.buttonKey):h.button);null!=h.modified&&(this.editor.modified=h.modified);return}if("prompt"==h.action){this.spinner.stop();var k=new FilenameDialog(this,h.defaultValue||"",null!=h.okKey?mxResources.get(h.okKey):null,function(a){null!=a&&g.postMessage(JSON.stringify({event:"prompt",value:a,message:h}),"*")},null!=h.titleKey?mxResources.get(h.titleKey):h.title);this.showDialog(k.container,300,80,!0,!1);k.init();
return}if("draft"==h.action){k=null;k="data:image/png;base64,"==h.xml.substring(0,22)?this.extractGraphModelFromPng(h.xml):m(h.xml);this.spinner.stop();k=new DraftDialog(this,mxResources.get("draftFound",[h.name||this.defaultFilename]),k,mxUtils.bind(this,function(){this.hideDialog();g.postMessage(JSON.stringify({event:"draft",result:"edit",message:h}),"*")}),mxUtils.bind(this,function(){this.hideDialog();g.postMessage(JSON.stringify({event:"draft",result:"discard",message:h}),"*")}),h.editKey?mxResources.get(h.editKey):
null,h.discardKey?mxResources.get(h.discardKey):null,h.ignore?mxUtils.bind(this,function(){this.hideDialog();g.postMessage(JSON.stringify({event:"draft",result:"ignore",message:h}),"*")}):null);this.showDialog(k.container,640,480,!0,!1,mxUtils.bind(this,function(a){a&&this.actions.get("exit").funct()}));try{k.init()}catch(H){g.postMessage(JSON.stringify({event:"draft",error:H.toString(),message:h}),"*")}return}if("template"==h.action){this.spinner.stop();k=new NewDialog(this,!1,null!=h.callback,mxUtils.bind(this,
function(b,c){b=b||this.emptyDiagramXml;null!=h.callback?g.postMessage(JSON.stringify({event:"template",xml:b,blank:b==this.emptyDiagramXml,name:c}),"*"):(a(b,f,b!=this.emptyDiagramXml),this.editor.modified||this.editor.setStatus(""))}));this.showDialog(k.container,620,440,!0,!1,mxUtils.bind(this,function(a){a&&this.actions.get("exit").funct()}));k.init();return}if("status"==h.action){null!=h.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(h.messageKey))):null!=h.message&&this.editor.setStatus(mxUtils.htmlEntities(h.message));
null!=h.modified&&(this.editor.modified=h.modified);return}if("spinner"==h.action){var l=null!=h.messageKey?mxResources.get(h.messageKey):h.message;null==h.show||h.show?this.spinner.spin(document.body,l):this.spinner.stop();return}if("export"==h.action){if("png"==h.format||"xmlpng"==h.format){if(null==h.spin&&null==h.spinKey||this.spinner.spin(document.body,null!=h.spinKey?mxResources.get(h.spinKey):h.spin)){var n=null!=h.xml?h.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var p=this.editor.graph,
q=mxUtils.bind(this,function(a){this.editor.graph.setEnabled(!0);this.spinner.stop();var b=this.createLoadMessage("export");b.format=h.format;b.message=h;b.data=a;b.xml=encodeURIComponent(n);g.postMessage(JSON.stringify(b),"*")}),t=mxUtils.bind(this,function(a){null==a&&(a=Editor.blankImage);"xmlpng"==h.format&&(a=this.writeGraphModelToPng(a,"zTXt","mxGraphModel",atob(this.editor.graph.compress(n))));p!=this.editor.graph&&p.container.parentNode.removeChild(p.container);q(a)});if(this.isExportToCanvas()){if(null!=
this.pages&&this.currentPage!=this.pages[0]){var p=this.createTemporaryGraph(p.getStylesheet()),v=p.getGlobalVariable,E=this.pages[0];p.getGlobalVariable=function(a){return"page"==a?E.getName():"pagenumber"==a?1:v.apply(this,arguments)};document.body.appendChild(p.container);p.model.setRoot(E.root)}this.exportToCanvas(mxUtils.bind(this,function(a){t(a.toDataURL("image/png"))}),null,null,null,mxUtils.bind(this,function(){t(null)}),null,null,null,null,null,null,p)}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+
("xmlpng"==h.format?"1":"0")+"&base64=1&xml="+encodeURIComponent(encodeURIComponent(n)))).send(mxUtils.bind(this,function(a){200<=a.getStatus()&&299>=a.getStatus()?q("data:image/png;base64,"+a.getText()):t(null)}),mxUtils.bind(this,function(){t(null)}))}}else{null!=h.xml&&0<h.xml.length&&this.setFileData(h.xml);l=this.createLoadMessage("export");if("html2"==h.format||"html"==h.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length))k=this.getXmlFileData(),l.xml=mxUtils.getXml(k),l.data=
this.getFileData(null,null,!0,null,null,null,k),l.format=h.format;else if("html"==h.format)n=this.editor.getGraphXml(),l.data=this.getHtml(n,this.editor.graph),l.xml=mxUtils.getXml(n),l.format=h.format;else{mxSvgCanvas2D.prototype.foAltText=null;k=this.editor.graph.background;k==mxConstants.NONE&&(k=null);l.xml=this.getFileData(!0);l.format="svg";if(h.embedImages||null==h.embedImages){if(null==h.spin&&null==h.spinKey||this.spinner.spin(document.body,null!=h.spinKey?mxResources.get(h.spinKey):h.spin))this.editor.graph.setEnabled(!1),
"xmlsvg"==h.format?this.getEmbeddedSvg(l.xml,this.editor.graph,null,!0,mxUtils.bind(this,function(a){this.editor.graph.setEnabled(!0);this.spinner.stop();l.data=this.createSvgDataUri(a);g.postMessage(JSON.stringify(l),"*")})):this.convertImages(this.editor.graph.getSvg(k),mxUtils.bind(this,function(a){this.editor.graph.setEnabled(!0);this.spinner.stop();l.data=this.createSvgDataUri(mxUtils.getXml(a));g.postMessage(JSON.stringify(l),"*")}));return}k="xmlsvg"==h.format?this.getEmbeddedSvg(this.getFileData(!0),
this.editor.graph,null,!0):mxUtils.getXml(this.editor.graph.getSvg(k));l.data=this.createSvgDataUri(k)}g.postMessage(JSON.stringify(l),"*")}return}if("loadFile"==h.action&&this.loadFile)"T"==h.type&&(null==this.trello?this.addListener("clientLoaded",function(){this.loadFile(h.type+h.file,!0)}):this.loadFile(h.type+h.file,!0));else if("newFile"==h.action&&this.createFile)"T"==h.type&&(null==this.trello?this.addListener("clientLoaded",function(){this.createFile(h.name+".drawio.png",null,null,App.MODE_TRELLO,
null,!0,h.folderId)}):this.createFile(h.name+".drawio.png",null,null,App.MODE_TRELLO,null,!0,h.folderId));else if("load"==h.action)d=1==h.autosave,this.hideDialog(),null!=h.modified&&null==urlParams.modified&&(urlParams.modified=h.modified),null!=h.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=h.saveAndExit),null!=h.title&&null!=this.buttonContainer&&(k=document.createElement("span"),mxUtils.write(k,h.title),"atlas"==uiTheme?(this.buttonContainer.style.paddingRight="12px",this.buttonContainer.style.paddingTop=
"12px"):(this.buttonContainer.style.paddingRight="38px",this.buttonContainer.style.paddingTop="6px"),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(k),this.embedFilenameSpan=k),h=null!=h.xmlpng?this.extractGraphModelFromPng(h.xmlpng):null!=h.xml&&"data:image/png;base64,"==h.xml.substring(0,22)?this.extractGraphModelFromPng(h.xml):h.xml;else{g.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(h)}),
"*");return}}h=m(h);c=!0;try{a(h,f)}catch(H){this.handleError(H)}c=!1;null!=urlParams.modified&&this.editor.setStatus("");var B=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())});e=B();d&&null==b&&(b=mxUtils.bind(this,function(a,b){var d=B();if(d!=e&&!c){var f=this.createLoadMessage("autosave");f.xml=d;d=JSON.stringify(f);(window.opener||window.parent).postMessage(d,"*")}e=d}),this.editor.graph.model.addListener(mxEvent.CHANGE,
b),this.editor.graph.addListener("gridSizeChanged",b),this.editor.graph.addListener("shadowVisibleChanged",b),this.addListener("pageFormatChanged",b),this.addListener("pageScaleChanged",b),this.addListener("backgroundColorChanged",b),this.addListener("backgroundImageChanged",b),this.addListener("foldingEnabledChanged",b),this.addListener("mathEnabledChanged",b),this.addListener("gridEnabledChanged",b),this.addListener("guidesEnabledChanged",b),this.addListener("pageViewChanged",b));"1"!=urlParams.returnbounds&&
"json"!=urlParams.proto||g.postMessage(JSON.stringify(this.createLoadMessage("load")),"*")}));var g=window.opener||window.parent,f="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";g.postMessage(f,"*")};EditorUi.prototype.addEmbedButtons=function(){if(null!=this.menubar){var a=document.createElement("div");a.style.display="inline-block";a.style.position="absolute";a.style.paddingTop="atlas"==uiTheme?"2px":"3px";a.style.paddingLeft="8px";a.style.paddingBottom="2px";var b=
document.createElement("button");mxUtils.write(b,mxResources.get("save"));b.setAttribute("title",mxResources.get("save")+" ("+Editor.ctrlKey+"+S)");b.className="geBigButton";b.style.fontSize="12px";b.style.padding="4px 6px 4px 6px";b.style.borderRadius="3px";mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.actions.get("save").funct()}));a.appendChild(b);"1"==urlParams.saveAndExit&&(b=document.createElement("a"),mxUtils.write(b,mxResources.get("saveAndExit")),b.setAttribute("title",
mxResources.get("saveAndExit")),b.style.fontSize="12px",b.style.marginLeft="6px",b.style.padding="4px",b.style.cursor="pointer",mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()})),a.appendChild(b));b=document.createElement("a");mxUtils.write(b,mxResources.get("exit"));b.setAttribute("title",mxResources.get("exit"));b.style.fontSize="12px";b.style.marginLeft="6px";b.style.marginRight="20px";b.style.padding="4px";b.style.cursor="pointer";mxEvent.addListener(b,
"click",mxUtils.bind(this,function(){this.actions.get("exit").funct()}));a.appendChild(b);this.toolbar.container.appendChild(a);this.toolbar.staticElements.push(a);a.style.right="atlas"!=uiTheme?"52px":"42px"}};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(a){this.importCsv(a)}),null,null,620,430,null,!0,!0,mxResources.get("import")));this.showDialog(this.importCsvDialog.container,
640,520,!0,!0);this.importCsvDialog.init()};EditorUi.prototype.importCsv=function(a){try{var b=a.split("\n"),c=[];if(0<b.length){var d={},f=null,e=null,g="auto",h="auto",l=40,u=40,x=0,z=this.editor.graph;z.getGraphBounds();for(var A=function(){z.setSelectionCells(T);z.scrollCellToVisible(z.getSelectionCell())},C=z.getFreeInsertPoint(),D=C.x,F=C.y,C=F,y=null,E="auto",B=[],H=null,I=null,G=0;G<b.length&&"#"==b[G].charAt(0);){a=b[G];for(G++;G<b.length&&"\\"==a.charAt(a.length-1)&&"#"==b[G].charAt(0);)a=
a.substring(0,a.length-1)+mxUtils.trim(b[G].substring(1)),G++;if("#"!=a.charAt(1)){var J=a.indexOf(":");if(0<J){var L=mxUtils.trim(a.substring(1,J)),O=mxUtils.trim(a.substring(J+1));"label"==L?y=z.sanitizeHtml(O):"style"==L?f=O:"identity"==L&&0<O.length&&"-"!=O?e=O:"width"==L?g=O:"height"==L?h=O:"ignore"==L?I=O.split(","):"connect"==L?B.push(JSON.parse(O)):"link"==L?H=O:"padding"==L?x=parseFloat(O):"edgespacing"==L?l=parseFloat(O):"nodespacing"==L?u=parseFloat(O):"layout"==L&&(E=O)}}}var P=this.editor.csvToArray(b[G]);
a=null;if(null!=e)for(var M=0;M<P.length;M++)if(e==P[M]){a=M;break}null==y&&(y="%"+P[0]+"%");if(null!=B)for(var N=0;N<B.length;N++)null==d[B[N].to]&&(d[B[N].to]={});z.model.beginUpdate();try{for(M=G+1;M<b.length;M++){var V=this.editor.csvToArray(b[M]);if(V.length==P.length){var K=null,W=null!=a?V[a]:null;null!=W&&(K=z.model.getCell(W));null==K&&(K=new mxCell(y,new mxGeometry(D,C,0,0),f||"whiteSpace=wrap;html=1;"),K.vertex=!0,K.id=W);for(var S=0;S<V.length;S++)z.setAttributeForCell(K,P[S],V[S]);z.setAttributeForCell(K,
"placeholders","1");K.style=z.replacePlaceholders(K,K.style);for(N=0;N<B.length;N++)d[B[N].to][K.getAttribute(B[N].to)]=K;null!=H&&"link"!=H&&(z.setLinkForCell(K,K.getAttribute(H)),z.setAttributeForCell(K,H,null));var X=this.editor.graph.getPreferredSizeForCell(K);K.geometry.width="auto"==g?X.width+x:parseFloat(g);K.geometry.height="auto"==h?X.height+x:parseFloat(h);C+=K.geometry.height+u;c.push(z.addCell(K))}}null==f&&z.fireEvent(new mxEventObject("cellsInserted","cells",c));for(var Q=c.slice(),
T=c.slice(),N=0;N<B.length;N++)for(var U=B[N],M=0;M<c.length;M++){var K=c[M],R=K.getAttribute(U.from);if(null!=R){z.setAttributeForCell(K,U.from,null);for(var aa=R.split(","),S=0;S<aa.length;S++){var ba=d[U.to][aa[S]];null!=ba&&(T.push(z.insertEdge(null,null,U.label||"",U.invert?ba:K,U.invert?K:ba,U.style||z.createCurrentEdgeStyle())),mxUtils.remove(U.invert?K:ba,Q))}}}if(null!=I)for(M=0;M<c.length;M++)for(K=c[M],S=0;S<I.length;S++)z.setAttributeForCell(K,mxUtils.trim(I[S]),null);var ca=new mxParallelEdgeLayout(z);
ca.spacing=l;var fa=function(){ca.execute(z.getDefaultParent());for(var a=0;a<c.length;a++){var b=z.getCellGeometry(c[a]);b.x=Math.round(z.snap(b.x));b.y=Math.round(z.snap(b.y));"auto"==g&&(b.width=Math.round(z.snap(b.width)));"auto"==h&&(b.height=Math.round(z.snap(b.height)))}};if("circle"==E){var da=new mxCircleLayout(z);da.resetEdges=!1;var ha=da.isVertexIgnored;da.isVertexIgnored=function(a){return ha.apply(this,arguments)||0>mxUtils.indexOf(c,a)};this.executeLayout(function(){da.execute(z.getDefaultParent());
fa()},!0,A);A=null}else if("horizontaltree"==E||"verticaltree"==E||"auto"==E&&T.length==2*c.length-1&&1==Q.length){z.view.validate();var Y=new mxCompactTreeLayout(z,"horizontaltree"==E);Y.levelDistance=u;Y.edgeRouting=!1;Y.resetEdges=!1;this.executeLayout(function(){Y.execute(z.getDefaultParent(),0<Q.length?Q[0]:null)},!0,A);A=null}else if("horizontalflow"==E||"verticalflow"==E||"auto"==E&&1==Q.length){z.view.validate();var ea=new mxHierarchicalLayout(z,"horizontalflow"==E?mxConstants.DIRECTION_WEST:
mxConstants.DIRECTION_NORTH);ea.intraCellSpacing=u;ea.disableEdgeStyle=!1;this.executeLayout(function(){ea.execute(z.getDefaultParent(),T);z.moveCells(T,D,F)},!0,A);A=null}else if("organic"==E||"auto"==E&&T.length>c.length){z.view.validate();var Z=new mxFastOrganicLayout(z);Z.forceConstant=3*u;Z.resetEdges=!1;var ia=Z.isVertexIgnored;Z.isVertexIgnored=function(a){return ia.apply(this,arguments)||0>mxUtils.indexOf(c,a)};ca=new mxParallelEdgeLayout(z);ca.spacing=l;this.executeLayout(function(){Z.execute(z.getDefaultParent());
fa()},!0,A);A=null}this.hideDialog()}finally{z.model.endUpdate()}null!=A&&A()}}catch(ja){this.handleError(ja)}};EditorUi.prototype.getSearch=function(a){var b="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=a&&0<window.location.search.length){var c="?",d;for(d in urlParams)0>mxUtils.indexOf(a,d)&&null!=urlParams[d]&&(b+=c+d+"="+urlParams[d],c="&")}else b=window.location.search;return b};EditorUi.prototype.getUrl=function(a){a=null!=a?a:window.location.pathname;var b=0<a.indexOf("?")?1:0;
if("1"==urlParams.offline)a+=window.location.search;else{var c="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),d;for(d in urlParams)0>mxUtils.indexOf(c,d)&&(a=0==b?a+"?":a+"&",null!=urlParams[d]&&(a+=d+"="+urlParams[d],b++))}return a};EditorUi.prototype.showLinkDialog=function(a,b,c){a=new LinkDialog(this,a,b,c,!0);this.showDialog(a.container,420,120,!0,!0);a.init()};var h=EditorUi.prototype.createOutline;EditorUi.prototype.createOutline=function(a){var b=
h.apply(this,arguments),c=this.editor.graph,d=b.getSourceGraphBounds;b.getSourceGraphBounds=function(){if(mxUtils.hasScrollbars(c.container)&&c.pageVisible&&null!=this.source.minimumGraphSize){var a=this.source.getPagePadding(),b=this.source.view.scale;return new mxRectangle(0,0,Math.ceil(this.source.minimumGraphSize.width-2*a.x/b),Math.ceil(this.source.minimumGraphSize.height-2*a.y/b))}return d.apply(this,arguments)};var f=b.getSourceContainerSize;b.getSourceContainerSize=function(){if(mxUtils.hasScrollbars(c.container)&&
null!=this.source.minimumGraphSize){var a=this.source.getPagePadding(),b=this.source.view.scale;return new mxRectangle(0,0,Math.ceil(this.source.minimumGraphSize.width*b-2*a.x),Math.ceil(this.source.minimumGraphSize.height*b-2*a.y))}return f.apply(this,arguments)};b.getOutlineOffset=function(a){if(mxUtils.hasScrollbars(c.container)&&null!=this.source.minimumGraphSize){var d=this.source.getPagePadding();return new mxPoint(Math.round(Math.max(0,(b.outline.container.clientWidth/a-(this.source.minimumGraphSize.width-
2*d.x))/2)-d.x),Math.round(Math.max(0,(b.outline.container.clientHeight/a-(this.source.minimumGraphSize.height-2*d.y))/2)-d.y-5/a))}return new mxPoint(8/a,8/a)};var e=b.init;b.init=function(){e.apply(this,arguments);b.outline.view.getBackgroundPageBounds=function(){var a=c.getPageLayout(),b=c.getPageSize();return new mxRectangle(this.scale*(this.translate.x+a.x*b.width),this.scale*(this.translate.y+a.y*b.height),this.scale*a.width*b.width,this.scale*a.height*b.height)};b.outline.view.validateBackgroundPage()};
this.editor.addListener("pageSelected",function(a,c){var d=c.getProperty("change"),f=b.source,e=b.outline;e.pageScale=f.pageScale;e.pageFormat=f.pageFormat;e.background=f.background;e.pageVisible=f.pageVisible;e.background=f.background;var g=mxUtils.getCurrentStyle(f.container);e.container.style.backgroundColor=g.backgroundColor;null!=f.view.backgroundPageShape&&null!=e.view.backgroundPageShape&&(e.view.backgroundPageShape.fill=f.view.backgroundPageShape.fill);b.outline.view.clear(d.previousPage.root,
!0);b.outline.view.validate()});return b};EditorUi.prototype.getServiceCount=function(a){var b=0;null==this.drive&&"function"!==typeof window.DriveClient||b++;null==this.dropbox&&"function"!==typeof window.DropboxClient||b++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||b++;null!=this.gitHub&&b++;null==this.trello&&"function"!==typeof window.TrelloClient||b++;a&&isLocalStorage&&("1"==urlParams.browser||mxClient.IS_IOS)&&b++;mxClient.IS_IOS||b++;return b};EditorUi.prototype.updateUi=
function(){this.updateButtonContainer();this.updateActionStates();var a=this.getCurrentFile(),b=null!=a||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(b);this.menus.get("viewZoom").setEnabled(b);var c=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==a||a.isRestricted());this.actions.get("makeCopy").setEnabled(!c);this.actions.get("print").setEnabled(!c);this.menus.get("exportAs").setEnabled(!c);this.menus.get("embed").setEnabled(!c);c="1"!=
urlParams.embed||this.editor.graph.isEnabled();this.menus.get("openLibraryFrom").setEnabled(c);this.menus.get("newLibrary").setEnabled(c);this.menus.get("extras").setEnabled(c);a="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=a&&a.isEditable();this.actions.get("image").setEnabled(b);this.actions.get("zoomIn").setEnabled(b);this.actions.get("zoomOut").setEnabled(b);this.actions.get("resetView").setEnabled(b);this.menus.get("edit").setEnabled(b);this.menus.get("view").setEnabled(b);this.menus.get("importFrom").setEnabled(a);
this.menus.get("arrange").setEnabled(a);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(a),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(a));if(this.isOfflineApp()){var d=applicationCache;if(null!=d&&null==this.offlineStatus){this.offlineStatus=document.createElement("div");this.offlineStatus.className="geItem";this.offlineStatus.style.position="absolute";this.offlineStatus.style.fontSize="8pt";this.offlineStatus.style.top="2px";
this.offlineStatus.style.right="12px";this.offlineStatus.style.color="#666";this.offlineStatus.style.margin="4px";this.offlineStatus.style.padding="2px";this.offlineStatus.style.verticalAlign="middle";this.offlineStatus.innerHTML="";this.menubarContainer.appendChild(this.offlineStatus);mxEvent.addListener(this.offlineStatus,"click",mxUtils.bind(this,function(){var a=this.offlineStatus.getElementsByTagName("img");null!=a&&0<a.length&&this.alert(a[0].getAttribute("title"))}));var d=window.applicationCache,
f=null,b=mxUtils.bind(this,function(){var a=d.status,b;a==d.CHECKING&&(a=d.DOWNLOADING);switch(a){case d.UNCACHED:b="";break;case d.IDLE:b='<img title="draw.io is up to date." border="0" src="'+IMAGE_PATH+'/checkmark.gif"/>';break;case d.DOWNLOADING:b='<img title="Downloading new version..." border="0" src="'+IMAGE_PATH+'/spin.gif"/>';break;case d.UPDATEREADY:b='<img title="'+mxUtils.htmlEntities(mxResources.get("restartForChangeRequired"))+'" border="0" src="'+IMAGE_PATH+'/download.png"/>';break;
case d.OBSOLETE:b='<img title="Obsolete" border="0" src="'+IMAGE_PATH+'/clear.gif"/>';break;default:b='<img title="Unknown" border="0" src="'+IMAGE_PATH+'/clear.gif"/>'}a!=f&&(this.offlineStatus.innerHTML=b,f=a)});mxEvent.addListener(d,"checking",b);mxEvent.addListener(d,"noupdate",b);mxEvent.addListener(d,"downloading",b);mxEvent.addListener(d,"progress",b);mxEvent.addListener(d,"cached",b);mxEvent.addListener(d,"updateready",b);mxEvent.addListener(d,"obsolete",b);mxEvent.addListener(d,"error",b);
b()}}else this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};var l=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){l.apply(this,arguments);var a=this.editor.graph,b=this.getCurrentFile(),c=null!=b&&b.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.actions.get("pageSetup").setEnabled(c);this.actions.get("autosave").setEnabled(null!=b&&b.isEditable()&&b.isAutosaveOptional());
this.actions.get("guides").setEnabled(c);this.actions.get("editData").setEnabled(c);this.actions.get("shadowVisible").setEnabled(c);this.actions.get("connectionArrows").setEnabled(c);this.actions.get("connectionPoints").setEnabled(c);this.actions.get("copyStyle").setEnabled(c&&!a.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(c&&!a.isSelectionEmpty());this.actions.get("editGeometry").setEnabled(a.getModel().isVertex(a.getSelectionCell()));this.actions.get("createShape").setEnabled(c);
this.actions.get("createRevision").setEnabled(c);this.actions.get("moveToFolder").setEnabled(null!=b);this.actions.get("makeCopy").setEnabled(null!=b&&!b.isRestricted());this.actions.get("editDiagram").setEnabled("1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&!b.isRestricted());this.actions.get("publishLink").setEnabled(null!=b&&!b.isRestricted());this.actions.get("tags").setEnabled("1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&!b.isRestricted());this.actions.get("close").setEnabled(null!=
b);this.menus.get("publish").setEnabled(null!=b&&!b.isRestricted());a=a.view.getState(a.getSelectionCell());this.actions.get("editShape").setEnabled(c&&null!=a&&null!=a.shape&&null!=a.shape.stencil)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(a,b,c,d,f,g){var e=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",
mxUtils.getXml(e.getSvg(d,f,g)),"image/svg+xml");else{var h=a.getFileData(!0,null,null,null,null,!0),l=e.getGraphBounds(),k=Math.floor(l.width*f/e.view.scale),m=Math.floor(l.height*f/e.view.scale);h.length<=MAX_REQUEST_SIZE&&k*m<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a,b){return new mxXmlRequest(EXPORT_URL,"format="+c+"&base64="+(b||"0")+(null!=a?"&filename="+encodeURIComponent(a):"")+"&bg="+(null!=d?d:"none")+"&w="+k+"&h="+m+"&border="+g+"&xml="+encodeURIComponent(h))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})();var mxSettings={currentVersion:16,defaultFormatWidth:600>screen.width?"0":"240",key:".drawio-config",getLanguage:function(){return mxSettings.settings.language},setLanguage:function(a){mxSettings.settings.language=a},getUi:function(){return mxSettings.settings.ui},setUi:function(a){mxSettings.settings.ui=a},getShowStartScreen:function(){return mxSettings.settings.showStartScreen},setShowStartScreen:function(a){mxSettings.settings.showStartScreen=a},getGridColor:function(){return mxSettings.settings.gridColor},
setGridColor:function(a){mxSettings.settings.gridColor=a},getAutosave:function(){return mxSettings.settings.autosave},setAutosave:function(a){mxSettings.settings.autosave=a},getResizeImages:function(){return mxSettings.settings.resizeImages},setResizeImages:function(a){mxSettings.settings.resizeImages=a},getOpenCounter:function(){return mxSettings.settings.openCounter},setOpenCounter:function(a){mxSettings.settings.openCounter=a},getLibraries:function(){return mxSettings.settings.libraries},setLibraries:function(a){mxSettings.settings.libraries=
a},addCustomLibrary:function(a){mxSettings.load();0>mxUtils.indexOf(mxSettings.settings.customLibraries,a)&&("L.scratchpad"===a?mxSettings.settings.customLibraries.splice(0,0,a):mxSettings.settings.customLibraries.push(a));mxSettings.save()},removeCustomLibrary:function(a){mxSettings.load();mxUtils.remove(a,mxSettings.settings.customLibraries);mxSettings.save()},getCustomLibraries:function(){return mxSettings.settings.customLibraries},getPlugins:function(){return mxSettings.settings.plugins},setPlugins:function(a){mxSettings.settings.plugins=
a},getRecentColors:function(){return mxSettings.settings.recentColors},setRecentColors:function(a){mxSettings.settings.recentColors=a},getFormatWidth:function(){return parseInt(mxSettings.settings.formatWidth)},setFormatWidth:function(a){mxSettings.settings.formatWidth=a},getCurrentEdgeStyle:function(){return mxSettings.settings.currentEdgeStyle},setCurrentEdgeStyle:function(a){mxSettings.settings.currentEdgeStyle=a},getCurrentVertexStyle:function(){return mxSettings.settings.currentVertexStyle},
@ -6867,17 +6868,18 @@ App.prototype.load=function(){if("1"!=urlParams.embed){if(this.spinner.spin(docu
App.prototype.showAlert=function(a){if(null!=a&&0<a.length){var b=document.createElement("div");b.className="geAlert";b.style.zIndex=2E9;b.style.left="50%";b.style.top="-100%";mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,0%)");mxUtils.setPrefixedStyle(b.style,"transition","all 1s ease");b.innerHTML=a;a=document.createElement("a");a.className="geAlertLink";a.style.textAlign="right";a.style.marginTop="20px";a.style.display="block";a.setAttribute("href","javascript:void(0);");a.setAttribute("title",
mxResources.get("close"));a.innerHTML=mxResources.get("close");b.appendChild(a);mxEvent.addListener(a,"click",function(a){null!=b.parentNode&&(b.parentNode.removeChild(b),mxEvent.consume(a))});document.body.appendChild(b);window.setTimeout(function(){b.style.top="30px"},10);window.setTimeout(function(){mxUtils.setPrefixedStyle(b.style,"transition","all 2s ease");b.style.opacity="0";window.setTimeout(function(){null!=b.parentNode&&b.parentNode.removeChild(b)},2E3)},15E3)}};
App.prototype.start=function(){this.bg.parentNode.removeChild(this.bg);this.restoreLibraries();this.spinner.stop();try{if("1"!=urlParams.client&&"1"!=urlParams.embed&&mxEvent.addListener(window,"hashchange",mxUtils.bind(this,function(a){try{var b=this.getDiagramId(),c=this.getCurrentFile();null!=c&&c.getHash()==b||this.loadFile(b,!0)}catch(l){null!=document.body&&this.handleError(l,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var a=this.getCurrentFile();window.location.hash=null!=
a?a.getHash():""}))}})),(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.url)this.loadFile("U"+urlParams.url,!0);else if(null==this.getCurrentFile()){var a=mxUtils.bind(this,function(){if("1"==urlParams.client&&(null==window.location.hash||0==window.location.hash.length)){var a=window.opener||window.parent;a!=window&&this.installMessageHandler(mxUtils.bind(this,function(b,c){if(c.source==a){"data:image/png;base64,"==b.substring(0,22)&&(b=this.extractGraphModelFromPng(b));
var d=urlParams.title,d=null!=d?decodeURIComponent(d):this.defaultFilename;this.fileLoaded(new LocalFile(this,b,d,!0));this.getCurrentFile().setModified(!this.editor.chromeless)}}))}else if(null==this.dialog)if("1"==urlParams.demo){var b=Editor.useLocalStorage;this.createFile(this.defaultFilename,null,null,null,null,null,null,!0);Editor.useLocalStorage=b}else{b=!1;try{b=null!=window.opener&&null!=window.opener.openFile}catch(e){}if(b)this.spinner.spin(document.body,mxResources.get("loading"));else if(b=
this.getDiagramId(),"0"!=urlParams.splash||null!=b&&0!=b.length)this.loadFile(this.getDiagramId());else{var c=this.getDraft(),d=null!=c?c.data:this.getFileData(),b=Editor.useLocalStorage;this.createFile(this.defaultFilename,d,null,null,null,null,null,!0);Editor.useLocalStorage=b;null!=c&&(b=this.getCurrentFile(),null!=b&&b.addUnsavedStatus())}}});null!=this.drive&&this.defineCustomObjects();var b=decodeURIComponent(urlParams.create||"");if((null==window.location.hash||1>=window.location.hash.length)&&
null!=b&&0<b.length&&this.spinner.spin(document.body,mxResources.get("loading"))){var d=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("reconnecting"))&&(window.location.search=this.getSearch(["create","title"]))}),c=mxUtils.bind(this,function(a){this.spinner.stop();if("0"!=urlParams.splash){this.fileLoaded(new LocalFile(this,a,null));this.editor.graph.setEnabled(!1);this.mode=urlParams.mode;var b=urlParams.title,b=null!=b?decodeURIComponent(b):this.defaultFilename;a=
this.getServiceCount(!0);var c=4>=a?4:3,b=new CreateDialog(this,b,mxUtils.bind(this,function(a,b){if(null==b){this.hideDialog();var c=Editor.useLocalStorage;this.createFile(0<a.length?a:this.defaultFilename,this.getFileData(),null,null,null,null,null,!0);Editor.useLocalStorage=c}else this.createFile(a,this.getFileData(!0),null,b)}),null,null,null,null,"1"==urlParams.browser,null,null,!0,c);this.showDialog(b.container,380,a>c?390:270,!0,!1,mxUtils.bind(this,function(a){a&&null==this.getCurrentFile()&&
this.showSplash()}));b.init()}}),b=decodeURIComponent(b);if("http://"!=b.substring(0,7)&&"https://"!=b.substring(0,8))try{null!=window.opener&&null!=window.opener[b]?c(window.opener[b]):this.handleError(null,mxResources.get("errorLoadingFile"))}catch(f){this.handleError(f,mxResources.get("errorLoadingFile"))}else this.loadTemplate(b,function(a){c(a)},mxUtils.bind(this,function(){this.handleError(null,mxResources.get("errorLoadingFile"),d)}))}else(null==window.location.hash||1>=window.location.hash.length)&&
null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action&&null!=this.stateArg.ids&&(window.location.hash="G"+this.stateArg.ids[0]),(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(this.setMode(App.MODE_GOOGLE),this.actions.get("new").funct()):a()}}catch(f){this.handleError(f)}};
a?a.getHash():""}))}})),(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.url)this.loadFile("U"+urlParams.url,!0);else if(null==this.getCurrentFile()){var a=mxUtils.bind(this,function(){if("1"==urlParams.client&&(null==window.location.hash||0==window.location.hash.length||"#P"==window.location.hash.substring(0,2))){var a=window.opener||window.parent;a!=window&&this.installMessageHandler(mxUtils.bind(this,function(b,c){if(c.source==a){"data:image/png;base64,"==b.substring(0,
22)&&(b=this.extractGraphModelFromPng(b));var d=urlParams.title,d=null!=d?decodeURIComponent(d):this.defaultFilename,d=new LocalFile(this,b,d,!0);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(d.getHash=function(){return window.location.hash.substring(1)});this.fileLoaded(d);this.getCurrentFile().setModified(!this.editor.chromeless)}}))}else if(null==this.dialog)if("1"==urlParams.demo){var b=Editor.useLocalStorage;this.createFile(this.defaultFilename,null,null,null,null,null,
null,!0);Editor.useLocalStorage=b}else{b=!1;try{b=null!=window.opener&&null!=window.opener.openFile}catch(e){}if(b)this.spinner.spin(document.body,mxResources.get("loading"));else if(b=this.getDiagramId(),"0"!=urlParams.splash||null!=b&&0!=b.length)this.loadFile(this.getDiagramId());else{var c=this.getDraft(),d=null!=c?c.data:this.getFileData(),b=Editor.useLocalStorage;this.createFile(this.defaultFilename,d,null,null,null,null,null,!0);Editor.useLocalStorage=b;null!=c&&(b=this.getCurrentFile(),null!=
b&&b.addUnsavedStatus())}}});null!=this.drive&&this.defineCustomObjects();var b=decodeURIComponent(urlParams.create||"");if((null==window.location.hash||1>=window.location.hash.length)&&null!=b&&0<b.length&&this.spinner.spin(document.body,mxResources.get("loading"))){var d=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("reconnecting"))&&(window.location.search=this.getSearch(["create","title"]))}),c=mxUtils.bind(this,function(a){this.spinner.stop();if("0"!=urlParams.splash){this.fileLoaded(new LocalFile(this,
a,null));this.editor.graph.setEnabled(!1);this.mode=urlParams.mode;var b=urlParams.title,b=null!=b?decodeURIComponent(b):this.defaultFilename;a=this.getServiceCount(!0);var c=4>=a?4:3,b=new CreateDialog(this,b,mxUtils.bind(this,function(a,b){if(null==b){this.hideDialog();var c=Editor.useLocalStorage;this.createFile(0<a.length?a:this.defaultFilename,this.getFileData(),null,null,null,null,null,!0);Editor.useLocalStorage=c}else this.createFile(a,this.getFileData(!0),null,b)}),null,null,null,null,"1"==
urlParams.browser,null,null,!0,c);this.showDialog(b.container,380,a>c?390:270,!0,!1,mxUtils.bind(this,function(a){a&&null==this.getCurrentFile()&&this.showSplash()}));b.init()}}),b=decodeURIComponent(b);if("http://"!=b.substring(0,7)&&"https://"!=b.substring(0,8))try{null!=window.opener&&null!=window.opener[b]?c(window.opener[b]):this.handleError(null,mxResources.get("errorLoadingFile"))}catch(f){this.handleError(f,mxResources.get("errorLoadingFile"))}else this.loadTemplate(b,function(a){c(a)},mxUtils.bind(this,
function(){this.handleError(null,mxResources.get("errorLoadingFile"),d)}))}else(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action&&null!=this.stateArg.ids&&(window.location.hash="G"+this.stateArg.ids[0]),(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(this.setMode(App.MODE_GOOGLE),this.actions.get("new").funct()):a()}}catch(f){this.handleError(f)}};
App.prototype.showSplash=function(a){var b=this.getServiceCount(!1)+1,d=mxUtils.bind(this,function(){var a=new SplashDialog(this);this.showDialog(a.container,340,2>b||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?200:260,!0,!0,mxUtils.bind(this,function(a){a&&!mxClient.IS_CHROMEAPP&&(a=Editor.useLocalStorage,this.createFile(this.defaultFilename,null,null,null,null,null,null,"1"!=urlParams.local),Editor.useLocalStorage=a)}))});if(this.editor.chromeless)this.handleError({message:mxResources.get("noFileSelected")},
mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){this.showSplash()}));else if(null==this.mode||a){a=4>=b?2:3;var c=new StorageDialog(this,mxUtils.bind(this,function(){this.hideDialog();d()}),a);this.showDialog(c.container,3>a?260:300,b>a?420:300,!0,!1);c.init()}else null==urlParams.create&&d()};
App.prototype.addLanguageMenu=function(a){var b=null;this.isOfflineApp()&&!mxClient.IS_CHROMEAPP||null==this.menus.get("language")||(b=document.createElement("div"),b.setAttribute("title",mxResources.get("language")),b.className="geIcon geSprite geSprite-globe",b.style.position="absolute",b.style.cursor="pointer",b.style.bottom="20px",b.style.right="20px",mxEvent.addListener(b,"click",mxUtils.bind(this,function(a){this.editor.graph.popupMenuHandler.hideMenu();var c=new mxPopupMenu(this.menus.get("language").funct);
c.div.className+=" geMenubarMenu";c.smartSeparators=!0;c.showDisabled=!0;c.autoExpand=!0;c.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(c,arguments);c.destroy()});var d=mxUtils.getOffset(b);c.popup(d.x,d.y+b.offsetHeight,null,a);this.setCurrentMenu(c)})),a.appendChild(b));return b};
App.prototype.addLanguageMenu=function(a,b){var d=null;if((!this.isOfflineApp()||mxClient.IS_CHROMEAPP)&&null!=this.menus.get("language")){d=document.createElement("div");d.setAttribute("title",mxResources.get("language"));d.className="geIcon geSprite geSprite-globe";d.style.position="absolute";d.style.cursor="pointer";d.style.bottom="20px";d.style.right="20px";if(b){d.style.direction="rtl";d.style.textAlign="right";d.style.right="24px";var c=document.createElement("span");c.style.display="inline-block";
c.style.fontSize="12px";c.style.margin="5px 24px 0 0";c.style.color="gray";mxUtils.write(c,mxResources.get("language"));d.appendChild(c)}mxEvent.addListener(d,"click",mxUtils.bind(this,function(a){this.editor.graph.popupMenuHandler.hideMenu();var b=new mxPopupMenu(this.menus.get("language").funct);b.div.className+=" geMenubarMenu";b.smartSeparators=!0;b.showDisabled=!0;b.autoExpand=!0;b.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(b,arguments);b.destroy()});var c=mxUtils.getOffset(d);
b.popup(c.x,c.y+d.offsetHeight,null,a);this.setCurrentMenu(b)}));a.appendChild(d)}return d};
App.prototype.defineCustomObjects=function(){null!=gapi.drive.realtime&&null!=gapi.drive.realtime.custom&&(gapi.drive.realtime.custom.registerType(mxRtCell,"Cell"),mxRtCell.prototype.cellId=gapi.drive.realtime.custom.collaborativeField("cellId"),mxRtCell.prototype.type=gapi.drive.realtime.custom.collaborativeField("type"),mxRtCell.prototype.value=gapi.drive.realtime.custom.collaborativeField("value"),mxRtCell.prototype.xmlValue=gapi.drive.realtime.custom.collaborativeField("xmlValue"),mxRtCell.prototype.style=
gapi.drive.realtime.custom.collaborativeField("style"),mxRtCell.prototype.geometry=gapi.drive.realtime.custom.collaborativeField("geometry"),mxRtCell.prototype.visible=gapi.drive.realtime.custom.collaborativeField("visible"),mxRtCell.prototype.collapsed=gapi.drive.realtime.custom.collaborativeField("collapsed"),mxRtCell.prototype.connectable=gapi.drive.realtime.custom.collaborativeField("connectable"),mxRtCell.prototype.parent=gapi.drive.realtime.custom.collaborativeField("parent"),mxRtCell.prototype.children=
gapi.drive.realtime.custom.collaborativeField("children"),mxRtCell.prototype.source=gapi.drive.realtime.custom.collaborativeField("source"),mxRtCell.prototype.target=gapi.drive.realtime.custom.collaborativeField("target"))};mxRtCell=function(){};mxCodecRegistry.getCodec(mxCell).exclude.push("rtCell");mxCell.prototype.mxTransient.push("rtCell");
@ -6896,8 +6898,8 @@ function(){d.save(!0,mxUtils.bind(this,function(a){this.spinner.stop();this.hide
App.prototype.saveFile=function(a){var b=this.getCurrentFile();if(null!=b){var d=mxUtils.bind(this,function(){this.removeDraft();b.getMode()!=App.MODE_DEVICE?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("allChangesSaved"))):this.editor.setStatus("")});if(a||null==b.getTitle()||null==this.mode){var c=null!=b.getTitle()?b.getTitle():this.defaultFilename,f=!mxClient.IS_IOS||!navigator.standalone,g=this.mode;a=this.getServiceCount(!0);isLocalStorage&&a++;var h=4>=a?2:6<a?4:3,c=new CreateDialog(this,
c,mxUtils.bind(this,function(a,b){null!=a&&0<a.length&&(null==g&&b==App.MODE_DEVICE?(this.setMode(App.MODE_DEVICE),this.save(a,d)):"download"==b?(new LocalFile(this,null,a)).save():"_blank"==b?(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(this.getFileData(!0)),window.open(this.getUrl(window.location.pathname))):g!=b?this.pickFolder(b,mxUtils.bind(this,function(c){this.createFile(a,this.getFileData(/(\.xml)$/i.test(a)||0>a.indexOf("."),/(\.svg)$/i.test(a),
/(\.html)$/i.test(a)),null,b,d,null==this.mode,c)}),b!==App.MODE_GITHUB):null!=b&&this.save(a,d))}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),null,null,f,this.isOffline()?null:"https://desk.draw.io/support/solutions/articles/16000042485",!0,h);this.showDialog(c.container,460,a>h?390:270,!0,!0);c.init()}else this.save(b.getTitle(),d)}};
EditorUi.prototype.loadTemplate=function(a,b,d){var c=a;this.isCorsEnabledForUrl(c)||(c=PROXY_URL+"?url="+encodeURIComponent(a));this.loadUrl(c,mxUtils.bind(this,function(c){!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,a)?this.parseFile(new Blob([c],{type:"application/octet-stream"}),mxUtils.bind(this,function(a){4==a.readyState&&200<=a.status&&299>=a.status&&"<mxGraphModel"==a.responseText.substring(0,13)&&b(a.responseText)}),a):(/(\.png)($|\?)/i.test(a)&&(c=this.extractGraphModelFromPng(c)),
b(c))}),d,/(\.png)($|\?)/i.test(a))};App.prototype.getPeerForMode=function(a){return a==App.MODE_GOOGLE?this.drive:a==App.MODE_GITHUB?this.gitHub:a==App.MODE_DROPBOX?this.dropbox:a==App.MODE_ONEDRIVE?this.oneDrive:a==App.MODE_TRELLO?this.trello:null};
EditorUi.prototype.loadTemplate=function(a,b,d){var c=a;this.isCorsEnabledForUrl(c)||(c="t="+(new Date).getTime(),c=PROXY_URL+"?url="+encodeURIComponent(a)+"&"+c);this.loadUrl(c,mxUtils.bind(this,function(c){!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,a)?this.parseFile(new Blob([c],{type:"application/octet-stream"}),mxUtils.bind(this,function(a){4==a.readyState&&200<=a.status&&299>=a.status&&"<mxGraphModel"==a.responseText.substring(0,13)&&b(a.responseText)}),a):(/(\.png)($|\?)/i.test(a)&&
(c=this.extractGraphModelFromPng(c)),b(c))}),d,/(\.png)($|\?)/i.test(a))};App.prototype.getPeerForMode=function(a){return a==App.MODE_GOOGLE?this.drive:a==App.MODE_GITHUB?this.gitHub:a==App.MODE_DROPBOX?this.dropbox:a==App.MODE_ONEDRIVE?this.oneDrive:a==App.MODE_TRELLO?this.trello:null};
App.prototype.createFile=function(a,b,d,c,f,g,h,l){c=l?null:null!=c?c:this.mode;if(null!=a&&this.spinner.spin(document.body,mxResources.get("inserting"))){b=null!=b?b:this.emptyDiagramXml;var e=mxUtils.bind(this,function(){this.spinner.stop()}),m=mxUtils.bind(this,function(a){e();null==a&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():null!=a&&this.handleError(a)});c==App.MODE_GOOGLE&&null!=this.drive?(h=null!=this.stateArg?this.stateArg.folderId:h,this.drive.insertFile(a,b,h,mxUtils.bind(this,
function(a){e();this.fileCreated(a,d,g,f)}),m)):c==App.MODE_GITHUB&&null!=this.gitHub?this.pickFolder(c,mxUtils.bind(this,function(c){this.gitHub.insertFile(a,b,mxUtils.bind(this,function(a){e();this.fileCreated(a,d,g,f)}),m,!1,c)})):c==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(a,b,mxUtils.bind(this,function(a){e();this.fileCreated(a,d,g,f)}),m,!1,h):c==App.MODE_DROPBOX&&null!=this.dropbox?this.dropbox.insertFile(a,b,mxUtils.bind(this,function(a){e();this.fileCreated(a,d,g,f)}),m):
c==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.insertFile(a,b,mxUtils.bind(this,function(a){e();this.fileCreated(a,d,g,f)}),m,!1,h):c==App.MODE_BROWSER?(e(),c=mxUtils.bind(this,function(){var c=new StorageFile(this,b,a);c.saveFile(a,!1,mxUtils.bind(this,function(){this.fileCreated(c,d,g,f)}),m)}),null==localStorage.getItem(a)?c():this.confirm(mxResources.get("replaceIt",[a]),c,mxUtils.bind(this,function(){null==this.getCurrentFile()&&null==this.dialog&&this.showSplash()}))):(e(),this.fileCreated(new LocalFile(this,
@ -6916,8 +6918,8 @@ window.location.hash=a.getHash()}))})))}),f=this.getCurrentFile(),g=mxUtils.bind
App.prototype.getLibraryStorageHint=function(a){var b=a.getTitle();a.constructor!=LocalLibrary&&(b+="\n"+a.getHash());a.constructor==DriveLibrary?b+=" ("+mxResources.get("googleDrive")+")":a.constructor==GitHubLibrary?b+=" ("+mxResources.get("github")+")":a.constructor==TrelloLibrary?b+=" ("+mxResources.get("trello")+")":a.constructor==DropboxLibrary?b+=" ("+mxResources.get("dropbox")+")":a.constructor==OneDriveLibrary?b+=" ("+mxResources.get("oneDrive")+")":a.constructor==StorageLibrary?b+=" ("+
mxResources.get("browser")+")":a.constructor==LocalLibrary&&(b+=" ("+mxResources.get("device")+")");return b};
App.prototype.restoreLibraries=function(){if(null!=this.sidebar){null==this.pendingLibraries&&(this.pendingLibraries={});var a=mxUtils.bind(this,function(a){mxSettings.removeCustomLibrary(a);delete this.pendingLibraries[a]}),b=mxUtils.bind(this,function(b){if(null!=b)for(var c=0;c<b.length;c++){var d=encodeURIComponent(decodeURIComponent(b[c]));mxUtils.bind(this,function(b){if(null!=b&&0<b.length&&null==this.pendingLibraries[b]&&null==this.sidebar.palettes[b]){this.pendingLibraries[b]=!0;var c=b.substring(0,
1);if("L"==c){if(isLocalStorage||mxClient.IS_CHROMEAPP)try{var d=decodeURIComponent(b.substring(1));this.getLocalData(d,mxUtils.bind(this,function(c){".scratchpad"==d&&null==c&&(c=this.emptyLibraryXml);null!=c?this.loadLibrary(new StorageLibrary(this,c,d)):a(b)}))}catch(k){a(b)}}else if("U"==c){var f=decodeURIComponent(b.substring(1));this.isOffline()||(c=f,this.isCorsEnabledForUrl(c)||(c=PROXY_URL+"?url="+encodeURIComponent(f)),mxUtils.get(c,mxUtils.bind(this,function(c){if(200<=c.getStatus()&&299>=
c.getStatus())try{this.loadLibrary(new UrlLibrary(this,c.getText(),f)),delete this.pendingLibraries[b]}catch(n){a(b)}else a(b)}),function(){a(b)}))}else{var g=null;"G"==c?null!=this.drive&&null!=this.drive.user&&(g=this.drive):"H"==c?null!=this.gitHub&&null!=this.gitHub.getUser()&&(g=this.gitHub):"T"==c?null!=this.trello&&this.trello.isAuthorized()&&(g=this.trello):"D"==c?null!=this.dropbox&&null!=this.dropbox.getUser()&&(g=this.dropbox):"W"==c&&null!=this.oneDrive&&null!=this.oneDrive.getUser()&&
1);if("L"==c){if(isLocalStorage||mxClient.IS_CHROMEAPP)try{var d=decodeURIComponent(b.substring(1));this.getLocalData(d,mxUtils.bind(this,function(c){".scratchpad"==d&&null==c&&(c=this.emptyLibraryXml);null!=c?this.loadLibrary(new StorageLibrary(this,c,d)):a(b)}))}catch(k){a(b)}}else if("U"==c){var f=decodeURIComponent(b.substring(1));this.isOffline()||(c=f,this.isCorsEnabledForUrl(c)||(c="t="+(new Date).getTime(),c=PROXY_URL+"?url="+encodeURIComponent(f)+"&"+c),mxUtils.get(c,mxUtils.bind(this,function(c){if(200<=
c.getStatus()&&299>=c.getStatus())try{this.loadLibrary(new UrlLibrary(this,c.getText(),f)),delete this.pendingLibraries[b]}catch(n){a(b)}else a(b)}),function(){a(b)}))}else{var g=null;"G"==c?null!=this.drive&&null!=this.drive.user&&(g=this.drive):"H"==c?null!=this.gitHub&&null!=this.gitHub.getUser()&&(g=this.gitHub):"T"==c?null!=this.trello&&this.trello.isAuthorized()&&(g=this.trello):"D"==c?null!=this.dropbox&&null!=this.dropbox.getUser()&&(g=this.dropbox):"W"==c&&null!=this.oneDrive&&null!=this.oneDrive.getUser()&&
(g=this.oneDrive);null!=g?g.getLibrary(decodeURIComponent(b.substring(1)),mxUtils.bind(this,function(c){try{this.loadLibrary(c),delete this.pendingLibraries[b]}catch(n){a(b)}}),function(c){a(b)}):delete this.pendingLibraries[b]}}})(d)}});b(mxSettings.getCustomLibraries());b((urlParams.clibs||"").split(";"))}};
App.prototype.updateButtonContainer=function(){if(null!=this.buttonContainer){var a=this.getCurrentFile();null!=a&&a.constructor==DriveFile?null==this.shareButton&&(this.shareButton=document.createElement("div"),this.shareButton.className="geBtn gePrimaryBtn",this.shareButton.style.display="inline-block",this.shareButton.style.padding="0 10px 0 10px",this.shareButton.style.marginTop="-4px",this.shareButton.style.height="28px",this.shareButton.style.lineHeight="28px",this.shareButton.style.minWidth=
"0px",this.shareButton.style.cssFloat="right",a=document.createElement("img"),a.setAttribute("src",this.shareImage),a.setAttribute("align","absmiddle"),a.style.marginRight="4px",a.style.marginTop="-3px",this.shareButton.appendChild(a),mxUtils.write(this.shareButton,mxResources.get("share")),mxEvent.addListener(this.shareButton,"click",mxUtils.bind(this,function(){this.actions.get("share").funct()})),this.buttonContainer.appendChild(this.shareButton)):null!=this.shareButton&&(this.shareButton.parentNode.removeChild(this.shareButton),
@ -6982,7 +6984,7 @@ d.getSelectionCells(),c=[],e=0;e<b.length;e++)d.getModel().isVertex(b[e])&&c.pus
a.actions.addAction("copyStyle",function(){var b=d.view.getState(d.getSelectionCell());if(d.isEnabled()&&null!=b){a.copiedStyle=mxUtils.clone(b.style);for(var b=d.getModel().getStyle(b.cell),b=null!=b?b.split(";"):[],c=0;c<b.length;c++){var e=b[c],f=e.indexOf("=");if(0<=f){var g=e.substring(0,f),e=e.substring(f+1);null==a.copiedStyle[g]&&"none"==e&&(a.copiedStyle[g]="none")}}}},null,null,Editor.ctrlKey+"+Shift+C");a.actions.addAction("pasteStyle",function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&
null!=a.copiedStyle){d.getModel().beginUpdate();try{for(var b=d.getSelectionCells(),c=0;c<b.length;c++)for(var e=d.view.getState(b[c]),f=0;f<p.length;f++){var g=p[f],h=a.copiedStyle[g];e.style[g]!=h&&d.setCellStyles(g,h,[b[c]])}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+Shift+V");a.actions.put("pageBackgroundImage",new Action(mxResources.get("backgroundImage")+"...",function(){if(!a.isOffline()){var b=new BackgroundImageDialog(a,function(b){a.setBackgroundImage(b)});a.showDialog(b.container,
320,170,!0,!0);b.init()}}));k=a.actions.put("shadowVisible",new Action(mxResources.get("shadow"),function(){d.setShadowVisible(!d.shadowVisible)}));k.setToggleAction(!0);k.setSelectedCallback(function(){return d.shadowVisible});var v=!1;a.actions.put("about",new Action(mxResources.get("aboutDrawio")+"...",function(){v||(a.showDialog((new AboutDialog(a)).container,220,300,!0,!0,function(){v=!1}),v=!0)},null,null,"F1"));a.actions.addAction("userManual...",function(){window.open("https://support.draw.io/display/DO/Draw.io+Online+User+Manual")});
a.actions.addAction("support...",function(){window.open("https://support.draw.io/display/DO/draw.io+Online+Support")});a.actions.addAction("exportOptionsDisabled...",function(){a.handleError({message:mxResources.get("exportOptionsDisabledDetails")},mxResources.get("exportOptionsDisabled"))});a.actions.addAction("keyboardShortcuts...",function(){mxClient.IS_CHROMEAPP?window.open("https://www.draw.io/shortcuts.svg"):mxClient.IS_SVG?window.open("shortcuts.svg"):window.open("https://www.draw.io/?lightbox=1#Uhttps%3A%2F%2Fwww.draw.io%2Fshortcuts.svg")});
a.actions.addAction("support...",function(){window.open("https://about.draw.io/support/")});a.actions.addAction("exportOptionsDisabled...",function(){a.handleError({message:mxResources.get("exportOptionsDisabledDetails")},mxResources.get("exportOptionsDisabled"))});a.actions.addAction("keyboardShortcuts...",function(){mxClient.IS_CHROMEAPP?window.open("https://www.draw.io/shortcuts.svg"):mxClient.IS_SVG?window.open("shortcuts.svg"):window.open("https://www.draw.io/?lightbox=1#Uhttps%3A%2F%2Fwww.draw.io%2Fshortcuts.svg")});
a.actions.addAction("feedback...",function(){var b=new FeedbackDialog(a);a.showDialog(b.container,610,360,!0,!0);b.init()});a.actions.addAction("quickStart...",function(){window.open("https://www.youtube.com/watch?v=Z0D96ZikMkc")});k=a.actions.addAction("tags...",mxUtils.bind(this,function(){null==this.tagsWindow?(this.tagsWindow=new TagsWindow(a,document.body.offsetWidth-380,230,280,120),this.tagsWindow.window.addListener("show",function(){a.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.addListener("hide",
function(){a.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.setVisible(!0),a.fireEvent(new mxEventObject("tags"))):this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}));k.setToggleAction(!0);k.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));k=a.actions.addAction("find...",mxUtils.bind(this,function(){null==this.findWindow?(this.findWindow=new FindWindow(a,document.body.offsetWidth-300,110,204,140),
this.findWindow.window.addListener("show",function(){a.fireEvent(new mxEventObject("find"))}),this.findWindow.window.addListener("hide",function(){a.fireEvent(new mxEventObject("find"))}),this.findWindow.window.setVisible(!0),a.fireEvent(new mxEventObject("find"))):this.findWindow.window.setVisible(!this.findWindow.window.isVisible())}));k.setToggleAction(!0);k.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.findWindow&&this.findWindow.window.isVisible()}));a.actions.put("exportVsdx",
@ -7124,18 +7126,18 @@ q.getSelectionCell(),a=q.getOutgoingEdges(a);if(null!=a){for(var b=[],c=0;c<a.le
null,null,"Alt+Shift+S");t.actions.addAction("selectParent",function(){if(q.isEnabled()&&1==q.getSelectionCount()){var a=q.getSelectionCell(),a=q.getIncomingEdges(a);null!=a&&0<a.length&&q.setSelectionCell(q.model.getTerminal(a[0],!0))}},null,null,"Alt+Shift+P");t.actions.addAction("selectSubtree",function(){if(q.isEnabled()&&1==q.getSelectionCount()){var a=q.getSelectionCell(),b=[];q.traverse(a,!0,function(a,c){null!=c&&b.push(c);b.push(a);return!0});q.setSelectionCells(b)}},null,null,"Alt+Shift+T");
var x=q.removeCells;q.removeCells=function(a,d){d=null!=d?d:!0;null==a&&(a=this.getDeletableCells(this.getSelectionCells()));d&&(a=this.getDeletableCells(this.addAllEdges(a)));for(var e=[],f=0;f<a.length;f++){var g=a[f];w.isEdge(g)&&c(g)&&(e.push(g),g=w.getTerminal(g,!1));b(g)?(q.traverse(g,!0,function(a,b){null!=b&&e.push(b);e.push(a);return!0}),g=q.getIncomingEdges(a[f]),a=a.concat(g)):e.push(a[f])}a=e;return x.apply(this,arguments)};t.hoverIcons.getStateAt=function(a,c,d){return b(a.cell)?null:
this.graph.view.getState(this.graph.getCellAt(c,d))};var z=q.duplicateCells;q.duplicateCells=function(a,c){a=null!=a?a:this.getSelectionCells();for(var d=a.slice(0),e=0;e<d.length;e++){var f=q.view.getState(d[e]);if(null!=f&&b(f.cell))for(var g=q.getIncomingEdges(f.cell),f=0;f<g.length;f++)mxUtils.remove(g[f],a)}this.model.beginUpdate();try{var h=z.call(this,a,c);if(h.length==a.length)for(e=0;e<a.length;e++)if(b(a[e])){var k=q.getIncomingEdges(h[e]),g=q.getIncomingEdges(a[e]);if(0==k.length&&0<g.length){var l=
this.cloneCells([g[0]])[0];this.addEdge(l,q.getDefaultParent(),this.model.getTerminal(g[0],!0),h[e])}}}finally{this.model.endUpdate()}return h};var A=q.moveCells;q.moveCells=function(a,c,d,e,f,g,h){var k=null;this.model.beginUpdate();try{var l=f;if(null!=a&&b(f)){for(var m=0;m<a.length;m++)if(b(a[m])||q.model.isEdge(a[m])&&null==q.model.getTerminal(a[m],!0)){f=q.model.getParent(a[m]);break}if(null!=l&&f!=l&&null!=this.view.getState(a[0])){var n=q.getIncomingEdges(a[0]);if(0<n.length){var p=q.view.getState(q.model.getTerminal(n[0],
!0));if(null!=p){var t=q.view.getState(l);null!=t&&(c=(t.getCenterX()-p.getCenterX())/q.view.scale,d=(t.getCenterY()-p.getCenterY())/q.view.scale)}}}}k=A.apply(this,arguments);if(null!=k&&null!=a&&k.length==a.length)for(m=0;m<k.length;m++)if(this.model.isEdge(k[m]))b(l)&&0>mxUtils.indexOf(k,this.model.getTerminal(k[m],!0))&&this.model.setTerminal(k[m],l,!0);else if(b(a[m])&&(n=q.getIncomingEdges(a[m]),0<n.length))if(!e)b(l)&&0>mxUtils.indexOf(a,this.model.getTerminal(n[0],!0))&&this.model.setTerminal(n[0],
l,!0);else if(0==q.getIncomingEdges(k[m]).length){p=l;if(null==p||p==q.model.getParent(a[m]))p=q.model.getTerminal(n[0],!0);e=this.cloneCells([n[0]])[0];this.addEdge(e,q.getDefaultParent(),p,k[m])}}finally{this.model.endUpdate()}return k};var C=t.sidebar.dropAndConnect;t.sidebar.dropAndConnect=function(a,c,d,e){var f=q.model,g=null;f.beginUpdate();try{if(g=C.apply(this,arguments),b(a))for(var h=0;h<g.length;h++)if(f.isEdge(g[h])&&null==f.getTerminal(g[h],!0)){f.setTerminal(g[h],a,!0);var k=q.getCellGeometry(g[h]);
k.points=null;null!=k.getTerminalPoint(!0)&&k.setTerminalPoint(null,!0)}}finally{f.endUpdate()}return g};var D={88:t.actions.get("selectChildren"),84:t.actions.get("selectSubtree"),80:t.actions.get("selectParent"),83:t.actions.get("selectSiblings")},F=t.onKeyDown;t.onKeyDown=function(a){try{if(q.isEnabled()&&!q.isEditing()&&b(q.getSelectionCell())&&1==q.getSelectionCount()){var c=null;0<q.getIncomingEdges(q.getSelectionCell()).length&&(9==a.which?c=mxEvent.isShiftDown(a)?m(q.getSelectionCell()):k(q.getSelectionCell()):
13==a.which&&(c=e(q.getSelectionCell(),!mxEvent.isShiftDown(a))));if(null!=c&&0<c.length)1==c.length&&q.model.isEdge(c[0])?q.setSelectionCell(q.model.getTerminal(c[0],!1)):q.setSelectionCell(c[c.length-1]),null!=t.hoverIcons&&t.hoverIcons.update(q.view.getState(q.getSelectionCell())),q.startEditingAtCell(q.getSelectionCell()),mxEvent.consume(a);else if(mxEvent.isAltDown(a)&&mxEvent.isShiftDown(a)){var d=D[a.keyCode];null!=d&&(d.funct(a),mxEvent.consume(a))}else 37==a.keyCode?(p(q.getSelectionCell(),
mxConstants.DIRECTION_WEST),mxEvent.consume(a)):38==a.keyCode?(p(q.getSelectionCell(),mxConstants.DIRECTION_NORTH),mxEvent.consume(a)):39==a.keyCode?(p(q.getSelectionCell(),mxConstants.DIRECTION_EAST),mxEvent.consume(a)):40==a.keyCode&&(p(q.getSelectionCell(),mxConstants.DIRECTION_SOUTH),mxEvent.consume(a))}}catch(G){console.log("error",G)}mxEvent.isConsumed(a)||F.apply(this,arguments)};var y=q.connectVertex;q.connectVertex=function(a,c,d,f,g,h){var n=q.getIncomingEdges(a);if(b(a)&&0<n.length)return d=
l(a),f=d==mxConstants.DIRECTION_EAST||d==mxConstants.DIRECTION_WEST,g=c==mxConstants.DIRECTION_EAST||c==mxConstants.DIRECTION_WEST,d==c?k(a):f==g?m(a):e(a,c!=mxConstants.DIRECTION_NORTH&&c!=mxConstants.DIRECTION_WEST);this.model.beginUpdate();try{var p=y.call(this,a,c,d,f,g,h||0==n.length)}finally{this.model.endUpdate()}return p};var E=q.graphHandler.getCells;q.graphHandler.getCells=function(a){for(var c=E.apply(this,arguments),e=c.slice(0),f=0;f<e.length;f++)if(b(e[f]))for(var g=q.getIncomingEdges(e[f]),
h=0;h<g.length;h++)mxUtils.remove(g[h],c);for(f=0;f<e.length;f++)g=c[f],b(g)&&!d(g)&&q.traverse(g,!0,function(a,b){null!=b&&0>mxUtils.indexOf(c,b)&&c.push(b);0>mxUtils.indexOf(c,a)&&c.push(a);return!0});return c};v.prototype.destroy=function(){if(null!=this.images)for(var a=0;a<this.images.length;a++){var b=this.images[a];b.parentNode.removeChild(b)}this.images=null};q.addMouseListener({currentState:null,currentIconSet:null,mouseDown:function(a,b){null!=this.currentState&&(this.dragLeave(b.getEvent(),
this.currentState),this.currentState=null)},mouseMove:function(a,c){if(null!=this.currentState&&(c.getState()==this.currentState||null==c.getState())){var e=new mxRectangle(c.getGraphX()-20,c.getGraphY()-20,40,40);if(mxUtils.intersects(e,this.currentState))return}e=c.getState();if(q.isMouseDown&&!mxEvent.isTouchEvent(c.getEvent())||q.isEditing()||null!=e&&(!q.getModel().isVertex(e.cell)||!b(c.getCell())||d(e.cell)))e=null;e!=this.currentState&&(null!=this.currentState&&this.dragLeave(c.getEvent(),
this.currentState),this.currentState=e,null!=this.currentState&&this.dragEnter(c.getEvent(),this.currentState))},mouseUp:function(a,b){},dragEnter:function(a,b){null==this.currentIconSet&&(this.currentIconSet=new v(b))},dragLeave:function(a,b){null!=this.currentIconSet&&(this.currentIconSet.destroy(),this.currentIconSet=null)}})};if("undefined"!==typeof Sidebar){var c=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var a=c.apply(this,arguments),b=this.editorUi.editor.graph;
return a.concat([this.addEntry("tree mindmap central idea branch topic",function(){var a=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;html=1;startSize=20;horizontal=1;containerType=tree;");a.vertex=!0;var b=new mxCell("Central Idea",new mxGeometry(160,60,100,40),"ellipse;whiteSpace=wrap;html=1;align=center;container=1;recursiveResize=0;treeFolding=1;");b.vertex=!0;var c=new mxCell("Topic",new mxGeometry(320,40,80,20),"whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;container=1;recursiveResize=0;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;");
c.vertex=!0;var d=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");d.geometry.relative=!0;d.edge=!0;b.insertEdge(d,!0);c.insertEdge(d,!1);var f=new mxCell("Branch",new mxGeometry(320,80,72,26),"whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];strokeColor=#000000;fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;container=1;recursiveResize=0;autosize=1;treeFolding=1;");
this.cloneCells([g[0]])[0];this.addEdge(l,q.getDefaultParent(),this.model.getTerminal(g[0],!0),h[e])}}}finally{this.model.endUpdate()}return h};var A=q.moveCells;q.moveCells=function(a,c,d,e,f,g,h){var k=null;this.model.beginUpdate();try{var l=f,m=this.view.getState(f),n=null!=m?m.style:this.getCellStyle(f);if(null!=a&&b(f)&&"1"==mxUtils.getValue(n,"treeFolding","0")){for(var p=0;p<a.length;p++)if(b(a[p])||q.model.isEdge(a[p])&&null==q.model.getTerminal(a[p],!0)){f=q.model.getParent(a[p]);break}if(null!=
l&&f!=l&&null!=this.view.getState(a[0])){var t=q.getIncomingEdges(a[0]);if(0<t.length){var u=q.view.getState(q.model.getTerminal(t[0],!0));if(null!=u){var v=q.view.getState(l);null!=v&&(c=(v.getCenterX()-u.getCenterX())/q.view.scale,d=(v.getCenterY()-u.getCenterY())/q.view.scale)}}}}k=A.apply(this,arguments);if(null!=k&&null!=a&&k.length==a.length)for(p=0;p<k.length;p++)if(this.model.isEdge(k[p]))b(l)&&0>mxUtils.indexOf(k,this.model.getTerminal(k[p],!0))&&this.model.setTerminal(k[p],l,!0);else if(b(a[p])&&
(t=q.getIncomingEdges(a[p]),0<t.length))if(!e)b(l)&&0>mxUtils.indexOf(a,this.model.getTerminal(t[0],!0))&&this.model.setTerminal(t[0],l,!0);else if(0==q.getIncomingEdges(k[p]).length){m=l;if(null==m||m==q.model.getParent(a[p]))m=q.model.getTerminal(t[0],!0);e=this.cloneCells([t[0]])[0];this.addEdge(e,q.getDefaultParent(),m,k[p])}}finally{this.model.endUpdate()}return k};var C=t.sidebar.dropAndConnect;t.sidebar.dropAndConnect=function(a,c,d,e){var f=q.model,g=null;f.beginUpdate();try{if(g=C.apply(this,
arguments),b(a))for(var h=0;h<g.length;h++)if(f.isEdge(g[h])&&null==f.getTerminal(g[h],!0)){f.setTerminal(g[h],a,!0);var k=q.getCellGeometry(g[h]);k.points=null;null!=k.getTerminalPoint(!0)&&k.setTerminalPoint(null,!0)}}finally{f.endUpdate()}return g};var D={88:t.actions.get("selectChildren"),84:t.actions.get("selectSubtree"),80:t.actions.get("selectParent"),83:t.actions.get("selectSiblings")},F=t.onKeyDown;t.onKeyDown=function(a){try{if(q.isEnabled()&&!q.isEditing()&&b(q.getSelectionCell())&&1==
q.getSelectionCount()){var c=null;0<q.getIncomingEdges(q.getSelectionCell()).length&&(9==a.which?c=mxEvent.isShiftDown(a)?m(q.getSelectionCell()):k(q.getSelectionCell()):13==a.which&&(c=e(q.getSelectionCell(),!mxEvent.isShiftDown(a))));if(null!=c&&0<c.length)1==c.length&&q.model.isEdge(c[0])?q.setSelectionCell(q.model.getTerminal(c[0],!1)):q.setSelectionCell(c[c.length-1]),null!=t.hoverIcons&&t.hoverIcons.update(q.view.getState(q.getSelectionCell())),q.startEditingAtCell(q.getSelectionCell()),mxEvent.consume(a);
else if(mxEvent.isAltDown(a)&&mxEvent.isShiftDown(a)){var d=D[a.keyCode];null!=d&&(d.funct(a),mxEvent.consume(a))}else 37==a.keyCode?(p(q.getSelectionCell(),mxConstants.DIRECTION_WEST),mxEvent.consume(a)):38==a.keyCode?(p(q.getSelectionCell(),mxConstants.DIRECTION_NORTH),mxEvent.consume(a)):39==a.keyCode?(p(q.getSelectionCell(),mxConstants.DIRECTION_EAST),mxEvent.consume(a)):40==a.keyCode&&(p(q.getSelectionCell(),mxConstants.DIRECTION_SOUTH),mxEvent.consume(a))}}catch(G){console.log("error",G)}mxEvent.isConsumed(a)||
F.apply(this,arguments)};var y=q.connectVertex;q.connectVertex=function(a,c,d,f,g,h){var n=q.getIncomingEdges(a);if(b(a)&&0<n.length)return d=l(a),f=d==mxConstants.DIRECTION_EAST||d==mxConstants.DIRECTION_WEST,g=c==mxConstants.DIRECTION_EAST||c==mxConstants.DIRECTION_WEST,d==c?k(a):f==g?m(a):e(a,c!=mxConstants.DIRECTION_NORTH&&c!=mxConstants.DIRECTION_WEST);this.model.beginUpdate();try{var p=y.call(this,a,c,d,f,g,h||0==n.length)}finally{this.model.endUpdate()}return p};var E=q.graphHandler.getCells;
q.graphHandler.getCells=function(a){for(var c=E.apply(this,arguments),e=c.slice(0),f=0;f<e.length;f++)if(b(e[f]))for(var g=q.getIncomingEdges(e[f]),h=0;h<g.length;h++)mxUtils.remove(g[h],c);for(f=0;f<e.length;f++)g=c[f],b(g)&&!d(g)&&q.traverse(g,!0,function(a,b){null!=b&&0>mxUtils.indexOf(c,b)&&c.push(b);0>mxUtils.indexOf(c,a)&&c.push(a);return!0});return c};v.prototype.destroy=function(){if(null!=this.images)for(var a=0;a<this.images.length;a++){var b=this.images[a];b.parentNode.removeChild(b)}this.images=
null};q.addMouseListener({currentState:null,currentIconSet:null,mouseDown:function(a,b){null!=this.currentState&&(this.dragLeave(b.getEvent(),this.currentState),this.currentState=null)},mouseMove:function(a,c){if(null!=this.currentState&&(c.getState()==this.currentState||null==c.getState())){var e=new mxRectangle(c.getGraphX()-20,c.getGraphY()-20,40,40);if(mxUtils.intersects(e,this.currentState))return}e=c.getState();if(q.isMouseDown&&!mxEvent.isTouchEvent(c.getEvent())||q.isEditing()||null!=e&&(!q.getModel().isVertex(e.cell)||
!b(c.getCell())||d(e.cell)))e=null;e!=this.currentState&&(null!=this.currentState&&this.dragLeave(c.getEvent(),this.currentState),this.currentState=e,null!=this.currentState&&this.dragEnter(c.getEvent(),this.currentState))},mouseUp:function(a,b){},dragEnter:function(a,b){null==this.currentIconSet&&(this.currentIconSet=new v(b))},dragLeave:function(a,b){null!=this.currentIconSet&&(this.currentIconSet.destroy(),this.currentIconSet=null)}})};if("undefined"!==typeof Sidebar){var c=Sidebar.prototype.createAdvancedShapes;
Sidebar.prototype.createAdvancedShapes=function(){var a=c.apply(this,arguments),b=this.editorUi.editor.graph;return a.concat([this.addEntry("tree mindmap central idea branch topic",function(){var a=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;html=1;startSize=20;horizontal=1;containerType=tree;");a.vertex=!0;var b=new mxCell("Central Idea",new mxGeometry(160,60,100,40),"ellipse;whiteSpace=wrap;html=1;align=center;container=1;recursiveResize=0;treeFolding=1;");b.vertex=!0;var c=new mxCell("Topic",
new mxGeometry(320,40,80,20),"whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;container=1;recursiveResize=0;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;");c.vertex=!0;var d=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");d.geometry.relative=!0;d.edge=!0;b.insertEdge(d,!0);c.insertEdge(d,!1);var f=new mxCell("Branch",new mxGeometry(320,80,72,26),"whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];strokeColor=#000000;fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;container=1;recursiveResize=0;autosize=1;treeFolding=1;");
f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");g.geometry.relative=!0;g.edge=!0;b.insertEdge(g,!0);f.insertEdge(g,!1);var p=new mxCell("Topic",new mxGeometry(20,40,80,20),"whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;container=1;recursiveResize=0;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;");p.vertex=!0;var v=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");
v.geometry.relative=!0;v.edge=!0;b.insertEdge(v,!0);p.insertEdge(v,!1);var t=new mxCell("Branch",new mxGeometry(20,80,72,26),"whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];strokeColor=#000000;fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;container=1;recursiveResize=0;autosize=1;treeFolding=1;");t.vertex=!0;var q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");
q.geometry.relative=!0;q.edge=!0;b.insertEdge(q,!0);t.insertEdge(q,!1);a.insert(d);a.insert(g);a.insert(v);a.insert(q);a.insert(b);a.insert(c);a.insert(f);a.insert(p);a.insert(t);return sb.createVertexTemplateFromCells([a],a.geometry.width,a.geometry.height,a.value)}),this.addEntry("tree mindmap central idea",function(){var a=new mxCell("Central Idea",new mxGeometry(0,0,100,40),"ellipse;whiteSpace=wrap;html=1;align=center;container=1;recursiveResize=0;treeFolding=1;");a.vertex=!0;return sb.createVertexTemplateFromCells([a],

File diff suppressed because it is too large Load diff

1395
war/js/atlas.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -2121,7 +2121,7 @@ App.prototype.start = function()
{
// Starts in client mode and waits for data
if (urlParams['client'] == '1' && (window.location.hash == null ||
window.location.hash.length == 0))
window.location.hash.length == 0 || window.location.hash.substring(0, 2) == '#P'))
{
var parent = window.opener || window.parent;
@ -2149,7 +2149,17 @@ App.prototype.start = function()
title = this.defaultFilename;
}
this.fileLoaded(new LocalFile(this, xml, title, true));
var file = new LocalFile(this, xml, title, true);
if (window.location.hash != null && window.location.hash.substring(0, 2) == '#P')
{
file.getHash = function()
{
return window.location.hash.substring(1);
};
}
this.fileLoaded(file);
this.getCurrentFile().setModified(!this.editor.chromeless);
}
}));
@ -2417,7 +2427,7 @@ App.prototype.showSplash = function(force)
* @param {number} dx X-coordinate of the translation.
* @param {number} dy Y-coordinate of the translation.
*/
App.prototype.addLanguageMenu = function(elt)
App.prototype.addLanguageMenu = function(elt, addLabel)
{
var img = null;
@ -2435,6 +2445,21 @@ App.prototype.addLanguageMenu = function(elt)
img.style.bottom = '20px';
img.style.right = '20px';
if (addLabel)
{
img.style.direction = 'rtl';
img.style.textAlign = 'right';
img.style.right = '24px';
var label = document.createElement('span');
label.style.display = 'inline-block';
label.style.fontSize = '12px';
label.style.margin = '5px 24px 0 0';
label.style.color = 'gray';
mxUtils.write(label, mxResources.get('language'));
img.appendChild(label);
}
mxEvent.addListener(img, 'click', mxUtils.bind(this, function(evt)
{
this.editor.graph.popupMenuHandler.hideMenu();
@ -2986,7 +3011,8 @@ EditorUi.prototype.loadTemplate = function(url, onload, onerror)
if (!this.isCorsEnabledForUrl(realUrl))
{
realUrl = PROXY_URL + '?url=' + encodeURIComponent(url);
var nocache = 't=' + new Date().getTime();
realUrl = PROXY_URL + '?url=' + encodeURIComponent(url) + '&' + nocache;
}
this.loadUrl(realUrl, mxUtils.bind(this, function(data)
@ -3700,7 +3726,8 @@ App.prototype.restoreLibraries = function()
if (!this.isCorsEnabledForUrl(realUrl))
{
realUrl = PROXY_URL + '?url=' + encodeURIComponent(url);
var nocache = 't=' + new Date().getTime();
realUrl = PROXY_URL + '?url=' + encodeURIComponent(url) + '&' + nocache;
}
// Uses proxy to avoid CORS issues

View file

@ -12,12 +12,12 @@ var StorageDialog = function(editorUi, fn, rowLimit)
div.style.paddingTop = '0px';
div.style.paddingBottom = '20px';
var elt = editorUi.addLanguageMenu(div);
var elt = editorUi.addLanguageMenu(div, true);
var bottom = '28px';
if (elt != null)
{
elt.style.bottom = bottom;
elt.style.bottom = parseInt(bottom) - 2 + 'px';
}
if (!editorUi.isOffline() && editorUi.getServiceCount() > 1)
@ -448,7 +448,7 @@ var SplashDialog = function(editorUi)
var div = document.createElement('div');
div.style.textAlign = 'center';
editorUi.addLanguageMenu(div);
editorUi.addLanguageMenu(div, true);
var help = null;
var serviceCount = editorUi.getServiceCount();
@ -4357,7 +4357,7 @@ var AboutDialog = function(editorUi)
var small = document.createElement('small');
small.style.color = '#505050';
small.innerHTML = '&copy; 2005-2017 <a href="https://www.jgraph.com/" style="color:inherit;" target="_blank">JGraph Ltd</a>.<br>All Rights Reserved.';
small.innerHTML = '&copy; 2005-2017 <a href="https://about.draw.io/" style="color:inherit;" target="_blank">JGraph Ltd</a>.<br>All Rights Reserved.';
div.appendChild(small);
mxEvent.addListener(div, 'click', function(e)

View file

@ -7619,7 +7619,6 @@
*/
EditorUi.prototype.highlightElement = function(elt)
{
console.trace('here');
var x = 0;
var y = 0;
var w = 0;

File diff suppressed because it is too large Load diff

View file

@ -498,14 +498,17 @@ GraphViewer.prototype.addSizeHandler = function()
};
// Fallback for older browsers
if (mxClient.IS_QUIRKS || document.documentMode <= 9)
if (GraphViewer.useResizeSensor)
{
mxEvent.addListener(window, 'resize', updateOverflow);
this.graph.addListener('size', updateOverflow);
}
else
{
new ResizeSensor(this.graph.container, updateOverflow);
if (mxClient.IS_QUIRKS || document.documentMode <= 9)
{
mxEvent.addListener(window, 'resize', updateOverflow);
this.graph.addListener('size', updateOverflow);
}
else
{
new ResizeSensor(this.graph.container, updateOverflow);
}
}
if (this.graphConfig.resize || ((this.zoomEnabled || !this.autoFit) && this.graphConfig.resize != false))
@ -540,13 +543,16 @@ GraphViewer.prototype.addSizeHandler = function()
});
// Fallback for older browsers
if (mxClient.IS_QUIRKS || document.documentMode <= 9)
if (GraphViewer.useResizeSensor)
{
mxEvent.addListener(window, 'resize', doResize);
}
else
{
new ResizeSensor(this.graph.container, doResize);
if (mxClient.IS_QUIRKS || document.documentMode <= 9)
{
mxEvent.addListener(window, 'resize', doResize);
}
else
{
new ResizeSensor(this.graph.container, doResize);
}
}
}
else if (!(mxClient.IS_QUIRKS || document.documentMode <= 9))
@ -1187,17 +1193,48 @@ GraphViewer.prototype.addClickHandler = function(graph, ui)
/**
* Adds the given array of stencils to avoid dynamic loading of shapes.
*/
GraphViewer.prototype.showLightbox = function()
GraphViewer.prototype.showLightbox = function(editable, closable, target)
{
if (this.graphConfig.lightbox == 'open' || window.self !== window.top)
{
var url = 'https://www.draw.io/?client=1&lightbox=1&close=1&edit=_blank&target=blank';
url += (this.graphConfig != null && this.graphConfig.nav != false) ? '&nav=1' : '';
url += (this.graphConfig != null && this.graphConfig.highlight != null) ?
'&highlight=' + this.graphConfig.highlight.substring(1) : '';
url += (this.currentPage != null) ? '&page=' + this.currentPage : '';
url += (this.layersEnabled) ? '&layers=1' : '';
editable = (editable != null) ? editable : true;
closable = (closable != null) ? closable : true;
target = (target != null) ? target : 'blank';
var param = {'client': 1, 'lightbox': 1, 'target': target};
if (editable)
{
param.edit = '_blank';
}
if (closable)
{
param.close = 1;
}
if (this.layersEnabled)
{
param.layers = 1;
}
if (this.graphConfig != null && this.graphConfig.nav != false)
{
param.nav = 1;
}
if (this.graphConfig != null && this.graphConfig.highlight != null)
{
param.highlight = this.graphConfig.highlight.substring(1);
}
if (this.currentPage != null && this.currentPage > 0)
{
param.page = this.currentPage;
}
var url = 'https://www.draw.io/#P' + encodeURIComponent(JSON.stringify(param));
if (typeof window.postMessage !== 'undefined' && (document.documentMode == null || document.documentMode >= 10))
{
if (this.lightboxWindow != null && !this.lightboxWindow.closed)
@ -1234,7 +1271,6 @@ GraphViewer.prototype.showLightbox = function()
}
};
/**
* Adds the given array of stencils to avoid dynamic loading of shapes.
*/
@ -1691,6 +1727,11 @@ GraphViewer.getUrl = function(url, onload, onerror)
*/
GraphViewer.resizeSensorEnabled = true;
/**
* Redirects editing to absolue URLs.
*/
GraphViewer.useResizeSensor = true;
/**
* Copyright Marc J. Schmidt. See the LICENSE file at the top-level
* directory of this distribution and at

View file

@ -18,16 +18,13 @@ window.SHAPES_PATH = window.SHAPES_PATH || 'shapes';
// Path for images inside the diagram
window.GRAPH_IMAGE_PATH = window.GRAPH_IMAGE_PATH || 'img';
window.ICONSEARCH_PATH = window.ICONSEARCH_PATH || (navigator.userAgent.indexOf('MSIE') >= 0 ||
urlParams['dev']) && window.location.protocol != 'file:' ? 'iconSearch' : 'https://www.draw.io/iconSearch';
urlParams['dev']) && window.location.protocol != 'file:' ? 'iconSearch' : 'https://www.draw.io/iconSearch';
window.TEMPLATE_PATH = window.TEMPLATE_PATH || '/templates';
// Directory for i18 files and basename for main i18n file
window.RESOURCES_PATH = window.RESOURCES_PATH || 'resources';
window.RESOURCE_BASE = window.RESOURCE_BASE || RESOURCES_PATH + '/dia';
// URL for logging
window.DRAWIO_LOG_URL = window.DRAWIO_LOG_URL || '';
// Sets the base path, the UI language via URL param and configures the
// supported languages to avoid 404s. The loading of all core language
// resources is disabled as all required resources are in grapheditor.
@ -209,20 +206,38 @@ function setCurrentXml(data, filename)
}
}
}
})();
// Customizes export URL
var ex = urlParams['export'];
if (ex != null)
{
if (ex.substring(0, 7) != 'http://' && ex.substring(0, 8) != 'https://')
{
ex = 'http://' + ex;
}
EXPORT_URL = ex;
}
// Customizes export URL
var ex = urlParams['export'];
if (ex != null)
{
if (ex.substring(0, 7) != 'http://' && ex.substring(0, 8) != 'https://')
{
ex = 'http://' + ex;
}
EXPORT_URL = ex;
}
// URL for logging
window.DRAWIO_LOG_URL = window.DRAWIO_LOG_URL || '';
//Adds hard-coded logging domain for draw.io domains
var host = window.location.host;
if (host != 'test.draw.io')
{
var searchString = 'draw.io';
var position = host.length - searchString.length;
var lastIndex = host.lastIndexOf(searchString, position);
if (lastIndex !== -1 && lastIndex === position)
{
window.DRAWIO_LOG_URL = 'https://log.draw.io';
}
}
})();
// Enables offline mode
if (urlParams['offline'] == '1' || urlParams['demo'] == '1' || urlParams['stealth'] == '1' || urlParams['local'] == '1')
@ -246,14 +261,3 @@ if (urlParams['lightbox'] == '1')
{
urlParams['chrome'] = '0';
}
// Adds hard-coded logging domain for draw.io domains
var host = window.location.host;
var searchString = 'draw.io';
var position = host.length - searchString.length;
var lastIndex = host.lastIndexOf(searchString, position);
if (lastIndex !== -1 && lastIndex === position && host != 'test.draw.io')
{
window.DRAWIO_LOG_URL = 'https://log.draw.io';
}

View file

@ -415,7 +415,7 @@
editorUi.actions.addAction('support...', function()
{
window.open('https://support.draw.io/display/DO/draw.io+Online+Support');
window.open('https://about.draw.io/support/');
});
editorUi.actions.addAction('exportOptionsDisabled...', function()

View file

@ -182,21 +182,32 @@ StorageFile.prototype.saveFile = function(title, revision, success, error)
StorageFile.prototype.rename = function(title, success, error)
{
var oldTitle = this.getTitle();
this.title = title;
// Updates the data if the extension has changed
if (!this.hasSameExtension(oldTitle, title))
if (oldTitle != title)
{
this.setData(this.ui.getFileData());
}
this.saveFile(title, false, mxUtils.bind(this, function()
{
if (oldTitle != title)
this.ui.getLocalData(title, mxUtils.bind(this, function(data)
{
this.ui.removeLocalData(oldTitle, success);
}
}), error);
this.ui.confirm(mxResources.get('replaceIt', [title]), mxUtils.bind(this, function()
{
this.title = title;
// Updates the data if the extension has changed
if (!this.hasSameExtension(oldTitle, title))
{
this.setData(this.ui.getFileData());
}
this.saveFile(title, false, mxUtils.bind(this, function()
{
this.ui.removeLocalData(oldTitle, success);
}), error);
}), error);
}));
}
else
{
success();
}
};
/**

View file

@ -391,8 +391,10 @@
try
{
var newSource = target;
if (cells != null && isTreeVertex(target))
var state = this.view.getState(target);
var style = (state != null) ? state.style : this.getCellStyle(target);
if (cells != null && isTreeVertex(target) && mxUtils.getValue(style, 'treeFolding', '0') == '1')
{
// Handles only drag from tree or from sidebar with dangling edges
for (var i = 0; i < cells.length; i++)
@ -427,7 +429,7 @@
}
}
}
result = graphMoveCells.apply(this, arguments);
if (result != null && cells != null && result.length == cells.length)

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+y.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;window.mxLoadResources=window.mxLoadResources||!1;window.mxLanguage=window.mxLanguage||"en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.7",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.8",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||
@ -946,8 +946,9 @@ mxCellRenderer.registerShape(mxConstants.SHAPE_LABEL,mxLabel);mxCellRenderer.pro
mxCellRenderer.prototype.createIndicatorShape=function(a){a.shape.indicatorShape=this.getShape(a.view.graph.getIndicatorShape(a))};mxCellRenderer.prototype.getShape=function(a){return null!=a?mxCellRenderer.prototype.defaultShapes[a]:null};mxCellRenderer.prototype.getShapeConstructor=function(a){var b=this.getShape(a.style[mxConstants.STYLE_SHAPE]);null==b&&(b=a.view.graph.getModel().isEdge(a.cell)?this.defaultEdgeShape:this.defaultVertexShape);return b};
mxCellRenderer.prototype.configureShape=function(a){a.shape.apply(a);a.shape.image=a.view.graph.getImage(a);a.shape.indicatorColor=a.view.graph.getIndicatorColor(a);a.shape.indicatorStrokeColor=a.style[mxConstants.STYLE_INDICATOR_STROKECOLOR];a.shape.indicatorGradientColor=a.view.graph.getIndicatorGradientColor(a);a.shape.indicatorDirection=a.style[mxConstants.STYLE_INDICATOR_DIRECTION];a.shape.indicatorImage=a.view.graph.getIndicatorImage(a);this.postConfigureShape(a)};
mxCellRenderer.prototype.postConfigureShape=function(a){null!=a.shape&&(this.resolveColor(a,"indicatorColor",mxConstants.STYLE_FILLCOLOR),this.resolveColor(a,"indicatorGradientColor",mxConstants.STYLE_GRADIENTCOLOR),this.resolveColor(a,"fill",mxConstants.STYLE_FILLCOLOR),this.resolveColor(a,"stroke",mxConstants.STYLE_STROKECOLOR),this.resolveColor(a,"gradient",mxConstants.STYLE_GRADIENTCOLOR))};
mxCellRenderer.prototype.resolveColor=function(a,b,c){var d=a.shape[b],e=a.view.graph,f=null;"inherit"==d?f=e.model.getParent(a.cell):"swimlane"==d?(f=null!=e.model.getTerminal(a.cell,!1)?e.model.getTerminal(a.cell,!1):a.cell,f=e.getSwimlane(f),c=e.swimlaneIndicatorColorAttribute):"indicated"==d&&(a.shape[b]=a.shape.indicatorColor);null!=f&&(d=e.getView().getState(f),a.shape[b]=null,null!=d&&(a.shape[b]=null!=d.shape&&"indicatorColor"!=b?d.shape[b]:d.style[c]))};
mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
mxCellRenderer.prototype.checkPlaceholderStyles=function(a){if(null!=a.style)for(var b=["inherit","swimlane","indicated"],c=[mxConstants.STYLE_FILLCOLOR,mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_GRADIENTCOLOR],d=0;d<c.length;d++)if(0<=mxUtils.indexOf(b,a.style[c[d]]))return!0;return!1};
mxCellRenderer.prototype.resolveColor=function(a,b,c){var d=a.shape[b],e=a.view.graph,f=null;"inherit"==d?f=e.model.getParent(a.cell):"swimlane"==d?(a.shape[b]=c==mxConstants.STYLE_STROKECOLOR?"#000000":"#ffffff",f=null!=e.model.getTerminal(a.cell,!1)?e.model.getTerminal(a.cell,!1):a.cell,f=e.getSwimlane(f),c=e.swimlaneIndicatorColorAttribute):"indicated"==d&&(a.shape[b]=a.shape.indicatorColor);null!=f&&(d=e.getView().getState(f),a.shape[b]=null,null!=d&&(a.shape[b]=null!=d.shape&&"indicatorColor"!=
b?d.shape[b]:d.style[c]))};mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
mxCellRenderer.prototype.createLabel=function(a,b){var c=a.view.graph;c.getModel().isEdge(a.cell);if(0<a.style[mxConstants.STYLE_FONTSIZE]||null==a.style[mxConstants.STYLE_FONTSIZE]){var d=c.isHtmlLabel(a.cell)||null!=b&&mxUtils.isNode(b);a.text=new this.defaultTextShape(b,new mxRectangle,a.style[mxConstants.STYLE_ALIGN]||mxConstants.ALIGN_CENTER,c.getVerticalAlign(a),a.style[mxConstants.STYLE_FONTCOLOR],a.style[mxConstants.STYLE_FONTFAMILY],a.style[mxConstants.STYLE_FONTSIZE],a.style[mxConstants.STYLE_FONTSTYLE],
a.style[mxConstants.STYLE_SPACING],a.style[mxConstants.STYLE_SPACING_TOP],a.style[mxConstants.STYLE_SPACING_RIGHT],a.style[mxConstants.STYLE_SPACING_BOTTOM],a.style[mxConstants.STYLE_SPACING_LEFT],a.style[mxConstants.STYLE_HORIZONTAL],a.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],a.style[mxConstants.STYLE_LABEL_BORDERCOLOR],c.isWrapping(a.cell)&&c.isHtmlLabel(a.cell),c.isLabelClipped(a.cell),a.style[mxConstants.STYLE_OVERFLOW],a.style[mxConstants.STYLE_LABEL_PADDING],mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION,
mxConstants.DEFAULT_TEXT_DIRECTION));a.text.opacity=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_OPACITY,100);a.text.dialect=d?mxConstants.DIALECT_STRICTHTML:a.view.graph.dialect;a.text.style=a.style;a.text.state=a;this.initializeLabel(a,a.text);var e=!1,f=function(b){var d=a;if(mxClient.IS_TOUCH||e)d=mxEvent.getClientX(b),b=mxEvent.getClientY(b),b=mxUtils.convertPoint(c.container,d,b),d=c.view.getState(c.getCellAt(b.x,b.y));return d};mxEvent.addGestureListeners(a.text.node,mxUtils.bind(this,function(b){this.isLabelEvent(a,
@ -984,8 +985,8 @@ mxCellRenderer.prototype.insertStateAfter=function(a,b,c){for(var d=this.getShap
a.view.graph.container;)g=g.parentNode;null!=g&&null!=g.nextSibling?g.nextSibling!=d[e].node&&d[e].node.parentNode.insertBefore(d[e].node,g.nextSibling):d[e].node.parentNode.appendChild(d[e].node)}else null!=d[e].node.parentNode.firstChild&&d[e].node.parentNode.firstChild!=d[e].node&&d[e].node.parentNode.insertBefore(d[e].node,d[e].node.parentNode.firstChild);f?c=d[e].node:b=d[e].node}return[b,c]};mxCellRenderer.prototype.getShapesForState=function(a){return[a.shape,a.text,a.control]};
mxCellRenderer.prototype.redraw=function(a,b,c){b=this.redrawShape(a,b,c);null==a.shape||null!=c&&!c||(this.redrawLabel(a,b),this.redrawCellOverlays(a,b),this.redrawControl(a,b))};
mxCellRenderer.prototype.redrawShape=function(a,b,c){var d=a.view.graph.model,e=!1;null!=a.shape&&null!=a.shape.style&&null!=a.style&&a.shape.style[mxConstants.STYLE_SHAPE]!=a.style[mxConstants.STYLE_SHAPE]&&(a.shape.destroy(),a.shape=null);null==a.shape&&null!=a.view.graph.container&&a.cell!=a.view.currentRoot&&(d.isVertex(a.cell)||d.isEdge(a.cell))?(a.shape=this.createShape(a),null!=a.shape&&(a.shape.antiAlias=this.antiAlias,this.createIndicatorShape(a),this.initializeShape(a),this.createCellOverlays(a),
this.installListeners(a),a.view.graph.selectionCellsHandler.updateHandler(a))):null==a.shape||mxUtils.equalEntries(a.shape.style,a.style)||(a.shape.resetStyles(),this.configureShape(a),a.view.graph.selectionCellsHandler.updateHandler(a),b=!0);null!=a.shape&&(this.createControl(a),b||this.isShapeInvalid(a,a.shape))&&(null!=a.absolutePoints?(a.shape.points=a.absolutePoints.slice(),a.shape.bounds=null):(a.shape.points=null,a.shape.bounds=new mxRectangle(a.x,a.y,a.width,a.height)),a.shape.scale=a.view.scale,
null==c||c?this.doRedrawShape(a):a.shape.updateBoundingBox(),e=!0);return e};mxCellRenderer.prototype.doRedrawShape=function(a){a.shape.redraw()};mxCellRenderer.prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.absolutePoints&&!b.bounds.equals(a)||null!=a.absolutePoints&&!mxUtils.equalPoints(b.points,a.absolutePoints)};
this.installListeners(a),a.view.graph.selectionCellsHandler.updateHandler(a))):b||null==a.shape||mxUtils.equalEntries(a.shape.style,a.style)&&!this.checkPlaceholderStyles(a)||(a.shape.resetStyles(),this.configureShape(a),a.view.graph.selectionCellsHandler.updateHandler(a),b=!0);null!=a.shape&&(this.createControl(a),b||this.isShapeInvalid(a,a.shape))&&(null!=a.absolutePoints?(a.shape.points=a.absolutePoints.slice(),a.shape.bounds=null):(a.shape.points=null,a.shape.bounds=new mxRectangle(a.x,a.y,a.width,
a.height)),a.shape.scale=a.view.scale,null==c||c?this.doRedrawShape(a):a.shape.updateBoundingBox(),e=!0);return e};mxCellRenderer.prototype.doRedrawShape=function(a){a.shape.redraw()};mxCellRenderer.prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.absolutePoints&&!b.bounds.equals(a)||null!=a.absolutePoints&&!mxUtils.equalPoints(b.points,a.absolutePoints)};
mxCellRenderer.prototype.destroy=function(a){null!=a.shape&&(null!=a.text&&(a.text.destroy(),a.text=null),null!=a.overlays&&(a.overlays.visit(function(a,c){c.destroy()}),a.overlays=null),null!=a.control&&(a.control.destroy(),a.control=null),a.shape.destroy(),a.shape=null)};
var mxEdgeStyle={EntityRelation:function(a,b,c,d,e){var f=a.view,g=f.graph;d=mxUtils.getValue(a.style,mxConstants.STYLE_SEGMENT,mxConstants.ENTITY_SEGMENT)*f.scale;var h=a.absolutePoints,k=h[0],l=h[h.length-1],h=!1;if(null!=k)b=new mxCellState,b.x=k.x,b.y=k.y;else if(null!=b){var m=mxUtils.getPortConstraints(b,a,!0,mxConstants.DIRECTION_MASK_NONE);m!=mxConstants.DIRECTION_MASK_NONE&&m!=mxConstants.DIRECTION_MASK_WEST+mxConstants.DIRECTION_MASK_EAST?h=m==mxConstants.DIRECTION_MASK_WEST:(k=g.getCellGeometry(b.cell),
k.relative?h=.5>=k.x:null!=c&&(h=c.x+c.width<b.x))}else return;k=!0;null!=l?(c=new mxCellState,c.x=l.x,c.y=l.y):null!=c&&(m=mxUtils.getPortConstraints(c,a,!1,mxConstants.DIRECTION_MASK_NONE),m!=mxConstants.DIRECTION_MASK_NONE&&m!=mxConstants.DIRECTION_MASK_WEST+mxConstants.DIRECTION_MASK_EAST?k=m==mxConstants.DIRECTION_MASK_WEST:(a=g.getCellGeometry(c.cell),a.relative?k=.5>=a.x:null!=b&&(k=b.x+b.width<c.x)));null!=b&&null!=c&&(a=h?b.x:b.x+b.width,b=f.getRoutingCenterY(b),g=k?c.x:c.x+c.width,c=f.getRoutingCenterY(c),

View file

@ -1,237 +1,264 @@
(function(){function k(f){var l=null!=f.Text?f.Text:null!=f.Value?f.Value:f.Lane_0;null==l&&null!=f.State?null!=f.State.t&&(l=f.State):null==l&&null!=f.Note?null!=f.Note.t&&(l=f.Note):null==l&&null!=f.Title?null!=f.Title.t&&(l=f.Title):null!=f.t&&(l=f);null==l&&null!=f.TextAreas&&null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&null!=f.TextAreas.Text.Value.t&&(l=f.TextAreas.Text.Value);if(null!=l){if(null!=l.t)return l.t=l.t.replace(/</g,"&lt;"),l.t=l.t.replace(/>/g,"&gt;"),l.t;if(null!=l.Value&&
null!=l.Value.t)return l.Value.t=l.Value.t.replace(/</g,"&lt;"),l.Value.t=l.Value.t.replace(/>/g,"&gt;"),l.Value.t}return""}function Sa(f){return null!=f.Action?f.Action:f}function qa(f){if(null!=f.Text){if(null!=f.Text.m)return f.Text.m}else if(null!=f.TextAreas){if(null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&null!=f.TextAreas.Text.Value.m)return f.TextAreas.Text.Value.m}else if(null!=f.m)return f.m;return null}function n(f){return K(f)+I(f)+J(f)+ba(f)+ka(f)+la(f)+La(f)+ma(f)+na(f)+Na(f)}
function K(f){f=qa(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("s"==m.n&&null!=m.v)return"fontSize="+Math.round(.6*m.v)+";";l++}return"fontSize=10;"}function I(f){f=qa(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("c"==m.n&&null!=m.v)return f=m.v,"#"!=f.charAt(0)&&(f="#"+f),f=f.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+f+";";l++}return""}function J(f){f=qa(f);if(null!=f){var l=0,m=!1;if(null!=f)for(var c=0;!m&&c<f.length;){var a=f[c];"b"==a.n&&null!=a.v&&a.v&&(m=!0,l+=1);c++}m=
!1;if(null!=f)for(c=0;!m&&c<f.length;)a=f[c],"i"==a.n&&null!=a.v&&a.v&&(m=!0,l+=2),c++;m=!1;if(null!=f)for(c=0;!m&&c<f.length;)a=f[c],"u"==a.n&&null!=a.v&&a.v&&(m=!0,l+=4),c++;if(0<l)return"fontStyle="+l+";"}return""}function ba(f){f=qa(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("a"==m.n&&null!=m.v)return"align="+m.v+";";l++}return"align=center;"}function ka(f){var l=qa(f);if(null!=l)for(var m=0;m<l.length;){var c=l[m];if("il"==c.n){if(null!=c.v)return"spacingLeft="+.6*c.v+";"}else if("s"==
c.n&&"align=center;"!=ba(f)&&null!=c.v)return"spacingLeft="+.6*c.v+";";m++}return""}function la(f){f=qa(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("ir"==m.n&&null!=m.v)return"spacingRight="+m.v+";";l++}return""}function La(f){f=qa(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("mt"==m.n&&null!=m.v)return"spacingTop="+m.v+";";l++}return""}function ma(f){f=qa(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("mb"==m.n&&null!=m.v)return"spacingBottom="+m.v+";";l++}return""}function na(f){return"number"===
typeof f.InsetMargin?"spacing="+parseInt(f.InsetMargin)+";":""}function Na(f){return null!=f.Text_VAlign&&"string"===typeof f.Text_VAlign?"verticalAlign="+f.Text_VAlign+";":oa(mxConstants.STYLE_VERTICAL_ALIGN,f.TextVAlign,"middle")}function h(f,l){return Qb.includes(l.Class)?"Venn"==l.Class.substring(0,4)?oa(mxConstants.STYLE_STROKECOLOR,f.FillColor.substring(0,7),"#FFFFFF"):"":0==f.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":oa(mxConstants.STYLE_STROKECOLOR,f.LineColor.substring(0,7),"#000000")}
function r(f,l){var m="";Rb.includes(l.Class)||(m+=oa(mxConstants.STYLE_OPACITY,f.Opacity,"100"));if("string"===typeof f.LineColor&&7<f.LineColor.length)var c="0x"+f.LineColor.substring(f.LineColor.length-2,f.LineColor.length),m=m+("strokeOpacity="+Math.round(parseInt(c)/2.55)+";");"string"===typeof f.FillColor&&7<f.FillColor.length&&(c="0x"+f.FillColor.substring(f.FillColor.length-2,f.FillColor.length),m+="fillOpacity="+Math.round(parseInt(c)/2.55)+";");return m}function Sb(f,l){if(null!=f.Rounding&&
!gc.includes(l.Class)){if(0<f.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+.6*f.Rounding+";"}else if(null==f.Rounding&&hc.includes(l.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function ia(f,l,m){return null!=f.Rotation&&(f=mxUtils.toDegree(parseFloat(f.Rotation)),"AdvancedSwimLaneBlockRotated"==l.Class?(f+=90,m.geometry.rotate90()):ic.includes(l.Class)?(f-=90,m.geometry.rotate90(),m.geometry.rotate90(),m.geometry.rotate90()):jc.includes(l.Class)&&(f+=180,m.geometry.rotate90(),
m.geometry.rotate90()),0!=f)?"rotation="+f+";":""}function u(f){return null!=f.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function t(f,l){if(null!=f.FillColor&&!kc.includes(l.Class))if("object"===typeof f.FillColor){if(null!=f.FillColor.cs&&1<f.FillColor.cs.length)return oa(mxConstants.STYLE_FILLCOLOR,f.FillColor.cs[0].c.substring(0,7))+oa(mxConstants.STYLE_GRADIENTCOLOR,f.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof f.FillColor?oa(mxConstants.STYLE_FILLCOLOR,f.FillColor.substring(0,
7),"#FFFFFF"):oa(mxConstants.STYLE_FILLCOLOR,"none");return""}function y(f){return"dashed"==f.StrokeStyle?"dashed=1;":"dotted"==f.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==f.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==f.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function q(f){return oa(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(f.LineWidth),"1")}function Tb(f,l){var m=Sa(l);if(null!=m){var c=Wa[m.Class]+";";null!=c&&(f.style+=c);c=null!=m.Properties?m.Properties:m;if(null!=
c){f.value=k(c);var a=f.style,n=K(c)+I(c)+J(c)+ba(c,f)+ka(c)+la(c)+La(c)+ma(c)+na(c)+Na(c)+h(c,m)+r(c,m)+Sb(c,m)+ia(c,m,f)+(c.FlipX?"flipH=1;":"")+(c.FlipY?"flipV=1;":"")+u(c)+t(c,m)+y(c)+q(c);m="ImageSearchBlock2"==m.Class?"image="+c.URL+";":"";f.style=a+(n+m);if(f.edge){f.style+="rounded=1;arcSize=6;";if("diagonal"!=c.Shape)if(null!=c.ElbowPoints)for(f.geometry.points=[],m=0;m<c.ElbowPoints.length;m++)f.geometry.points.push(new mxPoint(Math.round(.6*c.ElbowPoints[m].x+0),Math.round(.6*c.ElbowPoints[m].y+
0)));else"elbow"==c.Shape?f.style=null!=c.Endpoint1.Block&&null!=c.Endpoint1.Block?f.style+"edgeStyle=orthogonalEdgeStyle;":f.style+"edgeStyle=elbowEdgeStyle;":null!=c.Endpoint1.Block&&null!=c.Endpoint1.Block&&(f.style+="edgeStyle=orthogonalEdgeStyle;","curve"==c.Shape&&(f.style+="curved=1;"));null!=c.Endpoint1.Style&&(f.style+="startArrow="+jb[c.Endpoint1.Style]+";");null!=c.Endpoint2.Style&&(f.style+="endArrow="+jb[c.Endpoint2.Style].replace(/startSize/g,"endSize")+";");kb(f,c.Endpoint1,!0);kb(f,
c.Endpoint2,!1)}}}}function lb(f){var l=Sa(f).Properties.BoundingBox;null!=f.Class&&"AWS"===f.Class.substring(0,3)&&(l.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*l.x+0),Math.round(.6*l.y+0),Math.round(.6*l.w),Math.round(.6*l.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;Tb(v,f);return v}function Ta(f,l,m){m=2*(parseFloat(f.Location)-.5);f=new mxCell(k(f),new mxGeometry(m,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;");f.geometry.relative=!0;f.vertex=!0;l.insert(f);return l}function oa(f,
l,m,c){null!=l&&null!=c&&(l=c(l));return null!=l&&l!=m?f+"="+l+";":""}function kb(f,l,m){null!=l&&null!=l.LinkX&&null!=l.LinkY&&(f.style+=(m?"exitX":"entryX")+"="+l.LinkX+";"+(m?"exitY":"entryY")+"="+l.LinkY+";"+(m?"exitPerimeter":"entryPerimeter")+"=0;")}function Ka(f,l,m,c,a,k,d,b){f=new mxCell("",new mxGeometry(f,l,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;d.insert(f);k=[f];m=sb.cloneCell(m);b.insertEdge(m,!1);f.insertEdge(m,!0);k.push(m);c.push(a.addCell(m,null,null,null,null))}function Q(f,
l,k,c,a,h,d,b,n){f=new mxCell("",new mxGeometry(f,l,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;n.insert(f);k=new mxCell("",new mxGeometry(k,c,0,0),"strokeColor=none;fillColor=none;");k.vertex=!0;n.insert(k);b=[k];a=sb.cloneCell(a);f.insertEdge(a,!0);k.insertEdge(a,!1);b.push(a);h.push(d.addCell(a,null,null,null,null))}function lc(f,l,m){var c=Sa(f),a=c.Properties,fa=a.BoundingBox,d=Math.round(.6*fa.w),b=Math.round(.6*fa.h),ra=Math.round(.6*fa.x+0),sa=Math.round(.6*fa.y+0);v=new mxCell("",
new mxGeometry(ra,sa,d,b),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(f.Class){case "BraceNoteBlock":var ac=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(ac=!0);var Xa=null,ga=null;ac?(Xa=new mxCell("",new mxGeometry(d-.125*b,0,.125*b,b),"shape=curlyBracket;rounded=1;"),ga=new mxCell("",new mxGeometry(0,0,d-.125*b,b),"strokeColor=none;fillColor=none;")):(Xa=new mxCell("",new mxGeometry(0,0,.125*b,b),"shape=curlyBracket;rounded=1;flipH=1;"),ga=new mxCell("",new mxGeometry(.125*b,0,d-.125*
b,b),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=ia(a,c,v);Xa.vertex=!0;v.insert(Xa);Xa.style+=h(a,c)+r(a,c)+u(a)+y(a)+q(a);ga.vertex=!0;ga.value=k(a);v.insert(ga);ga.style+=K(a)+I(a)+J(a)+ba(a,ga)+ka(a)+la(a)+La(a)+ma(a)+na(a)+Na(a);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var oa=0;null!=a.Lanes&&(oa=a.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var qa=0,Oa=[],g=0;g<oa;g++){var bc=parseFloat(a.Lanes[g].p);
Oa.push(new mxCell("",new mxGeometry(d*qa,0,d*bc,b),"shape=swimlane;startSize=25;"));Oa[g].vertex=!0;v.insert(Oa[g]);Oa[g].value=k(a["Lane_"+g]);Oa[g].style+=K(a["Lane_"+g])+I(a["Lane_"+g])+J(a["Lane_"+g])+ba(a["Lane_"+g],Oa[g])+ka(a["Lane_"+g])+la(a["Lane_"+g])+La(a["Lane_"+g])+ma(a["Lane_"+g])+na(a["Lane_"+g])+Na(a["Lane_"+g])+h(a,c)+r(a,c)+Sb(a,c)+ia(a,c,Oa[g])+(a.FlipX?"flipH=1;":"")+(a.FlipY?"flipV=1;":"")+u(a)+t(a,c)+y(a)+q(a);qa+=bc}break;case "AndroidDevice":if(null!=a.AndroidDeviceName){v.style=
"fillColor=#000000;strokeColor=#000000;";var Pa=null,mb=null,nb=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",Pa=new mxCell("",new mxGeometry(.112*d,.077*b,.77*d,.85*b),""),a.KeyboardShown&&(mb=new mxCell("",new mxGeometry(.112*d,.727*b,.77*d,.2*b),"shape=mxgraph.android.keyboard;")),a.FullScreen||(nb=new mxCell("",new mxGeometry(.112*d,.077*b,.77*d,.03*b),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
.015*b+";"));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",Pa=new mxCell("",new mxGeometry(.04*d,.092*b,.92*d,.816*b),""),a.KeyboardShown&&(mb=new mxCell("",new mxGeometry(.04*d,.708*b,.92*d,.2*b),"shape=mxgraph.android.keyboard;")),a.FullScreen||(nb=new mxCell("",new mxGeometry(.04*d,.092*b,.92*d,.03*b),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*b+";"));Pa.vertex=!0;v.insert(Pa);
"Dark"==a.Scheme?Pa.style+="fillColor=#111111;":"Light"==a.Scheme&&(Pa.style+="fillColor=#ffffff;");null!=mb&&(mb.vertex=!0,v.insert(mb));null!=nb&&(nb.vertex=!0,v.insert(nb))}break;case "AndroidAlertDialog":var ta=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ta.vertex=!0;v.insert(ta);var N=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");N.vertex=!0;v.insert(N);var ob=new mxCell("",new mxGeometry(0,30,d,b-30),"strokeColor=none;fillColor=none;verticalAlign=top;");
ob.vertex=!0;v.insert(ob);var S=new mxCell("",new mxGeometry(0,b-25,.5*d,25),"fillColor=none;");S.vertex=!0;v.insert(S);var T=new mxCell("",new mxGeometry(.5*d,b-25,.5*d,25),"fillColor=none;");T.vertex=!0;v.insert(T);ta.value=k(a.DialogTitle);ta.style+=n(a.DialogTitle);ob.value=k(a.DialogText);ob.style+=n(a.DialogText);S.value=k(a.Button_0);S.style+=n(a.Button_0);T.value=k(a.Button_1);T.style+=n(a.Button_1);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",S.style+="strokeColor=#353535;",
T.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",S.style+="strokeColor=#E2E2E2;",T.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":ta=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ta.vertex=!0;v.insert(ta);ta.value=k(a.DialogTitle);ta.style+=n(a.DialogTitle);N=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");N.vertex=!0;v.insert(N);S=new mxCell("",new mxGeometry(0,
b-25,.5*d,25),"fillColor=none;");S.vertex=!0;v.insert(S);S.value=k(a.Button_0);S.style+=n(a.Button_0);T=new mxCell("",new mxGeometry(.5*d,b-25,.5*d,25),"fillColor=none;");T.vertex=!0;v.insert(T);T.value=k(a.Button_1);T.style+=n(a.Button_1);var Ya=new mxCell("",new mxGeometry(.5*d-4,41,8,4),"shape=triangle;direction=north;");Ya.vertex=!0;v.insert(Ya);var Za=new mxCell("",new mxGeometry(.25*d-4,41,8,4),"shape=triangle;direction=north;");Za.vertex=!0;v.insert(Za);var $a=new mxCell("",new mxGeometry(.75*
d-4,41,8,4),"shape=triangle;direction=north;");$a.vertex=!0;v.insert($a);var pb=new mxCell("",new mxGeometry(.375*d,50,.2*d,15),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);pb.value=k(a.Label_1);pb.style+=n(a.Label_1);var qb=new mxCell("",new mxGeometry(.125*d,50,.2*d,15),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=k(a.Label_0);qb.style+=n(a.Label_0);var ab=null;"AndroidDateDialog"==f.Class&&(ab=new mxCell("",new mxGeometry(.625*d,50,.2*d,15),"strokeColor=none;fillColor=none;"),
ab.vertex=!0,v.insert(ab),ab.value=k(a.Label_2),ab.style+=n(a.Label_2));var ua=new mxCell("",new mxGeometry(.43*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");ua.vertex=!0;v.insert(ua);var va=new mxCell("",new mxGeometry(.18*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");va.vertex=!0;v.insert(va);var Ta=new mxCell("",new mxGeometry(.68*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");Ta.vertex=!0;v.insert(Ta);var rb=new mxCell("",new mxGeometry(.375*d,65,.2*d,15),"strokeColor=none;fillColor=none;");
rb.vertex=!0;v.insert(rb);rb.value=k(a.Label_4);rb.style+=n(a.Label_4);var bb=null;"AndroidTimeDialog"==f.Class&&(bb=new mxCell("",new mxGeometry(.3*d,65,.1*d,15),"strokeColor=none;fillColor=none;"),bb.vertex=!0,v.insert(bb),bb.value=k(a.Label_Colon),bb.style+=n(a.Label_Colon));var tb=new mxCell("",new mxGeometry(.125*d,65,.2*d,15),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=k(a.Label_3);tb.style+=n(a.Label_3);var ub=new mxCell("",new mxGeometry(.625*d,65,.2*d,15),"strokeColor=none;fillColor=none;");
ub.vertex=!0;v.insert(ub);ub.value=k(a.Label_5);ub.style+=n(a.Label_5);var Wa=new mxCell("",new mxGeometry(.43*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Wa.vertex=!0;v.insert(Wa);var jb=new mxCell("",new mxGeometry(.18*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");jb.vertex=!0;v.insert(jb);var kb=new mxCell("",new mxGeometry(.68*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");kb.vertex=!0;v.insert(kb);var vb=new mxCell("",new mxGeometry(.375*d,80,.2*d,15),"strokeColor=none;fillColor=none;");
vb.vertex=!0;v.insert(vb);vb.value=k(a.Label_7);vb.style+=n(a.Label_7);var wb=new mxCell("",new mxGeometry(.125*d,80,.2*d,15),"strokeColor=none;fillColor=none;");wb.vertex=!0;v.insert(wb);wb.value=k(a.Label_6);wb.style+=n(a.Label_6);var xb=new mxCell("",new mxGeometry(.625*d,80,.2*d,15),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=k(a.Label_8);xb.style+=n(a.Label_8);var cb=new mxCell("",new mxGeometry(.5*d-4,99,8,4),"shape=triangle;direction=south;");cb.vertex=!0;v.insert(cb);
var db=new mxCell("",new mxGeometry(.25*d-4,99,8,4),"shape=triangle;direction=south;");db.vertex=!0;v.insert(db);var eb=new mxCell("",new mxGeometry(.75*d-4,99,8,4),"shape=triangle;direction=south;");eb.vertex=!0;v.insert(eb);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",S.style+="strokeColor=#353535;",T.style+="strokeColor=#353535;",Ya.style+="strokeColor=none;fillColor=#7E7E7E;",Za.style+="strokeColor=none;fillColor=#7E7E7E;",$a.style+="strokeColor=none;fillColor=#7E7E7E;",
cb.style+="strokeColor=none;fillColor=#7E7E7E;",db.style+="strokeColor=none;fillColor=#7E7E7E;",eb.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",S.style+="strokeColor=#E2E2E2;",T.style+="strokeColor=#E2E2E2;",Ya.style+="strokeColor=none;fillColor=#939393;",Za.style+="strokeColor=none;fillColor=#939393;",$a.style+="strokeColor=none;fillColor=#939393;",cb.style+="strokeColor=none;fillColor=#939393;",db.style+="strokeColor=none;fillColor=#939393;",
eb.style+="strokeColor=none;fillColor=#939393;");break;case "AndroidListItems":var aa=b,fb=0;if(a.ShowHeader){var fb=8,yb=new mxCell("",new mxGeometry(0,0,d,fb),"strokeColor=none;fillColor=none;");yb.vertex=!0;v.insert(yb);yb.value=k(a.Header);yb.style+=n(a.Header);var aa=aa-fb,lb=new mxCell("",new mxGeometry(0,fb-2,d,4),"shape=line;strokeColor=#999999;");lb.vertex=!0;v.insert(lb)}var wa=parseInt(a.Items);0<wa&&(aa/=wa);for(var U=[],N=[],g=0;g<wa;g++)U[g]=new mxCell("",new mxGeometry(0,fb+g*aa,d,
aa),"strokeColor=none;fillColor=none;"),U[g].vertex=!0,v.insert(U[g]),U[g].value=k(a["Item_"+g]),U[g].style+=n(a["Item_"+g]),0<g&&(N[g]=new mxCell("",new mxGeometry(0,fb+g*aa-2,d,4),"shape=line;"),N[g].vertex=!0,v.insert(N[g]),N[g].style="Dark"==a.Scheme?N[g].style+"strokeColor=#ffffff;":N[g].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var xa=parseInt(a.Tabs),ha=d;0<xa&&
(ha/=xa);for(var H=[],N=[],g=0;g<xa;g++)H[g]=new mxCell("",new mxGeometry(g*ha,0,ha,b),"strokeColor=none;fillColor=none;"),H[g].vertex=!0,v.insert(H[g]),H[g].value=k(a["Tab_"+g]),H[g].style+=n(a["Tab_"+g]),0<g&&(N[g]=new mxCell("",new mxGeometry(g*ha-2,.2*b,4,.6*b),"shape=line;direction=north;"),N[g].vertex=!0,v.insert(N[g]),N[g].style="Dark"==a.Scheme?N[g].style+"strokeColor=#484848;":N[g].style+"strokeColor=#CCCCCC;");var Jb=new mxCell("",new mxGeometry(a.Selected*ha+2,b-3,ha-4,3),"strokeColor=none;fillColor=#33B5E5;");
Jb.vertex=!0;v.insert(Jb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(ra),Math.round(sa+.25*b),Math.round(d),Math.round(.5*b)),"html=1;whiteSpace=wrap;");v.vertex=!0;var zb=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*b)),"strokeColor=none;fillColor=#33B5E5;");zb.vertex=!0;v.insert(zb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":
(function(){function l(h){var g=null!=h.Text?h.Text:null!=h.Value?h.Value:h.Lane_0;null==g&&null!=h.State?null!=h.State.t&&(g=h.State):null==g&&null!=h.Note?null!=h.Note.t&&(g=h.Note):null==g&&null!=h.Title?null!=h.Title.t&&(g=h.Title):null!=h.t&&(g=h);null==g&&null!=h.TextAreas&&null!=h.TextAreas.Text&&null!=h.TextAreas.Text.Value&&null!=h.TextAreas.Text.Value.t&&(g=h.TextAreas.Text.Value);if(null!=g){if(null!=g.t)return g.t=g.t.replace(/</g,"&lt;"),g.t=g.t.replace(/>/g,"&gt;"),g.t;if(null!=g.Value&&
null!=g.Value.t)return g.Value.t=g.Value.t.replace(/</g,"&lt;"),g.Value.t=g.Value.t.replace(/>/g,"&gt;"),g.Value.t}return""}function Xa(h){return null!=h.Action?h.Action:h}function va(h){if(null!=h.Text){if(null!=h.Text.m)return h.Text.m}else if(null!=h.TextAreas){if(null!=h.TextAreas.Text&&null!=h.TextAreas.Text.Value&&null!=h.TextAreas.Text.Value.m)return h.TextAreas.Text.Value.m}else if(null!=h.m)return h.m;return null}function n(h){return O(h)+K(h)+M(h)+fa(h)+pa(h)+qa(h)+Qa(h)+ra(h)+sa(h)+Ta(h)}
function O(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("s"==l.n&&null!=l.v)return"fontSize="+Math.round(.6*l.v)+";";g++}return"fontSize=10;"}function K(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("c"==l.n&&null!=l.v)return h=l.v,"#"!=h.charAt(0)&&(h="#"+h),h=h.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+h+";";g++}return""}function M(h){h=va(h);if(null!=h){var g=0,l=!1;if(null!=h)for(var b=0;!l&&b<h.length;){var a=h[b];"b"==a.n&&null!=a.v&&a.v&&(l=!0,g+=1);b++}l=
!1;if(null!=h)for(b=0;!l&&b<h.length;)a=h[b],"i"==a.n&&null!=a.v&&a.v&&(l=!0,g+=2),b++;l=!1;if(null!=h)for(b=0;!l&&b<h.length;)a=h[b],"u"==a.n&&null!=a.v&&a.v&&(l=!0,g+=4),b++;if(0<g)return"fontStyle="+g+";"}return""}function fa(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("a"==l.n&&null!=l.v)return"align="+l.v+";";g++}return""}function pa(h){var g=va(h);if(null!=g)for(var l=0;l<g.length;){var b=g[l];if("il"==b.n){if(null!=b.v)return"spacingLeft="+.6*b.v+";"}else if("s"==b.n&&"align=center;"!=
fa(h)&&null!=b.v)return"spacingLeft="+.6*b.v+";";l++}return""}function qa(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("ir"==l.n&&null!=l.v)return"spacingRight="+l.v+";";g++}return""}function Qa(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("mt"==l.n&&null!=l.v)return"spacingTop="+l.v+";";g++}return""}function ra(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("mb"==l.n&&null!=l.v)return"spacingBottom="+l.v+";";g++}return""}function sa(h){return"number"===
typeof h.InsetMargin?"spacing="+parseInt(h.InsetMargin)+";":""}function Ta(h){return null!=h.Text_VAlign&&"string"===typeof h.Text_VAlign?"verticalAlign="+h.Text_VAlign+";":ta(mxConstants.STYLE_VERTICAL_ALIGN,h.TextVAlign,"middle")}function g(h,g){return Ub.includes(g.Class)?"Venn"==g.Class.substring(0,4)?ta(mxConstants.STYLE_STROKECOLOR,h.FillColor.substring(0,7),"#FFFFFF"):"":0==h.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":ta(mxConstants.STYLE_STROKECOLOR,h.LineColor.substring(0,7),"#000000")}
function p(h,g){var l="";Vb.includes(g.Class)||(l+=ta(mxConstants.STYLE_OPACITY,h.Opacity,"100"));if("string"===typeof h.LineColor&&7<h.LineColor.length)var b="0x"+h.LineColor.substring(h.LineColor.length-2,h.LineColor.length),l=l+("strokeOpacity="+Math.round(parseInt(b)/2.55)+";");"string"===typeof h.FillColor&&7<h.FillColor.length&&(b="0x"+h.FillColor.substring(h.FillColor.length-2,h.FillColor.length),l+="fillOpacity="+Math.round(parseInt(b)/2.55)+";");return l}function Wb(h,g){if(null!=h.Rounding&&
!kc.includes(g.Class)){if(0<h.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+.6*h.Rounding+";"}else if(null==h.Rounding&&lc.includes(g.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function V(h,g,l){return null!=h.Rotation&&(h=mxUtils.toDegree(parseFloat(h.Rotation)),"AdvancedSwimLaneBlockRotated"==g.Class?(h+=90,l.geometry.rotate90()):mc.includes(g.Class)?(h-=90,l.geometry.rotate90(),l.geometry.rotate90(),l.geometry.rotate90()):nc.includes(g.Class)&&(h+=180,l.geometry.rotate90(),
l.geometry.rotate90()),0!=h)?"rotation="+h+";":""}function r(h){return null!=h.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function q(h,g){if(null!=h.FillColor&&!oc.includes(g.Class))if("object"===typeof h.FillColor){if(null!=h.FillColor.cs&&1<h.FillColor.cs.length)return ta(mxConstants.STYLE_FILLCOLOR,h.FillColor.cs[0].c.substring(0,7))+ta(mxConstants.STYLE_GRADIENTCOLOR,h.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof h.FillColor?ta(mxConstants.STYLE_FILLCOLOR,h.FillColor.substring(0,
7),"#FFFFFF"):ta(mxConstants.STYLE_FILLCOLOR,"none");return""}function t(h){return"dashed"==h.StrokeStyle?"dashed=1;":"dotted"==h.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==h.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==h.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function m(h){return ta(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(h.LineWidth),"1")}function Xb(h,n){var w=Xa(n);if(null!=w){var b=ab[w.Class]+";";null!=b&&(h.style+=b);b=null!=w.Properties?w.Properties:w;if(null!=
b){h.value=l(b);var a=h.style,B=O(b)+K(b)+M(b)+fa(b,h)+pa(b)+qa(b)+Qa(b)+ra(b)+sa(b)+Ta(b)+g(b,w)+p(b,w)+Wb(b,w)+V(b,w,h)+(b.FlipX?"flipH=1;":"")+(b.FlipY?"flipV=1;":"")+r(b)+q(b,w)+t(b)+m(b);w="ImageSearchBlock2"==w.Class?"image="+b.URL+";":"";h.style=a+(B+w);if(h.edge){h.style+="rounded=1;arcSize=6;";if("diagonal"!=b.Shape)if(null!=b.ElbowPoints)for(h.geometry.points=[],w=0;w<b.ElbowPoints.length;w++)h.geometry.points.push(new mxPoint(Math.round(.6*b.ElbowPoints[w].x+0),Math.round(.6*b.ElbowPoints[w].y+
0)));else"elbow"==b.Shape?h.style=null!=b.Endpoint1.Block&&null!=b.Endpoint1.Block?h.style+"edgeStyle=orthogonalEdgeStyle;":h.style+"edgeStyle=elbowEdgeStyle;":null!=b.Endpoint1.Block&&null!=b.Endpoint1.Block&&(h.style+="edgeStyle=orthogonalEdgeStyle;","curve"==b.Shape&&(h.style+="curved=1;"));null!=b.Endpoint1.Style&&(h.style+="startArrow="+nb[b.Endpoint1.Style]+";");null!=b.Endpoint2.Style&&(h.style+="endArrow="+nb[b.Endpoint2.Style].replace(/startSize/g,"endSize")+";");ob(h,b.Endpoint1,!0);ob(h,
b.Endpoint2,!1)}}}}function pb(h){var g=Xa(h).Properties.BoundingBox;null!=h.Class&&"AWS"===h.Class.substring(0,3)&&(g.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*g.x+0),Math.round(.6*g.y+0),Math.round(.6*g.w),Math.round(.6*g.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;Xb(v,h);return v}function Ya(h,g,m){m=2*(parseFloat(h.Location)-.5);h=new mxCell(l(h),new mxGeometry(m,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;");h.geometry.relative=!0;h.vertex=!0;g.insert(h);return g}function ta(g,
l,m,b){null!=l&&null!=b&&(l=b(l));return null!=l&&l!=m?g+"="+l+";":""}function ob(g,l,m){null!=l&&null!=l.LinkX&&null!=l.LinkY&&(g.style+=(m?"exitX":"entryX")+"="+l.LinkX+";"+(m?"exitY":"entryY")+"="+l.LinkY+";"+(m?"exitPerimeter":"entryPerimeter")+"=0;")}function Pa(g,l,m,b,a,n,f,c){g=new mxCell("",new mxGeometry(g,l,0,0),"strokeColor=none;fillColor=none;");g.vertex=!0;f.insert(g);n=[g];m=sb.cloneCell(m);c.insertEdge(m,!1);g.insertEdge(m,!0);n.push(m);b.push(a.addCell(m,null,null,null,null))}function T(g,
l,m,b,a,n,f,c,p){g=new mxCell("",new mxGeometry(g,l,0,0),"strokeColor=none;fillColor=none;");g.vertex=!0;p.insert(g);m=new mxCell("",new mxGeometry(m,b,0,0),"strokeColor=none;fillColor=none;");m.vertex=!0;p.insert(m);c=[m];a=sb.cloneCell(a);g.insertEdge(a,!0);m.insertEdge(a,!1);c.push(a);n.push(f.addCell(a,null,null,null,null))}function pc(h,B,w){var b=Xa(h),a=b.Properties,ja=a.BoundingBox,f=Math.round(.6*ja.w),c=Math.round(.6*ja.h),wa=Math.round(.6*ja.x+0),xa=Math.round(.6*ja.y+0);v=new mxCell("",
new mxGeometry(wa,xa,f,c),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(h.Class){case "BraceNoteBlock":var ec=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(ec=!0);var bb=null,ka=null;ec?(bb=new mxCell("",new mxGeometry(f-.125*c,0,.125*c,c),"shape=curlyBracket;rounded=1;"),ka=new mxCell("",new mxGeometry(0,0,f-.125*c,c),"strokeColor=none;fillColor=none;")):(bb=new mxCell("",new mxGeometry(0,0,.125*c,c),"shape=curlyBracket;rounded=1;flipH=1;"),ka=new mxCell("",new mxGeometry(.125*c,0,f-.125*
c,c),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=V(a,b,v);bb.vertex=!0;v.insert(bb);bb.style+=g(a,b)+p(a,b)+r(a)+t(a)+m(a);ka.vertex=!0;ka.value=l(a);v.insert(ka);ka.style+=O(a)+K(a)+M(a)+fa(a,ka)+pa(a)+qa(a)+Qa(a)+ra(a)+sa(a)+Ta(a);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var ta=0;null!=a.Lanes&&(ta=a.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var va=0,Ua=[],d=0;d<ta;d++){var fc=parseFloat(a.Lanes[d].p);
Ua.push(new mxCell("",new mxGeometry(f*va,0,f*fc,c),"shape=swimlane;startSize=25;"));Ua[d].vertex=!0;v.insert(Ua[d]);Ua[d].value=l(a["Lane_"+d]);Ua[d].style+=O(a["Lane_"+d])+K(a["Lane_"+d])+M(a["Lane_"+d])+fa(a["Lane_"+d],Ua[d])+pa(a["Lane_"+d])+qa(a["Lane_"+d])+Qa(a["Lane_"+d])+ra(a["Lane_"+d])+sa(a["Lane_"+d])+Ta(a["Lane_"+d])+g(a,b)+p(a,b)+Wb(a,b)+V(a,b,Ua[d])+(a.FlipX?"flipH=1;":"")+(a.FlipY?"flipV=1;":"")+r(a)+q(a,b)+t(a)+m(a);va+=fc}break;case "AndroidDevice":if(null!=a.AndroidDeviceName){v.style=
"fillColor=#000000;strokeColor=#000000;";var Va=null,qb=null,rb=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",Va=new mxCell("",new mxGeometry(.112*f,.077*c,.77*f,.85*c),""),a.KeyboardShown&&(qb=new mxCell("",new mxGeometry(.112*f,.727*c,.77*f,.2*c),"shape=mxgraph.android.keyboard;")),a.FullScreen||(rb=new mxCell("",new mxGeometry(.112*f,.077*c,.77*f,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
.015*c+";"));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",Va=new mxCell("",new mxGeometry(.04*f,.092*c,.92*f,.816*c),""),a.KeyboardShown&&(qb=new mxCell("",new mxGeometry(.04*f,.708*c,.92*f,.2*c),"shape=mxgraph.android.keyboard;")),a.FullScreen||(rb=new mxCell("",new mxGeometry(.04*f,.092*c,.92*f,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*c+";"));Va.vertex=!0;v.insert(Va);
"Dark"==a.Scheme?Va.style+="fillColor=#111111;":"Light"==a.Scheme&&(Va.style+="fillColor=#ffffff;");null!=qb&&(qb.vertex=!0,v.insert(qb));null!=rb&&(rb.vertex=!0,v.insert(rb))}break;case "AndroidAlertDialog":var ya=new mxCell("",new mxGeometry(0,0,f,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ya.vertex=!0;v.insert(ya);var R=new mxCell("",new mxGeometry(0,25,f,10),"shape=line;strokeColor=#33B5E5;");R.vertex=!0;v.insert(R);var tb=new mxCell("",new mxGeometry(0,30,f,c-30),"strokeColor=none;fillColor=none;verticalAlign=top;");
tb.vertex=!0;v.insert(tb);var W=new mxCell("",new mxGeometry(0,c-25,.5*f,25),"fillColor=none;");W.vertex=!0;v.insert(W);var X=new mxCell("",new mxGeometry(.5*f,c-25,.5*f,25),"fillColor=none;");X.vertex=!0;v.insert(X);ya.value=l(a.DialogTitle);ya.style+=n(a.DialogTitle);tb.value=l(a.DialogText);tb.style+=n(a.DialogText);W.value=l(a.Button_0);W.style+=n(a.Button_0);X.value=l(a.Button_1);X.style+=n(a.Button_1);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",W.style+="strokeColor=#353535;",
X.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",W.style+="strokeColor=#E2E2E2;",X.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":ya=new mxCell("",new mxGeometry(0,0,f,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ya.vertex=!0;v.insert(ya);ya.value=l(a.DialogTitle);ya.style+=n(a.DialogTitle);R=new mxCell("",new mxGeometry(0,25,f,10),"shape=line;strokeColor=#33B5E5;");R.vertex=!0;v.insert(R);W=new mxCell("",new mxGeometry(0,
c-25,.5*f,25),"fillColor=none;");W.vertex=!0;v.insert(W);W.value=l(a.Button_0);W.style+=n(a.Button_0);X=new mxCell("",new mxGeometry(.5*f,c-25,.5*f,25),"fillColor=none;");X.vertex=!0;v.insert(X);X.value=l(a.Button_1);X.style+=n(a.Button_1);var cb=new mxCell("",new mxGeometry(.5*f-4,41,8,4),"shape=triangle;direction=north;");cb.vertex=!0;v.insert(cb);var db=new mxCell("",new mxGeometry(.25*f-4,41,8,4),"shape=triangle;direction=north;");db.vertex=!0;v.insert(db);var eb=new mxCell("",new mxGeometry(.75*
f-4,41,8,4),"shape=triangle;direction=north;");eb.vertex=!0;v.insert(eb);var ub=new mxCell("",new mxGeometry(.375*f,50,.2*f,15),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=l(a.Label_1);ub.style+=n(a.Label_1);var vb=new mxCell("",new mxGeometry(.125*f,50,.2*f,15),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=l(a.Label_0);vb.style+=n(a.Label_0);var fb=null;"AndroidDateDialog"==h.Class&&(fb=new mxCell("",new mxGeometry(.625*f,50,.2*f,15),"strokeColor=none;fillColor=none;"),
fb.vertex=!0,v.insert(fb),fb.value=l(a.Label_2),fb.style+=n(a.Label_2));var za=new mxCell("",new mxGeometry(.43*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");za.vertex=!0;v.insert(za);var Aa=new mxCell("",new mxGeometry(.18*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");Aa.vertex=!0;v.insert(Aa);var Ya=new mxCell("",new mxGeometry(.68*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");Ya.vertex=!0;v.insert(Ya);var wb=new mxCell("",new mxGeometry(.375*f,65,.2*f,15),"strokeColor=none;fillColor=none;");
wb.vertex=!0;v.insert(wb);wb.value=l(a.Label_4);wb.style+=n(a.Label_4);var gb=null;"AndroidTimeDialog"==h.Class&&(gb=new mxCell("",new mxGeometry(.3*f,65,.1*f,15),"strokeColor=none;fillColor=none;"),gb.vertex=!0,v.insert(gb),gb.value=l(a.Label_Colon),gb.style+=n(a.Label_Colon));var xb=new mxCell("",new mxGeometry(.125*f,65,.2*f,15),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=l(a.Label_3);xb.style+=n(a.Label_3);var yb=new mxCell("",new mxGeometry(.625*f,65,.2*f,15),"strokeColor=none;fillColor=none;");
yb.vertex=!0;v.insert(yb);yb.value=l(a.Label_5);yb.style+=n(a.Label_5);var ab=new mxCell("",new mxGeometry(.43*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");ab.vertex=!0;v.insert(ab);var nb=new mxCell("",new mxGeometry(.18*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");nb.vertex=!0;v.insert(nb);var ob=new mxCell("",new mxGeometry(.68*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");ob.vertex=!0;v.insert(ob);var zb=new mxCell("",new mxGeometry(.375*f,80,.2*f,15),"strokeColor=none;fillColor=none;");
zb.vertex=!0;v.insert(zb);zb.value=l(a.Label_7);zb.style+=n(a.Label_7);var Ab=new mxCell("",new mxGeometry(.125*f,80,.2*f,15),"strokeColor=none;fillColor=none;");Ab.vertex=!0;v.insert(Ab);Ab.value=l(a.Label_6);Ab.style+=n(a.Label_6);var Bb=new mxCell("",new mxGeometry(.625*f,80,.2*f,15),"strokeColor=none;fillColor=none;");Bb.vertex=!0;v.insert(Bb);Bb.value=l(a.Label_8);Bb.style+=n(a.Label_8);var hb=new mxCell("",new mxGeometry(.5*f-4,99,8,4),"shape=triangle;direction=south;");hb.vertex=!0;v.insert(hb);
var ib=new mxCell("",new mxGeometry(.25*f-4,99,8,4),"shape=triangle;direction=south;");ib.vertex=!0;v.insert(ib);var jb=new mxCell("",new mxGeometry(.75*f-4,99,8,4),"shape=triangle;direction=south;");jb.vertex=!0;v.insert(jb);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",W.style+="strokeColor=#353535;",X.style+="strokeColor=#353535;",cb.style+="strokeColor=none;fillColor=#7E7E7E;",db.style+="strokeColor=none;fillColor=#7E7E7E;",eb.style+="strokeColor=none;fillColor=#7E7E7E;",
hb.style+="strokeColor=none;fillColor=#7E7E7E;",ib.style+="strokeColor=none;fillColor=#7E7E7E;",jb.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",W.style+="strokeColor=#E2E2E2;",X.style+="strokeColor=#E2E2E2;",cb.style+="strokeColor=none;fillColor=#939393;",db.style+="strokeColor=none;fillColor=#939393;",eb.style+="strokeColor=none;fillColor=#939393;",hb.style+="strokeColor=none;fillColor=#939393;",ib.style+="strokeColor=none;fillColor=#939393;",
jb.style+="strokeColor=none;fillColor=#939393;");break;case "AndroidListItems":var ea=c,Ra=0;if(a.ShowHeader){var Ra=8,Cb=new mxCell("",new mxGeometry(0,0,f,Ra),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.value=l(a.Header);Cb.style+=n(a.Header);var ea=ea-Ra,pb=new mxCell("",new mxGeometry(0,Ra-2,f,4),"shape=line;strokeColor=#999999;");pb.vertex=!0;v.insert(pb)}var Ba=parseInt(a.Items);0<Ba&&(ea/=Ba);for(var Y=[],R=[],d=0;d<Ba;d++)Y[d]=new mxCell("",new mxGeometry(0,Ra+d*ea,f,
ea),"strokeColor=none;fillColor=none;"),Y[d].vertex=!0,v.insert(Y[d]),Y[d].value=l(a["Item_"+d]),Y[d].style+=n(a["Item_"+d]),0<d&&(R[d]=new mxCell("",new mxGeometry(0,Ra+d*ea-2,f,4),"shape=line;"),R[d].vertex=!0,v.insert(R[d]),R[d].style="Dark"==a.Scheme?R[d].style+"strokeColor=#ffffff;":R[d].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var Ca=parseInt(a.Tabs),la=f;0<Ca&&
(la/=Ca);for(var J=[],R=[],d=0;d<Ca;d++)J[d]=new mxCell("",new mxGeometry(d*la,0,la,c),"strokeColor=none;fillColor=none;"),J[d].vertex=!0,v.insert(J[d]),J[d].value=l(a["Tab_"+d]),J[d].style+=n(a["Tab_"+d]),0<d&&(R[d]=new mxCell("",new mxGeometry(d*la-2,.2*c,4,.6*c),"shape=line;direction=north;"),R[d].vertex=!0,v.insert(R[d]),R[d].style="Dark"==a.Scheme?R[d].style+"strokeColor=#484848;":R[d].style+"strokeColor=#CCCCCC;");var Nb=new mxCell("",new mxGeometry(a.Selected*la+2,c-3,la-4,3),"strokeColor=none;fillColor=#33B5E5;");
Nb.vertex=!0;v.insert(Nb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(wa),Math.round(xa+.25*c),Math.round(f),Math.round(.5*c)),"html=1;whiteSpace=wrap;");v.vertex=!0;var Db=new mxCell("",new mxGeometry(0,0,f*a.BarPosition,Math.round(.5*c)),"strokeColor=none;fillColor=#33B5E5;");Db.vertex=!0;v.insert(Db);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":
v.style+"strokeColor=none;fillColor=#BBBBBB;";break;case "AndroidImageBlock":v.style="Dark"==a.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";break;case "AndroidTextBlock":v.style="Dark"==a.Scheme?a.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":a.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":
v.style+"fillColor=#ffffff;strokeColor=none;";v.value=k(a.Label);v.style+=n(a.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(a.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(a.HighlightShow){var Ma=null,Ma=a.HighlightTop?new mxCell("",new mxGeometry(0,0,d,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,b-
2,d,2),"strokeColor=none;");Ma.vertex=!0;v.insert(Ma);switch(a.HighlightColor){case "Blue":Ma.style+="fillColor=#33B5E5;";break;case "Dark Gray":Ma.style+="fillColor=#B0B0B0;";break;case "White":Ma.style+="fillColor=#ffffff;"}}if(a.VlignShow){var gb=new mxCell("",new mxGeometry(20,5,2,b-10),"shape=line;direction=north;");gb.vertex=!0;v.insert(gb);switch(a.VlignColor){case "Blue":gb.style+="strokeColor=#244C5A;";break;case "White":gb.style+="strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=
k(a.Label);v.style+=n(a.Label)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==a.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=k(a.Label);v.style+=n(a.Label);var Ab=new mxCell("",new mxGeometry(2,b-6,d-4,4),"shape=partialRectangle;top=0;fillColor=none;");Ab.vertex=!0;v.insert(Ab);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";
Ab.style=a.TextFocused?Ab.style+"strokeColor=#33B5E5;":Ab.style+"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var Ua=null;a.Checked&&(Ua=new mxCell("",new mxGeometry(.15*d,.15*b,.7*d,.7*b),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),Ua.vertex=!0,v.insert(Ua));"Dark"==a.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",a.Checked?(Ua.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",
a.Checked&&(Ua.style+="strokeColor=#999999;"));break;case "AndroidCheckBox":var Ub=null;a.Checked&&(Ub=new mxCell("",new mxGeometry(.25*d,.05*-b,d,.8*b),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),Ub.vertex=!0,v.insert(Ub));v.style="Dark"==a.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style="Dark"==a.Scheme?a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":
v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":xa=parseInt(a.Tabs);ha=d;v.style+="strokeColor=none;fillColor=none;";0<xa&&(ha/=xa);H=[];N=[];for(g=0;g<xa;g++)H[g]=new mxCell("",new mxGeometry(g*ha,
0,ha,b),"strokeColor="+a.FillColor+";"),H[g].vertex=!0,v.insert(H[g]),H[g].value=k(a["Tab_"+g]),H[g].style+=n(a["Tab_"+g]),H[g].style=a.Selected==g?H[g].style+t(a,c):H[g].style+"fillColor=none;";break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(ra),Math.round(sa+.25*b),Math.round(d),Math.round(.5*b)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");
v.vertex=!0;zb=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*b)),"strokeColor=none;"+t(a,c));zb.vertex=!0;v.insert(zb);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+t(a,c)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+t(a,c)+"strokeColor=#000000;";var z=new mxCell(k(a.Text),new mxGeometry(.35*d,0,.3*d,b),"strokeColor=none;fillColor=none;");z.vertex=!0;v.insert(z);z.style+=n(a.Text);var ca=new mxCell(k(a.Carrier),
new mxGeometry(.09*d,0,.2*d,b),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.style+=n(a.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+t(a,c)+r(a,c)+Sb(a,c)+n(a.Search);v.value=k(a.Search);var C=new mxCell("",new mxGeometry(.3*d,.3*b,.4*b,.4*b),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");C.vertex=!0;v.insert(C);break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+t(a,c)+r(a,c)+n(a.Title);
v.value=k(a.Title);z=new mxCell(k(a.LeftText),new mxGeometry(.03*d,0,.3*d,b),"strokeColor=none;fillColor=none;");z.vertex=!0;v.insert(z);z.style+=n(a.LeftText);ca=new mxCell(k(a.RightText),new mxGeometry(.65*d,0,.3*d,b),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.style+=n(a.RightText);C=new mxCell("",new mxGeometry(.02*d,.2*b,.3*b,.5*b),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");C.vertex=!0;v.insert(C);break;case "iOSTabs":xa=parseInt(a.Tabs);ha=d;v.style+=
"shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+t(a,c)+r(a,c);0<xa&&(ha/=xa);H=[];N=[];for(g=0;g<xa;g++)H[g]=new mxCell("",new mxGeometry(g*ha,0,ha,b),"strokeColor=none;"),H[g].vertex=!0,v.insert(H[g]),H[g].value=k(a["Tab_"+g]),H[g].style+=K(a["Tab_"+g]),H[g].style+=I(a["Tab_"+g])+J(a["Tab_"+g])+ba(a["Tab_"+g])+ka(a["Tab_"+g])+la(a["Tab_"+g])+La(a["Tab_"+g])+ma(a["Tab_"+g])+na(a["Tab_"+g]),H[g].style+="verticalAlign=bottom;",H[g].style=a.Selected==g?H[g].style+"fillColor=#BBBBBB;":
H[g].style+"fillColor=none;";break;case "iOSDatePicker":var ya=new mxCell("",new mxGeometry(0,0,.5*d,.2*b),"strokeColor=none;fillColor=none;");ya.vertex=!0;v.insert(ya);ya.value=k(a.Option11);ya.style+=n(a.Option11);var za=new mxCell("",new mxGeometry(.5*d,0,.15*d,.2*b),"strokeColor=none;fillColor=none;");za.vertex=!0;v.insert(za);za.value=k(a.Option21);za.style+=n(a.Option21);var Aa=new mxCell("",new mxGeometry(.65*d,0,.15*d,.2*b),"strokeColor=none;fillColor=none;");Aa.vertex=!0;v.insert(Aa);Aa.value=
k(a.Option31);Aa.style+=n(a.Option31);var Ba=new mxCell("",new mxGeometry(0,.2*b,.5*d,.2*b),"strokeColor=none;fillColor=none;");Ba.vertex=!0;v.insert(Ba);Ba.value=k(a.Option12);Ba.style+=n(a.Option12);var Ca=new mxCell("",new mxGeometry(.5*d,.2*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ca.vertex=!0;v.insert(Ca);Ca.value=k(a.Option22);Ca.style+=n(a.Option22);var Da=new mxCell("",new mxGeometry(.65*d,.2*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=k(a.Option32);
Da.style+=n(a.Option32);var V=new mxCell("",new mxGeometry(0,.4*b,.5*d,.2*b),"strokeColor=none;fillColor=none;");V.vertex=!0;v.insert(V);V.value=k(a.Option13);V.style+=n(a.Option13);var W=new mxCell("",new mxGeometry(.5*d,.4*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.value=k(a.Option23);W.style+=n(a.Option23);var Ea=new mxCell("",new mxGeometry(.65*d,.4*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=k(a.Option33);Ea.style+=n(a.Option33);
var X=new mxCell("",new mxGeometry(.8*d,.4*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");X.vertex=!0;v.insert(X);X.value=k(a.Option43);X.style+=n(a.Option43);var Y=new mxCell("",new mxGeometry(0,.6*b,.5*d,.2*b),"strokeColor=none;fillColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Option14);Y.style+=n(a.Option14);var Fa=new mxCell("",new mxGeometry(.5*d,.6*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=k(a.Option24);Fa.style+=n(a.Option24);var Ga=new mxCell("",
new mxGeometry(.65*d,.6*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=k(a.Option34);Ga.style+=n(a.Option34);var Ha=new mxCell("",new mxGeometry(.8*d,.6*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=k(a.Option44);Ha.style+=n(a.Option44);var Z=new mxCell("",new mxGeometry(0,.8*b,.5*d,.2*b),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option15);Z.style+=n(a.Option15);var Ia=new mxCell("",new mxGeometry(.5*
d,.8*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.value=k(a.Option25);Ia.style+=n(a.Option25);var Ja=new mxCell("",new mxGeometry(.65*d,.8*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ja.vertex=!0;v.insert(Ja);Ja.value=k(a.Option35);Ja.style+=n(a.Option35);ua=new mxCell("",new mxGeometry(0,.4*b-2,d,4),"shape=line;strokeColor=#888888;");ua.vertex=!0;v.insert(ua);va=new mxCell("",new mxGeometry(0,.6*b-2,d,4),"shape=line;strokeColor=#888888;");va.vertex=!0;v.insert(va);
v.style+=t(a,c)+r(a,c)+"strokeColor=none;";break;case "iOSTimePicker":ya=new mxCell("",new mxGeometry(0,0,.25*d,.2*b),"strokeColor=none;fillColor=none;");ya.vertex=!0;v.insert(ya);ya.value=k(a.Option11);ya.style+=n(a.Option11);za=new mxCell("",new mxGeometry(.25*d,0,.3*d,.2*b),"strokeColor=none;fillColor=none;");za.vertex=!0;v.insert(za);za.value=k(a.Option21);za.style+=n(a.Option21);Ba=new mxCell("",new mxGeometry(0,.2*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Ba.vertex=!0;v.insert(Ba);Ba.value=
k(a.Option12);Ba.style+=n(a.Option12);Ca=new mxCell("",new mxGeometry(.25*d,.2*b,.3*d,.2*b),"strokeColor=none;fillColor=none;");Ca.vertex=!0;v.insert(Ca);Ca.value=k(a.Option22);Ca.style+=n(a.Option22);V=new mxCell("",new mxGeometry(0,.4*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");V.vertex=!0;v.insert(V);V.value=k(a.Option13);V.style+=n(a.Option13);W=new mxCell("",new mxGeometry(.25*d,.4*b,.3*d,.2*b),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.value=k(a.Option23);W.style+=n(a.Option23);
X=new mxCell("",new mxGeometry(.7*d,.4*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");X.vertex=!0;v.insert(X);X.value=k(a.Option33);X.style+=n(a.Option33);Y=new mxCell("",new mxGeometry(0,.6*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Option14);Y.style+=n(a.Option14);Fa=new mxCell("",new mxGeometry(.25*d,.6*b,.3*d,.2*b),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=k(a.Option24);Fa.style+=n(a.Option24);Ha=new mxCell("",new mxGeometry(.7*
d,.6*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=k(a.Option34);Ha.style+=n(a.Option34);Z=new mxCell("",new mxGeometry(0,.8*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option15);Z.style+=n(a.Option15);Ia=new mxCell("",new mxGeometry(.25*d,.8*b,.3*d,.2*b),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.value=k(a.Option25);Ia.style+=n(a.Option25);ua=new mxCell("",new mxGeometry(0,.4*b-2,d,4),"shape=line;strokeColor=#888888;");
ua.vertex=!0;v.insert(ua);va=new mxCell("",new mxGeometry(0,.6*b-2,d,4),"shape=line;strokeColor=#888888;");va.vertex=!0;v.insert(va);v.style+=t(a,c)+r(a,c)+"strokeColor=none;";break;case "iOSCountdownPicker":Aa=new mxCell("",new mxGeometry(.45*d,0,.2*d,.2*b),"strokeColor=none;fillColor=none;");Aa.vertex=!0;v.insert(Aa);Aa.value=k(a.Option31);Aa.style+=n(a.Option31);Da=new mxCell("",new mxGeometry(.45*d,.2*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=k(a.Option32);
Da.style+=n(a.Option32);V=new mxCell("",new mxGeometry(0,.4*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");V.vertex=!0;v.insert(V);V.value=k(a.Option13);V.style+=n(a.Option13);W=new mxCell("",new mxGeometry(.2*d,.4*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.value=k(a.Option23);W.style+=n(a.Option23);Ea=new mxCell("",new mxGeometry(.45*d,.4*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=k(a.Option33);Ea.style+=n(a.Option33);X=
new mxCell("",new mxGeometry(.6*d,.4*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");X.vertex=!0;v.insert(X);X.value=k(a.Option43);X.style+=n(a.Option43);Y=new mxCell("",new mxGeometry(0,.6*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Option14);Y.style+=n(a.Option14);Ga=new mxCell("",new mxGeometry(.45*d,.6*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=k(a.Option34);Ga.style+=n(a.Option34);Z=new mxCell("",new mxGeometry(0,
.8*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option15);Z.style+=n(a.Option15);Ja=new mxCell("",new mxGeometry(.45*d,.8*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");Ja.vertex=!0;v.insert(Ja);Ja.value=k(a.Option35);Ja.style+=n(a.Option35);ua=new mxCell("",new mxGeometry(0,.4*b-2,d,4),"shape=line;strokeColor=#888888;");ua.vertex=!0;v.insert(ua);va=new mxCell("",new mxGeometry(0,.6*b-2,d,4),"shape=line;strokeColor=#888888;");va.vertex=!0;v.insert(va);v.style+=
t(a,c)+r(a,c)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*a.SeparatorInset+";";v.style+=K(a.text)+I(a.text)+J(a.text)+Na(a.text);v.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);break;case "DetailDisclosure":C=new mxCell("",
new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);var L=new mxCell("",new mxGeometry(.79*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "DetailIndicator":L=new mxCell("",new mxGeometry(.87*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "CheckMark":C=new mxCell("",new mxGeometry(.89*
d,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),C.vertex=!0,v.insert(C)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.6*a.SeparatorInset+";";v.style+=K(a.subtext)+I(a.subtext)+J(a.subtext);v.value=k(a.subtext);var O=new mxCell("",new mxGeometry(0,.4*b,d,.6*b),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+
.6*a.SeparatorInset+";");O.vertex=!0;v.insert(O);O.style+=K(a.text)+I(a.text)+J(a.text);O.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);break;case "DetailDisclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);L=new mxCell("",new mxGeometry(.79*d,.25*b,.5*b,
.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "DetailIndicator":L=new mxCell("",new mxGeometry(.87*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "CheckMark":C=new mxCell("",new mxGeometry(.89*d,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),C.vertex=!0,v.insert(C)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+
.6*a.SeparatorInset+";";v.style+=K(a.subtext)+I(a.subtext)+J(a.subtext);v.value=k(a.subtext);O=null;switch(a.AccessoryIndicatorType){case "Disclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);O=new mxCell("",new mxGeometry(.55*d,0,.3*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
C.vertex=!0;v.insert(C);L=new mxCell("",new mxGeometry(.79*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);O=new mxCell("",new mxGeometry(.45*d,0,.3*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":L=new mxCell("",new mxGeometry(.87*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);O=new mxCell("",new mxGeometry(.52*d,0,.3*d,
b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":C=new mxCell("",new mxGeometry(.89*d,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");C.vertex=!0;v.insert(C);O=new mxCell("",new mxGeometry(.55*d,0,.3*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:O=new mxCell("",new mxGeometry(.65*d,0,.3*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;")}O.vertex=!0;v.insert(O);O.style+=K(a.text)+I(a.text)+
J(a.text);O.value=k(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var pa=new mxCell("",new mxGeometry(0,0,.25*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");pa.vertex=!0;v.insert(pa);pa.style+=K(a.subtext)+I(a.subtext)+J(a.subtext);pa.value=k(a.subtext);O=new mxCell("",new mxGeometry(.25*d,0,.5*d,b),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
O.vertex=!0;v.insert(O);O.style+=K(a.text)+I(a.text)+J(a.text);O.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);break;case "DetailDisclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);L=new mxCell("",new mxGeometry(.79*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
L.vertex=!0;v.insert(L);break;case "DetailIndicator":L=new mxCell("",new mxGeometry(.87*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "CheckMark":C=new mxCell("",new mxGeometry(.89*d,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),C.vertex=!0,v.insert(C)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
z=new mxCell("",new mxGeometry(0,0,d,.4*b),"fillColor=none;strokeColor=none;spacing=10;align=left;");z.vertex=!0;v.insert(z);z.style+=K(a.text)+I(a.text)+J(a.text);z.value=k(a.text);ca=new mxCell("",new mxGeometry(0,.6*b,d,.4*b),"fillColor=none;strokeColor=none;spacing=10;align=left;");ca.vertex=!0;v.insert(ca);ca.style+=K(a["bottom-text"])+I(a["bottom-text"])+J(a["bottom-text"]);ca.value=k(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";
v.style+=K(a.text)+I(a.text)+J(a.text);v.value=k(a.text);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var e=new mxCell("",new mxGeometry(0,0,.9*d,.9*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a);var p=new mxCell("",new mxGeometry(.1*d,.1*b,.9*d,.9*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a);p.value=k(a.Text);a.Future&&(e.style+="dashed=1;",p.style+="dashed=1;")}else a.Future&&(v.style+="dashed=1;"),
v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a),v.value=k(a.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a);e=null;switch(f.Class){case "SMHome":e=new mxCell("",new mxGeometry(.5*d-.4*b,.1*b,.8*b,.8*b),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMPrint":e=new mxCell("",new mxGeometry(.5*d-.4*b,.19*b,.8*b,.62*b),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":e=new mxCell("",new mxGeometry(.5*d-.4*b,.1*b,.8*b,.8*b),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSettings":e=new mxCell("",new mxGeometry(.5*d-.35*b,.15*b,.7*b,.7*b),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSitemap":e=new mxCell("",new mxGeometry(.5*d-.35*b,.2*b,.7*b,.6*b),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":e=new mxCell("",new mxGeometry(.5*d-.3*b,.25*b,.6*b,.5*b),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":e=new mxCell("",new mxGeometry(.5*d-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMAudio":e=new mxCell("",new mxGeometry(.5*d-.3*b,.2*b,.6*b,.6*b),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":e=new mxCell("",new mxGeometry(.5*d-.4*b,.15*b,.8*b,.7*b),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMChart":var A=t(a,c),A=""==A?"#ffffff;":A.replace("fillColor=",""),e=new mxCell("",new mxGeometry(.5*d-.35*b,.15*b,.7*b,.7*b),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
A);break;case "SMCloud":e=new mxCell("",new mxGeometry(.5*d-.4*b,.27*b,.8*b,.46*b),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":e=new mxCell("",new mxGeometry(.5*d-.25*b,.15*b,.5*b,.7*b),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":e=new mxCell("",new mxGeometry(.5*d-.4*b,.15*b,.8*b,.7*b),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMGame":e=new mxCell("",new mxGeometry(.5*d-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":e=new mxCell("",new mxGeometry(.5*d-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}e.vertex=!0;v.insert(e);e.style+=n(a);e.value=k(a.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",
new mxGeometry(.1*d,0,.9*d,.9*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a);p=new mxCell("",new mxGeometry(0,.1*b,.9*d,.9*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Text);p.value=k(a.Text);break;case "UMLConstraintBlock":var Kb=new mxCell("",new mxGeometry(0,0,.25*b,b),"shape=curlyBracket;rounded=1;");Kb.vertex=!0;v.insert(Kb);var Lb=new mxCell("",new mxGeometry(d-.25*b,0,.25*b,b),"shape=curlyBracket;rounded=1;flipH=1;");Lb.vertex=
!0;v.insert(Lb);ga=new mxCell("",new mxGeometry(.25*b,0,d-.5*b,b),"strokeColor=none;fillColor=none;");ga.vertex=!0;ga.value=k(a);v.insert(ga);v.style="strokeColor=none;fillColor=none;";v.style+=ia(a,c,v);Kb.style+=h(a,c)+r(a,c)+u(a)+y(a)+q(a);Lb.style+=h(a,c)+r(a,c)+u(a)+y(a)+q(a);ga.style+=K(a)+I(a)+J(a)+ba(a)+ka(a)+la(a)+La(a)+ma(a)+na(a)+Na(a);break;case "UMLTextBlock":v.style+="strokeColor=none;"+r(a,c)+u(a)+y(a)+q(a)+n(a.Text);v.value=k(a.Text);break;case "BPMNActivity":switch(a.bpmnActivityType){case 1:v.style+=
t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+q(a)+n(a.Text);v.value=k(a.Text);break;case 2:v.style+="shape=ext;double=1;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+q(a)+n(a.Text);v.value=k(a.Text);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 1;"+t(a,c)+h(a,c)+r(a,c)+u(a)+q(a)+n(a.Text);v.value=k(a.Text);break;case 4:v.style+="shape=ext;strokeWidth=2;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a.Text),v.value=k(a.Text)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");
v.style+"fillColor=#ffffff;strokeColor=none;";v.value=l(a.Label);v.style+=n(a.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(a.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(a.HighlightShow){var Sa=null,Sa=a.HighlightTop?new mxCell("",new mxGeometry(0,0,f,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,c-
2,f,2),"strokeColor=none;");Sa.vertex=!0;v.insert(Sa);switch(a.HighlightColor){case "Blue":Sa.style+="fillColor=#33B5E5;";break;case "Dark Gray":Sa.style+="fillColor=#B0B0B0;";break;case "White":Sa.style+="fillColor=#ffffff;"}}if(a.VlignShow){var kb=new mxCell("",new mxGeometry(20,5,2,c-10),"shape=line;direction=north;");kb.vertex=!0;v.insert(kb);switch(a.VlignColor){case "Blue":kb.style+="strokeColor=#244C5A;";break;case "White":kb.style+="strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=
l(a.Label);v.style+=n(a.Label)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==a.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=l(a.Label);v.style+=n(a.Label);var Eb=new mxCell("",new mxGeometry(2,c-6,f-4,4),"shape=partialRectangle;top=0;fillColor=none;");Eb.vertex=!0;v.insert(Eb);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";
Eb.style=a.TextFocused?Eb.style+"strokeColor=#33B5E5;":Eb.style+"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var Za=null;a.Checked&&(Za=new mxCell("",new mxGeometry(.15*f,.15*c,.7*f,.7*c),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),Za.vertex=!0,v.insert(Za));"Dark"==a.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",a.Checked?(Za.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",
a.Checked&&(Za.style+="strokeColor=#999999;"));break;case "AndroidCheckBox":var Yb=null;a.Checked&&(Yb=new mxCell("",new mxGeometry(.25*f,.05*-c,f,.8*c),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),Yb.vertex=!0,v.insert(Yb));v.style="Dark"==a.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style="Dark"==a.Scheme?a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":
v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":Ca=parseInt(a.Tabs);la=f;v.style+="strokeColor=none;fillColor=none;";0<Ca&&(la/=Ca);J=[];R=[];for(d=0;d<Ca;d++)J[d]=new mxCell("",new mxGeometry(d*la,
0,la,c),"strokeColor="+a.FillColor+";"),J[d].vertex=!0,v.insert(J[d]),J[d].value=l(a["Tab_"+d]),J[d].style+=n(a["Tab_"+d]),J[d].style=a.Selected==d?J[d].style+q(a,b):J[d].style+"fillColor=none;";break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(wa),Math.round(xa+.25*c),Math.round(f),Math.round(.5*c)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");
v.vertex=!0;Db=new mxCell("",new mxGeometry(0,0,f*a.BarPosition,Math.round(.5*c)),"strokeColor=none;"+q(a,b));Db.vertex=!0;v.insert(Db);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+q(a,b)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+q(a,b)+"strokeColor=#000000;";var D=new mxCell(l(a.Text),new mxGeometry(.35*f,0,.3*f,c),"strokeColor=none;fillColor=none;");D.vertex=!0;v.insert(D);D.style+=n(a.Text);var ga=new mxCell(l(a.Carrier),
new mxGeometry(.09*f,0,.2*f,c),"strokeColor=none;fillColor=none;");ga.vertex=!0;v.insert(ga);ga.style+=n(a.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+q(a,b)+p(a,b)+Wb(a,b)+n(a.Search);v.value=l(a.Search);var F=new mxCell("",new mxGeometry(.3*f,.3*c,.4*c,.4*c),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");F.vertex=!0;v.insert(F);break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+q(a,b)+p(a,b)+n(a.Title);
v.value=l(a.Title);D=new mxCell(l(a.LeftText),new mxGeometry(.03*f,0,.3*f,c),"strokeColor=none;fillColor=none;");D.vertex=!0;v.insert(D);D.style+=n(a.LeftText);ga=new mxCell(l(a.RightText),new mxGeometry(.65*f,0,.3*f,c),"strokeColor=none;fillColor=none;");ga.vertex=!0;v.insert(ga);ga.style+=n(a.RightText);F=new mxCell("",new mxGeometry(.02*f,.2*c,.3*c,.5*c),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");F.vertex=!0;v.insert(F);break;case "iOSTabs":Ca=parseInt(a.Tabs);la=f;v.style+=
"shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+q(a,b)+p(a,b);0<Ca&&(la/=Ca);J=[];R=[];for(d=0;d<Ca;d++)J[d]=new mxCell("",new mxGeometry(d*la,0,la,c),"strokeColor=none;"),J[d].vertex=!0,v.insert(J[d]),J[d].value=l(a["Tab_"+d]),J[d].style+=O(a["Tab_"+d]),J[d].style+=K(a["Tab_"+d])+M(a["Tab_"+d])+fa(a["Tab_"+d])+pa(a["Tab_"+d])+qa(a["Tab_"+d])+Qa(a["Tab_"+d])+ra(a["Tab_"+d])+sa(a["Tab_"+d]),J[d].style+="verticalAlign=bottom;",J[d].style=a.Selected==d?J[d].style+"fillColor=#BBBBBB;":
J[d].style+"fillColor=none;";break;case "iOSDatePicker":var Da=new mxCell("",new mxGeometry(0,0,.5*f,.2*c),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=l(a.Option11);Da.style+=n(a.Option11);var Ea=new mxCell("",new mxGeometry(.5*f,0,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=l(a.Option21);Ea.style+=n(a.Option21);var Fa=new mxCell("",new mxGeometry(.65*f,0,.15*f,.2*c),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=
l(a.Option31);Fa.style+=n(a.Option31);var Ga=new mxCell("",new mxGeometry(0,.2*c,.5*f,.2*c),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=l(a.Option12);Ga.style+=n(a.Option12);var Ha=new mxCell("",new mxGeometry(.5*f,.2*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=l(a.Option22);Ha.style+=n(a.Option22);var Ia=new mxCell("",new mxGeometry(.65*f,.2*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.value=l(a.Option32);
Ia.style+=n(a.Option32);var Z=new mxCell("",new mxGeometry(0,.4*c,.5*f,.2*c),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=l(a.Option13);Z.style+=n(a.Option13);var aa=new mxCell("",new mxGeometry(.5*f,.4*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=l(a.Option23);aa.style+=n(a.Option23);var Ja=new mxCell("",new mxGeometry(.65*f,.4*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ja.vertex=!0;v.insert(Ja);Ja.value=l(a.Option33);Ja.style+=
n(a.Option33);var ba=new mxCell("",new mxGeometry(.8*f,.4*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=l(a.Option43);ba.style+=n(a.Option43);var ca=new mxCell("",new mxGeometry(0,.6*c,.5*f,.2*c),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=l(a.Option14);ca.style+=n(a.Option14);var Ka=new mxCell("",new mxGeometry(.5*f,.6*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ka.vertex=!0;v.insert(Ka);Ka.value=l(a.Option24);Ka.style+=n(a.Option24);
var La=new mxCell("",new mxGeometry(.65*f,.6*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");La.vertex=!0;v.insert(La);La.value=l(a.Option34);La.style+=n(a.Option34);var Ma=new mxCell("",new mxGeometry(.8*f,.6*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ma.vertex=!0;v.insert(Ma);Ma.value=l(a.Option44);Ma.style+=n(a.Option44);var da=new mxCell("",new mxGeometry(0,.8*c,.5*f,.2*c),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=l(a.Option15);da.style+=n(a.Option15);var Na=
new mxCell("",new mxGeometry(.5*f,.8*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=l(a.Option25);Na.style+=n(a.Option25);var Oa=new mxCell("",new mxGeometry(.65*f,.8*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=l(a.Option35);Oa.style+=n(a.Option35);za=new mxCell("",new mxGeometry(0,.4*c-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*c-2,f,4),"shape=line;strokeColor=#888888;");
Aa.vertex=!0;v.insert(Aa);v.style+=q(a,b)+p(a,b)+"strokeColor=none;";break;case "iOSTimePicker":Da=new mxCell("",new mxGeometry(0,0,.25*f,.2*c),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=l(a.Option11);Da.style+=n(a.Option11);Ea=new mxCell("",new mxGeometry(.25*f,0,.3*f,.2*c),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=l(a.Option21);Ea.style+=n(a.Option21);Ga=new mxCell("",new mxGeometry(0,.2*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");Ga.vertex=
!0;v.insert(Ga);Ga.value=l(a.Option12);Ga.style+=n(a.Option12);Ha=new mxCell("",new mxGeometry(.25*f,.2*c,.3*f,.2*c),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=l(a.Option22);Ha.style+=n(a.Option22);Z=new mxCell("",new mxGeometry(0,.4*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=l(a.Option13);Z.style+=n(a.Option13);aa=new mxCell("",new mxGeometry(.25*f,.4*c,.3*f,.2*c),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=
l(a.Option23);aa.style+=n(a.Option23);ba=new mxCell("",new mxGeometry(.7*f,.4*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=l(a.Option33);ba.style+=n(a.Option33);ca=new mxCell("",new mxGeometry(0,.6*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=l(a.Option14);ca.style+=n(a.Option14);Ka=new mxCell("",new mxGeometry(.25*f,.6*c,.3*f,.2*c),"strokeColor=none;fillColor=none;");Ka.vertex=!0;v.insert(Ka);Ka.value=l(a.Option24);Ka.style+=
n(a.Option24);Ma=new mxCell("",new mxGeometry(.7*f,.6*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ma.vertex=!0;v.insert(Ma);Ma.value=l(a.Option34);Ma.style+=n(a.Option34);da=new mxCell("",new mxGeometry(0,.8*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=l(a.Option15);da.style+=n(a.Option15);Na=new mxCell("",new mxGeometry(.25*f,.8*c,.3*f,.2*c),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=l(a.Option25);Na.style+=n(a.Option25);za=
new mxCell("",new mxGeometry(0,.4*c-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*c-2,f,4),"shape=line;strokeColor=#888888;");Aa.vertex=!0;v.insert(Aa);v.style+=q(a,b)+p(a,b)+"strokeColor=none;";break;case "iOSCountdownPicker":Fa=new mxCell("",new mxGeometry(.45*f,0,.2*f,.2*c),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=l(a.Option31);Fa.style+=n(a.Option31);Ia=new mxCell("",new mxGeometry(.45*f,.2*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");
Ia.vertex=!0;v.insert(Ia);Ia.value=l(a.Option32);Ia.style+=n(a.Option32);Z=new mxCell("",new mxGeometry(0,.4*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=l(a.Option13);Z.style+=n(a.Option13);aa=new mxCell("",new mxGeometry(.2*f,.4*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=l(a.Option23);aa.style+=n(a.Option23);Ja=new mxCell("",new mxGeometry(.45*f,.4*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");Ja.vertex=!0;v.insert(Ja);
Ja.value=l(a.Option33);Ja.style+=n(a.Option33);ba=new mxCell("",new mxGeometry(.6*f,.4*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=l(a.Option43);ba.style+=n(a.Option43);ca=new mxCell("",new mxGeometry(0,.6*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=l(a.Option14);ca.style+=n(a.Option14);La=new mxCell("",new mxGeometry(.45*f,.6*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");La.vertex=!0;v.insert(La);La.value=l(a.Option34);
La.style+=n(a.Option34);da=new mxCell("",new mxGeometry(0,.8*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=l(a.Option15);da.style+=n(a.Option15);Oa=new mxCell("",new mxGeometry(.45*f,.8*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=l(a.Option35);Oa.style+=n(a.Option35);za=new mxCell("",new mxGeometry(0,.4*c-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*c-2,f,4),"shape=line;strokeColor=#888888;");
Aa.vertex=!0;v.insert(Aa);v.style+=q(a,b)+p(a,b)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*a.SeparatorInset+";";v.style+=O(a.text)+K(a.text)+M(a.text)+Ta(a.text);v.value=l(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);break;
case "DetailDisclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);var Q=new mxCell("",new mxGeometry(.79*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "DetailIndicator":Q=new mxCell("",new mxGeometry(.87*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "CheckMark":F=
new mxCell("",new mxGeometry(.89*f,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),F.vertex=!0,v.insert(F)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.6*a.SeparatorInset+";";v.style+=O(a.subtext)+K(a.subtext)+M(a.subtext);v.value=l(a.subtext);var S=new mxCell("",new mxGeometry(0,.4*c,f,.6*c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+
.6*a.SeparatorInset+";");S.vertex=!0;v.insert(S);S.style+=O(a.text)+K(a.text)+M(a.text);S.value=l(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);break;case "DetailDisclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);Q=new mxCell("",new mxGeometry(.79*f,.25*c,.5*c,
.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "DetailIndicator":Q=new mxCell("",new mxGeometry(.87*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "CheckMark":F=new mxCell("",new mxGeometry(.89*f,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),F.vertex=!0,v.insert(F)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+
.6*a.SeparatorInset+";";v.style+=O(a.subtext)+K(a.subtext)+M(a.subtext);v.value=l(a.subtext);S=null;switch(a.AccessoryIndicatorType){case "Disclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);S=new mxCell("",new mxGeometry(.55*f,0,.3*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
F.vertex=!0;v.insert(F);Q=new mxCell("",new mxGeometry(.79*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);S=new mxCell("",new mxGeometry(.45*f,0,.3*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":Q=new mxCell("",new mxGeometry(.87*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);S=new mxCell("",new mxGeometry(.52*f,0,.3*f,
c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":F=new mxCell("",new mxGeometry(.89*f,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");F.vertex=!0;v.insert(F);S=new mxCell("",new mxGeometry(.55*f,0,.3*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:S=new mxCell("",new mxGeometry(.65*f,0,.3*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;")}S.vertex=!0;v.insert(S);S.style+=O(a.text)+K(a.text)+
M(a.text);S.value=l(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var ua=new mxCell("",new mxGeometry(0,0,.25*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");ua.vertex=!0;v.insert(ua);ua.style+=O(a.subtext)+K(a.subtext)+M(a.subtext);ua.value=l(a.subtext);S=new mxCell("",new mxGeometry(.25*f,0,.5*f,c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
S.vertex=!0;v.insert(S);S.style+=O(a.text)+K(a.text)+M(a.text);S.value=l(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);break;case "DetailDisclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);Q=new mxCell("",new mxGeometry(.79*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
Q.vertex=!0;v.insert(Q);break;case "DetailIndicator":Q=new mxCell("",new mxGeometry(.87*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "CheckMark":F=new mxCell("",new mxGeometry(.89*f,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),F.vertex=!0,v.insert(F)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
D=new mxCell("",new mxGeometry(0,0,f,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");D.vertex=!0;v.insert(D);D.style+=O(a.text)+K(a.text)+M(a.text);D.value=l(a.text);ga=new mxCell("",new mxGeometry(0,.6*c,f,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");ga.vertex=!0;v.insert(ga);ga.style+=O(a["bottom-text"])+K(a["bottom-text"])+M(a["bottom-text"]);ga.value=l(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";
v.style+=O(a.text)+K(a.text)+M(a.text);v.value=l(a.text);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var e=new mxCell("",new mxGeometry(0,0,.9*f,.9*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a);var k=new mxCell("",new mxGeometry(.1*f,.1*c,.9*f,.9*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a);k.value=l(a.Text);a.Future&&(e.style+="dashed=1;",k.style+="dashed=1;")}else a.Future&&(v.style+="dashed=1;"),
v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a),v.value=l(a.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a);e=null;switch(h.Class){case "SMHome":e=new mxCell("",new mxGeometry(.5*f-.4*c,.1*c,.8*c,.8*c),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMPrint":e=new mxCell("",new mxGeometry(.5*f-.4*c,.19*c,.8*c,.62*c),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":e=new mxCell("",new mxGeometry(.5*f-.4*c,.1*c,.8*c,.8*c),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSettings":e=new mxCell("",new mxGeometry(.5*f-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSitemap":e=new mxCell("",new mxGeometry(.5*f-.35*c,.2*c,.7*c,.6*c),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":e=new mxCell("",new mxGeometry(.5*f-.3*c,.25*c,.6*c,.5*c),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":e=new mxCell("",new mxGeometry(.5*f-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMAudio":e=new mxCell("",new mxGeometry(.5*f-.3*c,.2*c,.6*c,.6*c),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":e=new mxCell("",new mxGeometry(.5*f-.4*c,.15*c,.8*c,.7*c),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMChart":var y=q(a,b),y=""==y?"#ffffff;":y.replace("fillColor=",""),e=new mxCell("",new mxGeometry(.5*f-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
y);break;case "SMCloud":e=new mxCell("",new mxGeometry(.5*f-.4*c,.27*c,.8*c,.46*c),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":e=new mxCell("",new mxGeometry(.5*f-.25*c,.15*c,.5*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":e=new mxCell("",new mxGeometry(.5*f-.4*c,.15*c,.8*c,.7*c),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMGame":e=new mxCell("",new mxGeometry(.5*f-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":e=new mxCell("",new mxGeometry(.5*f-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}e.vertex=!0;v.insert(e);e.style+=n(a);e.value=l(a.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",
new mxGeometry(.1*f,0,.9*f,.9*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a);k=new mxCell("",new mxGeometry(0,.1*c,.9*f,.9*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Text);k.value=l(a.Text);break;case "UMLConstraintBlock":var Ob=new mxCell("",new mxGeometry(0,0,.25*c,c),"shape=curlyBracket;rounded=1;");Ob.vertex=!0;v.insert(Ob);var Pb=new mxCell("",new mxGeometry(f-.25*c,0,.25*c,c),"shape=curlyBracket;rounded=1;flipH=1;");Pb.vertex=
!0;v.insert(Pb);ka=new mxCell("",new mxGeometry(.25*c,0,f-.5*c,c),"strokeColor=none;fillColor=none;");ka.vertex=!0;ka.value=l(a);v.insert(ka);v.style="strokeColor=none;fillColor=none;";v.style+=V(a,b,v);Ob.style+=g(a,b)+p(a,b)+r(a)+t(a)+m(a);Pb.style+=g(a,b)+p(a,b)+r(a)+t(a)+m(a);ka.style+=O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+Qa(a)+ra(a)+sa(a)+Ta(a);break;case "UMLTextBlock":v.style+="strokeColor=none;"+p(a,b)+r(a)+t(a)+m(a)+n(a.Text);v.value=l(a.Text);break;case "BPMNActivity":switch(a.bpmnActivityType){case 1:v.style+=
q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+m(a)+n(a.Text);v.value=l(a.Text);break;case 2:v.style+="shape=ext;double=1;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+m(a)+n(a.Text);v.value=l(a.Text);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 1;"+q(a,b)+g(a,b)+p(a,b)+r(a)+m(a)+n(a.Text);v.value=l(a.Text);break;case 4:v.style+="shape=ext;strokeWidth=2;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a.Text),v.value=l(a.Text)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");
e.geometry.offset=new mxPoint(4,7);break;case 2:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");e.geometry.offset=new mxPoint(4,7);break;case 3:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");e.geometry.offset=new mxPoint(4,5);break;case 4:e=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");e.geometry.offset=new mxPoint(4,7);break;case 5:e=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");e.geometry.offset=
new mxPoint(4,7);break;case 6:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");e.geometry.offset=new mxPoint(4,5);break;case 7:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),e.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Bb=t(a,c),A=h(a,c),A=A.replace("strokeColor","fillColor"),Bb=Bb.replace("fillColor","strokeColor");""==A&&(A="fillColor=#000000;");""==Bb&&(Bb="strokeColor=#ffffff;");e.style+=Bb+A+"part=1;"}else e.style+=t(a,
c)+h(a,c)+"part=1;";e.geometry.relative=!0;e.vertex=!0;v.insert(e)}var Cb=0;0!=a.bpmnActivityMarker1&&Cb++;0!=a.bpmnActivityMarker2&&Cb++;var da=0;1==Cb?da=-7.5:2==Cb&&(da=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(da,-20);e.style+=t(a,c)+h(a,c);break;case 2:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(da,-20);e.style+=
t(a,c)+h(a,c);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(da,-20);e.style+=t(a,c)+h(a,c);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(da,-20);e.style+=t(a,c)+h(a,c);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");e.geometry.offset=new mxPoint(da,-17);A=h(a,c);A=A.replace("strokeColor",
"fillColor");""==A&&(A="fillColor=#000000;");e.style+=A;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(da,-18),e.style+=t(a,c)+h(a,c)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}2==Cb&&(da=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(da,-20);e.style+=t(a,c)+h(a,c);break;case 2:e=new mxCell("",new mxGeometry(.5,
1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(da,-20);e.style+=t(a,c)+h(a,c);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(da,-20);e.style+=t(a,c)+h(a,c);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(da,-20);e.style+=t(a,c)+h(a,c);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");
e.geometry.offset=new mxPoint(da,-17);A=h(a,c);A=A.replace("strokeColor","fillColor");""==A&&(A="fillColor=#000000;");e.style+=A;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(da,-18),e.style+=t(a,c)+h(a,c)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+q(a)+K(a)+I(a)+J(a)+ba(a)+ka(a)+
la(a)+La(a)+ma(a)+na(a);v.value=k(a.Text);if(1==a.bpmnDashed)switch(a.bpmnEventGroup){case 0:v.style+="outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(a.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(a.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+=
"symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";break;case 12:v.style+="symbol=terminate;"}break;case "BPMNConversation":v.style+="shape=hexagon;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);v.style=0==a.bpmnConversationType?v.style+
q(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(e=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),e.geometry.offset=new mxPoint(-6,-17),e.style+=t(a,c)+h(a,c),e.geometry.relative=!0,e.vertex=!0,v.insert(e));break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a);switch(a.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+="outline=none;symbol=exclusiveGw;";
break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}break;case "BPMNData":v.style+="shape=note;size=14;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a);switch(a.bpmnDataType){case 1:e=new mxCell("",new mxGeometry(.5,1,12,
10),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(-6,-15);e.style+=t(a,c)+h(a,c);e.geometry.relative=!0;e.vertex=!0;v.insert(e);break;case 2:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");e.geometry.offset=new mxPoint(3,3);e.style+=t(a,c)+h(a,c);e.geometry.relative=!0;e.vertex=!0;v.insert(e);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";z=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;");z.geometry.offset=
new mxPoint(0,14);z.geometry.relative=!0;z.vertex=!0;v.insert(z);z.value=k(a.Text);z.style+=n(a);break;case 3:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),e.geometry.offset=new mxPoint(3,3),e.style+=h(a,c),e.geometry.relative=!0,e.vertex=!0,v.insert(e),A=h(a,c),A=A.replace("strokeColor","fillColor"),""==A&&(A="fillColor=#000000;"),e.style+=A,z=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;"),z.geometry.offset=new mxPoint(0,
14),z.geometry.relative=!0,z.vertex=!0,v.insert(z),z.value=k(a.Text),z.style+=n(a)}break;case "BPMNBlackPool":v.style+=t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,d,b),"fillColor=#000000;strokeColor=none;opacity=30;");e.vertex=!0;v.insert(e);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",new mxGeometry(0,0,.95*d,.95*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a);p=new mxCell("",
new mxGeometry(.05*d,.05*b,.95*d,.95*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Text);p.value=k(a.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Text);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,.2*d,b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Number);e.value=k(a.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+=
"shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==f.Class?v.value=k(a.Text):"VSMProductionControlBlock"==f.Class&&(v.value=k(a.Resources));v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+K(a)+I(a)+J(a)+ba(a)+ka(a)+la(a)+ma(a)+na(a)+Na(a);"VSMDedicatedProcessBlock"==f.Class&&(e=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),e.geometry.relative=!0,e.geometry.offset=new mxPoint(4,-13),e.vertex=!0,v.insert(e),e.style+=h(a,c)+t(a,
c)+r(a,c)+u(a)+q(a));z=new mxCell("",new mxGeometry(0,0,d,15),"strokeColor=none;fillColor=none;part=1;");z.vertex=!0;v.insert(z);z.value=k(a.Title);z.style+=n(a.Title);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=k(a.Text);v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+K(a)+I(a)+J(a)+ba(a)+ka(a)+la(a)+ma(a)+La(a)+na(a);z=new mxCell("",new mxGeometry(.1*d,.3*b,.8*d,.6*b),"part=1;");z.vertex=!0;v.insert(z);z.value=
k(a.Resource);z.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Resource);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+K(a)+I(a)+J(a)+ba(a)+ka(a)+la(a)+ma(a)+na(a);v.value=k(a.Text);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";var aa=b,wa=parseInt(a.Cells),M=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+"part=1;";0<wa&&(aa/=wa);U=[];N=[];for(g=1;g<=wa;g++)U[g]=
new mxCell("",new mxGeometry(0,(g-1)*aa,d,aa),M),U[g].vertex=!0,v.insert(U[g]),U[g].value=k(a["cell_"+g]),U[g].style+=n(a["cell_"+g]);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+K(a)+I(a)+J(a)+ba(a)+ka(a)+la(a)+La(a)+ma(a)+na(a);v.value=k(a.Text);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;"+t(a,c);aa=b;wa=parseInt(a.Cells);M=h(a,c)+r(a,c)+q(a)+"part=1;fillColor=none;";
0<wa&&(aa/=wa);U=[];pa=[];for(g=1;g<=wa;g++)U[g]=new mxCell("",new mxGeometry(.5*d,(g-1)*aa,.5*d,aa),"shape=partialRectangle;left=0;"+M),U[g].vertex=!0,v.insert(U[g]),pa[g]=new mxCell("",new mxGeometry(0,(g-1)*aa,d,aa),"strokeColor=none;fillColor=none;part=1;"),pa[g].vertex=!0,v.insert(pa[g]),pa[g].value=k(a["cell_"+g]),pa[g].style+=n(a["cell_"+g]);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+=
"shape=ellipse;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.17*d,.2*b,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+q(a);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";M="shape=card;size=18;flipH=1;part=1;"+h(a,c)+t(a,c)+r(a,c)+q(a);e=new mxCell("",new mxGeometry(.1*d,0,.9*d,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");
e.vertex=!0;v.insert(e);e.style+=M;p=new mxCell("",new mxGeometry(.05*d,.1*b,.9*d,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");p.vertex=!0;v.insert(p);p.style+=M;var F=new mxCell("",new mxGeometry(0,.2*b,.9*d,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");F.vertex=!0;v.insert(F);F.style+=M+n(a);F.value=k(a.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";
a.Spotfleet?(e=new mxCell("",new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):
a.Beanstalk?(e=new mxCell("",new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):
a.EC2?(e=new mxCell("",new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.Subnet?(e=
new mxCell("",new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.VPC?(e=new mxCell("",
new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.AWS?(e=new mxCell("",
new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.Corporate?(e=new mxCell("",new mxGeometry(0,
0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+
h(a,c)+n(a.Title)+y(a)+q(a),v.value=k(a.Title));break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";var D=new mxCell("",new mxGeometry(.25*d,.25*b,.5*d,.5*b),"html=1;shape=ellipse;perimeter=ellipsePerimeter;strokeColor=#29AAE1;strokeWidth=2;");D.vertex=!0;v.insert(D);var G=[D];D.style+=t(a,c);var B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");B.geometry.relative=!0;B.edge=!0;Ka(.5*d,0,B,l,m,
G,v,D);Ka(.855*d,.145*b,B,l,m,G,v,D);Ka(d,.5*b,B,l,m,G,v,D);Ka(.855*d,.855*b,B,l,m,G,v,D);Ka(.5*d,b,B,l,m,G,v,D);Ka(.145*d,.855*b,B,l,m,G,v,D);Ka(0,.5*b,B,l,m,G,v,D);Ka(.145*d,.145*b,B,l,m,G,v,D);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";D=new mxCell("",new mxGeometry(0,.5*b-10,d,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");D.vertex=!0;v.insert(D);
G=[D];B=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");B.geometry.relative=!0;B.edge=!0;for(var G=[D],Db=d/a.NumTopNodes,g=0;g<a.NumTopNodes;g++)Ka(.5*Db+g*Db,0,B,l,m,G,v,D);Db=d/a.NumBottomNodes;for(g=0;g<a.NumBottomNodes;g++)Ka(.5*Db+g*Db,b,B,l,m,G,v,D);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a);v.value=k(a.Title);a.ToggleCharge&&(v.style+="flipV=1;");
break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);"EIMessageChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-d,0)):"EIDatatypeChannelBlock"==f.Class?
(e=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-d,0)):"EIInvalidMessageChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-d,0)):"EIDeadLetterChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),e.geometry.offset=
new mxPoint(.45*-d,0)):"EIGuaranteedDeliveryBlock"==f.Class&&(e=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(-10,-7));e.geometry.relative=!0;e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a);B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");B.geometry.relative=!0;B.edge=!0;Q(.15*d,.25*b,.85*d,.25*b,B,l,m,G,v,D);break;case "EIChannelAdapterBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,.07*b,.21*d,.86*b),"fillColor=#FFFF33;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a)+y(a);p=new mxCell("",new mxGeometry(.26*d,.09*b,.2*d,.82*b),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+r(a,c)+q(a)+y(a);F=new mxCell("",new mxGeometry(1,.5,.35*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
F.geometry.relative=!0;F.geometry.offset=new mxPoint(.4*-d,-10);F.vertex=!0;v.insert(F);F.style+=h(a,c)+r(a,c)+q(a)+y(a);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");x.geometry.relative=!0;x.edge=!0;e.insertEdge(x,!0);p.insertEdge(x,!1);x.style+=h(a,c);l.push(m.addCell(x,null,null,null,null));w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");
w.geometry.relative=!0;w.edge=!0;p.insertEdge(w,!0);F.insertEdge(w,!1);l.push(m.addCell(w,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);for(var Eb=a.Messages,Vb=(b-17)/
Eb,p=[],B=[],g=0;g<Eb;g++){var Fb=Vb*(g+1)-3;p[g]=new mxCell("",new mxGeometry(d-20,Fb,20,20),"part=1;");p[g].vertex=!0;v.insert(p[g]);p[g].style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a);switch(f.Class){case "EIMessageBlock":p[g].value=k(a["message_"+(g+1)]);p.style+=n(a["message_"+(g+1)]);break;case "EICommandMessageBlock":p[g].value="C";p[g].style+="fontStyle=1;fontSize=10;";break;case "EIDocumentMessageBlock":p[g].value="D";p[g].style+="fontStyle=1;fontSize=10;";break;case "EIEventMessageBlock":p[g].value=
"E",p[g].style+="fontStyle=1;fontSize=10;"}B[g]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");B[g].geometry.relative=!0;B[g].edge=!0;e.insertEdge(B[g],!1);p[g].insertEdge(B[g],!0);B[g].style+=h(a,c)+q(a);var Qa=[];Qa.push(new mxPoint(ra+8.5,sa+Fb+10));B[g].geometry.points=Qa;l.push(m.addCell(B[g],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,
c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.45*d,.25*b,.3*d,.5*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a);B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");B.geometry.relative=!0;B.edge=!0;Q(0,.5*b,.4*d,.5*b,B,l,m,G,v,D);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+
t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);var x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;Q(.05*d,.5*b,.85*d,.5*b,x,l,m,G,v,D);var w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");w.geometry.relative=!0;w.edge=!0;Q(.05*d,.5*b,.85*d,.15*
b,w,l,m,G,v,D);var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");E.geometry.relative=!0;E.edge=!0;Q(.05*d,.5*b,.85*d,.85*b,E,l,m,G,v,D);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
x.geometry.relative=!0;x.edge=!0;x.style+=h(a,c);Q(.05*d,.5*b,.95*d,.5*b,x,l,m,G,v,D);w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");w.geometry.relative=!0;w.edge=!0;w.style+=h(a,c);Q(.3*d,.1*b,.3*d,.5*b,w,l,m,G,v,D);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
E.geometry.relative=!0;E.edge=!0;E.style+=h(a,c);Q(.7*d,.1*b,.7*d,.5*b,E,l,m,G,v,D);var R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");R.geometry.relative=!0;R.edge=!0;R.style+=h(a,c);Q(.5*d,.5*b,.5*d,.9*b,R,l,m,G,v,D);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);
e=new mxCell("",new mxGeometry(.2*d,.21*b,.16*d,.24*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;Q(.45*d,.33*b,.8*d,.33*b,x,l,m,G,v,D);p=new mxCell("",new mxGeometry(.64*d,.55*b,.16*d,.24*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+r(a,c)+q(a);w=new mxCell("",new mxGeometry(0,0,0,0),
"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");w.geometry.relative=!0;w.edge=!0;Q(.55*d,.67*b,.2*d,.67*b,w,l,m,G,v,D);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.1*d,.15*b,.8*d,.7*b),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a);break;
case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.04*d,.06*b,.18*d,.28*b),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);p=new mxCell("",new mxGeometry(.2*d,.56*b,.2*d,.32*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+r(a,c)+q(a)+y(a);p.value="A";p.style+="fontStyle=1;fontSize=10;";x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");
x.geometry.relative=!0;x.edge=!0;e.insertEdge(x,!1);p.insertEdge(x,!0);x.style+=h(a,c)+q(a);Qa=[];Qa.push(new mxPoint(ra+.13*d,sa+.72*b));x.geometry.points=Qa;l.push(m.addCell(x,null,null,null,null));F=new mxCell("",new mxGeometry(.6*d,.06*b,.18*d,.28*b),"shape=ellipse;fillColor=#808080;part=1;");F.vertex=!0;v.insert(F);F.style+=h(a,c)+q(a);P=new mxCell("",new mxGeometry(.76*d,.56*b,.2*d,.32*b),"part=1;");P.vertex=!0;v.insert(P);P.style+=h(a,c)+r(a,c)+q(a)+y(a);P.value="B";P.style+="fontStyle=1;fontSize=10;";
w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");w.geometry.relative=!0;w.edge=!0;F.insertEdge(w,!1);P.insertEdge(w,!0);w.style+=h(a,c)+q(a);var cc=[];cc.push(new mxPoint(ra+.69*d,sa+.72*b));w.geometry.points=cc;l.push(m.addCell(w,null,null,null,null));E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");E.geometry.relative=!0;E.edge=!0;e.insertEdge(E,
!1);F.insertEdge(E,!0);E.style+=h(a,c)+q(a);l.push(m.addCell(E,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("1",new mxGeometry(.2*d,.4*b,.1*d,.19*b),"fontStyle=1;fontSize=10;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);p=new mxCell("2",new mxGeometry(.45*d,.4*b,.1*d,.19*b),"fontStyle=1;fontSize=10;part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+
q(a);F=new mxCell("3",new mxGeometry(.7*d,.4*b,.1*d,.19*b),"fontStyle=1;fontSize=10;part=1;");F.vertex=!0;v.insert(F);F.style+=h(a,c)+q(a);x=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");e.insertEdge(x,!1);p.insertEdge(x,!0);x.geometry.points=[new mxPoint(ra+.375*d,sa+.15*b)];x.geometry.relative=!0;x.edge=!0;x.style+=h(a,c)+q(a);l.push(m.addCell(x,null,null,null,null));w=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
p.insertEdge(w,!1);F.insertEdge(w,!0);w.geometry.points=[new mxPoint(ra+.675*d,sa+.15*b)];w.geometry.relative=!0;w.edge=!0;w.style+=h(a,c)+q(a);l.push(m.addCell(w,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.3*d,.2*b,.4*d,.6*b),"shape=mxgraph.ios7.icons.clock;flipH=1;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);break;case "EIMessageBrokerBlock":v.style+=
"strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+K(a)+I(a)+J(a)+ba(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.38*d,.42*b,.24*d,.16*b),"part=1;fillColor=#aefe7d;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);p=new mxCell("",new mxGeometry(.38*d,0,.24*d,.16*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=t(a,c)+h(a,c)+q(a);F=new mxCell("",new mxGeometry(.76*d,.23*b,.24*d,.16*b),"part=1;");F.vertex=!0;v.insert(F);F.style=p.style;var P=new mxCell("",new mxGeometry(.76*
d,.61*b,.24*d,.16*b),"part=1;");P.vertex=!0;v.insert(P);P.style=p.style;var Mb=new mxCell("",new mxGeometry(.38*d,.84*b,.24*d,.16*b),"part=1;");Mb.vertex=!0;v.insert(Mb);Mb.style=p.style;var Nb=new mxCell("",new mxGeometry(0,.61*b,.24*d,.16*b),"part=1;");Nb.vertex=!0;v.insert(Nb);Nb.style=p.style;var Ob=new mxCell("",new mxGeometry(0,.23*b,.24*d,.16*b),"part=1;");Ob.vertex=!0;v.insert(Ob);Ob.style=p.style;x=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(x,!1);p.insertEdge(x,
!0);x.edge=!0;x.style+=h(a,c)+q(a);l.push(m.addCell(x,null,null,null,null));w=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(w,!1);F.insertEdge(w,!0);w.edge=!0;w.style+=h(a,c)+q(a);l.push(m.addCell(w,null,null,null,null));E=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(E,!1);P.insertEdge(E,!0);E.edge=!0;E.style+=h(a,c)+q(a);l.push(m.addCell(E,null,null,null,null));R=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(R,
!1);Mb.insertEdge(R,!0);R.edge=!0;R.style+=h(a,c)+q(a);l.push(m.addCell(R,null,null,null,null));var hb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(hb,!1);Nb.insertEdge(hb,!0);hb.edge=!0;hb.style+=h(a,c)+q(a);l.push(m.addCell(hb,null,null,null,null));var ib=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(ib,!1);Ob.insertEdge(ib,!0);ib.edge=!0;ib.style+=h(a,c)+q(a);l.push(m.addCell(ib,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;Q(.05*d,.5*b,.6*d,.25*b,x,l,m,G,v,D);w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");w.geometry.relative=!0;w.edge=!0;Q(.05*d,.5*b,.6*d,.75*b,w,l,m,G,v,D);e=new mxCell("",new mxGeometry(.7*
d,.1*b,.15*d,.32*b),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.25*d,.25*b,.5*d,.5*b),"shape=mxgraph.eip.control_bus;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+
n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);F=new mxCell("",new mxGeometry(d-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");F.vertex=!0;v.insert(F);F.style+=h(a,c)+q(a);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");E.geometry.relative=!0;E.edge=!0;e.insertEdge(E,!1);F.insertEdge(E,
!0);E.style+=h(a,c)+q(a);E.geometry.points=[new mxPoint(ra+8.5,sa+40)];l.push(m.addCell(E,null,null,null,null));P=new mxCell("",new mxGeometry(d-45,b-20,20,20),"part=1;");P.vertex=!0;v.insert(P);P.value=k(a.message_0);P.style+=n(a.message_0);P.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a);R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");R.geometry.relative=!0;R.edge=!0;e.insertEdge(R,!1);P.insertEdge(R,!0);R.style+=h(a,
c)+q(a);R.geometry.points=[new mxPoint(ra+8.5,sa+b-10)];l.push(m.addCell(R,null,null,null,null));Eb=a.HistoryMessages;Vb=(b-75)/Eb;p=[];B=[];for(g=0;g<Eb;g++)Fb=Vb*(g+1)+30,p[g]=new mxCell("",new mxGeometry(d-20,Fb,20,20),"part=1;"),p[g].vertex=!0,p[g].value=k(a["message_"+(g+1)]),p.style+=n(a["message_"+(g+1)]),v.insert(p[g]),p[g].style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a),B[g]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),
B[g].geometry.relative=!0,B[g].edge=!0,F.insertEdge(B[g],!1),p[g].insertEdge(B[g],!0),B[g].style+=h(a,c)+q(a),Qa=[],Qa.push(new mxPoint(ra+d-30,sa+Fb+10)),B[g].geometry.points=Qa,l.push(m.addCell(B[g],null,null,null,null));break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;"+h(a,c)+r(a,c)+u(a)+q(a)+ia(a,c,v);y(a);0>a.DoorAngle&&(v.style+="flipV=1;");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;"+h(a,c)+r(a,c)+u(a)+q(a)+ia(a,c,v)+y(a);0<a.DoorAngle&&(v.style+=
"flipV=1;");break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;"+ia(a,c,v);e=new mxCell("",new mxGeometry(0,0,d,.25*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a);for(var p=[],dc=.02*d,Wb=(d-2*dc)/a.LightCount,ec=.8*Wb,g=0;g<a.LightCount;g++)p[g]=new mxCell("",new mxGeometry(dc+Wb*g+(Wb-ec)/2,.25*b,ec,.75*b),"part=1;shape=ellipse;"),p[g].vertex=!0,v.insert(p[g]),p[g].style+=h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a);break;case "fpRestroomSinks":v.style+=
"strokeColor=none;fillColor=none;"+ia(a,c,v);for(var e=[],fc=d/a.SinkCount,g=0;g<a.SinkCount;g++)e[g]=new mxCell("",new mxGeometry(fc*g,0,fc,b),"part=1;shape=mxgraph.floorplan.sink_2;"),e[g].vertex=!0,v.insert(e[g]),e[g].style+=h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var ea=.1*d/a.StallCount,e=new mxCell("",new mxGeometry(0,0,ea,b),"fillColor=#000000;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);for(var ja=(d-ea)/a.StallCount,
Xb=[],Gb=[],Hb=[],Ib=[],A=h(a,c),A=""==A?"#000000;":A.replace("stokreColor=",""),Qb="part=1;fillColor="+A+h(a,c)+q(a),Yb=t(a,c)+h(a,c)+q(a),g=0;g<a.StallCount;g++)Xb[g]=new mxCell("",new mxGeometry((g+1)*ja,0,ea,b),Qb),Xb[g].vertex=!0,v.insert(Xb[g]),Hb[g]=new mxCell("",new mxGeometry(ea+g*ja+.05*(ja-ea),b-.92*(ja-ea),.9*(ja-ea),.92*(ja-ea)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Hb[g].vertex=!0,v.insert(Hb[g]),Hb[g].style+=Yb,Gb[g]=new mxCell("",new mxGeometry(ea+g*ja+.2*(ja-ea),0,
.6*(ja-ea),.8*(ja-ea)),"shape=mxgraph.floorplan.toilet;part=1;"),Gb[g].vertex=!0,v.insert(Gb[g]),Gb[g].style+=Yb,Ib[g]=new mxCell("",new mxGeometry(ea+g*ja,.42*b,.15*(ja-ea),.12*(ja-ea)),"part=1;"),Ib[g].vertex=!0,v.insert(Ib[g]),Ib[g].style+=Yb;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Pb="edgeStyle=none;endArrow=none;part=1;"+h(a,c)+q(a)+r(a,c)+u(a)+y(a),A=h(a,c),A=""==A?"#000000;":A.replace("stokreColor=",""),Zb="shape=triangle;part=1;fillColor="+A+h(a,c)+q(a)+r(a,
c)+u(a)+y(a),x=new mxCell("",new mxGeometry(0,0,0,0),Pb);x.geometry.relative=!0;x.edge=!0;Q(0,.5*b,.65*d,.5*b,x,l,m,G,v,D);for(var Ra=b/a.numLines,w=[],Va=[],g=0;g<a.numLines;g++)w[g]=new mxCell("",new mxGeometry(0,0,0,0),Pb),w[g].geometry.relative=!0,w[g].edge=!0,Q(.65*d,.5*b,.96*d,(g+.5)*Ra,w[g],l,m,G,v,D),Va[g]=new mxCell("",new mxGeometry(.95*d,(g+.2)*Ra,.05*d,.6*Ra),Zb),Va[g].vertex=!0,v.insert(Va[g]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";Pb="edgeStyle=none;endArrow=none;part=1;"+
h(a,c)+q(a)+r(a,c)+u(a)+y(a);A=h(a,c);A=""==A?"#000000;":A.replace("stokreColor=","");Zb="shape=triangle;part=1;fillColor="+A+h(a,c)+q(a)+r(a,c)+u(a)+y(a);Ra=b/a.numLines;w=[];Va=[];for(g=0;g<a.numLines;g++)w[g]=new mxCell("",new mxGeometry(0,0,0,0),Pb),w[g].geometry.relative=!0,w[g].edge=!0,Q(0,(g+.5)*Ra,.96*d,(g+.5)*Ra,w[g],l,m,G,v,D),Va[g]=new mxCell("",new mxGeometry(.95*d,(g+.2)*Ra,.05*d,.6*Ra),Zb),Va[g].vertex=!0,v.insert(Va[g]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);switch(a.vesselType){case 1:v.style+="shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;size=0.10;direction=south;"}break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);1==a.peakedRoof&&0==a.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==a.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");
break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);v.style=0==a.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;"+ia(a,c,v)+n(a);v.value=k(a.Text);M=h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a);e=new mxCell("",new mxGeometry(0,.2*b,d,.6*b),"part=1;shape=trapezoid;direction=south;");
e.vertex=!0;v.insert(e);e.style+=M;M+="endSize=4;endArrow=block;endFill=1;";0==a.compressorType?(x=new mxCell("",new mxGeometry(0,0,0,0),""),x.geometry.relative=!0,x.edge=!0,x.style+=M,Q(0,0,0,.2*b,x,l,m,G,v,D),w=new mxCell("",new mxGeometry(0,0,0,0),""),w.geometry.relative=!0,w.edge=!0,w.style+=M,Q(d,.67*b,d,b,w,l,m,G,v,D)):(e.style+="flipH=1;",x=new mxCell("",new mxGeometry(0,0,0,0),""),x.geometry.relative=!0,x.edge=!0,x.style+=M,Q(0,0,0,.33*b,x,l,m,G,v,D),w=new mxCell("",new mxGeometry(0,0,0,0),
""),w.geometry.relative=!0,w.edge=!0,w.style+=M,Q(d,.8*b,d,b,w,l,m,G,v,D));1==a.centerLineType&&(E=new mxCell("",new mxGeometry(0,0,0,0),""),E.geometry.relative=!0,E.edge=!0,E.style+=M,Q(.2*d,.5*b,.8*d,.5*b,E,l,m,G,v,D));break;case "PEMotorDrivenTurbineBlock":M=h(a,c)+t(a,c)+q(a)+r(a,c)+y(a);v.style+="shape=ellipse;"+u(a)+ia(a,c,v)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.2*d,.2*b,.6*d,.6*b),"part=1;shape=trapezoid;direction=south;");e.vertex=!0;v.insert(e);e.style+=M;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":M=
r(a,c);v.style+=M+h(a,c)+t(a,c)+q(a)+y(a)+u(a)+ia(a,c,v);switch(f.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+=
"shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==f.Class||"PESharedIndicator2Block"==f.Class?(e=new mxCell("",new mxGeometry(0,0,d,.5*d),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=M+n(a.TopText),e.value=k(a.TopText),p=new mxCell("",new mxGeometry(0,.5*d,d,.5*d),"part=1;strokeColor=none;fillColor=none;")):(e=new mxCell("",new mxGeometry(0,0,d,.5*b),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=M+n(a.TopText),e.value=k(a.TopText),
p=new mxCell("",new mxGeometry(0,.5*b,d,.5*b),"part=1;strokeColor=none;fillColor=none;"));p.vertex=!0;v.insert(p);p.style+=M;n(a.BotText);p.value=k(a.BotText);switch(a.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var $b=!1;"PEPoweredValveBlock"==
f.Class?1!=a.poweredHandOperated&&($b=!0):1!=a.handOperated&&($b=!0);if($b){var a=Sa(f).Properties,fa=a.BoundingBox,Rb=fa.h;fa.h="PEAngleValveBlock"==f.Class||"PEAngleGlobeValveBlock"==f.Class?.7*fa.h:.6*fa.h;v=new mxCell("",new mxGeometry(Math.round(.6*fa.x+0),Math.round(.6*(fa.y+Rb-fa.h)+0),Math.round(.6*fa.w),Math.round(.6*fa.h)),"");v.vertex=!0;Tb(v,f)}if("PEPoweredValveBlock"==f.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;"+r(a,c)+h(a,c)+t(a,
c)+q(a)+y(a)+u(a)+ia(a,c,v),1==a.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",e=new mxCell("",new mxGeometry(.325*d,0,.35*d,.35*b),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),e.vertex=!0,v.insert(e),e.style+=M+r(a,c)+h(a,c)+t(a,c)+q(a)+y(a)+u(a)+"fontSize=6;"+I(a.PoweredText)+J(a.PoweredText)+ba(a.PoweredText)+ka(a.PoweredText)+la(a.PoweredText)+ma(a.PoweredText)+na(a.PoweredText)+Na(a.PoweredText),e.value=k(a.PoweredText)):v.style+="valveType=gate;";else{v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;"+r(a,c)+h(a,c)+t(a,c)+q(a)+y(a)+u(a)+ia(a,c,v)+K(a)+I(a)+J(a)+ba(a);v.value=k(a.Text);switch(f.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==a.handOperated&&(v.style+="actuator=man;")}}return v}var gc=["GSDFDProcessBlock",
"GSDFDProcessBlock2","RoundedRectangleContainerBlock","UI2ButtonBlock","UMLStateBlock"],hc=["ProcessBlock","UMLActivationBlock"],Qb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8 UMLEndBlock DefaultTextBlockNew iOSButton".split(" "),kc="AWSAndroidBlock3 AWSiOSBlock3 AWSJavaBlock3 AWSJavaScript AWSNetBlock3 AWSNodeJSBlock3 AWSPHPBlock3 AWSPythonBlock3 AWSRubyBlock3 AWSXamarin AWSCLIBlock3 AWSEclipseToolkitBlock3 AWSVisualStudioToolkitBlock3 AWSWindowsPowershellToolkitBlock3 DefaultTextBlock RectangleContainerBlock UMLStartBlock UMLEndBlock DefaultTextBlockNew UMLHForkJoinBlock iOSButton".split(" "),
Rb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8".split(" "),ic=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],jc=["fpDoor"],jb={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"},
Wa={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",
ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon",DataBlock:"shape=parallelogram",DataBlockNew:"shape=parallelogram",DatabaseBlock:"shape=cylinder",DirectAccessStorageBlock:"shape=mxgraph.flowchart.direct_data",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",MergeBlock:"triangle;direction=south",ConnectorBlock:"ellipse",
OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"shape=mxgraph.flowchart.annotation_1",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"fillColor=none;container=1",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24",
CircleContainerBlock:"shape=ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",IsoscelesTriangleBlock:"triangle;direction=north",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon",OctagonBlock:"shape=mxgraph.basic.octagon",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",
DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",ShapeDiamondBlock:"rhombus",UI2HotspotBlock:"opacity=50;strokeColor=none",AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape",AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",
AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up",AndroidIconExpand:"shape=mxgraph.ios7.misc.down",
AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged",iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",
iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",iOSButton:"fillColor=none;strokeColor=none;",iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust",iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",
iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",iOSTimePicker:"mxCompositeShape",iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape",iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",
iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"shape=ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",MindMapDiamondBlock:"shape=rhombus",MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",MindMapHexagonBlock:"shape=hexagon",MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",
ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",SMPage:"mxCompositeShape",SMHome:"mxCompositeShape",SMPrint:"mxCompositeShape",SMSearch:"mxCompositeShape",SMSettings:"mxCompositeShape",SMSitemap:"mxCompositeShape",SMSuccess:"mxCompositeShape",SMVideo:"mxCompositeShape",SMAudio:"mxCompositeShape",SMCalendar:"mxCompositeShape",SMChart:"mxCompositeShape",SMCloud:"mxCompositeShape",SMDocument:"mxCompositeShape",SMForm:"mxCompositeShape",SMGame:"mxCompositeShape",
SMUpload:"mxCompositeShape",UMLClassBlock:"",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",UMLPackageBlock:"shape=folder;tabPosition=left",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"shape=ellipse",UMLCircleContainerBlock:"shape=ellipse;container=1",UMLRectangleContainerBlock:"container=1",
UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLStartBlock:"shape=ellipse;fillColor=#000000",UMLStateBlock:"rounded=1;arcSize=20",UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"shape=ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff",
UMLObjectBlock:"",UMLSendSignalBlock:"shape=mxgraph.sysml.sendSigAct",UMLReceiveSignalBlock:"shape=mxgraph.sysml.accEvent;flipH=1",UMLAcceptTimeEventActionBlock:"shape=mxgraph.sysml.timeEvent",UMLOffPageLinkBlock:"shape=mxgraph.sysml.sendSigAct;direction=south",UMLMultiLanePoolBlock:"mxCompositeShape",UMLMultiLanePoolRotatedBlock:"mxCompositeShape",UMLMultidimensionalSwimlane:"mxCompositeShape",UMLActivationBlock:"",UMLDeletionBlock:"shape=mxgraph.sysml.x;strokeWidth=4",UMLSeqEntityBlock:"shape=mxgraph.electrical.radio.microphone_1;direction=north",
UMLComponentBlock:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1",UMLComponentInterfaceBlock:"shape=ellipse",UMLComponentBoxBlock:"mxCompositeShape",UMLProvidedInterfaceBlock:"shape=lollipop;direction=south",UMLRequiredInterfaceBlock:"shape=requires;direction=north",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"shape=ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1",
BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",BPMNChoreography:"mxCompositeShape",BPMNConversation:"mxCompositeShape",BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"shape=ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",
GSDFDProcessBlock:"shape=swimlane;rounded=1;arcSize=10",GSDFDProcessBlock2:"rounded=1;arcSize=10;",GSDFDDataStoreBlock:"mxCompositeShape",GSDFDDataStoreBlock2:"shape=partialRectangle;right=0",OrgBlock:"",DefaultTableBlock:"mxCompositeShape",VSMCustomerSupplierBlock:"shape=mxgraph.lean_mapping.outside_sources",VSMDedicatedProcessBlock:"mxCompositeShape",VSMSharedProcessBlock:"mxCompositeShape",VSMWorkcellBlock:"mxCompositeShape",VSMDatacellBlock:"mxCompositeShape",VSMInventoryBlock:"mxCompositeShape",
VSMSupermarketBlock:"mxCompositeShape",VSMPhysicalPullBlock:"shape=mxgraph.lean_mapping.physical_pull;direction=south",VSMFIFOLaneBlock:"mxCompositeShape",VSMSafetyBufferStockBlock:"mxCompositeShape",VSMExternalShipmentAirplaneBlock:"shape=mxgraph.lean_mapping.airplane_7",VSMExternalShipmentForkliftBlock:"shape=mxgraph.lean_mapping.move_by_forklift",VSMExternalShipmentTruckBlock:"shape=mxgraph.lean_mapping.truck_shipment",VSMExternalShipmentBoatBlock:"shape=mxgraph.lean_mapping.boat_shipment",VSMProductionControlBlock:"mxCompositeShape",
VSMOtherInformationBlock:"",VSMSequencedPullBallBlock:"shape=mxgraph.lean_mapping.sequenced_pull_ball",VSMMRPERPBlock:"shape=mxgraph.lean_mapping.mrp_erp;whiteSpace=wrap",VSMLoadLevelingBlock:"shape=mxgraph.lean_mapping.load_leveling",VSMGoSeeBlock:"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1",VSMGoSeeProductionBlock:"mxCompositeShape",VSMVerbalInfoBlock:"shape=mxgraph.lean_mapping.verbal",VSMKaizenBurstBlock:"shape=mxgraph.lean_mapping.kaizen_lightening_burst",VSMOperatorBlock:"shape=mxgraph.lean_mapping.operator;flipV=1",
VSMTimelineBlock:"mxCompositeShape",VSMQualityProblemBlock:"shape=mxgraph.lean_mapping.quality_problem",VSMProductionKanbanSingleBlock:"shape=card;size=18;flipH=1;",VSMProductionKanbanBatchBlock:"mxCompositeShape",VSMWithdrawalKanbanBlock:"shape=mxgraph.lean_mapping.withdrawal_kanban",VSMSignalKanbanBlock:"shape=triangle;direction=south",VSMKanbanPostBlock:"shape=mxgraph.lean_mapping.kanban_post",VSMShipmentArrow:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.13",VSMPushArrow:"shape=mxgraph.lean_mapping.push_arrow",
AWSElasticComputeCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.ec2",AWSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.instance",AWSInstancesBlock2:"strokeColor=none;shape=mxgraph.aws3.instances",AWSAMIBlock2:"strokeColor=none;shape=mxgraph.aws3.ami",AWSDBonInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.db_on_instance",AWSInstanceCloudWatchBlock2:"strokeColor=none;shape=mxgraph.aws3.instance_with_cloudwatch",AWSElasticIPBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_ip",AWSHDFSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.hdfs_cluster",
AWSAutoScalingBlock2:"strokeColor=none;shape=mxgraph.aws3.auto_scaling",AWSEC2OptimizedInstance2:"strokeColor=none;shape=mxgraph.aws3.optimized_instance","AWSAmazonEC2(Spotinstance)":"strokeColor=none;shape=mxgraph.aws3.spot_instance",AWSAmazonECR:"strokeColor=none;shape=mxgraph.aws3.ecr",AWSAmazonECS:"strokeColor=none;shape=mxgraph.aws3.ecs",AWSLambda2:"strokeColor=none;shape=mxgraph.aws3.lambda",AWSElasticLoadBalancing:"strokeColor=none;shape=mxgraph.aws3.elastic_load_balancing",AWSElasticLoadBlock2:"strokeColor=none;shape=mxgraph.aws3.classic_load_balancer",
AWSDirectConnectBlock3:"strokeColor=none;shape=mxgraph.aws3.direct_connect",AWSElasticNetworkBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_network_interface",AWSRoute53Block2:"strokeColor=none;shape=mxgraph.aws3.route_53",AWSHostedZoneBlock2:"strokeColor=none;shape=mxgraph.aws3.hosted_zone;fontColor=#FFFFFF;fontStyle=1",AWSRouteTableBlock2:"strokeColor=none;shape=mxgraph.aws3.route_table",AWSVPCBlock2:"strokeColor=none;shape=mxgraph.aws3.vpc",AWSVPNConnectionBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_connection",
AWSVPNGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_gateway",AWSCustomerGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.customer_gateway",AWSCustomerGatewayBlock3:"strokeColor=none;shape=mxgraph.aws3.customer_gateway",AWSInternetGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.internet_gateway",AWSRouterBlock2:"strokeColor=none;shape=mxgraph.aws3.router",AWSRouterBlock3:"strokeColor=none;shape=mxgraph.aws3.router","AWSAmazonVPC(endpoints)":"strokeColor=none;shape=mxgraph.aws3.endpoints",
"AWSAmazonVPC(flowlogs)":"strokeColor=none;shape=mxgraph.aws3.flow_logs","AWSAmazonVPC(VPCNATgateway)":"strokeColor=none;shape=mxgraph.aws3.vpc_nat_gateway",AWSVPCPeering3:"strokeColor=none;shape=mxgraph.aws3.vpc_peering",AWSSimpleStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.s3",AWSBucketBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket;fontStyle=1;fontColor=#ffffff",AWSBuckethWithObjectsBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket_with_objects",AWSObjectBlock2:"strokeColor=none;shape=mxgraph.aws3.object;fontStyle=1;fontColor=#ffffff",
AWSImportExportBlock2:"strokeColor=none;shape=mxgraph.aws3.import_export",AWSStorageGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.storage_gateway",AWSElasticBlockStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSVolumeBlock3:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSSnapshotBlock2:"strokeColor=none;shape=mxgraph.aws3.snapshot;fontStyle=1;fontColor=#ffffff",AWSGlacierArchiveBlock3:"strokeColor=none;shape=mxgraph.aws3.archive",
AWSGlacierVaultBlock3:"strokeColor=none;shape=mxgraph.aws3.vault",AWSAmazonEFS:"strokeColor=none;shape=mxgraph.aws3.efs",AWSGlacierBlock2:"strokeColor=none;shape=mxgraph.aws3.glacier",AWSAWSImportExportSnowball:"strokeColor=none;shape=mxgraph.aws3.snowball",AWSStorageGatewayCachedVolumn2:"strokeColor=none;shape=mxgraph.aws3.cached_volume","AWSStorageGatewayNon-CachedVolumn2":"strokeColor=none;shape=mxgraph.aws3.non_cached_volume",AWSStorageGatewayVirtualTapeLibrary2:"strokeColor=none;shape=mxgraph.aws3.virtual_tape_library",
AWSCloudFrontBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudfront",AWSDownloadDistBlock2:"strokeColor=none;shape=mxgraph.aws3.download_distribution",AWSStreamingBlock2:"strokeColor=none;shape=mxgraph.aws3.streaming_distribution",AWSEdgeLocationBlock2:"strokeColor=none;shape=mxgraph.aws3.edge_location",AWSItemBlock2:"strokeColor=none;shape=mxgraph.aws3.item",AWSItemsBlock2:"strokeColor=none;shape=mxgraph.aws3.items",AWSAttributeBlock2:"strokeColor=none;shape=mxgraph.aws3.attribute",AWSAttributesBlock2:"strokeColor=none;shape=mxgraph.aws3.attributes",
AWSRDBSBlock2:"strokeColor=none;shape=mxgraph.aws3.rds",AWSRDSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance",AWSRDSStandbyBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_standby_multi_az",AWSRDSInstanceReadBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_read_replica",AWSOracleDBBlock2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance",AWSMySQLDBBlock2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance",AWSDynamoDBBlock2:"strokeColor=none;shape=mxgraph.aws3.dynamo_db",
AWSSimpleDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb",AWSSimpleDatabaseDomainBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb_domain",AWSTableBlock2:"strokeColor=none;shape=mxgraph.aws3.table",AWSAmazonRedShiftBlock3:"strokeColor=none;shape=mxgraph.aws3.redshift",AWSElastiCacheNodeBlock2:"strokeColor=none;shape=mxgraph.aws3.cache_node",AWSElastiCacheBlock2:"strokeColor=none;shape=mxgraph.aws3.elasticache",AWSDynamoDBGlobalSecondaryIndexes2:"strokeColor=none;shape=mxgraph.aws3.global_secondary_index",
AWSAmazonElastiCacheMemcache2:"strokeColor=none;shape=mxgraph.aws3.memcached",AWSAmazonElastiCacheRedis2:"strokeColor=none;shape=mxgraph.aws3.redis",AWSAmazonRDSMSSQLInstance2:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance_2",AWSMSSQLDBBlock3:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance",AWSAmazonRDSMySQLDBInstance2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance_2",AWSAmazonRDSOracleDBInstance2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance_2",AWSRDSReplicasetswithPIOP2:"strokeColor=none;shape=mxgraph.aws3.piop",
AWSAmazonRDSPostgreSQL2:"strokeColor=none;shape=mxgraph.aws3.postgre_sql_instance",AWSRDSMasterSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_master",AWSRDSSlaveSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_slave","AWSAmazonRedshift(densecomputenode)":"strokeColor=none;shape=mxgraph.aws3.dense_compute_node","AWSAmazonRedshift(densestoragenode)":"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAWSDatabaseMigrationService:"strokeColor=none;shape=mxgraph.aws3.database_migration_service",AWSACM:"strokeColor=none;shape=mxgraph.aws3.certificate_manager",
AWSAmazonInspector:"strokeColor=none;shape=mxgraph.aws3.inspector",AWSAWSCloudHSM:"strokeColor=none;shape=mxgraph.aws3.cloudhsm",AWSDirectoryService2:"strokeColor=none;shape=mxgraph.aws3.directory_service",AWSAWSKMS:"strokeColor=none;shape=mxgraph.aws3.kms",AWSAWSWAF:"strokeColor=none;shape=mxgraph.aws3.waf","AWSACM(certificate-manager)":"strokeColor=none;shape=mxgraph.aws3.certificate_manager_2",AWSSESBlock2:"strokeColor=none;shape=mxgraph.aws3.ses",AWSEmailBlock2:"strokeColor=none;shape=mxgraph.aws3.email",
AWSSNSBlock2:"strokeColor=none;shape=mxgraph.aws3.sns",AWSSQSBlock3:"strokeColor=none;shape=mxgraph.aws3.sqs",AWSQueueBlock2:"strokeColor=none;shape=mxgraph.aws3.queue",AWSMessageBlock2:"strokeColor=none;shape=mxgraph.aws3.message",AWSDeciderBlock2:"strokeColor=none;shape=mxgraph.aws3.decider",AWSSWFBlock2:"strokeColor=none;shape=mxgraph.aws3.swf",AWSWorkerBlock2:"strokeColor=none;shape=mxgraph.aws3.worker",AWSCloudSearchBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudsearch",AWSCloudSearchMetadataBlock3:"strokeColor=none;shape=mxgraph.aws3.search_documents",
AWSElasticTranscoder3:"strokeColor=none;shape=mxgraph.aws3.elastic_transcoder",AWSAmazonAPIGateway:"strokeColor=none;shape=mxgraph.aws3.api_gateway",AWSAppStream2:"strokeColor=none;shape=mxgraph.aws3.appstream",AWSCloudFormationBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudformation",AWSDataPipelineBlock3:"strokeColor=none;shape=mxgraph.aws3.data_pipeline",AWSDataPipelineBlock2:"strokeColor=none;shape=mxgraph.aws3.data_pipeline",AWSTemplageBlock2:"strokeColor=none;shape=mxgraph.aws3.template",
AWSStackBlock2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_cloudformation",AWSBeanStockBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk",AWSApplicationBlock2:"strokeColor=none;shape=mxgraph.aws3.application",AWSBeanstalkDeploymentBlock3:"strokeColor=none;shape=mxgraph.aws3.deployment",AWSIAMBlock3:"strokeColor=none;shape=mxgraph.aws3.iam",AWSIAMSTSBlock3:"strokeColor=none;shape=mxgraph.aws3.sts",AWSIAMAddonBlock2:"strokeColor=none;shape=mxgraph.aws3.add_on",AWSCloudWatchBlock3:"strokeColor=none;shape=mxgraph.aws3.cloudwatch",
AWSCloudWatchAlarmBlock2:"strokeColor=none;shape=mxgraph.aws3.alarm",AWSIAMSecurityTokenService2:"strokeColor=none;shape=mxgraph.aws3.sts_2",AWSIAMDataEncryptionKey2:"strokeColor=none;shape=mxgraph.aws3.data_encryption_key",AWSIAMEncryptedData2:"strokeColor=none;shape=mxgraph.aws3.encrypted_data","AWSAWSIAM(long-termsecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential",AWSIAMMFAToken2:"strokeColor=none;shape=mxgraph.aws3.mfa_token",AWSIAMPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions_2",
AWSIAMRoles2:"strokeColor=none;shape=mxgraph.aws3.role","AWSAWSIAM(temporarysecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential",AWSCloudTrail2:"strokeColor=none;shape=mxgraph.aws3.cloudtrail",AWSConfig2:"strokeColor=none;shape=mxgraph.aws3.config",AWSOpsWorksBlock3:"strokeColor=none;shape=mxgraph.aws3.opsworks",AWSAWSServiceCatalog:"strokeColor=none;shape=mxgraph.aws3.service_catalog",AWSTrustedAdvisor2:"strokeColor=none;shape=mxgraph.aws3.trusted_advisor",AWSOpsWorksApps2:"strokeColor=none;shape=mxgraph.aws3.apps",
AWSOpsWorksDeployments2:"strokeColor=none;shape=mxgraph.aws3.deployments",AWSOpsWorksInstances2:"strokeColor=none;shape=mxgraph.aws3.instances_2",AWSOpsWorksLayers2:"strokeColor=none;shape=mxgraph.aws3.layers",AWSOpsWorksMonitoring2:"strokeColor=none;shape=mxgraph.aws3.monitoring",AWSOpsWorksPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions",AWSOpsWorksResources2:"strokeColor=none;shape=mxgraph.aws3.resources",AWSOpsWorksStack2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_opsworks",
AWSMechanicalTurkBlock3:"strokeColor=none;shape=mxgraph.aws3.mechanical_turk",AWSHumanITBlock2:"strokeColor=none;shape=mxgraph.aws3.human_intelligence_tasks_hit",AWSAssignmentTaskBlock2:"strokeColor=none;shape=mxgraph.aws3.requester",AWSWorkersBlock2:"strokeColor=none;shape=mxgraph.aws3.users",AWSRequesterBlock2:"strokeColor=none;shape=mxgraph.aws3.assignment_task",AWSAndroidBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#96BF3D",AWSiOSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#CFCFCF",
AWSJavaBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#EE472A",AWSJavaScript:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#205E00",AWSNetBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#115193",AWSNodeJSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#8CC64F",AWSPHPBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#5A69A4",AWSPythonBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#FFD44F",AWSRubyBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#AE1F23",
AWSXamarin:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#4090D7",AWSCLIBlock3:"strokeColor=none;shape=mxgraph.aws3.cli;fillColor=#444444",AWSEclipseToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_eclipse;fillColor=#342074",AWSVisualStudioToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_visual_studio;fillColor=#53B1CB",AWSWindowsPowershellToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_windows_powershell;fillColor=#737373",AWSAmazonElasticsearchService:"strokeColor=none;shape=mxgraph.aws3.elasticsearch_service",
AWSElasticMapReduceBlock2:"strokeColor=none;shape=mxgraph.aws3.emr",AWSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.emr_cluster",AWSEMREngine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine",AWSEMRMapRM3Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m3",AWSEMRMapRM5Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m5",AWSEMRMapRM7Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m7",AWSKinesis2:"strokeColor=none;shape=mxgraph.aws3.kinesis","AWSAmazonKinesis(AmazonKinesisAnalytics)":"strokeColor=none;shape=mxgraph.aws3.kinesis",
AWSKinesisEnabledApp2:"strokeColor=none;shape=mxgraph.aws3.kinesis_enabled_app","AWSAmazonKinesis(AmazonKinesisFirehose)":"strokeColor=none;shape=mxgraph.aws3.kinesis_firehose","AWSAmazonKinesis(AmazonKinesisStreams)":"strokeColor=none;shape=mxgraph.aws3.kinesis_streams",AWSAmazonMachineLearning:"strokeColor=none;shape=mxgraph.aws3.machine_learning",AWSAmazonQuickSight:"strokeColor=none;shape=mxgraph.aws3.quicksight",AWSCognito2:"strokeColor=none;shape=mxgraph.aws3.cognito",AWSMobileAnalytics2:"strokeColor=none;shape=mxgraph.aws3.mobile_analytics",
AWSAWSDeviceFarm:"strokeColor=none;shape=mxgraph.aws3.device_farm",AWSAWSMobileHub:"strokeColor=none;shape=mxgraph.aws3.mobile_hub;gradientColor=#AD688A;gradientDirection=east",AWSTopicBlock2:"strokeColor=none;shape=mxgraph.aws3.topic_2;fontStyle=1;fontColor=#ffffff;verticalAlign=top;spacingTop=-5",AWSEmailNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.email_notification",AWSHTTPNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.http_notification",AWSAWSCodeCommit:"strokeColor=none;shape=mxgraph.aws3.codecommit",
AWSCodeDeploy2:"strokeColor=none;shape=mxgraph.aws3.codedeploy",AWSAWSCodePipeline:"strokeColor=none;shape=mxgraph.aws3.codepipeline",AWSWorkDocs2:"strokeColor=none;shape=mxgraph.aws3.workdocs",AWSAmazonWorkMail:"strokeColor=none;shape=mxgraph.aws3.workmail",AWSAmazonWorkSpaces2:"strokeColor=none;shape=mxgraph.aws3.workspaces",AWSAWSIoT:"strokeColor=none;shape=mxgraph.aws3.aws_iot","AWSAWSIoT(action)":"strokeColor=none;shape=mxgraph.aws3.action","AWSAWSIoT(actuator)":"strokeColor=none;shape=mxgraph.aws3.actuator",
"AWSAWSIoT(certificate)":"strokeColor=none;shape=mxgraph.aws3.certificate","AWSAWSIoT(desiredstate)":"strokeColor=none;shape=mxgraph.aws3.desired_state","AWSAWSIoT(hardwareboard)":"strokeColor=none;shape=mxgraph.aws3.hardware_board","AWSAWSIoT(HTTP2protocol)":"strokeColor=none;shape=mxgraph.aws3.http_2_protocol","AWSAWSIoT(HTTPprotocol)":"strokeColor=none;shape=mxgraph.aws3.http_protocol","AWSAWSIoT(MQTTprotocol)":"strokeColor=none;shape=mxgraph.aws3.mqtt_protocol","AWSAWSIoT(policy)":"strokeColor=none;shape=mxgraph.aws3.policy",
"AWSAWSIoT(reportedstate)":"strokeColor=none;shape=mxgraph.aws3.reported_state","AWSAWSIoT(rule)":"strokeColor=none;shape=mxgraph.aws3.rule","AWSAWSIoT(sensor)":"strokeColor=none;shape=mxgraph.aws3.sensor","AWSAWSIoT(servo)":"strokeColor=none;shape=mxgraph.aws3.servo","AWSAWSIoT(shadow)":"strokeColor=none;shape=mxgraph.aws3.shadow","AWSAWSIoT(simulator)":"strokeColor=none;shape=mxgraph.aws3.simulator","AWSAWSIoT(thingbank)":"strokeColor=none;shape=mxgraph.aws3.bank","AWSAWSIoT(thingbicycle)":"strokeColor=none;shape=mxgraph.aws3.bicycle",
"AWSAWSIoT(thingcamera)":"strokeColor=none;shape=mxgraph.aws3.camera","AWSAWSIoT(thingcar)":"strokeColor=none;shape=mxgraph.aws3.car","AWSAWSIoT(thingcart)":"strokeColor=none;shape=mxgraph.aws3.cart","AWSAWSIoT(thingcoffeepot)":"strokeColor=none;shape=mxgraph.aws3.coffee_pot","AWSAWSIoT(thingdoorlock)":"strokeColor=none;shape=mxgraph.aws3.door_lock","AWSAWSIoT(thingfactory)":"strokeColor=none;shape=mxgraph.aws3.factory","AWSAWSIoT(thinggeneric)":"strokeColor=none;shape=mxgraph.aws3.generic","AWSAWSIoT(thinghouse)":"strokeColor=none;shape=mxgraph.aws3.house",
"AWSAWSIoT(thinglightbulb)":"strokeColor=none;shape=mxgraph.aws3.lightbulb","AWSAWSIoT(thingmedicalemergency)":"strokeColor=none;shape=mxgraph.aws3.medical_emergency","AWSAWSIoT(thingpoliceemergency)":"strokeColor=none;shape=mxgraph.aws3.police_emergency","AWSAWSIoT(thingthermostat)":"strokeColor=none;shape=mxgraph.aws3.thermostat","AWSAWSIoT(thingtravel)":"strokeColor=none;shape=mxgraph.aws3.travel","AWSAWSIoT(thingutility)":"strokeColor=none;shape=mxgraph.aws3.utility","AWSAWSIoT(thingwindfarm)":"strokeColor=none;shape=mxgraph.aws3.windfarm",
"AWSAWSIoT(topic)":"strokeColor=none;shape=mxgraph.aws3.topic",AWSCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.cloud",AWSVPCloudBlock3:"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud",AWSUserBlock2:"strokeColor=none;shape=mxgraph.aws3.user",AWSUsersBlock2:"strokeColor=none;shape=mxgraph.aws3.users",AWSClientBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console",AWSMobileClientBlock2:"strokeColor=none;shape=mxgraph.aws3.mobile_client",AWSGenericDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws3.generic_database",
AWSDiskBlock3:"strokeColor=none;shape=mxgraph.aws3.disk",AWSTapeStorageBlock3:"strokeColor=none;shape=mxgraph.aws3.tape_storage",AWSMediaBlock2:"strokeColor=none;shape=mxgraph.aws3.multimedia",AWSDataCenterBlock2:"strokeColor=none;shape=mxgraph.aws3.corporate_data_center",AWSServerBlock2:"strokeColor=none;shape=mxgraph.aws3.traditional_server",AWSInternetBlock2:"strokeColor=none;shape=mxgraph.aws2.non-service_specific.internet",AWSForumsBlock3:"strokeColor=none;shape=mxgraph.aws3.forums",AWSManagementBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console",
AWSAmazonElasticCacheNode2:"strokeColor=none;shape=mxgraph.aws3.cache_node",AWSAmazonRedshiftDW1Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_compute_node",AWSAmazonRedshiftDW2Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAmazonRedshiftSSDFamilyCluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAmazonRoute53RouteTable2:"strokeColor=none;shape=mxgraph.aws3.route_table",AWSSubnetBlock2:"strokeColor=none;shape=mxgraph.aws3.permissions",AWSRoundedRectangleContainerBlock2:"mxCompositeShape",
ACAccessControlBlock:"strokeColor=none;shape=mxgraph.azure.access_control",ACAPIAppsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_app",ACAPIManagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_management",ACAppInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.application_insights",ACAppServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.app_service",ACAutoscalingBlock:"strokeColor=none;shape=mxgraph.azure.autoscale",ACAzureActiveDirectoryBlock:"strokeColor=none;shape=mxgraph.azure.azure_active_directory",
ACAzurealertBlock:"strokeColor=none;shape=mxgraph.azure.azure_alert",ACAzureAutomationBlock:"strokeColor=none;shape=mxgraph.azure.automation",ACAzureBatchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_batch",ACAzureRedisBlock:"strokeColor=none;shape=mxgraph.azure.azure_cache",ACAzureFilesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_files_service",ACAzureloadbalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_automatic_load_balancer",ACAzureMarketplaceBlock:"strokeColor=none;shape=mxgraph.azure.azure_marketplace",
ACAzureRightManagementRMSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_rights_management_rms",ACAzureSDKBlock:"strokeColor=none;shape=mxgraph.azure.azure_sdk",ACAzureSearchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_search",ACAzureSQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.sql_database_sql_azure",ACAzuresubscriptionBlock:"strokeColor=none;shape=mxgraph.azure.azure_subscription",ACAzureWebsitesBlock:"strokeColor=none;shape=mxgraph.azure.azure_website",ACBackupServiceBlock:"strokeColor=none;shape=mxgraph.azure.backup_service",
ACBitbucketcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.bitbucket_code_source",ACBizTalkServicesBlock:"strokeColor=none;shape=mxgraph.azure.biztalk_services",ACCloudServiceBlock:"strokeColor=none;shape=mxgraph.azure.cloud_service",ACCodePlexBlock:"strokeColor=none;shape=mxgraph.azure.codeplex_code_source",ACContentDeliveryNetworkBlock:"strokeColor=none;shape=mxgraph.azure.content_delivery_network",ACDataFactoryBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.data_factory",ACDocumentDBBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.documentdb",
ACDropboxcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.dropbox_code_source",ACEventsHubBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.event_hubs",ACExpressRouteBlock:"strokeColor=none;shape=mxgraph.azure.express_route",ACGitHubBlock:"strokeColor=none;shape=mxgraph.azure.github_code",ACGitrepositoryBlock:"strokeColor=none;shape=mxgraph.azure.git_repository",ACHDInsightBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hdinsight",ACHealthmonitoringBlock:"strokeColor=none;shape=mxgraph.azure.health_monitoring",
ACHealthyBlock:"strokeColor=none;shape=mxgraph.azure.healthy",ACHybridConnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connections",ACBizTalkhybridconnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connection_manager",ACKeyVaultBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.key_vault",ACLogicAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.logic_app",ACMachineLearningBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.machine_learning",ACMediaServicesBlock:"strokeColor=none;shape=mxgraph.azure.media_service",
ACMicrosoftaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_account",ACMicrosoftAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_azure",ACMobileEngagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_engagement",ACMobileServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_app",ACMultiFactorAuthBlock:"strokeColor=none;shape=mxgraph.azure.multi_factor_authentication",ACMySQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.mysql_database",ACNotificationHubsBlock:"strokeColor=none;shape=mxgraph.azure.notification_hub",
ACNotificationtopicBlock:"strokeColor=none;shape=mxgraph.azure.notification_topic",ACOperationalInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.operational_insights",ACOSimageBlock:"strokeColor=none;shape=mxgraph.azure.operating_system_image",ACRemoteAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.remoteapp",ACrpdRemotingfileBlock:"strokeColor=none;shape=mxgraph.azure.rdp_remoting_file",ACSchedulerBlock:"strokeColor=none;shape=mxgraph.azure.scheduler",ACServiceBusBlock:"strokeColor=none;shape=mxgraph.azure.service_bus",
ACServiceBusQueueBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_queues",ACServiceBusRelayBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_relay",ACServiceBusTopicBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_topics_and_subscriptions",ACServiceEndpointBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_endpoint",ACServicepackageBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_package",ACSiteRecoveryBlock:"strokeColor=none;shape=mxgraph.azure.hyper_v_recovery_manager",
ACSQLdatabasegenericBlock:"strokeColor=none;shape=mxgraph.azure.sql_database",ACSQLdatasyncBlock:"strokeColor=none;shape=mxgraph.azure.sql_datasync",ACSQLreportingdeprecatedBlock:"strokeColor=none;shape=mxgraph.azure.sql_reporting",ACStartuptaskBlock:"strokeColor=none;shape=mxgraph.azure.startup_task",ACStorageAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_storage",ACStorageblobBlock:"strokeColor=none;shape=mxgraph.azure.storage_blob",ACStoragequeueBlock:"strokeColor=none;shape=mxgraph.azure.storage_queue",
ACStoragetableBlock:"strokeColor=none;shape=mxgraph.azure.storage_table",ACStorSimpleBlock:"strokeColor=none;shape=mxgraph.azure.storsimple",ACStreamAnalyticsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.stream_analytics",ACTrafficManagerBlock:"strokeColor=none;shape=mxgraph.azure.traffic_manager",ACAlienBlock:"strokeColor=none;shape=mxgraph.azure.unidentified_code_object",ACVHDBlock:"strokeColor=none;shape=mxgraph.azure.vhd",ACVHDdatadiskBlock:"strokeColor=none;shape=mxgraph.azure.vhd_data_disk",
ACVirtualmachineBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine",ACVirtualmachinecontainerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.virtual_machine_container",ACVirtualnetworkBlock:"strokeColor=none;shape=mxgraph.azure.virtual_network",ACVisualStudioOnlineBlock:"strokeColor=none;shape=mxgraph.azure.visual_studio_online",ACVMsymbolonlyBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine_feature",ACWebJobsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.webjobs",ACWebroleBlock:"strokeColor=none;shape=mxgraph.azure.web_role",
ACWebrolesBlock:"strokeColor=none;shape=mxgraph.azure.web_roles",ACWorkaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.work_account",ACWorkerroleBlock:"strokeColor=none;shape=mxgraph.azure.worker_role",ACWorkerrolesBlock:"strokeColor=none;shape=mxgraph.azure.worker_roles",ADNSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_dns",ACLoadBalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_load_balancer_feature",ACResourceGroupBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.resource_group",
ACVPNGatewayBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.vpn_gateway",AEActiveDirectoryFSPBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.d",AEADFSBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.ad_fs",AEAndroidPhoneBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.android_phone",AEappblankfortextBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_blank",AEAppGenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.app_generic",AEAppserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_server",
AEBackuplocalBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_local",AEBackuponlineBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_online",AECalendarBlock:"strokeColor=none;shape=mxgraph.mscae.general.calendar",AECertificateBlock:"strokeColor=none;shape=mxgraph.azure.certificate",AEClientAppBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.client_application",AECloudBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.internet",AEClusterserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.cluster_server",
AECodefileBlock:"strokeColor=none;shape=mxgraph.azure.code_file",AEConnectorsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.connectors",AEDatabasegenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_generic",AEDatabaseserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_server",AEDatabasesyncBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_synchronization",AEDeviceBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.device",AEDirectaccessBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.direct_access_feature",
new mxPoint(4,7);break;case 6:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");e.geometry.offset=new mxPoint(4,5);break;case 7:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),e.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Fb=q(a,b),y=g(a,b),y=y.replace("strokeColor","fillColor"),Fb=Fb.replace("fillColor","strokeColor");""==y&&(y="fillColor=#000000;");""==Fb&&(Fb="strokeColor=#ffffff;");e.style+=Fb+y+"part=1;"}else e.style+=q(a,
b)+g(a,b)+"part=1;";e.geometry.relative=!0;e.vertex=!0;v.insert(e)}var Gb=0;0!=a.bpmnActivityMarker1&&Gb++;0!=a.bpmnActivityMarker2&&Gb++;var ha=0;1==Gb?ha=-7.5:2==Gb&&(ha=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 2:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=
q(a,b)+g(a,b);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");e.geometry.offset=new mxPoint(ha,-17);y=g(a,b);y=y.replace("strokeColor",
"fillColor");""==y&&(y="fillColor=#000000;");e.style+=y;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(ha,-18),e.style+=q(a,b)+g(a,b)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}2==Gb&&(ha=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 2:e=new mxCell("",new mxGeometry(.5,
1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");
e.geometry.offset=new mxPoint(ha,-17);y=g(a,b);y=y.replace("strokeColor","fillColor");""==y&&(y="fillColor=#000000;");e.style+=y;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(ha,-18),e.style+=q(a,b)+g(a,b)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+
qa(a)+Qa(a)+ra(a)+sa(a);v.value=l(a.Text);if(1==a.bpmnDashed)switch(a.bpmnEventGroup){case 0:v.style+="outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(a.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(a.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+=
"symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";break;case 12:v.style+="symbol=terminate;"}break;case "BPMNConversation":v.style+="shape=hexagon;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);v.style=0==a.bpmnConversationType?v.style+
m(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(e=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),e.geometry.offset=new mxPoint(-6,-17),e.style+=q(a,b)+g(a,b),e.geometry.relative=!0,e.vertex=!0,v.insert(e));break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a);switch(a.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+="outline=none;symbol=exclusiveGw;";
break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}break;case "BPMNData":v.style+="shape=note;size=14;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a);switch(a.bpmnDataType){case 1:e=new mxCell("",new mxGeometry(.5,1,12,
10),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(-6,-15);e.style+=q(a,b)+g(a,b);e.geometry.relative=!0;e.vertex=!0;v.insert(e);break;case 2:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");e.geometry.offset=new mxPoint(3,3);e.style+=q(a,b)+g(a,b);e.geometry.relative=!0;e.vertex=!0;v.insert(e);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";D=new mxCell("",new mxGeometry(0,0,f,20),"strokeColor=none;fillColor=none;");D.geometry.offset=
new mxPoint(0,14);D.geometry.relative=!0;D.vertex=!0;v.insert(D);D.value=l(a.Text);D.style+=n(a);break;case 3:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),e.geometry.offset=new mxPoint(3,3),e.style+=g(a,b),e.geometry.relative=!0,e.vertex=!0,v.insert(e),y=g(a,b),y=y.replace("strokeColor","fillColor"),""==y&&(y="fillColor=#000000;"),e.style+=y,D=new mxCell("",new mxGeometry(0,0,f,20),"strokeColor=none;fillColor=none;"),D.geometry.offset=new mxPoint(0,
14),D.geometry.relative=!0,D.vertex=!0,v.insert(D),D.value=l(a.Text),D.style+=n(a)}break;case "BPMNBlackPool":v.style+=q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,f,c),"fillColor=#000000;strokeColor=none;opacity=30;");e.vertex=!0;v.insert(e);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",new mxGeometry(0,0,.95*f,.95*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a);k=new mxCell("",
new mxGeometry(.05*f,.05*c,.95*f,.95*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Text);k.value=l(a.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Text);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,.2*f,c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Number);e.value=l(a.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+=
"shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==h.Class?v.value=l(a.Text):"VSMProductionControlBlock"==h.Class&&(v.value=l(a.Resources));v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+ra(a)+sa(a)+Ta(a);"VSMDedicatedProcessBlock"==h.Class&&(e=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),e.geometry.relative=!0,e.geometry.offset=new mxPoint(4,-13),e.vertex=!0,v.insert(e),e.style+=g(a,b)+q(a,
b)+p(a,b)+r(a)+m(a));D=new mxCell("",new mxGeometry(0,0,f,15),"strokeColor=none;fillColor=none;part=1;");D.vertex=!0;v.insert(D);D.value=l(a.Title);D.style+=n(a.Title);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=l(a.Text);v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+ra(a)+Qa(a)+sa(a);D=new mxCell("",new mxGeometry(.1*f,.3*c,.8*f,.6*c),"part=1;");D.vertex=!0;v.insert(D);D.value=
l(a.Resource);D.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Resource);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+ra(a)+sa(a);v.value=l(a.Text);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";var ea=c,Ba=parseInt(a.Cells),P=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+"part=1;";0<Ba&&(ea/=Ba);Y=[];R=[];for(d=1;d<=Ba;d++)Y[d]=
new mxCell("",new mxGeometry(0,(d-1)*ea,f,ea),P),Y[d].vertex=!0,v.insert(Y[d]),Y[d].value=l(a["cell_"+d]),Y[d].style+=n(a["cell_"+d]);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+Qa(a)+ra(a)+sa(a);v.value=l(a.Text);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;"+q(a,b);ea=c;Ba=parseInt(a.Cells);P=g(a,b)+p(a,b)+m(a)+"part=1;fillColor=none;";
0<Ba&&(ea/=Ba);Y=[];ua=[];for(d=1;d<=Ba;d++)Y[d]=new mxCell("",new mxGeometry(.5*f,(d-1)*ea,.5*f,ea),"shape=partialRectangle;left=0;"+P),Y[d].vertex=!0,v.insert(Y[d]),ua[d]=new mxCell("",new mxGeometry(0,(d-1)*ea,f,ea),"strokeColor=none;fillColor=none;part=1;"),ua[d].vertex=!0,v.insert(ua[d]),ua[d].value=l(a["cell_"+d]),ua[d].style+=n(a["cell_"+d]);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+=
"shape=ellipse;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.17*f,.2*c,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+m(a);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";P="shape=card;size=18;flipH=1;part=1;"+g(a,b)+q(a,b)+p(a,b)+m(a);e=new mxCell("",new mxGeometry(.1*f,0,.9*f,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");
e.vertex=!0;v.insert(e);e.style+=P;k=new mxCell("",new mxGeometry(.05*f,.1*c,.9*f,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");k.vertex=!0;v.insert(k);k.style+=P;var u=new mxCell("",new mxGeometry(0,.2*c,.9*f,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");u.vertex=!0;v.insert(u);u.style+=P+n(a);u.value=l(a.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";
a.Spotfleet?(e=new mxCell("",new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):
a.Beanstalk?(e=new mxCell("",new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):
a.EC2?(e=new mxCell("",new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):a.Subnet?(e=
new mxCell("",new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):a.VPC?(e=new mxCell("",
new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):a.AWS?(e=new mxCell("",
new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):a.Corporate?(e=new mxCell("",new mxGeometry(0,
0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+
g(a,b)+n(a.Title)+t(a)+m(a),v.value=l(a.Title));break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";var G=new mxCell("",new mxGeometry(.25*f,.25*c,.5*f,.5*c),"html=1;shape=ellipse;perimeter=ellipsePerimeter;strokeColor=#29AAE1;strokeWidth=2;");G.vertex=!0;v.insert(G);var I=[G];G.style+=q(a,b);var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");E.geometry.relative=!0;E.edge=!0;Pa(.5*f,0,E,B,w,
I,v,G);Pa(.855*f,.145*c,E,B,w,I,v,G);Pa(f,.5*c,E,B,w,I,v,G);Pa(.855*f,.855*c,E,B,w,I,v,G);Pa(.5*f,c,E,B,w,I,v,G);Pa(.145*f,.855*c,E,B,w,I,v,G);Pa(0,.5*c,E,B,w,I,v,G);Pa(.145*f,.145*c,E,B,w,I,v,G);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";G=new mxCell("",new mxGeometry(0,.5*c-10,f,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");G.vertex=!0;v.insert(G);
I=[G];E=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");E.geometry.relative=!0;E.edge=!0;for(var I=[G],Hb=f/a.NumTopNodes,d=0;d<a.NumTopNodes;d++)Pa(.5*Hb+d*Hb,0,E,B,w,I,v,G);Hb=f/a.NumBottomNodes;for(d=0;d<a.NumBottomNodes;d++)Pa(.5*Hb+d*Hb,c,E,B,w,I,v,G);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a);v.value=l(a.Title);a.ToggleCharge&&(v.style+="flipV=1;");
break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);"EIMessageChannelBlock"==h.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIDatatypeChannelBlock"==h.Class?
(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIInvalidMessageChannelBlock"==h.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIDeadLetterChannelBlock"==h.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),e.geometry.offset=
new mxPoint(.45*-f,0)):"EIGuaranteedDeliveryBlock"==h.Class&&(e=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(-10,-7));e.geometry.relative=!0;e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");E.geometry.relative=!0;E.edge=!0;T(.15*f,.25*c,.85*f,.25*c,E,B,w,I,v,G);break;case "EIChannelAdapterBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,.07*c,.21*f,.86*c),"fillColor=#FFFF33;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a)+t(a);k=new mxCell("",new mxGeometry(.26*f,.09*c,.2*f,.82*c),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+p(a,b)+m(a)+t(a);u=new mxCell("",new mxGeometry(1,.5,.35*f,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
u.geometry.relative=!0;u.geometry.offset=new mxPoint(.4*-f,-10);u.vertex=!0;v.insert(u);u.style+=g(a,b)+p(a,b)+m(a)+t(a);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");z.geometry.relative=!0;z.edge=!0;e.insertEdge(z,!0);k.insertEdge(z,!1);z.style+=g(a,b);B.push(w.addCell(z,null,null,null,null));x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");
x.geometry.relative=!0;x.edge=!0;k.insertEdge(x,!0);u.insertEdge(x,!1);B.push(w.addCell(x,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);for(var Ib=a.Messages,Zb=(c-17)/
Ib,k=[],E=[],d=0;d<Ib;d++){var Jb=Zb*(d+1)-3;k[d]=new mxCell("",new mxGeometry(f-20,Jb,20,20),"part=1;");k[d].vertex=!0;v.insert(k[d]);k[d].style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a);switch(h.Class){case "EIMessageBlock":k[d].value=l(a["message_"+(d+1)]);k.style+=n(a["message_"+(d+1)]);break;case "EICommandMessageBlock":k[d].value="C";k[d].style+="fontStyle=1;fontSize=10;";break;case "EIDocumentMessageBlock":k[d].value="D";k[d].style+="fontStyle=1;fontSize=10;";break;case "EIEventMessageBlock":k[d].value=
"E",k[d].style+="fontStyle=1;fontSize=10;"}E[d]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");E[d].geometry.relative=!0;E[d].edge=!0;e.insertEdge(E[d],!1);k[d].insertEdge(E[d],!0);E[d].style+=g(a,b)+m(a);var Wa=[];Wa.push(new mxPoint(wa+8.5,xa+Jb+10));E[d].geometry.points=Wa;B.push(w.addCell(E[d],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,
b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.45*f,.25*c,.3*f,.5*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");E.geometry.relative=!0;E.edge=!0;T(0,.5*c,.4*f,.5*c,E,B,w,I,v,G);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+
q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);var z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");z.geometry.relative=!0;z.edge=!0;T(.05*f,.5*c,.85*f,.5*c,z,B,w,I,v,G);var x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;T(.05*f,.5*c,.85*f,.15*
c,x,B,w,I,v,G);var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");H.geometry.relative=!0;H.edge=!0;T(.05*f,.5*c,.85*f,.85*c,H,B,w,I,v,G);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
z.geometry.relative=!0;z.edge=!0;z.style+=g(a,b);T(.05*f,.5*c,.95*f,.5*c,z,B,w,I,v,G);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");x.geometry.relative=!0;x.edge=!0;x.style+=g(a,b);T(.3*f,.1*c,.3*f,.5*c,x,B,w,I,v,G);H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
H.geometry.relative=!0;H.edge=!0;H.style+=g(a,b);T(.7*f,.1*c,.7*f,.5*c,H,B,w,I,v,G);var U=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");U.geometry.relative=!0;U.edge=!0;U.style+=g(a,b);T(.5*f,.5*c,.5*f,.9*c,U,B,w,I,v,G);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);
e=new mxCell("",new mxGeometry(.2*f,.21*c,.16*f,.24*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");z.geometry.relative=!0;z.edge=!0;T(.45*f,.33*c,.8*f,.33*c,z,B,w,I,v,G);k=new mxCell("",new mxGeometry(.64*f,.55*c,.16*f,.24*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+p(a,b)+m(a);x=new mxCell("",new mxGeometry(0,0,0,0),
"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;T(.55*f,.67*c,.2*f,.67*c,x,B,w,I,v,G);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.1*f,.15*c,.8*f,.7*c),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a);break;
case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.04*f,.06*c,.18*f,.28*c),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);k=new mxCell("",new mxGeometry(.2*f,.56*c,.2*f,.32*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+p(a,b)+m(a)+t(a);k.value="A";k.style+="fontStyle=1;fontSize=10;";z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");
z.geometry.relative=!0;z.edge=!0;e.insertEdge(z,!1);k.insertEdge(z,!0);z.style+=g(a,b)+m(a);Wa=[];Wa.push(new mxPoint(wa+.13*f,xa+.72*c));z.geometry.points=Wa;B.push(w.addCell(z,null,null,null,null));u=new mxCell("",new mxGeometry(.6*f,.06*c,.18*f,.28*c),"shape=ellipse;fillColor=#808080;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,b)+m(a);C=new mxCell("",new mxGeometry(.76*f,.56*c,.2*f,.32*c),"part=1;");C.vertex=!0;v.insert(C);C.style+=g(a,b)+p(a,b)+m(a)+t(a);C.value="B";C.style+="fontStyle=1;fontSize=10;";
x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");x.geometry.relative=!0;x.edge=!0;u.insertEdge(x,!1);C.insertEdge(x,!0);x.style+=g(a,b)+m(a);var gc=[];gc.push(new mxPoint(wa+.69*f,xa+.72*c));x.geometry.points=gc;B.push(w.addCell(x,null,null,null,null));H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");H.geometry.relative=!0;H.edge=!0;e.insertEdge(H,
!1);u.insertEdge(H,!0);H.style+=g(a,b)+m(a);B.push(w.addCell(H,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("1",new mxGeometry(.2*f,.4*c,.1*f,.19*c),"fontStyle=1;fontSize=10;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);k=new mxCell("2",new mxGeometry(.45*f,.4*c,.1*f,.19*c),"fontStyle=1;fontSize=10;part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+
m(a);u=new mxCell("3",new mxGeometry(.7*f,.4*c,.1*f,.19*c),"fontStyle=1;fontSize=10;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,b)+m(a);z=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");e.insertEdge(z,!1);k.insertEdge(z,!0);z.geometry.points=[new mxPoint(wa+.375*f,xa+.15*c)];z.geometry.relative=!0;z.edge=!0;z.style+=g(a,b)+m(a);B.push(w.addCell(z,null,null,null,null));x=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
k.insertEdge(x,!1);u.insertEdge(x,!0);x.geometry.points=[new mxPoint(wa+.675*f,xa+.15*c)];x.geometry.relative=!0;x.edge=!0;x.style+=g(a,b)+m(a);B.push(w.addCell(x,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.3*f,.2*c,.4*f,.6*c),"shape=mxgraph.ios7.icons.clock;flipH=1;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);break;case "EIMessageBrokerBlock":v.style+=
"strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+O(a)+K(a)+M(a)+fa(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.38*f,.42*c,.24*f,.16*c),"part=1;fillColor=#aefe7d;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);k=new mxCell("",new mxGeometry(.38*f,0,.24*f,.16*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=q(a,b)+g(a,b)+m(a);u=new mxCell("",new mxGeometry(.76*f,.23*c,.24*f,.16*c),"part=1;");u.vertex=!0;v.insert(u);u.style=k.style;var C=new mxCell("",new mxGeometry(.76*
f,.61*c,.24*f,.16*c),"part=1;");C.vertex=!0;v.insert(C);C.style=k.style;var Qb=new mxCell("",new mxGeometry(.38*f,.84*c,.24*f,.16*c),"part=1;");Qb.vertex=!0;v.insert(Qb);Qb.style=k.style;var Rb=new mxCell("",new mxGeometry(0,.61*c,.24*f,.16*c),"part=1;");Rb.vertex=!0;v.insert(Rb);Rb.style=k.style;var Sb=new mxCell("",new mxGeometry(0,.23*c,.24*f,.16*c),"part=1;");Sb.vertex=!0;v.insert(Sb);Sb.style=k.style;z=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(z,!1);k.insertEdge(z,
!0);z.edge=!0;z.style+=g(a,b)+m(a);B.push(w.addCell(z,null,null,null,null));x=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(x,!1);u.insertEdge(x,!0);x.edge=!0;x.style+=g(a,b)+m(a);B.push(w.addCell(x,null,null,null,null));H=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(H,!1);C.insertEdge(H,!0);H.edge=!0;H.style+=g(a,b)+m(a);B.push(w.addCell(H,null,null,null,null));U=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(U,
!1);Qb.insertEdge(U,!0);U.edge=!0;U.style+=g(a,b)+m(a);B.push(w.addCell(U,null,null,null,null));var lb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(lb,!1);Rb.insertEdge(lb,!0);lb.edge=!0;lb.style+=g(a,b)+m(a);B.push(w.addCell(lb,null,null,null,null));var mb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(mb,!1);Sb.insertEdge(mb,!0);mb.edge=!0;mb.style+=g(a,b)+m(a);B.push(w.addCell(mb,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");z.geometry.relative=!0;z.edge=!0;T(.05*f,.5*c,.6*f,.25*c,z,B,w,I,v,G);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;T(.05*f,.5*c,.6*f,.75*c,x,B,w,I,v,G);e=new mxCell("",new mxGeometry(.7*
f,.1*c,.15*f,.32*c),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.25*f,.25*c,.5*f,.5*c),"shape=mxgraph.eip.control_bus;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+
n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);u=new mxCell("",new mxGeometry(f-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,b)+m(a);H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");H.geometry.relative=!0;H.edge=!0;e.insertEdge(H,!1);u.insertEdge(H,
!0);H.style+=g(a,b)+m(a);H.geometry.points=[new mxPoint(wa+8.5,xa+40)];B.push(w.addCell(H,null,null,null,null));C=new mxCell("",new mxGeometry(f-45,c-20,20,20),"part=1;");C.vertex=!0;v.insert(C);C.value=l(a.message_0);C.style+=n(a.message_0);C.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a);U=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");U.geometry.relative=!0;U.edge=!0;e.insertEdge(U,!1);C.insertEdge(U,!0);U.style+=g(a,
b)+m(a);U.geometry.points=[new mxPoint(wa+8.5,xa+c-10)];B.push(w.addCell(U,null,null,null,null));Ib=a.HistoryMessages;Zb=(c-75)/Ib;k=[];E=[];for(d=0;d<Ib;d++)Jb=Zb*(d+1)+30,k[d]=new mxCell("",new mxGeometry(f-20,Jb,20,20),"part=1;"),k[d].vertex=!0,k[d].value=l(a["message_"+(d+1)]),k.style+=n(a["message_"+(d+1)]),v.insert(k[d]),k[d].style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a),E[d]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),
E[d].geometry.relative=!0,E[d].edge=!0,u.insertEdge(E[d],!1),k[d].insertEdge(E[d],!0),E[d].style+=g(a,b)+m(a),Wa=[],Wa.push(new mxPoint(wa+f-30,xa+Jb+10)),E[d].geometry.points=Wa,B.push(w.addCell(E[d],null,null,null,null));break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;"+g(a,b)+p(a,b)+r(a)+m(a)+V(a,b,v);t(a);0>a.DoorAngle&&(v.style+="flipV=1;");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;"+g(a,b)+p(a,b)+r(a)+m(a)+V(a,b,v)+t(a);0<a.DoorAngle&&(v.style+="flipV=1;");
break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;"+V(a,b,v);e=new mxCell("",new mxGeometry(0,0,f,.25*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a);for(var k=[],hc=.02*f,$b=(f-2*hc)/a.LightCount,ic=.8*$b,d=0;d<a.LightCount;d++)k[d]=new mxCell("",new mxGeometry(hc+$b*d+($b-ic)/2,.25*c,ic,.75*c),"part=1;shape=ellipse;"),k[d].vertex=!0,v.insert(k[d]),k[d].style+=g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;"+
V(a,b,v);for(var e=[],jc=f/a.SinkCount,d=0;d<a.SinkCount;d++)e[d]=new mxCell("",new mxGeometry(jc*d,0,jc,c),"part=1;shape=mxgraph.floorplan.sink_2;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var ia=.1*f/a.StallCount,e=new mxCell("",new mxGeometry(0,0,ia,c),"fillColor=#000000;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);for(var oa=(f-ia)/a.StallCount,ac=[],Kb=[],Lb=[],Mb=[],y=g(a,
b),y=""==y?"#000000;":y.replace("stokreColor=",""),Ub="part=1;fillColor="+y+g(a,b)+m(a),bc=q(a,b)+g(a,b)+m(a),d=0;d<a.StallCount;d++)ac[d]=new mxCell("",new mxGeometry((d+1)*oa,0,ia,c),Ub),ac[d].vertex=!0,v.insert(ac[d]),Lb[d]=new mxCell("",new mxGeometry(ia+d*oa+.05*(oa-ia),c-.92*(oa-ia),.9*(oa-ia),.92*(oa-ia)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Lb[d].vertex=!0,v.insert(Lb[d]),Lb[d].style+=bc,Kb[d]=new mxCell("",new mxGeometry(ia+d*oa+.2*(oa-ia),0,.6*(oa-ia),.8*(oa-ia)),"shape=mxgraph.floorplan.toilet;part=1;"),
Kb[d].vertex=!0,v.insert(Kb[d]),Kb[d].style+=bc,Mb[d]=new mxCell("",new mxGeometry(ia+d*oa,.42*c,.15*(oa-ia),.12*(oa-ia)),"part=1;"),Mb[d].vertex=!0,v.insert(Mb[d]),Mb[d].style+=bc;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Tb="edgeStyle=none;endArrow=none;part=1;"+g(a,b)+m(a)+p(a,b)+r(a)+t(a),y=g(a,b),y=""==y?"#000000;":y.replace("stokreColor=",""),cc="shape=triangle;part=1;fillColor="+y+g(a,b)+m(a)+p(a,b)+r(a)+t(a),z=new mxCell("",new mxGeometry(0,0,0,0),Tb);z.geometry.relative=
!0;z.edge=!0;T(0,.5*c,.65*f,.5*c,z,B,w,I,v,G);for(var A=c/a.numLines,x=[],$a=[],d=0;d<a.numLines;d++)x[d]=new mxCell("",new mxGeometry(0,0,0,0),Tb),x[d].geometry.relative=!0,x[d].edge=!0,T(.65*f,.5*c,.96*f,(d+.5)*A,x[d],B,w,I,v,G),$a[d]=new mxCell("",new mxGeometry(.95*f,(d+.2)*A,.05*f,.6*A),cc),$a[d].vertex=!0,v.insert($a[d]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";Tb="edgeStyle=none;endArrow=none;part=1;"+g(a,b)+m(a)+p(a,b)+r(a)+t(a);y=g(a,b);y=""==y?"#000000;":y.replace("stokreColor=",
"");cc="shape=triangle;part=1;fillColor="+y+g(a,b)+m(a)+p(a,b)+r(a)+t(a);A=c/a.numLines;x=[];$a=[];for(d=0;d<a.numLines;d++)x[d]=new mxCell("",new mxGeometry(0,0,0,0),Tb),x[d].geometry.relative=!0,x[d].edge=!0,T(0,(d+.5)*A,.96*f,(d+.5)*A,x[d],B,w,I,v,G),$a[d]=new mxCell("",new mxGeometry(.95*f,(d+.2)*A,.05*f,.6*A),cc),$a[d].vertex=!0,v.insert($a[d]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);switch(a.vesselType){case 1:v.style+=
"shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;size=0.10;direction=south;"}break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);1==a.peakedRoof&&0==a.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==a.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);v.style=0==a.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;"+V(a,b,v)+n(a);v.value=l(a.Text);P=g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a);e=new mxCell("",new mxGeometry(0,.2*c,f,.6*c),"part=1;shape=trapezoid;direction=south;");e.vertex=!0;v.insert(e);e.style+=P;P+="endSize=4;endArrow=block;endFill=1;";0==
a.compressorType?(z=new mxCell("",new mxGeometry(0,0,0,0),""),z.geometry.relative=!0,z.edge=!0,z.style+=P,T(0,0,0,.2*c,z,B,w,I,v,G),x=new mxCell("",new mxGeometry(0,0,0,0),""),x.geometry.relative=!0,x.edge=!0,x.style+=P,T(f,.67*c,f,c,x,B,w,I,v,G)):(e.style+="flipH=1;",z=new mxCell("",new mxGeometry(0,0,0,0),""),z.geometry.relative=!0,z.edge=!0,z.style+=P,T(0,0,0,.33*c,z,B,w,I,v,G),x=new mxCell("",new mxGeometry(0,0,0,0),""),x.geometry.relative=!0,x.edge=!0,x.style+=P,T(f,.8*c,f,c,x,B,w,I,v,G));1==
a.centerLineType&&(H=new mxCell("",new mxGeometry(0,0,0,0),""),H.geometry.relative=!0,H.edge=!0,H.style+=P,T(.2*f,.5*c,.8*f,.5*c,H,B,w,I,v,G));break;case "PEMotorDrivenTurbineBlock":P=g(a,b)+q(a,b)+m(a)+p(a,b)+t(a);v.style+="shape=ellipse;"+r(a)+V(a,b,v)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.2*f,.2*c,.6*f,.6*c),"part=1;shape=trapezoid;direction=south;");e.vertex=!0;v.insert(e);e.style+=P;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":P=
p(a,b);v.style+=P+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);switch(h.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+=
"shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==h.Class||"PESharedIndicator2Block"==h.Class?(e=new mxCell("",new mxGeometry(0,0,f,.5*f),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=P+n(a.TopText),e.value=l(a.TopText),k=new mxCell("",new mxGeometry(0,.5*f,f,.5*f),"part=1;strokeColor=none;fillColor=none;")):(e=new mxCell("",new mxGeometry(0,0,f,.5*c),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=P+n(a.TopText),e.value=l(a.TopText),
k=new mxCell("",new mxGeometry(0,.5*c,f,.5*c),"part=1;strokeColor=none;fillColor=none;"));k.vertex=!0;v.insert(k);k.style+=P;n(a.BotText);k.value=l(a.BotText);switch(a.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var dc=!1;"PEPoweredValveBlock"==
h.Class?1!=a.poweredHandOperated&&(dc=!0):1!=a.handOperated&&(dc=!0);if(dc){var a=Xa(h).Properties,ja=a.BoundingBox,Vb=ja.h;ja.h="PEAngleValveBlock"==h.Class||"PEAngleGlobeValveBlock"==h.Class?.7*ja.h:.6*ja.h;v=new mxCell("",new mxGeometry(Math.round(.6*ja.x+0),Math.round(.6*(ja.y+Vb-ja.h)+0),Math.round(.6*ja.w),Math.round(.6*ja.h)),"");v.vertex=!0;Xb(v,h)}if("PEPoweredValveBlock"==h.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;"+p(a,b)+g(a,b)+q(a,
b)+m(a)+t(a)+r(a)+V(a,b,v),1==a.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",e=new mxCell("",new mxGeometry(.325*f,0,.35*f,.35*c),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),e.vertex=!0,v.insert(e),e.style+=P+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+"fontSize=6;"+K(a.PoweredText)+M(a.PoweredText)+fa(a.PoweredText)+pa(a.PoweredText)+qa(a.PoweredText)+ra(a.PoweredText)+sa(a.PoweredText)+Ta(a.PoweredText),e.value=l(a.PoweredText)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;"+
p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v)+O(a)+K(a)+M(a)+fa(a);v.value=l(a.Text);switch(h.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==a.handOperated&&(v.style+="actuator=man;")}break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;"+p(a,b)+g(a,b)+
q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,110),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,
1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2WindowBlock":v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v)+O(a.Title)+K(a.Title)+M(a.Title);v.value=
l(a.Title);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,30),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):
new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2DialogBlock":v.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v)+n(a.Text);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,f,30),"part=1;resizeHeight=0;");e.vertex=!0;v.insert(e);e.style+=P+n(a.Title);e.value=l(a.Title);k=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");
k.geometry.relative=!0;k.geometry.offset=new mxPoint(-25,-10);k.vertex=!0;e.insert(k);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,30),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");
1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2AccordionBlock":v.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);e=[];A=25;for(d=0;d<=a.Panels-1;d++)e[d]=d<a.Selected-1?new mxCell("",
new mxGeometry(0,d*A,f,A),"part=1;fillColor=#000000;fillOpacity=25;"):d==a.Selected-1?new mxCell("",new mxGeometry(0,d*A,f,A),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,c-(a.Panels-a.Selected)*A+(d-a.Selected)*A,f,A),"part=1;fillColor=#000000;fillOpacity=25;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=n(a["Panel_"+(d+1)]),e[d].value=l(a["Panel_"+(d+1)]),e[d].style.includes(";align=")||(e[d].style+="align=left;spacingLeft=5;");var L=g(a,b),L=L.replace("strokeColor","fillColor2");""==
L&&(L="fillColor2=#000000;");1==a.vScroll&&(k=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-a.Selected*A-20-(a.Panels-a.Selected)*A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-a.Selected*A-(a.Panels-a.Selected)*A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(-20,a.Selected*A),k.vertex=!0,v.insert(k),v.style+=
"spacingRight=20;",k.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20-(a.Panels-a.Selected)*A),u.vertex=!0,v.insert(u),u.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));C=1==a.vScroll?new mxCell("",
new mxGeometry(0,a.Selected*A,f-20,c-a.Selected*A-20-(a.Panels-a.Selected)*A),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,a.Selected*A,f-20,c-a.Selected*A-(a.Panels-a.Selected)*A),"part=1;fillColor=none;strokeColor=none;");C.vertex=!0;v.insert(C);C.style+=n(a.Content_1);C.style.includes(";align=")||(C.style+="align=left;spacingLeft=5;");C.value=l(a.Content_1);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var e=[],k=[],A=25,ma=3,N=(f+
ma)/(a.Tabs+1),na=new mxCell("",new mxGeometry(0,A,f,c-A),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);for(d=0;d<=a.Tabs-1;d++)d==a.Selected-1?(k[d]=new mxCell("",new mxGeometry(10+d*N,0,N-ma,A),""),k[d].vertex=!0,v.insert(k[d]),k[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Tab_"+(d+1)])):(e[d]=new mxCell("",new mxGeometry(10+d*N,0,N-ma,A),"strokeColor=none;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+q(a,b)+r(a),k[d]=new mxCell("",new mxGeometry(0,
0,N-ma,A),"fillColor=#000000;fillOpacity=25;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=g(a,b)+m(a)+t(a)+n(a["Tab_"+(d+1)])),k[d].value=l(a["Tab_"+(d+1)]),k[d].style.includes(";align=")||(k[d].style+="align=left;spacingLeft=2;");L=g(a,b);L=L.replace("strokeColor","fillColor2");""==L&&(L="fillColor2=#000000;");1==a.vScroll&&(k=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,
0,20,c-A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(-20,A),k.vertex=!0,v.insert(k),v.style+="spacingRight=20;",k.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";e=[];k=[];A=25;ma=3;N=(f+ma)/a.Tabs;na=new mxCell("",new mxGeometry(0,A,f,c-A),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);for(d=0;d<=a.Tabs-1;d++)d==a.Selected-1?(k[d]=new mxCell("",new mxGeometry(d*N,0,N-ma,A),""),k[d].vertex=!0,v.insert(k[d]),
k[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Tab_"+(d+1)])):(e[d]=new mxCell("",new mxGeometry(d*N,0,N-ma,A),"strokeColor=none;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+q(a,b)+r(a),k[d]=new mxCell("",new mxGeometry(0,0,N-ma,A),"fillColor=#000000;fillOpacity=25;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=g(a,b)+m(a)+t(a)+n(a["Tab_"+(d+1)])),k[d].value=l(a["Tab_"+(d+1)]),k[d].style.includes(";align=")||(k[d].style+="align=left;spacingLeft=2;");L=g(a,b);L=L.replace("strokeColor",
"fillColor2");""==L&&(L="fillColor2=#000000;");1==a.vScroll&&(k=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(-20,A),k.vertex=!0,v.insert(k),v.style+="spacingRight=20;",k.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));
1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";e=[];k=[];ma=3;A=25+ma;N=80;Ra=
10;na=new mxCell("",new mxGeometry(N,0,f-N,c),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);for(d=0;d<=a.Tabs-1;d++)d==a.Selected-1?(k[d]=new mxCell("",new mxGeometry(0,Ra+d*A,N,A-ma),""),k[d].vertex=!0,v.insert(k[d]),k[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Tab_"+(d+1)])):(e[d]=new mxCell("",new mxGeometry(0,Ra+d*A,N,A-ma),"strokeColor=none;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+q(a,b)+r(a),k[d]=new mxCell("",new mxGeometry(0,
0,N,A-ma),"fillColor=#000000;fillOpacity=25;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=g(a,b)+m(a)+t(a)+n(a["Tab_"+(d+1)])),k[d].value=l(a["Tab_"+(d+1)]),k[d].style.includes(";align=")||(k[d].style+="align=left;spacingLeft=2;");L=g(a,b);L=L.replace("strokeColor","fillColor2");""==L&&(L="fillColor2=#000000;");1==a.vScroll&&(k=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,
0,20,c),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(-20,0),k.vertex=!0,v.insert(k),v.style+="spacingRight=20;",k.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(N,1,f-20-N,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(N,1,f-N,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";A=c/a.Options;e=[];k=[];for(d=0;d<a.Options;d++)e[d]=new mxCell("",new mxGeometry(0,d*A+.5*A-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Option_"+
(d+1)]),null!=a.Selected[d+1]&&1==a.Selected[d+1]&&(y=g(a,b),y=y.replace("strokeColor","fillColor"),""==y&&(y="fillColor=#000000;"),k[d]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=y+p(a,b)+g(a,b)+m(a)+t(a)),e[d].value=l(a["Option_"+(d+1)]);break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";N=f/a.Options;e=[];k=[];for(d=0;d<a.Options;d++)e[d]=new mxCell("",new mxGeometry(d*N,.5*
c-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Option_"+(d+1)]),null!=a.Selected[d+1]&&1==a.Selected[d+1]&&(y=g(a,b),y=y.replace("strokeColor","fillColor"),""==y&&(y="fillColor=#000000;"),k[d]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=y+p(a,b)+g(a,b)+m(a)+t(a)),
e[d].value=l(a["Option_"+(d+1)]);break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";A=c/a.Options;e=[];k=[];for(d=0;d<a.Options;d++)e[d]=new mxCell("",new mxGeometry(0,d*A+.5*A-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Option_"+(d+1)]),null!=a.Selected&&a.Selected==d+1&&(y=g(a,b),y=y.replace("strokeColor","fillColor"),
""==y&&(y="fillColor=#000000;"),k[d]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"shape=ellipse;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=y+p(a,b)+g(a,b)+m(a)+t(a)),e[d].value=l(a["Option_"+(d+1)]);break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";N=f/a.Options;e=[];k=[];for(d=0;d<a.Options;d++)e[d]=new mxCell("",new mxGeometry(d*N,.5*c-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Option_"+(d+1)]),null!=a.Selected&&a.Selected==d+1&&(y=g(a,b),y=y.replace("strokeColor","fillColor"),""==y&&(y="fillColor=#000000;"),k[d]=new mxCell("",new mxGeometry(2,2,6,6),"shape=ellipse;part=1;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=y+p(a,b)+g(a,b)+m(a)+t(a)),e[d].value=l(a["Option_"+(d+1)]);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;"+
p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a),"UI2VSliderBlock"==h.Class&&(v.style+="direction=south;"),v.style+="sliderPos="+100*a.ScrollVal+";"}return v}var kc=["GSDFDProcessBlock","GSDFDProcessBlock2","RoundedRectangleContainerBlock","UI2ButtonBlock","UMLStateBlock"],lc=["ProcessBlock","UMLActivationBlock"],Ub="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8 UMLEndBlock DefaultTextBlockNew iOSButton".split(" "),
oc="AWSAndroidBlock3 AWSiOSBlock3 AWSJavaBlock3 AWSJavaScript AWSNetBlock3 AWSNodeJSBlock3 AWSPHPBlock3 AWSPythonBlock3 AWSRubyBlock3 AWSXamarin AWSCLIBlock3 AWSEclipseToolkitBlock3 AWSVisualStudioToolkitBlock3 AWSWindowsPowershellToolkitBlock3 DefaultTextBlock RectangleContainerBlock UMLStartBlock UMLEndBlock DefaultTextBlockNew UMLHForkJoinBlock iOSButton".split(" "),Vb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8".split(" "),
mc=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],nc=["fpDoor"],nb={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"},ab={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",
HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon",DataBlock:"shape=parallelogram",DataBlockNew:"shape=parallelogram",DatabaseBlock:"shape=cylinder",DirectAccessStorageBlock:"shape=mxgraph.flowchart.direct_data",
InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",MergeBlock:"triangle;direction=south",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"shape=mxgraph.flowchart.annotation_1",
AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"fillColor=none;container=1",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24",CircleContainerBlock:"shape=ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",IsoscelesTriangleBlock:"triangle;direction=north",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",
PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon",OctagonBlock:"shape=mxgraph.basic.octagon",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",ShapeDiamondBlock:"rhombus",
UI2HotspotBlock:"opacity=50;strokeColor=none",AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape",AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",
AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up",AndroidIconExpand:"shape=mxgraph.ios7.misc.down",AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",
AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged",iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",
iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",iOSButton:"fillColor=none;strokeColor=none;",iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust",iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",
iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",iOSTimePicker:"mxCompositeShape",iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape",iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"shape=ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",
MindMapDiamondBlock:"shape=rhombus",MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",MindMapHexagonBlock:"shape=hexagon",MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",SMPage:"mxCompositeShape",SMHome:"mxCompositeShape",SMPrint:"mxCompositeShape",SMSearch:"mxCompositeShape",SMSettings:"mxCompositeShape",
SMSitemap:"mxCompositeShape",SMSuccess:"mxCompositeShape",SMVideo:"mxCompositeShape",SMAudio:"mxCompositeShape",SMCalendar:"mxCompositeShape",SMChart:"mxCompositeShape",SMCloud:"mxCompositeShape",SMDocument:"mxCompositeShape",SMForm:"mxCompositeShape",SMGame:"mxCompositeShape",SMUpload:"mxCompositeShape",UMLClassBlock:"",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",UMLPackageBlock:"shape=folder;tabPosition=left",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",
UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"shape=ellipse",UMLCircleContainerBlock:"shape=ellipse;container=1",UMLRectangleContainerBlock:"container=1",UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLStartBlock:"shape=ellipse;fillColor=#000000",UMLStateBlock:"rounded=1;arcSize=20",
UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"shape=ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff",UMLObjectBlock:"",UMLSendSignalBlock:"shape=mxgraph.sysml.sendSigAct",UMLReceiveSignalBlock:"shape=mxgraph.sysml.accEvent;flipH=1",UMLAcceptTimeEventActionBlock:"shape=mxgraph.sysml.timeEvent",UMLOffPageLinkBlock:"shape=mxgraph.sysml.sendSigAct;direction=south",
UMLMultiLanePoolBlock:"mxCompositeShape",UMLMultiLanePoolRotatedBlock:"mxCompositeShape",UMLMultidimensionalSwimlane:"mxCompositeShape",UMLActivationBlock:"",UMLDeletionBlock:"shape=mxgraph.sysml.x;strokeWidth=4",UMLSeqEntityBlock:"shape=mxgraph.electrical.radio.microphone_1;direction=north",UMLComponentBlock:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1",UMLComponentInterfaceBlock:"shape=ellipse",UMLComponentBoxBlock:"mxCompositeShape",UMLProvidedInterfaceBlock:"shape=lollipop;direction=south",
UMLRequiredInterfaceBlock:"shape=requires;direction=north",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"shape=ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1",BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",BPMNChoreography:"mxCompositeShape",BPMNConversation:"mxCompositeShape",BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",
BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"shape=ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",GSDFDProcessBlock:"shape=swimlane;rounded=1;arcSize=10",GSDFDProcessBlock2:"rounded=1;arcSize=10;",GSDFDDataStoreBlock:"mxCompositeShape",GSDFDDataStoreBlock2:"shape=partialRectangle;right=0",OrgBlock:"",DefaultTableBlock:"mxCompositeShape",
VSMCustomerSupplierBlock:"shape=mxgraph.lean_mapping.outside_sources",VSMDedicatedProcessBlock:"mxCompositeShape",VSMSharedProcessBlock:"mxCompositeShape",VSMWorkcellBlock:"mxCompositeShape",VSMDatacellBlock:"mxCompositeShape",VSMInventoryBlock:"mxCompositeShape",VSMSupermarketBlock:"mxCompositeShape",VSMPhysicalPullBlock:"shape=mxgraph.lean_mapping.physical_pull;direction=south",VSMFIFOLaneBlock:"mxCompositeShape",VSMSafetyBufferStockBlock:"mxCompositeShape",VSMExternalShipmentAirplaneBlock:"shape=mxgraph.lean_mapping.airplane_7",
VSMExternalShipmentForkliftBlock:"shape=mxgraph.lean_mapping.move_by_forklift",VSMExternalShipmentTruckBlock:"shape=mxgraph.lean_mapping.truck_shipment",VSMExternalShipmentBoatBlock:"shape=mxgraph.lean_mapping.boat_shipment",VSMProductionControlBlock:"mxCompositeShape",VSMOtherInformationBlock:"",VSMSequencedPullBallBlock:"shape=mxgraph.lean_mapping.sequenced_pull_ball",VSMMRPERPBlock:"shape=mxgraph.lean_mapping.mrp_erp;whiteSpace=wrap",VSMLoadLevelingBlock:"shape=mxgraph.lean_mapping.load_leveling",
VSMGoSeeBlock:"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1",VSMGoSeeProductionBlock:"mxCompositeShape",VSMVerbalInfoBlock:"shape=mxgraph.lean_mapping.verbal",VSMKaizenBurstBlock:"shape=mxgraph.lean_mapping.kaizen_lightening_burst",VSMOperatorBlock:"shape=mxgraph.lean_mapping.operator;flipV=1",VSMTimelineBlock:"mxCompositeShape",VSMQualityProblemBlock:"shape=mxgraph.lean_mapping.quality_problem",VSMProductionKanbanSingleBlock:"shape=card;size=18;flipH=1;",VSMProductionKanbanBatchBlock:"mxCompositeShape",
VSMWithdrawalKanbanBlock:"shape=mxgraph.lean_mapping.withdrawal_kanban",VSMSignalKanbanBlock:"shape=triangle;direction=south",VSMKanbanPostBlock:"shape=mxgraph.lean_mapping.kanban_post",VSMShipmentArrow:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.13",VSMPushArrow:"shape=mxgraph.lean_mapping.push_arrow",AWSElasticComputeCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.ec2",AWSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.instance",AWSInstancesBlock2:"strokeColor=none;shape=mxgraph.aws3.instances",
AWSAMIBlock2:"strokeColor=none;shape=mxgraph.aws3.ami",AWSDBonInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.db_on_instance",AWSInstanceCloudWatchBlock2:"strokeColor=none;shape=mxgraph.aws3.instance_with_cloudwatch",AWSElasticIPBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_ip",AWSHDFSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.hdfs_cluster",AWSAutoScalingBlock2:"strokeColor=none;shape=mxgraph.aws3.auto_scaling",AWSEC2OptimizedInstance2:"strokeColor=none;shape=mxgraph.aws3.optimized_instance",
"AWSAmazonEC2(Spotinstance)":"strokeColor=none;shape=mxgraph.aws3.spot_instance",AWSAmazonECR:"strokeColor=none;shape=mxgraph.aws3.ecr",AWSAmazonECS:"strokeColor=none;shape=mxgraph.aws3.ecs",AWSLambda2:"strokeColor=none;shape=mxgraph.aws3.lambda",AWSElasticLoadBalancing:"strokeColor=none;shape=mxgraph.aws3.elastic_load_balancing",AWSElasticLoadBlock2:"strokeColor=none;shape=mxgraph.aws3.classic_load_balancer",AWSDirectConnectBlock3:"strokeColor=none;shape=mxgraph.aws3.direct_connect",AWSElasticNetworkBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_network_interface",
AWSRoute53Block2:"strokeColor=none;shape=mxgraph.aws3.route_53",AWSHostedZoneBlock2:"strokeColor=none;shape=mxgraph.aws3.hosted_zone;fontColor=#FFFFFF;fontStyle=1",AWSRouteTableBlock2:"strokeColor=none;shape=mxgraph.aws3.route_table",AWSVPCBlock2:"strokeColor=none;shape=mxgraph.aws3.vpc",AWSVPNConnectionBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_connection",AWSVPNGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_gateway",AWSCustomerGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.customer_gateway",
AWSCustomerGatewayBlock3:"strokeColor=none;shape=mxgraph.aws3.customer_gateway",AWSInternetGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.internet_gateway",AWSRouterBlock2:"strokeColor=none;shape=mxgraph.aws3.router",AWSRouterBlock3:"strokeColor=none;shape=mxgraph.aws3.router","AWSAmazonVPC(endpoints)":"strokeColor=none;shape=mxgraph.aws3.endpoints","AWSAmazonVPC(flowlogs)":"strokeColor=none;shape=mxgraph.aws3.flow_logs","AWSAmazonVPC(VPCNATgateway)":"strokeColor=none;shape=mxgraph.aws3.vpc_nat_gateway",
AWSVPCPeering3:"strokeColor=none;shape=mxgraph.aws3.vpc_peering",AWSSimpleStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.s3",AWSBucketBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket;fontStyle=1;fontColor=#ffffff",AWSBuckethWithObjectsBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket_with_objects",AWSObjectBlock2:"strokeColor=none;shape=mxgraph.aws3.object;fontStyle=1;fontColor=#ffffff",AWSImportExportBlock2:"strokeColor=none;shape=mxgraph.aws3.import_export",AWSStorageGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.storage_gateway",
AWSElasticBlockStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSVolumeBlock3:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSSnapshotBlock2:"strokeColor=none;shape=mxgraph.aws3.snapshot;fontStyle=1;fontColor=#ffffff",AWSGlacierArchiveBlock3:"strokeColor=none;shape=mxgraph.aws3.archive",AWSGlacierVaultBlock3:"strokeColor=none;shape=mxgraph.aws3.vault",AWSAmazonEFS:"strokeColor=none;shape=mxgraph.aws3.efs",AWSGlacierBlock2:"strokeColor=none;shape=mxgraph.aws3.glacier",
AWSAWSImportExportSnowball:"strokeColor=none;shape=mxgraph.aws3.snowball",AWSStorageGatewayCachedVolumn2:"strokeColor=none;shape=mxgraph.aws3.cached_volume","AWSStorageGatewayNon-CachedVolumn2":"strokeColor=none;shape=mxgraph.aws3.non_cached_volume",AWSStorageGatewayVirtualTapeLibrary2:"strokeColor=none;shape=mxgraph.aws3.virtual_tape_library",AWSCloudFrontBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudfront",AWSDownloadDistBlock2:"strokeColor=none;shape=mxgraph.aws3.download_distribution",AWSStreamingBlock2:"strokeColor=none;shape=mxgraph.aws3.streaming_distribution",
AWSEdgeLocationBlock2:"strokeColor=none;shape=mxgraph.aws3.edge_location",AWSItemBlock2:"strokeColor=none;shape=mxgraph.aws3.item",AWSItemsBlock2:"strokeColor=none;shape=mxgraph.aws3.items",AWSAttributeBlock2:"strokeColor=none;shape=mxgraph.aws3.attribute",AWSAttributesBlock2:"strokeColor=none;shape=mxgraph.aws3.attributes",AWSRDBSBlock2:"strokeColor=none;shape=mxgraph.aws3.rds",AWSRDSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance",AWSRDSStandbyBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_standby_multi_az",
AWSRDSInstanceReadBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_read_replica",AWSOracleDBBlock2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance",AWSMySQLDBBlock2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance",AWSDynamoDBBlock2:"strokeColor=none;shape=mxgraph.aws3.dynamo_db",AWSSimpleDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb",AWSSimpleDatabaseDomainBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb_domain",AWSTableBlock2:"strokeColor=none;shape=mxgraph.aws3.table",
AWSAmazonRedShiftBlock3:"strokeColor=none;shape=mxgraph.aws3.redshift",AWSElastiCacheNodeBlock2:"strokeColor=none;shape=mxgraph.aws3.cache_node",AWSElastiCacheBlock2:"strokeColor=none;shape=mxgraph.aws3.elasticache",AWSDynamoDBGlobalSecondaryIndexes2:"strokeColor=none;shape=mxgraph.aws3.global_secondary_index",AWSAmazonElastiCacheMemcache2:"strokeColor=none;shape=mxgraph.aws3.memcached",AWSAmazonElastiCacheRedis2:"strokeColor=none;shape=mxgraph.aws3.redis",AWSAmazonRDSMSSQLInstance2:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance_2",
AWSMSSQLDBBlock3:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance",AWSAmazonRDSMySQLDBInstance2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance_2",AWSAmazonRDSOracleDBInstance2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance_2",AWSRDSReplicasetswithPIOP2:"strokeColor=none;shape=mxgraph.aws3.piop",AWSAmazonRDSPostgreSQL2:"strokeColor=none;shape=mxgraph.aws3.postgre_sql_instance",AWSRDSMasterSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_master",AWSRDSSlaveSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_slave",
"AWSAmazonRedshift(densecomputenode)":"strokeColor=none;shape=mxgraph.aws3.dense_compute_node","AWSAmazonRedshift(densestoragenode)":"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAWSDatabaseMigrationService:"strokeColor=none;shape=mxgraph.aws3.database_migration_service",AWSACM:"strokeColor=none;shape=mxgraph.aws3.certificate_manager",AWSAmazonInspector:"strokeColor=none;shape=mxgraph.aws3.inspector",AWSAWSCloudHSM:"strokeColor=none;shape=mxgraph.aws3.cloudhsm",AWSDirectoryService2:"strokeColor=none;shape=mxgraph.aws3.directory_service",
AWSAWSKMS:"strokeColor=none;shape=mxgraph.aws3.kms",AWSAWSWAF:"strokeColor=none;shape=mxgraph.aws3.waf","AWSACM(certificate-manager)":"strokeColor=none;shape=mxgraph.aws3.certificate_manager_2",AWSSESBlock2:"strokeColor=none;shape=mxgraph.aws3.ses",AWSEmailBlock2:"strokeColor=none;shape=mxgraph.aws3.email",AWSSNSBlock2:"strokeColor=none;shape=mxgraph.aws3.sns",AWSSQSBlock3:"strokeColor=none;shape=mxgraph.aws3.sqs",AWSQueueBlock2:"strokeColor=none;shape=mxgraph.aws3.queue",AWSMessageBlock2:"strokeColor=none;shape=mxgraph.aws3.message",
AWSDeciderBlock2:"strokeColor=none;shape=mxgraph.aws3.decider",AWSSWFBlock2:"strokeColor=none;shape=mxgraph.aws3.swf",AWSWorkerBlock2:"strokeColor=none;shape=mxgraph.aws3.worker",AWSCloudSearchBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudsearch",AWSCloudSearchMetadataBlock3:"strokeColor=none;shape=mxgraph.aws3.search_documents",AWSElasticTranscoder3:"strokeColor=none;shape=mxgraph.aws3.elastic_transcoder",AWSAmazonAPIGateway:"strokeColor=none;shape=mxgraph.aws3.api_gateway",AWSAppStream2:"strokeColor=none;shape=mxgraph.aws3.appstream",
AWSCloudFormationBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudformation",AWSDataPipelineBlock3:"strokeColor=none;shape=mxgraph.aws3.data_pipeline",AWSDataPipelineBlock2:"strokeColor=none;shape=mxgraph.aws3.data_pipeline",AWSTemplageBlock2:"strokeColor=none;shape=mxgraph.aws3.template",AWSStackBlock2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_cloudformation",AWSBeanStockBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk",AWSApplicationBlock2:"strokeColor=none;shape=mxgraph.aws3.application",
AWSBeanstalkDeploymentBlock3:"strokeColor=none;shape=mxgraph.aws3.deployment",AWSIAMBlock3:"strokeColor=none;shape=mxgraph.aws3.iam",AWSIAMSTSBlock3:"strokeColor=none;shape=mxgraph.aws3.sts",AWSIAMAddonBlock2:"strokeColor=none;shape=mxgraph.aws3.add_on",AWSCloudWatchBlock3:"strokeColor=none;shape=mxgraph.aws3.cloudwatch",AWSCloudWatchAlarmBlock2:"strokeColor=none;shape=mxgraph.aws3.alarm",AWSIAMSecurityTokenService2:"strokeColor=none;shape=mxgraph.aws3.sts_2",AWSIAMDataEncryptionKey2:"strokeColor=none;shape=mxgraph.aws3.data_encryption_key",
AWSIAMEncryptedData2:"strokeColor=none;shape=mxgraph.aws3.encrypted_data","AWSAWSIAM(long-termsecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential",AWSIAMMFAToken2:"strokeColor=none;shape=mxgraph.aws3.mfa_token",AWSIAMPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions_2",AWSIAMRoles2:"strokeColor=none;shape=mxgraph.aws3.role","AWSAWSIAM(temporarysecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential",AWSCloudTrail2:"strokeColor=none;shape=mxgraph.aws3.cloudtrail",
AWSConfig2:"strokeColor=none;shape=mxgraph.aws3.config",AWSOpsWorksBlock3:"strokeColor=none;shape=mxgraph.aws3.opsworks",AWSAWSServiceCatalog:"strokeColor=none;shape=mxgraph.aws3.service_catalog",AWSTrustedAdvisor2:"strokeColor=none;shape=mxgraph.aws3.trusted_advisor",AWSOpsWorksApps2:"strokeColor=none;shape=mxgraph.aws3.apps",AWSOpsWorksDeployments2:"strokeColor=none;shape=mxgraph.aws3.deployments",AWSOpsWorksInstances2:"strokeColor=none;shape=mxgraph.aws3.instances_2",AWSOpsWorksLayers2:"strokeColor=none;shape=mxgraph.aws3.layers",
AWSOpsWorksMonitoring2:"strokeColor=none;shape=mxgraph.aws3.monitoring",AWSOpsWorksPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions",AWSOpsWorksResources2:"strokeColor=none;shape=mxgraph.aws3.resources",AWSOpsWorksStack2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_opsworks",AWSMechanicalTurkBlock3:"strokeColor=none;shape=mxgraph.aws3.mechanical_turk",AWSHumanITBlock2:"strokeColor=none;shape=mxgraph.aws3.human_intelligence_tasks_hit",AWSAssignmentTaskBlock2:"strokeColor=none;shape=mxgraph.aws3.requester",
AWSWorkersBlock2:"strokeColor=none;shape=mxgraph.aws3.users",AWSRequesterBlock2:"strokeColor=none;shape=mxgraph.aws3.assignment_task",AWSAndroidBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#96BF3D",AWSiOSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#CFCFCF",AWSJavaBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#EE472A",AWSJavaScript:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#205E00",AWSNetBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#115193",
AWSNodeJSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#8CC64F",AWSPHPBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#5A69A4",AWSPythonBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#FFD44F",AWSRubyBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#AE1F23",AWSXamarin:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#4090D7",AWSCLIBlock3:"strokeColor=none;shape=mxgraph.aws3.cli;fillColor=#444444",AWSEclipseToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_eclipse;fillColor=#342074",
AWSVisualStudioToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_visual_studio;fillColor=#53B1CB",AWSWindowsPowershellToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_windows_powershell;fillColor=#737373",AWSAmazonElasticsearchService:"strokeColor=none;shape=mxgraph.aws3.elasticsearch_service",AWSElasticMapReduceBlock2:"strokeColor=none;shape=mxgraph.aws3.emr",AWSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.emr_cluster",AWSEMREngine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine",
AWSEMRMapRM3Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m3",AWSEMRMapRM5Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m5",AWSEMRMapRM7Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m7",AWSKinesis2:"strokeColor=none;shape=mxgraph.aws3.kinesis","AWSAmazonKinesis(AmazonKinesisAnalytics)":"strokeColor=none;shape=mxgraph.aws3.kinesis",AWSKinesisEnabledApp2:"strokeColor=none;shape=mxgraph.aws3.kinesis_enabled_app","AWSAmazonKinesis(AmazonKinesisFirehose)":"strokeColor=none;shape=mxgraph.aws3.kinesis_firehose",
"AWSAmazonKinesis(AmazonKinesisStreams)":"strokeColor=none;shape=mxgraph.aws3.kinesis_streams",AWSAmazonMachineLearning:"strokeColor=none;shape=mxgraph.aws3.machine_learning",AWSAmazonQuickSight:"strokeColor=none;shape=mxgraph.aws3.quicksight",AWSCognito2:"strokeColor=none;shape=mxgraph.aws3.cognito",AWSMobileAnalytics2:"strokeColor=none;shape=mxgraph.aws3.mobile_analytics",AWSAWSDeviceFarm:"strokeColor=none;shape=mxgraph.aws3.device_farm",AWSAWSMobileHub:"strokeColor=none;shape=mxgraph.aws3.mobile_hub;gradientColor=#AD688A;gradientDirection=east",
AWSTopicBlock2:"strokeColor=none;shape=mxgraph.aws3.topic_2;fontStyle=1;fontColor=#ffffff;verticalAlign=top;spacingTop=-5",AWSEmailNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.email_notification",AWSHTTPNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.http_notification",AWSAWSCodeCommit:"strokeColor=none;shape=mxgraph.aws3.codecommit",AWSCodeDeploy2:"strokeColor=none;shape=mxgraph.aws3.codedeploy",AWSAWSCodePipeline:"strokeColor=none;shape=mxgraph.aws3.codepipeline",AWSWorkDocs2:"strokeColor=none;shape=mxgraph.aws3.workdocs",
AWSAmazonWorkMail:"strokeColor=none;shape=mxgraph.aws3.workmail",AWSAmazonWorkSpaces2:"strokeColor=none;shape=mxgraph.aws3.workspaces",AWSAWSIoT:"strokeColor=none;shape=mxgraph.aws3.aws_iot","AWSAWSIoT(action)":"strokeColor=none;shape=mxgraph.aws3.action","AWSAWSIoT(actuator)":"strokeColor=none;shape=mxgraph.aws3.actuator","AWSAWSIoT(certificate)":"strokeColor=none;shape=mxgraph.aws3.certificate","AWSAWSIoT(desiredstate)":"strokeColor=none;shape=mxgraph.aws3.desired_state","AWSAWSIoT(hardwareboard)":"strokeColor=none;shape=mxgraph.aws3.hardware_board",
"AWSAWSIoT(HTTP2protocol)":"strokeColor=none;shape=mxgraph.aws3.http_2_protocol","AWSAWSIoT(HTTPprotocol)":"strokeColor=none;shape=mxgraph.aws3.http_protocol","AWSAWSIoT(MQTTprotocol)":"strokeColor=none;shape=mxgraph.aws3.mqtt_protocol","AWSAWSIoT(policy)":"strokeColor=none;shape=mxgraph.aws3.policy","AWSAWSIoT(reportedstate)":"strokeColor=none;shape=mxgraph.aws3.reported_state","AWSAWSIoT(rule)":"strokeColor=none;shape=mxgraph.aws3.rule","AWSAWSIoT(sensor)":"strokeColor=none;shape=mxgraph.aws3.sensor",
"AWSAWSIoT(servo)":"strokeColor=none;shape=mxgraph.aws3.servo","AWSAWSIoT(shadow)":"strokeColor=none;shape=mxgraph.aws3.shadow","AWSAWSIoT(simulator)":"strokeColor=none;shape=mxgraph.aws3.simulator","AWSAWSIoT(thingbank)":"strokeColor=none;shape=mxgraph.aws3.bank","AWSAWSIoT(thingbicycle)":"strokeColor=none;shape=mxgraph.aws3.bicycle","AWSAWSIoT(thingcamera)":"strokeColor=none;shape=mxgraph.aws3.camera","AWSAWSIoT(thingcar)":"strokeColor=none;shape=mxgraph.aws3.car","AWSAWSIoT(thingcart)":"strokeColor=none;shape=mxgraph.aws3.cart",
"AWSAWSIoT(thingcoffeepot)":"strokeColor=none;shape=mxgraph.aws3.coffee_pot","AWSAWSIoT(thingdoorlock)":"strokeColor=none;shape=mxgraph.aws3.door_lock","AWSAWSIoT(thingfactory)":"strokeColor=none;shape=mxgraph.aws3.factory","AWSAWSIoT(thinggeneric)":"strokeColor=none;shape=mxgraph.aws3.generic","AWSAWSIoT(thinghouse)":"strokeColor=none;shape=mxgraph.aws3.house","AWSAWSIoT(thinglightbulb)":"strokeColor=none;shape=mxgraph.aws3.lightbulb","AWSAWSIoT(thingmedicalemergency)":"strokeColor=none;shape=mxgraph.aws3.medical_emergency",
"AWSAWSIoT(thingpoliceemergency)":"strokeColor=none;shape=mxgraph.aws3.police_emergency","AWSAWSIoT(thingthermostat)":"strokeColor=none;shape=mxgraph.aws3.thermostat","AWSAWSIoT(thingtravel)":"strokeColor=none;shape=mxgraph.aws3.travel","AWSAWSIoT(thingutility)":"strokeColor=none;shape=mxgraph.aws3.utility","AWSAWSIoT(thingwindfarm)":"strokeColor=none;shape=mxgraph.aws3.windfarm","AWSAWSIoT(topic)":"strokeColor=none;shape=mxgraph.aws3.topic",AWSCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.cloud",
AWSVPCloudBlock3:"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud",AWSUserBlock2:"strokeColor=none;shape=mxgraph.aws3.user",AWSUsersBlock2:"strokeColor=none;shape=mxgraph.aws3.users",AWSClientBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console",AWSMobileClientBlock2:"strokeColor=none;shape=mxgraph.aws3.mobile_client",AWSGenericDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws3.generic_database",AWSDiskBlock3:"strokeColor=none;shape=mxgraph.aws3.disk",AWSTapeStorageBlock3:"strokeColor=none;shape=mxgraph.aws3.tape_storage",
AWSMediaBlock2:"strokeColor=none;shape=mxgraph.aws3.multimedia",AWSDataCenterBlock2:"strokeColor=none;shape=mxgraph.aws3.corporate_data_center",AWSServerBlock2:"strokeColor=none;shape=mxgraph.aws3.traditional_server",AWSInternetBlock2:"strokeColor=none;shape=mxgraph.aws2.non-service_specific.internet",AWSForumsBlock3:"strokeColor=none;shape=mxgraph.aws3.forums",AWSManagementBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console",AWSAmazonElasticCacheNode2:"strokeColor=none;shape=mxgraph.aws3.cache_node",
AWSAmazonRedshiftDW1Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_compute_node",AWSAmazonRedshiftDW2Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAmazonRedshiftSSDFamilyCluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAmazonRoute53RouteTable2:"strokeColor=none;shape=mxgraph.aws3.route_table",AWSSubnetBlock2:"strokeColor=none;shape=mxgraph.aws3.permissions",AWSRoundedRectangleContainerBlock2:"mxCompositeShape",ACAccessControlBlock:"strokeColor=none;shape=mxgraph.azure.access_control",
ACAPIAppsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_app",ACAPIManagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_management",ACAppInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.application_insights",ACAppServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.app_service",ACAutoscalingBlock:"strokeColor=none;shape=mxgraph.azure.autoscale",ACAzureActiveDirectoryBlock:"strokeColor=none;shape=mxgraph.azure.azure_active_directory",ACAzurealertBlock:"strokeColor=none;shape=mxgraph.azure.azure_alert",
ACAzureAutomationBlock:"strokeColor=none;shape=mxgraph.azure.automation",ACAzureBatchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_batch",ACAzureRedisBlock:"strokeColor=none;shape=mxgraph.azure.azure_cache",ACAzureFilesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_files_service",ACAzureloadbalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_automatic_load_balancer",ACAzureMarketplaceBlock:"strokeColor=none;shape=mxgraph.azure.azure_marketplace",ACAzureRightManagementRMSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_rights_management_rms",
ACAzureSDKBlock:"strokeColor=none;shape=mxgraph.azure.azure_sdk",ACAzureSearchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_search",ACAzureSQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.sql_database_sql_azure",ACAzuresubscriptionBlock:"strokeColor=none;shape=mxgraph.azure.azure_subscription",ACAzureWebsitesBlock:"strokeColor=none;shape=mxgraph.azure.azure_website",ACBackupServiceBlock:"strokeColor=none;shape=mxgraph.azure.backup_service",ACBitbucketcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.bitbucket_code_source",
ACBizTalkServicesBlock:"strokeColor=none;shape=mxgraph.azure.biztalk_services",ACCloudServiceBlock:"strokeColor=none;shape=mxgraph.azure.cloud_service",ACCodePlexBlock:"strokeColor=none;shape=mxgraph.azure.codeplex_code_source",ACContentDeliveryNetworkBlock:"strokeColor=none;shape=mxgraph.azure.content_delivery_network",ACDataFactoryBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.data_factory",ACDocumentDBBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.documentdb",ACDropboxcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.dropbox_code_source",
ACEventsHubBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.event_hubs",ACExpressRouteBlock:"strokeColor=none;shape=mxgraph.azure.express_route",ACGitHubBlock:"strokeColor=none;shape=mxgraph.azure.github_code",ACGitrepositoryBlock:"strokeColor=none;shape=mxgraph.azure.git_repository",ACHDInsightBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hdinsight",ACHealthmonitoringBlock:"strokeColor=none;shape=mxgraph.azure.health_monitoring",ACHealthyBlock:"strokeColor=none;shape=mxgraph.azure.healthy",
ACHybridConnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connections",ACBizTalkhybridconnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connection_manager",ACKeyVaultBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.key_vault",ACLogicAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.logic_app",ACMachineLearningBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.machine_learning",ACMediaServicesBlock:"strokeColor=none;shape=mxgraph.azure.media_service",ACMicrosoftaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_account",
ACMicrosoftAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_azure",ACMobileEngagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_engagement",ACMobileServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_app",ACMultiFactorAuthBlock:"strokeColor=none;shape=mxgraph.azure.multi_factor_authentication",ACMySQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.mysql_database",ACNotificationHubsBlock:"strokeColor=none;shape=mxgraph.azure.notification_hub",ACNotificationtopicBlock:"strokeColor=none;shape=mxgraph.azure.notification_topic",
ACOperationalInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.operational_insights",ACOSimageBlock:"strokeColor=none;shape=mxgraph.azure.operating_system_image",ACRemoteAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.remoteapp",ACrpdRemotingfileBlock:"strokeColor=none;shape=mxgraph.azure.rdp_remoting_file",ACSchedulerBlock:"strokeColor=none;shape=mxgraph.azure.scheduler",ACServiceBusBlock:"strokeColor=none;shape=mxgraph.azure.service_bus",ACServiceBusQueueBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_queues",
ACServiceBusRelayBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_relay",ACServiceBusTopicBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_topics_and_subscriptions",ACServiceEndpointBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_endpoint",ACServicepackageBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_package",ACSiteRecoveryBlock:"strokeColor=none;shape=mxgraph.azure.hyper_v_recovery_manager",ACSQLdatabasegenericBlock:"strokeColor=none;shape=mxgraph.azure.sql_database",
ACSQLdatasyncBlock:"strokeColor=none;shape=mxgraph.azure.sql_datasync",ACSQLreportingdeprecatedBlock:"strokeColor=none;shape=mxgraph.azure.sql_reporting",ACStartuptaskBlock:"strokeColor=none;shape=mxgraph.azure.startup_task",ACStorageAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_storage",ACStorageblobBlock:"strokeColor=none;shape=mxgraph.azure.storage_blob",ACStoragequeueBlock:"strokeColor=none;shape=mxgraph.azure.storage_queue",ACStoragetableBlock:"strokeColor=none;shape=mxgraph.azure.storage_table",
ACStorSimpleBlock:"strokeColor=none;shape=mxgraph.azure.storsimple",ACStreamAnalyticsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.stream_analytics",ACTrafficManagerBlock:"strokeColor=none;shape=mxgraph.azure.traffic_manager",ACAlienBlock:"strokeColor=none;shape=mxgraph.azure.unidentified_code_object",ACVHDBlock:"strokeColor=none;shape=mxgraph.azure.vhd",ACVHDdatadiskBlock:"strokeColor=none;shape=mxgraph.azure.vhd_data_disk",ACVirtualmachineBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine",
ACVirtualmachinecontainerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.virtual_machine_container",ACVirtualnetworkBlock:"strokeColor=none;shape=mxgraph.azure.virtual_network",ACVisualStudioOnlineBlock:"strokeColor=none;shape=mxgraph.azure.visual_studio_online",ACVMsymbolonlyBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine_feature",ACWebJobsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.webjobs",ACWebroleBlock:"strokeColor=none;shape=mxgraph.azure.web_role",ACWebrolesBlock:"strokeColor=none;shape=mxgraph.azure.web_roles",
ACWorkaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.work_account",ACWorkerroleBlock:"strokeColor=none;shape=mxgraph.azure.worker_role",ACWorkerrolesBlock:"strokeColor=none;shape=mxgraph.azure.worker_roles",ADNSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_dns",ACLoadBalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_load_balancer_feature",ACResourceGroupBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.resource_group",ACVPNGatewayBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.vpn_gateway",
AEActiveDirectoryFSPBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.d",AEADFSBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.ad_fs",AEAndroidPhoneBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.android_phone",AEappblankfortextBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_blank",AEAppGenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.app_generic",AEAppserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_server",AEBackuplocalBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_local",
AEBackuponlineBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_online",AECalendarBlock:"strokeColor=none;shape=mxgraph.mscae.general.calendar",AECertificateBlock:"strokeColor=none;shape=mxgraph.azure.certificate",AEClientAppBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.client_application",AECloudBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.internet",AEClusterserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.cluster_server",AECodefileBlock:"strokeColor=none;shape=mxgraph.azure.code_file",
AEConnectorsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.connectors",AEDatabasegenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_generic",AEDatabaseserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_server",AEDatabasesyncBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_synchronization",AEDeviceBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.device",AEDirectaccessBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.direct_access_feature",
AEDocumentBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.document",AEDomaincontrollerBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.domain_controller",AEEnterpriseBuildingBlock:"strokeColor=none;shape=mxgraph.azure.enterprise",AEFilegeneralBlock:"strokeColor=none;shape=mxgraph.azure.file",AEFilterBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.filter",AEFirewallBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.firewall",AEFolderBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.folder",
AEGatewayBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.gateway",AEGenericcodeBlock:"strokeColor=none;shape=mxgraph.azure.code_file",AEGraphBlock:"strokeColor=none;shape=mxgraph.mscae.general.graph",AEHealthmonitoringBlock:"strokeColor=none;shape=mxgraph.azure.health_monitoring",AEHealthyBlock:"strokeColor=none;shape=mxgraph.azure.healthy",AEImportgenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.import_generic",AEInternetBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.internet",
AEKeyboardBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.keyboard",AEKeypermissionsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.key_permissions",AELaptopcomputerBlock:"strokeColor=none;shape=mxgraph.azure.laptop",AELoadbalancerBlock:"strokeColor=none;shape=mxgraph.azure.load_balancer_generic",AELoadTestingBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.load_testing",AELockprotectedBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.lock",AELockunprotectedBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.lock_unlocked",
@ -370,26 +397,26 @@ iOS7IconMail:"shape=mxgraph.ios7.icons.mail",iOS7IconDocument:"shape=mxgraph.ios
iOS7IconContacts:"shape=mxgraph.ios7.icons.user",iOS7IconGlobal:"shape=mxgraph.ios7.icons.globe",iOS7IconSettings:"shape=mxgraph.ios7.icons.settings",iOS7IconAirplay:"shape=mxgraph.ios7.icons.move_to_folder",iOS7IconCamera:"shape=mxgraph.ios7.icons.camera",iOS7IconAirplane:"shape=mxgraph.signs.transportation.airplane_6;direction=south",iOS7IconCalculator:"shape=mxgraph.ios7.icons.calculator",iOS7IconPreferences:"shape=mxgraph.ios7.icons.most_viewed",iOS7IconPhone:"shape=mxgraph.signs.tech.telephone_3",
iOS7IconKeypad:"shape=mxgraph.ios7.icons.keypad",iOS7IconVoicemail:"shape=mxgraph.ios7.icons.tape",iOS7IconStar:"shape=mxgraph.ios7.icons.star","iOS7IconMost Viewed":"shape=mxgraph.ios7.icons.most_viewed",iOS7IconVideo:"shape=mxgraph.ios7.icons.video_conversation","iOS7IconVolumne Controls":"shape=mxgraph.ios7.icons.volume","iOS7IconLocation pin":"shape=mxgraph.ios7.icons.location",iOS7IconCalendar:"shape=mxgraph.ios7.icons.calendar",iOS7IconAlarm:"shape=mxgraph.ios7.icons.alarm_clock",iOS7IconClock:"shape=mxgraph.ios7.icons.clock",
iOS7IconTimer:"shape=mxgraph.ios7.icons.gauge","iOS7IconVolume down":"shape=mxgraph.ios7.icons.silent",iOS7IconVolume:"shape=mxgraph.ios7.icons.volume_2","iOS7IconVolume up":"shape=mxgraph.ios7.icons.loud",iOS7IconRepeat:"shape=mxgraph.ios7.icons.reload",iOS7IconRewind:"shape=mxgraph.ios7.icons.backward",iOS7IconPlay:"shape=mxgraph.ios7.icons.play",iOS7IconPause:"shape=mxgraph.ios7.icons.pause","iOS7IconFast forward":"shape=mxgraph.ios7.icons.forward",iOS7IconControls:"shape=mxgraph.ios7.icons.controls",
iOS7IconPrivacy:"shape=mxgraph.ios7.icons.privacy",iOS7IconLink:"shape=mxgraph.ios7.icons.link",iOS7IconLight:"shape=mxgraph.ios7.icons.flashlight",iOS7IconBrightness:"shape=mxgraph.ios7.icons.sun",iOS7IconHeart:"shape=mxgraph.ios7.icons.heart",iOS7IconJava:"shape=mxgraph.ios7.icons.cup",iOS7IconBox:"shape=mxgraph.ios7.icons.bag",iOS7IconEye:"shape=mxgraph.ios7.icons.eye","iOS7IconDo not disturb":"shape=mxgraph.ios7.icons.moon",UI2BrowserBlock:"shape=mxgraph.mockup.containers.browserWindow;mainText=,",
UI2WindowBlock:"shape=mxgraph.mockup.containers.window;strokeColor2=#008cff;strokeColor3=#c4c4c4;fontColor=#666666;mainText=",UI2DialogBlock:"mxCompositeShape",UI2AreaBlock:"",UI2ElementBlock:"",UI2AccordionBlock:"mxCompositeShape",UI2TabBarContainerBlock:"mxCompositeShape",UI2TabBar2ContainerBlock:"mxCompositeShape",UI2VTabBarContainerBlock:"mxCompositeShape",UI2VScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar;direction=north",UI2HScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar",UI2VerticalSplitterBlock:"shape=mxgraph.mockup.forms.splitter;direction=north",
UI2HorizontalSplitterBlock:"shape=mxgraph.mockup.forms.splitter",UI2ImageBlock:"shape=mxgraph.mockup.graphics.simpleIcon",UI2VideoBlock:"shape=mxgraph.mockup.containers.videoPlayer;barHeight=30",UI2AudioBlock:"shape=mxgraph.mockup.misc.playbackControls",UI2MapBlock:"shape=mxgraph.mockup.misc.map",UI2BarChartBlock:"shape=mxgraph.mockup.graphics.barChart;strokeColor=none;strokeColor2=none",UI2ColumnChartBlock:"shape=mxgraph.mockup.graphics.columnChart;strokeColor=none;strokeColor2=none",UI2LineChartBlock:"shape=mxgraph.mockup.graphics.lineChart;strokeColor=none",
iOS7IconPrivacy:"shape=mxgraph.ios7.icons.privacy",iOS7IconLink:"shape=mxgraph.ios7.icons.link",iOS7IconLight:"shape=mxgraph.ios7.icons.flashlight",iOS7IconBrightness:"shape=mxgraph.ios7.icons.sun",iOS7IconHeart:"shape=mxgraph.ios7.icons.heart",iOS7IconJava:"shape=mxgraph.ios7.icons.cup",iOS7IconBox:"shape=mxgraph.ios7.icons.bag",iOS7IconEye:"shape=mxgraph.ios7.icons.eye","iOS7IconDo not disturb":"shape=mxgraph.ios7.icons.moon",UI2BrowserBlock:"mxCompositeShape",UI2WindowBlock:"mxCompositeShape",
UI2DialogBlock:"mxCompositeShape",UI2AreaBlock:"",UI2ElementBlock:"",UI2AccordionBlock:"mxCompositeShape",UI2TabBarContainerBlock:"mxCompositeShape",UI2TabBar2ContainerBlock:"mxCompositeShape",UI2VTabBarContainerBlock:"mxCompositeShape",UI2VScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar;direction=north",UI2HScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar",UI2VerticalSplitterBlock:"shape=mxgraph.mockup.forms.splitter;direction=north",UI2HorizontalSplitterBlock:"shape=mxgraph.mockup.forms.splitter",
UI2ImageBlock:"shape=mxgraph.mockup.graphics.simpleIcon",UI2VideoBlock:"shape=mxgraph.mockup.containers.videoPlayer;barHeight=30",UI2AudioBlock:"shape=mxgraph.mockup.misc.playbackControls",UI2MapBlock:"shape=mxgraph.mockup.misc.map",UI2BarChartBlock:"shape=mxgraph.mockup.graphics.barChart;strokeColor=none;strokeColor2=none",UI2ColumnChartBlock:"shape=mxgraph.mockup.graphics.columnChart;strokeColor=none;strokeColor2=none",UI2LineChartBlock:"shape=mxgraph.mockup.graphics.lineChart;strokeColor=none",
UI2PieChartBlock:"shape=mxgraph.mockup.graphics.pieChart;parts=10,20,35",UI2WebcamBlock:"shape=mxgraph.mockup.containers.userMale",UI2CaptchaBlock:"shape=mxgraph.mockup.text.captcha;mainText=",UI2ButtonBlock:"rounded=1;arcSize=25;",UI2CheckBoxBlock:"mxCompositeShape",UI2HorizontalCheckBoxBlock:"mxCompositeShape",UI2RadioBlock:"mxCompositeShape",UI2HorizontalRadioBlock:"mxCompositeShape",UI2ColorPickerBlock:"shape=mxgraph.mockup.forms.colorPicker;chosenColor=#aaddff",UI2TextInputBlock:"",UI2SelectBlock:"shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666",
UI2VSliderBlock:"shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;sliderPos=20;handleStyle=circle;direction=north",UI2HSliderBlock:"shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;sliderPos=20;handleStyle=circle",UI2SearchBlock:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",UI2NumericStepperBlock:"shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;fillColor=#000000;mainText=",UI2TableBlock:"mxCompositeShape",UI2ButtonBarBlock:"mxCompositeShape",
UI2VerticalButtonBarBlock:"mxCompositeShape",UI2LinkBarBlock:"mxCompositeShape",UI2BreadCrumbsBlock:"mxCompositeShape",UI2MenuBarBlock:"mxCompositeShape",UI2AtoZBlock:"shape=mxgraph.mockup.text.alphanumeric;linkText=;fontStyle=4",UI2PaginationBlock:"shape=mxgraph.mockup.navigation.pagination;linkText=;fontStyle=4",UI2ContextMenuBlock:"mxCompositeShape",UI2TreePaneBlock:"mxCompositeShape",UI2PlaybackControlsBlock:"shape=mxgraph.mockup.misc.playbackControls;fillColor=#ffffff;strokeColor=#999999;fillColor2=#99ddff;strokeColor2=none;fillColor3=#ffffff;strokeColor3=none",
Image_ui_formatting_toolbar:"shape=mxgraph.mockup.menus_and_buttons.font_style_selector_2",UI2ProgressBarBlock:"shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos=25",UI2HelpIconBlock:"shape=mxgraph.mockup.misc.help_icon",UI2BraceNoteBlock:"shape=mxgraph.mockup.markup.curlyBrace;direction=north",UI2TooltipBlock:"shape=mxgraph.basic.rectangular_callout;flipV=1",UI2CalloutBlock:"shape=ellipse",UI2AlertBlock:"mxCompositeShape",Image_ipad_ipad:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iPadGrayBackgroundBlock:"",
Image_ipad_top_bar:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc",Image_ipad_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_ipad_alert_dialog:"mxCompositeShape",Image_ipad_dialog:"mxCompositeShape",Image_ipad_popover:"shape=mxgraph.ios.iOption;barPos=50;pointerPos=top;buttonText=",Image_ipad_table:"mxCompositeShape",Image_ipad_vtab:"mxCompositeShape",Image_ipad_button_black:"",Image_ipad_button_blue:"",Image_ipad_button_grayblue:"",Image_ipad_button_red:"",
Image_ipad_back_button_gray:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#eeeeee;fillColor2=#aaaaaa",Image_ipad_back_button_black:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#888888;fillColor2=#000000",Image_ipad_sort_handle:"shape=mxgraph.ios7.icons.options",Image_ipad_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_ipad_email_name:"",Image_ipad_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",
Image_ipad_keyboard_portrait:"shape=mxgraph.ios.iKeybLett",Image_ipad_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_ipad_large_tabbed_button:"mxCompositeShape",Image_ipad_sort_button:"mxCompositeShape",Image_ipad_tab_bar:"mxCompositeShape",Image_ipad_slider:"shape=mxgraph.ios.iSlider;barPos=20",Image_ipad_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",
Image_ipad_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",Image_ipad_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_arrow:"shape=mxgraph.ios7.misc.more",Image_ipad_checkmark:"shape=mxgraph.ios7.misc.check",Image_ipad_check_off:"shape=ellipse",Image_ipad_location_dot:"shape=ellipse",Image_ipad_mark_as_read:"shape=ellipse",Image_ipad_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",
Image_ipad_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",Image_ipad_radio_off:"shape=ellipse",Image_ipad_checkbox_off:"absoluteArcSize=1;arcSize=6;rounded=1",Image_ipad_indicator:"absoluteArcSize=1;arcSize=6;rounded=1;fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_iphone_4:"shape=mxgraph.ios.iPhone;bg=bgGreen",Image_iphone_bg_black:"",Image_iphone_bg_gray:"",Image_iphone_bg_stripe_drk:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",
Image_iphone_bg_stripe_lt:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",Image_iphone_bg_white:"",Image_iphone_top_bar_app:"shape=mxgraph.ios.iAppBar",Image_iphone_top_bar_home:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc;strokeWidth=1",Image_iphone_bar_top:"",Image_iphone_bar_semi_trans_black:"",Image_iphone_bar_semi_trans_blue:"",Image_iphone_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_iphone_table:"mxCompositeShape",
Image_iphone_table_w_buttons:"mxCompositeShape",Image_iphone_table_w_icons:"mxCompositeShape",Image_iphone_list:"mxCompositeShape",Image_iphone_gray_grad_list:"",Image_iphone_dialog:"mxCompositeShape",Image_iphone_scroll_pane:"mxCompositeShape",Image_iphone_alpha_list:"shape=mxgraph.ios.iAlphaList",Image_iphone_button_black:"",Image_iphone_button_blue:"",Image_iphone_button_grayblue:"",Image_iphone_button_red:"",Image_iphone_button_lg_light:"",Image_iphone_button_lg_dark:"",Image_iphone_button_lg_green:"",
Image_iphone_button_lg_red:"",Image_iphone_button_lg_yellow:"",Image_iphone_button_xl_green:"",Image_iphone_back_button:"shape=mxgraph.ios.iButtonBack;strokeColor=#444444;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_iphone_sort_handle:"shape=mxgraph.ios7.icons.options",Image_iphone_slider:"shape=mxgraph.ios.iSlider;barPos=60",Image_iphone_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",
Image_iphone_email_name:"",Image_iphone_switch_off:"shape=mxgraph.android.switch_off;fillColor=#666666",Image_iphone_keyboard_button_blue:"",Image_iphone_keyboard_letters:"shape=mxgraph.ios.iKeybLett",Image_iphone_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_iphone_large_tabbed_button:"mxCompositeShape",Image_iphone_sort_button:"mxCompositeShape",Image_iphone_tab_bar:"mxCompositeShape",Image_iphone_picker_multi:"mxCompositeShape",Image_iphone_picker_web:"mxCompositeShape",Image_iphone_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",
UI2VSliderBlock:"mxCompositeShape",UI2HSliderBlock:"mxCompositeShape",UI2SearchBlock:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",UI2NumericStepperBlock:"shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;fillColor=#000000;mainText=",UI2TableBlock:"mxCompositeShape",UI2ButtonBarBlock:"mxCompositeShape",UI2VerticalButtonBarBlock:"mxCompositeShape",UI2LinkBarBlock:"mxCompositeShape",UI2BreadCrumbsBlock:"mxCompositeShape",UI2MenuBarBlock:"mxCompositeShape",
UI2AtoZBlock:"shape=mxgraph.mockup.text.alphanumeric;linkText=;fontStyle=4",UI2PaginationBlock:"shape=mxgraph.mockup.navigation.pagination;linkText=;fontStyle=4",UI2ContextMenuBlock:"mxCompositeShape",UI2TreePaneBlock:"mxCompositeShape",UI2PlaybackControlsBlock:"shape=mxgraph.mockup.misc.playbackControls;fillColor=#ffffff;strokeColor=#999999;fillColor2=#99ddff;strokeColor2=none;fillColor3=#ffffff;strokeColor3=none",Image_ui_formatting_toolbar:"shape=mxgraph.mockup.menus_and_buttons.font_style_selector_2",
UI2ProgressBarBlock:"shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos=25",UI2HelpIconBlock:"shape=mxgraph.mockup.misc.help_icon",UI2BraceNoteBlock:"shape=mxgraph.mockup.markup.curlyBrace;direction=north",UI2TooltipBlock:"shape=mxgraph.basic.rectangular_callout;flipV=1",UI2CalloutBlock:"shape=ellipse",UI2AlertBlock:"mxCompositeShape",Image_ipad_ipad:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iPadGrayBackgroundBlock:"",Image_ipad_top_bar:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc",
Image_ipad_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_ipad_alert_dialog:"mxCompositeShape",Image_ipad_dialog:"mxCompositeShape",Image_ipad_popover:"shape=mxgraph.ios.iOption;barPos=50;pointerPos=top;buttonText=",Image_ipad_table:"mxCompositeShape",Image_ipad_vtab:"mxCompositeShape",Image_ipad_button_black:"",Image_ipad_button_blue:"",Image_ipad_button_grayblue:"",Image_ipad_button_red:"",Image_ipad_back_button_gray:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#eeeeee;fillColor2=#aaaaaa",
Image_ipad_back_button_black:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#888888;fillColor2=#000000",Image_ipad_sort_handle:"shape=mxgraph.ios7.icons.options",Image_ipad_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_ipad_email_name:"",Image_ipad_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_ipad_keyboard_portrait:"shape=mxgraph.ios.iKeybLett",Image_ipad_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",
Image_ipad_large_tabbed_button:"mxCompositeShape",Image_ipad_sort_button:"mxCompositeShape",Image_ipad_tab_bar:"mxCompositeShape",Image_ipad_slider:"shape=mxgraph.ios.iSlider;barPos=20",Image_ipad_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_ipad_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",
Image_ipad_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_arrow:"shape=mxgraph.ios7.misc.more",Image_ipad_checkmark:"shape=mxgraph.ios7.misc.check",Image_ipad_check_off:"shape=ellipse",Image_ipad_location_dot:"shape=ellipse",Image_ipad_mark_as_read:"shape=ellipse",Image_ipad_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_ipad_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",
Image_ipad_radio_off:"shape=ellipse",Image_ipad_checkbox_off:"absoluteArcSize=1;arcSize=6;rounded=1",Image_ipad_indicator:"absoluteArcSize=1;arcSize=6;rounded=1;fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_iphone_4:"shape=mxgraph.ios.iPhone;bg=bgGreen",Image_iphone_bg_black:"",Image_iphone_bg_gray:"",Image_iphone_bg_stripe_drk:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",Image_iphone_bg_stripe_lt:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",
Image_iphone_bg_white:"",Image_iphone_top_bar_app:"shape=mxgraph.ios.iAppBar",Image_iphone_top_bar_home:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc;strokeWidth=1",Image_iphone_bar_top:"",Image_iphone_bar_semi_trans_black:"",Image_iphone_bar_semi_trans_blue:"",Image_iphone_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_iphone_table:"mxCompositeShape",Image_iphone_table_w_buttons:"mxCompositeShape",Image_iphone_table_w_icons:"mxCompositeShape",
Image_iphone_list:"mxCompositeShape",Image_iphone_gray_grad_list:"",Image_iphone_dialog:"mxCompositeShape",Image_iphone_scroll_pane:"mxCompositeShape",Image_iphone_alpha_list:"shape=mxgraph.ios.iAlphaList",Image_iphone_button_black:"",Image_iphone_button_blue:"",Image_iphone_button_grayblue:"",Image_iphone_button_red:"",Image_iphone_button_lg_light:"",Image_iphone_button_lg_dark:"",Image_iphone_button_lg_green:"",Image_iphone_button_lg_red:"",Image_iphone_button_lg_yellow:"",Image_iphone_button_xl_green:"",
Image_iphone_back_button:"shape=mxgraph.ios.iButtonBack;strokeColor=#444444;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_iphone_sort_handle:"shape=mxgraph.ios7.icons.options",Image_iphone_slider:"shape=mxgraph.ios.iSlider;barPos=60",Image_iphone_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_email_name:"",
Image_iphone_switch_off:"shape=mxgraph.android.switch_off;fillColor=#666666",Image_iphone_keyboard_button_blue:"",Image_iphone_keyboard_letters:"shape=mxgraph.ios.iKeybLett",Image_iphone_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_iphone_large_tabbed_button:"mxCompositeShape",Image_iphone_sort_button:"mxCompositeShape",Image_iphone_tab_bar:"mxCompositeShape",Image_iphone_picker_multi:"mxCompositeShape",Image_iphone_picker_web:"mxCompositeShape",Image_iphone_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",
Image_iphone_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_iphone_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",Image_iphone_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_iphone_arrow:"shape=mxgraph.ios7.misc.more",Image_iphone_checkmark:"shape=mxgraph.ios7.misc.check",Image_iphone_check_off:"shape=ellipse",Image_iphone_location_dot:"shape=ellipse",
Image_iphone_mark_as_read:"shape=ellipse",Image_iphone_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_iphone_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",Image_iphone_radio_off:"shape=ellipse",Image_iphone_checkbox_off:"",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:""},Jb=function(f,k,h){h.includes(f)||h.push(f);if(f in k){var c=k[f];
c.id=f;if(null!=c.Members)for(var a in c.Members)h=Jb(a,k,h)}return h};EditorUi.prototype.pasteLucidChart=function(f,k,h,c){var a=this.editor.graph;a.getModel().beginUpdate();try{var l=function(c,f){var g=null!=f.Endpoint1.Block?b[f.Endpoint1.Block]:null,k=null!=f.Endpoint2.Block?b[f.Endpoint2.Block]:null,h;h=new mxCell("",new mxGeometry(0,0,100,100),"html=1;");h.geometry.relative=!0;h.edge=!0;Tb(h,c);var l=Sa(c).Properties,m=null!=l?l.TextAreas:c.TextAreas;if(null!=m){for(var n=0;null!=m["t"+n];){var q=
m["t"+n];h=Ta(q,h);n++}for(n=1;null!=m["m"+n];)q=m["m"+n],h=Ta(q,h,c),n++;null!=m.Text&&(h=Ta(m,h,c));m=null!=l?l.TextAreas:c.TextAreas;null!=m.Message&&(h=Ta(m.Message,h,c))}null==g&&null!=f.Endpoint1&&h.geometry.setTerminalPoint(new mxPoint(Math.round(.6*f.Endpoint1.x),Math.round(.6*f.Endpoint1.y)),!0);null==k&&null!=f.Endpoint2&&h.geometry.setTerminalPoint(new mxPoint(Math.round(.6*f.Endpoint2.x),Math.round(.6*f.Endpoint2.y)),!1);d.push(a.addCell(h,null,null,g,k))},d=[],b={},m=[],n=[],q=0;if(null!=
f.Groups)for(var t in f.Groups){var r=f.Groups[t];r.id=t;if(1==r.Hidden&&null!=r.Members){n.includes(t)||n.push(t);for(var u in r.Members)n=Jb(u,f.Groups,n)}}if(null!=f.Blocks)for(t in f.Blocks)r=f.Blocks[t],r.id=t,n.includes(t)||(u=!1,null!=Wa[r.Class]&&"mxCompositeShape"==Wa[r.Class]&&(b[r.id]=lc(r,d,a),m.push(r),u=!0),u||(b[r.id]=lb(r),m.push(r)));else for(q=0;q<f.Objects.length;q++)r=f.Objects[q],r.IsBlock&&null!=r.Action&&null!=r.Action.Properties&&(b[r.id]=lb(r)),m.push(r);m.sort(function(a,
b){a=Sa(a);b=Sa(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(q=0;q<m.length;q++){var r=m[q],y=b[r.id];null!=y?d.push(a.addCell(y)):r.IsLine&&null!=r.Action&&null!=r.Action.Properties&&l(r,r.Action.Properties)}if(null!=f.Lines)for(t in f.Lines)n.includes(t)||(r=f.Lines[t],l(r,r));if(c&&null!=k&&null!=h){a.isGridEnabled()&&(k=a.snap(k),h=a.snap(h));var I=a.getBoundingBoxFromGeometry(d,!0);null!=I&&a.moveCells(d,k-I.x,h-I.y)}a.setSelectionCells(d)}finally{a.getModel().endUpdate()}a.isSelectionEmpty()||
Image_iphone_mark_as_read:"shape=ellipse",Image_iphone_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_iphone_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",Image_iphone_radio_off:"shape=ellipse",Image_iphone_checkbox_off:"",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:""},Nb=function(g,l,m){m.includes(g)||m.push(g);if(g in l){var b=l[g];
b.id=g;if(null!=b.Members)for(var a in b.Members)m=Nb(a,l,m)}return m};EditorUi.prototype.pasteLucidChart=function(g,l,m,b){var a=this.editor.graph;a.getModel().beginUpdate();try{var h=function(b,g){var d=null!=g.Endpoint1.Block?c[g.Endpoint1.Block]:null,l=null!=g.Endpoint2.Block?c[g.Endpoint2.Block]:null,h;h=new mxCell("",new mxGeometry(0,0,100,100),"html=1;");h.geometry.relative=!0;h.edge=!0;Xb(h,b);var m=Xa(b).Properties,n=null!=m?m.TextAreas:b.TextAreas;if(null!=n){for(var p=0;null!=n["t"+p];){var q=
n["t"+p];h=Ya(q,h);p++}for(p=1;null!=n["m"+p];)q=n["m"+p],h=Ya(q,h,b),p++;null!=n.Text&&(h=Ya(n,h,b));n=null!=m?m.TextAreas:b.TextAreas;null!=n.Message&&(h=Ya(n.Message,h,b))}null==d&&null!=g.Endpoint1&&h.geometry.setTerminalPoint(new mxPoint(Math.round(.6*g.Endpoint1.x),Math.round(.6*g.Endpoint1.y)),!0);null==l&&null!=g.Endpoint2&&h.geometry.setTerminalPoint(new mxPoint(Math.round(.6*g.Endpoint2.x),Math.round(.6*g.Endpoint2.y)),!1);f.push(a.addCell(h,null,null,d,l))},f=[],c={},n=[],p=[],q=0;if(null!=
g.Groups)for(var t in g.Groups){var r=g.Groups[t];r.id=t;if(1==r.Hidden&&null!=r.Members){p.includes(t)||p.push(t);for(var w in r.Members)p=Nb(w,g.Groups,p)}}if(null!=g.Blocks)for(t in g.Blocks)r=g.Blocks[t],r.id=t,p.includes(t)||(w=!1,null!=ab[r.Class]&&"mxCompositeShape"==ab[r.Class]&&(c[r.id]=pc(r,f,a),n.push(r),w=!0),w||(c[r.id]=pb(r),n.push(r)));else for(q=0;q<g.Objects.length;q++)r=g.Objects[q],r.IsBlock&&null!=r.Action&&null!=r.Action.Properties&&(c[r.id]=pb(r)),n.push(r);n.sort(function(a,
b){a=Xa(a);b=Xa(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(q=0;q<n.length;q++){var r=n[q],B=c[r.id];null!=B?f.push(a.addCell(B)):r.IsLine&&null!=r.Action&&null!=r.Action.Properties&&h(r,r.Action.Properties)}if(null!=g.Lines)for(t in g.Lines)p.includes(t)||(r=g.Lines[t],h(r,r));if(b&&null!=l&&null!=m){a.isGridEnabled()&&(l=a.snap(l),m=a.snap(m));var K=a.getBoundingBoxFromGeometry(f,!0);null!=K&&a.moveCells(f,l-K.x,m-K.y)}a.setSelectionCells(f)}finally{a.getModel().endUpdate()}a.isSelectionEmpty()||
(a.scrollCellToVisible(a.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(a.view.getState(a.getSelectionCell())))}})();

11
war/js/reader.min.js vendored
View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+y.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;window.mxLoadResources=window.mxLoadResources||!1;window.mxLanguage=window.mxLanguage||"en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.7",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.8",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||
@ -946,8 +946,9 @@ mxCellRenderer.registerShape(mxConstants.SHAPE_LABEL,mxLabel);mxCellRenderer.pro
mxCellRenderer.prototype.createIndicatorShape=function(a){a.shape.indicatorShape=this.getShape(a.view.graph.getIndicatorShape(a))};mxCellRenderer.prototype.getShape=function(a){return null!=a?mxCellRenderer.prototype.defaultShapes[a]:null};mxCellRenderer.prototype.getShapeConstructor=function(a){var b=this.getShape(a.style[mxConstants.STYLE_SHAPE]);null==b&&(b=a.view.graph.getModel().isEdge(a.cell)?this.defaultEdgeShape:this.defaultVertexShape);return b};
mxCellRenderer.prototype.configureShape=function(a){a.shape.apply(a);a.shape.image=a.view.graph.getImage(a);a.shape.indicatorColor=a.view.graph.getIndicatorColor(a);a.shape.indicatorStrokeColor=a.style[mxConstants.STYLE_INDICATOR_STROKECOLOR];a.shape.indicatorGradientColor=a.view.graph.getIndicatorGradientColor(a);a.shape.indicatorDirection=a.style[mxConstants.STYLE_INDICATOR_DIRECTION];a.shape.indicatorImage=a.view.graph.getIndicatorImage(a);this.postConfigureShape(a)};
mxCellRenderer.prototype.postConfigureShape=function(a){null!=a.shape&&(this.resolveColor(a,"indicatorColor",mxConstants.STYLE_FILLCOLOR),this.resolveColor(a,"indicatorGradientColor",mxConstants.STYLE_GRADIENTCOLOR),this.resolveColor(a,"fill",mxConstants.STYLE_FILLCOLOR),this.resolveColor(a,"stroke",mxConstants.STYLE_STROKECOLOR),this.resolveColor(a,"gradient",mxConstants.STYLE_GRADIENTCOLOR))};
mxCellRenderer.prototype.resolveColor=function(a,b,c){var d=a.shape[b],e=a.view.graph,f=null;"inherit"==d?f=e.model.getParent(a.cell):"swimlane"==d?(f=null!=e.model.getTerminal(a.cell,!1)?e.model.getTerminal(a.cell,!1):a.cell,f=e.getSwimlane(f),c=e.swimlaneIndicatorColorAttribute):"indicated"==d&&(a.shape[b]=a.shape.indicatorColor);null!=f&&(d=e.getView().getState(f),a.shape[b]=null,null!=d&&(a.shape[b]=null!=d.shape&&"indicatorColor"!=b?d.shape[b]:d.style[c]))};
mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
mxCellRenderer.prototype.checkPlaceholderStyles=function(a){if(null!=a.style)for(var b=["inherit","swimlane","indicated"],c=[mxConstants.STYLE_FILLCOLOR,mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_GRADIENTCOLOR],d=0;d<c.length;d++)if(0<=mxUtils.indexOf(b,a.style[c[d]]))return!0;return!1};
mxCellRenderer.prototype.resolveColor=function(a,b,c){var d=a.shape[b],e=a.view.graph,f=null;"inherit"==d?f=e.model.getParent(a.cell):"swimlane"==d?(a.shape[b]=c==mxConstants.STYLE_STROKECOLOR?"#000000":"#ffffff",f=null!=e.model.getTerminal(a.cell,!1)?e.model.getTerminal(a.cell,!1):a.cell,f=e.getSwimlane(f),c=e.swimlaneIndicatorColorAttribute):"indicated"==d&&(a.shape[b]=a.shape.indicatorColor);null!=f&&(d=e.getView().getState(f),a.shape[b]=null,null!=d&&(a.shape[b]=null!=d.shape&&"indicatorColor"!=
b?d.shape[b]:d.style[c]))};mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
mxCellRenderer.prototype.createLabel=function(a,b){var c=a.view.graph;c.getModel().isEdge(a.cell);if(0<a.style[mxConstants.STYLE_FONTSIZE]||null==a.style[mxConstants.STYLE_FONTSIZE]){var d=c.isHtmlLabel(a.cell)||null!=b&&mxUtils.isNode(b);a.text=new this.defaultTextShape(b,new mxRectangle,a.style[mxConstants.STYLE_ALIGN]||mxConstants.ALIGN_CENTER,c.getVerticalAlign(a),a.style[mxConstants.STYLE_FONTCOLOR],a.style[mxConstants.STYLE_FONTFAMILY],a.style[mxConstants.STYLE_FONTSIZE],a.style[mxConstants.STYLE_FONTSTYLE],
a.style[mxConstants.STYLE_SPACING],a.style[mxConstants.STYLE_SPACING_TOP],a.style[mxConstants.STYLE_SPACING_RIGHT],a.style[mxConstants.STYLE_SPACING_BOTTOM],a.style[mxConstants.STYLE_SPACING_LEFT],a.style[mxConstants.STYLE_HORIZONTAL],a.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],a.style[mxConstants.STYLE_LABEL_BORDERCOLOR],c.isWrapping(a.cell)&&c.isHtmlLabel(a.cell),c.isLabelClipped(a.cell),a.style[mxConstants.STYLE_OVERFLOW],a.style[mxConstants.STYLE_LABEL_PADDING],mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION,
mxConstants.DEFAULT_TEXT_DIRECTION));a.text.opacity=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_OPACITY,100);a.text.dialect=d?mxConstants.DIALECT_STRICTHTML:a.view.graph.dialect;a.text.style=a.style;a.text.state=a;this.initializeLabel(a,a.text);var e=!1,f=function(b){var d=a;if(mxClient.IS_TOUCH||e)d=mxEvent.getClientX(b),b=mxEvent.getClientY(b),b=mxUtils.convertPoint(c.container,d,b),d=c.view.getState(c.getCellAt(b.x,b.y));return d};mxEvent.addGestureListeners(a.text.node,mxUtils.bind(this,function(b){this.isLabelEvent(a,
@ -984,8 +985,8 @@ mxCellRenderer.prototype.insertStateAfter=function(a,b,c){for(var d=this.getShap
a.view.graph.container;)g=g.parentNode;null!=g&&null!=g.nextSibling?g.nextSibling!=d[e].node&&d[e].node.parentNode.insertBefore(d[e].node,g.nextSibling):d[e].node.parentNode.appendChild(d[e].node)}else null!=d[e].node.parentNode.firstChild&&d[e].node.parentNode.firstChild!=d[e].node&&d[e].node.parentNode.insertBefore(d[e].node,d[e].node.parentNode.firstChild);f?c=d[e].node:b=d[e].node}return[b,c]};mxCellRenderer.prototype.getShapesForState=function(a){return[a.shape,a.text,a.control]};
mxCellRenderer.prototype.redraw=function(a,b,c){b=this.redrawShape(a,b,c);null==a.shape||null!=c&&!c||(this.redrawLabel(a,b),this.redrawCellOverlays(a,b),this.redrawControl(a,b))};
mxCellRenderer.prototype.redrawShape=function(a,b,c){var d=a.view.graph.model,e=!1;null!=a.shape&&null!=a.shape.style&&null!=a.style&&a.shape.style[mxConstants.STYLE_SHAPE]!=a.style[mxConstants.STYLE_SHAPE]&&(a.shape.destroy(),a.shape=null);null==a.shape&&null!=a.view.graph.container&&a.cell!=a.view.currentRoot&&(d.isVertex(a.cell)||d.isEdge(a.cell))?(a.shape=this.createShape(a),null!=a.shape&&(a.shape.antiAlias=this.antiAlias,this.createIndicatorShape(a),this.initializeShape(a),this.createCellOverlays(a),
this.installListeners(a),a.view.graph.selectionCellsHandler.updateHandler(a))):null==a.shape||mxUtils.equalEntries(a.shape.style,a.style)||(a.shape.resetStyles(),this.configureShape(a),a.view.graph.selectionCellsHandler.updateHandler(a),b=!0);null!=a.shape&&(this.createControl(a),b||this.isShapeInvalid(a,a.shape))&&(null!=a.absolutePoints?(a.shape.points=a.absolutePoints.slice(),a.shape.bounds=null):(a.shape.points=null,a.shape.bounds=new mxRectangle(a.x,a.y,a.width,a.height)),a.shape.scale=a.view.scale,
null==c||c?this.doRedrawShape(a):a.shape.updateBoundingBox(),e=!0);return e};mxCellRenderer.prototype.doRedrawShape=function(a){a.shape.redraw()};mxCellRenderer.prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.absolutePoints&&!b.bounds.equals(a)||null!=a.absolutePoints&&!mxUtils.equalPoints(b.points,a.absolutePoints)};
this.installListeners(a),a.view.graph.selectionCellsHandler.updateHandler(a))):b||null==a.shape||mxUtils.equalEntries(a.shape.style,a.style)&&!this.checkPlaceholderStyles(a)||(a.shape.resetStyles(),this.configureShape(a),a.view.graph.selectionCellsHandler.updateHandler(a),b=!0);null!=a.shape&&(this.createControl(a),b||this.isShapeInvalid(a,a.shape))&&(null!=a.absolutePoints?(a.shape.points=a.absolutePoints.slice(),a.shape.bounds=null):(a.shape.points=null,a.shape.bounds=new mxRectangle(a.x,a.y,a.width,
a.height)),a.shape.scale=a.view.scale,null==c||c?this.doRedrawShape(a):a.shape.updateBoundingBox(),e=!0);return e};mxCellRenderer.prototype.doRedrawShape=function(a){a.shape.redraw()};mxCellRenderer.prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.absolutePoints&&!b.bounds.equals(a)||null!=a.absolutePoints&&!mxUtils.equalPoints(b.points,a.absolutePoints)};
mxCellRenderer.prototype.destroy=function(a){null!=a.shape&&(null!=a.text&&(a.text.destroy(),a.text=null),null!=a.overlays&&(a.overlays.visit(function(a,c){c.destroy()}),a.overlays=null),null!=a.control&&(a.control.destroy(),a.control=null),a.shape.destroy(),a.shape=null)};
var mxEdgeStyle={EntityRelation:function(a,b,c,d,e){var f=a.view,g=f.graph;d=mxUtils.getValue(a.style,mxConstants.STYLE_SEGMENT,mxConstants.ENTITY_SEGMENT)*f.scale;var h=a.absolutePoints,k=h[0],l=h[h.length-1],h=!1;if(null!=k)b=new mxCellState,b.x=k.x,b.y=k.y;else if(null!=b){var m=mxUtils.getPortConstraints(b,a,!0,mxConstants.DIRECTION_MASK_NONE);m!=mxConstants.DIRECTION_MASK_NONE&&m!=mxConstants.DIRECTION_MASK_WEST+mxConstants.DIRECTION_MASK_EAST?h=m==mxConstants.DIRECTION_MASK_WEST:(k=g.getCellGeometry(b.cell),
k.relative?h=.5>=k.x:null!=c&&(h=c.x+c.width<b.x))}else return;k=!0;null!=l?(c=new mxCellState,c.x=l.x,c.y=l.y):null!=c&&(m=mxUtils.getPortConstraints(c,a,!1,mxConstants.DIRECTION_MASK_NONE),m!=mxConstants.DIRECTION_MASK_NONE&&m!=mxConstants.DIRECTION_MASK_WEST+mxConstants.DIRECTION_MASK_EAST?k=m==mxConstants.DIRECTION_MASK_WEST:(a=g.getCellGeometry(c.cell),a.relative?k=.5>=a.x:null!=b&&(k=b.x+b.width<c.x)));null!=b&&null!=c&&(a=h?b.x:b.x+b.width,b=f.getRoutingCenterY(b),g=k?c.x:c.x+c.width,c=f.getRoutingCenterY(c),

1133
war/js/viewer.min.js vendored

File diff suppressed because it is too large Load diff