draw.io is a JavaScript, client-side editor for general diagramming.
26.1.1 release
David Benson8cbe3a86fd43
diff --git a/ChangeLog b/ChangeLogindex ead3a89d9..0f73851ae 100644--- a/ChangeLog+++ b/ChangeLog@@ -1,3 +1,11 @@+14-MAR-2025: 26.1.1++- Adds fill-/strokeColorStyles for XML stencils+- Fixes text selection on shape drag from sidebar [jgraph/drawio-desktop#2015]+- [conf cloud] Fixes import libraries error handling+- Updates placeholders in resize preview [jgraph/drawio#4958]+- Find/replace sets focus on search input [jgraph/drawio#4959]+05-MAR-2025: 26.1.0- Tenant for OneDrive fix [jgraph/drawio#4905]diff --git a/VERSION b/VERSIONindex be5f09d0a..478eceeb4 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-26.1.0\ No newline at end of file+26.1.1\ No newline at end of filediff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.jsindex 51fdf7502..3491ef745 100644--- a/src/main/webapp/js/app.min.js+++ b/src/main/webapp/js/app.min.js@@ -64,7 +64,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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||"mxgraph";-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.1.0",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.1.1",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&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:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().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:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||@@ -257,10 +257,10 @@ mxForm.prototype.addCombo=function(a,b,c){var d=document.createElement("select")mxForm.prototype.addField=function(a,b){var c=document.createElement("tr"),d=document.createElement("td");mxUtils.write(d,a);c.appendChild(d);d=document.createElement("td");d.appendChild(b);c.appendChild(d);this.body.appendChild(c);return b};function mxImage(a,b,c,d,e){this.src=a;this.width=null!=b?b:this.width;this.height=null!=c?c:this.height;this.x=null!=d?d:this.x;this.y=null!=e?e:this.y}mxImage.prototype.src=null;mxImage.prototype.width=0;mxImage.prototype.height=0;mxImage.prototype.x=0;mxImage.prototype.y=0;function mxDivResizer(a,b){"div"==a.nodeName.toLowerCase()&&(null==b&&(b=window),this.div=a,a=mxUtils.getCurrentStyle(a),null!=a&&(this.resizeWidth="auto"==a.width,this.resizeHeight="auto"==a.height),mxEvent.addListener(b,"resize",mxUtils.bind(this,function(c){this.handlingResize||(this.handlingResize=!0,this.resize(),this.handlingResize=!1)})),this.resize())}mxDivResizer.prototype.resizeWidth=!0;mxDivResizer.prototype.resizeHeight=!0;mxDivResizer.prototype.handlingResize=!1;mxDivResizer.prototype.resize=function(){var a=this.getDocumentWidth(),b=this.getDocumentHeight(),c=parseInt(this.div.style.left),d=parseInt(this.div.style.right),e=parseInt(this.div.style.top),f=parseInt(this.div.style.bottom);this.resizeWidth&&!isNaN(c)&&!isNaN(d)&&0<=c&&0<=d&&0<a-d-c&&(this.div.style.width=a-d-c+"px");this.resizeHeight&&!isNaN(e)&&!isNaN(f)&&0<=e&&0<=f&&0<b-e-f&&(this.div.style.height=b-e-f+"px")};mxDivResizer.prototype.getDocumentWidth=function(){return document.body.clientWidth};-mxDivResizer.prototype.getDocumentHeight=function(){return document.body.clientHeight};function mxDragSource(a,b){this.element=a;this.dropHandler=b;mxEvent.addGestureListeners(a,mxUtils.bind(this,function(c){this.mouseDown(c)}));mxEvent.addListener(a,"dragstart",function(c){mxEvent.consume(c)});this.eventConsumer=function(c,d){c=d.getProperty("eventName");d=d.getProperty("event");c!=mxEvent.MOUSE_DOWN&&d.consume()}}mxDragSource.prototype.element=null;mxDragSource.prototype.dropHandler=null;-mxDragSource.prototype.dragOffset=null;mxDragSource.prototype.dragElement=null;mxDragSource.prototype.previewElement=null;mxDragSource.prototype.previewOffset=null;mxDragSource.prototype.enabled=!0;mxDragSource.prototype.currentGraph=null;mxDragSource.prototype.currentDropTarget=null;mxDragSource.prototype.currentPoint=null;mxDragSource.prototype.currentGuide=null;mxDragSource.prototype.currentHighlight=null;mxDragSource.prototype.autoscroll=!0;mxDragSource.prototype.guidesEnabled=!0;-mxDragSource.prototype.gridEnabled=!0;mxDragSource.prototype.highlightDropTargets=!0;mxDragSource.prototype.dragElementZIndex=100;mxDragSource.prototype.dragElementOpacity=70;mxDragSource.prototype.checkEventSource=!0;mxDragSource.prototype.isEnabled=function(){return this.enabled};mxDragSource.prototype.setEnabled=function(a){this.enabled=a};mxDragSource.prototype.isGuidesEnabled=function(){return this.guidesEnabled};mxDragSource.prototype.setGuidesEnabled=function(a){this.guidesEnabled=a};-mxDragSource.prototype.isGridEnabled=function(){return this.gridEnabled};mxDragSource.prototype.setGridEnabled=function(a){this.gridEnabled=a};mxDragSource.prototype.getGraphForEvent=function(a){return null};mxDragSource.prototype.getDropTarget=function(a,b,c,d){return a.getCellAt(b,c)};mxDragSource.prototype.createDragElement=function(a){return this.element.cloneNode(!0)};mxDragSource.prototype.createPreviewElement=function(a){return null};+mxDivResizer.prototype.getDocumentHeight=function(){return document.body.clientHeight};function mxDragSource(a,b){this.element=a;this.dropHandler=b;mxEvent.addGestureListeners(a,mxUtils.bind(this,function(c){this.mouseDown(c);mxEvent.consume(c)}));mxEvent.addListener(a,"dragstart",function(c){mxEvent.consume(c)});this.eventConsumer=function(c,d){c=d.getProperty("eventName");d=d.getProperty("event");c!=mxEvent.MOUSE_DOWN&&d.consume()}}mxDragSource.prototype.element=null;+mxDragSource.prototype.dropHandler=null;mxDragSource.prototype.dragOffset=null;mxDragSource.prototype.dragElement=null;mxDragSource.prototype.previewElement=null;mxDragSource.prototype.previewOffset=null;mxDragSource.prototype.enabled=!0;mxDragSource.prototype.currentGraph=null;mxDragSource.prototype.currentDropTarget=null;mxDragSource.prototype.currentPoint=null;mxDragSource.prototype.currentGuide=null;mxDragSource.prototype.currentHighlight=null;mxDragSource.prototype.autoscroll=!0;+mxDragSource.prototype.guidesEnabled=!0;mxDragSource.prototype.gridEnabled=!0;mxDragSource.prototype.highlightDropTargets=!0;mxDragSource.prototype.dragElementZIndex=100;mxDragSource.prototype.dragElementOpacity=70;mxDragSource.prototype.checkEventSource=!0;mxDragSource.prototype.isEnabled=function(){return this.enabled};mxDragSource.prototype.setEnabled=function(a){this.enabled=a};mxDragSource.prototype.isGuidesEnabled=function(){return this.guidesEnabled};+mxDragSource.prototype.setGuidesEnabled=function(a){this.guidesEnabled=a};mxDragSource.prototype.isGridEnabled=function(){return this.gridEnabled};mxDragSource.prototype.setGridEnabled=function(a){this.gridEnabled=a};mxDragSource.prototype.getGraphForEvent=function(a){return null};mxDragSource.prototype.getDropTarget=function(a,b,c,d){return a.getCellAt(b,c)};mxDragSource.prototype.createDragElement=function(a){return this.element.cloneNode(!0)};mxDragSource.prototype.createPreviewElement=function(a){return null};mxDragSource.prototype.isActive=function(){return null!=this.mouseMoveHandler};mxDragSource.prototype.reset=function(){null!=this.currentGraph&&(this.dragExit(this.currentGraph),this.currentGraph=null);this.removeDragElement();this.removeListeners();this.stopDrag()};mxDragSource.prototype.mouseDown=function(a){this.enabled&&!mxEvent.isConsumed(a)&&null==this.mouseMoveHandler&&(this.startDrag(a),this.mouseMoveHandler=mxUtils.bind(this,this.mouseMove),this.mouseUpHandler=mxUtils.bind(this,this.mouseUp),mxEvent.addGestureListeners(document,null,this.mouseMoveHandler,this.mouseUpHandler),mxClient.IS_TOUCH&&!mxEvent.isMouseEvent(a)&&(this.eventSource=mxEvent.getSource(a),mxEvent.addGestureListeners(this.eventSource,null,this.mouseMoveHandler,this.mouseUpHandler)))};mxDragSource.prototype.startDrag=function(a){this.dragElement=this.createDragElement(a);this.dragElement.style.position="absolute";this.dragElement.style.zIndex=this.dragElementZIndex;mxUtils.setOpacity(this.dragElement,this.dragElementOpacity);this.checkEventSource&&mxClient.IS_SVG&&(this.dragElement.style.pointerEvents="none")};mxDragSource.prototype.stopDrag=function(){this.removeDragElement()};@@ -528,7 +528,7 @@ mxStencil.prototype.evaluateTextAttribute=function(a,b,c){b=this.evaluateAttribumxStencil.prototype.drawShape=function(a,b,c,d,e,f,g){var k=a.states.slice(),l=mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,null);l=this.computeAspect(b.style,c,d,e,f,l);var m=Math.min(l.width,l.height);m="inherit"==this.strokewidth?Number(mxUtils.getNumber(b.style,mxConstants.STYLE_STROKEWIDTH,1)):Number(this.strokewidth)*m;a.setStrokeWidth(m);null!=b.style&&"1"==mxUtils.getValue(b.style,mxConstants.STYLE_POINTER_EVENTS,"0")&&(a.setStrokeColor(mxConstants.NONE),a.rect(c,d,e,f),a.stroke(),a.setStrokeColor(b.stroke));this.drawChildren(a,b,c,d,e,f,this.bgNode,l,!1,!0,g);this.drawChildren(a,b,c,d,e,f,this.fgNode,l,!0,!b.outline||null==b.style||0==mxUtils.getValue(b.style,mxConstants.STYLE_BACKGROUND_OUTLINE,0),g);a.states.length!=k.length&&(a.states=k)};mxStencil.prototype.drawChildren=function(a,b,c,d,e,f,g,k,l,m,n){if(null!=g&&0<e&&0<f)for(c=g.firstChild;null!=c;)c.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,c,k,l,m,n),c=c.nextSibling};mxStencil.prototype.computeAspect=function(a,b,c,d,e,f){a=b;b=d/this.w0;var g=e/this.h0;if(f=f==mxConstants.DIRECTION_NORTH||f==mxConstants.DIRECTION_SOUTH){g=d/this.h0;b=e/this.w0;var k=(d-e)/2;a+=k;c-=k}"fixed"==this.aspect&&(b=g=Math.min(b,g),f?(a+=(e-this.w0*b)/2,c+=(d-this.h0*g)/2):(a+=(d-this.w0*b)/2,c+=(e-this.h0*g)/2));return new mxRectangle(a,c,b,g)};-mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style&&(d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"));return d};+mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style?d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"):null==b.style||mxUtils.isValidColor(d)||(a=mxUtils.getValue(b.style,d,mxConstants.NONE),"default"==a&&(a="fillcolor"==c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor),d=a);return d};mxStencil.prototype.drawNode=function(a,b,c,d,e,f,g){var k=c.nodeName,l=d.x,m=d.y,n=d.width,p=d.height,q=Math.min(n,p);if("save"==k)a.save();else if("restore"==k)a.restore();else if(f){if("path"==k){a.begin();q=!0;if("1"==c.getAttribute("rounded")){q=!1;for(var r=Number(c.getAttribute("arcSize")),t=0,u=[],x=c.firstChild;null!=x;){if(x.nodeType==mxConstants.NODETYPE_ELEMENT){var y=x.nodeName;if("move"==y||"line"==y)"move"!=y&&0!=u.length||u.push([]),u[u.length-1].push(new mxPoint(l+Number(x.getAttribute("x"))*n,m+Number(x.getAttribute("y"))*p)),t++;else{q=!0;break}}x=x.nextSibling}if(!q&&0<t)for(n=0;n<u.length;n++)p=!1,m=u[n][0],l=u[n][u[n].length-1],m.x==l.x&&m.y==l.y&&(u[n].pop(),p=!0),this.addPoints(a,u[n],!0,r,p);else q=!0}if(q)for(x=c.firstChild;null!=x;)x.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,x,d,e,f,g),x=x.nextSibling}else if("close"==k)a.close();else if("move"==k)a.moveTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("line"==k)a.lineTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("quad"==k)a.quadTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p);else if("curve"==k)a.curveTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p,l+Number(c.getAttribute("x3"))*n,m+Number(c.getAttribute("y3"))*p);else if("arc"==k)a.arcTo(Number(c.getAttribute("rx"))*n,Number(c.getAttribute("ry"))*@@ -1701,9 +1701,9 @@ l,d.height+=2*d.height*l),null==k?k=d:(k=mxRectangle.fromRectangle(k),k.interseck.y+k.height&&(this.unscaledBounds.height-=this.unscaledBounds.y+this.unscaledBounds.height-k.y-k.height)));d=this.bounds;this.bounds=new mxRectangle((null!=this.parentState?this.parentState.x:e.x*f)+this.unscaledBounds.x*f,(null!=this.parentState?this.parentState.y:e.y*f)+this.unscaledBounds.y*f,this.unscaledBounds.width*f,this.unscaledBounds.height*f);g.relative&&null!=this.parentState&&(this.bounds.x+=this.state.x-this.parentState.x,this.bounds.y+=this.state.y-this.parentState.y);g=Math.cos(c);k=Math.sin(c);c=new mxPoint(this.bounds.getCenterX(),this.bounds.getCenterY());l=c.x-b.x;m=c.y-b.y;b=g*l-k*m-l;c=k*l+g*m-m;l=this.bounds.x-this.state.x;m=this.bounds.y-this.state.y;e=g*l-k*m;g=k*l+g*m;this.bounds.x+=b;this.bounds.y+=c;this.unscaledBounds.x=this.roundLength(this.unscaledBounds.x+b/f);this.unscaledBounds.y=this.roundLength(this.unscaledBounds.y+c/f);this.unscaledBounds.width=this.roundLength(this.unscaledBounds.width);this.unscaledBounds.height=this.roundLength(this.unscaledBounds.height);this.graph.isCellCollapsed(this.state.cell)||0==b&&0==c?this.childOffsetY=this.childOffsetX=0:(this.childOffsetX=this.state.x-this.bounds.x+e,this.childOffsetY=this.state.y-this.bounds.y+g);d.equals(this.bounds)||(this.livePreviewActive&&this.updateLivePreview(a),null!=this.preview?this.drawPreview():this.updateParentHighlight())};-mxVertexHandler.prototype.updateLivePreview=function(a){var b=this.graph.view.scale,c=this.graph.view.translate;a=this.state.clone();this.state.x=this.bounds.x;this.state.y=this.bounds.y;this.state.origin=new mxPoint(this.state.x/b-c.x,this.state.y/b-c.y);this.state.width=this.bounds.width;this.state.height=this.bounds.height;b=this.state.absoluteOffset;new mxPoint(b.x,b.y);this.state.absoluteOffset.x=0;this.state.absoluteOffset.y=0;b=this.graph.getCellGeometry(this.state.cell);null!=b&&(c=b.offset||-this.EMPTY_POINT,null==c||b.relative||(this.state.absoluteOffset.x=this.state.view.scale*c.x,this.state.absoluteOffset.y=this.state.view.scale*c.y),this.state.view.updateVertexLabelOffset(this.state));this.state.view.graph.cellRenderer.redraw(this.state,!0);this.state.view.invalidate(this.state.cell);this.state.invalid=!1;this.state.view.validate();this.redrawHandles();this.movePreviewToFront&&this.moveToFront();null!=this.state.control&&null!=this.state.control.node&&(this.state.control.node.style.visibility=-"hidden");this.state.setState(a)};+mxVertexHandler.prototype.updateLivePreview=function(a){a=this.graph.view.scale;var b=this.graph.view.translate,c=this.state.clone();this.state.x=this.bounds.x;this.state.y=this.bounds.y;this.state.origin=new mxPoint(this.state.x/a-b.x,this.state.y/a-b.y);this.state.width=this.bounds.width;this.state.height=this.bounds.height;b=this.state.absoluteOffset;new mxPoint(b.x,b.y);this.state.absoluteOffset.x=0;this.state.absoluteOffset.y=0;b=this.graph.getCellGeometry(this.state.cell);if(null!=b){var d=+b.offset||this.EMPTY_POINT;null==d||b.relative||(this.state.absoluteOffset.x=this.state.view.scale*d.x,this.state.absoluteOffset.y=this.state.view.scale*d.y);this.state.view.updateVertexLabelOffset(this.state)}b=this.state.cell.geometry.width;d=this.state.cell.geometry.height;this.state.cell.geometry.width=this.roundLength(this.bounds.width/a);this.state.cell.geometry.height=this.roundLength(this.bounds.height/a);this.state.view.graph.cellRenderer.redraw(this.state,!0);this.state.cell.geometry.width=+b;this.state.cell.geometry.height=d;this.state.view.invalidate(this.state.cell);this.state.invalid=!1;this.state.view.validate();this.redrawHandles();this.movePreviewToFront&&this.moveToFront();null!=this.state.control&&null!=this.state.control.node&&(this.state.control.node.style.visibility="hidden");this.state.setState(c)};mxVertexHandler.prototype.moveToFront=function(){if(null!=this.state.text&&null!=this.state.text.node&&null!=this.state.text.node.nextSibling||null!=this.state.shape&&null!=this.state.shape.node&&null!=this.state.shape.node.nextSibling&&(null==this.state.text||this.state.shape.node.nextSibling!=this.state.text.node))null!=this.state.shape&&null!=this.state.shape.node&&this.state.shape.node.parentNode.appendChild(this.state.shape.node),null!=this.state.text&&null!=this.state.text.node&&this.state.text.node.parentNode.appendChild(this.state.text.node)};mxVertexHandler.prototype.mouseUp=function(a,b){if(null!=this.index&&null!=this.state){var c=new mxPoint(b.getGraphX(),b.getGraphY());a=this.index;this.index=null;null==this.ghostPreview&&this.state.view.invalidate(this.state.cell,!1,!1);this.graph.getModel().beginUpdate();try{if(a<=mxEvent.CUSTOM_HANDLE){if(null!=this.customHandles&&null!=this.customHandles[mxEvent.CUSTOM_HANDLE-a]){var d=this.state.view.graph.getCellStyle(this.state.cell);this.customHandles[mxEvent.CUSTOM_HANDLE-a].active=!1;this.customHandles[mxEvent.CUSTOM_HANDLE-a].execute(b);null!=this.customHandles&&null!=this.customHandles[mxEvent.CUSTOM_HANDLE-a]&&(this.state.style=d,this.customHandles[mxEvent.CUSTOM_HANDLE-a].positionChanged())}}else if(a==mxEvent.ROTATION_HANDLE)if(null!=this.currentAlpha){var e=this.currentAlpha-(this.state.style[mxConstants.STYLE_ROTATION]||0);0!=e&&this.rotateCell(this.state.cell,e)}else this.rotateClick();else{var f=this.graph.isGridEnabledEvent(b.getEvent()),g=mxUtils.toRadians(this.state.style[mxConstants.STYLE_ROTATION]||"0"),@@ -2003,10 +2003,10 @@ Editor.prototype.setModified=function(a){this.modified=a};Editor.prototype.setFiEditor.prototype.createUndoManager=function(){var a=this.graph,b=new mxUndoManager;this.undoListener=function(f,h){b.undoableEditHappened(h.getProperty("edit"))};var e=mxUtils.bind(this,function(f,h){this.undoListener.apply(this,arguments)});a.getModel().addListener(mxEvent.UNDO,e);a.getView().addListener(mxEvent.UNDO,e);e=function(f,h){f=h.getProperty("edit").changes;f=a.getSelectionCellsForChanges(f);h=!1;if(0<f.length){for(var d=[],g=0;g<f.length;g++)null!=a.view.getState(f[g])&&(d.push(f[g]),h||(a.scrollCellToVisible(f[g]),h=!0));a.setSelectionCells(d)}};b.addListener(mxEvent.UNDO,e);b.addListener(mxEvent.REDO,e);return b};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(a){this.consumer=this.producer=null;this.done=a;this.args=null};OpenFile.prototype.setConsumer=function(a){this.consumer=a;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};OpenFile.prototype.error=function(a){this.cancel(!0);mxUtils.alert(a)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(a){null!=this.done&&this.done(null!=a?a:!0)};-function Dialog(a,b,e,f,h,d,g,m,q,k,u){this.editorUi=a;var w=q?57:0,z=e,C=f,E=q?0:64,D=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);null==a.embedViewport&&null!=window.innerHeight&&(D.height=window.innerHeight);var G=D.height;D=Math.max(1,Math.round((D.width-e-E)/2));var J=Math.max(1,Math.round((G-f-a.footerHeight)/3));b.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-E):e;f=Math.min(f,G-E);0<a.dialogs.length&&-(this.zIndex+=2*a.dialogs.length);null==this.bg&&(this.bg=a.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=G+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var L=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=L.x+"px";this.bg.style.top=L.y+"px";D+=L.x;J+=L.y;Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",J+=a.embedViewport.y,D+=a.embedViewport.x);-h&&document.body.appendChild(this.bg);var Q=a.createDiv(q?"geTransDialog":"geDialog");h=this.getPosition(D,J,e,f);D=h.x;J=h.y;Q.style.width=e+"px";Q.style.height=f+"px";Q.style.left=D+"px";Q.style.top=J+"px";Q.style.zIndex=this.zIndex;Q.appendChild(b);document.body.appendChild(Q);!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");b.style.overflowX="hidden";if(d&&(d=document.createElement("img"),d.setAttribute("src",Dialog.prototype.closeImage),d.setAttribute("title",mxResources.get("close")),-d.className="geDialogClose",d.style.top=J+14+"px",d.style.left=D+e+38-w+"px",d.style.zIndex=this.zIndex,mxEvent.addListener(d,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),document.body.appendChild(d),this.dialogImg=d,!u)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){N=!0}),null,mxUtils.bind(this,function(U){N&&(a.hideDialog(!0),N=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=k){var U=k();null!=U&&(z=e=U.w,C=f=U.h)}U=Editor.inlineFullscreen||+function Dialog(a,b,e,f,h,d,g,m,q,k,u){this.editorUi=a;var w=q?57:0,z=e,C=f,E=q?0:64,D=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);null==a.embedViewport&&null!=window.innerHeight&&(D.height=window.innerHeight);var G=D.height;D=Math.max(1,Math.round((D.width-e-E)/2));var I=Math.max(1,Math.round((G-f-a.footerHeight)/3));b.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-E):e;f=Math.min(f,G-E);0<a.dialogs.length&&+(this.zIndex+=2*a.dialogs.length);null==this.bg&&(this.bg=a.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=G+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var L=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=L.x+"px";this.bg.style.top=L.y+"px";D+=L.x;I+=L.y;Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",I+=a.embedViewport.y,D+=a.embedViewport.x);+h&&document.body.appendChild(this.bg);var Q=a.createDiv(q?"geTransDialog":"geDialog");h=this.getPosition(D,I,e,f);D=h.x;I=h.y;Q.style.width=e+"px";Q.style.height=f+"px";Q.style.left=D+"px";Q.style.top=I+"px";Q.style.zIndex=this.zIndex;Q.appendChild(b);document.body.appendChild(Q);!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");b.style.overflowX="hidden";if(d&&(d=document.createElement("img"),d.setAttribute("src",Dialog.prototype.closeImage),d.setAttribute("title",mxResources.get("close")),+d.className="geDialogClose",d.style.top=I+14+"px",d.style.left=D+e+38-w+"px",d.style.zIndex=this.zIndex,mxEvent.addListener(d,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),document.body.appendChild(d),this.dialogImg=d,!u)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){N=!0}),null,mxUtils.bind(this,function(U){N&&(a.hideDialog(!0),N=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=k){var U=k();null!=U&&(z=e=U.w,C=f=U.h)}U=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);G=U.height;this.bg.style.height=G+"px";Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");e=null!=document.body?Math.min(z,document.body.scrollWidth-E):z;f=Math.min(C,G-E);U=Math.max(1,Math.round((U.width-e-E)/2));var Y=Math.max(1,Math.round((G-f-a.footerHeight)/3));Y=this.getPosition(U,Y,e,f);U=Y.x;Y=Y.y;var P=mxUtils.getDocumentScrollOrigin(document);U+=P.x;Y+=P.y;Editor.inlineFullscreen||null==a.embedViewport||(Y+=a.embedViewport.y,U+=a.embedViewport.x);Q.style.left=U+"px";Q.style.top=Y+"px";Q.style.width=e+"px";Q.style.height=f+"px";!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=Y+14+"px",this.dialogImg.style.left=U+e+38-w+"px")});null!=a.embedViewport?a.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=g;this.container=Q;a.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;@@ -2019,8 +2019,8 @@ this.container.parentNode.removeChild(this.container)};var ErrorDialog=function(a,b,e,f,h,d,g,m,q,k,u){q=null!=q?q:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var z=document.createElement("div");z.style.padding="0px";z.style.margin="0px";z.style.fontSize="18px";z.style.paddingBottom="16px";z.style.marginBottom="10px";z.style.borderBottom="1px solid #c0c0c0";z.style.color="gray";z.style.whiteSpace="nowrap";z.style.textOverflow="ellipsis";z.style.overflow="hidden";mxUtils.write(z,b);z.setAttribute("title",b);w.appendChild(z)}b=document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof e&&(e=e.replace(/\n/g,"<br/>"));b.innerHTML=Graph.sanitizeHtml(e);w.appendChild(b);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",e.appendChild(b),e.style.textAlign="center");null!=k&&(k=mxUtils.button(k,function(){null!=u&&u()}),k.className="geBtn",e.appendChild(k));var C=mxUtils.button(f,function(){q&&a.hideDialog();null!=h&&h()});C.className="geBtn";e.appendChild(C);null!=g&&(f=mxUtils.button(g,function(){q&&a.hideDialog();null!=m&&m()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b,e,f){this.create(a,b,e,f)};-PrintDialog.prototype.create=function(a){function b(C){var E=g.checked||k.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,J=1/e.pageScale;if(E){var L=g.checked?1:parseInt(u.value);isNaN(L)||(J=mxUtils.getScaleForPageCount(L,e,G))}var Q=L=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);J*=D;!E&&e.pageVisible?(D=e.getPageLayout(),L-=D.x*G.width,Q-=D.y*G.height):-E=!0;E=PrintDialog.createPrintPreview(e,J,G,0,L,Q,E);E.open();C&&PrintDialog.printPreview(E)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");var d=document.createElement("tr");var g=document.createElement("input");g.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(g);var q=document.createElement("span");mxUtils.write(q," "+mxResources.get("fitPage"));+PrintDialog.prototype.create=function(a){function b(C){var E=g.checked||k.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,I=1/e.pageScale;if(E){var L=g.checked?1:parseInt(u.value);isNaN(L)||(I=mxUtils.getScaleForPageCount(L,e,G))}var Q=L=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);I*=D;!E&&e.pageVisible?(D=e.getPageLayout(),L-=D.x*G.width,Q-=D.y*G.height):+E=!0;E=PrintDialog.createPrintPreview(e,I,G,0,L,Q,E);E.open();C&&PrintDialog.printPreview(E)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");var d=document.createElement("tr");var g=document.createElement("input");g.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(g);var q=document.createElement("span");mxUtils.write(q," "+mxResources.get("fitPage"));m.appendChild(q);mxEvent.addListener(q,"click",function(C){g.checked=!g.checked;k.checked=!g.checked;mxEvent.consume(C)});mxEvent.addListener(g,"change",function(){k.checked=!g.checked});d.appendChild(m);h.appendChild(d);d=d.cloneNode(!1);var k=document.createElement("input");k.setAttribute("type","checkbox");m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(k);q=document.createElement("span");mxUtils.write(q," "+mxResources.get("posterPrint")+":");m.appendChild(q);mxEvent.addListener(q,"click",function(C){k.checked=!k.checked;g.checked=!k.checked;mxEvent.consume(C)});d.appendChild(m);var u=document.createElement("input");u.setAttribute("value","1");u.setAttribute("type","number");u.setAttribute("min","1");u.setAttribute("size","4");u.setAttribute("disabled","disabled");u.style.width="50px";m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(u);mxUtils.write(m," "+mxResources.get("pages")+" (max)");d.appendChild(m);h.appendChild(d);mxEvent.addListener(k,"change",function(){k.checked?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");g.checked=!k.checked});d=d.cloneNode(!1);m=document.createElement("td");mxUtils.write(m,mxResources.get("pageScale")+":");d.appendChild(m);m=document.createElement("td");var w=document.createElement("input");w.setAttribute("value","100 %");w.setAttribute("size","5");w.style.width="50px";m.appendChild(w);d.appendChild(m);h.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;@@ -2032,14 +2032,14 @@ var PageSetupDialog=function(a){function b(){var D=w;null!=D&&null!=D.originalSrvar d=document.createElement("tr");var g=document.createElement("td");g.style.verticalAlign="top";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("paperSize")+":");d.appendChild(g);g=document.createElement("td");g.style.verticalAlign="top";g.style.fontSize="10pt";var m=PageSetupDialog.addPageFormatPanel(g,"pagesetupdialog",e.pageFormat);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("gridSize")+":");d.appendChild(g);g=document.createElement("td");g.style.whiteSpace="nowrap";var q=document.createElement("input");q.setAttribute("type","number");q.setAttribute("min","0");q.style.width="40px";q.style.marginLeft="6px";q.value=e.getGridSize();g.appendChild(q);mxEvent.addListener(q,"change",function(){var D=parseInt(q.value);q.value=Math.max(1,isNaN(D)?e.getGridSize():D)});d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("background")+":");d.appendChild(g);g=document.createElement("td");var k=document.createElement("button");k.className="geBtn";k.style.margin="0px";mxUtils.write(k,mxResources.get("change")+"...");var u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="middle";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="contain";u.style.border="1px solid lightGray";u.style.borderRadius="4px";u.style.marginRight="14px";u.style.height="32px";-u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=e.backgroundImage,z=e.background,C=e.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,J,L,Q){J||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);z=L;b()},w,z,!0);mxEvent.consume(D)};mxEvent.addListener(k,"click",E);mxEvent.addListener(u,"click",E);b();g.appendChild(u);g.appendChild(k);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");+u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=e.backgroundImage,z=e.background,C=e.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,I,L,Q){I||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);z=L;b()},w,z,!0);mxEvent.consume(D)};mxEvent.addListener(k,"click",E);mxEvent.addListener(u,"click",E);b();g.appendChild(u);g.appendChild(k);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");g.colSpan=2;g.style.paddingTop="16px";g.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";a.editor.cancelFirst&&g.appendChild(k);E=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var D=parseInt(q.value);isNaN(D)||e.gridSize===D||e.setGridSize(D);D=new ChangePageSetup(a,z,w,m.get());D.ignoreColor=e.background==z;D.ignoreImage=(null!=e.backgroundImage?e.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&(D.shadowVisible=C);e.pageFormat.width==D.previousFormat.width&&e.pageFormat.height==D.previousFormat.height&&D.ignoreColor&&D.ignoreImage&&D.shadowVisible==e.shadowVisible||e.model.execute(D)});E.className="geBtn gePrimaryBtn";g.appendChild(E);a.editor.cancelFirst||g.appendChild(k);d.appendChild(g);h.appendChild(d);f.appendChild(h);this.container=f};PageSetupDialog.addPageFormatPanel=function(a,b,e,f){b="format-"+b;var h=document.createElement("input");h.setAttribute("name",b);h.setAttribute("type","radio");h.setAttribute("value","portrait");var d=document.createElement("input");d.setAttribute("name",b);d.setAttribute("type","radio");d.setAttribute("value","landscape");var g=document.createElement("select");g.style.marginBottom="4px";g.style.borderRadius="4px";g.style.borderWidth="1px";g.style.borderStyle="solid";g.style.boxSizing="border-box";g.style.padding="2px";g.style.width="210px";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.marginLeft="4px";m.style.width="210px";m.style.height="24px";h.style.marginRight="6px";m.appendChild(h);b=document.createElement("span");b.style.maxWidth="100px";mxUtils.write(b,mxResources.get("portrait"));m.appendChild(b);d.style.marginLeft="10px";d.style.marginRight="6px";m.appendChild(d);var q=document.createElement("span");q.style.width="100px";mxUtils.write(q,mxResources.get("landscape"));m.appendChild(q);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var u=document.createElement("input");u.setAttribute("size","7");u.setAttribute("title",mxResources.get("width"));u.style.textAlign="right";k.appendChild(u);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign="right";k.appendChild(w);var z=document.createElement("select");z.style.marginLeft="4px";z.style.maxWidth="78px";z.style.width="78px";for(var C=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],E=0;E<C.length;E++){var D=document.createElement("option");D.setAttribute("value",C[E].unit);mxUtils.write(D,C[E].label);z.appendChild(D)}z.value=Editor.pageSizeUnit;k.appendChild(z);m.style.display=-"none";k.style.display="none";var G={},J=PageSetupDialog.getFormats();for(E=0;E<J.length;E++)C=J[E],G[C.key]=C,D=document.createElement("option"),D.setAttribute("value",C.key),mxUtils.write(D,C.title),g.appendChild(D);var L=function(){g.value="custom";for(var N=0;N<J.length;N++){var U=J[N];null!=U.format&&("a4"==U.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==U.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=+"none";k.style.display="none";var G={},I=PageSetupDialog.getFormats();for(E=0;E<I.length;E++)C=I[E],G[C.key]=C,D=document.createElement("option"),D.setAttribute("value",C.key),mxUtils.write(D,C.title),g.appendChild(D);var L=function(){g.value="custom";for(var N=0;N<I.length;N++){var U=I[N];null!=U.format&&("a4"==U.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==U.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=583):584==e.height&&(e=mxRectangle.fromRectangle(e),e.height=583)),e.width==U.format.width&&e.height==U.format.height?(g.value=U.key,h.setAttribute("checked","checked"),h.defaultChecked=!0,h.checked=!0,d.removeAttribute("checked"),d.defaultChecked=!1,d.checked=!1,detected=!0):e.width==U.format.height&&e.height==U.format.width&&(g.value=U.key,h.removeAttribute("checked"),h.defaultChecked=!1,h.checked=!1,d.setAttribute("checked","checked"),d.defaultChecked=!0,detected=d.checked=!0))}"custom"==g.value?(u.value=Editor.toUnit(e.width,z.value),w.value=Editor.toUnit(e.height,z.value),h.setAttribute("checked","checked"),g.value="custom",m.style.display="none",k.style.display=""):(m.style.display="",k.style.display="none")};L();a.appendChild(g);mxUtils.br(a);a.appendChild(m);a.appendChild(k);var Q=function(N,U){N=G[g.value];null!=N.format?(u.value=Editor.toUnit(d.checked?N.format.height:N.format.width,z.value),w.value=Editor.toUnit(d.checked?N.format.width:N.format.height,z.value),k.style.display="none",m.style.display=""):(m.style.display="none",k.style.display="");N=parseFloat(u.value);if(isNaN(N)||0>=N)u.value=Editor.toUnit(e.width,z.value);N=parseFloat(w.value);if(isNaN(N)||0>=N)w.value=Editor.toUnit(e.height,z.value);N=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),z.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),z.value)));U||N.width==e.width&&N.height==e.height||(e=N,null!=f&&f(e))};mxEvent.addListener(b,"click",function(N){h.checked=!0;Q(N);mxEvent.consume(N)});@@ -2050,26 +2050,26 @@ format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",fo{key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]};var FilenameDialog=function(a,b,e,f,h,d,g,m,q,k,u){q=null!=q?q:!0;var w=document.createElement("div"),z=document.createElement("div");z.style.width="100%";z.style.display="grid";z.style.gap="5px 8px";z.style.gridAutoColumns="auto 1fr";z.style.boxSizing="border-box";z.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var E=document.createElement("div");E.style.display="inline-block";E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.fontSize="10pt";E.style.padding="2px 0";E.setAttribute("title",h||mxResources.get("filename"));mxUtils.write(E,(h||mxResources.get("filename"))+":");C.appendChild(E);z.appendChild(C);var D=document.createElement("input");D.setAttribute("value",b||"");D.style.flexGrow="1";var G=mxUtils.button(e,function(){if(null==d||d(D.value))q&&a.hideDialog(),f(D.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=-h||null==g)if(null!=u?Editor.selectFilename(D):(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var J=z.parentNode;if(null!=J){var L=null;mxEvent.addListener(J,"dragleave",function(Q){null!=L&&(L.style.backgroundColor="",L=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(Q){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=D,L.style.backgroundColor=-"#ebf2f9");Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(J,"drop",mxUtils.bind(this,function(Q){null!=L&&(L.style.backgroundColor="",L=null);0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(Q.dataTransfer.getData("text/uri-list")),G.click());Q.stopPropagation();Q.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(D);z.appendChild(C);+h||null==g)if(null!=u?Editor.selectFilename(D):(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var I=z.parentNode;if(null!=I){var L=null;mxEvent.addListener(I,"dragleave",function(Q){null!=L&&(L.style.backgroundColor="",L=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(I,"dragover",mxUtils.bind(this,function(Q){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=D,L.style.backgroundColor=+"#ebf2f9");Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(I,"drop",mxUtils.bind(this,function(Q){null!=L&&(L.style.backgroundColor="",L=null);0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(Q.dataTransfer.getData("text/uri-list")),G.click());Q.stopPropagation();Q.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(D);z.appendChild(C);null==h&&null!=g||null==u||null==a.editor.diagramFileTypes||(C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.textOverflow="ellipsis",C.style.justifyContent="flex-end",C.style.fontSize="10pt",mxUtils.write(C,mxResources.get("type")+":"),z.appendChild(C),C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.whiteSpace="nowrap",z.appendChild(C),b=FilenameDialog.createFileTypes(a,D,a.editor.diagramFileTypes),b.style.width="100%",C.appendChild(b));null!=g&&z.appendChild(g);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=u?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});C.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));-a.editor.cancelFirst&&row.appendChild(C);mxEvent.addListener(D,"keypress",function(J){13==J.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(C);z.appendChild(row);w.appendChild(z);this.container=w};FilenameDialog.filenameHelpLink=null;+a.editor.cancelFirst&&row.appendChild(C);mxEvent.addListener(D,"keypress",function(I){13==I.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(C);z.appendChild(row);w.appendChild(z);this.container=w};FilenameDialog.filenameHelpLink=null;FilenameDialog.createFileTypes=function(a,b,e){var f=document.createElement("select");for(a=0;a<e.length;a++){var h=document.createElement("option");h.setAttribute("value",a);mxUtils.write(h,mxResources.get(e[a].description)+" (."+e[a].extension+")");f.appendChild(h)}mxEvent.addListener(f,"change",function(d){d=e[f.value].extension;var g=b.value.lastIndexOf(".drawio.");g=0<g?g:b.value.lastIndexOf(".");"drawio"!=d&&(d="drawio."+d);b.value=0<g?b.value.substring(0,g+1)+d:b.value+"."+d;"createEvent"indocument?(d=document.createEvent("HTMLEvents"),d.initEvent("change",!1,!0),b.dispatchEvent(d)):b.fireEvent("onchange")});a=function(d){d=b.value.toLowerCase();for(var g=0,m=0;m<e.length;m++){var q=e[m].extension,k=null;"drawio"!=q&&(k=q,q=".drawio."+q);if(d.substring(d.length-q.length-1)=="."+q||null!=k&&d.substring(d.length-k.length-1)=="."+k){g=m;break}}f.value=g};mxEvent.addListener(b,"change",a);mxEvent.addListener(b,"keyup",a);a();return f};-var WrapperWindow=function(a,b,e,f,h,d,g){var m=a.createSidebarContainer();g(m);this.window=new mxWindow(b,m,e,f,h,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(q){null==q&&(q=window.event);return null!=q&&a.isSelectionAllowed(q)}))};+var WrapperWindow=function(a,b,e,f,h,d,g){var m=a.createSidebarContainer();g(m);this.window=new mxWindow(b,m,e,f,h,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0)};(function(){mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph;if(null!=g.container&&!g.transparentBackground){if(g.pageVisible){var m=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var q=g.container.firstChild;null!=q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.nextSibling;null!=q&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,this.backgroundPageShape.init(g.container),q.style.position="absolute",g.container.insertBefore(this.backgroundPageShape.node,q),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(k){g.dblClick(k)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){null!=g.tooltipHandler&&g.tooltipHandler.isHideOnHover()&&g.tooltipHandler.hide();g.isMouseDown&&!mxEvent.isConsumed(k)&&g.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(k))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=m,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};mxGraphView.prototype.validateBackgroundStyles=function(g,m,q){var k=this.graph;g=null!=g?g:1;var u=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,z=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",E="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){E=-10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(z,g))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",E=k.gridSize*this.scale*this.gridSteps*g):C="url("+this.gridImage+")";var D=z=0;m=null!=m?m-this.translate.x*this.scale:0;q=null!=q?q-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,J=m%G;G=q%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),z=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*-this.scale-z+m,E)+J*g)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+q,E)+G*g)+"px"}g=k.view.canvas;null!=g.ownerSVGElement&&(g=g.ownerSVGElement);z=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=E,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=+10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(z,g))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",E=k.gridSize*this.scale*this.gridSteps*g):C="url("+this.gridImage+")";var D=z=0;m=null!=m?m-this.translate.x*this.scale:0;q=null!=q?q-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,I=m%G;G=q%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),z=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*+this.scale-z+m,E)+I*g)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+q,E)+G*g)+"px"}g=k.view.canvas;null!=g.ownerSVGElement&&(g=g.ownerSVGElement);z=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=E,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme="none"==k.getAdaptiveColors()?"light":"",k.container.classList.add("geDiagramBackdrop"),g.style.backgroundImage="none",g.style.backgroundColor="",k.container.style.backgroundColor=z?k.diagramBackgroundColor:""):(k.container.classList.remove("geDiagramBackdrop"),g.style.backgroundPosition=E,g.style.backgroundImage=C,"1"==urlParams.transparent?k.container.style.background="transparent":!z||null!=k.background&&k.background!=mxConstants.NONE?g.style.backgroundColor=u:(g.style.backgroundColor=k.diagramBackgroundColor,k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(g,m){for(var q=this.graph.gridSize*this.scale*(null!=m?m:1);q<this.minGridSize;)q*=2;m=this.gridSteps*q;for(var k=[],u=1;u<this.gridSteps;u++){var w=u*q;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}g=mxUtils.getLightDarkColor(g);q="color-scheme: light dark;";mxClient.IS_SF&&(q="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+q+'" width="'+m+'" height="'+m+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+m+'" height="'+m+'" patternUnits="userSpaceOnUse"><path d="'+k.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(g.cssText)+';" stroke="'+g.light+'" opacity="0.2" stroke-width="1"/><path d="M '+m+" 0 L 0 0 0 "+m+'" fill="none" style="stroke:'+mxUtils.htmlEntities(g.cssText)+';" stroke="'+g.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var a=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){a.apply(this,arguments);if(null!=this.shiftPreview1){var q=this.view.canvas;null!=q.ownerSVGElement&&(q=q.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+g,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";q.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(g,m,q){var k=this.view.scale,u=this.view.translate,w=-this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;q=C.height;var E=new mxRectangle(k*u.x,k*u.y,w.width*z,w.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(q/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,J=C.x+m,L=C.y+q;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(Q){if(null!=Q){for(var N=Q==this.horizontalPageBreaks?D:G,U=-0;U<=N;U++){var Y=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),Math.round(C.y+(U+1)*E.height)),new mxPoint(Math.round(J),Math.round(C.y+(U+1)*E.height))]:[new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(L))];null!=Q[U]?(Q[U].points=Y,Q[U].redraw()):(Y=new mxPolyline(Y,this.pageBreakColor),Y.dialect=this.dialect,Y.isDashed=this.pageBreakDashed,Y.pointerEvents=!1,Y.init(this.view.backgroundPane),Y.redraw(),Q[U]=Y)}for(U=N;U<+this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;q=C.height;var E=new mxRectangle(k*u.x,k*u.y,w.width*z,w.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(q/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,I=C.x+m,L=C.y+q;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(Q){if(null!=Q){for(var N=Q==this.horizontalPageBreaks?D:G,U=+0;U<=N;U++){var Y=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),Math.round(C.y+(U+1)*E.height)),new mxPoint(Math.round(I),Math.round(C.y+(U+1)*E.height))]:[new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(L))];null!=Q[U]?(Q[U].points=Y,Q[U].redraw()):(Y=new mxPolyline(Y,this.pageBreakColor),Y.dialect=this.dialect,Y.isDashed=this.pageBreakDashed,Y.pointerEvents=!1,Y.init(this.view.backgroundPane),Y.redraw(),Q[U]=Y)}for(U=N;U<Q.length;U++)null!=Q[U]&&Q[U].destroy();Q.splice(N,Q.length-N)}});g(this.horizontalPageBreaks);g(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(g,m,q){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var u=this.graph.getCellGeometry(m[k]);if(null!=u&&u.relative)return!1}}return b.apply(this,arguments)};var e=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var g=e.apply(this,arguments);g.intersects=mxUtils.bind(this,function(m,q){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(g,arguments)});return g};mxGraphView.prototype.createBackgroundPageShape=function(g){return new mxRectangleShape(g,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var g=this.getGraphBounds(),m=0<g.width?g.x/this.scale-this.translate.x:0,q=0<g.height?g.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,u=this.graph.pageScale,w=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/w);var z=Math.floor(Math.min(0,q)/k);return new mxRectangle(this.scale*(this.translate.x+u*w),this.scale*(this.translate.y+z*k),this.scale*(Math.ceil(Math.max(1,m+g.width/this.scale)/w)-u)*w,this.scale*(Math.ceil(Math.max(1,q+g.height/this.scale)/k)-z)*k)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){f.apply(this,arguments);this.dialect==@@ -2088,8 +2088,8 @@ k),mxClient.IS_IOS&&(b=function(){var K=null;if(/iP(hone|od|ad)/.test(navigator.function(K){var V=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(K)-V.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(K)-V.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var w=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(K,V){return f.isSpaceDown()||w.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(K){16==K.which?this.shiftDown=!0:32!=K.which||h.isEditing()?mxEvent.isConsumed(K)||27!=K.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),h.container.style.cursor="move",h.isEditing()||mxEvent.getSource(K)!=h.container||mxEvent.consume(K))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(K){h.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var z=h.panningHandler.isForcePanningEvent;h.panningHandler.isForcePanningEvent=function(K){return z.apply(this,arguments)||f.isSpaceDown()||mxEvent.isMouseEvent(K.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(K.getEvent()))&&(!mxEvent.isControlDown(K.getEvent())&&mxEvent.isRightMouseButton(K.getEvent())||mxEvent.isMiddleMouseButton(K.getEvent()))};var C=h.cellEditor.isStopEditingEvent;h.cellEditor.isStopEditingEvent=function(K){return C.apply(this,arguments)||13==K.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(K)||mxClient.IS_MAC&&-mxEvent.isMetaDown(K)||mxClient.IS_SF&&mxEvent.isShiftDown(K))};var E=h.isZoomWheelEvent;h.isZoomWheelEvent=function(){return f.isSpaceDown()||E.apply(this,arguments)};var D=!1,G=null,J=null,L=null,Q=mxUtils.bind(this,function(){if(null!=this.toolbar&&D!=h.cellEditor.isContentEditing()){for(var K=this.toolbar.container.firstChild,V=[];null!=K;){var Z=K.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,K)&&(K.parentNode.removeChild(K),V.push(K));K=Z}K=this.toolbar.fontMenu;Z=this.toolbar.sizeMenu;-if(null==L)this.toolbar.createTextToolbar();else{for(var ia=0;ia<L.length;ia++)this.toolbar.container.appendChild(L[ia]);this.toolbar.fontMenu=G;this.toolbar.sizeMenu=J}D=h.cellEditor.isContentEditing();G=K;J=Z;L=V}}),N=h.cellEditor.startEditing;h.cellEditor.startEditing=function(){N.apply(this,arguments);Q();if(h.cellEditor.isContentEditing()){var K=!1,V=function(){K||(K=!0,window.setTimeout(function(){var Z=h.getSelectedEditingElement();null!=Z&&(Z=mxUtils.getCurrentStyle(Z),null!=Z&&null!=f.toolbar&&+mxEvent.isMetaDown(K)||mxClient.IS_SF&&mxEvent.isShiftDown(K))};var E=h.isZoomWheelEvent;h.isZoomWheelEvent=function(){return f.isSpaceDown()||E.apply(this,arguments)};var D=!1,G=null,I=null,L=null,Q=mxUtils.bind(this,function(){if(null!=this.toolbar&&D!=h.cellEditor.isContentEditing()){for(var K=this.toolbar.container.firstChild,V=[];null!=K;){var Z=K.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,K)&&(K.parentNode.removeChild(K),V.push(K));K=Z}K=this.toolbar.fontMenu;Z=this.toolbar.sizeMenu;+if(null==L)this.toolbar.createTextToolbar();else{for(var ia=0;ia<L.length;ia++)this.toolbar.container.appendChild(L[ia]);this.toolbar.fontMenu=G;this.toolbar.sizeMenu=I}D=h.cellEditor.isContentEditing();G=K;I=Z;L=V}}),N=h.cellEditor.startEditing;h.cellEditor.startEditing=function(){N.apply(this,arguments);Q();if(h.cellEditor.isContentEditing()){var K=!1,V=function(){K||(K=!0,window.setTimeout(function(){var Z=h.getSelectedEditingElement();null!=Z&&(Z=mxUtils.getCurrentStyle(Z),null!=Z&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(Z.fontFamily)),f.toolbar.setFontSize(parseInt(Z.fontSize))));K=!1},0))};mxEvent.addListener(h.cellEditor.textarea,"input",V);mxEvent.addListener(h.cellEditor.textarea,"touchend",V);mxEvent.addListener(h.cellEditor.textarea,"mouseup",V);mxEvent.addListener(h.cellEditor.textarea,"keyup",V);V()}};var U=h.cellEditor.stopEditing;h.cellEditor.stopEditing=function(K,V){try{U.apply(this,arguments),Q()}catch(Z){f.handleError(Z)}};h.container.setAttribute("tabindex","0");h.container.style.cursor="default";if(window.self===window.top&&null!=h.container.parentNode)try{h.container.focus()}catch(K){}var Y=h.fireMouseEvent;h.fireMouseEvent=function(K,V,Z){try{K==mxEvent.MOUSE_DOWN&&this.container.focus(),Y.apply(this,arguments)}catch(ia){f.handleError(ia)}};var P=h.foldCells;h.foldCells=function(K,V,Z,ia,oa){try{P.apply(this,arguments)}catch(sa){f.handleError(sa)}};h.popupMenuHandler.autoExpand=!0;null!=this.menus&&(h.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(K,V,Z){this.menus.createPopupMenu(K,V,Z)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(K){h.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};h.connectionHandler.addListener(mxEvent.CONNECT,function(K,V){var Z=[V.getProperty("cell")];V.getProperty("terminalInserted")&&(Z.push(V.getProperty("terminal")),window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(h.view.getState(Z[Z.length-@@ -2124,14 +2124,14 @@ EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.popupMenuHandler.isMenuShowing=function(){return f.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var h=a.dblClick;a.dblClick=function(q,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(q)||a.isCellLocked(a.getDefaultParent()))h.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));mxEvent.consume(q);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.x,u.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",e);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var g=this.hoverIcons.execute;this.hoverIcons.execute=function(q,k,u){var w=u.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?g.apply(this,arguments):this.graph.connectVertex(q.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(z,C,E){var D=a.getCompositeParent(q.cell);z=a.getCellGeometry(D);for(u.consume();null!=D&&a.model.isVertex(D)&&null!=z&&z.relative;)cell=D,D=a.model.getParent(cell),z=a.getCellGeometry(D);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),D,mxUtils.bind(this,function(G){E(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(z){this.graph.selectCellsForConnectVertex(z,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(q,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=-k.getProperty("arrow"),w=k.getProperty("direction"),z=k.getProperty("event");u=u.getBoundingClientRect();var C=mxUtils.getOffset(a.container),E=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var D=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(E,C,D,mxUtils.bind(this,function(J){null!=J&&a.connectVertex(D,w,a.defaultEdgeLength,z,!0,!1,function(L,Q,N){N(J);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(J))},+k.getProperty("arrow"),w=k.getProperty("direction"),z=k.getProperty("event");u=u.getBoundingClientRect();var C=mxUtils.getOffset(a.container),E=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var D=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(E,C,D,mxUtils.bind(this,function(I){null!=I&&a.connectVertex(D,w,a.defaultEdgeLength,z,!0,!1,function(L,Q,N){N(I);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(I))},function(L){a.selectCellsForConnectVertex(L)},z,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,E,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(q,k){null!=m&&window.clearTimeout(m)}))}};EditorUi.prototype.centerShapePicker=function(a,b,e,f,h){if(h==mxConstants.DIRECTION_EAST||h==mxConstants.DIRECTION_WEST)a.style.width="40px";var d=a.getBoundingClientRect();h==mxConstants.DIRECTION_NORTH?(e-=d.width/2-10,f-=d.height+6):h==mxConstants.DIRECTION_SOUTH?(e-=d.width/2-10,f+=b.height+6):h==mxConstants.DIRECTION_WEST?(e-=d.width+6,f-=d.height/2-10):h==mxConstants.DIRECTION_EAST&&(e+=b.width+6,f-=d.height/2-10);a.style.left=e+"px";a.style.top=f+"px"};EditorUi.prototype.showShapePicker=function(a,b,e,f,h,d,g,m,q){var k=null;this.editor.graph.freehand.isDrawing()||(m=m||null==e,k=this.createShapePicker(a,b,e,f,h,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(e,d,m),d,g,m,q),null!=k&&(null==this.hoverIcons||d||this.hoverIcons.reset(),a=this.editor.graph,a.popupMenuHandler.hideMenu(),a.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=f,this.shapePicker=k));return k};-EditorUi.prototype.createShapePicker=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;var w=this.editor.graph,z=null;q=null!=q?q:function(D){D=D[0];var G=0,J=0,L=D.geometry;null!=L&&(w.model.isEdge(D)&&(D=L.getTerminalPoint(!1),L=new mxRectangle(0,0,D.x,D.y)),G=L.width/2,J=L.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=g&&0<g.length){var C=this;w=this.editor.graph;z=document.createElement("div");+EditorUi.prototype.createShapePicker=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;var w=this.editor.graph,z=null;q=null!=q?q:function(D){D=D[0];var G=0,I=0,L=D.geometry;null!=L&&(w.model.isEdge(D)&&(D=L.getTerminalPoint(!1),L=new mxRectangle(0,0,D.x,D.y)),G=L.width/2,I=L.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-I))};if(null!=g&&0<g.length){var C=this;w=this.editor.graph;z=document.createElement("div");h=w.view.getState(e);var E=null==e||null!=h&&w.isTransparentState(h)?null:w.copyStyle(e);h=6>g.length?35*g.length:140;z.className="geToolbarContainer geSidebarContainer geShapePicker";z.setAttribute("title",mxResources.get("sidebarTooltip"));z.style.left=Math.round(a)+"px";z.style.top=Math.round(b)+"px";z.style.width=h+"px";mxClient.IS_POINTER&&(z.style.touchAction="none");m||mxUtils.setPrefixedStyle(z.style,"transform","translate(-22px,-22px)");w.container.appendChild(z);h=mxUtils.bind(this,function(D){var G=-document.createElement("a");G.className="geToolbarButton";G.style.display="inline-block";G.style.position="relative";G.style.overflow="hidden";G.style.cursor="pointer";G.style.width="30px";G.style.height="30px";G.style.padding="1px";z.appendChild(G);null!=E&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(E,[D]):this.sidebar.graph.pasteCellStyles([D],w.currentVertexStyle,w.currentEdgeStyle);var J=D.geometry;w.model.isEdge(D)&&(J=J.getTerminalPoint(!1),J=new mxRectangle(0,0,J.x,J.y));null!=J&&-G.appendChild(this.sidebar.createVertexTemplateFromCells([D],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(L){if(!mxEvent.isShiftDown(L)||null==e&&w.isSelectionEmpty()){var Q=w.cloneCell(D);if(null!=f)f(Q);else{var N=q([Q]);w.model.isEdge(Q)?Q.geometry.translate(N.x,N.y):(Q.geometry.x=N.x,Q.geometry.y=N.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&+document.createElement("a");G.className="geToolbarButton";G.style.display="inline-block";G.style.position="relative";G.style.overflow="hidden";G.style.cursor="pointer";G.style.width="30px";G.style.height="30px";G.style.padding="1px";z.appendChild(G);null!=E&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(E,[D]):this.sidebar.graph.pasteCellStyles([D],w.currentVertexStyle,w.currentEdgeStyle);var I=D.geometry;w.model.isEdge(D)&&(I=I.getTerminalPoint(!1),I=new mxRectangle(0,0,I.x,I.y));null!=I&&+G.appendChild(this.sidebar.createVertexTemplateFromCells([D],I.width,I.height,"",!0,!1,null,!1,mxUtils.bind(this,function(L){if(!mxEvent.isShiftDown(L)||null==e&&w.isSelectionEmpty()){var Q=w.cloneCell(D);if(null!=f)f(Q);else{var N=q([Q]);w.model.isEdge(Q)?Q.geometry.translate(N.x,N.y):(Q.geometry.x=N.x,Q.geometry.y=N.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&w.startEditing(Q);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(Q))}}else Q=w.getEditableCells(null!=e?[e]:w.getSelectionCells()),w.updateShapes(D,Q);null!=d&&d(L);mxEvent.consume(L)}),25,25,null,null,e))});for(k=0;k<(m?Math.min(g.length,4):g.length);k++)h(g[k]);g=z.offsetTop+z.clientHeight-(w.container.scrollTop+w.container.offsetHeight);0<g&&(z.style.top=Math.max(w.container.scrollTop+22,b-g)+"px");g=z.offsetLeft+z.clientWidth-(w.container.scrollLeft+w.container.offsetWidth);0<g&&(z.style.left=Math.max(w.container.scrollLeft+22,a-g)+"px")}return z};EditorUi.prototype.getCellsForShapePicker=function(a,b,e){var f=this.editor.graph,h=mxUtils.bind(this,function(d,g,m,q){return f.createVertex(null,null,q||"",0,0,g||120,m||60,d,!1)});b=mxUtils.bind(this,function(d,g,m){d=new mxCell(m||"",new mxGeometry(0,0,f.defaultEdgeLength+20,0),d);d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new mxPoint(d.geometry.width,null!=g?g:0),!1);d.geometry.points=null!=g?[new mxPoint(d.geometry.width/2,g)]:[];d.geometry.relative=!0;d.edge=@@ -2168,16 +2168,16 @@ q.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.m(u.style.display="none",q.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(H){var ea=new mxPopupMenu(C.funct);ea.div.className+=" geMenubarMenu";ea.smartSeparators=!0;ea.showDisabled=!0;ea.autoExpand=!0;ea.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(ea,arguments);ea.destroy()});var ra=mxUtils.getOffset(k);ea.popup(ra.x,ra.y+k.offsetHeight,null,H);mxEvent.addListener(ea.div,"mouseleave",mxUtils.bind(this,function(){ea.hideMenu()}))}))}this.editor.addListener("resetGraphView",z);this.editor.addListener("pageSelected",w)}d(mxUtils.bind(this,function(H){this.actions.get("zoomOut").funct();mxEvent.consume(H)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(H){this.actions.get("zoomIn").funct();mxEvent.consume(H)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(H){a.isLightboxView()?(1==a.view.scale?this.lightboxFit():a.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(H)}),Editor.zoomFitImage,mxResources.get("fit"));var E=null,D=null,G=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);E=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);E=null;D=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";D=null}),-600)}),H||200)}),J=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,H||30)});if("1"==urlParams.layers){this.layersDialog=null;var L=d(mxUtils.bind(this,function(H){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=a.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&+600)}),H||200)}),I=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,H||30)});if("1"==urlParams.layers){this.layersDialog=null;var L=d(mxUtils.bind(this,function(H){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=a.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var ea=L.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=ea.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));ea=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=ea.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(H)}),Editor.layersImage,mxResources.get("layers")),Q=a.getModel();Q.addListener(mxEvent.CHANGE,function(){L.style.display=1<Q.getChildCount(Q.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(d);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||d(mxUtils.bind(this,function(H){null!=this.editor.editButtonFunc?this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):a.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(H)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(z=0;z<this.lightboxToolbarActions.length;z++){var N=this.lightboxToolbarActions[z];N.elem=d(N.fn,N.icon,N.tooltip)}if(null!=h.refreshBtn){var U=null==h.refreshBtn.url?null:Graph.sanitizeLink(h.refreshBtn.url);d(mxUtils.bind(this,function(H){null!=U?window.location.href=U:window.location.reload();mxEvent.consume(H)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=h.fullscreenBtn&&window.self!==window.top&&d(mxUtils.bind(this,function(H){h.fullscreenBtn.url?a.openLink(h.fullscreenBtn.url):a.openLink(window.location.href);mxEvent.consume(H)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!h.noCloseBtn&&(h.closeBtn&&window.self===window.top||a.lightbox&&("1"==urlParams.close||this.container!=document.body))&&d(mxUtils.bind(this,function(H){"1"==urlParams.close||h.closeBtn?window.close():(this.destroy(),mxEvent.consume(H))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";a.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");a.container.appendChild(this.chromelessToolbar);mxEvent.addListener(a.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(H){mxEvent.isTouchEvent(H)||-(mxEvent.isShiftDown(H)||J(30),G())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(H){mxEvent.consume(H)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(H){a.tooltipHandler.resetTimer();a.tooltipHandler.hideTooltip();mxEvent.isShiftDown(H)?G():J(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(H){mxEvent.isShiftDown(H)?G():J(100);mxEvent.consume(H)}));mxEvent.addListener(this.chromelessToolbar,-"mouseleave",mxUtils.bind(this,function(H){mxEvent.isTouchEvent(H)||J(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(H,ea){this.startX=ea.getGraphX();this.startY=ea.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(H,ea){},mouseUp:function(H,ea){mxEvent.isTouchEvent(ea.getEvent())&&Math.abs(this.scrollLeft-a.container.scrollLeft)<Y&&Math.abs(this.scrollTop-a.container.scrollTop)<-Y&&Math.abs(this.startX-ea.getGraphX())<Y&&Math.abs(this.startY-ea.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?G():J(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var P=a.view.validate,T=new mxPoint,K=!1,V=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&V!=e.currentPage){V=e.currentPage;K=!0;var H=a.getBoundingBoxFromGeometry(a.model.getCells(),!0,null,!0);null==+(mxEvent.isShiftDown(H)||I(30),G())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(H){mxEvent.consume(H)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(H){a.tooltipHandler.resetTimer();a.tooltipHandler.hideTooltip();mxEvent.isShiftDown(H)?G():I(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(H){mxEvent.isShiftDown(H)?G():I(100);mxEvent.consume(H)}));mxEvent.addListener(this.chromelessToolbar,+"mouseleave",mxUtils.bind(this,function(H){mxEvent.isTouchEvent(H)||I(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(H,ea){this.startX=ea.getGraphX();this.startY=ea.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(H,ea){},mouseUp:function(H,ea){mxEvent.isTouchEvent(ea.getEvent())&&Math.abs(this.scrollLeft-a.container.scrollLeft)<Y&&Math.abs(this.scrollTop-a.container.scrollTop)<+Y&&Math.abs(this.startX-ea.getGraphX())<Y&&Math.abs(this.startY-ea.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?G():I(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var P=a.view.validate,T=new mxPoint,K=!1,V=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&V!=e.currentPage){V=e.currentPage;K=!0;var H=a.getBoundingBoxFromGeometry(a.model.getCells(),!0,null,!0);null==H&&(H=new mxRectangle(a.view.translate.x*a.view.scale,a.view.translate.y*a.view.scale));H=a.getPageLayout(H,T,1);var ea=a.getDefaultTranslate(H);this.x0=H.x;this.y0=H.y;if(ea.x!=this.translate.x||ea.y!=this.translate.y)this.invalidate(),this.translate.x=ea.x,this.translate.y=ea.y}ea=a.getPagePadding();var ra=a.getPageSize();H=ea.x-(this.x0||0)*ra.width;ea=ea.y-(this.y0||0)*ra.height;if(this.translate.x!=H||this.translate.y!=ea)this.invalidate(),this.translate.x=H,this.translate.y=ea}P.apply(this,arguments)};if(!a.isViewer()){var Z=a.sizeDidChange;a.sizeDidChange=function(){var H=K;K=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var ea=this.getPageLayout(),ra=this.getDefaultTranslate(ea),qa=this.view.translate.x,Pa=this.view.translate.y;if(ra.x!=qa||ra.y!=Pa){this.view.x0=ea.x;this.view.y0=ea.y;this.autoTranslate=!0;this.view.setTranslate(ra.x,ra.y);this.autoTranslate=!1;H||(this.container.scrollLeft+=Math.round((ra.x-qa)*this.view.scale),this.container.scrollTop+=Math.round((ra.y-Pa)*this.view.scale));return}}Z.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ia=a.view.getBackgroundPane(),oa=a.view.getDrawPane();a.cumulativeZoomFactor=1;var sa=null,O=null,X=null,ba=null,da=null,ca=function(H){null!=sa&&window.clearTimeout(sa);0<=H&&window.setTimeout(function(){if(!a.isMouseDown||ba)sa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&@@ -2279,8 +2279,8 @@ EditorUi.prototype.showBackgroundImageDialog=function(a,b){a=null!=a?a:mxUtils.bEditorUi.prototype.setBackgroundImage=function(a){this.editor.graph.setBackgroundImage(a);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mxEventObject("backgroundImageChanged"))};EditorUi.prototype.confirm=function(a,b,e){mxUtils.confirm(a)?null!=b&&b():null!=e&&e()};EditorUi.prototype.createOutline=function(a){var b=new mxOutline(this.editor.graph);mxEvent.addListener(window,"resize",function(){b.update(!1)});return b};EditorUi.prototype.altShiftActions={65:"connectionArrows",82:"clearWaypoints",76:"editLink",79:"connectionPoints",81:"editConnectionPoints",84:"editTooltip",86:"pasteSize",70:"copySize",66:"copyData",69:"pasteData"};EditorUi.prototype.ctrlAltShiftActions={70:"bringForward",66:"sendBackward"};EditorUi.prototype.ctrlAltActions={88:"copyAsImage"};EditorUi.prototype.createKeyHandler=function(a){function b(w,z,C){if(!f.isSelectionEmpty()&&f.isEnabled()){z=null!=z?z:1;var E=f.getCompositeParents(f.getSelectionCells()),D=0<E.length?E[0]:null;if(null!=D)if(C){f.getModel().beginUpdate();try{for(D=0;D<E.length;D++)if(f.getModel().isVertex(E[D])&&f.isCellResizable(E[D])){var G=f.getCellGeometry(E[D]);null!=G&&(G=G.clone(),37==w?G.width=Math.max(0,G.width-z):38==w?G.height=Math.max(0,G.height-z):39==w?G.width+=z:40==w&&(G.height+=z),f.getModel().setGeometry(E[D],-G))}}finally{f.getModel().endUpdate()}}else{G=f.model.getParent(D);var J=f.getView().scale;C=null;1==f.getSelectionCount()&&f.model.isVertex(D)&&null!=f.layoutManager&&!f.isCellLocked(D)&&(C=f.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)z=G.getIndex(D),37==w||38==w?f.model.add(G,D,Math.max(0,z-1)):(39==w||40==w)&&f.model.add(G,D,Math.min(f.model.getChildCount(G),z+1));else{var L=f.graphHandler;null!=L&&(null==L.first&&L.start(D,0,0,f.getMovableCells(E)),null!=L.first&&(D=-E=0,37==w?E=-z:38==w?D=-z:39==w?E=z:40==w&&(D=z),L.currentDx+=E*J,L.currentDy+=D*J,L.checkPreview(),L.updatePreview()),null!=g&&window.clearTimeout(g),g=window.setTimeout(function(){if(null!=L.first){var Q=L.roundLength(L.currentDx/J),N=L.roundLength(L.currentDy/J);L.moveCells(L.cells,Q,N);L.reset()}},400))}}}}var e=this,f=this.editor.graph,h=new mxKeyHandler(f),d=h.isEventIgnored;h.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||+G))}}finally{f.getModel().endUpdate()}}else{G=f.model.getParent(D);var I=f.getView().scale;C=null;1==f.getSelectionCount()&&f.model.isVertex(D)&&null!=f.layoutManager&&!f.isCellLocked(D)&&(C=f.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)z=G.getIndex(D),37==w||38==w?f.model.add(G,D,Math.max(0,z-1)):(39==w||40==w)&&f.model.add(G,D,Math.min(f.model.getChildCount(G),z+1));else{var L=f.graphHandler;null!=L&&(null==L.first&&L.start(D,0,0,f.getMovableCells(E)),null!=L.first&&(D=+E=0,37==w?E=-z:38==w?D=-z:39==w?E=z:40==w&&(D=z),L.currentDx+=E*I,L.currentDy+=D*I,L.checkPreview(),L.updatePreview()),null!=g&&window.clearTimeout(g),g=window.setTimeout(function(){if(null!=L.first){var Q=L.roundLength(L.currentDx/I),N=L.roundLength(L.currentDy/I);L.moveCells(L.cells,Q,N);L.reset()}},400))}}}}var e=this,f=this.editor.graph,h=new mxKeyHandler(f),d=h.isEventIgnored;h.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||90!=w.keyCode&&89!=w.keyCode&&188!=w.keyCode&&190!=w.keyCode&&85!=w.keyCode&&83!=w.keyCode)&&(66!=w.keyCode&&73!=w.keyCode||!this.isControlDown(w)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=w.keyCode&&107!=w.keyCode||!this.isControlDown(w)&&!mxEvent.isShiftDown(w)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&d.apply(this,arguments)};h.isEnabledForEvent=function(w){return!mxEvent.isConsumed(w)&&this.isGraphEvent(w)&&this.isEnabled()&&(null==e.dialogs||0==e.dialogs.length)};h.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var g=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},q=h.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?z=e.actions.get(e.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)?z=e.actions.get(e.altShiftActions[w.keyCode]):this.isControlDown(w)&&mxEvent.isAltDown(w)&&(z=e.actions.get(e.ctrlAltActions[w.keyCode]));if(null!=z)return z.funct;if(null!=m[w.keyCode]&&!f.isSelectionEmpty())if(!this.isControlDown(w)&&mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)){if(f.model.isVertex(f.getSelectionCell()))return function(){var C=f.connectVertex(f.getSelectionCell(),m[w.keyCode],f.defaultEdgeLength,w,!0);null!=C&&0<C.length&&(1==C.length&&f.model.isEdge(C[0])?f.setSelectionCell(f.model.getTerminal(C[0],@@ -2337,13 +2337,13 @@ Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&nuld)&&(m.push(C),k==g.length-1&&m.length==h))){f(m.slice(e*b,h),h,!0,g);return}}}else m=[];a=u;q++}}d=m.length;f(m.slice(e*b,(e+1)*b),d,!1,g)}else f([],null,null,g)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],e={},f=0;f<a.length;f++)null==e[a[f]]&&(e[a[f]]="1",b.push(a[f]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,e){};Sidebar.prototype.addSearchPalette=function(a){function b(){g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));q.style.display="none";k=d.value="";D()}var e=document.createElement("div");e.style.visibility="hidden";this.appendChild(e);var f=document.createElement("div");f.className="geSidebar geSearchSidebar";a||(f.style.display="none");var h=document.createElement("div");h.style.whiteSpace="nowrap";h.style.textOverflow="clip";h.style.paddingBottom="8px";h.style.cursor="default";var d=document.createElement("input");d.setAttribute("placeholder",mxResources.get("searchShapes"));d.setAttribute("type","text");h.appendChild(d);var g=document.createElement("img");g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));g.className="geAdaptiveAsset";g.style.position="relative";g.style.cursor="pointer";g.style.opacity="0.5";g.style.height="16px";g.style.left="-20px";g.style.top="4px";g.style.background="url('"+this.editorUi.editor.transparentImage+-"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),q=mxUtils.button(mxResources.get("moreResults"),function(){G()});q.style.display="none";q.style.lineHeight="normal";q.style.fontSize="12px";q.style.padding="6px 12px 6px 12px";q.style.marginTop="4px";q.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(q);f.appendChild(m);var k="",u=!1,w=!1,z=0,C={},E=12,D=mxUtils.bind(this,function(){u=!1;this.currentSearch=null;for(var J=f.firstChild;null!=-J;){var L=J.nextSibling;J!=h&&J!=m&&J.parentNode.removeChild(J);J=L}});mxEvent.addListener(g,"click",function(){g.getAttribute("src")!=Editor.magnifyImage&&b();d.focus()});var G=mxUtils.bind(this,function(){E=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=d.value){if(null!=m.parentNode&&(k!=d.value&&(D(),k=d.value,C={},w=!1,z=0),!u&&!w)){q.setAttribute("disabled","true");q.style.display="";q.style.cursor="wait";q.innerHTML=mxResources.get("loading")+-"...";u=!0;var J={};this.currentSearch=J;try{this.searchEntries(k,E,z,mxUtils.bind(this,function(L,Q,N,U){if(this.currentSearch==J){L=null!=L?L:[];u=!1;z++;this.insertSearchHint(f,k,E,z,L,Q,N,U);0==L.length&&1==z&&(k="");null!=m.parentNode&&m.parentNode.removeChild(m);for(Q=0;Q<L.length;Q++)mxUtils.bind(this,function(Y){try{var P=Y();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(Y,!1)&&(P.style.opacity=this.closedLibraryOpacity);null==C[P.innerHTML]?(C[P.innerHTML]=+"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),q=mxUtils.button(mxResources.get("moreResults"),function(){G()});q.style.display="none";q.style.lineHeight="normal";q.style.fontSize="12px";q.style.padding="6px 12px 6px 12px";q.style.marginTop="4px";q.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(q);f.appendChild(m);var k="",u=!1,w=!1,z=0,C={},E=12,D=mxUtils.bind(this,function(){u=!1;this.currentSearch=null;for(var I=f.firstChild;null!=+I;){var L=I.nextSibling;I!=h&&I!=m&&I.parentNode.removeChild(I);I=L}});mxEvent.addListener(g,"click",function(){g.getAttribute("src")!=Editor.magnifyImage&&b();d.focus()});var G=mxUtils.bind(this,function(){E=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=d.value){if(null!=m.parentNode&&(k!=d.value&&(D(),k=d.value,C={},w=!1,z=0),!u&&!w)){q.setAttribute("disabled","true");q.style.display="";q.style.cursor="wait";q.innerHTML=mxResources.get("loading")++"...";u=!0;var I={};this.currentSearch=I;try{this.searchEntries(k,E,z,mxUtils.bind(this,function(L,Q,N,U){if(this.currentSearch==I){L=null!=L?L:[];u=!1;z++;this.insertSearchHint(f,k,E,z,L,Q,N,U);0==L.length&&1==z&&(k="");null!=m.parentNode&&m.parentNode.removeChild(m);for(Q=0;Q<L.length;Q++)mxUtils.bind(this,function(Y){try{var P=Y();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(Y,!1)&&(P.style.opacity=this.closedLibraryOpacity);null==C[P.innerHTML]?(C[P.innerHTML]=null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(P)):null!=Y.parentLibraries&&(C[P.innerHTML]=C[P.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(P,null,null,mxUtils.bind(this,function(T){var K=C[P.innerHTML];mxEvent.isPopupTrigger(T)&&this.showPopupMenuForEntry(P,K,T)}));mxEvent.disableContextMenu(P)}catch(T){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(T.stack)):console.error(T))}})(L[Q]);N?(q.removeAttribute("disabled"),-q.innerHTML=mxResources.get("moreResults")):(q.innerHTML=mxResources.get("reset"),q.style.display="none",w=!0);q.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){q.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},q.style.display="none",w=!1,d.focus()});this.searchShapes=function(J){d.value=J;G()};mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(J){13==J.keyCode?(G(),mxEvent.consume(J)):27==J.keyCode&&b()}));+q.innerHTML=mxResources.get("moreResults")):(q.innerHTML=mxResources.get("reset"),q.style.display="none",w=!0);q.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){q.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},q.style.display="none",w=!1,d.focus()});this.searchShapes=function(I){d.value=I;G()};mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(I){13==I.keyCode?(G(),mxEvent.consume(I)):27==I.keyCode&&b()}));a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==d.value?(g.setAttribute("src",Editor.magnifyImage),g.setAttribute("title",mxResources.get("search"))):(g.setAttribute("src",Editor.crossImage),g.setAttribute("title",mxResources.get("reset")));""==d.value?(w=!0,q.style.display="none"):d.value!=k?(q.style.display="none",w=!1):u||(q.style.display=w?"none":"")}),0)});mxEvent.addListener(d,"keyup",a);mxEvent.addListener(d,"paste",a);mxEvent.addListener(d,"cut",a);mxEvent.addListener(d,-"mousedown",function(J){J.stopPropagation&&J.stopPropagation();J.cancelBubble=!0});mxEvent.addListener(d,"selectstart",function(J){J.stopPropagation&&J.stopPropagation();J.cancelBubble=!0});a=document.createElement("div");a.appendChild(f);this.appendChild(a);this.palettes.search=[e,a]};+"mousedown",function(I){I.stopPropagation&&I.stopPropagation();I.cancelBubble=!0});mxEvent.addListener(d,"selectstart",function(I){I.stopPropagation&&I.stopPropagation();I.cancelBubble=!0});a=document.createElement("div");a.appendChild(f);this.appendChild(a);this.palettes.search=[e,a]};Sidebar.prototype.insertSearchHint=function(a,b,e,f,h,d,g,m){0==h.length&&1==f&&(e=document.createElement("div"),e.className="geTitle",e.style.cssText="background-color:transparent;border-color:transparent;padding:6px 0px 0px 0px !important;margin:4px 8px 4px 8px;text-align:center;cursor:default !important;font-size:11px;font-weight:normal;",mxUtils.write(e,mxResources.get("noResultsFor",[b])),a.appendChild(e))};Sidebar.prototype.addGeneralPalette=function(a){this.setCurrentSearchEntryLibrary("general","general");var b=this.editorUi.editor.graph,e=this,f=parseInt(this.initialDefaultVertexStyle.fontSize);f=isNaN(f)?"":"fontSize="+Math.min(16,f)+";";var h=b.appendFontSize("edgeLabel;resizable=0;html=1;",b.edgeFontSize),d=new mxCell("List Item",new mxGeometry(0,0,80,30),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;"+f);d.vertex=!0;b=[this.createVertexTemplateEntry("rounded=0;whiteSpace=wrap;html=1;",120,60,"","Rectangle",null,null,"rect rectangle box"),this.createVertexTemplateEntry("rounded=1;whiteSpace=wrap;html=1;",120,60,"","Rounded Rectangle",null,null,"rounded rect rectangle box"),this.createVertexTemplateEntry(b.appendFontSize("text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",b.vertexFontSize),60,30,"Text","Text",null,null,"text textbox textarea label"),this.createVertexTemplateEntry("text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;",@@ -2454,17 +2454,17 @@ a.height))/100,this.graph.view.scaleAndTranslate(k,(b-a.width*k)/2/k-a.x,(e-a.hek.style.overflow=null!=w?"visible":"hidden";k.style.left=(null!=u?u:this.thumbBorder)+"px";k.style.top=k.style.left;k.style.width=b+"px";k.style.height=e+"px";k.style.visibility="";k.style.minWidth="";k.style.minHeight="";this.disablePointerEvents(k);f.appendChild(k);this.sidebarTitles&&null!=h&&0!=g&&(f.style.height=this.thumbHeight+0+this.sidebarTitleSize+8+"px",b=document.createElement("div"),b.style.color=Editor.isDarkMode()?"#A0A0A0":"#303030",b.style.fontSize=this.sidebarTitleSize+"px",b.style.textAlign="center",b.style.whiteSpace="nowrap",b.style.overflow="hidden",b.style.textOverflow="ellipsis",mxClient.IS_IE&&(b.style.height=this.sidebarTitleSize+12+"px"),b.style.paddingTop="4px",mxUtils.write(b,h),f.appendChild(b));return a};Sidebar.prototype.createSection=function(a){return mxUtils.bind(this,function(){var b=document.createElement("div");b.setAttribute("title",a);b.style.textOverflow="ellipsis";b.style.whiteSpace="nowrap";b.style.textAlign="center";b.style.overflow="hidden";b.style.width="100%";b.style.padding="14px 0";mxUtils.write(b,a);return b})};-Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var E=document.createElement("a");E.className="geItem";E.style.overflow="hidden";var D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";E.style.padding=this.thumbPadding+"px";mxEvent.addListener(E,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,h,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),+Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var E=document.createElement("a");E.className="geItem";E.style.overflow="hidden";var D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";E.style.padding=this.thumbPadding+"px";mxEvent.addListener(E,"click",function(I){mxEvent.consume(I)});var G=new mxRectangle(0,0,h,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),null!=w?(E.style.backgroundImage="url("+w+")",E.style.backgroundRepeat="no-repeat",E.style.backgroundPosition="center",E.style.backgroundSize="24px 24px"):this.createThumb(D,k,u,E,b,e,f,h,d),1<a.length||a[0].vertex?(f=this.createDragSource(E,this.createDropHandler(a,!0,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q,z),f.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):-null!=a[0]&&a[0].edge&&(f=this.createDragSource(E,this.createDropHandler(a,!1,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(J){mxEvent.isMouseEvent(J)&&this.showTooltip(E,a,G.width,G.height,b,e)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};+null!=a[0]&&a[0].edge&&(f=this.createDragSource(E,this.createDropHandler(a,!1,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(I){mxEvent.isMouseEvent(I)&&this.showTooltip(E,a,G.width,G.height,b,e)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};Sidebar.prototype.createDropHandler=function(a,b,e,f,h,d){e=null!=e?e:!0;return mxUtils.bind(this,function(g,m,q,k,u,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&g.isEnabled()){a=g.getImportableCells(a);if(0<a.length){g.stopEditing();w=null==q||mxEvent.isAltDown(m)?!1:g.isValidDropTarget(q,a,m);var z=null;null==q||w||(q=null);if(!g.isCellLocked(q||-g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(q,a,m)){var C=g.view.scale,E=g.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,J=g.cloneCells(a);g.splitEdge(q,J,null,k-f.width/2,u-f.height/2,D,G);z=J}else if(0<a.length&&(z=g.importCells(a,k,u,q),g.model.isVertex(d)&&1==z.length&&g.model.isVertex(z[0]))){var L=g.insertEdge(g.model.getParent(d),null,"",d,z[0],g.createCurrentEdgeStyle());g.applyNewEdgeStyle(d,[L]);z.push(L);g.connectionHandler.insertBeforeSource&&+g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(q,a,m)){var C=g.view.scale,E=g.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,I=g.cloneCells(a);g.splitEdge(q,I,null,k-f.width/2,u-f.height/2,D,G);z=I}else if(0<a.length&&(z=g.importCells(a,k,u,q),g.model.isVertex(d)&&1==z.length&&g.model.isVertex(z[0]))){var L=g.insertEdge(g.model.getParent(d),null,"",d,z[0],g.createCurrentEdgeStyle());g.applyNewEdgeStyle(d,[L]);z.push(L);g.connectionHandler.insertBeforeSource&&g.insertEdgeBeforeCell(L,d)}if(null!=g.layoutManager){var Q=g.layoutManager.getLayout(q);if(null!=Q){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var N=0;N<z.length;N++)Q.moveCell(z[N],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(N=0;N<z.length;N++)g.model.isVertex(z[N])&&g.isAutoSizeCell(z[N])&&g.updateCellSize(z[N])}catch(U){this.editorUi.handleError(U)}finally{g.model.endUpdate()}null!=z&&0<z.length&&(g.scrollCellToVisible(z[0]),g.setSelectionCells(z));(h||g.editAfterInsert&&null!=m&&mxEvent.isMouseEvent(m)&&null!=z&&1==z.length)&&window.setTimeout(function(){g.startEditing(z[0])},0)}}mxEvent.consume(m)}})};Sidebar.prototype.createDragPreview=function(a,b){var e=document.createElement("div");e.className="geDragPreview";e.style.width=a+"px";e.style.height=b+"px";return e};-Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,q=m.model.isEdge(a)||null!=d?d:g;q=this.getDropAndConnectGeometry(a,b[q],e,b);var k=[];if(null!=q){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),z=m.getCellGeometry(b[f]),C=m.model.getParent(a),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var J=k.origin;D=J.x;-G=J.y}var L=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),Q=m.getCellAt((q.x+D+m.view.translate.x)*m.view.scale,(q.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(K,V,Z){return!m.isContainer(K.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(J=k.origin,C=Q,L=!0,m.model.isEdge(a)||(q.x-=J.x-D,q.y-=J.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))q.x+=D,q.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,q.x-(L?D:0),q.y-(L?+Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,q=m.model.isEdge(a)||null!=d?d:g;q=this.getDropAndConnectGeometry(a,b[q],e,b);var k=[];if(null!=q){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),z=m.getCellGeometry(b[f]),C=m.model.getParent(a),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var I=k.origin;D=I.x;+G=I.y}var L=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),Q=m.getCellAt((q.x+D+m.view.translate.x)*m.view.scale,(q.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(K,V,Z){return!m.isContainer(K.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(I=k.origin,C=Q,L=!0,m.model.isEdge(a)||(q.x-=I.x-D,q.y-=I.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))q.x+=D,q.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,q.x-(L?D:0),q.y-(L?G:0),L?C:null);if(m.model.isEdge(a))m.model.setTerminal(a,b[f],e==mxConstants.DIRECTION_NORTH),null!=g&&null!=d&&(m.model.remove(b[g]),m.updateShapes(b[g],[a]));else if(m.model.isEdge(b[f])&&null==d){m.model.setTerminal(b[f],a,!0);var N=m.getCellGeometry(b[f]),U=null!=N?N.getTerminalPoint(!0):null;N.points=null;if(null!=U)for(e=0;e<b.length;e++)if(m.model.isEdge(b[e])&&e!=f){var Y=m.getCellGeometry(b[e]),P=null!=Y?Y.getTerminalPoint(!0):null;null!=P&&P.x==U.x&&P.y==U.y&&m.model.setTerminal(b[e],a,-!0)}if(null!=N.getTerminalPoint(!1))N.setTerminalPoint(q.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var T=m.view.getState(C);J=T.cell!=m.view.currentRoot?T.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=q.x-Math.round(z.x),G=q.y-Math.round(z.y),q.x=Math.round(z.x),q.y=Math.round(z.y),m.model.setGeometry(b[f],q),m.cellsMoved(b,D,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=g?m.model.setTerminal(b[g],a,!0):b.push(m.insertEdge(null,+!0)}if(null!=N.getTerminalPoint(!1))N.setTerminalPoint(q.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var T=m.view.getState(C);I=T.cell!=m.view.currentRoot?T.origin:new mxPoint(0,0);m.cellsMoved(b,I.x,I.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=q.x-Math.round(z.x),G=q.y-Math.round(z.y),q.x=Math.round(z.x),q.y=Math.round(z.y),m.model.setGeometry(b[f],q),m.cellsMoved(b,D,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=g?m.model.setTerminal(b[g],a,!0):b.push(m.insertEdge(null,null,"",a,b[f],m.createCurrentEdgeStyle())));null!=h&&mxEvent.isShiftDown(h)||m.fireEvent(new mxEventObject("cellsInserted","cells",b))}catch(K){this.editorUi.handleError(K)}finally{m.model.endUpdate()}m.editAfterInsert&&null!=h&&mxEvent.isMouseEvent(h)&&null!=u&&window.setTimeout(function(){m.startEditing(u)},0)}null!=g&&1<k.length&&k.splice(g,1);return k};Sidebar.prototype.getDropAndConnectGeometry=function(a,b,e,f){var h=this.editorUi.editor.graph,d=h.view,g=1<f.length,m=h.view.getState(a),q=h.getCellGeometry(a);f=h.getCellGeometry(b);null!=m&&null!=q&&null!=f&&(f=f.clone(),h.model.isEdge(a)?(q=m.absolutePoints,b=q[0],h=q[q.length-1],e==mxConstants.DIRECTION_NORTH?(f.x=b.x/d.scale-d.translate.x-f.width/2,f.y=b.y/d.scale-d.translate.y-f.height/2):(f.x=h.x/d.scale-d.translate.x-f.width/2,f.y=h.y/d.scale-d.translate.y-f.height/2)):(q.relative&&(q=q.clone(),q.x=(m.x-d.translate.x)/d.scale,q.y=(m.y-d.translate.y)/d.scale),d=h.defaultEdgeLength,h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=f.getTerminalPoint(!1)?(b=f.getTerminalPoint(!0),h=f.getTerminalPoint(!1),d=h.x-b.x,b=h.y-b.y,d=Math.sqrt(d*d+b*b),f.x=q.getCenterX(),f.y=q.getCenterY(),f.width=1,f.height=1,e==mxConstants.DIRECTION_NORTH?(f.height=d,f.y=q.y-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1)):e==mxConstants.DIRECTION_EAST?(f.width=d,f.x=q.x+q.width,f.setTerminalPoint(new mxPoint(f.x+@@ -2476,7 +2476,7 @@ Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(ma,Ba){var Cq.editor.graph,u=null,w=null,z=this;d=0;for(var C=this.livePreview,E=0;E<f.length&&C;E++)d+=k.model.getDescendants(f[E]).length,C=d<k.graphHandler.maxLivePreview;for(E=0;E<f.length&&(null==w&&k.model.isVertex(f[E])?w=E:null==u&&k.model.isEdge(f[E])&&null==k.model.getTerminal(f[E],!0)&&(u=E),null==w||null==u);E++);var D=this.isDropStyleEnabled(f,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(ma,Ba,Ca,Ja,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=N&&O==V){var Da=ma.isCellSelected(N.cell)?ma.getSelectionCells():[N.cell];ma.updateShapes(ma.model.isEdge(N.cell)?f[0]:f[w],Da,!0);ma.setSelectionCells(Da)}else null!=f&&null!=O&&null!=L&&O!=V?(Da=ma.model.isEdge(L.cell)||null==u?w:u,ma.setSelectionCells(this.dropAndConnect(L.cell,f,sa,Da,Ba,w,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(ma.view.getState(ma.getSelectionCell()))}),e,0,0,k.autoscroll,!0,!0);C&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),G.createPreviewElement=mxUtils.bind(this,function(ma){var Ba=document.createElement("a");Ba.className="geItem";Ba.style.overflow="visible";ma=ma.view.scale;Ba.style.width=ma*Math.max(1,h.width)+"px";Ba.style.height=ma*Math.max(1,h.height)+"px";mxUtils.setOpacity(Ba,50);var Ca=k.cloneCells(f);this.graph.pasteCellStyles(k.includeDescendants(Ca),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);z.createThumb(Ca,ma*Math.max(1,h.width),ma*Math.max(1,h.height),Ba,null,null,null,null,null,k.shapeBackgroundColor,-0,ma);return Ba}));var J=G.mouseDown;G.mouseDown=function(ma){mxEvent.isPopupTrigger(ma)||mxEvent.isMultiTouchEvent(ma)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),J.apply(this,arguments))};var L=null,Q=null,N=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),P=g(this.triangleRight,mxResources.get("connect")),T=g(this.triangleDown,mxResources.get("connect")),K=g(this.triangleLeft,mxResources.get("connect")),V=g(this.refreshTarget,mxResources.get("replace")),Z=null,ia=g(this.roundDrop),+0,ma);return Ba}));var I=G.mouseDown;G.mouseDown=function(ma){mxEvent.isPopupTrigger(ma)||mxEvent.isMultiTouchEvent(ma)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),I.apply(this,arguments))};var L=null,Q=null,N=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),P=g(this.triangleRight,mxResources.get("connect")),T=g(this.triangleDown,mxResources.get("connect")),K=g(this.triangleLeft,mxResources.get("connect")),V=g(this.refreshTarget,mxResources.get("replace")),Z=null,ia=g(this.roundDrop),oa=g(this.roundDrop),sa=mxConstants.DIRECTION_NORTH,O=null,X=G.createPreviewElement;G.createPreviewElement=function(ma){var Ba=X.apply(this,arguments);mxClient.IS_SVG&&(Ba.style.pointerEvents="none");this.previewElementWidth=Ba.style.width;this.previewElementHeight=Ba.style.height;return Ba};var ba=G.dragEnter;G.dragEnter=function(ma,Ba){null!=q.hoverIcons&&q.hoverIcons.setDisplay("none");ba.apply(this,arguments)};var da=G.dragExit;G.dragExit=function(ma,Ba){null!=q.hoverIcons&&q.hoverIcons.setDisplay("");da.apply(this,arguments)};G.dragOver=function(ma,Ba){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){q.hideShapePicker();var Ca=ma.view;if(null!=N&&O==V)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ja=ma.model.isEdge(L.cell)||null!=w?w:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Ja],sa,f),Da=ma.model.isEdge(L.cell)?null:ma.getCellGeometry(L.cell),Ga=ma.getCellGeometry(f[Ja]),ta=ma.model.getParent(L.cell),La=Ca.translate.x*Ca.scale,Xa=Ca.translate.y*Ca.scale;null!=Da&&!Da.relative&&ma.model.isVertex(ta)&&ta!=Ca.currentRoot&&(Xa=Ca.getState(ta),La=Xa.x,Xa=Xa.y);Da=Ga.x;Ga=Ga.y;ma.model.isEdge(f[Ja])&&(Ga=Da=0);this.previewElement.style.left=(Ia.x-Da)*Ca.scale+La+"px";this.previewElement.style.top=(Ia.y-Ga)*Ca.scale+Xa+"px";1==f.length&&(this.previewElement.style.width=Ia.width*Ca.scale+"px",this.previewElement.style.height=@@ -2515,7 +2515,7 @@ null)}),200)}),0)):(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),wiSidebar.prototype.addImagePalette=function(a,b,e,f,h,d,g){for(var m=[],q=0;q<h.length;q++)mxUtils.bind(this,function(k,u,w){if(null==w&&(null==e||"img/lib/clip_art/"!=e.substring(0,17))){w=k.lastIndexOf("/");var z=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=z?z:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+e+k+f,this.defaultImageWidth,this.defaultImageHeight,"",u,null!=u,null,this.filterTags(w)))})(h[q],null!=d?d[q]:null,null!=g?g[h[q]]:null);this.addPaletteFunctions(a,b,!1,m)};Sidebar.prototype.getTagsForStencil=function(a,b,e){a=a.split(".");for(var f=1;f<a.length;f++)a[f]=a[f].replace(/_/g," ");a.push(b.replace(/_/g," "));null!=e&&a.push(e);return a.slice(1,a.length)};Sidebar.prototype.addStencilPalette=function(a,b,e,f,h,d,g,m,q,k){g=null!=g?g:1;if(this.addStencilsToIndex){var u=[];if(null!=q)for(k=0;k<q.length;k++)u.push(q[k]);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(w,z,C,E,D){if(null==h||0>mxUtils.indexOf(h,z)){C=this.getTagsForStencil(w,z);var G=null!=m?m[z]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+w+z.toLowerCase()+f,Math.round(E*g),Math.round(D*g),"",z.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),-!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==f&&(f="");null!=d&&d.call(this,w);if(null!=q)for(var z=0;z<q.length;z++)q[z](w);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,J){(null==h||0>mxUtils.indexOf(h,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+f,Math.round(G*g),Math.round(J*g),"",E.replace(/_/g," "),!0))}),!0)}))};+!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==f&&(f="");null!=d&&d.call(this,w);if(null!=q)for(var z=0;z<q.length;z++)q[z](w);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,I){(null==h||0>mxUtils.indexOf(h,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+f,Math.round(G*g),Math.round(I*g),"",E.replace(/_/g," "),!0))}),!0)}))};Sidebar.prototype.destroy=function(){null!=this.graph&&(null!=this.graph.container&&null!=this.graph.container.parentNode&&this.graph.container.parentNode.removeChild(this.graph.container),this.graph.destroy(),this.graph=null);null!=this.escapeListener&&(this.editorUi.editor.graph.removeListener(this.escapeListener),this.escapeListener=null);null!=this.pointerUpHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerup":"mouseup",this.pointerUpHandler),this.pointerUpHandler=null);null!=this.pointerDownHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerdown":"mousedown",this.pointerDownHandler),this.pointerDownHandler=null);null!=this.pointerMoveHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.pointerMoveHandler),this.pointerMoveHandler=null);null!=this.pointerOutHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerout":"mouseout",this.pointerOutHandler),this.pointerOutHandler=null)};(function(){var a=[["nbsp","160"],["shy","173"]],b=mxUtils.parseXml;mxUtils.parseXml=function(f){for(var h=0;h<a.length;h++)f=f.replace(new RegExp("&"+a[h][0]+";","g"),"&#"+a[h][1]+";");return b(f)};var e=mxUtils.getSizeForString;mxUtils.getSizeForString=function(f,h,d,g){return e(Graph.sanitizeHtml(f),h,d,g)}})();Date.prototype.toISOString||function(){function a(b){b=String(b);1===b.length&&(b="0"+b);return b}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});@@ -2548,8 +2548,8 @@ X&&(O.lastLabelValue=X,O.lastSanitizedLabelValue=Graph.sanitizeHtml(X),z.innerHTda;da=this.graph.view.translate;for(var H=this.graph.view.scale,ea=this.graph.getPageLayout(),ra=0;ra<ea.width;ra++)X.push(new mxRectangle(((ea.x+ra)*ca+da.x)*H,(ea.y*ba+da.y)*H,ca*H,ba*H));for(ra=1;ra<ea.height;ra++)X.push(new mxRectangle((ea.x*ca+da.x)*H,((ea.y+ra)*ba+da.y)*H,ca*H,ba*H));O=X.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,X){return null==O.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(O){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var E=this.graphHandler.getCells;this.graphHandler.getCells=function(O){for(var X=E.apply(this,arguments),ba=new mxDictionary,da=[],ca=0;ca<X.length;ca++){var H=this.graph.isTableCell(O)&&this.graph.isTableCell(X[ca])&&this.graph.isCellSelected(X[ca])?this.graph.model.getParent(X[ca]):this.graph.isTableRow(O)&&this.graph.isTableRow(X[ca])&&this.graph.isCellSelected(X[ca])?X[ca]:this.graph.getCompositeParent(X[ca]);null==H||ba.get(H)||(ba.put(H,!0),da.push(H))}return da};var D=this.graphHandler.start;this.graphHandler.start=function(O,X,ba,da){var ca=!1;this.graph.isTableCell(O)&&(this.graph.isCellSelected(O)?ca=!0:O=this.graph.model.getParent(O));ca||this.graph.isTableRow(O)&&this.graph.isCellSelected(O)||(O=this.graph.getCompositeParent(O));D.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(O,X){X=this.graph.getCompositeParent(X);-return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,X,ba,da,ca,H){var ea=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=da&&this.graph.applyNewEdgeStyle(da,[ea]);return ea};var G=new mxRubberband(this);this.getRubberband=function(){return G};var J=(new Date).getTime(),L=0,Q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;Q.apply(this,arguments);O!=this.currentState?-(J=(new Date).getTime(),L=0):L=(new Date).getTime()-J};var N=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(O){return mxEvent.isShiftDown(O.getEvent())&&mxEvent.isAltDown(O.getEvent())?!1:null!=this.currentState&&O.getState()==this.currentState&&2E3<L||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&N.apply(this,arguments)};var U=this.isToggleEvent;this.isToggleEvent=function(O){return U.apply(this,+return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,X,ba,da,ca,H){var ea=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=da&&this.graph.applyNewEdgeStyle(da,[ea]);return ea};var G=new mxRubberband(this);this.getRubberband=function(){return G};var I=(new Date).getTime(),L=0,Q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;Q.apply(this,arguments);O!=this.currentState?+(I=(new Date).getTime(),L=0):L=(new Date).getTime()-I};var N=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(O){return mxEvent.isShiftDown(O.getEvent())&&mxEvent.isAltDown(O.getEvent())?!1:null!=this.currentState&&O.getState()==this.currentState&&2E3<L||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&N.apply(this,arguments)};var U=this.isToggleEvent;this.isToggleEvent=function(O){return U.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(O)};var Y=G.isForceRubberbandEvent;G.isForceRubberbandEvent=function(O){return Y.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(O.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==O.getState()&&mxEvent.isTouchEvent(O.getEvent())};var P=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(P=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=P)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(O){return mxEvent.isMouseEvent(O.getEvent())};var T=this.click;this.click=function(O){var X=null==O.state&&null!=O.sourceState&&this.isCellLocked(this.getLayerForCell(O.sourceState.cell));if(this.isEnabled()&&!X||O.isConsumed())return T.apply(this,arguments);var ba=X?O.sourceState.cell:O.getCell();if(null!=ba){var da=this.getClickableLinkForCell(ba);null!=da?this.isCustomLink(da)?this.customLinkClicked(da,ba):this.openLink(da):X&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};var K=this.tooltipHandler.show;this.tooltipHandler.show=function(){K.apply(this,arguments);if(null!=this.div)for(var O=this.div.getElementsByTagName("a"),X=0;X<O.length;X++)null!=O[X].getAttribute("href")&&null==O[X].getAttribute("target")&&O[X].setAttribute("target",@@ -2584,16 +2584,16 @@ Graph.arrayBufferToString=function(a){var b="";a=new Uint8Array(a);for(var e=a.bGraph.arrayBufferIndexOfString=function(a,b,e){var f=b.charCodeAt(0),h=1,d=-1;for(e=e||0;e<a.byteLength;e++)if(a[e]==f){d=e;break}for(e=d+1;-1<d&&e<a.byteLength&&e<d+b.length-1;e++){if(a[e]!=b.charCodeAt(h))return Graph.arrayBufferIndexOfString(a,b,d+1);h++}return h==b.length-1?d:-1};Graph.compress=function(a,b){if(null==a||0==a.length||"undefined"===typeof pako)return a;a=b?pako.deflate(encodeURIComponent(a)):pako.deflateRaw(encodeURIComponent(a));return btoa(Graph.arrayBufferToString(new Uint8Array(a)))};Graph.decompress=function(a,b,e){if(null==a||0==a.length||"undefined"===typeof pako)return a;a=Graph.stringToArrayBuffer(atob(a));b=decodeURIComponent(b?pako.inflate(a,{to:"string"}):pako.inflateRaw(a,{to:"string"}));return e?b:Graph.zapGremlins(b)};Graph.fadeNodes=function(a,b,e,f,h){h=null!=h?h:1E3;Graph.setTransitionForNodes(a,null);Graph.setOpacityForNodes(a,b);window.setTimeout(function(){Graph.setTransitionForNodes(a,"all "+h+"ms ease-in-out");Graph.setOpacityForNodes(a,e);window.setTimeout(function(){Graph.setTransitionForNodes(a,null);null!=f&&f()},h)},0)};-Graph.exploreFromCell=function(a,b,e){pageSize=null!=e&&null!=e.pageSize?e.pageSize:8;minSize=null!=e&&null!=e.minSize?e.minSize:180;(function(f,h){function d(u,w){if(u.getModel().isVertex(w)){var z=u.container.scrollWidth/2,C=u.container.scrollHeight/2;u.rootCell=w.referenceCell||w;u.getModel().beginUpdate();try{for(var E=w.referenceCell||w,D=f.model.getCell(E.sourceCellId),G=f.getEdges(D,null,!0,!0,!1,!0),J=[],L=0;L<G.length;L++)null!=G[L].getTerminal(!0)&&null!=G[L].getTerminal(!1)&&f.isCellVisible(G[L])&&-!f.isEdgeIgnored(G[L])&&f.isCellVisible(G[L].getTerminal(!0))&&f.isCellVisible(G[L].getTerminal(!1))&&f.isCellVisible(f.getLayerForCell(G[L]))&&J.push(G[L]);J=G=J;if(null!=w.startIndex||0<pageSize&&G.length>pageSize){var Q=w.startIndex||0;J=G.slice(Math.max(0,Q),Math.min(G.length,Q+pageSize))}J=f.getOpposites(J,D).concat(J);var N=u.cloneCells(J);for(L=0;L<J.length;L++)if(N[L].sourceCellId=J[L].id,u.model.isEdge(N[L]))for(N[L].geometry.x=0,N[L].geometry.y=0,N[L].geometry.points=null,N[L].setStyle(N[L].getStyle()++Graph.exploreFromCell=function(a,b,e){pageSize=null!=e&&null!=e.pageSize?e.pageSize:8;minSize=null!=e&&null!=e.minSize?e.minSize:180;(function(f,h){function d(u,w){if(u.getModel().isVertex(w)){var z=u.container.scrollWidth/2,C=u.container.scrollHeight/2;u.rootCell=w.referenceCell||w;u.getModel().beginUpdate();try{for(var E=w.referenceCell||w,D=f.model.getCell(E.sourceCellId),G=f.getEdges(D,null,!0,!0,!1,!0),I=[],L=0;L<G.length;L++)null!=G[L].getTerminal(!0)&&null!=G[L].getTerminal(!1)&&f.isCellVisible(G[L])&&+!f.isEdgeIgnored(G[L])&&f.isCellVisible(G[L].getTerminal(!0))&&f.isCellVisible(G[L].getTerminal(!1))&&f.isCellVisible(f.getLayerForCell(G[L]))&&I.push(G[L]);I=G=I;if(null!=w.startIndex||0<pageSize&&G.length>pageSize){var Q=w.startIndex||0;I=G.slice(Math.max(0,Q),Math.min(G.length,Q+pageSize))}I=f.getOpposites(I,D).concat(I);var N=u.cloneCells(I);for(L=0;L<I.length;L++)if(N[L].sourceCellId=I[L].id,u.model.isEdge(N[L]))for(N[L].geometry.x=0,N[L].geometry.y=0,N[L].geometry.points=null,N[L].setStyle(N[L].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffc0;textOpacity=100;"),N[L].setTerminal(E,null==N[L].getTerminal(!0)),D=0;D<N[L].getChildCount();D++){var U=N[L].getChildAt(D);null!=U.geometry&&U.geometry.relative&&(U.setStyle(U.getStyle()+";labelBackgroundColor=#ffffffc0;textOpacity=100;"),U.geometry.offset=new mxPoint(0,0),U.geometry.y=0,U.geometry.x=.5>U.geometry.x?-.8:.5<U.geometry.x?.8:0)}if(0<w.startIndex){var Y=u.createVertex(null,null,mxResources.get("previousPage")+" ("+Math.ceil((w.startIndex||0)/pageSize)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");Y.referenceCell=E;Y.startIndex=Math.max(0,(w.startIndex||0)-pageSize);N.splice(0,0,Y)}if(G.length>(w.startIndex||0)+pageSize){var P=u.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((w.startIndex||0)/pageSize)+2)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");P.referenceCell=E;P.startIndex=(w.startIndex||0)+pageSize;N.splice(0,0,P)}for(var T in u.getModel().cells){var K=u.getModel().getCell(T);K!=u.rootCell&&!u.getModel().isAncestor(u.rootCell,K)&&u.getModel().isVertex(K)&&u.removeCells([K])}u.addCells(N);var V=u.getModel().getGeometry(u.rootCell);null!=V&&(V=V.clone(),V.x=z-V.width/2,V.y=C-V.height/3,u.getModel().setGeometry(u.rootCell,V));w=[];for(T in u.getModel().cells)K=u.getModel().getCell(T),K!=u.rootCell&&u.getModel().isVertex(K)&&u.getModel().getParent(K)==u.getDefaultParent()&&(w.push(K),V=u.getModel().getGeometry(K),null!=V&&(V.x=z-V.width/2,V.y=C-V.height/2));var Z=w.length,ia=2*Math.PI/Z,oa=Math.max(minSize,Math.min(u.container.scrollWidth/2.5-80,u.container.scrollHeight/2.5-80));for(z=0;z<Z;z++)V=u.getModel().getGeometry(w[z]),null!=V&&(V=V.clone(),V.x+=oa*Math.sin(z*ia),V.y+=oa*Math.cos(z*ia),u.getModel().setGeometry(w[z],V))}finally{u.getModel().endUpdate()}}}var g=document.createElement("div");g.style.position="absolute";g.style.display="block";g.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";g.style.width="100%";g.style.height="100%";g.style.left="0px";g.style.top="0px";g.style.zIndex=2;var m=document.createElement("img");m.setAttribute("src",Editor.closeBlackImage);m.style.position="absolute";m.style.cursor="pointer";m.style.right="10px";m.style.top="10px";g.appendChild(m);var q=document.createElement("div");q.style.position="absolute";q.style.cursor="pointer";q.style.right="38px";q.style.top="14px";q.style.textAlign="right";q.style.verticalAlign=-"top";mxUtils.write(q,mxResources.get("close"));g.appendChild(q);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var w=new Graph(u);w.keepEdgesInBackground=!0;w.isCellResizable=function(){return!1};w.isCellRotatable=function(){return!1};w.getCursorForCell=function(J){return this.model.isVertex(J)?"pointer":null};w.getFoldingImage=function(){return null};var z=function(){mxEvent.removeListener(document,-"keydown",k);u.parentNode.removeChild(u);f.scrollCellToVisible(h)};mxEvent.addListener(m,"click",z);mxEvent.addListener(q,"click",z);w.setEnabled(!1);var C=w.click;w.click=function(J){var L=J.getCell(),Q=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(Q).length?d(w,L):C.apply(this,arguments)};z=w.container.scrollWidth/2;var E=w.container.scrollHeight/3;w.model.beginUpdate();var D=w.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;-D.geometry.y=E-D.geometry.height/2;w.model.endUpdate();var G=!1;w.getModel().addListener(mxEvent.CHANGE,function(J,L){G||(J=L.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,w.labelsVisible=!1,G=!0,mxEffects.animateChanges(w,J,function(){var Q=new mxParallelEdgeLayout(w);Q.spacing=60;var N=Q.layout;Q.layout=function(U){Q.spacing=Math.min(60,Math.max(30,60-5*U.length));N.apply(this,arguments)};Q.execute(w.getDefaultParent());mxText.prototype.enableBoundingBox=!0;w.labelsVisible=!0;+"top";mxUtils.write(q,mxResources.get("close"));g.appendChild(q);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var w=new Graph(u);w.keepEdgesInBackground=!0;w.isCellResizable=function(){return!1};w.isCellRotatable=function(){return!1};w.getCursorForCell=function(I){return this.model.isVertex(I)?"pointer":null};w.getFoldingImage=function(){return null};var z=function(){mxEvent.removeListener(document,+"keydown",k);u.parentNode.removeChild(u);f.scrollCellToVisible(h)};mxEvent.addListener(m,"click",z);mxEvent.addListener(q,"click",z);w.setEnabled(!1);var C=w.click;w.click=function(I){var L=I.getCell(),Q=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(Q).length?d(w,L):C.apply(this,arguments)};z=w.container.scrollWidth/2;var E=w.container.scrollHeight/3;w.model.beginUpdate();var D=w.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;+D.geometry.y=E-D.geometry.height/2;w.model.endUpdate();var G=!1;w.getModel().addListener(mxEvent.CHANGE,function(I,L){G||(I=L.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,w.labelsVisible=!1,G=!0,mxEffects.animateChanges(w,I,function(){var Q=new mxParallelEdgeLayout(w);Q.spacing=60;var N=Q.layout;Q.layout=function(U){Q.spacing=Math.min(60,Math.max(30,60-5*U.length));N.apply(this,arguments)};Q.execute(w.getDefaultParent());mxText.prototype.enableBoundingBox=!0;w.labelsVisible=!0;w.tooltipHandler.hide();w.refresh();G=!1}))});d(w,D)}else mxUtils.error("Browser is not supported!",200,!1)})(g)})(a,b)};Graph.removeKeys=function(a,b){for(var e in a)b(e)&&delete a[e]};Graph.setTransitionForNodes=function(a,b){for(var e=0;e<a.length;e++)mxUtils.setPrefixedStyle(a[e].style,"transition",b)};Graph.setOpacityForNodes=function(a,b){for(var e=0;e<a.length;e++)a[e].style.opacity=b};Graph.removePasteFormatting=function(a,b){for(;null!=a;){null!=a.firstChild&&Graph.removePasteFormatting(a.firstChild,!0);var e=a.nextSibling;if(a.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=a.style){"#000000"==a.style.color&&(a.style.color="");if("SPAN"==a.nodeName&&"Apple-tab-span"==a.className){var f=Graph.createTabNode(4);a.parentNode.replaceChild(f,a);a=f}if("P"==a.nodeName&&"p1"==a.className){for(;null!=a.firstChild;)a.parentNode.insertBefore(a.firstChild,a);null!=e&&"P"==e.nodeName&&"p1"==e.className&&a.parentNode.insertBefore(a.ownerDocument.createElement("br"),a);a.parentNode.removeChild(a)}!b&&null!=a.innerHTML&&0<=a.innerHTML.indexOf("\t")&&(f=Graph.createTabNode(4),a.innerHTML=a.innerHTML.replace(/\t/g,f.outerHTML))}a=e}};Graph.createTabNode=function(a){var b="\t";if(null!=a)for(b="";0<a;)b+=" ",a--;a=document.createElement("span");a.style.whiteSpace="pre";a.appendChild(document.createTextNode(b));return a};Graph.sanitizeHtml=function(a,b){return Graph.domPurify(a,!1)};@@ -2622,7 +2622,7 @@ g){var k={},u;for(u in g){var w=g[u];null!=w&&(k[u]=!0,null==m[u]&&q?m[u]=w:m[u](!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g))for(m=0;m<this.model.getChildCount(g);m++){var q=this.model.getChildAt(g,m);if(this.isCellEditable(q)){g=q;break}}return g};Graph.prototype.copyStyle=function(g){return this.getCellStyle(g,!1)};Graph.prototype.pasteStyle=function(g,m,q,k){null!=g&&(k||(q=null!=q?q:Graph.cellStyles,Graph.removeKeys(g,function(u){return 0>mxUtils.indexOf(q,u)})),this.updateCellStyles(g,m))};Graph.prototype.copyCellStyles=function(g,m,q,k,u,w,z){var C=!1,E=!1;if(0<g.length)for(var D=0;D<g.length&&(C=this.getModel().isVertex(g[D])||C,!(E=this.getModel().isEdge(g[D])||E)||!C);D++);else E=C=!0;C=C&&!w;E=E&&!z;for(D=0;D<m.length;D++)if(g=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=q[D]&&"none"!=q[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||g)&&(null==q[D]?delete k[m[D]]:k[m[D]]=q[D]),E||g)null==q[D]?delete u[m[D]]:u[m[D]]=q[D]};Graph.prototype.includeDescendants=function(g){for(var m=[],q=0;q<g.length;q++)m=m.concat(this.model.getDescendants(g[q]));return m};Graph.prototype.pasteCellStyles=function(g,m,q,k,u){m=null!=m?m:this.currentVertexStyle;q=null!=q?q:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<g.length;w++){var z=g[w],C=this.model.getStyle(z),E=!1;null!=z.style&&(pairs=z.style.split(";"),E=E||0<=mxUtils.indexOf(pairs,"text"));if(E)var D=Graph.textStyles;else if(D=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):-[],J=0;J<G.length;J++){var L=G[J],Q=L.indexOf("=");if(0<=Q){var N=L.substring(0,Q),U=mxUtils.indexOf(D,N);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,N))for(var P=0;P<Y.length;P++){var T=mxUtils.indexOf(D,Y[P]);0<=T&&D.splice(T,1)}}}}var K=this.model.isEdge(z);E=K?q:m;for(J=0;J<D.length;J++){N=D[J];var V=E[N];null!=V&&("edgeStyle"!=N||u)&&(K||!K&&0>mxUtils.indexOf(Graph.edgeStyles,N))&&(C=mxUtils.setStyle(C,N,V),"fontFamily"==+[],I=0;I<G.length;I++){var L=G[I],Q=L.indexOf("=");if(0<=Q){var N=L.substring(0,Q),U=mxUtils.indexOf(D,N);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,N))for(var P=0;P<Y.length;P++){var T=mxUtils.indexOf(D,Y[P]);0<=T&&D.splice(T,1)}}}}var K=this.model.isEdge(z);E=K?q:m;for(I=0;I<D.length;I++){N=D[I];var V=E[N];null!=V&&("edgeStyle"!=N||u)&&(K||!K&&0>mxUtils.indexOf(Graph.edgeStyles,N))&&(C=mxUtils.setStyle(C,N,V),"fontFamily"==N&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),K&&"rounded"==N&&"1"==V&&null==E.curved&&(C=mxUtils.setStyle(C,"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(z,C)}}finally{this.model.endUpdate()}return g};Graph.prototype.updateCellStyles=function(g,m){this.model.beginUpdate();try{for(var q=0;q<m.length;q++)if(this.model.isVertex(m[q])||this.model.isEdge(m[q])){var k=this.getCellStyle(m[q],!1),u=k[mxConstants.STYLE_PERIMETER],w=!1;for(C in g){var z=g[C];if(k[C]!=z){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=z){w=!0;var C="participant"}this.setCellStyles(C,z,[m[q]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[q]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(g,m,q,k,u,w){this.useCssTransforms&&(g=g/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(g,m,q,k,u,w){k=null!=k?k:!0;u=null!=u?u:!0;null==q&&(q=this.getCurrentRoot(),null==q&&(q=this.getModel().getRoot()));if(null!=q)for(var z=this.model.getChildCount(q)-1;0<=@@ -2664,10 +2664,10 @@ Graph.prototype.isSplitTarget=function(a,b,e){return!this.model.isEdge(b[0])&&!mGraph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(a)&&(this.model.isEdge(a)&&this.edgeLabelsMovable||this.model.isVertex(a)&&(this.vertexLabelsMovable||"1"==mxUtils.getValue(b,"labelMovable","0")))};Graph.prototype.setGridSize=function(a){this.gridSize=a;this.fireEvent(new mxEventObject("gridSizeChanged"))};Graph.prototype.setDefaultParent=function(a){this.defaultParent=a;this.fireEvent(new mxEventObject("defaultParentChanged"))};Graph.prototype.getClickableLinkForCell=function(a){do{var b=this.getLinkForCell(a);if(null!=b)return b;a=this.model.getParent(a)}while(null!=a);return null};Graph.prototype.getGlobalVariable=function(a){var b=null;"date"==a?b=(new Date).toLocaleDateString():"time"==a?b=(new Date).toLocaleTimeString():"timestamp"==a?b=(new Date).toLocaleString():"date{"==a.substring(0,5)&&(a=a.substring(5,a.length-1),b=this.formatDate(new Date,a));return b};Graph.prototype.formatDate=function(a,b,e){null==this.dateFormatCache&&(this.dateFormatCache={i18n:{dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",-shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var f=this.dateFormatCache,h=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,g=function(J,L){J=String(J);for(L=L||2;J.length<L;)J="0"+J;return J};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||+shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var f=this.dateFormatCache,h=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,g=function(I,L){I=String(I);for(L=L||2;I.length<L;)I="0"+I;return I};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(f.masks[b]||b||f.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),e=!0);var m=e?"getUTC":"get",q=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),w=a[m+"FullYear"](),z=a[m+"Hours"](),C=a[m+"Minutes"](),E=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var D=e?0:a.getTimezoneOffset(),G={d:q,dd:g(q),ddd:f.i18n.dayNames[k],dddd:f.i18n.dayNames[k+7],m:u+1,mm:g(u+1),mmm:f.i18n.monthNames[u],mmmm:f.i18n.monthNames[u+-12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:g(z%12||12),H:z,HH:g(z),M:C,MM:g(C),s:E,ss:g(E),l:g(m,3),L:g(99<m?Math.round(m/10):m),t:12>z?"a":"p",tt:12>z?"am":"pm",T:12>z?"A":"P",TT:12>z?"AM":"PM",Z:e?"UTC":(String(a).match(h)||[""]).pop().replace(d,""),o:(0<D?"-":"+")+g(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<q%10?0:(10!=q%100-q%10)*q%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(J){return J in G?G[J]:J.slice(1,-J.length-1)})};Graph.prototype.getLayerForCell=function(a){for(;null!=a&&!this.model.isLayer(a);)a=this.model.getParent(a);return a};Graph.prototype.getLayerForCells=function(a){var b=null;if(0<a.length){b=this.getLayerForCell(a[0]);for(var e=1;e<a.length;e++)if(!this.model.isAncestor(b,a[e])){b=null;break}}return b};+12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:g(z%12||12),H:z,HH:g(z),M:C,MM:g(C),s:E,ss:g(E),l:g(m,3),L:g(99<m?Math.round(m/10):m),t:12>z?"a":"p",tt:12>z?"am":"pm",T:12>z?"A":"P",TT:12>z?"AM":"PM",Z:e?"UTC":(String(a).match(h)||[""]).pop().replace(d,""),o:(0<D?"-":"+")+g(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<q%10?0:(10!=q%100-q%10)*q%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(I){return I in G?G[I]:I.slice(1,+I.length-1)})};Graph.prototype.getLayerForCell=function(a){for(;null!=a&&!this.model.isLayer(a);)a=this.model.getParent(a);return a};Graph.prototype.getLayerForCells=function(a){var b=null;if(0<a.length){b=this.getLayerForCell(a[0]);for(var e=1;e<a.length;e++)if(!this.model.isAncestor(b,a[e])){b=null;break}}return b};Graph.prototype.createLayersDialog=function(a,b){var e=document.createElement("div");e.style.position="absolute";for(var f=this.getModel(),h=f.getChildCount(f.root),d=0;d<h;d++)mxUtils.bind(this,function(g){function m(){f.isVisible(g)?(u.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(u.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var q=this.convertValueToString(g)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow="hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(f.isVisible(g)?"hideIt":"show",[q]));var u=document.createElement("img");u.setAttribute("draggable","false");u.setAttribute("align","absmiddle");u.setAttribute("border","0");u.style.position="relative";u.style.width="16px";u.style.padding="0px 6px 0 4px";b&&(u.style.filter="invert(100%)",u.style.top="-2px");k.appendChild(u);mxUtils.write(k,q);e.appendChild(k);mxEvent.addListener(k,"click",function(){f.setVisible(g,!f.isVisible(g));m();null!=a&&a(g)});m()})(f.getChildAt(f.root,d));return e};@@ -2685,11 +2685,11 @@ Graph.prototype.selectCellsForConnectVertex=function(a,b,e){2==a.length&&this.moGraph.prototype.insertEdgeBeforeCell=function(a,b){for(var e=b;null!=e.parent&&null!=e.geometry&&e.geometry.relative&&e.parent!=a.parent;)e=this.model.getParent(e);null!=e&&null!=e.parent&&e.parent==a.parent&&(b=e.parent.getIndex(e),this.model.add(e.parent,a,b))};Graph.prototype.connectVertex=function(a,b,e,f,h,d,g,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var q=this.isCloneConnectSource(a),k=q?a:this.getCompositeParent(a),u=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(u.x+=k.geometry.width/2,u.y-=e):b==mxConstants.DIRECTION_SOUTH?(u.x+=k.geometry.width/2,u.y+=k.geometry.height+e):(u.x=b==mxConstants.DIRECTION_WEST?u.x-e:u.x+(k.geometry.width+e),u.y+=k.geometry.height/2);var w=this.view.getState(this.model.getParent(a));e=this.view.scale;var z=this.view.translate;k=z.x*e;z=z.y*e;null!=w&&this.model.isVertex(w.cell)&&(k=w.x,z=w.y);this.model.isVertex(a.parent)&&a.geometry.relative&&(u.x+=a.parent.geometry.x,u.y+=a.parent.geometry.y);d=d?null:(new mxRectangle(k+u.x*e,z+u.y*e)).grow(40*e);d=null!=d?-this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,E=null;if(null!=d){d=d.reverse();for(var D=0;D<d.length;D++)if(!this.isCellLocked(d[D])&&!this.model.isEdge(d[D])&&d[D]!=a)if(!this.model.isAncestor(a,d[D])&&this.isContainer(d[D])&&(null==C||d[D]==this.model.getParent(a)))C=d[D];else if(null==E&&this.isCellConnectable(d[D])&&!this.model.isAncestor(d[D],a)&&!this.isSwimlane(d[D])){var G=this.view.getState(d[D]);null==w||null==G||mxUtils.intersects(w,G)||(E=d[D])}}var J=-!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||h;J&&("1"!=urlParams.sketch||h)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var L=[],Q=E;E=C;h=mxUtils.bind(this,function(N){if(null==g||null!=N||null==E&&q){this.model.beginUpdate();try{if(null==Q&&J){var U=this.getAbsoluteParent(null!=N?N:a);U=q?a:this.getCompositeParent(U);Q=null!=N?N:this.duplicateCells([U],-!1)[0];null!=N&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(Q);null!=Y&&(null!=N&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=Y.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=Y.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-Y.width/2:u.x+Y.width/2),Y.x=u.x-Y.width/2,Y.y=u.y-Y.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),E=null):J&&!q&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var P=mxEvent.isControlDown(f)&&-mxEvent.isShiftDown(f)&&J||null==E&&q?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=P&&(L.push(P),this.applyNewEdgeStyle(a,[P],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(P,a));if(null==E&&null!=Q&&null!=a.parent&&q&&b==mxConstants.DIRECTION_WEST){var T=a.parent.getIndex(a);this.model.add(a.parent,Q,T)}null==E&&null!=Q&&L.push(Q);null==Q&&null!=P&&P.geometry.setTerminalPoint(u,!1);null!=P&&this.fireEvent(new mxEventObject("cellsInserted",-"cells",[P]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=Q||!J||null==E&&q)return h(Q);g(k+u.x*e,z+u.y*e,h)};+this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,E=null;if(null!=d){d=d.reverse();for(var D=0;D<d.length;D++)if(!this.isCellLocked(d[D])&&!this.model.isEdge(d[D])&&d[D]!=a)if(!this.model.isAncestor(a,d[D])&&this.isContainer(d[D])&&(null==C||d[D]==this.model.getParent(a)))C=d[D];else if(null==E&&this.isCellConnectable(d[D])&&!this.model.isAncestor(d[D],a)&&!this.isSwimlane(d[D])){var G=this.view.getState(d[D]);null==w||null==G||mxUtils.intersects(w,G)||(E=d[D])}}var I=+!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||h;I&&("1"!=urlParams.sketch||h)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var L=[],Q=E;E=C;h=mxUtils.bind(this,function(N){if(null==g||null!=N||null==E&&q){this.model.beginUpdate();try{if(null==Q&&I){var U=this.getAbsoluteParent(null!=N?N:a);U=q?a:this.getCompositeParent(U);Q=null!=N?N:this.duplicateCells([U],+!1)[0];null!=N&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(Q);null!=Y&&(null!=N&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=Y.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=Y.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-Y.width/2:u.x+Y.width/2),Y.x=u.x-Y.width/2,Y.y=u.y-Y.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),E=null):I&&!q&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var P=mxEvent.isControlDown(f)&&+mxEvent.isShiftDown(f)&&I||null==E&&q?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=P&&(L.push(P),this.applyNewEdgeStyle(a,[P],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(P,a));if(null==E&&null!=Q&&null!=a.parent&&q&&b==mxConstants.DIRECTION_WEST){var T=a.parent.getIndex(a);this.model.add(a.parent,Q,T)}null==E&&null!=Q&&L.push(Q);null==Q&&null!=P&&P.geometry.setTerminalPoint(u,!1);null!=P&&this.fireEvent(new mxEventObject("cellsInserted",+"cells",[P]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=Q||!I||null==E&&q)return h(Q);g(k+u.x*e,z+u.y*e,h)};Graph.prototype.getIndexableText=function(a){a=null!=a?a:this.model.getDescendants(this.model.root);for(var b=document.createElement("div"),e=[],f,h=0;h<a.length;h++)if(f=a[h],this.model.isVertex(f)||this.model.isEdge(f))this.isHtmlLabel(f)?(b.innerHTML=Graph.sanitizeHtml(this.getLabel(f)),f=mxUtils.extractTextWithWhitespace([b])):f=this.getLabel(f),f=mxUtils.trim(f.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<f.length&&e.push(f);return e.join(" ")};Graph.prototype.convertValueToString=function(a){var b=this.model.getValue(a);if(null!=b&&"object"==typeof b){var e=null;if(this.isReplacePlaceholders(a)&&null!=a.getAttribute("placeholder")){b=a.getAttribute("placeholder");for(var f=a;null==e&&null!=f;)null!=f.value&&"object"==typeof f.value&&(e=f.hasAttribute(b)?null!=f.getAttribute(b)?f.getAttribute(b):"":null),f=this.model.getParent(f)}else e=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(e=b.getAttribute("label_"+Graph.diagramLanguage)),null==e&&(e=b.getAttribute("label")||"");return e||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(a){return null!=a&&null!=a.text&&null!=a.text.node?a.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(a,b){return null!=a.value&&"object"==typeof a.value?(a=a.value.getAttribute("link"),b||(a=mxUtils.removeJavascriptProtocol(a)),a):null};@@ -2776,22 +2776,22 @@ TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=0,k.width,k.height),h.setGeometry(d[q],k))}return m};TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),e=this.graph.getCellGeometry(a),f=this.graph.getCellStyle(a),h="1"==mxUtils.getValue(f,"resizeLastRow","0"),d="1"==mxUtils.getValue(f,"resizeLast","0");f="1"==mxUtils.getValue(f,"fixedRows","0");var g=this.graph.getModel(),m=0;g.beginUpdate();try{for(var q=e.height-b.y-b.height,k=e.width-b.x-b.width,u=g.getChildCells(a,!0),w=0;w<u.length;w++)g.setVisible(u[w],!0);var z=this.getSize(u,!1);if(0<q&&0<k&&0<u.length&&0<z){if(h){var C=this.graph.getCellGeometry(u[u.length-1]);null!=C&&(C=C.clone(),C.height=q-z+C.height,g.setGeometry(u[u.length-1],C))}var E=d?null:this.getRowLayout(u[0],k),D=[],G=b.y;for(w=0;w<u.length;w++)C=this.graph.getCellGeometry(u[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=h||f?G+C.height:G+C.height/z*q,C.height=Math.round(G)-C.y,g.setGeometry(u[w],C)),m=Math.max(m,this.layoutRow(u[w],E,C.height,k,D));f&&q<z&&(e=e.clone(),e.height=G+b.height,g.setGeometry(a,-e));d&&k<m+Graph.minTableColumnWidth&&(e=e.clone(),e.width=m+b.width+b.x+Graph.minTableColumnWidth,g.setGeometry(a,e));this.graph.visitTableCells(a,mxUtils.bind(this,function(J){g.setVisible(J.cell,J.actual.cell==J.cell);if(J.actual.cell!=J.cell){if(J.actual.row==J.row){var L=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo;J.actual.geo.width+=L.width}J.actual.col==J.col&&(L=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo,J.actual.geo.height+=L.height)}}))}else for(w=0;w<u.length;w++)g.setVisible(u[w],+e));d&&k<m+Graph.minTableColumnWidth&&(e=e.clone(),e.width=m+b.width+b.x+Graph.minTableColumnWidth,g.setGeometry(a,e));this.graph.visitTableCells(a,mxUtils.bind(this,function(I){g.setVisible(I.cell,I.actual.cell==I.cell);if(I.actual.cell!=I.cell){if(I.actual.row==I.row){var L=null!=I.geo.alternateBounds?I.geo.alternateBounds:I.geo;I.actual.geo.width+=L.width}I.actual.col==I.col&&(L=null!=I.geo.alternateBounds?I.geo.alternateBounds:I.geo,I.actual.geo.height+=L.height)}}))}else for(w=0;w<u.length;w++)g.setVisible(u[w],!1)}finally{g.endUpdate()}}};(function(){var a=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){a.apply(this,arguments);this.validEdges=[]};var b=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(w,z){z=null!=z?z:!0;var C=this.getState(w);null!=C&&z&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&!C.invalid&&this.updateLineJumps(C)&&this.graph.cellRenderer.redraw(C,!1,this.isRendering());C=b.apply(this,arguments);null!=C&&z&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(C);return C};mxShape.prototype.isFlowAnimationEnabled=function(){return null!=this.state&&this.state.view.graph.enableFlowAnimation&&this.state.view.graph.model.isEdge(this.state.cell)&&"1"==mxUtils.getValue(this.state.style,"flowAnimation","0")};mxShape.prototype.getFlowAnimationPath=function(){var w=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=w)for(var z=0;z<w.length;z++)if("hidden"!=w[z].getAttribute("visibility"))return w[z];return null};mxShape.prototype.addFlowAnimationToShape=function(){null!=this.state&&this.state.view.graph.addFlowAnimationToNode(this.getFlowAnimationPath(),this.state.style,this.state.view.scale,this.state.view.graph.addFlowAnimationStyle())};var e=mxShape.prototype.paint;mxShape.prototype.paint=function(w){e.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var f=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(w){w=f.apply(this,arguments);null!=this.state&&(w.adaptiveColors=this.state.view.graph.getAdaptiveColors());return w};var h=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(w,z){return h.apply(this,arguments)||null!=w.routedPoints&&null!=z.routedPoints&&!mxUtils.equalPoints(z.routedPoints,w.routedPoints)};var d=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(w){d.apply(this,arguments);this.graph.model.isEdge(w.cell)&&1!=w.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(w)};mxGraphView.prototype.updateLineJumps=function(w){var z=w.absolutePoints;if(Graph.lineJumpsEnabled){var C=null!=w.routedPoints,E=null;if(null!=z&&null!=this.validEdges&&"none"!==mxUtils.getValue(w.style,"jumpStyle","none")){var D=function(oa,sa,O){var X=new mxPoint(sa,O);X.type=oa;E.push(X);X=null!=w.routedPoints?w.routedPoints[E.length-1]:null;return null==X||X.type!=oa||X.x!=sa||X.y!=O},G=.5*this.scale;-C=!1;E=[];for(var J=0;J<z.length-1;J++){for(var L=z[J+1],Q=z[J],N=[],U=z[J+2];J<z.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,U.x,U.y,L.x,L.y)<1*this.scale*this.scale;)L=U,J++,U=z[J+2];C=D(0,Q.x,Q.y)||C;for(var Y=0;Y<this.validEdges.length;Y++){var P=this.validEdges[Y],T=P.absolutePoints;if(null!=T&&mxUtils.intersects(w,P)&&"1"!=P.style.noJump){var K=null;for(P=0;P<T.length-1;P++){var V=T[P+1],Z=T[P];for(U=T[P+2];P<T.length-2&&mxUtils.ptSegDistSq(Z.x,Z.y,U.x,U.y,V.x,V.y)<1*this.scale*this.scale;)V=U,P++,+C=!1;E=[];for(var I=0;I<z.length-1;I++){for(var L=z[I+1],Q=z[I],N=[],U=z[I+2];I<z.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,U.x,U.y,L.x,L.y)<1*this.scale*this.scale;)L=U,I++,U=z[I+2];C=D(0,Q.x,Q.y)||C;for(var Y=0;Y<this.validEdges.length;Y++){var P=this.validEdges[Y],T=P.absolutePoints;if(null!=T&&mxUtils.intersects(w,P)&&"1"!=P.style.noJump){var K=null;for(P=0;P<T.length-1;P++){var V=T[P+1],Z=T[P];for(U=T[P+2];P<T.length-2&&mxUtils.ptSegDistSq(Z.x,Z.y,U.x,U.y,V.x,V.y)<1*this.scale*this.scale;)V=U,P++,U=T[P+2];var ia=mxUtils.intersection(Q.x,Q.y,L.x,L.y,Z.x,Z.y,V.x,V.y);if(null!=ia&&(Math.abs(ia.x-Q.x)>G||Math.abs(ia.y-Q.y)>G)&&(Math.abs(ia.x-L.x)>G||Math.abs(ia.y-L.y)>G)&&(null==K||mxUtils.ptLineDist(Q.x,Q.y,L.x,L.y,K.x,K.y)>G||mxUtils.ptLineDist(Q.x,Q.y,L.x,L.y,Z.x,Z.y)>G)&&(null==U||mxUtils.ptLineDist(Q.x,Q.y,L.x,L.y,U.x,U.y)>G||mxUtils.ptLineDist(Q.x,Q.y,L.x,L.y,V.x,V.y)>G)){U=ia.x-Q.x;K=ia.y-Q.y;ia={distSq:U*U+K*K,x:ia.x,y:ia.y};for(U=0;U<N.length;U++)if(N[U].distSq>ia.distSq){N.splice(U,0,ia);ia=null;break}null==ia||0!=N.length&&N[N.length-1].x===ia.x&&N[N.length-1].y===ia.y||N.push(ia)}K=Z}}}for(P=0;P<N.length;P++)C=D(1,N[P].x,N[P].y)||C}ia=z[z.length-1];C=D(0,ia.x,ia.y)||C}w.routedPoints=E;return C}return!1};var g=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(w,z,C){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)g.apply(this,-arguments);else{var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,D=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),J=!0,L=null,Q=null,N=[],U=null;w.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var P=this.state.routedPoints[Y],T=new mxPoint(P.x/this.scale,P.y/this.scale);0==Y?T=z[0]:Y==this.state.routedPoints.length-1&&(T=z[z.length-1]);var K=!1;if(null!=-L&&1==P.type){var V=this.state.routedPoints[Y+1];P=V.x/this.scale-T.x;V=V.y/this.scale-T.y;P=P*P+V*V;null==U&&(U=new mxPoint(T.x-L.x,T.y-L.y),Q=Math.sqrt(U.x*U.x+U.y*U.y),0<Q?(U.x=U.x*D/Q,U.y=U.y*D/Q):U=null);P>D*D&&0<Q&&(P=L.x-T.x,V=L.y-T.y,P=P*P+V*V,P>D*D&&(K=new mxPoint(T.x-U.x,T.y-U.y),P=new mxPoint(T.x+U.x,T.y+U.y),N.push(K),this.addPoints(w,N,C,E,!1,null,J),N=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,J=!1,"sharp"==G?(w.lineTo(K.x-U.y*N,K.y+U.x*N),w.lineTo(P.x-U.y*N,P.y+-U.x*N),w.lineTo(P.x,P.y)):"line"==G?(w.moveTo(K.x+U.y*N,K.y-U.x*N),w.lineTo(K.x-U.y*N,K.y+U.x*N),w.moveTo(P.x-U.y*N,P.y+U.x*N),w.lineTo(P.x+U.y*N,P.y-U.x*N),w.moveTo(P.x,P.y)):"arc"==G?(N*=1.3,w.curveTo(K.x-U.y*N,K.y+U.x*N,P.x-U.y*N,P.y+U.x*N,P.x,P.y)):(w.moveTo(P.x,P.y),J=!0),N=[P],K=!0))}else U=null;K||(N.push(T),L=T)}this.addPoints(w,N,C,E,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(w,z,C,E){return null!=z&&"centerPerimeter"==-z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var q=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,z,C,E){if(null==z||null==w||"1"!=z.style.snapToPoint&&"1"!=w.style.snapToPoint)q.apply(this,arguments);else{z=this.getTerminalPort(w,z,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),J=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),-z.getCenterY());if(0!=J){var Q=Math.cos(-J),N=Math.sin(-J);D=mxUtils.getRotatedPoint(D,Q,N,L)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==J&&G,Q);0!=J&&(Q=Math.cos(J),N=Math.sin(J),D=mxUtils.getRotatedPoint(D,Q,N,L));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,z,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(w,z,-C,E,D){if(null!=z&&null!=w){w=this.graph.getAllConnectionConstraints(z);E=C=null;if(null!=w)for(var G=0;G<w.length;G++){var J=this.graph.getConnectionPoint(z,w[G]);if(null!=J){var L=(J.x-D.x)*(J.x-D.x)+(J.y-D.y)*(J.y-D.y);if(null==E||L<E)C=J,E=L}}null!=C&&(D=C)}return D};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,z,C){var E=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&null!=C.state&&(E=C.state.view.graph.replacePlaceholders(C.state.cell,+arguments);else{var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,D=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),I=!0,L=null,Q=null,N=[],U=null;w.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var P=this.state.routedPoints[Y],T=new mxPoint(P.x/this.scale,P.y/this.scale);0==Y?T=z[0]:Y==this.state.routedPoints.length-1&&(T=z[z.length-1]);var K=!1;if(null!=+L&&1==P.type){var V=this.state.routedPoints[Y+1];P=V.x/this.scale-T.x;V=V.y/this.scale-T.y;P=P*P+V*V;null==U&&(U=new mxPoint(T.x-L.x,T.y-L.y),Q=Math.sqrt(U.x*U.x+U.y*U.y),0<Q?(U.x=U.x*D/Q,U.y=U.y*D/Q):U=null);P>D*D&&0<Q&&(P=L.x-T.x,V=L.y-T.y,P=P*P+V*V,P>D*D&&(K=new mxPoint(T.x-U.x,T.y-U.y),P=new mxPoint(T.x+U.x,T.y+U.y),N.push(K),this.addPoints(w,N,C,E,!1,null,I),N=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,I=!1,"sharp"==G?(w.lineTo(K.x-U.y*N,K.y+U.x*N),w.lineTo(P.x-U.y*N,P.y++U.x*N),w.lineTo(P.x,P.y)):"line"==G?(w.moveTo(K.x+U.y*N,K.y-U.x*N),w.lineTo(K.x-U.y*N,K.y+U.x*N),w.moveTo(P.x-U.y*N,P.y+U.x*N),w.lineTo(P.x+U.y*N,P.y-U.x*N),w.moveTo(P.x,P.y)):"arc"==G?(N*=1.3,w.curveTo(K.x-U.y*N,K.y+U.x*N,P.x-U.y*N,P.y+U.x*N,P.x,P.y)):(w.moveTo(P.x,P.y),I=!0),N=[P],K=!0))}else U=null;K||(N.push(T),L=T)}this.addPoints(w,N,C,E,!1,null,I);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(w,z,C,E){return null!=z&&"centerPerimeter"==+z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var q=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,z,C,E){if(null==z||null==w||"1"!=z.style.snapToPoint&&"1"!=w.style.snapToPoint)q.apply(this,arguments);else{z=this.getTerminalPort(w,z,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),I=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),+z.getCenterY());if(0!=I){var Q=Math.cos(-I),N=Math.sin(-I);D=mxUtils.getRotatedPoint(D,Q,N,L)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==I&&G,Q);0!=I&&(Q=Math.cos(I),N=Math.sin(I),D=mxUtils.getRotatedPoint(D,Q,N,L));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,z,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(w,z,+C,E,D){if(null!=z&&null!=w){w=this.graph.getAllConnectionConstraints(z);E=C=null;if(null!=w)for(var G=0;G<w.length;G++){var I=this.graph.getConnectionPoint(z,w[G]);if(null!=I){var L=(I.x-D.x)*(I.x-D.x)+(I.y-D.y)*(I.y-D.y);if(null==E||L<E)C=I,E=L}}null!=C&&(D=C)}return D};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,z,C){var E=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&null!=C.state&&(E=C.state.view.graph.replacePlaceholders(C.state.cell,E));return E};var u=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(w){if(null!=w.style&&"undefined"!==typeof pako){var z=mxUtils.getValue(w.style,mxConstants.STYLE_SHAPE,null);if(null!=z&&"string"===typeof z&&"stencil("==z.substring(0,8))try{var C=z.substring(8,z.length-1),E=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(E.documentElement))}catch(D){null!=window.console&&console.log("Error in shape: "+D)}}return u.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(a){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[a]};mxStencilRegistry.setFileLoaded=function(a){mxStencilRegistry.filesLoaded[a]=!0};mxStencilRegistry.getStencil=function(a){var b=mxStencilRegistry.stencils[a];if(null==b&&null==mxCellRenderer.defaultShapes[a]&&mxStencilRegistry.dynamicLoading){var e=mxStencilRegistry.getBasenameForStencil(a);if(null!=e){b=mxStencilRegistry.libraries[e];if(null!=b){if(null==mxStencilRegistry.packages[e]){for(var f=0;f<b.length;f++){var h=b[f];if(!mxStencilRegistry.isFileLoaded(h))if(mxStencilRegistry.setFileLoaded(h),".xml"==h.toLowerCase().substring(h.length-4,h.length))mxStencilRegistry.loadStencilSet(h,@@ -2871,7 +2871,7 @@ return p};Graph.prototype.parseBackgroundImage=function(p){var A=null;null!=p&&0this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;M=null!=M?M:!0;R=null!=R?R:!0;W=null!=W?W:!0;ja=null!=ja?ja:!1;var Qa="page"==Na?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Na?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Ka=this.backgroundImage,Ua=this.view.translate,Wa=this.view.scale;"diagram"==Na&&null!=Ka&&null!=Ka.width&&null!=Ka.height&&(Qa=mxRectangle.fromRectangle(Qa),Qa.add(new mxRectangle((Ua.x+Ka.x)*Wa,(Ua.y+Ka.y)*Wa,Ka.width*Wa,Ka.height*Wa)));if(null==Qa)throw Error(mxResources.get("drawingEmpty"));F=A/Wa;var mb=Math.max(1,Math.ceil(Qa.width*F)+2*B)+(ja&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ja&&0==B?5:0);ja=M?-.5:0;var vb=mxUtils.getLightDarkColor(p),jb=Graph.createSvgNode(ja,ja,mb,ub,vb),nb=jb.ownerDocument;if(null!=p){var db=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"rect");db.setAttribute("fill",vb.light);db.style.fill=vb.cssText;db.setAttribute("width","100%");db.setAttribute("height","100%");db.setAttribute("x","0");db.setAttribute("y","0");jb.appendChild(db)}var qb=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"g");jb.appendChild(qb);var bb=this.createSvgCanvas(qb);bb.foOffset=M?-.5:0;bb.textOffset=M?-.5:0;bb.imageOffset=M?-.5:0;bb.translate(Math.floor(B/A-Qa.x/Wa),Math.floor(B/A-Qa.y/Wa));bb.idPrefix="drawio-svg-"+Editor.guid();var wb=document.createElement("div"),rb=bb.getAlternateText;bb.getAlternateText=function(Sa,sb,$a,kb,ob,Za,xb,c,l,t,n,r,v){if(null!=Za&&0<this.state.fontSize)try{mxUtils.isNode(Za)?-Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var x=Math.ceil(2*kb/this.state.fontSize),I=[],y=0,aa=0;(0==x||y<x)&&aa<Za.length;){var S=Za.charCodeAt(aa);if(10==S||13==S){if(0<y)break}else I.push(Za.charAt(aa)),255>S&&y++;aa++}I.length<Za.length&&1<Za.length-I.length&&(Za=mxUtils.trim(I.join(""))+"...");return Za}catch(Fa){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(p=Wa/A,ja=new mxRectangle((Ka.x++Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var x=Math.ceil(2*kb/this.state.fontSize),J=[],y=0,aa=0;(0==x||y<x)&&aa<Za.length;){var S=Za.charCodeAt(aa);if(10==S||13==S){if(0<y)break}else J.push(Za.charAt(aa)),255>S&&y++;aa++}J.length<Za.length&&1<Za.length-J.length&&(Za=mxUtils.trim(J.join(""))+"...");return Za}catch(Fa){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(p=Wa/A,ja=new mxRectangle((Ka.x+Ua.x)*p,(Ka.y+Ua.y)*p,Ka.width*p,Ka.height*p),mxUtils.intersects(Qa,ja)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=W;ha=null!=ha?ha:this.createSvgImageExport();var tb=ha.getLinkForCellState;ha.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};ha.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=ha.drawCellState,lb=null,hb=mxUtils.bind(this,function(){if(null==lb){lb="ge-flow-animation-"+Editor.guid();var Sa=null!=nb.createElementNS?nb.createElementNS(mxConstants.NS_SVG,"style"):nb.createElement("style");Sa.innerHTML=this.createFlowAnimationCss(lb);nb.getElementsByTagName("defs")[0].appendChild(Sa)}return lb});ha.drawCellState=function(Sa,sb){for(var $a=Sa.view.graph,kb=null!=ua?ua.get(Sa.cell):$a.isCellSelected(Sa.cell),ob=$a.model.getParent(Sa.cell);!(R&&null==ua||kb)&&null!=ob;)kb=null!=ua?ua.get(ob):$a.isCellSelected(ob),ob=$a.model.getParent(ob);if(null!=Sa.shape)try{var Za=Sa.shape.isFlowAnimationEnabled,xb=Sa.shape.addFlowAnimationToShape;Sa.shape.isFlowAnimationEnabled=function(){return Va&&$a.model.isEdge(Sa.cell)&&"1"==mxUtils.getValue(Sa.style,"flowAnimation","0")};Sa.shape.addFlowAnimationToShape=function(){$a.addFlowAnimationToNode(this.getFlowAnimationPath(),Sa.style,A,hb())};if(R&&null==ua||kb)$a.view.redrawEnumerationState(Sa),yb.apply(this,arguments),this.doDrawShape(Sa.secondLabel,@@ -2903,7 +2903,7 @@ this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!return""!=p};mxCellEditor.prototype.insertTab=function(p){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);p=Graph.createTabNode(p);B.insertNode(p);B.setStartAfter(p);B.setEndAfter(p);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(p,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),M=null!=A&&mxEvent.isShiftDown(A);if(M||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(W){M||F||window.getSelection().containsNode(W,!0)?(W.removeAttribute("align"),W.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(p)}F||document.execCommand("justify"+p.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var p=window.getSelection();if(p.getRangeAt&&p.rangeCount){for(var A=[],B=0,F=p.rangeCount;B<F;++B)A.push(p.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(p){try{if(p)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=p.length;A<B;++A)sel.addRange(p[A])}else document.selection&&p.select&&p.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=-function(p){null!=p.text&&(p.text.replaceLinefeeds="0"!=mxUtils.getValue(p.style,"nl2Br","1"));G.apply(this,arguments)};var J=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(p,A){this.isKeepFocusEvent(p)||!mxEvent.isAltDown(p.getEvent())?J.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(p){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;+function(p){null!=p.text&&(p.text.replaceLinefeeds="0"!=mxUtils.getValue(p.style,"nl2Br","1"));G.apply(this,arguments)};var I=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(p,A){this.isKeepFocusEvent(p)||!mxEvent.isAltDown(p.getEvent())?I.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(p){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(p,A){p=this.graph.getStartEditingCell(p,A);L.apply(this,arguments);var B=this.graph.view.getState(p);this.textarea.className=null!=B&&1==B.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(p)};mxCellEditor.prototype.toggleViewMode=function(){var p=this.graph.view.getState(this.editingCell);if(null!=p){var A=null!=p&&"0"!=mxUtils.getValue(p.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);ha=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<ha.length&&"\n"==ha.charAt(ha.length-1)&&(ha=ha.substring(0,ha.length-1));ha=Graph.sanitizeHtml(A?ha.replace(/\n/g,"<br/>"):ha,!0);this.textarea.className="mxCellEditor geContentEditable";fa=mxUtils.getValue(p.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);A=mxUtils.getValue(p.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(p.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),M=(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,W=[];(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&W.push("underline");@@ -3020,8 +3020,8 @@ Format.processMenuIcon=function(a,b){var e=a.getElementsByTagName("img");0<e.lenFormat.prototype.init=function(){var a=this.editorUi,b=a.editor,e=b.graph;this.update=mxUtils.bind(this,function(f,h){this.refresh()});e.getSelectionModel().addListener(mxEvent.CHANGE,this.update);e.getModel().addListener(mxEvent.CHANGE,this.update);e.addListener(mxEvent.EDITING_STARTED,this.update);e.addListener(mxEvent.EDITING_STOPPED,this.update);e.getView().addListener("unitChanged",this.update);b.addListener("autosaveChanged",this.update);e.addListener(mxEvent.ROOT,this.update);a.addListener("styleChanged",this.update);a.addListener("lockedChanged",this.update);this.refresh()};Format.prototype.clear=function(){this.container.innerText="";if(null!=this.panels)for(var a=0;a<this.panels.length;a++)this.panels[a].destroy();this.panels=[]};Format.prototype.refresh=function(){null!=this.pendingRefresh&&(window.clearTimeout(this.pendingRefresh),this.pendingRefresh=null);this.pendingRefresh=window.setTimeout(mxUtils.bind(this,function(){this.immediateRefresh()}))};Format.prototype.immediateRefresh=function(){if("0px"!=this.container.style.width){this.clear();var a=this.editorUi,b=a.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.cursor="default";var f=document.createElement("div");f.className="geFormatSection";f.style.textAlign="center";f.style.fontWeight="bold";f.style.paddingTop="8px";f.style.fontSize="13px";f.style.borderWidth="0px 0px 1px 1px";f.style.borderStyle="solid";f.style.display="inline-block";-f.style.height="25px";f.style.overflow="hidden";f.style.width="100%";this.container.appendChild(e);mxEvent.addListener(f,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()}));var h=a.getSelectionState(),d=h.containsLabel,g=null,m=null,q=mxUtils.bind(this,function(C,E,D,G){var J=mxUtils.bind(this,function(L){g!=C&&(d?this.labelIndex=D:b.isSelectionEmpty()?this.diagramIndex=D:this.currentIndex=D,null!=g&&(g.style.backgroundColor=Format.inactiveTabBackgroundColor,-g.style.borderBottomWidth="1px"),g=C,g.style.backgroundColor="",g.style.borderBottomWidth="0px",m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(C,"click",J);mxEvent.addListener(C,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(L){L.preventDefault()}));(G&&null==g||D==(d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex))&&J()}),k=0;if(b.isSelectionEmpty()){mxUtils.write(f,mxResources.get("diagram"));f.style.borderLeftWidth=+f.style.height="25px";f.style.overflow="hidden";f.style.width="100%";this.container.appendChild(e);mxEvent.addListener(f,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()}));var h=a.getSelectionState(),d=h.containsLabel,g=null,m=null,q=mxUtils.bind(this,function(C,E,D,G){var I=mxUtils.bind(this,function(L){g!=C&&(d?this.labelIndex=D:b.isSelectionEmpty()?this.diagramIndex=D:this.currentIndex=D,null!=g&&(g.style.backgroundColor=Format.inactiveTabBackgroundColor,+g.style.borderBottomWidth="1px"),g=C,g.style.backgroundColor="",g.style.borderBottomWidth="0px",m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(C,"click",I);mxEvent.addListener(C,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(L){L.preventDefault()}));(G&&null==g||D==(d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex))&&I()}),k=0;if(b.isSelectionEmpty()){mxUtils.write(f,mxResources.get("diagram"));f.style.borderLeftWidth="0px";e.appendChild(f);h=e.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,h));this.container.appendChild(h);if(null!=Editor.styles){h.style.display="none";f.style.width=this.showCloseButton?"106px":"50%";f.style.cursor="pointer";f.style.backgroundColor=Format.inactiveTabBackgroundColor;var u=f.cloneNode(!1);u.style.borderLeftWidth="1px";u.style.borderRightWidth="1px";u.style.backgroundColor=Format.inactiveTabBackgroundColor;q(f,h,k++);var w=e.cloneNode(!1);w.style.display="none";mxUtils.write(u,mxResources.get("style"));e.appendChild(u);this.panels.push(new DiagramStylePanel(this,a,w));this.container.appendChild(w);q(u,w,k++)}this.showCloseButton&&(u=f.cloneNode(!1),u.style.borderLeftWidth="1px",u.style.borderRightWidth="1px",u.style.borderBottomWidth="1px",u.style.backgroundColor=Format.inactiveTabBackgroundColor,u.style.position="absolute",u.style.display="flex",u.style.right="0px",u.style.top="0px",u.style.width="25px",u.style.padding="0px",u.style.height="33px",u.style.alignItems="center",u.style.justifyContent="center",q=document.createElement("img"),q.className="geAdaptiveAsset",q.setAttribute("border","0"),q.setAttribute("src",Editor.crossImage),q.setAttribute("title",mxResources.get("hide")),q.style.width="16px",q.style.height="16px",q.style.opacity=.5,u.appendChild(q),mxEvent.addListener(q,"click",function(){a.actions.get("format").funct()}),e.appendChild(u))}else if(b.isEditing())mxUtils.write(f,mxResources.get("text")),e.appendChild(f),f.style.borderLeftStyle="none",this.panels.push(new TextFormatPanel(this,@@ -3029,8 +3029,8 @@ a,e));else{f.style.backgroundColor=Format.inactiveTabBackgroundColor;f.style.bor"none",this.panels.push(new StyleFormatPanel(this,a,w)),this.container.appendChild(w),q(f,w,k++));mxUtils.write(u,mxResources.get("text"));e.appendChild(u);f=e.cloneNode(!1);f.style.display="none";this.panels.push(new TextFormatPanel(this,a,f));this.container.appendChild(f);mxUtils.write(z,mxResources.get("arrange"));e.appendChild(z);e=e.cloneNode(!1);e.style.display="none";this.panels.push(new ArrangePanel(this,a,e));this.container.appendChild(e);0<h.cells.length?q(u,f,k+1):u.style.display="none";q(z,e,k++,!0)}}};BaseFormatPanel=function(a,b,e){this.format=a;this.editorUi=b;this.container=e;this.listeners=[]};BaseFormatPanel.prototype.buttonBackgroundColor="transparent";BaseFormatPanel.prototype.installInputHandler=function(a,b,e,f,h,d,g,m,q){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,u=k.editor.graph;f=null!=f?f:1;h=null!=h?h:999;var w=null,z=!1,C=null,E=mxUtils.bind(this,function(D){var G=m?parseFloat(a.value):parseInt(a.value);q&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(h,Math.max(f,isNaN(G)?e:G));if(u.cellEditor.isContentEditing()&&g)z||(z=!0,null!=w&&(u.cellEditor.restoreSelection(w),-w=null),g(G),a.value=(q?this.inUnit(G):G)+d,z=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var J=k.getSelectionState().cells;u.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var L=0;L<J.length;L++)0==u.model.getChildCount(J[L])&&u.autoSizeCell(J[L],!1);k.fireEvent(new mxEventObject("styleChanged",-"keys",[b],"values",[G],"cells",J))}finally{u.getModel().endUpdate()}}a.value=(q?this.inUnit(G):G)+d}mxEvent.consume(D)});g&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};+w=null),g(G),a.value=(q?this.inUnit(G):G)+d,z=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var I=k.getSelectionState().cells;u.setCellStyles(b,G,I);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(I,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var L=0;L<I.length;L++)0==u.model.getChildCount(I[L])&&u.autoSizeCell(I[L],!1);k.fireEvent(new mxEventObject("styleChanged",+"keys",[b],"values",[G],"cells",I))}finally{u.getModel().endUpdate()}}a.value=(q?this.inUnit(G):G)+d}mxEvent.consume(D)});g&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";a.style.padding="12px 0px 8px 14px";return a};BaseFormatPanel.prototype.createTitle=function(a){var b=document.createElement("div");b.style.padding="0px 0px 6px 0px";b.style.whiteSpace="nowrap";b.style.overflow="hidden";b.style.width="200px";b.style.fontWeight="bold";mxUtils.write(b,a);return b};BaseFormatPanel.prototype.addAction=function(a,b){var e=this.editorUi.actions.get(b);b=null;null!=e&&e.isEnabled()&&(b=mxUtils.button(e.label,mxUtils.bind(this,function(f){try{e.funct(f,f)}catch(h){this.editorUi.handleError(h)}})),b.setAttribute("title",e.label+(null!=e.shortcut?" ("+e.shortcut+")":"")),b.style.marginBottom="2px",b.style.width="210px",a.appendChild(b));return b};BaseFormatPanel.prototype.addActions=function(a,b){for(var e=null,f=null,h=0,d=0;d<b.length;d++){var g=this.addAction(a,b[d]);null!=g&&(h++,0==mxUtils.mod(h,2)&&(f.style.marginRight="2px",f.style.width="104px",g.style.width="104px",e.parentNode.removeChild(e)),e=mxUtils.br(a),f=g)}return h};@@ -3043,11 +3043,11 @@ m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtiBaseFormatPanel.prototype.createCellOption=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;f=null!=f?"null"==f?null:f:1;h=null!=h?"null"==h?null:h:0;var w=null!=q?u.getCommonStyle(q):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,e)!=h},function(z){m&&u.stopEditing();if(null!=g)g.funct();else{u.getModel().beginUpdate();try{var C=null!=q?q:k.getSelectionState().cells;z=z?f:h;u.setCellStyles(b,z,C);null!=d&&d(C,z);k.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[z],"cells",C))}finally{u.getModel().endUpdate()}}},{install:function(z){this.listener=function(){z(mxUtils.getValue(w,b,e)!=h)};u.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){u.getModel().removeListener(this.listener)}})};BaseFormatPanel.prototype.createColorOption=function(a,b,e,f,h,d,g,m,q,k){function u(P,T){"default"!=P||T||(P=m);"default"!=P&&q&&(P=mxUtils.getLightDarkColor(P),P=k()?P.dark:P.light);return P}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var z=this.editorUi.editor.graph,C=document.createElement("div");C.style.padding="3px 0px 3px 0px";C.style.whiteSpace="nowrap";C.style.overflow="hidden";C.style.width="200px";C.style.height="18px";var E=document.createElement("input");E.setAttribute("type","checkbox");-E.style.margin="1px 6px 0px 0px";E.style.verticalAlign="top";g||C.appendChild(E);var D=document.createElement("span");D.style.verticalAlign="top";mxUtils.write(D,a);C.appendChild(D);var G=b(),J=!1,L=null,Q=null,N=document.createElement("input");N.setAttribute("type","color");N.style.position="relative";N.style.visibility="hidden";N.style.top="10px";N.style.width="0px";N.style.height="0px";N.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(L=document.createElement("img"),L.src=-Editor.colorDropperImage,L.className="geColorDropper geAdaptiveAsset",L.style.position="relative",L.style.right="-20px",L.style.top="-1px",L.style.width="auto",L.style.height="14px",mxEvent.addListener(L,"click",function(P){N.value=u(G);N.click();mxEvent.consume(P)}));var U=null,Y=function(P,T){J||(J=!0,null!=d&&d(P),T||(null!=U&&(z.cellEditor.restoreSelection(U),U=null),e(P)),G=b(),P=mxUtils.getLightDarkColor("default"!=G?G:m),T=document.createElement("div"),T.style.width="21px",T.style.height="12px",+E.style.margin="1px 6px 0px 0px";E.style.verticalAlign="top";g||C.appendChild(E);var D=document.createElement("span");D.style.verticalAlign="top";mxUtils.write(D,a);C.appendChild(D);var G=b(),I=!1,L=null,Q=null,N=document.createElement("input");N.setAttribute("type","color");N.style.position="relative";N.style.visibility="hidden";N.style.top="10px";N.style.width="0px";N.style.height="0px";N.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(L=document.createElement("img"),L.src=+Editor.colorDropperImage,L.className="geColorDropper geAdaptiveAsset",L.style.position="relative",L.style.right="-20px",L.style.top="-1px",L.style.width="auto",L.style.height="14px",mxEvent.addListener(L,"click",function(P){N.value=u(G);N.click();mxEvent.consume(P)}));var U=null,Y=function(P,T){I||(I=!0,null!=d&&d(P),T||(null!=U&&(z.cellEditor.restoreSelection(U),U=null),e(P)),G=b(),P=mxUtils.getLightDarkColor("default"!=G?G:m),T=document.createElement("div"),T.style.width="21px",T.style.height="12px",T.style.margin="2px 18px 2px 3px",T.style.borderWidth="1px",T.style.borderStyle="solid",T.style.backgroundColor=P.cssText,Q.innerText="",Q.appendChild(T),!q&&mxUtils.isLightDarkColor(G)&&P.light!=P.dark?T.style.background="linear-gradient(to right bottom, "+P.cssText+" 50%, "+mxUtils.invertLightDarkColor(P).cssText+" 50.3%)":q&&w&&(T.style.backgroundColor=k()?P.dark:P.light),null!=L?(T.style.width="21px",T.style.margin="2px 18px 2px 3px",T.appendChild(L)):(T.style.width="36px",T.style.margin="3px"),null!=G&&G!=mxConstants.NONE&&1<G.length&&"string"===typeof G&&(P="#"==G.charAt(0)?G.substring(1).toUpperCase():G,P=ColorDialog.prototype.colorNames[P],null!=P?Q.setAttribute("title",P):"default"==G?Q.setAttribute("title",mxResources.get("useBlackAndWhite")):Q.setAttribute("title",G)),null==G||G==mxConstants.NONE||z.isSpecialColor(G)?(E.removeAttribute("checked"),E.defaultChecked=!1,E.checked=!1):(E.setAttribute("checked","checked"),E.defaultChecked=!0,E.checked=!0),Q.style.display=E.checked||g?"":-"none",J=!1)};C.appendChild(N);mxEvent.addListener(N,"change",function(){var P=N.value;if(!q){var T=mxUtils.getLightDarkColor(G);k()?T.dark=P:T.light=P;P="light-dark("+T.light+", "+T.dark+")"}Y(P)});Q=mxUtils.button("",mxUtils.bind(this,function(P){var T=m;q&&k()&&mxUtils.isLightDarkColor(T)&&(T=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(K){Y(K)},"default"==f?"default":null,T,q);mxEvent.consume(P)}));Q.style.position="absolute";Q.style.marginTop="-3px";Q.style.left=+"none",I=!1)};C.appendChild(N);mxEvent.addListener(N,"change",function(){var P=N.value;if(!q){var T=mxUtils.getLightDarkColor(G);k()?T.dark=P:T.light=P;P="light-dark("+T.light+", "+T.dark+")"}Y(P)});Q=mxUtils.button("",mxUtils.bind(this,function(P){var T=m;q&&k()&&mxUtils.isLightDarkColor(T)&&(T=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(K){Y(K)},"default"==f?"default":null,T,q);mxEvent.consume(P)}));Q.style.position="absolute";Q.style.marginTop="-3px";Q.style.left="178px";Q.style.height="22px";Q.className="geColorBtn";Q.style.display=E.checked||g?"":"none";C.appendChild(Q);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&Q.setAttribute("title",a);g||(mxEvent.addListener(C,"click",function(P){P=mxEvent.getSource(P);if(P==E||"INPUT"!=P.nodeName)P!=E&&(E.checked=!E.checked),E.checked||null==G||G==mxConstants.NONE||f==mxConstants.NONE||(f=u(G)),Y(E.checked?f:mxConstants.NONE)}),mxEvent.addGestureListeners(E,mxUtils.bind(this,function(P){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(P){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})));Y(G,!0);null!=h&&h.install(function(){Y(G,!0)},this.listeners.push(h));return C};BaseFormatPanel.prototype.createCellColorOption=function(a,b,e,f,h,d){var g=this.editorUi,m=g.editor.graph;return this.createColorOption(a,function(){var q=m.getCellStyle(m.getSelectionCell(),!1);return null!=q?q[b]:null},function(q){m.getModel().beginUpdate();try{var k=g.getSelectionState().cells;m.setCellStyles(b,q,k);null!=h&&h(q);g.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[q],"cells",k))}finally{m.getModel().endUpdate()}},e||mxConstants.NONE,{install:function(q){this.listener=@@ -3093,12 +3093,12 @@ k=this.addUnitInput(g,this.getUnit(),16,52,function(){E.apply(this,arguments)},t")");u.style.position="relative";u.style.cursor="pointer";u.style.marginTop="-3px";u.style.border="0px";u.style.left="42px";mxUtils.setOpacity(u,50);mxEvent.addListener(u,"mouseenter",function(){mxUtils.setOpacity(u,100)});mxEvent.addListener(u,"mouseleave",function(){mxUtils.setOpacity(u,50)});mxEvent.addListener(u,"click",function(){e.actions.get("autosize").funct()});g.appendChild(u);d.row?(q.style.visibility="hidden",q.nextSibling.style.visibility="hidden"):this.addLabel(g,mxResources.get("width"),87,64);this.addLabel(g,mxResources.get("height"),16,64);mxUtils.br(g);m=document.createElement("div");m.style.paddingTop="8px";m.style.paddingRight="20px";m.style.whiteSpace="nowrap";m.style.textAlign="right";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.style.width="210px";m.appendChild(w);d.cell||d.row?u.style.visibility="hidden":g.appendChild(m);var z=w.getElementsByTagName("input")[0];this.addKeyHandler(q,Y);this.addKeyHandler(k,Y);var C=this.addGeometryHandler(q,function(K,V,Z){V=Math.max(1,b.fromUnit(V));if(f.isTableCell(Z))return f.setTableColumnWidth(Z,V-K.width,!0),!0;0<K.width&&(z.checked&&(K.height=Math.round(K.height*V*100/K.width)/100),K.width=V)});var E=this.addGeometryHandler(k,function(K,V,Z){V=Math.max(1,b.fromUnit(V));f.isTableCell(Z)&&(Z=h.getParent(Z));if(f.isTableRow(Z))return f.setTableRowHeight(Z,V-K.height),!0;0<K.height&&(z.checked&&(K.width=Math.round(K.width*V*100/K.height)/100),K.height=V)});(d.resizable||-d.row||d.cell)&&a.appendChild(g);var D=this.createPanel();D.style.paddingBottom="30px";m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("position"));D.appendChild(m);var G=this.addUnitInput(D,this.getUnit(),87,52,function(){P.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),J=this.addUnitInput(D,this.getUnit(),16,52,function(){T.apply(this,arguments)},this.getUnitStep(),+d.row||d.cell)&&a.appendChild(g);var D=this.createPanel();D.style.paddingBottom="30px";m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("position"));D.appendChild(m);var G=this.addUnitInput(D,this.getUnit(),87,52,function(){P.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),I=this.addUnitInput(D,this.getUnit(),16,52,function(){T.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(D);w=!0;var L=null,Q=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var N=f.getCellGeometry(d.vertices[0]);if(null!=N&&N.relative){mxUtils.br(D);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));D.appendChild(m);L=this.addGenericInput(D," %",87,52,function(){return Math.round(1E3*N.x)/10},function(K){K=parseFloat(K);if(!isNaN(K)){h.beginUpdate();try{N=N.clone(),N.x=parseFloat(K)/100,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}}});if(h.isEdge(h.getParent(d.vertices[0]))){w=!1;var U=null;Q=this.addUnitInput(D,this.getUnit(),16,52,function(){U.apply(this,arguments)});U=this.addGeometryHandler(Q,function(K,V){K.y=b.fromUnit(V)})}else Q=this.addGenericInput(D," %",16,52,function(){return Math.round(1E3*N.y)/10},function(K){K=parseFloat(K);if(!isNaN(K)){h.beginUpdate();try{N=N.clone(),N.y=parseFloat(K)/100,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}}});mxUtils.br(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(w?"left":"line"),87,64).style.marginTop="8px";this.addLabel(D,mxResources.get(w?"top":"orthogonal"),16,64).style.marginTop="8px";var Y=mxUtils.bind(this,function(K,V,Z){d=e.getSelectionState();if(d.containsLabel||d.vertices.length!=f.getSelectionCount()||null==d.width||null==d.height)g.style.display="none";else{g.style.display="";if(Z||document.activeElement!=q)q.value=this.inUnit(d.width)+" "+this.getUnit();-if(Z||document.activeElement!=k)k.value=this.inUnit(d.height)+" "+this.getUnit()}if(d.vertices.length==f.getSelectionCount()&&0<d.vertices.length&&null!=d.x&&null!=d.y){K=f.getCellGeometry(d.vertices[0]);D.style.display="";if(Z||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(Z||document.activeElement!=J)J.value=this.inUnit(d.y)+" "+this.getUnit();null!=K&&K.relative&&(null==L||!Z&&document.activeElement==L||(L.value=Math.round(1E3*K.x)/10+" %"),null==Q||!Z&&document.activeElement==-Q||(h.isEdge(h.getParent(d.vertices[0]))?Q.value=this.inUnit(K.y)+" "+this.getUnit():Q.value=Math.round(1E3*K.y)/10+" %"))}else D.style.display="none"});this.listeners.push({destroy:function(){h.removeListener(Y)}});h.addListener(mxEvent.CHANGE,Y);this.addKeyHandler(G,Y);this.addKeyHandler(J,Y);Y();var P=this.addGeometryHandler(G,function(K,V){V=b.fromUnit(V);K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.x=V):K.x=V});var T=this.addGeometryHandler(J,function(K,V){V=b.fromUnit(V);+if(Z||document.activeElement!=k)k.value=this.inUnit(d.height)+" "+this.getUnit()}if(d.vertices.length==f.getSelectionCount()&&0<d.vertices.length&&null!=d.x&&null!=d.y){K=f.getCellGeometry(d.vertices[0]);D.style.display="";if(Z||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(Z||document.activeElement!=I)I.value=this.inUnit(d.y)+" "+this.getUnit();null!=K&&K.relative&&(null==L||!Z&&document.activeElement==L||(L.value=Math.round(1E3*K.x)/10+" %"),null==Q||!Z&&document.activeElement==+Q||(h.isEdge(h.getParent(d.vertices[0]))?Q.value=this.inUnit(K.y)+" "+this.getUnit():Q.value=Math.round(1E3*K.y)/10+" %"))}else D.style.display="none"});this.listeners.push({destroy:function(){h.removeListener(Y)}});h.addListener(mxEvent.CHANGE,Y);this.addKeyHandler(G,Y);this.addKeyHandler(I,Y);Y();var P=this.addGeometryHandler(G,function(K,V){V=b.fromUnit(V);K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.x=V):K.x=V});var T=this.addGeometryHandler(I,function(K,V){V=b.fromUnit(V);K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.y=V):K.y=V});d.movable&&(0==d.edges.length&&1==d.vertices.length&&h.isEdge(h.getParent(d.vertices[0]))&&(N=f.getCellGeometry(d.vertices[0]),null!=N&&N.relative&&(m=mxUtils.button(mxResources.get("center"),mxUtils.bind(this,function(K){h.beginUpdate();try{N=N.clone(),N.x=0,N.y=0,N.offset=new mxPoint,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}})),m.setAttribute("title",mxResources.get("center")),m.style.width="134px",m.style.left="89px",m.style.position="absolute",mxUtils.br(D),mxUtils.br(D),D.appendChild(m))),a.appendChild(D))};ArrangePanel.prototype.addGeometryHandler=function(a,b){function e(m){if(""!=a.value){var q=parseFloat(a.value);if(isNaN(q))a.value=d+" "+g.getUnit();else if(q!=d){h.getModel().beginUpdate();try{for(var k=f.getSelectionState().cells,u=0;u<k.length;u++)if(h.getModel().isVertex(k[u])){var w=h.getCellGeometry(k[u]);if(null!=w&&(w=w.clone(),!b(w,q,k[u]))){var z=h.view.getState(k[u]);null!=z&&h.isRecursiveVertexResize(z)&&h.resizeChildCells(k[u],w);h.getModel().setGeometry(k[u],w);h.constrainChildCells(k[u])}}}finally{h.getModel().endUpdate()}d=@@ -3107,11 +3107,11 @@ ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=e.getSelectionState(),d=this.createPanel(),g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";g.style.fontWeight="bold";mxUtils.write(g,mxResources.get("width"));d.appendChild(g);var m=this.addUnitInput(d,"pt",12,44,function(){q.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,D);var q=mxUtils.bind(this,function(N){var U=parseInt(m.value);U=Math.min(999,Math.max(1,isNaN(U)?1:U));if(U!=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var Y=e.getSelectionState().cells;f.setCellStyles("width",U,Y);e.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[U],"cells",Y))}m.value=U+" pt";mxEvent.consume(N)});mxEvent.addListener(m,"blur",q);mxEvent.addListener(m,"change",q);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";g=document.createElement("div");g.style.position=-"absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("linestart"));k.appendChild(g);var u=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){J.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);+"absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("linestart"));k.appendChild(g);var u=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){I.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);this.addKeyHandler(u,D);this.addKeyHandler(w,D);var z=this.createPanel();z.style.paddingBottom="30px";g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("lineend"));z.appendChild(g);var C=this.addUnitInput(z,this.getUnit(),87,52,function(){L.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),E=this.addUnitInput(z,this.getUnit(),16,52,function(){Q.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(z);this.addLabel(z,mxResources.get("left"),87,64);this.addLabel(z,mxResources.get("top"),16,64);a.appendChild(z);this.addKeyHandler(C,D);this.addKeyHandler(E,D);var D=mxUtils.bind(this,function(N,U,Y){h=e.getSelectionState();N=h.cells[0];if("link"==h.style.shape||"flexArrow"==h.style.shape){if(d.style.display="",Y||document.activeElement!=m)Y=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth),m.value=Y+" pt"}else d.style.display="none";1==h.cells.length&&f.model.isEdge(N)?(Y=f.model.getGeometry(N),null!=Y&&null!=Y.sourcePoint&&null==f.model.getTerminal(N,!0)?(u.value=this.inUnit(Y.sourcePoint.x)+" "+this.getUnit(),w.value=this.inUnit(Y.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=Y&&null!=Y.targetPoint&&null==f.model.getTerminal(N,!1)?(C.value=this.inUnit(Y.targetPoint.x)+" "+this.getUnit(),E.value=this.inUnit(Y.targetPoint.y)+" "+this.getUnit()):z.style.display="none"):(k.style.display="none",z.style.display=-"none")});var G=this.addEdgeGeometryHandler(u,function(N,U){N.sourcePoint.x=b.fromUnit(U)});var J=this.addEdgeGeometryHandler(w,function(N,U){N.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(N,U){N.targetPoint.x=b.fromUnit(U)});var Q=this.addEdgeGeometryHandler(E,function(N,U){N.targetPoint.y=b.fromUnit(U)});f.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){f.getModel().removeListener(D)}});D()};+"none")});var G=this.addEdgeGeometryHandler(u,function(N,U){N.sourcePoint.x=b.fromUnit(U)});var I=this.addEdgeGeometryHandler(w,function(N,U){N.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(N,U){N.targetPoint.x=b.fromUnit(U)});var Q=this.addEdgeGeometryHandler(E,function(N,U){N.targetPoint.y=b.fromUnit(U)});f.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){f.getModel().removeListener(D)}});D()};TextFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(TextFormatPanel,BaseFormatPanel);TextFormatPanel.prototype.init=function(){this.container.style.borderBottom="none";this.addFont(this.container);this.container.appendChild(this.addFontOps(this.createPanel()))};TextFormatPanel.prototype.addFontOps=function(a){a.style.paddingTop="8px";a.style.paddingBottom="6px";0==this.addActions(a,["removeFormat"])&&(a.style.display="none");return a};TextFormatPanel.prototype.addFont=function(a){function b(p){p=null!=p?p.fontSize:null;return null!=p&&"px"==p.substring(p.length-2)?parseFloat(p):mxConstants.DEFAULT_FONTSIZE}function e(p,A){if(null!=p&&""!=p.textContent){p.style.lineHeight="";var B=mxUtils.getCurrentStyle(p);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?p.style.lineHeight=A+"%":""==p.getAttribute("style")&&p.removeAttribute("style")}}function f(p,A){A?p.classList.add("geActiveItem"):p.classList.remove("geActiveItem")}var h=this.editorUi,d=h.editor.graph,g=h.getSelectionState(),m=this.createTitle(mxResources.get("font"));m.style.paddingLeft="14px";m.style.paddingTop="10px";m.style.paddingBottom="6px";a.appendChild(m);m=this.createPanel();m.style.paddingTop="2px";m.style.paddingBottom="2px";m.style.position="relative";m.style.marginLeft="-2px";m.style.borderWidth="0px";m.className="geToolbarContainer";if(d.cellEditor.isContentEditing()){var q=m.cloneNode(),k=this.editorUi.toolbar.addMenu(mxResources.get("style"),mxResources.get("style"),@@ -3120,12 +3120,12 @@ this.editorUi.toolbar.addMenu("Helvetica",mxResources.get("fontFamily"),!0,"font"underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);w[0].setAttribute("title",mxResources.get("bold")+" ("+this.editorUi.actions.get("bold").shortcut+")");w[1].setAttribute("title",mxResources.get("italic")+" ("+this.editorUi.actions.get("italic").shortcut+")");w[2].setAttribute("title",mxResources.get("underline")+" ("+this.editorUi.actions.get("underline").shortcut+")");var z=this.editorUi.toolbar.addItems(["vertical"],k,!0,[Editor.verticalTextImage])[0];a.appendChild(k);this.styleButtons(w);this.styleButtons([z]);var C=m.cloneNode(!1);C.style.height="31px";C.style.paddingTop="2px";C.style.marginLeft="-3px";C.style.paddingBottom="0px";var E=function(p){return function(){return p()}},D=this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_LEFT])),C),G=this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],-[mxConstants.ALIGN_CENTER])),C),J=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);this.styleButtons([D,G,J]);if(d.cellEditor.isContentEditing()){var L=+[mxConstants.ALIGN_CENTER])),C),I=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);this.styleButtons([D,G,I]);if(d.cellEditor.isContentEditing()){var L=this.editorUi.toolbar.addButton(Editor.strikethroughImage,mxResources.get("strikethrough"),function(){document.execCommand("strikeThrough",!1,null)},k);this.styleButtons([L])}var Q=this.editorUi.toolbar.addButton(Editor.alignTopImage,mxResources.get("top"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),N=this.editorUi.toolbar.addButton(Editor.alignMiddleImage,mxResources.get("middle"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),C),U=this.editorUi.toolbar.addButton(Editor.alignBottomImage,mxResources.get("bottom"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),C);this.styleButtons([Q,N,U]);a.appendChild(C);var Y,P,T,K,V;if(d.cellEditor.isContentEditing()){Q.style.display="none";N.style.display="none";U.style.display="none";z.style.display="none";var Z=this.editorUi.toolbar.addButton(Editor.alignJustifyImage,mxResources.get("block"),function(){1==Z.style.opacity&&document.execCommand("justifyfull",!1,null)},C);Z.style.marginRight="9px";this.styleButtons([Z,Y=this.editorUi.toolbar.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C),P=this.editorUi.toolbar.addButton(Editor.superscriptImage,mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},C)]);Y.style.marginLeft="10px";E=C.cloneNode(!1);E.style.paddingTop="4px";C=[this.editorUi.toolbar.addButton(Editor.orderedListImage,mxResources.get("numberedList"),function(){document.execCommand("insertorderedlist",!1,null)},E),this.editorUi.toolbar.addButton(Editor.unorderedListImage,mxResources.get("bulletedList"),function(){document.execCommand("insertunorderedlist",!1,null)},E),this.editorUi.toolbar.addButton(Editor.indentImage,mxResources.get("increaseIndent"),function(){document.execCommand("indent",!1,null)},E),this.editorUi.toolbar.addButton(Editor.outdentImage,-mxResources.get("decreaseIndent"),function(){document.execCommand("outdent",!1,null)},E),this.editorUi.toolbar.addButton(Editor.removeFormatImage,mxResources.get("removeFormat"),function(){document.execCommand("removeformat",!1,null)},E),this.editorUi.toolbar.addButton(Editor.codeImage,mxResources.get("html"),function(){d.cellEditor.toggleViewMode()},E)];this.styleButtons(C);C[C.length-2].style.marginLeft="10px";a.appendChild(E)}else w[2].style.marginRight="12px",J.style.marginRight="12px";C=m.cloneNode(!1);+mxResources.get("decreaseIndent"),function(){document.execCommand("outdent",!1,null)},E),this.editorUi.toolbar.addButton(Editor.removeFormatImage,mxResources.get("removeFormat"),function(){document.execCommand("removeformat",!1,null)},E),this.editorUi.toolbar.addButton(Editor.codeImage,mxResources.get("html"),function(){d.cellEditor.toggleViewMode()},E)];this.styleButtons(C);C[C.length-2].style.marginLeft="10px";a.appendChild(E)}else w[2].style.marginRight="12px",I.style.marginRight="12px";C=m.cloneNode(!1);C.removeAttribute("class");C.style.marginLeft="0px";C.style.paddingTop="8px";C.style.paddingBottom="4px";C.style.fontWeight="normal";mxUtils.write(C,mxResources.get("position"));var ia=document.createElement("select");ia.style.position="absolute";ia.style.left="126px";ia.style.width="98px";ia.style.borderWidth="1px";ia.style.borderStyle="solid";ia.style.marginTop="-3px";var oa="topLeft top topRight left center right bottomLeft bottom bottomRight".split(" "),sa={topLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM],top:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_BOTTOM],topRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM],left:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE],center:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE],right:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE],bottomLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP],bottom:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP],bottomRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP]};for(E=0;E<oa.length;E++){var O=document.createElement("option");O.setAttribute("value",oa[E]);mxUtils.write(O,@@ -3156,7 +3156,7 @@ this.editorUi.pickColor(A,function(B){var F=null==K||null!=p&&mxEvent.isShiftDowmxResources.get("spacing"));h.showDialog(p.container,300,80,!0,!0);p.init()}},m),this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=T&&T.setAttribute("align","left")},m),this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=T&&T.setAttribute("align","center")},m),this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=T&&T.setAttribute("align","right")},m)];this.styleButtons(C);C[2].style.marginRight="10px";q.appendChild(m);a.appendChild(q);var Xa=q}else a.appendChild(q),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(E=0;3>E;E++)(function(p){mxEvent.addListener(w[p],"click",function(){f(w[p],""==w[p].style.backgroundImage)})})(E);var Ya=mxUtils.bind(this,function(p,A,B){g=h.getSelectionState();p=mxUtils.getValue(g.style,mxConstants.STYLE_FONTSTYLE,0);f(w[0],(p&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);f(w[1],(p&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(w[2],(p&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);u.firstChild.nodeValue=mxUtils.getValue(g.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont);f(z,"0"==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=ca)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ca.value=isNaN(p)?"":p+" "+Editor.fontSizeUnit;p=mxUtils.getValue(g.style,-mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,p==mxConstants.ALIGN_LEFT);f(G,p==mxConstants.ALIGN_CENTER);f(J,p==mxConstants.ALIGN_RIGHT);p=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(Q,p==mxConstants.ALIGN_TOP);f(N,p==mxConstants.ALIGN_MIDDLE);f(U,p==mxConstants.ALIGN_BOTTOM);p=mxUtils.getValue(g.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);+mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,p==mxConstants.ALIGN_LEFT);f(G,p==mxConstants.ALIGN_CENTER);f(I,p==mxConstants.ALIGN_RIGHT);p=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(Q,p==mxConstants.ALIGN_TOP);f(N,p==mxConstants.ALIGN_MIDDLE);f(U,p==mxConstants.ALIGN_BOTTOM);p=mxUtils.getValue(g.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);ia.value=p==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":p==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":p==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":p==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":p==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":p==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":p==mxConstants.ALIGN_LEFT?"left":p==mxConstants.ALIGN_RIGHT?"right":"center";p=mxUtils.getValue(g.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);p==mxConstants.TEXT_DIRECTION_RTL?X.value="rightToLeft":p==mxConstants.TEXT_DIRECTION_LTR?X.value="leftToRight":p!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?p==mxConstants.TEXT_DIRECTION_VERTICAL_LR?X.value="vertical-leftToRight":p==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(X.value="vertical-rightToLeft"):X.value="automatic";if(B||document.activeElement!=Ja)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Ja.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ca)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Ca.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ga)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ga.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Da)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Da.value=isNaN(p)?"":this.inUnit(p)+@@ -3166,8 +3166,8 @@ Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,fHa.childNodes[0],Ha.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.parentNode}return null},M=mxUtils.getCurrentStyle(p),R=p==d.cellEditor.textarea||""==p.style.lineHeight?null:p.style.lineHeight,W=p==d.cellEditor.textarea||""==p.style.fontSize?null:b(M);if(window.getSelection)for(var ha=p.getElementsByTagName("*"),fa=window.getSelection(),ja=0;ja<ha.length&&(!fa.containsNode(ha[ja],!0)||(null==W&&""!=ha[ja].style.fontSize&&(W=parseFloat(ha[ja].style.fontSize)),null==R&&""!=ha[ja].style.lineHeight&&(R=ha[ja].style.lineHeight),null==W||null==R));ja++);null==W&&(W=b(M));if(null==R)for(ha=p;null!=ha&&ha!=d.cellEditor.textarea.parentNode;){if(null!=ha.style&&""!=ha.style.lineHeight){R=ha.style.lineHeight;break}ha=ha.parentNode}if(null!=M){f(w[0],"bold"==M.fontWeight||400<M.fontWeight||B("B")||B("STRONG"));f(w[1],"italic"==M.fontStyle||B("I")||B("EM"));f(w[2],"underline"==M.textDecorationLine||B("U"));f(L,"line-through"==M.textDecorationLine||B("STRIKE"));f(P,B("SUP"));f(Y,B("SUB"));var va=F(p);if(null!=va){B=function(ya,Ha){Na.push({name:ya,dispName:Ha,type:"string",getValue:function(){return Ma[ya]},valueChanged:function(wa,ua){var Va=va.style,Qa=wa;parseInt(Qa)==Qa&&(Qa+="px",null!=ua&&(ua.value=Qa));Va[ya]=Qa;""==wa&&null!=ua&&(ua.value=Ma[ya])}})};var Ma=mxUtils.getCurrentStyle(va),Na=[];B("paddingTop","Padding Top");B("paddingRight","Padding Right");B("paddingLeft","Padding Left");-B("paddingBottom","Padding Bottom");B("marginTop","Margin Top");B("marginRight","Margin Right");B("marginLeft","Margin Left");B("marginBottom","Margin Bottom");B=this.createPanel();this.addProperties(B,Na,g,!0);null!=ib?ib.parentNode.replaceChild(B,ib):a.appendChild(B);ib=B}d.cellEditor.isTableSelected()?(f(Z,A(M.textAlign,"justify")),f(D,A(M.textAlign,"left")),f(G,A(M.textAlign,"center")),f(J,A(M.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),-A(M.textAlign,"justify")?(f(Z,A(M.textAlign,"justify")),f(D,!1),f(G,!1),f(J,!1)):(f(Z,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(J,B==mxConstants.ALIGN_RIGHT)));T=d.getParentByName(p,"TABLE",d.cellEditor.textarea);V=null==T?null:d.getParentByName(p,"TR",T);K=null==T?null:d.getParentByNames(p,["TD","TH"],T);Xa.style.display=null!=T?"":"none";document.activeElement!=ca&&(ca.value=isNaN(W)?"":W+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?La.value=R.replace("%",+B("paddingBottom","Padding Bottom");B("marginTop","Margin Top");B("marginRight","Margin Right");B("marginLeft","Margin Left");B("marginBottom","Margin Bottom");B=this.createPanel();this.addProperties(B,Na,g,!0);null!=ib?ib.parentNode.replaceChild(B,ib):a.appendChild(B);ib=B}d.cellEditor.isTableSelected()?(f(Z,A(M.textAlign,"justify")),f(D,A(M.textAlign,"left")),f(G,A(M.textAlign,"center")),f(I,A(M.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),+A(M.textAlign,"justify")?(f(Z,A(M.textAlign,"justify")),f(D,!1),f(G,!1),f(I,!1)):(f(Z,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(I,B==mxConstants.ALIGN_RIGHT)));T=d.getParentByName(p,"TABLE",d.cellEditor.textarea);V=null==T?null:d.getParentByName(p,"TR",T);K=null==T?null:d.getParentByNames(p,["TD","TH"],T);Xa.style.display=null!=T?"":"none";document.activeElement!=ca&&(ca.value=isNaN(W)?"":W+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?La.value=R.replace("%"," %"):(A=parseFloat(R),isNaN(A)?La.value="120 %":La.value=Math.round(100*A)+" %"));null!=ra&&(qa=d.getTextColor(p,!0),ra(qa,!0));null!=H&&(ea=d.getTextColor(p,!1),H(ea,!0));null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(M.fontFamily))}}eb=!1}),0))});(mxClient.IS_FF||mxClient.IS_EDGE||mxClient.IS_IE||mxClient.IS_IE11)&&mxEvent.addListener(d.cellEditor.textarea,"DOMSubtreeModified",m);mxEvent.addListener(d.cellEditor.textarea,"input",m);mxEvent.addListener(d.cellEditor.textarea,"touchend",m);mxEvent.addListener(d.cellEditor.textarea,"mouseup",m);mxEvent.addListener(d.cellEditor.textarea,"keyup",m);this.listeners.push({destroy:function(){}});m()}return a};StyleFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(StyleFormatPanel,BaseFormatPanel);StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(!a.containsLabel&&0<a.cells.length){a.containsImage&&1==a.vertices.length&&"image"==a.style.shape&&null!=a.style.image&&"data:image/svg+xml;"==String(a.style.image).substring(0,19)&&this.container.appendChild(this.addSvgStyles(this.createPanel()));a.fill&&this.container.appendChild(this.addFill(this.createPanel()));this.container.appendChild(this.addStroke(this.createPanel()));this.container.appendChild(this.addLineJumps(this.createPanel()));@@ -3175,8 +3175,8 @@ var b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPAStyleFormatPanel.prototype.getCssRules=function(a){var b=document.implementation.createHTMLDocument(""),e=document.createElement("style");mxUtils.setTextContent(e,a);b.body.appendChild(e);return e.sheet.cssRules};StyleFormatPanel.prototype.addSvgStyles=function(a){var b=this.editorUi.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";a.style.fontWeight="bold";a.style.display="none";try{var e=b.style.editableCssRules;if(null!=e){var f=new RegExp(e),h=b.style.image.substring(b.style.image.indexOf(",")+1),d=window.atob?decodeURIComponent(escape(atob(h))):Base64.decode(h,!0),g=mxUtils.parseXml(d);if(null!=g){var m="light"==g.documentElement.style.colorScheme||"0"==mxUtils.getValue(b.style,"darkMode",null),q=""==g.documentElement.style.colorScheme,k=g.getElementsByTagName("style");for(b=0;b<k.length;b++){var u=this.getCssRules(mxUtils.getTextContent(k[b]));for(e=0;e<u.length;e++)this.addSvgRule(a,u[e],g,k[b],u,e,f,m,q)}}}}catch(w){}return a};StyleFormatPanel.prototype.getColorSchemeFromCss=function(a){return(a=a.match(/color-scheme\s*:\s*([^;]+)/i))?a[1].trim():null};-StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(w,z,C,E){var D=mxUtils.trim(w.style.getPropertyValue(z));if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){h[d].style.setProperty(z,J==mxConstants.NONE?-"transparent":mxUtils.getLightDarkColor(J).cssText);J="";q&&mxUtils.isLightDarkColor(h[d].style[z])&&(e.documentElement.style.colorScheme="light dark");for(var L=0;L<h.length;L++)J+=h[L].cssText+" ";f.textContent=J;J=mxUtils.getXml(e.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,E);a.appendChild(w);+StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(w,z,C,E){var D=mxUtils.trim(w.style.getPropertyValue(z));if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(I){h[d].style.setProperty(z,I==mxConstants.NONE?+"transparent":mxUtils.getLightDarkColor(I).cssText);I="";q&&mxUtils.isLightDarkColor(h[d].style[z])&&(e.documentElement.style.colorScheme="light dark");for(var L=0;L<h.length;L++)I+=h[L].cssText+" ";f.textContent=I;I=mxUtils.getXml(e.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(I))):Base64.encode(I,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(I){},destroy:function(){}},null,null,null,E);a.appendChild(w);a.style.display=""}}),g(b,"fill",mxResources.get("fill"),m),g(b,"stroke",mxResources.get("line"),m),g(b,"stop-color",mxResources.get("gradient"),m))};StyleFormatPanel.prototype.addEditOps=function(a){var b=this.editorUi.getSelectionState();if(1==b.cells.length){var e=document.createElement("select");e.style.width="210px";e.style.textAlign="center";e.style.marginBottom="2px";var f="edit copyAsText editLink editShape editImage editData copyData pasteData editConnectionPoints editGeometry editTooltip editStyle".split(" "),h=null;if(null!=this.editorUi.sidebar){var d=this.editorUi.sidebar.getKeyStyle(b.cells[0].style);h=this.editorUi.sidebar.getLibsForStyle(d);null!=h||this.editorUi.sidebar.isSearchIndexLoaded()||null==b.style.shape||"mxgraph."!=String(b.style.shape).substring(0,8)||(h=[])}null!=h&&f.push("openLibrary");for(d=0;d<f.length;d++){var g=this.editorUi.actions.get(f[d]);if(null==g||g.enabled){var m=document.createElement("option");m.setAttribute("value",f[d]);var q=mxResources.get(f[d]);mxUtils.write(m,q+("edit"==f[d]?"":"..."));null!=g&&null!=g.shortcut&&(q+=" ("+g.shortcut+")");m.setAttribute("title",q);e.appendChild(m)}}1<e.children.length&&@@ -3186,11 +3186,12 @@ StyleFormatPanel.prototype.addFill=function(a){function b(){g.innerHTML="";C=1;f"22px";d.style.marginTop="-3px";d.style.borderWidth="1px";d.style.borderStyle="solid";d.style.boxSizing="border-box";var g=d.cloneNode(!1);mxEvent.addListener(d,"click",function(D){mxEvent.consume(D)});mxEvent.addListener(g,"click",function(D){mxEvent.consume(D)});var m=this.createCellColorOption(mxResources.get("gradient"),mxConstants.STYLE_GRADIENTCOLOR,"default",function(D){d.style.display=null==D||D==mxConstants.NONE?"none":""},function(D){f.updateCellStyles({gradientColor:D},f.getSelectionCells())},f.getDefaultColor(h.style,mxConstants.STYLE_GRADIENTCOLOR,f.shapeForegroundColor,f.shapeBackgroundColor));m.style.fontWeight="bold";var q="image"==h.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),q,"default",null,mxUtils.bind(this,function(D){f.setCellStyles(q,D,h.cells)}),f.getDefaultColor(h.style,q,f.shapeBackgroundColor,f.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(h.style,q,null);m.style.display=null!=u&&u!=mxConstants.NONE&&h.fill&&"image"!=h.style.shape?"":"none";var w=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_RADIAL];for(u=0;u<w.length;u++){var z=document.createElement("option");z.setAttribute("value",w[u]);mxUtils.write(z,mxResources.get(w[u]));d.appendChild(z)}m.appendChild(d);var C;b();h.gradient&&k.appendChild(g);var E=mxUtils.bind(this,function(){h=e.getSelectionState();var D=mxUtils.getValue(h.style,-mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(h.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=h.fill?"":"none";D=mxUtils.getValue(h.style,q,null);if(h.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=h.style.shape){if("1"==h.style.sketch){if(2!=C){g.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var J=document.createElement("option");J.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(J,-Editor.roughFillStyles[D].dispName);g.appendChild(J)}g.value="auto"}}else 1!=C&&b();g.value=G;g.value||(G="auto",g.value=G);g.style.display="1"==h.style.sketch||"none"==d.style.display?"":"none";m.style.display=!h.gradient||h.containsImage||"1"==h.style.sketch&&"solid"!=G&&"auto"!=G?"none":""}else g.style.display="none",m.style.display="none"});f.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){f.getModel().removeListener(E)}});E();mxEvent.addListener(d,"change",function(D){f.setCellStyles(mxConstants.STYLE_GRADIENT_DIRECTION,+mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(h.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=h.fill?"":"none";D=mxUtils.getValue(h.style,q,null);if(h.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=h.style.shape){if("1"==h.style.sketch){if(2!=C){g.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var I=document.createElement("option");I.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(I,+Editor.roughFillStyles[D].dispName);g.appendChild(I)}g.value="auto"}}else 1!=C&&b();g.value=G;g.value||(G="auto",g.value=G);g.style.display="1"==h.style.sketch||"none"==d.style.display?"":"none";m.style.display=!h.gradient||h.containsImage||"1"==h.style.sketch&&"solid"!=G&&"auto"!=G?"none":""}else g.style.display="none",m.style.display="none"});f.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){f.getModel().removeListener(E)}});E();mxEvent.addListener(d,"change",function(D){f.setCellStyles(mxConstants.STYLE_GRADIENT_DIRECTION,d.value,h.cells);e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_GRADIENT_DIRECTION],"values",[d.value],"cells",h.cells));mxEvent.consume(D)});mxEvent.addListener(g,"change",function(D){f.setCellStyles("fillStyle",g.value,h.cells);e.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[g.value],"cells",h.cells));mxEvent.consume(D)});a.appendChild(k);a.appendChild(m);k=this.getCustomColors();for(u=0;u<k.length;u++)a.appendChild(this.createCellColorOption(k[u].title,-k[u].key,k[u].defaultValue));return a};StyleFormatPanel.prototype.getCustomColors=function(){var a=[];this.editorUi.getSelectionState().swimlane&&a.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return a};-StyleFormatPanel.prototype.addStroke=function(a){function b(H){var ea=f.fromUnit(parseFloat(J.value));ea=Math.min(999,Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));J.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}function e(H){var ea=f.fromUnit(parseFloat(L.value));ea=Math.min(999,+k[u].key,k[u].defaultValue));k=mxUtils.bind(this,function(D,G){if(null!=D){D=D.split(",");for(var I=0;I<D.length;I++){var L=D[I].replace(/([a-z])([A-Z])/g,"$1 $2");a.appendChild(this.createCellColorOption(L.charAt(0).toUpperCase()+L.substring(1),D[I],"default",null,null,G))}}});k(h.style.fillColorStyles,f.shapeBackgroundColor);k(h.style.strokeColorStyles,f.shapeForegroundColor);return a};+StyleFormatPanel.prototype.getCustomColors=function(){var a=[];this.editorUi.getSelectionState().swimlane&&a.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return a};+StyleFormatPanel.prototype.addStroke=function(a){function b(H){var ea=f.fromUnit(parseFloat(I.value));ea=Math.min(999,Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));I.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}function e(H){var ea=f.fromUnit(parseFloat(L.value));ea=Math.min(999,Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));L.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}var f=this,h=this.editorUi,d=h.editor.graph,g=h.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="4px";a.style.whiteSpace="normal";var m=document.createElement("div");m.style.fontWeight="bold";g.stroke||(m.style.display="none");var q=document.createElement("select");q.style.position="absolute";q.style.height="22px";q.style.marginTop="-3px";q.style.textAlign="center";q.style.boxSizing="border-box";q.style.left="90px";q.style.width="83px";q.style.borderWidth="1px";q.style.borderStyle="solid";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var w=document.createElement("option");w.setAttribute("value",k[u]);mxUtils.write(w,mxResources.get(k[u]));q.appendChild(w)}mxEvent.addListener(q,"change",function(H){d.getModel().beginUpdate();try{var ea=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ra=["0","0"];"rounded"==q.value?ra=["1","0"]:"curved"==q.value&&(ra=["0","1"]);for(var qa=0;qa<ea.length;qa++)d.setCellStyles(ea[qa],ra[qa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",ra,"cells",g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(H)});mxEvent.addListener(q,"click",function(H){mxEvent.consume(H)});var z="image"==g.style.shape?mxConstants.STYLE_IMAGE_BORDER:@@ -3203,9 +3204,9 @@ mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],"",null,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],"",null,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));Format.processMenuIcon(this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],"",null,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"))}));w=this.editorUi.toolbar.addMenuFunctionInContainer(D,null,mxResources.get("pattern"),!1,mxUtils.bind(this,function(H){E(H,33,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(H,33,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(H,33,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(H,33,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(H,33,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+-" (1)");E(H,33,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(H,33,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")}));k=C.cloneNode(!1);var J=document.createElement("input");J.style.position="absolute";J.style.textAlign="right";J.style.marginTop="2px";J.style.width="52px";J.style.height="22px";J.style.left="146px";J.style.borderWidth=-"1px";J.style.borderStyle="solid";J.style.boxSizing="border-box";J.setAttribute("title",mxResources.get("linewidth"));C.appendChild(J);var L=J.cloneNode(!0);D.appendChild(L);var Q=this.createStepper(J,b,this.getUnitStep(),9,null,null,this.isFloatUnit());Q.style.display=J.style.display;Q.style.top="2px";Q.style.left="198px";C.appendChild(Q);Q=this.createStepper(L,e,this.getUnitStep(),9,null,null,this.isFloatUnit());Q.style.display=L.style.display;L.style.position="absolute";Q.style.top="2px";Q.style.left=-"198px";D.appendChild(Q);mxEvent.addListener(J,"blur",b);mxEvent.addListener(J,"change",b);mxEvent.addListener(L,"blur",e);mxEvent.addListener(L,"change",e);var N=this.editorUi.toolbar.addMenuFunctionInContainer(k,null,mxResources.get("waypoints"),!1,mxUtils.bind(this,function(H){"arrow"!=g.style.shape&&(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,null,!0,Format.straightImage.src)).setAttribute("title",+" (1)");E(H,33,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(H,33,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")}));k=C.cloneNode(!1);var I=document.createElement("input");I.style.position="absolute";I.style.textAlign="right";I.style.marginTop="2px";I.style.width="52px";I.style.height="22px";I.style.left="146px";I.style.borderWidth=+"1px";I.style.borderStyle="solid";I.style.boxSizing="border-box";I.setAttribute("title",mxResources.get("linewidth"));C.appendChild(I);var L=I.cloneNode(!0);D.appendChild(L);var Q=this.createStepper(I,b,this.getUnitStep(),9,null,null,this.isFloatUnit());Q.style.display=I.style.display;Q.style.top="2px";Q.style.left="198px";C.appendChild(Q);Q=this.createStepper(L,e,this.getUnitStep(),9,null,null,this.isFloatUnit());Q.style.display=L.style.display;L.style.position="absolute";Q.style.top="2px";Q.style.left=+"198px";D.appendChild(Q);mxEvent.addListener(I,"blur",b);mxEvent.addListener(I,"change",b);mxEvent.addListener(L,"blur",e);mxEvent.addListener(L,"change",e);var N=this.editorUi.toolbar.addMenuFunctionInContainer(k,null,mxResources.get("waypoints"),!1,mxUtils.bind(this,function(H){"arrow"!=g.style.shape&&(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,null,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],null,null,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],null,null,!0,Format.horizontalElbowImage.src)).setAttribute("title",mxResources.get("vertical")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,null,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("horizontal")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],null,null,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),@@ -3242,7 +3243,7 @@ Q.appendChild(P);var T=document.createElement("div");T.style.width="30px";T.styl"0px";w.style.marginBottom="12px";w.style.marginTop="2px";w.style.fontWeight="normal";mxUtils.write(w,mxResources.get("lineend"));u.appendChild(w);var K=this.addUnitInput(u,this.getUnit(),98,52,function(){da.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),V=this.addUnitInput(u,this.getUnit(),30,52,function(){ba.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);Q=document.createElement("div");Q.style.height="8px";u.appendChild(Q);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("linestart"));u.appendChild(w);var Z=this.addUnitInput(u,this.getUnit(),98,52,function(){X.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),ia=this.addUnitInput(u,this.getUnit(),30,52,function(){O.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);this.addLabel(u,mxResources.get("spacing"),98,64).style.fontSize="11px";this.addLabel(u,mxResources.get("size"),30,64).style.fontSize="11px";mxUtils.br(u);m=m.cloneNode(!1);m.style.fontWeight="normal";m.style.position="relative";m.style.paddingLeft="16px";m.style.marginBottom="2px";m.style.marginTop="6px";m.style.borderWidth="0px";m.style.paddingBottom="18px";w=document.createElement("div");w.style.position="absolute";w.style.marginLeft="3px";w.style.marginBottom="12px";w.style.marginTop="1px";w.style.fontWeight="normal";w.style.width="120px";mxUtils.write(w,mxResources.get("perimeter"));m.appendChild(w);var oa=this.addUnitInput(m,this.getUnit(),30,52,function(){ca.apply(this,-arguments)},this.getUnitStep(),null,null,this.isFloatUnit());g.edges.length==g.cells.length?(a.appendChild(k),a.appendChild(u)):g.vertices.length==g.cells.length&&a.appendChild(m);var sa=mxUtils.bind(this,function(H,ea,ra){function qa(Pa,ma,Ba,Ca){Ba=Ba.getElementsByTagName("div")[0];null!=Ba&&h.updateCssForMarker(Ba,Ca,g.style.shape,Pa,ma);return Ba}g=h.getSelectionState();if(ra||document.activeElement!=J)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),J.value=isNaN(H)?"":+arguments)},this.getUnitStep(),null,null,this.isFloatUnit());g.edges.length==g.cells.length?(a.appendChild(k),a.appendChild(u)):g.vertices.length==g.cells.length&&a.appendChild(m);var sa=mxUtils.bind(this,function(H,ea,ra){function qa(Pa,ma,Ba,Ca){Ba=Ba.getElementsByTagName("div")[0];null!=Ba&&h.updateCssForMarker(Ba,Ca,g.style.shape,Pa,ma);return Ba}g=h.getSelectionState();if(ra||document.activeElement!=I)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),I.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=L)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),L.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();q.style.visibility="connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?"":"hidden";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?q.value="curved":"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,null)&&(q.value="rounded");P.style.borderBottom="1px solid currentcolor";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_DASHED,null)&&(H=mxUtils.getValue(g.style,mxConstants.STYLE_DASH_PATTERN,""),ea=String(H).split(" "),2<=ea.length?(H=parseInt(ea[0])+parseInt(ea[1]),ea=parseInt(ea[0])/H*100,P.style.borderBottom="1px solid transparent",P.style.backgroundImage="linear-gradient(to right, currentcolor "+ea+"%, transparent 0%)",P.style.backgroundPosition="bottom left",P.style.backgroundSize=H+"px 1px",P.style.backgroundRepeat="repeat-x"):P.style.borderBottom="1px dashed currentcolor");T.style.backgroundImage=P.style.backgroundImage;T.style.backgroundPosition=P.style.backgroundPosition;T.style.backgroundSize=P.style.backgroundSize;T.style.backgroundRepeat=P.style.backgroundRepeat;T.style.borderBottom=P.style.borderBottom;H=N.getElementsByTagName("div")[0];null!=H&&(H.style.backgroundPosition="center center",H.style.backgroundRepeat="no-repeat",H.className="geAdaptiveAsset",H.style.height="",ea=mxUtils.getValue(g.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(g.style,mxConstants.STYLE_NOEDGESTYLE,@@ -3252,7 +3253,7 @@ H.style.height="",H.style.backgroundImage="link"==g.style.shape?"url("+Format.limxConstants.STYLE_STARTARROW,null),mxUtils.getValue(g.style,"startFill","1"),U,"start");qa(mxUtils.getValue(g.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(g.style,"endFill","1"),Y,"end");mxUtils.setOpacity(N,"arrow"==g.style.shape?30:100);"connector"!=g.style.shape&&"flexArrow"!=g.style.shape&&"filledEdge"!=g.style.shape&&"wire"!=g.style.shape?(mxUtils.setOpacity(U,30),mxUtils.setOpacity(Y,30)):(mxUtils.setOpacity(U,100),mxUtils.setOpacity(Y,100));if(ra||document.activeElement!=ia)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)),ia.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=Z)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),Z.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=V)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),V.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=Z)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),K.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=oa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_PERIMETER_SPACING,0)),oa.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit()});var O=this.installInputHandler(ia,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var X=this.installInputHandler(Z,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,-0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ba=this.installInputHandler(V,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var da=this.installInputHandler(K,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ca=this.installInputHandler(oa,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(J,sa);this.addKeyHandler(ia,+0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ba=this.installInputHandler(V,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var da=this.installInputHandler(K,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ca=this.installInputHandler(oa,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(I,sa);this.addKeyHandler(ia,sa);this.addKeyHandler(Z,sa);this.addKeyHandler(V,sa);this.addKeyHandler(K,sa);this.addKeyHandler(oa,sa);d.getModel().addListener(mxEvent.CHANGE,sa);this.listeners.push({destroy:function(){d.getModel().removeListener(sa)}});sa();return a};StyleFormatPanel.prototype.addLineJumps=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();if(Graph.lineJumpsEnabled&&0<f.edges.length&&0==f.vertices.length&&f.lineJumps){a.style.padding="2px 0px 24px 14px";var h=document.createElement("div");h.style.position="absolute";h.style.maxWidth="78px";h.style.overflow="hidden";h.style.textOverflow="ellipsis";mxUtils.write(h,mxResources.get("lineJumps"));a.appendChild(h);var d=document.createElement("select");d.style.position="absolute";d.style.height="21px";d.style.marginTop="-2px";d.style.boxSizing="border-box";d.style.textAlign="center";d.style.right="84px";d.style.width="64px";d.style.borderWidth="1px";d.style.borderStyle="solid";h=["none","arc","gap","sharp","line"];for(var g=0;g<h.length;g++){var m=document.createElement("option");m.setAttribute("value",h[g]);mxUtils.write(m,mxResources.get(h[g]));d.appendChild(m)}mxEvent.addListener(d,"change",function(w){e.getModel().beginUpdate();try{e.setCellStyles("jumpStyle",d.value,@@ -3282,10 +3283,10 @@ try{var oa=ia.insertVertex(ia.getDefaultParent(),null,"Shape",14,8,70,36,"strokeg(oa,K);if(!q){var O=new ChangePageSetup(b,null!=K?K.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=K&&null!=K.gridColor?K.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(Z,mxUtils.bind(this,function(ia){Z.style.opacity=.5}),null,mxUtils.bind(this,function(ia){Z.style.opacity=1})),mxEvent.addListener(Z,"mouseenter",mxUtils.bind(this,function(ia){var oa=e.getCellStyle;ia=e.background;var sa=e.view.gridColor;q||(e.background=null!=K?K.background:null,e.view.gridColor=null!=K&&null!=K.gridColor?K.gridColor:h);e.getCellStyle=function(O,X){X=null!=X?X:!0;var ba=mxUtils.clone(oa.apply(this,arguments)),da=e.stylesheet.getDefaultVertexStyle(),ca=P;f.isEdge(O)&&(da=e.stylesheet.getDefaultEdgeStyle(),ca=T);m(ba,d,da);k(Y,ba,O,K);k(ca,ba,O,K);X&&(ba=this.postProcessCellStyle(O,ba));return ba};e.refresh();e.getCellStyle=oa;e.background=ia;e.view.gridColor=sa;Z.style.border="2px solid blue";Z.style.margin="0px 1px"})),mxEvent.addListener(Z,"mouseleave",mxUtils.bind(this,function(ia){Z.style.border="1px solid gray";Z.style.margin="1px 2px";e.refresh()})),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[V]=Z));w.appendChild(Z)}),C=Math.ceil(Editor.styles.length/10);this.format.currentStylePage=null!=this.format.currentStylePage?this.format.currentStylePage:0;var E=[],D=mxUtils.bind(this,function(){0<E.length&&(E[this.format.currentStylePage].style.background="#84d7ff");for(var Y=10*this.format.currentStylePage;Y<Math.min(10*(this.format.currentStylePage+-1),Editor.styles.length);Y++){var P=Editor.styles[Y];z(P.commonStyle,P.vertexStyle,P.edgeStyle,P.graph,Y)}}),G=mxUtils.bind(this,function(Y){0<=Y&&Y<C&&(E[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=Y,D())});if(1<C){var J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.position="relative";J.style.textAlign="center";J.style.paddingTop="4px";J.style.width="210px";for(var L=0;L<C;L++){var Q=document.createElement("div");Q.style.display=-"inline-block";Q.style.width="6px";Q.style.height="6px";Q.style.marginLeft="4px";Q.style.marginRight="3px";Q.style.borderRadius="3px";Q.style.cursor="pointer";Q.style.background="transparent";Q.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Y,P){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){G(Y)}))})(L,Q);J.appendChild(Q);E.push(Q)}a.appendChild(J);D();if(15>C){L=function(Y){mxEvent.addListener(Y,"mouseenter",function(){Y.style.opacity="1"});mxEvent.addListener(Y,"mouseleave",+1),Editor.styles.length);Y++){var P=Editor.styles[Y];z(P.commonStyle,P.vertexStyle,P.edgeStyle,P.graph,Y)}}),G=mxUtils.bind(this,function(Y){0<=Y&&Y<C&&(E[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=Y,D())});if(1<C){var I=document.createElement("div");I.style.whiteSpace="nowrap";I.style.position="relative";I.style.textAlign="center";I.style.paddingTop="4px";I.style.width="210px";for(var L=0;L<C;L++){var Q=document.createElement("div");Q.style.display=+"inline-block";Q.style.width="6px";Q.style.height="6px";Q.style.marginLeft="4px";Q.style.marginRight="3px";Q.style.borderRadius="3px";Q.style.cursor="pointer";Q.style.background="transparent";Q.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Y,P){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){G(Y)}))})(L,Q);I.appendChild(Q);E.push(Q)}a.appendChild(I);D();if(15>C){L=function(Y){mxEvent.addListener(Y,"mouseenter",function(){Y.style.opacity="1"});mxEvent.addListener(Y,"mouseleave",function(){Y.style.opacity="0.5"})};var N=document.createElement("div");N.className="geAdaptiveAsset";N.style.position="absolute";N.style.left="0px";N.style.top="0px";N.style.bottom="0px";N.style.width="24px";N.style.height="24px";N.style.margin="0px";N.style.cursor="pointer";N.style.opacity="0.5";N.style.backgroundRepeat="no-repeat";N.style.backgroundPosition="center center";N.style.backgroundSize="24px 24px";N.style.backgroundImage="url("+Editor.previousImage+")";var U=N.cloneNode(!1);U.style.backgroundImage=-"url("+Editor.nextImage+")";U.style.left="";U.style.right="2px";J.appendChild(N);J.appendChild(U);mxEvent.addListener(N,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage-1,C))}));mxEvent.addListener(U,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,C))}));L(N);L(U)}}else D();return a};DiagramFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramFormatPanel,BaseFormatPanel);+"url("+Editor.nextImage+")";U.style.left="";U.style.right="2px";I.appendChild(N);I.appendChild(U);mxEvent.addListener(N,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage-1,C))}));mxEvent.addListener(U,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,C))}));L(N);L(U)}}else D();return a};DiagramFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramFormatPanel,BaseFormatPanel);DiagramFormatPanel.showPageView=!0;DiagramFormatPanel.prototype.showBackgroundImageOption=!0;DiagramFormatPanel.prototype.init=function(){var a=this.editorUi.editor.graph;this.container.appendChild(this.addView(this.createPanel()));a.isEnabled()&&(this.container.appendChild(this.addOptions(this.createPanel())),this.container.appendChild(this.addPaperSize(this.createPanel())),this.container.appendChild(this.addStyleOps(this.createPanel())))};DiagramFormatPanel.prototype.addView=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("view")));this.addGridOption(a);DiagramFormatPanel.showPageView&&a.appendChild(this.createOption(mxResources.get("pageView"),function(){return e.pageVisible},function(d){b.actions.get("pageView").funct()},{install:function(d){this.listener=function(){d(e.pageVisible)};b.addListener("pageViewChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}));if(e.isEnabled()){if(this.showBackgroundImageOption){var f=this.createOption(mxResources.get("background"),function(){return null!=e.backgroundImage},function(d){d||(d=new ChangePageSetup(b,null,null),d.ignoreColor=!0,e.model.execute(d))},{install:function(d){this.listener=function(){d(null!=e.backgroundImage)};b.addListener("backgroundImageChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}),h=f.getElementsByTagName("input")[0];null!=h&&(h.style.visibility=null!=e.backgroundImage?@@ -3303,20 +3304,20 @@ null,null,q,!0,m);q.style.padding="6px 0 0 0";q.appendChild(d);q.appendChild(g);DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("paperSize")));var f=PageSetupDialog.addPageFormatPanel(a,"formatpanel",e.pageFormat,function(d){if(null==e.pageFormat||e.pageFormat.width!=d.width||e.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,e.model.execute(d)});this.addKeyHandler(f.widthInput,function(){f.set(e.pageFormat)});this.addKeyHandler(f.heightInput,function(){f.set(e.pageFormat)});var h=function(){f.set(e.pageFormat)};b.addListener("pageFormatChanged",h);this.listeners.push({destroy:function(){b.removeListener(h)}});e.getModel().addListener(mxEvent.CHANGE,h);this.listeners.push({destroy:function(){e.getModel().removeListener(h)}});return a};DiagramFormatPanel.prototype.addStyleOps=function(a){this.addActions(a,["editData"]);this.addActions(a,["clearDefaultStyle"]);return a};DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function h(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function g(){mxActor.call(this)}function m(){mxCylinder.call(this)}function q(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function w(){mxShape.call(this)}-function z(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function J(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxActor.call(this)}function N(){mxActor.call(this)}function U(){mxActor.call(this)}function Y(){mxActor.call(this)}function P(){mxActor.call(this)}function T(c,l){this.canvas=c;this.canvas.setLineJoin("round");+function z(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function I(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxActor.call(this)}function N(){mxActor.call(this)}function U(){mxActor.call(this)}function Y(){mxActor.call(this)}function P(){mxActor.call(this)}function T(c,l){this.canvas=c;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.defaultVariation=l;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,T.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,T.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,T.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,T.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,T.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,T.prototype.arcTo)}function K(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function Z(){mxActor.call(this)}function ia(){mxActor.call(this)}function oa(){mxActor.call(this)}function sa(){mxRectangleShape.call(this)}function O(){mxRectangleShape.call(this)}function X(){mxCylinder.call(this)}function ba(){mxShape.call(this)}function da(){mxShape.call(this)}function ca(){mxEllipse.call(this)}function H(){mxShape.call(this)}function ea(){mxShape.call(this)}function ra(){mxRectangleShape.call(this)}function qa(){mxShape.call(this)}function Pa(){mxShape.call(this)}function ma(){mxShape.call(this)}function Ba(){mxShape.call(this)}function Ca(){mxShape.call(this)}function Ja(){mxCylinder.call(this)}function Ia(){mxCylinder.call(this)}function Da(){mxRectangleShape.call(this)}function Ga(){mxDoubleEllipse.call(this)}function ta(){mxDoubleEllipse.call(this)}function La(){mxArrowConnector.call(this);this.spacing=0}function Xa(){mxArrowConnector.call(this);this.spacing=0}function Ya(){mxActor.call(this)}function cb(){mxRectangleShape.call(this)}function fb(){mxActor.call(this)}function pb(){mxActor.call(this)}function gb(){mxActor.call(this)}function ab(){mxActor.call(this)}function ib(){mxActor.call(this)}function eb(){mxActor.call(this)}function p(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function M(){mxEllipse.call(this)}function R(){mxEllipse.call(this)}function W(){mxEllipse.call(this)}function ha(){mxRhombus.call(this)}function fa(){mxEllipse.call(this)}function ja(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function ya(){mxActor.call(this)}function Ha(){mxActor.call(this)}function wa(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=-!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Va(c,l,t,n,r,v,x,I,y,aa){x+=y;var S=n.clone();n.x-=r*(2*x+y);n.y-=v*(2*x+y);r*=x+y;v*=x+y;return function(){c.ellipse(S.x-r-x,S.y-v-x,2*x,2*x);aa?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,this.strokewidth),null==c?c=+!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Va(c,l,t,n,r,v,x,J,y,aa){x+=y;var S=n.clone();n.x-=r*(2*x+y);n.y-=v*(2*x+y);r*=x+y;v*=x+y;return function(){c.ellipse(S.x-r-x,S.y-v-x,2*x,2*x);aa?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,this.strokewidth),null==c?c=t:c.add(t))}this.bounds=null!=c?c:new mxRectangle};a.prototype.paintVertexShape=function(c,l,t,n,r){this.paintTableLine(c,this.line,0,0)};a.prototype.paintTableLine=function(c,l,t,n){if(null!=l){var r=null;c.begin();for(var v=0;v<l.length;v++){var x=l[v];null!=x&&(null==r?c.moveTo(x.x+t,x.y+n):null!=r&&c.lineTo(x.x+t,x.y+n));r=x}c.end();c.stroke()}};a.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var t=null,n=0;n<this.line.length&&!l;n++){var r=this.line[n];null!=r&&null!=t&&(l=mxUtils.rectangleIntersectsSegment(c,t,r));t=r}return l};mxCellRenderer.registerShape("tableLine",a);mxUtils.extend(b,mxSwimlane);b.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};b.prototype.paintVertexShape=function(c,l,t,n,r){var v=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):-!1,x=this.isHorizontal(),I=this.getTitleSize();0==I||this.outline?va.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));v||this.outline||!(x&&I<r||!x&&I<n)||this.paintForeground(c,l,t,n,r)};b.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.state){var v=this.flipH,x=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var I=v;v=x;x=I}c.rotate(-this.getShapeRotation(),+!1,x=this.isHorizontal(),J=this.getTitleSize();0==J||this.outline?va.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));v||this.outline||!(x&&J<r||!x&&J<n)||this.paintForeground(c,l,t,n,r)};b.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.state){var v=this.flipH,x=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var J=v;v=x;x=J}c.rotate(-this.getShapeRotation(),v,x,l+n/2,t+r/2);s=this.scale;l=this.bounds.x/s;t=this.bounds.y/s;n=this.bounds.width/s;r=this.bounds.height/s;this.paintTableForeground(c,l,t,n,r)}};b.prototype.paintTableForeground=function(c,l,t,n,r){n=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(r=0;r<n.length;r++)a.prototype.paintTableLine(c,n[r],l,t)};b.prototype.configurePointerEvents=function(c){0==this.getTitleSize()?c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",b);mxUtils.extend(e,b);e.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",e);mxUtils.extend(f,mxCylinder);f.prototype.size=20;f.prototype.darkOpacity=0;f.prototype.darkOpacity2=0;f.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,-parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(v,r);c.lineTo(0,r-v);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-v,0),c.lineTo(n,v),c.lineTo(v,-v),c.close(),c.fill()),0!=I&&(c.setFillAlpha(Math.abs(I)),c.setFillColor(0>I?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(v,v),c.lineTo(v,r),c.lineTo(0,r-v),c.close(),c.fill()),c.begin(),c.moveTo(v,r),c.lineTo(v,v),c.lineTo(0,0),c.moveTo(v,v),c.lineTo(n,v),c.end(),c.stroke())};f.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",+parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),J=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(v,r);c.lineTo(0,r-v);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-v,0),c.lineTo(n,v),c.lineTo(v,+v),c.close(),c.fill()),0!=J&&(c.setFillAlpha(Math.abs(J)),c.setFillColor(0>J?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(v,v),c.lineTo(v,r),c.lineTo(0,r-v),c.close(),c.fill()),c.begin(),c.moveTo(v,r),c.lineTo(v,v),c.lineTo(0,0),c.moveTo(v,v),c.lineTo(n,v),c.end(),c.stroke())};f.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",f);var Qa=Math.tan(mxUtils.toRadians(30)),Ka=(.5-Qa)/2;mxCellRenderer.registerShape("isoRectangle",g);mxUtils.extend(h,mxConnector);h.prototype.paintEdgeShape=function(c,l){var t=this.createMarker(c,l,!0),n=this.createMarker(c,l,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=t&&t();null!=n&&n()};mxCellRenderer.registerShape("wire",h);mxUtils.extend(d,mxCylinder);d.prototype.size=6;d.prototype.paintVertexShape=function(c,l,t,n,r){c.setFillColor(this.stroke);var v=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(n-v),t+.5*(r-v),v,v);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};mxCellRenderer.registerShape("waypoint",d);mxUtils.extend(g,mxActor);g.prototype.size=20;g.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/Qa);c.translate((n-l)/2,(r-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*Ka);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-Ka)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",g);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(n,r/(.5+Qa));v?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-Ka)*l),c.lineTo(l,.25*l),c.moveTo(.5*@@ -3328,14 +3329,14 @@ c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.bew);mxUtils.extend(z,mxShape);z.prototype.size=15;z.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),c.moveTo(0,v),c.arcTo(.5*n,v,0,0,1,.5*n,0),c.arcTo(.5*n,v,0,0,1,n,v),c.lineTo(n,r-v),c.arcTo(.5*n,v,0,0,1,.5*n,r),c.arcTo(.5*n,v,0,0,1,0,r-v),c.close(),c.fillAndStroke(),c.setShadow(!1),c.begin(),c.moveTo(n,v),c.arcTo(.5*n,v,0,0,1,.5*n,2*v),c.arcTo(.5*n,v,0,0,1,0,v),c.stroke())};mxCellRenderer.registerShape("cylinder2",z);mxUtils.extend(C,mxCylinder);C.prototype.size=15;C.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"lid",!0);c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),x?(c.moveTo(0,v),c.arcTo(.5*n,v,0,0,1,.5*n,0),c.arcTo(.5*n,v,0,0,1,n,v)):(c.moveTo(0,0),c.arcTo(.5*n,v,0,0,0,.5*n,v),c.arcTo(.5*n,v,0,0,0,n,0)),c.lineTo(n,r-v),c.arcTo(.5*n,v,0,0,1,.5*n,r),c.arcTo(.5*n,v,0,0,1,0,r-v),c.close(),c.fillAndStroke(),c.setShadow(!1),x&&(c.begin(),c.moveTo(n,v),c.arcTo(.5*n,v,0,0,1,.5*n,2*v),c.arcTo(.5*n,v,0,0,1,0,v),c.stroke()))};mxCellRenderer.registerShape("cylinder3",C);mxUtils.extend(E,mxActor);E.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n/2,.5*r,n,0);c.quadTo(.5*n,r/2,n,r);c.quadTo(n/2,.5*r,0,r);c.quadTo(.5*n,r/2,0,0);c.end()};mxCellRenderer.registerShape("switch",E);mxUtils.extend(D,-mxCylinder);D.prototype.tabWidth=60;D.prototype.tabHeight=20;D.prototype.tabPosition="right";D.prototype.arcSize=.1;D.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var v=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),x=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,-"absoluteArcSize",!1),y=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));I||(y*=Math.min(n,r));y=Math.min(y,.5*n,.5*(r-t));l=Math.max(l,y);l=Math.min(n-y,l);x||(y=0);c.begin();"left"==v?(c.moveTo(Math.max(y,0),t),c.lineTo(Math.max(y,0),0),c.lineTo(l,0),c.lineTo(l,t)):(c.moveTo(n-l,t),c.lineTo(n-l,0),c.lineTo(n-Math.max(y,0),0),c.lineTo(n-Math.max(y,0),t));x?(c.moveTo(0,y+t),c.arcTo(y,y,0,0,1,y,t),c.lineTo(n-y,t),c.arcTo(y,y,0,0,1,n,y+t),c.lineTo(n,r-y),c.arcTo(y,y,0,0,1,n-y,r),c.lineTo(y,+mxCylinder);D.prototype.tabWidth=60;D.prototype.tabHeight=20;D.prototype.tabPosition="right";D.prototype.arcSize=.1;D.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var v=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),x=mxUtils.getValue(this.style,"rounded",!1),J=mxUtils.getValue(this.style,+"absoluteArcSize",!1),y=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));J||(y*=Math.min(n,r));y=Math.min(y,.5*n,.5*(r-t));l=Math.max(l,y);l=Math.min(n-y,l);x||(y=0);c.begin();"left"==v?(c.moveTo(Math.max(y,0),t),c.lineTo(Math.max(y,0),0),c.lineTo(l,0),c.lineTo(l,t)):(c.moveTo(n-l,t),c.lineTo(n-l,0),c.lineTo(n-Math.max(y,0),0),c.lineTo(n-Math.max(y,0),t));x?(c.moveTo(0,y+t),c.arcTo(y,y,0,0,1,y,t),c.lineTo(n-y,t),c.arcTo(y,y,0,0,1,n,y+t),c.lineTo(n,r-y),c.arcTo(y,y,0,0,1,n-y,r),c.lineTo(y,r),c.arcTo(y,y,0,0,1,0,r-y)):(c.moveTo(0,t),c.lineTo(n,t),c.lineTo(n,r),c.lineTo(0,r));c.close();c.fillAndStroke();c.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(c.begin(),c.moveTo(n-30,t+20),c.lineTo(n-20,t+10),c.lineTo(n-10,t+20),c.close(),c.stroke())};mxCellRenderer.registerShape("folder",D);D.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),v=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));r||(v*=Math.min(c.width,c.height));v=Math.min(v,.5*c.width,.5*(c.height-l));n||(v=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(v,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,v,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};mxUtils.extend(G,mxCylinder);G.prototype.arcSize=.1;G.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);var v=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));t=mxUtils.getValue(this.style,"umlStateConnection",null);x||(l*=Math.min(n,r));l=Math.min(l,.5*n,.5*r);v||(l=0);v=0;null!=t&&(v=10);c.begin();c.moveTo(v,l);c.arcTo(l,l,0,0,1,v+l,0);c.lineTo(n-l,0);c.arcTo(l,l,0,0,1,n,l);c.lineTo(n,r-l);c.arcTo(l,l,0,0,1,n-l,r);c.lineTo(v+l,r);c.arcTo(l,l,0,0,1,v,r-l);c.close();c.fillAndStroke();c.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(c.roundrect(n-40,r-20,10,10,3,3),c.stroke(),c.roundrect(n-20,r-20,10,10,3,3),c.stroke(),c.begin(),c.moveTo(n-30,r-15),c.lineTo(n-20,r-15),-c.stroke());"connPointRefEntry"==t?(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke()):"connPointRefExit"==t&&(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke(),c.begin(),c.moveTo(5,.5*r-5),c.lineTo(15,.5*r+5),c.moveTo(15,.5*r-5),c.lineTo(5,.5*r+5),c.stroke())};G.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",G);mxUtils.extend(J,-mxActor);J.prototype.size=30;J.prototype.isRoundable=function(){return!0};J.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("card",J);mxUtils.extend(L,mxActor);L.prototype.size=+c.stroke());"connPointRefEntry"==t?(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke()):"connPointRefExit"==t&&(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke(),c.begin(),c.moveTo(5,.5*r-5),c.lineTo(15,.5*r+5),c.moveTo(15,.5*r-5),c.lineTo(5,.5*r+5),c.stroke())};G.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",G);mxUtils.extend(I,+mxActor);I.prototype.size=30;I.prototype.isRoundable=function(){return!0};I.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("card",I);mxUtils.extend(L,mxActor);L.prototype.size=.4;L.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,l/2);c.quadTo(n/4,1.4*l,n/2,l/2);c.quadTo(3*n/4,l*(1-1.4),n,l/2);c.lineTo(n,r-l/2);c.quadTo(3*n/4,r-1.4*l,n/2,r-l/2);c.quadTo(n/4,r-l*(1-1.4),0,r-l/2);c.lineTo(0,l/2);c.close();c.end()};L.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",this.size),t=c.width,n=c.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return l*=n,new mxRectangle(c.x,c.y+l,t,n-2*l);l*=t;return new mxRectangle(c.x+l,c.y,t-2*l,n)}return c};mxCellRenderer.registerShape("tape",L);mxUtils.extend(Q,mxActor);Q.prototype.size=.3;Q.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*c.height):null};Q.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,0);c.lineTo(n,0);c.lineTo(n,r-l/2);c.quadTo(3*n/4,r-1.4*l,n/2,r-l/2);c.quadTo(n/4,r-l*(1-1.4),0,r-l/2);c.lineTo(0,l/2);c.close();c.end()};mxCellRenderer.registerShape("document",Q);var Ua=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(c,l,t,n){var r=mxUtils.getValue(this.style,"size");return null!=r?n*Math.max(0,Math.min(1,r)):Ua.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=@@ -3348,7 +3349,7 @@ l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.minY.prototype.size=.5;Y.prototype.redrawPath=function(c,l,t,n,r){c.setFillColor(null);l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(n,0),new mxPoint(l,0),new mxPoint(l,r/2),new mxPoint(0,r/2),new mxPoint(l,r/2),new mxPoint(l,r),new mxPoint(n,r)],this.isRounded,t,!1);c.end()};mxCellRenderer.registerShape("curlyBracket",Y);mxUtils.extend(P,mxActor);P.prototype.redrawPath=function(c,l,t,n,r){c.setStrokeWidth(1);c.setFillColor(this.stroke);l=n/5;c.rect(0,0,l,r);c.fillAndStroke();c.rect(2*l,0,l,r);c.fillAndStroke();c.rect(4*l,0,l,r);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",P);T.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};T.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};T.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};T.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};T.prototype.arcTo=function(c,l,t,n,r,v,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=x};T.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var t=function(S){return"number"===-typeof S?S?0>S?-1:1:S===S?0:NaN:NaN},n=Math.abs(c-this.lastX),r=Math.abs(l-this.lastY),v=Math.sqrt(n*n+r*r);if(2>v){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var x=Math.round(v/10),I=this.defaultVariation;5>x&&(x=5,I/=3);var y=t(c-this.lastX)*n/x;t=t(l-this.lastY)*r/x;n/=v;r/=v;for(v=0;v<x;v++){var aa=(Math.random()-.5)*I;this.originalLineTo.call(this.canvas,y*v+this.lastX-aa*r,t*v+this.lastY-aa*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,+typeof S?S?0>S?-1:1:S===S?0:NaN:NaN},n=Math.abs(c-this.lastX),r=Math.abs(l-this.lastY),v=Math.sqrt(n*n+r*r);if(2>v){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var x=Math.round(v/10),J=this.defaultVariation;5>x&&(x=5,J/=3);var y=t(c-this.lastX)*n/x;t=t(l-this.lastY)*r/x;n/=v;r/=v;for(v=0;v<x;v++){var aa=(Math.random()-.5)*J;this.originalLineTo.call(this.canvas,y*v+this.lastX-aa*r,t*v+this.lastY-aa*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l};T.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var Wa=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){Wa.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var mb=mxShape.prototype.afterPaint;mxShape.prototype.afterPaint=function(c){mb.apply(this,arguments);null!=c.handJiggle&&(c.handJiggle.destroy(),delete c.handJiggle)};mxShape.prototype.createComicCanvas=function(c){return new T(c,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(c){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(c)};var ub=mxRectangleShape.prototype.isHtmlAllowed;mxRectangleShape.prototype.isHtmlAllowed=function(){return!this.outline&&(null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")&&"0"==mxUtils.getValue(this.style,"sketch","1"==urlParams.rough?"1":"0"))&&ub.apply(this,arguments)};var vb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(c,l,t,n,r){if(null==c.handJiggle||c.handJiggle.constructor!=T)vb.apply(this,arguments);else{var v=!0;null!=this.style&&(v="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(v||null!=@@ -3358,14 +3359,14 @@ v,t),c.lineTo(l+n-v,t),c.quadTo(l+n,t,l+n,t+v),c.lineTo(l+n,t+r-v),c.quadTo(l+n,function(c,l,t,n,r){var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),x=parseFloat(mxUtils.getValue(this.style,"size",this.size));x=v?Math.max(0,Math.min(n,x)):n*Math.max(0,Math.min(1,x));this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,x=Math.max(x,Math.min(n*v,r*v)));x=Math.round(x);c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.moveTo(l+n-x,t);c.lineTo(l+n-x,t+r);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",K);mxCellRenderer.registerShape("process2",K);mxUtils.extend(V,mxRectangleShape);V.prototype.paintBackground=function(c,l,t,n,r){c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};V.prototype.paintForeground=function(c,l,t,n,r){};mxCellRenderer.registerShape("transparent",V);mxUtils.extend(Z,mxHexagon);Z.prototype.size=30;Z.prototype.position=.5;Z.prototype.position2=.5;Z.prototype.base=20;Z.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};Z.prototype.isRoundable=function(){return!0};Z.prototype.redrawPath=function(c,l,t,n,r){l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var v=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),x=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",-this.position2)))),I=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-t),new mxPoint(Math.min(n,v+I),r-t),new mxPoint(x,r),new mxPoint(Math.max(0,v),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",Z);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(c,l,t,+this.position2)))),J=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-t),new mxPoint(Math.min(n,v+J),r-t),new mxPoint(x,r),new mxPoint(Math.max(0,v),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",Z);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(0,r),new mxPoint(l,r/2)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("step",ia);mxUtils.extend(oa,mxHexagon);oa.prototype.size=.25;oa.prototype.fixedSize=20;oa.prototype.isRoundable=function(){return!0};oa.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.5*r),new mxPoint(n-l,r),new mxPoint(l,r),new mxPoint(0,.5*r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("hexagon",oa);mxUtils.extend(sa,mxRectangleShape);sa.prototype.isHtmlAllowed=function(){return!1};sa.prototype.paintForeground=function(c,l,t,n,r){var v=Math.min(n/5,r/5)+1;c.begin();c.moveTo(l+n/2,t+v);c.lineTo(l+n/2,t+r-v);c.moveTo(l+v,t+r/2);c.lineTo(l+n-v,t+r/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",sa);var jb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};mxRhombus.prototype.paintVertexShape=function(c,l,t,n,r){jb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var v=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&(c.setShadow(!1),jb.apply(this,[c,l,t,n,r]))}};mxUtils.extend(O,mxRectangleShape);O.prototype.isHtmlAllowed=function(){return!1};O.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};O.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var v=-Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);v=0;do{var x=mxCellRenderer.defaultShapes[this.style["symbol"+v]];if(null!=x){var I=this.style["symbol"+v+"Align"],y=this.style["symbol"+v+"VerticalAlign"],aa=this.style["symbol"+v+"Width"],S=this.style["symbol"+v+"Height"],Fa=this.style["symbol"+v+"Spacing"]||0,Ra=this.style["symbol"+v+"VSpacing"]||Fa,-Oa=this.style["symbol"+v+"ArcSpacing"];null!=Oa&&(Oa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Fa+=Oa,Ra+=Oa);Oa=l;var ka=t;Oa=I==mxConstants.ALIGN_CENTER?Oa+(n-aa)/2:I==mxConstants.ALIGN_RIGHT?Oa+(n-aa-Fa):Oa+Fa;ka=y==mxConstants.ALIGN_MIDDLE?ka+(r-S)/2:y==mxConstants.ALIGN_BOTTOM?ka+(r-S-Ra):ka+Ra;c.save();I=new x;I.style=this.style;x.prototype.paintVertexShape.call(I,c,Oa,ka,aa,S);c.restore()}v++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",+Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);v=0;do{var x=mxCellRenderer.defaultShapes[this.style["symbol"+v]];if(null!=x){var J=this.style["symbol"+v+"Align"],y=this.style["symbol"+v+"VerticalAlign"],aa=this.style["symbol"+v+"Width"],S=this.style["symbol"+v+"Height"],Fa=this.style["symbol"+v+"Spacing"]||0,Ra=this.style["symbol"+v+"VSpacing"]||Fa,+Oa=this.style["symbol"+v+"ArcSpacing"];null!=Oa&&(Oa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Fa+=Oa,Ra+=Oa);Oa=l;var ka=t;Oa=J==mxConstants.ALIGN_CENTER?Oa+(n-aa)/2:J==mxConstants.ALIGN_RIGHT?Oa+(n-aa-Fa):Oa+Fa;ka=y==mxConstants.ALIGN_MIDDLE?ka+(r-S)/2:y==mxConstants.ALIGN_BOTTOM?ka+(r-S-Ra):ka+Ra;c.save();J=new x;J.style=this.style;x.prototype.paintVertexShape.call(J,c,Oa,ka,aa,S);c.restore()}v++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",O);mxUtils.extend(X,mxCylinder);X.prototype.redrawPath=function(c,l,t,n,r,v){v?(c.moveTo(0,0),c.lineTo(n/2,r/2),c.lineTo(n,0),c.end()):(c.moveTo(0,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(0,r),c.close())};mxCellRenderer.registerShape("message",X);mxUtils.extend(ba,mxShape);ba.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.ellipse(n/4,0,n/2,r/4);c.fillAndStroke();c.begin();c.moveTo(n/2,r/4);c.lineTo(n/2,2*r/3);c.moveTo(n/2,r/3);c.lineTo(0,r/3);c.moveTo(n/2,r/3);c.lineTo(n,r/3);c.moveTo(n/2,2*r/3);c.lineTo(0,r);c.moveTo(n/2,2*r/3);c.lineTo(n,r);c.end();c.stroke()};mxCellRenderer.registerShape("umlActor",ba);mxUtils.extend(da,mxShape);da.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};da.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,r/4);c.lineTo(0,3*r/4);c.end();c.stroke();c.begin();c.moveTo(0,r/2);c.lineTo(n/6,r/2);c.end();c.stroke();c.ellipse(n/6,0,5*n/6,r);c.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",da);mxUtils.extend(ca,mxEllipse);ca.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/8,t+r);c.lineTo(l+7*n/8,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("umlEntity",ca);mxUtils.extend(H,mxShape);H.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(n,0);c.lineTo(0,r);c.moveTo(0,0);c.lineTo(n,r);c.end();c.stroke()};mxCellRenderer.registerShape("umlDestroy",H);mxUtils.extend(ea,mxShape);@@ -3373,28 +3374,28 @@ ea.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/40;ra.prototype.isHtmlAllowed=function(){return!1};ra.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};ra.prototype.paintBackground=function(c,l,t,n,r){var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"participant");null==x||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l,t,n,v):(x=this.state.view.graph.cellRenderer.getShape(x),null!=x&&x!=ra&&(x=new x,x.apply(this.state),c.save(),x.paintVertexShape(c,l,t,n,v),c.restore()));v<r&&(c.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),c.begin(),c.moveTo(l+n/2,t+v),c.lineTo(l+n/2,t+r),c.end(),c.stroke())};ra.prototype.paintForeground=function(c,l,t,n,r){var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,c,l,t,n,Math.min(r,v))};mxCellRenderer.registerShape("umlLifeline",ra);mxUtils.extend(qa,mxShape);qa.prototype.width=60;qa.prototype.height=30;qa.prototype.corner=10;qa.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};qa.prototype.getLabelMargins=-function(c){return new mxRectangle(0,0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};qa.prototype.paintBackground=function(c,l,t,n,r){var v=this.corner,x=Math.min(n,Math.max(v,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),I=Math.min(r,Math.max(1.5*v,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),y=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,-mxConstants.NONE);y!=mxConstants.NONE&&(c.setFillColor(y),c.rect(l,t,n,r),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,t,n,r),c.setGradient(this.fill,this.gradient,l,t,n,r,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;c.begin();c.moveTo(l,t);c.lineTo(l+x,t);c.lineTo(l+x,t+Math.max(0,I-1.5*v));c.lineTo(l+Math.max(0,x-v),t+I);c.lineTo(l,t+I);c.close();c.fillAndStroke();this.configurePointerEvents(c);-c.begin();c.moveTo(l+x,t);c.lineTo(l+n,t);c.lineTo(l+n,t+r);c.lineTo(l,t+r);c.lineTo(l,t+I);c.stroke()};mxCellRenderer.registerShape("umlFrame",qa);mxPerimeter.CenterPerimeter=function(c,l,t,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,l,t,n){n=ra.prototype.size;null!=l&&(n=mxUtils.getValue(l.style,"size",n)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*+function(c){return new mxRectangle(0,0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};qa.prototype.paintBackground=function(c,l,t,n,r){var v=this.corner,x=Math.min(n,Math.max(v,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),J=Math.min(r,Math.max(1.5*v,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),y=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,+mxConstants.NONE);y!=mxConstants.NONE&&(c.setFillColor(y),c.rect(l,t,n,r),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,t,n,r),c.setGradient(this.fill,this.gradient,l,t,n,r,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;c.begin();c.moveTo(l,t);c.lineTo(l+x,t);c.lineTo(l+x,t+Math.max(0,J-1.5*v));c.lineTo(l+Math.max(0,x-v),t+J);c.lineTo(l,t+J);c.close();c.fillAndStroke();this.configurePointerEvents(c);+c.begin();c.moveTo(l+x,t);c.lineTo(l+n,t);c.lineTo(l+n,t+r);c.lineTo(l,t+r);c.lineTo(l,t+J);c.stroke()};mxCellRenderer.registerShape("umlFrame",qa);mxPerimeter.CenterPerimeter=function(c,l,t,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,l,t,n){n=ra.prototype.size;null!=l&&(n=mxUtils.getValue(l.style,"size",n)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;t.x<c.getCenterX()&&(l=-1*(l+1));return new mxPoint(c.getCenterX()+l,Math.min(c.y+c.height,Math.max(c.y+n,t.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(c,l,t,n){n=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(c,l,t,n){n=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;null!=l.style.backboneSize&&(n+=parseFloat(l.style.backboneSize)*l.view.scale/2-1);if("south"==l.style[mxConstants.STYLE_DIRECTION]||"north"==l.style[mxConstants.STYLE_DIRECTION])return t.x<c.getCenterX()&&(n=-1*(n+1)),new mxPoint(c.getCenterX()+n,Math.min(c.y+c.height,Math.max(c.y,t.y)));t.y<c.getCenterY()&&(n=-1*(n+1));return new mxPoint(Math.min(c.x+c.width,Math.max(c.x,t.x)),c.getCenterY()+n)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(c,l,t,n){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(c,new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(l.style,"size",Z.prototype.size))*l.view.scale))),l.style),l,t,n)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?N.prototype.fixedSize:N.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));-r&&(v*=l.view.scale);var x=c.x,I=c.y,y=c.width,aa=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+y,I+r),new mxPoint(x+y,I+aa),new mxPoint(x,I+aa-r),new mxPoint(x,I)]):(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+-y,I),new mxPoint(x+y-r,I+aa),new mxPoint(x,I+aa),new mxPoint(x+r,I)]);aa=c.getCenterX();c=c.getCenterY();c=new mxPoint(aa,c);n&&(t.x<x||t.x>x+y?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?U.prototype.fixedSize:U.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);-var x=c.x,I=c.y,y=c.width,aa=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+y-r,I),new mxPoint(x+y,I+aa),new mxPoint(x,I+aa),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+y,I),new mxPoint(x+y-r,I+-aa),new mxPoint(x+r,I+aa),new mxPoint(x,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I+r),new mxPoint(x+y,I),new mxPoint(x+y,I+aa),new mxPoint(x,I+aa-r),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+y,I+r),new mxPoint(x+y,I+aa-r),new mxPoint(x,I+aa),new mxPoint(x,I)]);aa=c.getCenterX();c=c.getCenterY();c=new mxPoint(aa,c);n&&(t.x<x||t.x>x+y?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,-c,t)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?ia.prototype.fixedSize:ia.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,y=c.width,aa=c.height,S=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?-(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+y-r,I),new mxPoint(x+y,c),new mxPoint(x+y-r,I+aa),new mxPoint(x,I+aa),new mxPoint(x+r,c),new mxPoint(x,I)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+y,I),new mxPoint(x+y-r,c),new mxPoint(x+y,I+aa),new mxPoint(x+r,I+aa),new mxPoint(x,c),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,-Math.min(1,v)),I=[new mxPoint(x,I+r),new mxPoint(S,I),new mxPoint(x+y,I+r),new mxPoint(x+y,I+aa),new mxPoint(S,I+aa-r),new mxPoint(x,I+aa),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(S,I+r),new mxPoint(x+y,I),new mxPoint(x+y,I+aa-r),new mxPoint(S,I+aa),new mxPoint(x,I+aa-r),new mxPoint(x,I)]);S=new mxPoint(S,c);n&&(t.x<x||t.x>x+y?S.y=t.y:S.x=t.x);return mxUtils.getPerimeterPoint(I,S,t)};mxStyleRegistry.putValue("stepPerimeter",-mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?oa.prototype.fixedSize:oa.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,y=c.width,aa=c.height,S=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,-Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(S,I),new mxPoint(x+y,I+r),new mxPoint(x+y,I+aa-r),new mxPoint(S,I+aa),new mxPoint(x,I+aa-r),new mxPoint(x,I+r),new mxPoint(S,I)]):(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+y-r,I),new mxPoint(x+y,c),new mxPoint(x+y-r,I+aa),new mxPoint(x+r,I+aa),new mxPoint(x,c),new mxPoint(x+r,I)]);S=new mxPoint(S,c);n&&(t.x<x||t.x>x+y?S.y=t.y:S.x=t.x);return mxUtils.getPerimeterPoint(I,S,t)};mxStyleRegistry.putValue("hexagonPerimeter2",+r&&(v*=l.view.scale);var x=c.x,J=c.y,y=c.width,aa=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+aa),new mxPoint(x,J+aa-r),new mxPoint(x,J)]):(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x++y,J),new mxPoint(x+y-r,J+aa),new mxPoint(x,J+aa),new mxPoint(x+r,J)]);aa=c.getCenterX();c=c.getCenterY();c=new mxPoint(aa,c);n&&(t.x<x||t.x>x+y?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(J,c,t)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?U.prototype.fixedSize:U.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);+var x=c.x,J=c.y,y=c.width,aa=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+y-r,J),new mxPoint(x+y,J+aa),new mxPoint(x,J+aa),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J),new mxPoint(x+y-r,J++aa),new mxPoint(x+r,J+aa),new mxPoint(x,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(x+y,J),new mxPoint(x+y,J+aa),new mxPoint(x,J+aa-r),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+aa-r),new mxPoint(x,J+aa),new mxPoint(x,J)]);aa=c.getCenterX();c=c.getCenterY();c=new mxPoint(aa,c);n&&(t.x<x||t.x>x+y?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(J,+c,t)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?ia.prototype.fixedSize:ia.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=c.y,y=c.width,aa=c.height,S=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?+(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y-r,J),new mxPoint(x+y,c),new mxPoint(x+y-r,J+aa),new mxPoint(x,J+aa),new mxPoint(x+r,c),new mxPoint(x,J)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+y,J),new mxPoint(x+y-r,c),new mxPoint(x+y,J+aa),new mxPoint(x+r,J+aa),new mxPoint(x,c),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,+Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(S,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+aa),new mxPoint(S,J+aa-r),new mxPoint(x,J+aa),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(S,J+r),new mxPoint(x+y,J),new mxPoint(x+y,J+aa-r),new mxPoint(S,J+aa),new mxPoint(x,J+aa-r),new mxPoint(x,J)]);S=new mxPoint(S,c);n&&(t.x<x||t.x>x+y?S.y=t.y:S.x=t.x);return mxUtils.getPerimeterPoint(J,S,t)};mxStyleRegistry.putValue("stepPerimeter",+mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?oa.prototype.fixedSize:oa.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=c.y,y=c.width,aa=c.height,S=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,+Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(S,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+aa-r),new mxPoint(S,J+aa),new mxPoint(x,J+aa-r),new mxPoint(x,J+r),new mxPoint(S,J)]):(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+y-r,J),new mxPoint(x+y,c),new mxPoint(x+y-r,J+aa),new mxPoint(x+r,J+aa),new mxPoint(x,c),new mxPoint(x+r,J)]);S=new mxPoint(S,c);n&&(t.x<x||t.x>x+y?S.y=t.y:S.x=t.x);return mxUtils.getPerimeterPoint(J,S,t)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(Pa,mxShape);Pa.prototype.size=10;Pa.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size));c.translate(l,t);c.ellipse((n-v)/2,0,v,v);c.fillAndStroke();c.begin();c.moveTo(n/2,v);c.lineTo(n/2,r);c.end();c.stroke()};mxCellRenderer.registerShape("lollipop",Pa);mxUtils.extend(ma,mxShape);ma.prototype.size=10;ma.prototype.inset=2;ma.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size)),x=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.begin();c.moveTo(n/2,v+x);c.lineTo(n/2,r);c.end();c.stroke();c.begin();c.moveTo((n-v)/2-x,v/2);c.quadTo((n-v)/2-x,v+x,n/2,v+x);c.quadTo((n+v)/2+x,v+x,(n+v)/2+x,v/2);c.end();c.stroke()};mxCellRenderer.registerShape("requires",ma);mxUtils.extend(Ba,mxShape);Ba.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.end();c.stroke()};mxCellRenderer.registerShape("requiredInterface",Ba);mxUtils.extend(Ca,mxShape);Ca.prototype.inset=2;Ca.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.ellipse(0,v,n-2*v,r-2*v);c.fillAndStroke();c.begin();c.moveTo(n/2,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n/2,r);c.end();c.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",Ca);mxUtils.extend(Ja,mxCylinder);Ja.prototype.jettyWidth=-20;Ja.prototype.jettyHeight=10;Ja.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=Math.min(l,r-l),y=Math.min(I+2*l,r-l);v?(c.moveTo(t,I),c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,y),c.lineTo(x,y),c.lineTo(x,y+l),c.lineTo(t,y+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,y+l),c.lineTo(0,y+l),c.lineTo(0,-y),c.lineTo(t,y),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("module",Ja);mxUtils.extend(Ia,mxCylinder);Ia.prototype.jettyWidth=32;Ia.prototype.jettyHeight=12;Ia.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=.3*r-l/2,y=.7*r-l/2;v?(c.moveTo(t,I),c.lineTo(x,I),c.lineTo(x,-I+l),c.lineTo(t,I+l),c.moveTo(t,y),c.lineTo(x,y),c.lineTo(x,y+l),c.lineTo(t,y+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,y+l),c.lineTo(0,y+l),c.lineTo(0,y),c.lineTo(t,y),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("component",Ia);mxUtils.extend(Da,mxRectangleShape);Da.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,x=r/2,I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/-2;c.begin();this.addPoints(c,[new mxPoint(l+v,t),new mxPoint(l+n,t+x),new mxPoint(l+v,t+r),new mxPoint(l,t+x)],this.isRounded,I,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Da);mxUtils.extend(Ga,mxDoubleEllipse);Ga.prototype.outerStroke=!0;Ga.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.min(4,Math.min(n/5,r/5));0<n&&0<r&&(c.ellipse(l+v,t+v,n-2*v,r-2*v),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&+20;Ja.prototype.jettyHeight=10;Ja.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var J=Math.min(l,r-l),y=Math.min(J+2*l,r-l);v?(c.moveTo(t,J),c.lineTo(x,J),c.lineTo(x,J+l),c.lineTo(t,J+l),c.moveTo(t,y),c.lineTo(x,y),c.lineTo(x,y+l),c.lineTo(t,y+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,y+l),c.lineTo(0,y+l),c.lineTo(0,+y),c.lineTo(t,y),c.lineTo(t,J+l),c.lineTo(0,J+l),c.lineTo(0,J),c.lineTo(t,J),c.close());c.end()};mxCellRenderer.registerShape("module",Ja);mxUtils.extend(Ia,mxCylinder);Ia.prototype.jettyWidth=32;Ia.prototype.jettyHeight=12;Ia.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var J=.3*r-l/2,y=.7*r-l/2;v?(c.moveTo(t,J),c.lineTo(x,J),c.lineTo(x,+J+l),c.lineTo(t,J+l),c.moveTo(t,y),c.lineTo(x,y),c.lineTo(x,y+l),c.lineTo(t,y+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,y+l),c.lineTo(0,y+l),c.lineTo(0,y),c.lineTo(t,y),c.lineTo(t,J+l),c.lineTo(0,J+l),c.lineTo(0,J),c.lineTo(t,J),c.close());c.end()};mxCellRenderer.registerShape("component",Ia);mxUtils.extend(Da,mxRectangleShape);Da.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,x=r/2,J=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/+2;c.begin();this.addPoints(c,[new mxPoint(l+v,t),new mxPoint(l+n,t+x),new mxPoint(l+v,t+r),new mxPoint(l,t+x)],this.isRounded,J,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Da);mxUtils.extend(Ga,mxDoubleEllipse);Ga.prototype.outerStroke=!0;Ga.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.min(4,Math.min(n/5,r/5));0<n&&0<r&&(c.ellipse(l+v,t+v,n-2*v,r-2*v),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&(c.ellipse(l,t,n,r),c.stroke())};mxCellRenderer.registerShape("endState",Ga);mxUtils.extend(ta,Ga);ta.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",ta);mxUtils.extend(La,mxArrowConnector);La.prototype.defaultWidth=4;La.prototype.isOpenEnded=function(){return!0};La.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};La.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",La);mxUtils.extend(Xa,mxArrowConnector);Xa.prototype.defaultWidth=10;Xa.prototype.defaultArrowWidth=20;Xa.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Xa.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Xa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",Xa);mxUtils.extend(Ya,mxActor);Ya.prototype.size=30;Ya.prototype.isRoundable=function(){return!0};Ya.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r),new mxPoint(0,l),new mxPoint(n,0),new mxPoint(n,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("manualInput",@@ -3411,10 +3412,10 @@ l,t,n,r){l=Math.min(n/2,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size"l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-l),new mxPoint(n/2,r),new mxPoint(0,r-l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",F);mxUtils.extend(M,mxEllipse);M.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/2,t+r);c.lineTo(l+n,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("tapeData",M);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);c.end();c.stroke();c.begin();c.moveTo(l+n/2,t);c.lineTo(l+n/2,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("orEllipse",R);mxUtils.extend(W,mxEllipse);W.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l+.145*n,t+.145*r);c.lineTo(l+.855*n,t+.855*r);c.end();c.stroke();c.begin();c.moveTo(l+.855*n,t+.145*r);c.lineTo(l+.145*n,t+.855*r);c.end();c.stroke()};mxCellRenderer.registerShape("sumEllipse",W);mxUtils.extend(ha,mxRhombus);ha.prototype.paintVertexShape=function(c,l,t,n,r){mxRhombus.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);-c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",ha);mxUtils.extend(fa,mxEllipse);fa.prototype.paintVertexShape=function(c,l,t,n,r){c.begin();c.moveTo(l,t);c.lineTo(l+n,t);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke();c.begin();c.moveTo(l,t+r);c.lineTo(l+n,t+r);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",fa);mxUtils.extend(ja,mxEllipse);ja.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,x=10+2*v,I=t+r-x/2;c.begin();-c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,I);c.lineTo(l+v+x,I-x/2);c.moveTo(l+v,I);c.lineTo(l+v+x,I+x/2);c.moveTo(l+v,I);c.lineTo(l+n-v,I);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-v,I);c.lineTo(l+n-x-v,I-x/2);c.moveTo(l+n-v,I);c.lineTo(l+n-x-v,I+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ja);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=function(c,l,t,n,r){this.outline||c.setStrokeColor(null);if(null!=this.style){var v=c.pointerEvents,-x=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||x||(c.pointerEvents=!1);var I="1"==mxUtils.getValue(this.style,"top","1"),y="1"==mxUtils.getValue(this.style,"left","1"),aa="1"==mxUtils.getValue(this.style,"right","1"),S="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||I||aa||S||y?(c.rect(l,t,n,r),c.fill(),c.pointerEvents=v,c.setStrokeColor(this.stroke),c.setLineCap("square"),c.begin(),c.moveTo(l,-t),this.outline||I?c.lineTo(l+n,t):c.moveTo(l+n,t),this.outline||aa?c.lineTo(l+n,t+r):c.moveTo(l+n,t+r),this.outline||S?c.lineTo(l,t+r):c.moveTo(l,t+r),(this.outline||y)&&c.lineTo(l,t),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",va);mxUtils.extend(Ma,mxEllipse);Ma.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==mxUtils.getValue(this.style,+c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",ha);mxUtils.extend(fa,mxEllipse);fa.prototype.paintVertexShape=function(c,l,t,n,r){c.begin();c.moveTo(l,t);c.lineTo(l+n,t);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke();c.begin();c.moveTo(l,t+r);c.lineTo(l+n,t+r);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",fa);mxUtils.extend(ja,mxEllipse);ja.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,x=10+2*v,J=t+r-x/2;c.begin();+c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,J);c.lineTo(l+v+x,J-x/2);c.moveTo(l+v,J);c.lineTo(l+v+x,J+x/2);c.moveTo(l+v,J);c.lineTo(l+n-v,J);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-v,J);c.lineTo(l+n-x-v,J-x/2);c.moveTo(l+n-v,J);c.lineTo(l+n-x-v,J+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ja);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=function(c,l,t,n,r){this.outline||c.setStrokeColor(null);if(null!=this.style){var v=c.pointerEvents,+x=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||x||(c.pointerEvents=!1);var J="1"==mxUtils.getValue(this.style,"top","1"),y="1"==mxUtils.getValue(this.style,"left","1"),aa="1"==mxUtils.getValue(this.style,"right","1"),S="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||J||aa||S||y?(c.rect(l,t,n,r),c.fill(),c.pointerEvents=v,c.setStrokeColor(this.stroke),c.setLineCap("square"),c.begin(),c.moveTo(l,+t),this.outline||J?c.lineTo(l+n,t):c.moveTo(l+n,t),this.outline||aa?c.lineTo(l+n,t+r):c.moveTo(l+n,t+r),this.outline||S?c.lineTo(l,t+r):c.moveTo(l,t+r),(this.outline||y)&&c.lineTo(l,t),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",va);mxUtils.extend(Ma,mxEllipse);Ma.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==mxUtils.getValue(this.style,"line")?(c.moveTo(l+n/2,t),c.lineTo(l+n/2,t+r)):(c.moveTo(l,t+r/2),c.lineTo(l+n,t+r/2));c.end();c.stroke()};mxCellRenderer.registerShape("lineEllipse",Ma);mxUtils.extend(Na,mxActor);Na.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/2);c.moveTo(0,0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(0,r);c.close();c.end()};mxCellRenderer.registerShape("delay",Na);mxUtils.extend(ya,mxActor);ya.prototype.size=.2;ya.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,n);var v=Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(r-v)/2;t=l+v;var x=(n-v)/2;v=x+v;c.moveTo(0,l);c.lineTo(x,l);c.lineTo(x,0);c.lineTo(v,0);c.lineTo(v,l);c.lineTo(n,l);c.lineTo(n,t);c.lineTo(v,t);c.lineTo(v,r);c.lineTo(x,r);c.lineTo(x,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("cross",ya);mxUtils.extend(Ha,mxActor);Ha.prototype.size=.25;Ha.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/2);t=Math.min(n-l,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*n);c.moveTo(0,r/2);c.lineTo(t,0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(t,r);c.close();c.end()};mxCellRenderer.registerShape("display",Ha);mxUtils.extend(wa,mxActor);wa.prototype.cst={RECT2:"mxgraph.basic.rect"};wa.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",@@ -3422,12 +3423,12 @@ dispName:"Fold"}]},{name:"size",dispName:"Corner Size",type:"float",defVal:10},{type:"color",defVal:"none"},{name:"gradientDirection2",dispName:"Inside Gradient Direction",type:"enum",defVal:"south",enumList:[{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"north",dispName:"North"},{val:"east",dispName:"East"}]},{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"right",dispName:"Right",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left ",type:"bool",defVal:!0},{name:"topLeftStyle",dispName:"Top Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"topRightStyle",dispName:"Top Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomRightStyle",dispName:"Bottom Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomLeftStyle",dispName:"Bottom Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},-{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];wa.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};wa.prototype.strictDrawShape=function(c,l,t,n,r,v){var x=v&&v.rectStyle?v.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),I=v&&v.absoluteCornerSize?v.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),y=v&&v.size?v.size:Math.max(0,Math.min(n,+{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];wa.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};wa.prototype.strictDrawShape=function(c,l,t,n,r,v){var x=v&&v.rectStyle?v.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),J=v&&v.absoluteCornerSize?v.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),y=v&&v.size?v.size:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),aa=v&&v.rectOutline?v.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),S=v&&v.indent?v.indent:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),Fa=v&&v.dashed?v.dashed:mxUtils.getValue(this.style,"dashed",!1),Ra=v&&v.dashPattern?v.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),Oa=v&&v.relIndent?v.relIndent:Math.max(0,Math.min(50,S)),ka=v&&v.top?v.top:mxUtils.getValue(this.style,"top",!0),pa=v&&v.right?v.right:mxUtils.getValue(this.style,"right",!0),na=v&&v.bottom?v.bottom:mxUtils.getValue(this.style,"bottom",!0),la=v&&v.left?v.left:mxUtils.getValue(this.style,"left",!0),xa=v&&v.topLeftStyle?v.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),za=v&&v.topRightStyle?v.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),Aa=v&&v.bottomRightStyle?v.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),Ea=v&&v.bottomLeftStyle?v.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),Bb=v&&v.fillColor?v.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");v&&v.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var Cb=v&&v.strokeWidth?v.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),zb=v&&v.fillColor2?v.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),Ab=v&&v.gradientColor2?v.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Db=v&&v.gradientDirection2?-v.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Eb=v&&v.opacity?v.opacity:mxUtils.getValue(this.style,"opacity","100"),Fb=Math.max(0,Math.min(50,y));v=wa.prototype;c.setDashed(Fa);Ra&&""!=Ra&&c.setDashPattern(Ra);c.setStrokeWidth(Cb);y=Math.min(.5*r,.5*n,y);I||(y=Fb*Math.min(n,r)/100);y=Math.min(y,.5*Math.min(n,r));I||(S=Math.min(Oa*Math.min(n,r)/100));S=Math.min(S,.5*Math.min(n,r)-y);(ka||pa||na||la)&&"frame"!=aa&&(c.begin(),ka?v.moveNW(c,l,t,n,r,x,xa,y,la):c.moveTo(0,-0),ka&&v.paintNW(c,l,t,n,r,x,xa,y,la),v.paintTop(c,l,t,n,r,x,za,y,pa),pa&&v.paintNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),na&&v.paintSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),la&&v.paintSW(c,l,t,n,r,x,Ea,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Fa=I=Eb,"none"==zb&&(I=0),"none"==Ab&&(Fa=0),c.setGradient(zb,Ab,0,0,n,r,Db,I,Fa),c.begin(),ka?v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la):c.moveTo(S,0),v.paintLeftInner(c,l,+v.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Eb=v&&v.opacity?v.opacity:mxUtils.getValue(this.style,"opacity","100"),Fb=Math.max(0,Math.min(50,y));v=wa.prototype;c.setDashed(Fa);Ra&&""!=Ra&&c.setDashPattern(Ra);c.setStrokeWidth(Cb);y=Math.min(.5*r,.5*n,y);J||(y=Fb*Math.min(n,r)/100);y=Math.min(y,.5*Math.min(n,r));J||(S=Math.min(Oa*Math.min(n,r)/100));S=Math.min(S,.5*Math.min(n,r)-y);(ka||pa||na||la)&&"frame"!=aa&&(c.begin(),ka?v.moveNW(c,l,t,n,r,x,xa,y,la):c.moveTo(0,+0),ka&&v.paintNW(c,l,t,n,r,x,xa,y,la),v.paintTop(c,l,t,n,r,x,za,y,pa),pa&&v.paintNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),na&&v.paintSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),la&&v.paintSW(c,l,t,n,r,x,Ea,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Fa=J=Eb,"none"==zb&&(J=0),"none"==Ab&&(Fa=0),c.setGradient(zb,Ab,0,0,n,r,Db,J,Fa),c.begin(),ka?v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la):c.moveTo(S,0),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la),la&&na&&v.paintSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na),na&&pa&&v.paintSEInner(c,l,t,n,r,x,Aa,y,S),v.paintRightInner(c,l,t,n,r,x,za,y,S,ka,pa),pa&&ka&&v.paintNEInner(c,l,t,n,r,x,za,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,la,ka),ka&&la&&v.paintNWInner(c,l,t,n,r,x,xa,y,S),c.fill(),"none"==Bb&&(c.begin(),v.paintFolds(c,l,t,n,r,x,xa,za,Aa,Ea,y,ka,pa,na,la),c.stroke()));ka||pa||na||!la?ka||pa||!na||la?!ka&&!pa&&na&&la?"frame"!=aa?(c.begin(),v.moveSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),v.paintSW(c,l,t,n,r,x,Ea,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==aa&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),v.paintSW(c,l,t,n,r,x,Ea,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na),c.close(),c.fillAndStroke()):ka||!pa||na||la?!ka&&pa&&!na&&la?"frame"!=aa?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==aa&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la)),c.stroke(),c.begin(),v.moveNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),"double"==aa&&(v.moveSEInner(c,l,t,n,r,x,Aa,y,S,na),v.paintRightInner(c,@@ -3451,51 +3452,51 @@ Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),v.paintSW(c,l,t,n,r,x,Ea,y,na),v.pai"frame"!=aa?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,la),v.paintTop(c,l,t,n,r,x,za,y,pa),"double"==aa&&(v.moveNEInner(c,l,t,n,r,x,za,y,S,pa),v.paintTopInner(c,l,t,n,r,x,xa,y,S,la,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,la),v.paintTop(c,l,t,n,r,x,za,y,pa),v.lineNEInner(c,l,t,n,r,x,za,y,S,pa),v.paintTopInner(c,l,t,n,r,x,xa,y,S,la,ka),c.close(),c.fillAndStroke()):"frame"!=aa?(c.begin(),v.moveNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),"double"==aa&&(v.moveSEInner(c,l,t,n,r,x,Aa,y,S,na),v.paintRightInner(c,l,t,n,r,x,za,y,S,ka,pa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),v.lineSEInner(c,l,t,n,r,x,Aa,y,S,na),v.paintRightInner(c,l,t,n,r,x,za,y,S,ka,pa),c.close(),c.fillAndStroke()):"frame"!=aa?(c.begin(),v.moveSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),"double"==aa&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,la),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,la),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na),c.close(),c.fillAndStroke()):"frame"!=aa?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==aa&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la),c.close(),c.fillAndStroke());-c.begin();v.paintFolds(c,l,t,n,r,x,xa,za,Aa,Ea,y,ka,pa,na,la);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(0,0):c.moveTo(0,I)};wa.prototype.moveNE=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(n,0):c.moveTo(n-I,0)};wa.prototype.moveSE=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(n,r):c.moveTo(n,r-I)};wa.prototype.moveSW=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==-x&&"square"==v||!y?c.moveTo(0,r):c.moveTo(I,r)};wa.prototype.paintNW=function(c,l,t,n,r,v,x,I,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,I,0)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(I,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(n,0):c.lineTo(n-I,0)};-wa.prototype.paintNE=function(c,l,t,n,r,v,x,I,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,n,I)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n,I);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(n,r):c.lineTo(n,r-I)};wa.prototype.paintLeft=function(c,l,t,n,r,v,x,-I,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(0,0):c.lineTo(0,I)};wa.prototype.paintSE=function(c,l,t,n,r,v,x,I,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,n-I,r)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-I,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==-v||!y?c.lineTo(0,r):c.lineTo(I,r)};wa.prototype.paintSW=function(c,l,t,n,r,v,x,I,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,0,r-I)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(0,r-I);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,v,x,I,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*y,I-.5*y,0,0,0,y,.5*y+-I);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+y,I+y,0,0,1,y,y+I);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(y,.5*y+I);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(y+I,y+I),c.lineTo(y,y+I)};wa.prototype.paintTopInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(0,y):aa&&!S?c.lineTo(y,0):aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(I+.5*y,y):c.lineTo(I+y,y):c.lineTo(0,-y):c.lineTo(0,0)};wa.prototype.paintNEInner=function(c,l,t,n,r,v,x,I,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*y,I-.5*y,0,0,0,n-I-.5*y,y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+y,I+y,0,0,1,n-I-y,y);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-I-.5*y,y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-I-y,I+y),c.lineTo(n-I-y,y)};wa.prototype.paintRightInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(n-y,0):aa&&!S?c.lineTo(n,y):aa?"square"==-x||"default"==x&&"square"==v?c.lineTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,I+.5*y):c.lineTo(n-y,I+y):c.lineTo(n-y,0):c.lineTo(n,0)};wa.prototype.paintLeftInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(y,r):aa&&!S?c.lineTo(0,r-y):aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,r-I-.5*y):c.lineTo(y,r-I-y):c.lineTo(y,r):c.lineTo(0,-r)};wa.prototype.paintSEInner=function(c,l,t,n,r,v,x,I,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*y,I-.5*y,0,0,0,n-y,r-I-.5*y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+y,I+y,0,0,1,n-y,r-I-y);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-y,r-I-.5*y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-I-y,r-I-y),c.lineTo(n-y,r-I-y)};wa.prototype.paintBottomInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(n,r-y):aa&&!S?c.lineTo(n-y,r):"square"==-x||"default"==x&&"square"==v||!aa?c.lineTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-I-.5*y,r-y):c.lineTo(n-I-y,r-y):c.lineTo(n,r)};wa.prototype.paintSWInner=function(c,l,t,n,r,v,x,I,y,aa){if(!aa)c.lineTo(y,r);else if("square"==x||"default"==x&&"square"==v)c.lineTo(y,r-y);else if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*y,I-.5*y,0,0,0,I+.5*y,r-y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+y,I+y,0,0,1,I+y,r-y);else if("snip"==-x||"default"==x&&"snip"==v)c.lineTo(I+.5*y,r-y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(y+I,r-I-y),c.lineTo(y+I,r-y)};wa.prototype.moveSWInner=function(c,l,t,n,r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.moveTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(y,r-I-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(y,r-I-y):c.moveTo(0,r-y)};wa.prototype.lineSWInner=function(c,l,t,n,-r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,r-I-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(y,r-I-y):c.lineTo(0,r-y)};wa.prototype.moveSEInner=function(c,l,t,n,r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.moveTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-y,r-I-.5*y):-("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-y,r-I-y):c.moveTo(n-y,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.lineTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,r-I-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-y,r-I-y):c.lineTo(n-y,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,v,x,-I,y,aa){aa?"square"==x||"default"==x&&"square"==v||aa?c.moveTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-y,I+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-y,I+y):c.moveTo(n,y)};wa.prototype.lineNEInner=function(c,l,t,n,r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v||aa?c.lineTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,I+.5*y):("invRound"==-x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-y,I+y):c.lineTo(n,y)};wa.prototype.moveNWInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.moveTo(y,0):aa&&!S?c.moveTo(0,y):"square"==x||"default"==x&&"square"==v?c.moveTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(y,I+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(y,I+y):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,-l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(y,0):aa&&!S?c.lineTo(0,y):"square"==x||"default"==x&&"square"==v?c.lineTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,I+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(y,I+y):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,v,x,I,y,aa,S,Fa,Ra,Oa,ka){if("fold"==v||"fold"==x||"fold"==I||"fold"==y||"fold"==aa)("fold"==x||"default"==x&&"fold"==v)&&Fa&&-ka&&(c.moveTo(0,S),c.lineTo(S,S),c.lineTo(S,0)),("fold"==I||"default"==I&&"fold"==v)&&Fa&&Ra&&(c.moveTo(n-S,0),c.lineTo(n-S,S),c.lineTo(n,S)),("fold"==y||"default"==y&&"fold"==v)&&Oa&&Ra&&(c.moveTo(n-S,r),c.lineTo(n-S,r-S),c.lineTo(n,r-S)),("fold"==aa||"default"==aa&&"fold"==v)&&Oa&&ka&&(c.moveTo(0,r-S),c.lineTo(S,r-S),c.lineTo(S,r))};mxCellRenderer.registerShape(wa.prototype.cst.RECT2,wa);wa.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;+c.begin();v.paintFolds(c,l,t,n,r,x,xa,za,Aa,Ea,y,ka,pa,na,la);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(0,0):c.moveTo(0,J)};wa.prototype.moveNE=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(n,0):c.moveTo(n-J,0)};wa.prototype.moveSE=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(n,r):c.moveTo(n,r-J)};wa.prototype.moveSW=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==+x&&"square"==v||!y?c.moveTo(0,r):c.moveTo(J,r)};wa.prototype.paintNW=function(c,l,t,n,r,v,x,J,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,J,0)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(J,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(n,0):c.lineTo(n-J,0)};+wa.prototype.paintNE=function(c,l,t,n,r,v,x,J,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,n,J)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n,J);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(n,r):c.lineTo(n,r-J)};wa.prototype.paintLeft=function(c,l,t,n,r,v,x,+J,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(0,0):c.lineTo(0,J)};wa.prototype.paintSE=function(c,l,t,n,r,v,x,J,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,n-J,r)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-J,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==+v||!y?c.lineTo(0,r):c.lineTo(J,r)};wa.prototype.paintSW=function(c,l,t,n,r,v,x,J,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,0,r-J)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(0,r-J);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,v,x,J,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,y,.5*y++J);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,y,y+J);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(y,.5*y+J);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(y+J,y+J),c.lineTo(y,y+J)};wa.prototype.paintTopInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(0,y):aa&&!S?c.lineTo(y,0):aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(J+.5*y,y):c.lineTo(J+y,y):c.lineTo(0,+y):c.lineTo(0,0)};wa.prototype.paintNEInner=function(c,l,t,n,r,v,x,J,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,n-J-.5*y,y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,n-J-y,y);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-J-.5*y,y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-J-y,J+y),c.lineTo(n-J-y,y)};wa.prototype.paintRightInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(n-y,0):aa&&!S?c.lineTo(n,y):aa?"square"==+x||"default"==x&&"square"==v?c.lineTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,J+.5*y):c.lineTo(n-y,J+y):c.lineTo(n-y,0):c.lineTo(n,0)};wa.prototype.paintLeftInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(y,r):aa&&!S?c.lineTo(0,r-y):aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,r-J-.5*y):c.lineTo(y,r-J-y):c.lineTo(y,r):c.lineTo(0,+r)};wa.prototype.paintSEInner=function(c,l,t,n,r,v,x,J,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,n-y,r-J-.5*y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,n-y,r-J-y);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-y,r-J-.5*y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-J-y,r-J-y),c.lineTo(n-y,r-J-y)};wa.prototype.paintBottomInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(n,r-y):aa&&!S?c.lineTo(n-y,r):"square"==+x||"default"==x&&"square"==v||!aa?c.lineTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-J-.5*y,r-y):c.lineTo(n-J-y,r-y):c.lineTo(n,r)};wa.prototype.paintSWInner=function(c,l,t,n,r,v,x,J,y,aa){if(!aa)c.lineTo(y,r);else if("square"==x||"default"==x&&"square"==v)c.lineTo(y,r-y);else if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,J+.5*y,r-y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,J+y,r-y);else if("snip"==+x||"default"==x&&"snip"==v)c.lineTo(J+.5*y,r-y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(y+J,r-J-y),c.lineTo(y+J,r-y)};wa.prototype.moveSWInner=function(c,l,t,n,r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.moveTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(y,r-J-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(y,r-J-y):c.moveTo(0,r-y)};wa.prototype.lineSWInner=function(c,l,t,n,+r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,r-J-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(y,r-J-y):c.lineTo(0,r-y)};wa.prototype.moveSEInner=function(c,l,t,n,r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.moveTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-y,r-J-.5*y):+("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-y,r-J-y):c.moveTo(n-y,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.lineTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,r-J-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-y,r-J-y):c.lineTo(n-y,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,v,x,+J,y,aa){aa?"square"==x||"default"==x&&"square"==v||aa?c.moveTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-y,J+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-y,J+y):c.moveTo(n,y)};wa.prototype.lineNEInner=function(c,l,t,n,r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v||aa?c.lineTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,J+.5*y):("invRound"==+x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-y,J+y):c.lineTo(n,y)};wa.prototype.moveNWInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.moveTo(y,0):aa&&!S?c.moveTo(0,y):"square"==x||"default"==x&&"square"==v?c.moveTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(y,J+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(y,J+y):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,+l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(y,0):aa&&!S?c.lineTo(0,y):"square"==x||"default"==x&&"square"==v?c.lineTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,J+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(y,J+y):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,v,x,J,y,aa,S,Fa,Ra,Oa,ka){if("fold"==v||"fold"==x||"fold"==J||"fold"==y||"fold"==aa)("fold"==x||"default"==x&&"fold"==v)&&Fa&&+ka&&(c.moveTo(0,S),c.lineTo(S,S),c.lineTo(S,0)),("fold"==J||"default"==J&&"fold"==v)&&Fa&&Ra&&(c.moveTo(n-S,0),c.lineTo(n-S,S),c.lineTo(n,S)),("fold"==y||"default"==y&&"fold"==v)&&Oa&&Ra&&(c.moveTo(n-S,r),c.lineTo(n-S,r-S),c.lineTo(n,r-S)),("fold"==aa||"default"==aa&&"fold"==v)&&Oa&&ka&&(c.moveTo(0,r-S),c.lineTo(S,r-S),c.lineTo(S,r))};mxCellRenderer.registerShape(wa.prototype.cst.RECT2,wa);wa.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;ua.prototype.paintEdgeShape=function(c,l,t){for(var n=[],r=0;r<l.length;r++)n.push(mxUtils.clone(l[r]));r=c.state.dashed;var v=c.state.fixDash;ua.prototype.origPaintEdgeShape.apply(this,[c,n,t]);3<=c.state.strokeWidth&&(n=mxUtils.getValue(this.style,"fillColor",null),null!=n&&(c.setStrokeColor(n),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(r,v),ua.prototype.origPaintEdgeShape.apply(this,[c,l,t])))};mxCellRenderer.registerShape("filledEdge",ua);"undefined"!==typeof StyleFormatPanel&&function(){var c=-StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),t=c.apply(this,arguments);"umlFrame"==l.style.shape&&t.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return t}}();mxMarker.addMarker("dash",function(c,l,t,n,r,v,x,I,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Fa/2,n.y-Fa/2+S/2);c.lineTo(n.x+Fa/2-3*S/2,n.y-3*Fa/2-S/2);c.stroke()}});mxMarker.addMarker("box",-function(c,l,t,n,r,v,x,I,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1),Ra=n.x+S/2,Oa=n.y+Fa/2;n.x-=S;n.y-=Fa;return function(){c.begin();c.moveTo(Ra-S/2-Fa/2,Oa-Fa/2+S/2);c.lineTo(Ra-S/2+Fa/2,Oa-Fa/2-S/2);c.lineTo(Ra+Fa/2-3*S/2,Oa-3*Fa/2-S/2);c.lineTo(Ra-Fa/2-3*S/2,Oa-3*Fa/2+S/2);c.close();aa?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,I,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Fa/2,n.y-Fa/2+S/2);c.lineTo(n.x+Fa/2-3*S/2,n.y-3*Fa/2--S/2);c.moveTo(n.x-S/2+Fa/2,n.y-Fa/2-S/2);c.lineTo(n.x-Fa/2-3*S/2,n.y-3*Fa/2+S/2);c.stroke()}});mxMarker.addMarker("circle",Va);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,x,I,y,aa){var S=n.clone(),Fa=Va.apply(this,arguments),Ra=r*(x+2*y),Oa=v*(x+2*y);return function(){Fa.apply(this,arguments);c.begin();c.moveTo(S.x-r*y,S.y-v*y);c.lineTo(S.x-2*Ra+r*y,S.y-2*Oa+v*y);c.moveTo(S.x-Ra-Oa+v*y,S.y-Oa+Ra-r*y);c.lineTo(S.x+Oa-Ra-v*y,S.y-Oa-Ra+r*y);c.stroke()}});mxMarker.addMarker("halfCircle",function(c,-l,t,n,r,v,x,I,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1),Ra=n.clone();n.x-=S;n.y-=Fa;return function(){c.begin();c.moveTo(Ra.x-Fa,Ra.y+S);c.quadTo(n.x-Fa,n.y+S,n.x,n.y);c.quadTo(n.x+Fa,n.y-S,Ra.x+Fa,Ra.y-S);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,x,I,y,aa){l=r*y*1.118;t=v*y*1.118;r*=x+y;v*=x+y;var S=n.clone();S.x-=l;S.y-=t;n.x+=-r-l;n.y+=-v-t;return function(){c.begin();c.moveTo(S.x,S.y);I?c.lineTo(S.x-r-v/2,S.y-v+r/2):c.lineTo(S.x+v/2-r,S.y-v-r/2);c.lineTo(S.x-r,S.y-v);c.close();aa?-c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,x,I,y,aa,S){v*=I+aa;x*=I+aa;var Fa=r.clone();return function(){l.begin();l.moveTo(Fa.x,Fa.y);y?l.lineTo(Fa.x-v-x/c,Fa.y-x+v/c):l.lineTo(Fa.x+x/c-v,Fa.y-x-v/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var nb=function(c,l,t){return db(c,["width"],l,function(n,r,v,x,I){I=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x+r*n/4+v*I/2,x.y+v*n/4-r*I/2)},function(n,-r,v,x,I,y){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));c.style.width=Math.round(2*n)/c.view.scale-t})},db=function(c,l,t,n,r){return Ta(c,l,function(v){var x=c.absolutePoints;if(null!=x&&0<x.length){var I=x.length-1;v=c.view.translate;var y=c.view.scale,aa=t?x[0]:x[I];x=t?x[1]:x[I-1];I=x.x-aa.x;var S=x.y-aa.y,Fa=Math.sqrt(I*I+S*S);aa=n.call(this,Fa,I/Fa,S/Fa,aa,x);return new mxPoint(aa.x/y-v.x,aa.y/y-v.y)}return null},function(v,x,I){var y=c.absolutePoints,aa=y.length-1;v=c.view.translate;-var S=c.view.scale,Fa=t?y[0]:y[aa];y=t?y[1]:y[aa-1];aa=y.x-Fa.x;var Ra=y.y-Fa.y,Oa=Math.sqrt(aa*aa+Ra*Ra);x.x=(x.x+v.x)*S;x.y=(x.y+v.y)*S;r.call(this,Oa,aa/Oa,Ra/Oa,Fa,y,x,I)})},qb=function(c,l){return function(t){return[db(t,["startWidth"],!0,function(n,r,v,x,I){I=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+v*I/2,x.y+v*n/4-r*I/2)},function(n,r,v,x,I,y){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));t.style.startWidth=Math.round(2*n)/t.view.scale-+StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),t=c.apply(this,arguments);"umlFrame"==l.style.shape&&t.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return t}}();mxMarker.addMarker("dash",function(c,l,t,n,r,v,x,J,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Fa/2,n.y-Fa/2+S/2);c.lineTo(n.x+Fa/2-3*S/2,n.y-3*Fa/2-S/2);c.stroke()}});mxMarker.addMarker("box",+function(c,l,t,n,r,v,x,J,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1),Ra=n.x+S/2,Oa=n.y+Fa/2;n.x-=S;n.y-=Fa;return function(){c.begin();c.moveTo(Ra-S/2-Fa/2,Oa-Fa/2+S/2);c.lineTo(Ra-S/2+Fa/2,Oa-Fa/2-S/2);c.lineTo(Ra+Fa/2-3*S/2,Oa-3*Fa/2-S/2);c.lineTo(Ra-Fa/2-3*S/2,Oa-3*Fa/2+S/2);c.close();aa?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,J,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Fa/2,n.y-Fa/2+S/2);c.lineTo(n.x+Fa/2-3*S/2,n.y-3*Fa/2-+S/2);c.moveTo(n.x-S/2+Fa/2,n.y-Fa/2-S/2);c.lineTo(n.x-Fa/2-3*S/2,n.y-3*Fa/2+S/2);c.stroke()}});mxMarker.addMarker("circle",Va);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,x,J,y,aa){var S=n.clone(),Fa=Va.apply(this,arguments),Ra=r*(x+2*y),Oa=v*(x+2*y);return function(){Fa.apply(this,arguments);c.begin();c.moveTo(S.x-r*y,S.y-v*y);c.lineTo(S.x-2*Ra+r*y,S.y-2*Oa+v*y);c.moveTo(S.x-Ra-Oa+v*y,S.y-Oa+Ra-r*y);c.lineTo(S.x+Oa-Ra-v*y,S.y-Oa-Ra+r*y);c.stroke()}});mxMarker.addMarker("halfCircle",function(c,+l,t,n,r,v,x,J,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1),Ra=n.clone();n.x-=S;n.y-=Fa;return function(){c.begin();c.moveTo(Ra.x-Fa,Ra.y+S);c.quadTo(n.x-Fa,n.y+S,n.x,n.y);c.quadTo(n.x+Fa,n.y-S,Ra.x+Fa,Ra.y-S);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,x,J,y,aa){l=r*y*1.118;t=v*y*1.118;r*=x+y;v*=x+y;var S=n.clone();S.x-=l;S.y-=t;n.x+=-r-l;n.y+=-v-t;return function(){c.begin();c.moveTo(S.x,S.y);J?c.lineTo(S.x-r-v/2,S.y-v+r/2):c.lineTo(S.x+v/2-r,S.y-v-r/2);c.lineTo(S.x-r,S.y-v);c.close();aa?+c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,x,J,y,aa,S){v*=J+aa;x*=J+aa;var Fa=r.clone();return function(){l.begin();l.moveTo(Fa.x,Fa.y);y?l.lineTo(Fa.x-v-x/c,Fa.y-x+v/c):l.lineTo(Fa.x+x/c-v,Fa.y-x-v/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var nb=function(c,l,t){return db(c,["width"],l,function(n,r,v,x,J){J=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x+r*n/4+v*J/2,x.y+v*n/4-r*J/2)},function(n,+r,v,x,J,y){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));c.style.width=Math.round(2*n)/c.view.scale-t})},db=function(c,l,t,n,r){return Ta(c,l,function(v){var x=c.absolutePoints;if(null!=x&&0<x.length){var J=x.length-1;v=c.view.translate;var y=c.view.scale,aa=t?x[0]:x[J];x=t?x[1]:x[J-1];J=x.x-aa.x;var S=x.y-aa.y,Fa=Math.sqrt(J*J+S*S);aa=n.call(this,Fa,J/Fa,S/Fa,aa,x);return new mxPoint(aa.x/y-v.x,aa.y/y-v.y)}return null},function(v,x,J){var y=c.absolutePoints,aa=y.length-1;v=c.view.translate;+var S=c.view.scale,Fa=t?y[0]:y[aa];y=t?y[1]:y[aa-1];aa=y.x-Fa.x;var Ra=y.y-Fa.y,Oa=Math.sqrt(aa*aa+Ra*Ra);x.x=(x.x+v.x)*S;x.y=(x.y+v.y)*S;r.call(this,Oa,aa/Oa,Ra/Oa,Fa,y,x,J)})},qb=function(c,l){return function(t){return[db(t,["startWidth"],!0,function(n,r,v,x,J){J=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+v*J/2,x.y+v*n/4-r*J/2)},function(n,r,v,x,J,y){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));t.style.startWidth=Math.round(2*n)/t.view.scale-l})]}},bb=function(c){return function(l){return[Ta(l,["arrowWidth","arrowSize"],function(t){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",ab.prototype.arrowWidth))),r=Math.max(0,Math.min(c,mxUtils.getValue(this.state.style,"arrowSize",ab.prototype.arrowSize)));return new mxPoint(t.x+(1-r)*t.width,t.y+(1-n)*t.height/2)},function(t,n){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(t.y+t.height/2-n.y)/t.height*2));this.state.style.arrowSize=Math.max(0,Math.min(c,(t.x+t.width-n.x)/t.width))})]}},wb=function(c){return function(l){return[Ta(l,["size"],function(t){var n=Math.max(0,Math.min(.5*t.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(t.x,t.y+n)},function(t,n){this.state.style.size=Math.max(0,n.y-t.y)},!0)]}},rb=function(c,l,t){return function(n){var r=[Ta(n,["size"],function(v){var x=Math.max(0,Math.min(v.width,Math.min(v.height,parseFloat(mxUtils.getValue(this.state.style,"size",l)))))*c;return new mxPoint(v.x+x,v.y+-x)},function(v,x){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(v.width,x.x-v.x),Math.min(v.height,x.y-v.y)))/c)},!1)];t&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(hb(n));return r}},tb=function(c,l,t,n,r){t=null!=t?t:.5;return function(v){var x=[Ta(v,["size"],function(I){var y=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,aa=parseFloat(mxUtils.getValue(this.state.style,"size",y?r:c));return new mxPoint(I.x+Math.max(0,Math.min(.5*I.width,-aa*(y?1:I.width))),I.getCenterY())},function(I,y,aa){I=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?y.x-I.x:Math.max(0,Math.min(t,(y.x-I.x)/I.width));this.state.style.size=I},!1,n)];l&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&x.push(hb(v));return x}},yb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[Ta(n,["size"],function(v){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,I=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,-"size",x?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,I*(x?.75:.75*v.width)),v.y+v.height/4)},function(v,x){v=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?x.x-v.x:Math.max(0,Math.min(c,(x.x-v.x)/v.width*.75));this.state.style.size=v},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(hb(n));return r}},lb=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(hb(c));return l}},hb=function(c,l){return Ta(c,+x)},function(v,x){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(v.width,x.x-v.x),Math.min(v.height,x.y-v.y)))/c)},!1)];t&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(hb(n));return r}},tb=function(c,l,t,n,r){t=null!=t?t:.5;return function(v){var x=[Ta(v,["size"],function(J){var y=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,aa=parseFloat(mxUtils.getValue(this.state.style,"size",y?r:c));return new mxPoint(J.x+Math.max(0,Math.min(.5*J.width,+aa*(y?1:J.width))),J.getCenterY())},function(J,y,aa){J=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?y.x-J.x:Math.max(0,Math.min(t,(y.x-J.x)/J.width));this.state.style.size=J},!1,n)];l&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&x.push(hb(v));return x}},yb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[Ta(n,["size"],function(v){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,J=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,+"size",x?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,J*(x?.75:.75*v.width)),v.y+v.height/4)},function(v,x){v=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?x.x-v.x:Math.max(0,Math.min(c,(x.x-v.x)/v.width*.75));this.state.style.size=v},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(hb(n));return r}},lb=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(hb(c));return l}},hb=function(c,l){return Ta(c,[mxConstants.STYLE_ARCSIZE],function(t){var n=null!=l?l:t.height/8;if("1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var r=mxUtils.getValue(c.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(t.x+t.width-Math.min(t.width/2,r),t.y+n)}r=Math.max(0,parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(t.x+t.width-Math.min(Math.max(t.width/2,t.height/2),Math.min(t.width,t.height)*-r),t.y+n)},function(t,n,r){"1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(t.width,2*(t.x+t.width-n.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(t.width-n.x+t.x)/Math.min(t.width,t.height))))})},Ta=function(c,l,t,n,r,v,x){var I=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);I.execute=function(aa){for(var S=0;S<l.length;S++)this.copyStyle(l[S]);-x&&x(aa)};I.getPosition=t;I.setPosition=n;I.ignoreGrid=null!=r?r:!0;if(v){var y=I.positionChanged;I.positionChanged=function(){y.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return I},Sa={link:function(c){return[nb(c,!0,10),nb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,t=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(db(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],-!0,function(n,r,v,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,I,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/+r),t.y+n)},function(t,n,r){"1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(t.width,2*(t.x+t.width-n.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(t.width-n.x+t.x)/Math.min(t.width,t.height))))})},Ta=function(c,l,t,n,r,v,x){var J=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);J.execute=function(aa){for(var S=0;S<l.length;S++)this.copyStyle(l[S]);+x&&x(aa)};J.getPosition=t;J.setPosition=n;J.ignoreGrid=null!=r?r:!0;if(v){var y=J.positionChanged;J.positionChanged=function(){y.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return J},Sa={link:function(c){return[nb(c,!0,10),nb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,t=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(db(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],+!0,function(n,r,v,x,J){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,J,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(aa.getEvent())||Math.abs(parseFloat(c.style[mxConstants.STYLE_STARTSIZE])-parseFloat(c.style[mxConstants.STYLE_ENDSIZE]))<l/6&&(c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE])})),t.push(db(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],-!0,function(n,r,v,x,I){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,I,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/+!0,function(n,r,v,x,J){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,J,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.startWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE],c.style.endWidth=c.style.startWidth;mxEvent.isAltDown(aa.getEvent())||(Math.abs(parseFloat(c.style[mxConstants.STYLE_STARTSIZE])-parseFloat(c.style[mxConstants.STYLE_ENDSIZE]))<l/6&&(c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE]),-Math.abs(parseFloat(c.style.startWidth)-parseFloat(c.style.endWidth))<l&&(c.style.startWidth=c.style.endWidth))})));mxUtils.getValue(c.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(db(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*-c.view.scale)-v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,I,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(aa.getEvent())||-Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE])})),t.push(db(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,I){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*-c.view.scale)-v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,I,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.endWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE],+Math.abs(parseFloat(c.style.startWidth)-parseFloat(c.style.endWidth))<l&&(c.style.startWidth=c.style.endWidth))})));mxUtils.getValue(c.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(db(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,J){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*+c.view.scale)-v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,J,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(aa.getEvent())||+Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE])})),t.push(db(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,J){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*+c.view.scale)-v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,J,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.endWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE],c.style.startWidth=c.style.endWidth;mxEvent.isAltDown(aa.getEvent())||(Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(c.style.endWidth)-parseFloat(c.style.startWidth))<l&&(c.style.endWidth=c.style.startWidth))})));return t},swimlane:function(c){var l=[];if(mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED)){var t=parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));l.push(hb(c,t/2))}l.push(Ta(c,[mxConstants.STYLE_STARTSIZE],function(n){var r=parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(c.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(n.getCenterX(),n.y+Math.max(0,Math.min(n.height,r))):new mxPoint(n.x+Math.max(0,Math.min(n.width,r)),n.getCenterY())},function(n,r){c.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,-mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(n.height,r.y-n.y))):Math.round(Math.max(0,Math.min(n.width,r.x-n.x)))},!1,null,function(n){var r=c.view.graph;if(!mxEvent.isShiftDown(n.getEvent())&&!mxEvent.isControlDown(n.getEvent())&&(r.isTableRow(c.cell)||r.isTableCell(c.cell))){n=r.getSwimlaneDirection(c.style);var v=r.model.getParent(c.cell);v=r.model.getChildCells(v,!0);for(var x=[],I=0;I<v.length;I++)v[I]!=c.cell&&r.isSwimlane(v[I])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[I]))==-n&&x.push(v[I]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],x)}}));return l},label:lb(),ext:lb(),rectangle:lb(),triangle:lb(),rhombus:lb(),umlLifeline:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",ra.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},umlFrame:function(c){return[Ta(c,+mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(n.height,r.y-n.y))):Math.round(Math.max(0,Math.min(n.width,r.x-n.x)))},!1,null,function(n){var r=c.view.graph;if(!mxEvent.isShiftDown(n.getEvent())&&!mxEvent.isControlDown(n.getEvent())&&(r.isTableRow(c.cell)||r.isTableCell(c.cell))){n=r.getSwimlaneDirection(c.style);var v=r.model.getParent(c.cell);v=r.model.getChildCells(v,!0);for(var x=[],J=0;J<v.length;J++)v[J]!=c.cell&&r.isSwimlane(v[J])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[J]))==+n&&x.push(v[J]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],x)}}));return l},label:lb(),ext:lb(),rectangle:lb(),triangle:lb(),rhombus:lb(),umlLifeline:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",ra.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},umlFrame:function(c){return[Ta(c,["width","height"],function(l){var t=Math.max(qa.prototype.corner,Math.min(l.width,mxUtils.getValue(this.state.style,"width",qa.prototype.width))),n=Math.max(1.5*qa.prototype.corner,Math.min(l.height,mxUtils.getValue(this.state.style,"height",qa.prototype.height)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.width=Math.round(Math.max(qa.prototype.corner,Math.min(l.width,t.x-l.x)));this.state.style.height=Math.round(Math.max(1.5*qa.prototype.corner,Math.min(l.height,t.y-l.y)))},!1)]},process:function(c){var l=[Ta(c,["size"],function(t){var n="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),r=parseFloat(mxUtils.getValue(this.state.style,"size",K.prototype.size));return n?new mxPoint(t.x+r,t.y+t.height/4):new mxPoint(t.x+t.width*r,t.y+t.height/4)},function(t,n){t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*t.width,n.x-t.x)):Math.max(0,Math.min(.5,(n.x-t.x)/t.width));this.state.style.size=t},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(hb(c));return l},cross:function(c){return[Ta(c,["size"],function(l){var t=Math.min(l.width,l.height);t=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",ya.prototype.size)))*t/2;return new mxPoint(l.getCenterX()-t,l.getCenterY()-t)},function(l,t){var n=Math.min(l.width,l.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,l.getCenterY()-t.y)/n*2,Math.max(0,l.getCenterX()-t.x)/n*2)))})]},note:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,@@ -3514,11 +3515,11 @@ folder:function(c){return[Ta(c,["tabWidth","tabHeight"],function(l){var t=Math.m!1)]},tape:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",L.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t*l.height/2)},function(l,t){this.state.style.size=Math.max(0,Math.min(1,(t.y-l.y)/l.height*2))},!1)]},isoCube2:function(c){return[Ta(c,["isoAngle"],function(l){var t=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",w.isoAngle))))*Math.PI/200;return new mxPoint(l.x,l.y+Math.min(l.width*Math.tan(t),.5*l.height))},function(l,t){this.state.style.isoAngle=Math.max(0,50*(t.y-l.y)/l.height)},!0)]},cylinder2:wb(z.prototype.size),cylinder3:wb(C.prototype.size),offPageConnector:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size))));return new mxPoint(l.getCenterX(),l.y+(1-t)*l.height)},function(l,t){this.state.style.size=Math.max(0,Math.min(1,(l.y+l.height-t.y)/l.height))},!1)]},"mxgraph.basic.rect":function(c){var l=[Graph.createHandle(c,["size"],function(t){var n=Math.max(0,Math.min(t.width/2,t.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));return new mxPoint(t.x+n,t.y+n)},function(t,n){this.state.style.size=Math.round(100*Math.max(0,Math.min(t.height/2,t.width/2,n.x-t.x)))/100})];c=Graph.createHandle(c,["indent"],function(t){var n=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(t.x+.75*t.width,t.y+n*t.height/200)},function(t,-n){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(n.y-t.y)/t.height)))/100});l.push(c);return l},step:tb(ia.prototype.size,!0,null,!0,ia.prototype.fixedSize),hexagon:tb(oa.prototype.size,!0,.5,!0,oa.prototype.fixedSize),curlyBracket:tb(Y.prototype.size,!1),display:tb(Ha.prototype.size,!1),cube:rb(1,f.prototype.size,!1),card:rb(.5,J.prototype.size,!0),loopLimit:rb(.5,B.prototype.size,!0),trapezoid:yb(.5,U.prototype.size,U.prototype.fixedSize),parallelogram:yb(1,N.prototype.size,+n){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(n.y-t.y)/t.height)))/100});l.push(c);return l},step:tb(ia.prototype.size,!0,null,!0,ia.prototype.fixedSize),hexagon:tb(oa.prototype.size,!0,.5,!0,oa.prototype.fixedSize),curlyBracket:tb(Y.prototype.size,!1),display:tb(Ha.prototype.size,!1),cube:rb(1,f.prototype.size,!1),card:rb(.5,I.prototype.size,!0),loopLimit:rb(.5,B.prototype.size,!0),trapezoid:yb(.5,U.prototype.size,U.prototype.fixedSize),parallelogram:yb(1,N.prototype.size,N.prototype.fixedSize)};Graph.createHandle=Ta;Graph.handleFactory=Sa;var sb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var c=sb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var l=this.state.style.shape;null==mxCellRenderer.defaultShapes[l]&&null==mxStencilRegistry.getStencil(l)?l=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(l=mxConstants.SHAPE_SWIMLANE);l=Sa[l];null==l&&null!=this.state.shape&&this.state.shape.isRoundable()&&(l=Sa[mxConstants.SHAPE_RECTANGLE]);null!=l&&(l=l(this.state),null!=l&&(c=null==c?l:c.concat(l)))}return c};mxEdgeHandler.prototype.createCustomHandles=function(){var c=this.state.style.shape;null==mxCellRenderer.defaultShapes[c]&&null==mxStencilRegistry.getStencil(c)&&(c=mxConstants.SHAPE_CONNECTOR);c=Sa[c];return null!=c?c(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var $a=new mxPoint(1,0),kb=new mxPoint(1,0),ob=mxUtils.toRadians(-30);-$a=mxUtils.getRotatedPoint($a,Math.cos(ob),Math.sin(ob));var Za=mxUtils.toRadians(-150);kb=mxUtils.getRotatedPoint(kb,Math.cos(Za),Math.sin(Za));mxEdgeStyle.IsometricConnector=function(c,l,t,n,r){var v=c.view;n=null!=n&&0<n.length?n[0]:null;var x=c.absolutePoints,I=x[0];x=x[x.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==I&&null!=l&&(I=new mxPoint(l.getCenterX(),l.getCenterY()));null==x&&null!=t&&(x=new mxPoint(t.getCenterX(),t.getCenterY()));var y=$a.x,aa=$a.y,S=kb.x,Fa=kb.y,Ra="horizontal"==-mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=I){c=function(ka,pa,na){ka-=Oa.x;var la=pa-Oa.y;pa=(Fa*ka-S*la)/(y*Fa-aa*S);ka=(aa*ka-y*la)/(aa*S-y*Fa);Ra?(na&&(Oa=new mxPoint(Oa.x+y*pa,Oa.y+aa*pa),r.push(Oa)),Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka)):(na&&(Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka),r.push(Oa)),Oa=new mxPoint(Oa.x+y*pa,Oa.y+aa*pa));r.push(Oa)};var Oa=I;null==n&&(n=new mxPoint(I.x+(x.x-I.x)/2,I.y+(x.y-I.y)/2));c(n.x,n.y,!0);c(x.x,x.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",+$a=mxUtils.getRotatedPoint($a,Math.cos(ob),Math.sin(ob));var Za=mxUtils.toRadians(-150);kb=mxUtils.getRotatedPoint(kb,Math.cos(Za),Math.sin(Za));mxEdgeStyle.IsometricConnector=function(c,l,t,n,r){var v=c.view;n=null!=n&&0<n.length?n[0]:null;var x=c.absolutePoints,J=x[0];x=x[x.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==J&&null!=l&&(J=new mxPoint(l.getCenterX(),l.getCenterY()));null==x&&null!=t&&(x=new mxPoint(t.getCenterX(),t.getCenterY()));var y=$a.x,aa=$a.y,S=kb.x,Fa=kb.y,Ra="horizontal"==+mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=J){c=function(ka,pa,na){ka-=Oa.x;var la=pa-Oa.y;pa=(Fa*ka-S*la)/(y*Fa-aa*S);ka=(aa*ka-y*la)/(aa*S-y*Fa);Ra?(na&&(Oa=new mxPoint(Oa.x+y*pa,Oa.y+aa*pa),r.push(Oa)),Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka)):(na&&(Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka),r.push(Oa)),Oa=new mxPoint(Oa.x+y*pa,Oa.y+aa*pa));r.push(Oa)};var Oa=J;null==n&&(n=new mxPoint(J.x+(x.x-J.x)/2,J.y+(x.y-J.y)/2));c(n.x,n.y,!0);c(x.x,x.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var xb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(c,l){if(l==mxEdgeStyle.IsometricConnector){var t=new mxElbowEdgeHandler(c);t.snapToTerminals=!1;return t}return xb.apply(this,arguments)};g.prototype.constraints=[];m.prototype.getConstraints=function(c,l,t){c=[];var n=Math.tan(mxUtils.toRadians(30)),r=(.5-n)/2;n=Math.min(l,t/(.5+n));l=(l-n)/2;t=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*n,t+n*r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+n,t+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+n,t+.75*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*n,t+(1-r)*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t+.75*n));return c};w.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;n=Math.min(l*Math.tan(n),.5*t);c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t-n));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,@@ -3529,7 +3530,7 @@ t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));l>0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];va.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=mxRectangleShape.prototype.constraints;sa.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,-0),!1));return c};J.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1));return c};I.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};f.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));return c};C.prototype.getConstraints=function(c,l,t){c=[];l=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,@@ -3577,8 +3578,8 @@ d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1null})}).isEnabled=g;this.addAction("save",function(){f.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=g;this.addAction("saveAs...",function(){f.saveFile(!0)},null,null,Editor.ctrlKey+"+Shift+S");this.addAction("export...",function(){f.showDialog((new ExportDialog(f)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var k=new EditDiagramDialog(f);f.showDialog(k.container,620,420,!0,!1);k.init()}).isEnabled=g;this.addAction("pageSetup...",function(){f.showDialog((new PageSetupDialog(f)).container,320,240,!0,!0)}).isEnabled=g;this.addAction("print...",function(){f.showPrintDialog()},null,"sprite-print",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(d,null,10,10)});this.addAction("undo",function(){f.undo()},null,"sprite-undo",Editor.ctrlKey+"+Z");this.addAction("redo",function(){f.redo()},null,"sprite-redo",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+Shift+Z");this.addAction("cut",function(){var k=null;try{k=f.copyXml(),null!=k&&d.removeCells(k,!1)}catch(u){}try{null==k&&mxClipboard.cut(d)}catch(u){f.handleError(u)}},null,"sprite-cut",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{f.copyXml()}catch(k){}try{mxClipboard.copy(d)}catch(k){f.handleError(k)}},null,"sprite-copy",Editor.ctrlKey+"+C");this.addAction("paste",function(){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){var k=!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(u){if(null!=u){d.getModel().beginUpdate();try{f.pasteXml(u,!0)}finally{d.getModel().endUpdate()}}else mxClipboard.paste(d)}),-k=!0)}catch(u){}k||mxClipboard.paste(d)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(k){function u(z){if(null!=z){for(var C=!0,E=0;E<z.length&&C;E++)C=C&&d.model.isEdge(z[E]);var D=d.view.translate;E=d.view.scale;var G=D.x,J=D.y;D=null;if(1==z.length&&C){var L=d.getCellGeometry(z[0]);null!=L&&(D=L.getTerminalPoint(!0))}D=null!=D?D:d.getBoundingBoxFromGeometry(z,C);null!=D&&(C=Math.round(d.snap(d.popupMenuHandler.triggerX/E-G)),E=Math.round(d.snap(d.popupMenuHandler.triggerY/-E-J)),d.cellsMoved(z,C-D.x,E-D.y))}}function w(){d.getModel().beginUpdate();try{u(mxClipboard.paste(d))}finally{d.getModel().endUpdate()}}if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){k=!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(z){if(null!=z){d.getModel().beginUpdate();try{u(f.pasteXml(z,!0))}finally{d.getModel().endUpdate()}}else w()}),k=!0)}catch(z){}k||w()}});this.addAction("swap",function(){var k=d.getSelectionCells();2==k.length&&d.swapShapes(k[0],+k=!0)}catch(u){}k||mxClipboard.paste(d)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(k){function u(z){if(null!=z){for(var C=!0,E=0;E<z.length&&C;E++)C=C&&d.model.isEdge(z[E]);var D=d.view.translate;E=d.view.scale;var G=D.x,I=D.y;D=null;if(1==z.length&&C){var L=d.getCellGeometry(z[0]);null!=L&&(D=L.getTerminalPoint(!0))}D=null!=D?D:d.getBoundingBoxFromGeometry(z,C);null!=D&&(C=Math.round(d.snap(d.popupMenuHandler.triggerX/E-G)),E=Math.round(d.snap(d.popupMenuHandler.triggerY/+E-I)),d.cellsMoved(z,C-D.x,E-D.y))}}function w(){d.getModel().beginUpdate();try{u(mxClipboard.paste(d))}finally{d.getModel().endUpdate()}}if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){k=!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(z){if(null!=z){d.getModel().beginUpdate();try{u(f.pasteXml(z,!0))}finally{d.getModel().endUpdate()}}else w()}),k=!0)}catch(z){}k||w()}});this.addAction("swap",function(){var k=d.getSelectionCells();2==k.length&&d.swapShapes(k[0],k[1])});this.addAction("copySize",function(){var k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.getModel().isVertex(k)&&(k=d.getCellGeometry(k),null!=k&&(f.copiedSize=new mxRectangle(k.x,k.y,k.width,k.height)))},null,null,"Alt+Shift+F");this.addAction("pasteSize",function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=f.copiedSize){d.getModel().beginUpdate();try{for(var k=d.getResizableCells(d.getSelectionCells()),u=0;u<k.length;u++)if(d.getModel().isVertex(k[u])){var w=d.getCellGeometry(k[u]);null!=w&&(w=w.clone(),w.width=f.copiedSize.width,w.height=f.copiedSize.height,d.getModel().setGeometry(k[u],w))}}finally{d.getModel().endUpdate()}}},null,null,"Alt+Shift+V");this.addAction("copyData",function(){var k=d.getSelectionCell()||d.getModel().getRoot();d.isEnabled()&&null!=k&&(k=k.cloneValue(),null==k||isNaN(k.nodeType)||(f.copiedValue=k))},null,null,"Alt+Shift+B");this.addAction("copyAsText",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k)try{d.isHtmlLabel(k)?f.writeHtmlToClipboard(d.getLabel(k),mxUtils.bind(this,function(u){f.handleError(u)})):f.writeTextToClipboard(d.getLabel(k),mxUtils.bind(this,function(u){f.handleError(u)}))}catch(u){f.handleError(u)}});this.addAction("pasteData",function(k,u){function w(E,D){var G=z.getValue(E);D=E.cloneValue(D);D.removeAttribute("placeholders");null==G||isNaN(G.nodeType)||D.setAttribute("placeholders",G.getAttribute("placeholders"));null!=k&&mxEvent.isShiftDown(k)||D.setAttribute("label",d.convertValueToString(E));z.setValue(E,D)}k=null!=u?u:k;var z=@@ -3628,9 +3629,9 @@ k[u];d.getModel().isEdge(w)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[w])null!=z&&(z=z.clone(),z.points=null,z.x=0,z.y=0,z.offset=null,d.getModel().setGeometry(w,z))}}}finally{d.getModel().endUpdate()}}},null,null,"Alt+Shift+R");m=this.addAction("subscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");m=this.addAction("superscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&document.execCommand("superscript",!1,null)}),null,null,Editor.ctrlKey+"+.");m=this.addAction("decreaseFontSize",mxUtils.bind(this,function(){if(!d.isSelectionEmpty()){var k=d.getCurrentCellStyle(d.getSelectionCell());k=mxUtils.getValue(k,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);d.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.max(1,k-1),d.getSelectionCells())}}),null,null,Editor.ctrlKey+"+Shift + (Numpad)");m=this.addAction("increaseFontSize",mxUtils.bind(this,function(){if(!d.isSelectionEmpty()){var k=d.getCurrentCellStyle(d.getSelectionCell());k=mxUtils.getValue(k,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);d.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.min(100,k+1),d.getSelectionCells())}}),null,null,Editor.ctrlKey+"+Shift - (Numpad)");this.addAction("image...",function(){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){var k=mxResources.get("image")+" ("+mxResources.get("url")+"):",u=d.getView().getState(d.getSelectionCell()),w="",z=null;null!=u&&(w=u.style[mxConstants.STYLE_IMAGE]||w,z=u.style[mxConstants.STYLE_CLIP_PATH]||z);var C=d.cellEditor.saveSelection();-f.showImageDialog(k,w,function(E,D,G,J,L,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var N=d.getSelectionCells();if(null!=E&&(0<E.length||0<N.length)){var U=null;d.getModel().beginUpdate();try{if(0==N.length){N=[d.insertVertex(d.getDefaultParent(),null,"",0,0,D,G,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var Y=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry(N,!0));N[0].geometry.x=Y.x;N[0].geometry.y=-Y.y;null!=J&&e(N[0],J,L,Q,d);U=N;d.fireEvent(new mxEventObject("cellsInserted","cells",U))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<E.length?E:null,N);var P=d.getCurrentCellStyle(N[0]);"image"!=P[mxConstants.STYLE_SHAPE]&&"label"!=P[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",N):0==E.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,N);null==J&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,N);if(null!=D&&null!=G)for(E=0;E<N.length;E++){var T=N[E];if("0"!=d.getCurrentCellStyle(T).expand){var K=-d.getModel().getGeometry(T);null!=K&&(K=K.clone(),K.width=D,K.height=G,d.getModel().setGeometry(T,K))}null!=J&&e(T,J,L,Q,d)}}finally{d.getModel().endUpdate()}null!=U&&(d.setSelectionCells(U),d.scrollCellToVisible(U[0]))}}},d.cellEditor.isContentEditing(),!d.cellEditor.isContentEditing(),!0,z)}}).isEnabled=g;this.addAction("crop...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k){var u=d.getCurrentCellStyle(k),w=u[mxConstants.STYLE_IMAGE],z=u[mxConstants.STYLE_SHAPE];+f.showImageDialog(k,w,function(E,D,G,I,L,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var N=d.getSelectionCells();if(null!=E&&(0<E.length||0<N.length)){var U=null;d.getModel().beginUpdate();try{if(0==N.length){N=[d.insertVertex(d.getDefaultParent(),null,"",0,0,D,G,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var Y=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry(N,!0));N[0].geometry.x=Y.x;N[0].geometry.y=+Y.y;null!=I&&e(N[0],I,L,Q,d);U=N;d.fireEvent(new mxEventObject("cellsInserted","cells",U))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<E.length?E:null,N);var P=d.getCurrentCellStyle(N[0]);"image"!=P[mxConstants.STYLE_SHAPE]&&"label"!=P[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",N):0==E.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,N);null==I&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,N);if(null!=D&&null!=G)for(E=0;E<N.length;E++){var T=N[E];if("0"!=d.getCurrentCellStyle(T).expand){var K=+d.getModel().getGeometry(T);null!=K&&(K=K.clone(),K.width=D,K.height=G,d.getModel().setGeometry(T,K))}null!=I&&e(T,I,L,Q,d)}}finally{d.getModel().endUpdate()}null!=U&&(d.setSelectionCells(U),d.scrollCellToVisible(U[0]))}}},d.cellEditor.isContentEditing(),!d.cellEditor.isContentEditing(),!0,z)}}).isEnabled=g;this.addAction("crop...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k){var u=d.getCurrentCellStyle(k),w=u[mxConstants.STYLE_IMAGE],z=u[mxConstants.STYLE_SHAPE];w&&"image"==z&&(u=new CropImageDialog(f,w,u[mxConstants.STYLE_CLIP_PATH],function(C,E,D){e(k,C,E,D,d)}),f.showDialog(u.container,300,390,!0,!0))}}).isEnabled=g;m=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(f,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){f.fireEvent(new mxEventObject("layers"))})),this.layersWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("layers"))}),this.layersWindow.window.setVisible(!0),f.fireEvent(new mxEventObject("layers")),this.layersWindow.init()):this.layersWindow.window.setVisible(!this.layersWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+L");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.layersWindow&&this.layersWindow.window.isVisible()}));m=this.addAction("format",mxUtils.bind(this,function(){f.toggleFormatPanel()}),null,null,Editor.ctrlKey+"+Shift+P");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return f.isFormatPanelVisible()}));m=this.addAction("outline",mxUtils.bind(this,function(){null==this.outlineWindow?(this.outlineWindow=new OutlineWindow(f,document.body.offsetWidth-260,100,180,180),this.outlineWindow.window.addListener("show",mxUtils.bind(this,function(){f.fireEvent(new mxEventObject("outline"))})),this.outlineWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("outline"))}),this.outlineWindow.window.setVisible(!0),@@ -3673,13 +3674,13 @@ w&&0<w.length&&(e.scrollCellToVisible(w[0]),e.setSelectionCells(w))}),b):(m&&(b=b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=f)try{g?e.deleteLane(f):e.deleteTableColumn(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteColumn"))),q&&(b=a.addItem(mxResources.get("insertRowBefore"),Editor.addRowAboveImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableRow(f,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowBefore")),b=a.addItem(mxResources.get("insertRowAfter"),Editor.addRowBelowImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableRow(f,!1)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowAfter")),b=a.addItem(mxResources.get("deleteRow"),Editor.removeRowImage,mxUtils.bind(this,function(){try{g?e.deleteLane(f):e.deleteTableRow(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteRow")),q=this.editorUi.getSelectionState(),null!=q.mergeCell?this.addMenuItem(a,"mergeCells"):(1<q.style.colspan||1<q.style.rowspan)&&this.addMenuItem(a,"unmergeCells")))};-Menus.prototype.addInsertTableItem=function(a,b,e,f){function h(C){m=d.getParentByName(mxEvent.getSource(C),"TD");var E=!1;if(null!=m){g=d.getParentByName(m,"TR");var D=mxEvent.isMouseEvent(C)?2:4,G=w,J=Math.min(20,g.sectionRowIndex+D);D=Math.min(20,m.cellIndex+D);for(var L=G.rows.length;L<J;L++)for(var Q=G.insertRow(L),N=0;N<G.rows[0].cells.length;N++)Q.insertCell(-1);for(L=0;L<G.rows.length;L++)for(Q=G.rows[L],N=Q.cells.length;N<D;N++)Q.insertCell(-1);z.innerHTML=m.cellIndex+1+"x"+(g.sectionRowIndex+-1);for(G=0;G<w.rows.length;G++)for(J=w.rows[G],D=0;D<J.cells.length;D++)L=J.cells[D],G==g.sectionRowIndex&&D==m.cellIndex&&(E="blue"==L.style.backgroundColor),L.style.backgroundColor=G<=g.sectionRowIndex&&D<=m.cellIndex?"blue":"transparent"}mxEvent.consume(C);return E}f=null!=f?f:!0;b=null!=b?b:mxUtils.bind(this,function(C,E,D){var G=this.editorUi.editor.graph;if(null!=G.getParentByName(mxEvent.getSource(C),"TD")&&null!=G.cellEditor.textarea){var J=G.cellEditor.textarea.getElementsByTagName("table");-C=[];for(var L=0;L<J.length;L++)C.push(J[L]);G.container.focus();L=G.pasteHtmlAtCaret;J=["<table>"];for(var Q=0;Q<E;Q++){J.push("<tr>");for(var N=0;N<D;N++)J.push("<td><br></td>");J.push("</tr>")}J.push("</table>");E=J.join("");L.call(G,E);E=G.cellEditor.textarea.getElementsByTagName("table");if(E.length==C.length+1)for(L=E.length-1;0<=L;L--)if(0==L||E[L]!=C[L-1]){G.selectNode(E[L].rows[0].cells[0]);break}}});var d=this.editorUi.editor.graph,g=null,m=null;null==e&&(a.div.className+=" geToolbarMenu",+Menus.prototype.addInsertTableItem=function(a,b,e,f){function h(C){m=d.getParentByName(mxEvent.getSource(C),"TD");var E=!1;if(null!=m){g=d.getParentByName(m,"TR");var D=mxEvent.isMouseEvent(C)?2:4,G=w,I=Math.min(20,g.sectionRowIndex+D);D=Math.min(20,m.cellIndex+D);for(var L=G.rows.length;L<I;L++)for(var Q=G.insertRow(L),N=0;N<G.rows[0].cells.length;N++)Q.insertCell(-1);for(L=0;L<G.rows.length;L++)for(Q=G.rows[L],N=Q.cells.length;N<D;N++)Q.insertCell(-1);z.innerHTML=m.cellIndex+1+"x"+(g.sectionRowIndex++1);for(G=0;G<w.rows.length;G++)for(I=w.rows[G],D=0;D<I.cells.length;D++)L=I.cells[D],G==g.sectionRowIndex&&D==m.cellIndex&&(E="blue"==L.style.backgroundColor),L.style.backgroundColor=G<=g.sectionRowIndex&&D<=m.cellIndex?"blue":"transparent"}mxEvent.consume(C);return E}f=null!=f?f:!0;b=null!=b?b:mxUtils.bind(this,function(C,E,D){var G=this.editorUi.editor.graph;if(null!=G.getParentByName(mxEvent.getSource(C),"TD")&&null!=G.cellEditor.textarea){var I=G.cellEditor.textarea.getElementsByTagName("table");+C=[];for(var L=0;L<I.length;L++)C.push(I[L]);G.container.focus();L=G.pasteHtmlAtCaret;I=["<table>"];for(var Q=0;Q<E;Q++){I.push("<tr>");for(var N=0;N<D;N++)I.push("<td><br></td>");I.push("</tr>")}I.push("</table>");E=I.join("");L.call(G,E);E=G.cellEditor.textarea.getElementsByTagName("table");if(E.length==C.length+1)for(L=E.length-1;0<=L;L--)if(0==L||E[L]!=C[L-1]){G.selectNode(E[L].rows[0].cells[0]);break}}});var d=this.editorUi.editor.graph,g=null,m=null;null==e&&(a.div.className+=" geToolbarMenu",a.labels=!1);a=a.addItem("",null,null,e,null,null,null,!0);a.firstChild.style.fontSize=Menus.prototype.defaultFontSize+"px";e=a.getElementsByTagName("td");1<e.length&&(e[1].style.display="none",e[2].style.display="none");a.firstChild.innerText="";var q=document.createElement("input");q.setAttribute("id","geTitleOption");q.setAttribute("type","checkbox");q.style.verticalAlign="middle";e=document.createElement("label");mxUtils.write(e,mxResources.get("title"));e.setAttribute("for","geTitleOption");e.style.verticalAlign="middle";mxEvent.addGestureListeners(e,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(q,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));var k=document.createElement("input");k.setAttribute("id","geContainerOption");k.setAttribute("type","checkbox");k.style.verticalAlign="middle";var u=document.createElement("label");mxUtils.write(u,mxResources.get("container"));u.setAttribute("for","geContainerOption");u.style.verticalAlign="middle";mxEvent.addGestureListeners(u,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));f&&(a.firstChild.appendChild(q),a.firstChild.appendChild(e),mxUtils.br(a.firstChild),a.firstChild.appendChild(k),a.firstChild.appendChild(u),mxUtils.br(a.firstChild));var w=function(C,E){var D=document.createElement("table");D.className="geInsertTablePicker";D.setAttribute("border","1");D.style.borderCollapse=-"collapse";D.style.borderStyle="solid";D.style.marginBottom="4px";D.style.marginTop="8px";D.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var J=D.insertRow(G),L=0;L<E;L++)J.insertCell(-1);return D}(5,5);a.firstChild.appendChild(w);var z=document.createElement("div");z.style.textAlign="center";z.style.padding="4px";z.style.width="100%";z.innerHTML="1x1";a.firstChild.appendChild(z);mxEvent.addGestureListeners(w,null,null,mxUtils.bind(this,function(C){var E=h(C);null!=m&&null!=g&&E&&(b(C,g.sectionRowIndex++"collapse";D.style.borderStyle="solid";D.style.marginBottom="4px";D.style.marginTop="8px";D.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var I=D.insertRow(G),L=0;L<E;L++)I.insertCell(-1);return D}(5,5);a.firstChild.appendChild(w);var z=document.createElement("div");z.style.textAlign="center";z.style.padding="4px";z.style.width="100%";z.innerHTML="1x1";a.firstChild.appendChild(z);mxEvent.addGestureListeners(w,null,null,mxUtils.bind(this,function(C){var E=h(C);null!=m&&null!=g&&E&&(b(C,g.sectionRowIndex+1,m.cellIndex+1,q.checked,k.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(w,"mouseover",h)};Menus.prototype.edgeStyleChange=function(a,b,e,f,h,d,g,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var q=this.editorUi.editor.graph;q.stopEditing(!1);q.getModel().beginUpdate();try{for(var k=q.getSelectionCells(),u=[],w=0;w<k.length;w++){var z=k[w];if(q.getModel().isEdge(z)){if(g){var C=q.getCellGeometry(z);null!=C&&(C=C.clone(),C.points=null,q.getModel().setGeometry(z,C))}for(var E=0;E<e.length;E++)q.setCellStyles(e[E],f[E],[z]);u.push(z)}}this.editorUi.fireEvent(new mxEventObject("styleChanged","cells",u,"keys",e,"values",f,"force",0==k.length))}finally{q.getModel().endUpdate()}}),d,h))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};@@ -3689,7 +3690,7 @@ f.autoSizeCell(h[d],!1);null!=e&&e();this.editorUi.fireEvent(new mxEventObject("Menus.prototype.promptChange=function(a,b,e,f,h,d,g,m,q,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,w=f,z=u.getView().getState(u.getSelectionCell());null!=z&&(w=z.style[h]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(E){if(null!=E&&0<E.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(h,E)}finally{u.getModel().endUpdate()}}null!=m&&m(E)}}),mxResources.get("enterValue")+(0<e.length?" "+e:""),null,null,null,null,function(){null!=m&&null!=k&&m(null)});this.editorUi.showDialog(w.container,300,80,!0,!0);w.init()}),d,q,g)};Menus.prototype.pickColor=function(a,b,e,f,h,d){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var g=this.editorUi.editor.graph;if(null!=b&&g.cellEditor.isContentEditing()){var m=g.getSelectedEditingElement();null!=m&&null!=g.cellEditor.textarea&&(m=g.getTextColor(m,"forecolor"==b),this.editorUi.pickColor(m,mxUtils.bind(this,function(k){null!=g.cellEditor.textarea&&(Graph.setTextColor(g.cellEditor.textarea,k,"forecolor"==b),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",-["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[g.cellEditor.getEditingCell()])))}),f,h,d))}else{var q=g.getView().getState(g.getSelectionCell());m=mxConstants.NONE;null!=q&&(m=q.style[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)}}))};+["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[g.cellEditor.getEditingCell()])))}),f,h,d))}else{var q=g.getCellStyle(g.getSelectionCell(),!1);m=mxConstants.NONE;null!=q&&(m=q[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)}}))};Menus.prototype.toggleStyle=function(a,b){var e=this.editorUi.editor.graph;b=e.toggleCellStyles(a,b);this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[a],"values",[b],"cells",e.getSelectionCells()))};Menus.prototype.addMenuItem=function(a,b,e,f,h,d){var g=this.editorUi.actions.get(b);return null!=g&&(a.showDisabled||g.isEnabled())&&g.visible?(b=a.addItem(d||g.label,null,mxUtils.bind(this,function(m){try{g.funct(f,m)}catch(q){this.editorUi.handleError(q)}}),e,h,g.isEnabled()),g.toggleAction&&g.isSelected()&&a.addCheckmark(b,Editor.checkmarkImage),this.addShortcut(b,g,a.hideShortcuts),b):null};Menus.prototype.addShortcut=function(a,b,e){null!=b.shortcut&&(e?a.setAttribute("title",b.shortcut):(a=a.firstChild.nextSibling.nextSibling,e=document.createElement("span"),e.style.color="gray",mxUtils.write(e,b.shortcut),a.appendChild(e)))};Menus.prototype.addMenuItems=function(a,b,e,f,h){for(var d=0;d<b.length;d++)"-"==b[d]?a.addSeparator(e):this.addMenuItem(a,b[d],e,f,null!=h?h[d]:null)};@@ -3752,15 +3753,15 @@ Toolbar.prototype.addClickHandler=function(a,b){null!=b&&(mxEvent.addListener(a,Toolbar.prototype.createButton=function(a){var b=document.createElement("a");b.className="geButton";var e=document.createElement("div");null!=a&&"data:"==a.substring(0,5)&&(e.className="geAdaptiveAsset",e.style.backgroundImage="url("+a+")",e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="18px",e.style.width="22px",e.style.height="20px");b.appendChild(e);return b};Toolbar.prototype.createLabel=function(a,b){b=document.createElement("a");b.className="geLabel";mxUtils.write(b,a);return b};Toolbar.prototype.addMenuHandler=function(a,b,e,f){if(null!=e){var h=this.editorUi.editor.graph,d=null,g=!0;mxEvent.addListener(a,"click",mxUtils.bind(this,function(m){if(g&&(null==a.enabled||a.enabled)){h.popupMenuHandler.hideMenu();d=new mxPopupMenu(e);d.smartSeparators=!0;d.div.className+=" geToolbarMenu";d.showDisabled=f;d.labels=b;d.autoExpand=!0;!b&&d.div.scrollHeight>d.div.clientHeight&&(d.div.style.width="40px");d.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(d,-arguments);this.editorUi.resetCurrentMenu();d.destroy()});var q=mxUtils.getOffset(a);d.popup(q.x,q.y+a.offsetHeight,null,m);this.editorUi.setCurrentMenu(d,a)}g=!0;mxEvent.consume(m)}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(m){g=null==d||null==d.div||null==d.div.parentNode;m.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(E,D,G){if(null==E)return[G,G,G];var J=Math.floor(E),-L=G*(1-D);E=G*(1-D*(J%2?E-J:1-(E-J)));switch(J){case 6:case 0:return[G,E,L];case 1:return[E,G,L];case 2:return[L,G,E];case 3:return[L,E,G];case 4:return[E,L,G];case 5:return[G,L,E]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var e=document.createElement("div");e.style.border="1px solid light-dark(black, white)";e.style.backgroundImage="url("+this.hsImage++arguments);this.editorUi.resetCurrentMenu();d.destroy()});var q=mxUtils.getOffset(a);d.popup(q.x,q.y+a.offsetHeight,null,m);this.editorUi.setCurrentMenu(d,a)}g=!0;mxEvent.consume(m)}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(m){g=null==d||null==d.div||null==d.div.parentNode;m.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(E,D,G){if(null==E)return[G,G,G];var I=Math.floor(E),+L=G*(1-D);E=G*(1-D*(I%2?E-I:1-(E-I)));switch(I){case 6:case 0:return[G,E,L];case 1:return[E,G,L];case 2:return[L,G,E];case 3:return[L,E,G];case 4:return[E,L,G];case 5:return[G,L,E]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var e=document.createElement("div");e.style.border="1px solid light-dark(black, white)";e.style.backgroundImage="url("+this.hsImage+")";e.style.position="absolute";e.style.overflow="hidden";e.style.cursor="crosshair";e.style.width="181px";e.style.height="101px";e.style.left="6px";e.style.top="4px";var f=document.createElement("div");f.style.background="url("+this.crossImage+")";f.style.pointerEvents="none";f.style.position="absolute";f.style.width="15px";f.style.height="15px";f.style.left="-8px";f.style.top="-8px";var h=[0,0,1];e.appendChild(f);b.appendChild(e);sliderBox=document.createElement("div");sliderBox.style.position="absolute";sliderBox.style.cursor="pointer";sliderBox.style.width="38px";sliderBox.style.height="110px";sliderBox.style.left="199px";sliderBox.style.top="4px";var d=document.createElement("div");d.style.border="1px solid light-dark(black, white)";d.style.pointerEvents="none";d.style.overflow="hidden";d.style.position="absolute";d.style.width="16px";d.style.height="101px";d.style.left="9px";d.style.top="0px";var g=!1,m=!1,q=mxUtils.bind(this,function(E){var D=Math.round(100*(1-h[1]));f.style.left=-Math.round(h[0]/6*180)-8+"px";f.style.top=D-8+"px";D=d.childNodes;for(var G=a(h[0],h[1],1),J=0;J<D.length;J++)D[J].style.backgroundColor="rgb("+G[0]*(1-J/D.length)*255+", "+G[1]*(1-J/D.length)*255+", "+G[2]*(1-J/D.length)*255+")";C.style.top=Math.round(100*(1-h[2]))-4+"px";D=a(h[0],h[1],h[2]);D="#"+("0"+Math.round(255*D[0]).toString(16)).slice(-2)+("0"+Math.round(255*D[1]).toString(16)).slice(-2)+("0"+Math.round(255*D[2]).toString(16)).slice(-2);1!=E&&this.fireEvent(new mxEventObject("change","color",+Math.round(h[0]/6*180)-8+"px";f.style.top=D-8+"px";D=d.childNodes;for(var G=a(h[0],h[1],1),I=0;I<D.length;I++)D[I].style.backgroundColor="rgb("+G[0]*(1-I/D.length)*255+", "+G[1]*(1-I/D.length)*255+", "+G[2]*(1-I/D.length)*255+")";C.style.top=Math.round(100*(1-h[2]))-4+"px";D=a(h[0],h[1],h[2]);D="#"+("0"+Math.round(255*D[0]).toString(16)).slice(-2)+("0"+Math.round(255*D[1]).toString(16)).slice(-2)+("0"+Math.round(255*D[2]).toString(16)).slice(-2);1!=E&&this.fireEvent(new mxEventObject("change","color",mxUtils.rgba2hex(D)))}),k=mxUtils.bind(this,function(E){0==h[2]&&(h[2]=1);g=!0;w(E)}),u=mxUtils.bind(this,function(E){m=!0;w(E)}),w=mxUtils.bind(this,function(E){if(g){var D=e.getBoundingClientRect(),G=mxEvent.getClientX(E)-D.left;E=mxEvent.getClientY(E)-D.top;f.style.left=G-8+"px";f.style.top=E-8+"px";G*=6/180;E=1-E/100;D=void 0;0>G&&(G=0);6<G&&(G=6);0>E&&(E=0);1<E&&(E=1);0>D&&(D=0);1<D&&(D=1);G=a(null==G?h[0]:h[0]=G,null==E?h[1]:h[1]=E,null==D?h[2]:h[2]=D);this.fromString("#"+("0"+Math.floor(255*G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(D=sliderBox.getBoundingClientRect(),E=mxEvent.getClientY(E)-D.top,h[2]=Math.max(Math.min(1,1-E/100),0),q())}),z=mxUtils.bind(this,function(){g=m=!1});mxEvent.addGestureListeners(e,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,w,z);mxEvent.addListener(b,"mouseleave",z);for(k=0;101>k;k+=4)u=document.createElement("div"),u.style.height="4px",u.style.pointerEvents="none",d.appendChild(u);b.appendChild(d);var C=document.createElement("div");C.style.background="url("+this.arrowImage+")";C.style.position="absolute";C.style.pointerEvents="none";C.style.width="7px";C.style.height="11px";C.style.left="2px";C.style.top="-3px";sliderBox.appendChild(C);sliderBox.appendChild(d);b.appendChild(sliderBox);this.fromString=function(E,D){D=null!=D?D:!1;if(null==E||""==E||mxUtils.isVarColor(E)||E==mxConstants.NONE)E="#ffffff",D=!0;var G=mxUtils.parseColor(E);-E=G.r/255;var J=G.g/255,L=G.b/255,Q=Math.min(Math.min(E,J),L);G=Math.max(Math.max(E,J),L);var N=G-Q;0===N?E=[null,0,G]:(E=E===Q?3+(L-J)/N:J===Q?5+(E-L)/N:1+(J-E)/N,E=[6===E?0:E,N/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];q(D)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";+E=G.r/255;var I=G.g/255,L=G.b/255,Q=Math.min(Math.min(E,I),L);G=Math.max(Math.max(E,I),L);var N=G-Q;0===N?E=[null,0,G]:(E=E===Q?3+(L-I)/N:I===Q?5+(E-L)/N:1+(I-E)/N,E=[6===E?0:E,N/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];q(D)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";ColorPicker.prototype.crossImage="data:image/gif;base64,R0lGODlhDwAPAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAPAA8AAAIklB8Qx53b4otSUWcvyiz4/4AeQJbmKY4p1HHapBlwPL/uVRsFADs=";ColorPicker.prototype.arrowImage="data:image/gif;base64,R0lGODlhBwALAKECAAAAAP///6g8eKg8eCH5BAEKAAIALAAAAAAHAAsAAAITTIQYcLnsgGxvijrxqdQq6DRJAQA7";var ColorDialog=function(a,b,e,f,h,d,g){function m(ca){return mxUtils.color2hex("#"+ca).substring(1).toUpperCase()}function q(){Z.src="none"==V.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ca){V.style.display=ca||"none"==V.style.display?"flex":"none";q()}function u(ca){""==ca.value&&null!=L&&N?ca.style.background=ca==P?L.dark:L.light:""==ca.value||ca.value==mxConstants.NONE||mxUtils.isVarColor(ca.value)?ca.style.background="transparent":ca.style.background="#"+ca.value;ca.style.color="transparent"==ca.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(ca.style.background)?"#ffffff":"#000000"}function w(){u(U);u(P)}function z(ca){ca?g&&null!=L?(U.value=L.light.substring(1).toUpperCase(),ca=!1):(U.value="",P.value="",T.value="automatic",U.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),P.setAttribute("title",mxResources.get("useBlackAndWhite")),U.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==U.value&&null!=L&&(U.value=L.light.substring(1).toUpperCase()),@@ -3768,7 +3769,7 @@ U.removeAttribute("placeholder"),U.removeAttribute("title"),""==P.value&&null!=Lz(!1),ca!=P||U.value==mxConstants.NONE&&P.value==mxConstants.NONE||(T.value="custom"),ca==U&&"automatic"==T.value&&(U.value==mxConstants.NONE?P.value=mxConstants.NONE:mxUtils.isVarColor(U.value)?P.value=U.value:P.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+ca.value)).substring(1).toUpperCase()),w()):ia.click()}function E(){var ca=U.value,H=P.value;if(N&&null!=L||(/(^#?[a-zA-Z0-9]*$)/.test(ca)||mxUtils.isVarColor(ca))&&(/(^#?[a-zA-Z0-9]*$)/.test(H)||mxUtils.isVarColor(H))){if(N)ca="default";else if(""==ca&&(ca=mxConstants.NONE),""==H&&(H=mxConstants.NONE),ca==mxConstants.NONE||mxUtils.isVarColor(ca)||"#"==ca.charAt(0)||(ca="#"+m(ca)),H==mxConstants.NONE||mxUtils.isVarColor(H)||"#"==H.charAt(0)||(H="#"+m(H)),ca!=mxConstants.NONE&&H!=mxConstants.NONE||ColorDialog.addRecentColor(mxConstants.NONE,12),"automatic"!=T.value&&H!=mxConstants.NONE?ca==mxConstants.NONE?ColorDialog.addRecentColor(H.substring(1),12):ColorDialog.addRecentColor("light-dark("+ca+","+H+")",12):ca!=mxConstants.NONE&&ColorDialog.addRecentColor(ca.substring(1),12),"none"!=ca||"none"!=H)ca=ca==mxConstants.NONE?"transparent":ca,H=H==mxConstants.NONE?"transparent":H,g||"automatic"==T.value||(ca="light-dark("+ca+","+H+")");oa(ca);a.hideDialog()}else a.handleError({message:mxResources.get("invalidInput")})}function D(){mxClient.IS_TOUCH||(O.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?O.select():document.execCommand("selectAll",!1,null))}function G(){var ca=ba(0==ColorDialog.recentColors.length?-["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ca.style.marginBottom="8px";return ca}function J(ca){13==ca.keyCode&&(C(mxEvent.getSource(ca)),E())}var L=null!=d?mxUtils.getLightDarkColor(d,null,null,g):null,Q=a.editor.graph;this.editorUi=a;var N=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||mxUtils.isVarColor(b)||mxUtils.isHexColor(b)||mxUtils.isRgbColor(b)||mxUtils.isLightDarkColor(b)||(b=mxUtils.color2hex(b));var U=document.createElement("input");U.style.textOverflow="ellipsis";U.style.margin=+["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ca.style.marginBottom="8px";return ca}function I(ca){13==ca.keyCode&&(C(mxEvent.getSource(ca)),E())}var L=null!=d?mxUtils.getLightDarkColor(d,null,null,g):null,Q=a.editor.graph;this.editorUi=a;var N=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||mxUtils.isVarColor(b)||mxUtils.isHexColor(b)||mxUtils.isRgbColor(b)||mxUtils.isLightDarkColor(b)||(b=mxUtils.color2hex(b));var U=document.createElement("input");U.style.textOverflow="ellipsis";U.style.margin="0 0 0 4px";U.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var Y=document.createElement("div");Y.style.display="flex";Y.style.alignItems="center";d.appendChild(Y);var P=document.createElement("input");P.style.textOverflow="ellipsis";P.style.margin="0 4px";P.style.maxWidth="60px";P.style.width="100%";var T=document.createElement("select");T.style.textOverflow="ellipsis";T.style.width="100%";var K=document.createElement("option");K.setAttribute("value","automatic");mxUtils.write(K,mxResources.get("automatic"));T.appendChild(K);K=document.createElement("option");K.setAttribute("value","custom");mxUtils.write(K,mxResources.get("userDefined"));T.appendChild(K);T.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var V=document.createElement("div");V.style.padding="0 6px 0 6px";K=document.createElement("img");K.setAttribute("title",mxResources.get("dark"));K.className="geAdaptiveAsset";K.src=Editor.thinDarkImage;K.style.width="20px";V.appendChild(K);mxEvent.addListener(K,"click",function(){P.focus()});V.appendChild(P);V.appendChild(T);V.style.display="flex";V.style.alignItems="center";K=document.createElement("div");K.style.display="flex";K.style.alignItems="center";K.style.userSelect="none";K.style.cursor="pointer";K.style.padding="2px 0 2px 0";var Z=document.createElement("img");Z.setAttribute("title",mxResources.get("dark"));Z.className="geAdaptiveAsset";Z.style.marginLeft="-2px";K.appendChild(Z);mxUtils.write(K,mxResources.get("advanced"));q();mxEvent.addListener(K,"click",@@ -3785,16 +3786,16 @@ E));var da=document.createElement("input");da.setAttribute("type","color");da.st"relative";K.style.verticalAlign="middle";K.style.marginTop="-2px";K.style.width="auto";K.style.height="14px";Q.appendChild(K);Y.appendChild(Q);e.appendChild(d);mxEvent.addListener(da,"change",function(){sa.fromString(da.value)});g||e.appendChild(V);G();d=ba(this.presetColors);d.style.marginBottom="8px";d=ba(this.defaultColors);d.style.marginBottom="16px";e.appendChild(X);d=document.createElement("div");d.style.display="flex";d.style.whiteSpace="nowrap";d.style.alignItems="center";d.style.justifyContent="end";a.isOffline()||d.appendChild(a.createHelpIcon("https://github.com/jgraph/drawio/discussions/4713"));Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=f&&f()});Y.className="geBtn";a.editor.cancelFirst&&d.appendChild(Y);Q=mxUtils.button(mxResources.get("apply"),E);Q.className="geBtn gePrimaryBtn";d.appendChild(Q);a.editor.cancelFirst||d.appendChild(Y);null!=b&&("default"==b?ia.click():(Y=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==Y.light?U.value=mxConstants.NONE:mxUtils.isVarColor(Y.light)?U.value=Y.light:(mxUtils.isRgbColor(Y.light)?Y.light=mxUtils.rgba2hex(Y.light):mxUtils.isHexColor(Y.light)||(Y.light="#"+m(Y.light)),U.value=Y.light.substring(1).toUpperCase()),b==mxConstants.NONE||"transparent"==Y.dark?P.value=mxConstants.NONE:mxUtils.isVarColor(Y.dark)?P.value=Y.dark:(mxUtils.isRgbColor(Y.dark)?Y.dark=mxUtils.rgba2hex(Y.dark):mxUtils.isHexColor(Y.dark)||(Y.dark="#"+m(Y.dark)),P.value=Y.dark.substring(1).toUpperCase()),sa.fromString(O.value,-!0),w()));g||!ColorDialog.collapsed||"automatic"!=T.value||Editor.isDarkMode()||(V.style.display="none",q());e.appendChild(d);this.picker=sa;this.colorInput=U;mxEvent.addListener(U,"keypress",J);mxEvent.addListener(P,"keypress",J);mxEvent.addListener(e,"keydown",function(ca){27==ca.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(ca))});this.container=e};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");+!0),w()));g||!ColorDialog.collapsed||"automatic"!=T.value||Editor.isDarkMode()||(V.style.display="none",q());e.appendChild(d);this.picker=sa;this.colorInput=U;mxEvent.addListener(U,"keypress",I);mxEvent.addListener(P,"keypress",I);mxEvent.addListener(e,"keydown",function(ca){27==ca.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(ca))});this.container=e};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");ColorDialog.prototype.colorNames={};ColorDialog.prototype.defaultColors="none FFFFFF E6E6E6 CCCCCC B3B3B3 999999 808080 666666 4D4D4D 333333 1A1A1A 000000 FFCCCC FFE6CC FFFFCC E6FFCC CCFFCC CCFFE6 CCFFFF CCE5FF CCCCFF E5CCFF FFCCFF FFCCE6 FF9999 FFCC99 FFFF99 CCFF99 99FF99 99FFCC 99FFFF 99CCFF 9999FF CC99FF FF99FF FF99CC FF6666 FFB366 FFFF66 B3FF66 66FF66 66FFB3 66FFFF 66B2FF 6666FF B266FF FF66FF FF66B3 FF3333 FF9933 FFFF33 99FF33 33FF33 33FF99 33FFFF 3399FF 3333FF 9933FF FF33FF FF3399 FF0000 FF8000 FFFF00 80FF00 00FF00 00FF80 00FFFF 007FFF 0000FF 7F00FF FF00FF FF0080 CC0000 CC6600 CCCC00 66CC00 00CC00 00CC66 00CCCC 0066CC 0000CC 6600CC CC00CC CC0066 990000 994C00 999900 4D9900 009900 00994D 009999 004C99 000099 4C0099 990099 99004D 660000 663300 666600 336600 006600 006633 006666 003366 000066 330066 660066 660033 330000 331A00 333300 1A3300 003300 00331A 003333 001933 000033 190033 330033 33001A".split(" ");ColorDialog.prototype.createApplyFunction=function(){return ColorDialog.createApplyFunction(this.editorUi,this.currentColorKey)};ColorDialog.createApplyFunction=function(a,b){return function(e){var f=a.editor.graph;f.getModel().beginUpdate();try{f.setCellStyles(b,e),a.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[e],"cells",f.getSelectionCells()))}finally{f.getModel().endUpdate()}}};ColorDialog.recentColors=[];ColorDialog.addRecentColor=function(a,b){null!=a&&(mxUtils.remove(a,ColorDialog.recentColors),ColorDialog.recentColors.splice(0,0,a),ColorDialog.recentColors.length>=b&&ColorDialog.recentColors.pop())};ColorDialog.resetRecentColors=function(){ColorDialog.recentColors=[]};ColorDialog.collapsed=!0;var AboutDialog=function(a){var b=document.createElement("div");b.setAttribute("align","center");var e=document.createElement("h3");mxUtils.write(e,mxResources.get("about")+" GraphEditor");b.appendChild(e);e=document.createElement("img");e.style.border="0px";e.setAttribute("width","176");e.setAttribute("width","151");e.setAttribute("src",IMAGE_PATH+"/logo.png");b.appendChild(e);mxUtils.br(b);mxUtils.write(b,"Powered by mxGraph "+mxClient.VERSION);mxUtils.br(b);e=document.createElement("a");e.setAttribute("href","http://www.jgraph.com/");e.setAttribute("target","_blank");mxUtils.write(e,"www.jgraph.com");b.appendChild(e);mxUtils.br(b);mxUtils.br(b);e=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});e.className="geBtn gePrimaryBtn";b.appendChild(e);this.container=b},TextareaDialog=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C,E){k=null!=k?k:!1;g=document.createElement("div");g.style.position="absolute";g.style.top="20px";g.style.bottom="20px";g.style.left="20px";g.style.right="20px";m=document.createElement("div");-m.style.position="absolute";m.style.left="0px";m.style.right="0px";var D=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";D.style.top="20px";D.style.bottom="64px";G.style.bottom="0px";G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);g.appendChild(m);g.appendChild(D);g.appendChild(G);null!=E&&m.appendChild(E);var J=document.createElement("textarea");u?J.setAttribute("wrap","off"):J.style.wordBreak="break-all";-J.setAttribute("spellcheck","false");J.setAttribute("autocorrect","off");J.setAttribute("autocomplete","off");J.setAttribute("autocapitalize","off");mxUtils.write(J,e||"");J.style.resize="none";J.style.outline="none";J.style.position="absolute";J.style.boxSizing="border-box";J.style.top="0px";J.style.left="0px";J.style.height="100%";J.style.width="100%";this.textarea=J;this.init=function(){J.focus();J.scrollTop=0};D.appendChild(J);null==z||a.isOffline()||G.appendChild(a.createHelpIcon(z));if(null!=-C)for(b=0;b<C.length;b++)(function(Q,N,U){Q=mxUtils.button(Q,function(Y){N(Y,J)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=h&&h()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=q&&q(G,J);if(null!=f){var L=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();f(J.value)});L.setAttribute("title",-"Ctrl+Enter");L.className="geBtn gePrimaryBtn";G.appendChild(L);mxEvent.addListener(J,"keydown",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&L.click()})}a.editor.cancelFirst||G.appendChild(d);this.container=g},EditDiagramDialog=function(a){var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.setAttribute("wrap","off");e.setAttribute("spellcheck","false");e.setAttribute("autocorrect","off");e.setAttribute("autocomplete","off");e.setAttribute("autocapitalize",+m.style.position="absolute";m.style.left="0px";m.style.right="0px";var D=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";D.style.top="20px";D.style.bottom="64px";G.style.bottom="0px";G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);g.appendChild(m);g.appendChild(D);g.appendChild(G);null!=E&&m.appendChild(E);var I=document.createElement("textarea");u?I.setAttribute("wrap","off"):I.style.wordBreak="break-all";+I.setAttribute("spellcheck","false");I.setAttribute("autocorrect","off");I.setAttribute("autocomplete","off");I.setAttribute("autocapitalize","off");mxUtils.write(I,e||"");I.style.resize="none";I.style.outline="none";I.style.position="absolute";I.style.boxSizing="border-box";I.style.top="0px";I.style.left="0px";I.style.height="100%";I.style.width="100%";this.textarea=I;this.init=function(){I.focus();I.scrollTop=0};D.appendChild(I);null==z||a.isOffline()||G.appendChild(a.createHelpIcon(z));if(null!=+C)for(b=0;b<C.length;b++)(function(Q,N,U){Q=mxUtils.button(Q,function(Y){N(Y,I)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=h&&h()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=q&&q(G,I);if(null!=f){var L=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();f(I.value)});L.setAttribute("title",+"Ctrl+Enter");L.className="geBtn gePrimaryBtn";G.appendChild(L);mxEvent.addListener(I,"keydown",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&L.click()})}a.editor.cancelFirst||G.appendChild(d);this.container=g},EditDiagramDialog=function(a){var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.setAttribute("wrap","off");e.setAttribute("spellcheck","false");e.setAttribute("autocorrect","off");e.setAttribute("autocomplete","off");e.setAttribute("autocapitalize","off");e.style.overflow="auto";e.style.resize="none";e.style.width="600px";e.style.height="360px";e.style.marginBottom="16px";var f=a.getDiagramSnapshot();e.value=mxUtils.getPrettyXml(f.node);b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(m){m.stopPropagation();m.preventDefault()},!1),e.addEventListener("drop",function(m){m.stopPropagation();m.preventDefault();if(0<m.dataTransfer.files.length){m=m.dataTransfer.files[0];var q=new FileReader;q.onload=function(k){e.value=k.target.result};q.readAsText(m)}else e.value=a.extractGraphModelFromEvent(m)},!1));var h=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});h.className="geBtn";a.editor.cancelFirst&&b.appendChild(h);var d=document.createElement("select");d.style.textOverflow="ellipsis";d.style.width="196px";d.className="geBtn";if(a.editor.graph.isEnabled()){var g=document.createElement("option");g.setAttribute("value","apply");mxUtils.write(g,mxResources.get("apply",null,"Update Existing Drawing"));d.appendChild(g)}a.editor.graph.isEnabled()&&(g=document.createElement("option"),g.setAttribute("value","insert"),mxUtils.write(g,mxResources.get("insert")),d.appendChild(g));g=document.createElement("option");g.setAttribute("value","new");mxUtils.write(g,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&d.appendChild(g);b.appendChild(d);g=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(e.value)),q=null;@@ -3808,11 +3809,11 @@ k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(kk=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("zoom")+" (%):");h.appendChild(k);var z=document.createElement("input");z.setAttribute("type","number");z.setAttribute("value","100");z.style.width="180px";k=document.createElement("td");k.appendChild(z);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("width")+":");h.appendChild(k);var C=document.createElement("input");C.setAttribute("value",g);C.style.width="180px";k=document.createElement("td");k.appendChild(C);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");h.appendChild(k);var E=document.createElement("input");E.setAttribute("value",m);E.style.width="180px";k=document.createElement("td");k.appendChild(E);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");h.appendChild(k);var D=document.createElement("select");D.style.width="180px";k=document.createElement("option");k.setAttribute("value","100");mxUtils.write(k,"100dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","200");mxUtils.write(k,"200dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","300");mxUtils.write(k,"300dpi");D.appendChild(k);k=document.createElement("option");-k.setAttribute("value","400");mxUtils.write(k,"400dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));D.appendChild(k);var G=document.createElement("input");G.style.width="180px";G.style.display="none";G.setAttribute("value","100");G.setAttribute("type","number");G.setAttribute("min","50");G.setAttribute("step","50");var J=!1;mxEvent.addListener(D,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display=-"",G.focus()):(G.value=this.value,J||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var P=parseInt(G.value);isNaN(P)||0>=P?G.style.backgroundColor="red":(G.style.backgroundColor="",J||(z.value=P))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");h.appendChild(k);var L=document.createElement("input");+k.setAttribute("value","400");mxUtils.write(k,"400dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));D.appendChild(k);var G=document.createElement("input");G.style.width="180px";G.style.display="none";G.setAttribute("value","100");G.setAttribute("type","number");G.setAttribute("min","50");G.setAttribute("step","50");var I=!1;mxEvent.addListener(D,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display=+"",G.focus()):(G.value=this.value,I||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var P=parseInt(G.value);isNaN(P)||0>=P?G.style.backgroundColor="red":(G.style.backgroundColor="",I||(z.value=P))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");h.appendChild(k);var L=document.createElement("input");L.setAttribute("type","checkbox");L.checked=null==f.background||f.background==mxConstants.NONE;k=document.createElement("td");k.appendChild(L);mxUtils.write(k,mxResources.get("transparent"));h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");h.appendChild(k);var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.checked=!1;k=document.createElement("td");k.appendChild(Q);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");h.appendChild(k);var N=document.createElement("input");N.setAttribute("type","number");N.setAttribute("value",ExportDialog.lastBorderValue);N.style.width="180px";k=document.createElement("td");k.appendChild(N);h.appendChild(k);q.appendChild(h);d.appendChild(q);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(z,"change",-function(){J=!0;var P=Math.max(0,parseFloat(z.value)||100)/100;z.value=parseFloat((100*P).toFixed(2));0<g?(C.value=Math.floor(g*P),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(C,"change",function(){var P=parseInt(C.value)/g;0<P?(z.value=parseFloat((100*P).toFixed(2)),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(E,"change",function(){var P=parseInt(E.value)/m;0<P?(z.value=parseFloat((100*P).toFixed(2)),C.value=Math.floor(g*+function(){I=!0;var P=Math.max(0,parseFloat(z.value)||100)/100;z.value=parseFloat((100*P).toFixed(2));0<g?(C.value=Math.floor(g*P),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(C,"change",function(){var P=parseInt(C.value)/g;0<P?(z.value=parseFloat((100*P).toFixed(2)),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(E,"change",function(){var P=parseInt(E.value)/m;0<P?(z.value=parseFloat((100*P).toFixed(2)),C.value=Math.floor(g*P)):(z.value="100",C.value=g,E.value=m);e()});h=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var U=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(z.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var P=u.value,T=w.value,K=Math.max(0,parseFloat(z.value)||100)/100,V=Math.max(0,parseInt(N.value)),Z=f.background,ia=Math.max(1,parseInt(G.value));if(("svg"==T||"png"==T||"pdf"==T)&&L.checked)Z=null;else if(null==Z||Z==mxConstants.NONE)Z="#ffffff";ExportDialog.lastBorderValue=V;ExportDialog.exportFile(a,P,T,Z,K,V,ia,Q.checked)}}));U.className="geBtn gePrimaryBtn";var Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});Y.className="geBtn";a.editor.cancelFirst?(k.appendChild(Y),k.appendChild(U)):(k.appendChild(U),k.appendChild(Y));h.appendChild(k);q.appendChild(h);d.appendChild(q);this.container=d};ExportDialog.lastBorderValue=0;ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;@@ -3822,7 +3823,7 @@ ExportDialog.saveLocalFile=function(a,b,e,f){b.length<MAX_REQUEST_SIZE?(a.hideDivar EditDataDialog=function(a,b){function e(){0<N.value.length?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")}var f=document.createElement("div"),h=a.editor.graph,d=h.getModel().getValue(b);if(!mxUtils.isNode(d)){var g=mxUtils.createXmlDocument().createElement("object");g.setAttribute("label",d||"");d=g}var m={};try{var q=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=q&&(m=JSON.parse(q))}catch(P){}var k=new mxForm("properties");k.table.style.width="100%";var u=d.attributes,w=[],z=[],C=0,E=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,D=function(P,T){var K=document.createElement("div");K.style.position="relative";K.style.paddingRight="20px";K.style.boxSizing="border-box";K.style.width="100%";var V=document.createElement("a"),Z=mxUtils.createImage(Dialog.prototype.closeImage);Z.style.height="9px";Z.style.fontSize="9px";Z.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";V.className="geButton";V.setAttribute("title",mxResources.get("delete"));V.style.position="absolute";V.style.top="4px";V.style.right="0px";V.style.margin="0px";V.style.width="9px";V.style.height="9px";V.style.cursor="pointer";V.appendChild(Z);T=function(ia){return function(){for(var oa=0,sa=0;sa<w.length;sa++){if(w[sa]==ia){z[sa]=null;k.table.deleteRow(oa+(null!=E?1:0));break}null!=z[sa]&&oa++}}}(T);mxEvent.addListener(V,"click",T);T=P.parentNode;K.appendChild(P);K.appendChild(V);T.appendChild(K)};g=function(P,T,K){w[P]=T;z[P]=k.addTextarea(w[C]+-":",K,2);z[P].style.width="100%";0<K.indexOf("\n")&&z[P].setAttribute("rows","2");D(z[P],T);null!=m[T]&&0==m[T].editable&&z[P].setAttribute("disabled","disabled")};q=[];for(var G=h.getModel().getParent(b)==h.getModel().getRoot(),J=h.getCellStyle(b),L=0;L<u.length;L++)("label"!=u[L].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[L].nodeName&&q.push({name:u[L].nodeName,value:u[L].nodeValue});q.sort(function(P,T){return"label"==P.name?1:"label"==T.name?-1:P.name<T.name?-1:P.name>+":",K,2);z[P].style.width="100%";0<K.indexOf("\n")&&z[P].setAttribute("rows","2");D(z[P],T);null!=m[T]&&0==m[T].editable&&z[P].setAttribute("disabled","disabled")};q=[];for(var G=h.getModel().getParent(b)==h.getModel().getRoot(),I=h.getCellStyle(b),L=0;L<u.length;L++)("label"!=u[L].nodeName||"1"==I.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[L].nodeName&&q.push({name:u[L].nodeName,value:u[L].nodeValue});q.sort(function(P,T){return"label"==P.name?1:"label"==T.name?-1:P.name<T.name?-1:P.name>T.name?1:0});if(null!=E){u=document.createElement("div");u.style.width="100%";u.style.fontSize="11px";u.style.textAlign="center";mxUtils.write(u,E);var Q=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(P){P=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(T){if(null!=T&&0<T.length&&T!=E)if(h.model.isRoot(b)){var K=a.getPageById(E);if(null!=K)if(null==a.getPageById(T)){var V=a.getPageIndex(K);0<=V&&(a.removePage(K),K.node.setAttribute("id",T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),a.insertPage(K,V))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(T)?(h.getModel().cellRemoved(b),b.setId(T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[T])})}),mxResources.get("id"));a.showDialog(P.container,300,80,!0,!0);P.init()})}for(L=0;L<q.length;L++)g(C,q[L].name,q[L].value),C++;q=document.createElement("div");q.style.position="absolute";q.style.top="30px";q.style.left="30px";q.style.right="30px";q.style.bottom="80px";q.style.overflowY="auto";q.appendChild(k.table);g=document.createElement("div");g.style.display="flex";g.style.alignItems="center";g.style.boxSizing="border-box";g.style.paddingRight="160px";g.style.whiteSpace="nowrap";g.style.marginTop="6px";g.style.width="100%";var N=document.createElement("input");N.setAttribute("placeholder",mxResources.get("enterPropertyName"));N.setAttribute("type",@@ -3831,7 +3832,7 @@ q.style.position="absolute";q.style.top="30px";q.style.left="30px";q.style.rightU.style.position="absolute";U.style.overflow="hidden";U.style.width="144px";U.style.right="0px";U.className="geBtn";g.appendChild(U);q=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});q.setAttribute("title","Escape");q.className="geBtn";g=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(P){var T=h.getDataForCells([b],!0);P=new EmbedDialog(a,JSON.stringify(T,null,2),null,null,function(){console.log(T);a.alert("Written to Console (Dev Tools)")},mxResources.get("export"),null,"Console","data.json");a.showDialog(P.container,450,240,!0,!0);P.init()}));g.setAttribute("title",mxResources.get("export"));g.className="geBtn";var Y=mxUtils.button(mxResources.get("apply"),function(){try{a.hideDialog.apply(a,arguments);d=d.cloneNode(!0);for(var P=!1,T=0;T<w.length;T++)null==z[T]?d.removeAttribute(w[T]):(d.setAttribute(w[T],z[T].value),P=P||"placeholder"==w[T]&&"1"==d.getAttribute("placeholders"));P&&d.removeAttribute("label");h.getModel().setValue(b,d)}catch(K){mxUtils.alert(K)}});Y.setAttribute("title","Ctrl+Enter");Y.className="geBtn gePrimaryBtn";mxEvent.addListener(f,"keydown",function(P){13==P.keyCode&&mxEvent.isControlDown(P)&&Y.click()});mxEvent.addListener(N,"keyup",e);mxEvent.addListener(N,"change",e);u=document.createElement("div");u.style.cssText="position:absolute;left:30px;right:30px;text-align:right;bottom:30px;height:40px;";if(a.editor.graph.getModel().isVertex(b)||a.editor.graph.getModel().isEdge(b))G=document.createElement("span"),-G.style.marginRight="10px",J=document.createElement("input"),J.setAttribute("type","checkbox"),J.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(J.setAttribute("checked","checked"),J.defaultChecked=!0),mxEvent.addListener(J,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):d.setAttribute("placeholders","1")}),G.appendChild(J),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),+G.style.marginRight="10px",I=document.createElement("input"),I.setAttribute("type","checkbox"),I.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(I.setAttribute("checked","checked"),I.defaultChecked=!0),mxEvent.addListener(I,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):d.setAttribute("placeholders","1")}),G.appendChild(I),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),u.appendChild(G);a.editor.cancelFirst&&u.appendChild(q);u.appendChild(g);u.appendChild(Y);a.editor.cancelFirst||u.appendChild(q);f.appendChild(u);this.container=f};EditDataDialog.getDisplayIdForCell=function(a,b){var e=null;null!=a.editor.graph.getModel().getParent(b)&&(e=b.getId());return e};EditDataDialog.placeholderHelpLink=null;var LinkDialog=function(a,b,e,f){var h=document.createElement("div");mxUtils.write(h,mxResources.get("editLink")+":");var d=document.createElement("div");d.className="geTitle";d.style.backgroundColor="transparent";d.style.borderColor="transparent";d.style.whiteSpace="nowrap";d.style.textOverflow="clip";d.style.cursor="default";d.style.paddingRight="20px";var g=document.createElement("input");g.setAttribute("value",b);g.setAttribute("placeholder","http://www.example.com/");g.setAttribute("type","text");g.style.marginTop="6px";g.style.width="400px";g.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";g.style.backgroundRepeat="no-repeat";g.style.backgroundPosition="100% 50%";g.style.paddingRight="14px";b=document.createElement("div");b.setAttribute("title",mxResources.get("reset"));b.style.position="relative";b.style.left="-16px";b.style.width="12px";b.style.height="14px";b.style.cursor="pointer";b.style.display="inline-block";b.style.top="3px";b.style.background="url("+IMAGE_PATH+"/transparent.gif)";@@ -3848,13 +3849,13 @@ q.removeSelectionCells(q.getModel().getDescendants(oa));mxEvent.consume(H)}});X."block",ia.style.textAlign="right",ia.style.whiteSpace="nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<Z&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toBack")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="▼",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,Z-1);mxEvent.consume(H)})),0<=Z&&Z<C-1&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toFront")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="▲",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,Z+1);mxEvent.consume(H)})),O.appendChild(ia);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&(O.setAttribute("draggable","true"),O.style.cursor="move")}mxEvent.addListener(O,"dblclick",function(H){var ea=mxEvent.getSource(H).nodeName;"INPUT"!=ea&&"IMG"!=ea&&"true"!=ba.contentEditable&&(m(oa),mxEvent.consume(H))});q.getDefaultParent()==oa&&(O.classList.add("geActivePage"),O.style.fontWeight=q.isEnabled()?"bold":"",E=oa);mxEvent.addListener(O,"click",function(H){q.isEnabled()&&"true"!=ba.contentEditable&&(q.setDefaultParent(sa),q.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&q.setSelectionCells(oa.children),-mxEvent.consume(H))});u.appendChild(O)}q.isEnabled()?(J.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(J.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=q.model.getChildCount(q.model.root);u.innerText="";N.clear();for(var K=C-1;0<=K;K--)mxUtils.bind(this,function(Z){T(K,q.convertValueToString(Z)||mxResources.get("background"),Z,Z)})(q.model.getChildAt(q.model.root,-K));var V=q.convertValueToString(E)||mxResources.get("background");J.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));q.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(T){if(q.isEnabled()&&null!=T){var K=N.get(T);if(null!=K){var V=K.getElementsByTagName("span");if(null!=V&&0<V.length){var Z=V[0],ia=mxUtils.getTextContent(Z);Z.style.textOverflow="";Z.style.cursor="text";Z.contentEditable="true";Z.focus();document.execCommand("selectAll",+mxEvent.consume(H))});u.appendChild(O)}q.isEnabled()?(I.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(I.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=q.model.getChildCount(q.model.root);u.innerText="";N.clear();for(var K=C-1;0<=K;K--)mxUtils.bind(this,function(Z){T(K,q.convertValueToString(Z)||mxResources.get("background"),Z,Z)})(q.model.getChildAt(q.model.root,+K));var V=q.convertValueToString(E)||mxResources.get("background");I.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));q.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(T){if(q.isEnabled()&&null!=T){var K=N.get(T);if(null!=K){var V=K.getElementsByTagName("span");if(null!=V&&0<V.length){var Z=V[0],ia=mxUtils.getTextContent(Z);Z.style.textOverflow="";Z.style.cursor="text";Z.contentEditable="true";Z.focus();document.execCommand("selectAll",!1,null);K.removeAttribute("draggable");K.style.cursor="";var oa=function(sa){if("true"==Z.contentEditable){Z.contentEditable="false";var O=mxUtils.getTextContent(Z);sa&&O!=ia?(O=mxUtils.getTextContent(Z),0<O.length?q.cellLabelChanged(T,O):q.cellLabelChanged(T,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(Z,"keydown",function(sa){if(13==sa.keyCode||27==sa.keyCode)oa(13==sa.keyCode),mxEvent.consume(sa)});mxEvent.addListener(Z,"blur",function(sa){oa(!0);mxEvent.consume(sa)})}}}}var q=a.editor.graph,k=document.createElement("div");k.style.userSelect="none";k.style.height="100%";k.style.marginBottom="10px";k.style.overflow="auto";var u=document.createElement("div");u.style.position="absolute";u.style.overflow="auto";u.style.left="0px";u.style.right="0px";u.style.top="0px";u.style.bottom=parseInt("26px")+7+"px";k.appendChild(u);var w=null,z=null;mxEvent.addListener(k,"dragover",function(T){T.dataTransfer.dropEffect="move";z=0;T.stopPropagation();T.preventDefault()});mxEvent.addListener(k,"drop",function(T){T.stopPropagation();T.preventDefault()});var C=null,E=null,D=document.createElement("div");D.className="geToolbarContainer";D.style.position="absolute";D.style.bottom="0px";D.style.left="0px";D.style.right="0px";D.style.height="26px";D.style.overflow="hidden";D.style.padding="3px 4px 4px 4px";D.style.borderWidth="1px 0px 0px 0px";D.style.borderStyle="solid";D.style.display="block";D.style.whiteSpace="nowrap";var G=document.createElement("a");G.className="geToolbarButton geAdaptiveAsset geToggleItem";-G.style.width="16px";G.style.height="18px";G.style.backgroundPosition="center center";G.style.backgroundRepeat="no-repeat";G.style.backgroundSize="20px";G.style.margin="0 2px";G.style.display="inline-block";G.style.cursor="pointer";var J=G.cloneNode(!1);J.style.backgroundImage="url("+Editor.trashImage+")";J.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(J,"click",function(T){if(q.isEnabled()){q.model.beginUpdate();try{var K=q.model.root.getIndex(E);q.removeCells([E],!1);-0==q.model.getChildCount(q.model.root)?(q.model.add(q.model.root,new mxCell),q.setDefaultParent(null)):0<K&&K<=q.model.getChildCount(q.model.root)?q.setDefaultParent(q.model.getChildAt(q.model.root,K-1)):q.setDefaultParent(null)}finally{q.model.endUpdate()}}mxEvent.consume(T)});q.isEnabled()||J.classList.add("mxDisabled");D.appendChild(J);var L=G.cloneNode();L.style.backgroundImage="url("+Editor.layersImage+")";L.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(L,+G.style.width="16px";G.style.height="18px";G.style.backgroundPosition="center center";G.style.backgroundRepeat="no-repeat";G.style.backgroundSize="20px";G.style.margin="0 2px";G.style.display="inline-block";G.style.cursor="pointer";var I=G.cloneNode(!1);I.style.backgroundImage="url("+Editor.trashImage+")";I.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(I,"click",function(T){if(q.isEnabled()){q.model.beginUpdate();try{var K=q.model.root.getIndex(E);q.removeCells([E],!1);+0==q.model.getChildCount(q.model.root)?(q.model.add(q.model.root,new mxCell),q.setDefaultParent(null)):0<K&&K<=q.model.getChildCount(q.model.root)?q.setDefaultParent(q.model.getChildAt(q.model.root,K-1)):q.setDefaultParent(null)}finally{q.model.endUpdate()}}mxEvent.consume(T)});q.isEnabled()||I.classList.add("mxDisabled");D.appendChild(I);var L=G.cloneNode();L.style.backgroundImage="url("+Editor.layersImage+")";L.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(L,"click",function(T){if(q.isEnabled()&&!q.isSelectionEmpty()){var K=mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(V,Z){for(var ia=q.getLayerForCells(q.getSelectionCells()),oa=C-1;0<=oa;oa--)mxUtils.bind(this,function(sa){var O="1"==mxUtils.getValue(q.getCurrentCellStyle(sa),"locked","0"),X=V.addItem(q.convertValueToString(sa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||q.moveCells(q.getSelectionCells(),0,0,!1,sa)}),Z,null,null,!O);O?V.addCheckmark(X,Editor.lockedImage):sa==ia&&V.addCheckmark(X,Editor.checkmarkImage)})(q.model.getChildAt(q.model.root,oa))}),K.x,K.y+L.offsetHeight,T)}});D.appendChild(L);var Q=G.cloneNode(!1);Q.style.backgroundImage="url("+Editor.editImage+")";Q.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(Q,"click",function(T){q.isEnabled()&&a.showDataDialog(E);mxEvent.consume(T)});q.isEnabled()||Q.classList.add("mxDisabled");D.appendChild(Q);var N=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,"click",function(T){if(q.isEnabled()){T=null;q.model.beginUpdate();try{T=q.cloneCell(E),q.cellLabelChanged(T,mxResources.get("untitledLayer")),T.setVisible(!0),T=q.addCell(T,q.model.root),q.setDefaultParent(T)}finally{q.model.endUpdate()}null==T||q.isCellLocked(T)||q.selectAll(T)}});q.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",@@ -12539,10 +12540,10 @@ mxResources.get("find")+" (Enter)");q.style.float="none";q.style.width="120px";q"8px";T.style.overflow="hidden";T.style.textOverflow="ellipsis";T.className="geBtn gePrimaryBtn";T.setAttribute("disabled","disabled");J.appendChild(T);mxUtils.br(J);J.appendChild(O);O=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));O.setAttribute("title",mxResources.get("close"));O.style.float="none";O.style.width="120px";O.style.marginTop="6px";O.style.marginLeft="8px";O.style.overflow="hidden";O.style.textOverflow="ellipsis";O.className="geBtn";J.appendChild(O);mxUtils.br(J);J.appendChild(y)}else O.style.width="90px",q.style.width="90px";mxEvent.addListener(D,"keyup",function(m){if(91==m.keyCode||93==m.keyCode||17==m.keyCode)mxEvent.consume(m);else if(27==m.keyCode)H.funct();else if(K!=D.value.toLowerCase()||13==m.keyCode)try{D.style.backgroundColor=F()?"":"light-dark(#ffcfcf, #ff0000)"}catch(z){D.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(A,"keydown",function(m){70==m.keyCode&&b.keyHandler.isControlDown(m)&&!mxEvent.isShiftDown(m)&&(H.funct(),mxEvent.consume(m))});this.window=new mxWindow(mxResources.get("find")+(n?"/"+mxResources.get("replace"):""),A,e,f,c,l,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null),-null!=b.pages&&1<b.pages.length?U.removeAttribute("disabled"):(U.checked=!1,U.setAttribute("disabled","disabled"))):E.container.focus()}));b.installResizeHandler(this,!1)},FreehandWindow=function(b,e,f,c,l,n){var p=b.editor.graph,v=document.createElement("div");v.style.textAlign="center";v.style.userSelect="none";v.style.overflow="hidden";v.style.height="100%";if(n){var F=function(){var k=p.freehand.getStrokeColor(!0);null!=k&&k!=mxConstants.NONE&&1<k.length&&"string"===typeof k&&("default"==k?k=-mxResources.get("useBlackAndWhite"):(k="#"==k.charAt(0)?k.substring(1).toUpperCase():k,k=ColorDialog.prototype.colorNames[k]),null!=k&&K.setAttribute("title",k))},H=document.createElement("input");H.setAttribute("id","geFreehandBrush");H.setAttribute("type","checkbox");H.checked=p.freehand.isPerfectFreehandMode();H.style.margin="10px 5px 0px 10px";H.style.float="left";v.appendChild(H);p.freehand.setPerfectFreehandMode(H.checked);var E=document.createElement("label");E.setAttribute("for","geFreehandBrush");-E.style.float="left";E.style.marginTop="10px";v.appendChild(E);mxUtils.write(E,mxResources.get("brush"));v.appendChild(E);var K=document.createElement("tempDiv");K.style.display="block";K.style.width="100%";K.style.height="100%";K.style.borderRadius="2px";K.style.boxSizing="border-box";K.style.border="1px solid black";K.style.backgroundColor=p.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){K.style.backgroundColor=p.freehand.getStrokeColor()});F();E=mxUtils.button("",mxUtils.bind(this,-function(k){b.pickColor(p.freehand.getStrokeColor(!0),function(u){p.freehand.setStrokeColor(u);K.style.backgroundColor=p.freehand.getStrokeColor();F()},"default");mxEvent.consume(k)}));E.style.position="absolute";E.style.boxSizing="border-box";E.style.padding="2px";E.style.top="8px";E.style.right="8px";E.style.width="28px";E.style.height="18px";E.className="geColorBtn";E.innerText="";E.appendChild(K);v.appendChild(E);E=document.createElement("img");E.setAttribute("title",mxResources.get("settings"));+null!=b.pages&&1<b.pages.length?U.removeAttribute("disabled"):(U.checked=!1,U.setAttribute("disabled","disabled"))):E.container.focus()}));b.installResizeHandler(this,!1);this.focus=function(){D.focus()}},FreehandWindow=function(b,e,f,c,l,n){var p=b.editor.graph,v=document.createElement("div");v.style.textAlign="center";v.style.userSelect="none";v.style.overflow="hidden";v.style.height="100%";if(n){var F=function(){var k=p.freehand.getStrokeColor(!0);null!=k&&k!=mxConstants.NONE&&1<k.length&&"string"===+typeof k&&("default"==k?k=mxResources.get("useBlackAndWhite"):(k="#"==k.charAt(0)?k.substring(1).toUpperCase():k,k=ColorDialog.prototype.colorNames[k]),null!=k&&K.setAttribute("title",k))},H=document.createElement("input");H.setAttribute("id","geFreehandBrush");H.setAttribute("type","checkbox");H.checked=p.freehand.isPerfectFreehandMode();H.style.margin="10px 5px 0px 10px";H.style.float="left";v.appendChild(H);p.freehand.setPerfectFreehandMode(H.checked);var E=document.createElement("label");E.setAttribute("for",+"geFreehandBrush");E.style.float="left";E.style.marginTop="10px";v.appendChild(E);mxUtils.write(E,mxResources.get("brush"));v.appendChild(E);var K=document.createElement("tempDiv");K.style.display="block";K.style.width="100%";K.style.height="100%";K.style.borderRadius="2px";K.style.boxSizing="border-box";K.style.border="1px solid black";K.style.backgroundColor=p.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){K.style.backgroundColor=p.freehand.getStrokeColor()});F();E=mxUtils.button("",+mxUtils.bind(this,function(k){b.pickColor(p.freehand.getStrokeColor(!0),function(u){p.freehand.setStrokeColor(u);K.style.backgroundColor=p.freehand.getStrokeColor();F()},"default");mxEvent.consume(k)}));E.style.position="absolute";E.style.boxSizing="border-box";E.style.padding="2px";E.style.top="8px";E.style.right="8px";E.style.width="28px";E.style.height="18px";E.className="geColorBtn";E.innerText="";E.appendChild(K);v.appendChild(E);E=document.createElement("img");E.setAttribute("title",mxResources.get("settings"));E.setAttribute("src",Editor.gearImage);E.className="geToolbarButton geAdaptiveAsset";E.style.position="absolute";E.style.boxSizing="border-box";E.style.padding="2px";E.style.top="8px";E.style.right="38px";E.style.width="18px";E.style.height="18px";E.style.opacity="0.6";v.appendChild(E);mxEvent.addListener(E,"click",mxUtils.bind(this,function(k){k=p.freehand.getSmoothing();b.prompt(mxResources.get("smoothing")+" (1-20)",k,function(u){!isNaN(u)&&0<u&&20>=u&&p.freehand.setSmoothing(parseInt(u))})}));mxUtils.br(v);var d=document.createElement("input");d.setAttribute("type","range");d.setAttribute("min","2");d.setAttribute("max","30");d.setAttribute("value",p.freehand.getBrushSize());d.style.width="90%";d.style.visibility="hidden";v.appendChild(d);mxUtils.br(v);E=function(){p.freehand.setPerfectFreehandMode(H.checked);d.style.visibility=H.checked?"visible":"hidden"};mxEvent.addListener(H,"change",E);E();mxEvent.addListener(d,"change",function(){p.freehand.setBrushSize(parseInt(this.value))})}var g=mxUtils.button(mxResources.get("startDrawing"),function(){p.freehand.isDrawing()?p.freehand.stopDrawing():p.freehand.startDrawing()});g.setAttribute("title",mxResources.get("startDrawing")+" (X)");g.style.margin=n?"5px 0 0 0":"10px 0 0 0";g.style.width="90%";g.style.boxSizing="border-box";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.style.textAlign="center";g.className="geBtn gePrimaryBtn";v.appendChild(g);this.window=new mxWindow(mxResources.get("freehand"),v,e,f,c,l,!0,!0);this.window.destroyOnClose=@@ -13015,7 +13016,7 @@ this.page.viewState.backgroundImage=m}null!=this.format&&(this.page.viewState.panull!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(m=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=m?m:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var M=document.createElement("canvas"),T=new Image;T.onload=function(){try{M.getContext("2d").drawImage(T,0,0);var m=M.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=m&&6<m.length}catch(z){}};T.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(m){}Editor.prototype.useCanvasForExport=!1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){c.previousColor=c.color;c.previousImage=c.image;c.previousFormat=c.format;c.previousAdaptiveColors=c.adaptiveColors;null!=c.foldingEnabled&&(c.foldingEnabled=!c.foldingEnabled);null!=c.mathEnabled&&(c.mathEnabled=!c.mathEnabled);null!=c.shadowVisible&&(c.shadowVisible=!c.shadowVisible);return c};mxCodecRegistry.register(b)})();-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.1.0";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.1.1";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};@@ -14313,66 +14314,66 @@ mxResources.get("exportOptionsDisabled"))});c.actions.addAction("keyboardShortcuc.openLink("https://www.youtube.com/watch?v=Z0D96ZikMkc")});p=c.actions.addAction("tags",mxUtils.bind(this,function(){null==this.tagsWindow?(this.tagsWindow=new TagsWindow(c,document.body.offsetWidth-400,60,212,200),this.tagsWindow.window.addListener("show",mxUtils.bind(this,function(){c.fireEvent(new mxEventObject("tags"))})),this.tagsWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("tags"))):this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+K");p.setToggleAction(!0);p.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));null==Editor.gptApiKey||null==Editor.gptModel||null==Editor.gptUrl||c.isOffline()||EditorUi.isElectronApp||(p=c.actions.addAction("chatWindowTitle",mxUtils.bind(this,function(){null==this.chatWindow?(this.chatWindow=new ChatWindow(c,220,document.body.offsetHeight-380,250,320),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){c.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!this.chatWindow.window.isVisible())})),p.setToggleAction(!0),p.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.chatWindow&&this.chatWindow.window.isVisible()})));-p=c.actions.addAction("findReplace",mxUtils.bind(this,function(q,y){var B=(q=l.isEnabled()&&(null==y||!mxEvent.isShiftDown(y)))?"findReplace":"find";y=B+"Window";if(null==this[y]){var C="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,M=q?C?330:300:240;this[y]=new FindWindow(c,document.body.offsetWidth-(M+20),100,M,q?C?304:288:170,q);this[y].window.addListener("show",function(){c.fireEvent(new mxEventObject(B))});this[y].window.addListener("hide",function(){c.fireEvent(new mxEventObject(B))});-this[y].window.setVisible(!0)}else this[y].window.setVisible(!this[y].window.isVisible())}),null,null,Editor.ctrlKey+"+F");p.setToggleAction(!0);p.setSelectedCallback(mxUtils.bind(this,function(){var q=l.isEnabled()?"findReplaceWindow":"findWindow";return null!=this[q]&&this[q].window.isVisible()}));c.actions.put("exportVsdx",new Action(mxResources.get("formatVsdx")+" (beta)...",function(){var q=null==c.pages||1>=c.pages.length;if(q)c.exportVisio();else{var y=document.createElement("div");y.style.whiteSpace=-"nowrap";var B=document.createElement("h3");mxUtils.write(B,mxResources.get("formatVsdx"));B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";y.appendChild(B);var C=c.addCheckbox(y,mxResources.get("allPages"),!q,q);C.style.marginBottom="16px";q=new CustomDialog(c,y,mxUtils.bind(this,function(){c.exportVisio(!C.checked)}),null,mxResources.get("export"));c.showDialog(q.container,300,130,!0,!0)}}));isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&c.actions.addAction("configuration...",-function(){var q=document.createElement("input");q.setAttribute("type","checkbox");q.style.marginRight="8px";q.checked=mxSettings.getShowStartScreen();q.defaultChecked=q.checked;if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var y=document.createElement("span");y.style.display="flex";y.style.alignItems="center";y.style["float"]="right";y.style.cursor="pointer";y.style.userSelect="none";y.style.marginTop="-3px";y.appendChild(q);-mxUtils.write(y,mxResources.get("showStartScreen"));mxEvent.addListener(y,"click",function(C){mxEvent.getSource(C)!=q&&(q.checked=!q.checked)});header=y}y=[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(C){c.handleError(C)}})}]];if(!c.isOfflineApp()&&isLocalStorage&&c.mode!=App.MODE_ATLAS){var B=c.actions.get("plugins");null==B||"sketch"!=-Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||y.push([mxResources.get("plugins"),B.funct])}EditorUi.isElectronApp||y.push([mxResources.get("link"),function(C,M){if(0<M.value.length)try{var T=JSON.parse(M.value),m=window.location.protocol+"//"+window.location.host+"/"+c.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(T)),z=new EmbedDialog(c,m);c.showDialog(z.container,450,240,!0);z.init()}catch(I){c.handleError(I)}else c.handleError({message:mxResources.get("invalidInput")})}]);-"atlassian"!=c.getServiceName()&&"1"!=urlParams.embed&&y.push([mxResources.get("preferences"),function(){c.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(C){c.handleError(C)}})}]])}]);c.showLocalStorageDialog(mxResources.get("configuration")+-":",Editor.configurationKey,y,q.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=q.parentNode&&(mxSettings.setShowStartScreen(q.checked),mxSettings.save())})});if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu(mxUtils.bind(this,function(q,y){var B=mxLanguage;null==urlParams.lang&&isLocalStorage&&(B=mxSettings.settings.language);var C=mxUtils.bind(this,function(T){var m=""==T?mxResources.get("automatic"):mxLanguageMap[T],z=null;""!=m&&(z=q.addItem(m,-null,mxUtils.bind(this,function(){c.setAndPersistLanguage(T);c.alert(mxResources.get("restartForChangeRequired"))}),y),(T==B||""==T&&null==B)&&q.addCheckmark(z,Editor.checkmarkImage));return z});C("");q.addSeparator(y);for(var M in mxLanguageMap)C(M)})));var F=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(q){var y=F.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=y&&Editor.enableSimpleTheme&&"atlassian"!=c.getServiceName()){var B=this.get("dynamicAppearance");-if(null!=B){var C=y.addMenu("",B.funct);C.setAttribute("title",mxResources.get("appearance"));C.className="geToolbarButton geAdaptiveAsset";C.style.backgroundPosition="center center";C.style.backgroundRepeat="no-repeat";C.style.backgroundSize="100% 100%";C.style.display="inline-block";C.style.cursor="pointer";C.style.zIndex="1";C.style.position="absolute";C.style.height="18px";C.style.width="18px";"atlas"==Editor.currentTheme?(C.style.filter="invert(100%)",C.style.right="11px",C.style.top="10px"):-(C.style.right="10px",C.style.top="5px");document.body.appendChild(C);y.langIcon=C;B=mxUtils.bind(this,function(){var M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;C.style.display="atlas"==Editor.currentTheme||"min"==Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";C.style.backgroundImage="simple"==Editor.currentTheme?750>M?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+-(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",B);this.editorUi.addListener("darkModeChanged",B);mxEvent.addListener(window,"resize",B);B()}}return y}}c.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];c.actions.addAction("runLayout",function(){c.showCustomLayoutDialog(JSON.stringify(c.customLayoutConfig,-null,2))});c.actions.put("adaptiveColors",new Action("adaptiveColors",function(q){null==c.adaptiveColorsWindow&&(c.adaptiveColorsWindow=new AdaptiveColorsWindow(c,document.body.offsetWidth-520,80,200,160));c.adaptiveColorsWindow.window.setVisible(!0)}));p=this.get("viewZoom");var H=p.funct;p.funct=mxUtils.bind(this,function(q,y){H.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(q,["-","outline","fullscreen"],y)});p=this.get("layout");var E=p.funct;-p.funct=function(q,y){E.apply(this,arguments);q.addItem(mxResources.get("orgChart"),null,function(){var B=null,C=20,M=20,T=function(){"undefined"!==typeof mxOrgChartLayout&&null!=B&&c.tryAndHandle(mxUtils.bind(this,function(){var V=c.editor.graph,W=new mxOrgChartLayout(V,B,C,M),X=V.getDefaultParent();1<V.model.getChildCount(V.getSelectionCell())&&(X=V.getSelectionCell());W.execute(X)}))},m=document.createElement("div"),z=document.createElement("div");z.style.marginTop="6px";z.style.display="inline-block";-z.style.width="180px";mxUtils.write(z,mxResources.get("orgChartType")+": ");m.appendChild(z);var I=document.createElement("select");I.style.width="160px";I.style.boxSizing="border-box";z=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var L=0;L<z.length;L++){var N=document.createElement("option");mxUtils.write(N,z[L]);-N.value=L;2==L&&N.setAttribute("selected","selected");I.appendChild(N)}mxEvent.addListener(I,"change",function(){B=I.value});m.appendChild(I);z=document.createElement("div");z.style.marginTop="6px";z.style.display="inline-block";z.style.width="180px";mxUtils.write(z,mxResources.get("parentChildSpacing")+": ");m.appendChild(z);var Q=document.createElement("input");Q.type="number";Q.value=C;Q.style.width="160px";Q.style.boxSizing="border-box";m.appendChild(Q);mxEvent.addListener(Q,"change",function(){C=-Q.value});z=document.createElement("div");z.style.marginTop="6px";z.style.display="inline-block";z.style.width="180px";mxUtils.write(z,mxResources.get("siblingSpacing")+": ");m.appendChild(z);var R=document.createElement("input");R.type="number";R.value=M;R.style.width="160px";R.style.boxSizing="border-box";m.appendChild(R);mxEvent.addListener(R,"change",function(){M=R.value});z=mxUtils.button(mxResources.get("custom")+"...",function(){var V=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(I.value),-parentChildSpacing:parseInt(Q.value),siblingSpacing:parseInt(R.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(V,null,2))});z.className="geBtn";m=new CustomDialog(c,m,function(){null==B&&(B=2);c.loadOrgChartLayouts(T)},null,null,null,z);c.showDialog(m.container,355,140,!0,!0)},y,null,n());q.addSeparator(y);q.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,function(){var B=new mxParallelEdgeLayout(l);B.checkOverlap=!0;c.prompt(mxResources.get("spacing"),-B.spacing,mxUtils.bind(this,function(C){c.tryAndHandle(mxUtils.bind(this,function(){B.spacing=C;c.executeLayout(function(){B.execute(l.getDefaultParent(),l.isSelectionEmpty()?null:l.getSelectionCells())},!1)}))}))}))}),y);q.addSeparator(y);c.menus.addMenuItem(q,"runLayout",y,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(q,y){if(!mxClient.IS_CHROMEAPP&&c.isOffline())this.addMenuItems(q,["keyboardShortcuts","-","about"],y);else{var B=q.addItem("Search:",-null,null,y,null,null,!1);B.style.cursor="default";var C=document.createElement("input");C.setAttribute("type","text");C.setAttribute("size","25");C.style.borderWidth="1px";C.style.marginLeft="8px";mxEvent.addListener(C,"keydown",mxUtils.bind(this,function(M){var T=mxUtils.trim(C.value);13==M.keyCode&&0<T.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(T)),C.value="",EditorUi.logEvent({category:"SEARCH-HELP",-action:"search",label:T}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==M.keyCode&&(C.value="")}));B.firstChild.nextSibling.appendChild(C);mxEvent.addGestureListeners(C,function(M){document.activeElement!=C&&C.focus();mxEvent.consume(M)},function(M){mxEvent.consume(M)},function(M){mxEvent.consume(M)});window.setTimeout(function(){C.focus()},0);EditorUi.isElectronApp?(c.actions.addAction("website...",function(){c.openLink("https://www.drawio.com")}),c.actions.addAction("check4Updates",-function(){c.checkForUpdates()}),c.actions.put("desktopZoomIn",new Action(mxResources.get("zoomIn"),function(){c.desktopZoomIn()})),c.actions.put("desktopZoomOut",new Action(mxResources.get("zoomOut"),function(){c.desktopZoomOut()})),c.actions.put("desktopResetZoom",new Action(mxResources.get("actualSize"),function(){c.desktopResetZoom()})),this.addMenuItems(q,"- keyboardShortcuts quickStart website support -".split(" "),y),"1"!=urlParams.disableUpdate&&this.addMenuItems(q,["check4Updates","-"],y),-this.addMenuItems(q,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),y)):this.addMenuItems(q,"- keyboardShortcuts quickStart support - about".split(" "),y)}"1"==urlParams.test&&(q.addSeparator(y),this.addSubmenu("testDevelop",q,y))})));c.actions.addAction("languageCode...",function(){var q=new FilenameDialog(c,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(y){null!=y&&(Graph.diagramLanguage=0<y.length?y:null,Graph.translateDiagram=!0,l.refresh())}),-mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");c.showDialog(q.container,340,80,!0,!0);q.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,["languageCode","-"],y);y=q.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;l.refresh()},y);Graph.translateDiagram||q.addCheckmark(y,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");-mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");mxResources.parse("testPerformance=Performance");-c.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!l.isSelectionEmpty()){var q=l.cloneCells(l.getSelectionCells()),y=l.getBoundingBoxFromGeometry(q,!0);q=l.moveCells(q,-y.x,-y.y);c.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+y.width+", "+y.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(l.encodeCells(q)))+"'),")}}));c.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function q(m){return null==m||null==m.boundingBox||!isNaN(m.boundingBox.x)&&-!isNaN(m.boundingBox.y)&&!isNaN(m.boundingBox.width)&&!isNaN(m.boundingBox.height)}var y=l.getGraphBounds(),B=l.view.translate,C=l.view.scale;l.insertVertex(l.getDefaultParent(),null,"",y.x/C-B.x,y.y/C-B.y,y.width/C,y.height/C,"fillColor=none;strokeColor=red;");var M=0,T=0;l.view.states.visit(function(m,z){m=!0;q(z.shape)||(console.log("invalid shape",z.cell.id,z.shape),m=!1);q(z.text)||(console.log("invalid text",z.cell.id,z.text),m=!1);m||M++;T++});console.log("states checked",T,"invalid",M)}));-c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var q=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"";q=new TextareaDialog(c,"Paste Data:",q,function(y){if(0<y.length)try{var B=function(z){function I(ba){if(null==Y[ba]){if(Y[ba]=!0,null!=Q[ba]){for(;0<Q[ba].length;){var da=Q[ba].pop();I(da)}delete Q[ba]}}else mxLog.debug(L+": Visited: "+ba)}var L=z.parentNode.id,N=z.childNodes;z={};for(var Q={},R=null,V={},W=0;W<N.length;W++){var X=-N[W];if(null!=X.id&&0<X.id.length)if(null==z[X.id]){z[X.id]=X.id;var Z=X.getAttribute("parent");null==Z?null!=R?mxLog.debug(L+": Multiple roots: "+X.id):R=X.id:(null==Q[Z]&&(Q[Z]=[]),Q[Z].push(X.id))}else V[X.id]=X.id}N=Object.keys(V);0<N.length?(N=L+": "+N.length+" Duplicates: "+N.join(", "),mxLog.debug(N+" (see console)")):mxLog.debug(L+": Checked");var Y={};null==R?mxLog.debug(L+": No root"):(I(R),Object.keys(Y).length!=Object.keys(z).length&&(mxLog.debug(L+": Invalid tree: (see console)"),console.log(L+-": Invalid tree",Q)))};"<"!=y.charAt(0)&&(y=Graph.decompress(y),mxLog.debug("See console for uncompressed XML"),console.log("xml",y));var C=mxUtils.parseXml(y),M=c.getPagesForNode(C.documentElement,"mxGraphModel");if(null!=M&&0<M.length)try{var T=c.getHashValueForPages(M);mxLog.debug("Checksum: ",T)}catch(z){mxLog.debug("Error: ",z.message)}else mxLog.debug("No pages found for checksum");var m=C.getElementsByTagName("root");for(y=0;y<m.length;y++)B(m[y]);mxLog.show()}catch(z){c.handleError(z),null!=-window.console&&console.error(z)}});c.showDialog(q.container,620,460,!0,!0);q.init()}));var K=null;c.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=c.pages){var q=new TextareaDialog(c,"Diff/Sync:","",function(y){var B=c.getCurrentFile();if(0<y.length&&null!=B)try{var C=JSON.parse(y);B.patch([C],null,!0,!0);c.hideDialog()}catch(M){c.handleError(M)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(y,B){K=c.getPagesForXml(c.getFileData(!0));q.textarea.value=-"Snapshot updated "+(new Date).toLocaleString()+" Checksum "+c.getHashValueForPages(K)}],["Diff",function(y,B){try{q.textarea.value=JSON.stringify(c.diffPages(K,c.pages),null,2)}catch(C){c.handleError(C)}}]]);null==K?(K=c.getPagesForXml(c.getFileData(!0)),q.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+c.getHashValueForPages(K)):q.textarea.value=JSON.stringify(c.diffPages(K,c.pages),null,2);c.showDialog(q.container,620,460,!0,!0);q.init()}else c.alert("No pages")}));-c.actions.addAction("testChecksum",mxUtils.bind(this,function(){var q=c.getCurrentFile();null!=c.pages&&null!=q?c.spinner.spin(document.body,mxResources.get("loading"))&&q.getLatestVersion(function(y){c.spinner.stop();var B=c.getHashValueForPages(c.pages),C=q.getCurrentRevisionId(),M=c.getHashValueForPages(y.getShadowPages()),T=y.getDescriptorChecksum(y.getDescriptor()),m=y.getCurrentRevisionId();console.log("Local File",[q],"modified",q.isModified(),"checksum",B);console.log("Remote File",[y],"rev",-m==C,"desc",T==M,"checksum",M);c.alert("Checksums "+(M==B?"match":"no not match"))},function(y){console.log("Error getLatestVersion",y);c.handleError(y)}):console.log("Checksum: no file or pages")}));c.actions.addAction("testCheckPages",mxUtils.bind(this,function(){var q=c.getCurrentFile();console.log("editorUi",c,"file",q);if(null!=q&&q.isRealtime()){console.log("Checksum ownPages",c.getHashValueForPages(q.ownPages));console.log("Checksum theirPages",c.getHashValueForPages(q.theirPages));console.log("diff ownPages/theirPages",-c.diffPages(q.ownPages,q.theirPages));var y=q.getShadowPages();null!=y&&(console.log("Checksum shadowPages",c.getHashValueForPages(y)),console.log("diff shadowPages/ownPages",c.diffPages(y,q.ownPages)),console.log("diff ownPages/shadowPages",c.diffPages(q.ownPages,y)),console.log("diff theirPages/shadowPages",c.diffPages(q.theirPages,y)));null!=q.sync&&null!=q.sync.snapshot&&(console.log("Checksum snapshot",c.getHashValueForPages(q.sync.snapshot)),console.log("diff ownPages/snapshot",c.diffPages(q.ownPages,-q.sync.snapshot)),console.log("diff theirPages/snapshot",c.diffPages(q.theirPages,q.sync.snapshot)),null!=c.pages&&console.log("diff snapshot/actualPages",c.diffPages(q.sync.snapshot,c.pages)));null!=c.pages&&(console.log("diff ownPages/actualPages",c.diffPages(q.ownPages,c.pages)),console.log("diff theirPages/actualPages",c.diffPages(q.theirPages,c.pages)))}null!=q&&console.log("Shadow pages",[c.getXmlForPages(q.getShadowPages())]);null!=c.pages&&console.log("Checksum actualPages",c.getHashValueForPages(c.pages))}));-c.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",c);var q=c.getCurrentFile();null!=q&&q.isRealtime()&&null!=q.shadowPages&&(console.log("patching actualPages to shadowPages",q.patch([c.diffPages(q.shadowPages,c.pages)])),q.ownPages=c.clonePages(c.pages),q.theirPages=c.clonePages(c.pages),q.shadowPages=c.clonePages(c.pages),null!=q.sync&&(q.sync.snapshot=c.clonePages(c.pages)))}));c.actions.addAction("testOptimize",mxUtils.bind(this,function(){l.model.beginUpdate();-try{var q=l.model.cells,y=0,B=[],C=[],M;for(M in q){var T=q[M],m=l.getCurrentCellStyle(T)[mxConstants.STYLE_IMAGE];null!=m&&"data:"==m.substring(0,5)&&(null==B[m]&&(B[m]=(B[m]||0)+1,y++),C.push(T))}l.setCellStyles(mxConstants.STYLE_IMAGE,null,C);console.log("Removed",y,"image(s) from",C.length,"cell(s): ",[C,B])}finally{l.model.endUpdate()}}));c.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(c,l.getModel())}));c.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var q=-new mxImageExport,y=l.getGraphBounds(),B=l.view.scale,C=mxUtils.createXmlDocument(),M=C.createElement("output");C.appendChild(M);C=new mxXmlCanvas2D(M);C.translate(Math.floor((1-y.x)/B),Math.floor((1-y.y)/B));C.scale(1/B);var T=0,m=C.save;C.save=function(){T++;m.apply(this,arguments)};var z=C.restore;C.restore=function(){T--;z.apply(this,arguments)};var I=q.drawShape;q.drawShape=function(L){mxLog.debug("entering shape",L,T);I.apply(this,arguments);mxLog.debug("leaving shape",L,T)};q.drawState(l.getView().getState(l.model.root),-C);mxLog.show();mxLog.debug(mxUtils.getXml(M));mxLog.debug("stateCounter",T)}));c.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-2});var d=null,g=null,k=null,u=null,t=null,x=null,A=null,J=null;c.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=d?(l.view.revalidate=d,d=null):(d=l.view.revalidate,l.view.revalidate=function(){var q=Date.now(),y=d.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",-[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=g?(c.selectPage=g,g=null):(g=c.selectPage,c.selectPage=function(){var q=Date.now(),y=g.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=k?(c.diffPages=k,k=null):(k=c.diffPages,c.diffPages=function(){var q=Date.now(),y=k.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-q+" ms","args",arguments);-return y});null!=u?(c.patchPages=u,u=null):(u=c.patchPages,c.patchPages=function(){var q=Date.now(),y=u.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=t?(c.clonePages=t,t=null):(t=c.clonePages,c.clonePages=function(){var q=Date.now(),y=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=A?(c.getHashValueForPages=A,-A=null):(A=c.getHashValueForPages,c.getHashValueForPages=function(){var q=Date.now(),y=A.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=J?(c.resolveCrossReferences=J,J=null):(J=c.resolveCrossReferences,c.resolveCrossReferences=function(){var q=Date.now(),y=J.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-q+" ms","args",arguments);return y});-null!=x?(c.getFileData=x,x=null):(x=c.getFileData,c.getFileData=function(){var q=Date.now(),y=x.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",[this],"time",Date.now()-q+" ms","args",arguments);return y});EditorUi.debug("[Performance]",null!=d?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),-y);var B=q.addItem(mxResources.get("testPerformance"),null,function(){c.actions.get("testPerformance").funct()},y);null!=d&&q.addCheckmark(B,Editor.checkmarkImage);this.addMenuItems(q,["-","testShowConsole"],y)})))}c.actions.put("shapes",new Action(mxResources.get("moreShapes")+"...",function(q){mxClient.IS_CHROMEAPP||!c.isOffline()?c.showDialog((new MoreShapesDialog(c,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):c.showDialog((new MoreShapesDialog(c,!1)).container,360,isLocalStorage?-mxClient.IS_IOS?300:280:260,!0,!0)}));c.actions.put("createShape",new Action(mxResources.get("shape")+"...",function(q){l.isEnabled()&&(q=new mxCell("",new mxGeometry(0,0,120,120),c.defaultCustomShapeStyle),q.vertex=!0,q=new EditShapeDialog(c,q,mxResources.get("editShape")+":",630,400),c.showDialog(q.container,640,480,!0,!1),q.init())})).isEnabled=n;c.actions.put("embedHtml",new Action(mxResources.get("html")+"...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){c.showHtmlDialog(mxResources.get("create"),-"https://www.drawio.com/doc/faq/embed-html-options",q,function(y,B,C,M,T,m,z,I,L,N,Q,R){c.createHtml(y,B,C,M,T,m,z,I,L,N,Q,mxUtils.bind(this,function(V,W){var X=new EmbedDialog(c,"\x3c!-- "+c.editor.appName+" diagram --\x3e\n"+V+"\n"+W+"\n",null,null,function(){var Z=window.open(),Y=Z.document;if(null!=Y){"CSS1Compat"===document.compatMode&&Y.writeln("<!DOCTYPE html>");Y.writeln("<html>");Y.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');-Y.writeln("<body>");Y.writeln(V);var ba=mxClient.IS_IE||mxClient.IS_EDGE||null!=document.documentMode;ba&&Y.writeln(W);Y.writeln("</body>");Y.writeln("</html>");Y.close();if(!ba){var da=Z.document.createElement("div");da.marginLeft="26px";da.marginTop="26px";mxUtils.write(da,mxResources.get("updatingDocument"));ba=Z.document.createElement("img");ba.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ba.style.marginLeft="6px";da.appendChild(ba);Z.document.body.insertBefore(da,-Z.document.body.firstChild);window.setTimeout(function(){var ca=document.createElement("script");ca.type="text/javascript";ca.src=/<script.*?src="(.*?)"/.exec(W)[1];Y.body.appendChild(ca);da.parentNode.removeChild(da)},20)}}else c.handleError({message:mxResources.get("errorUpdatingPreview")})});c.showDialog(X.container,450,240,!0,!0);X.init()}),R)})})}));c.actions.put("liveImage",new Action("Live image...",function(){var q=c.getCurrentFile();null!=q&&c.getPublicUrl(q,function(y){null!=y?(y=new EmbedDialog(c,-'<img src="'+(q.constructor!=DriveFile?y:"https://drive.google.com/uc?id="+q.getId())+'"/>'),c.showDialog(y.container,450,240,!0,!0),y.init()):c.handleError({message:mxResources.get("invalidPublicUrl")})})}));c.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){c.showEmbedImageDialog(function(q,y,B,C,M,T){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedImage(q,y,B,C,M,T,function(m){c.spinner.stop();m=new EmbedDialog(c,m);c.showDialog(m.container,450,-240,!0,!0);m.init()},function(m){c.spinner.stop();c.handleError(m)})},mxResources.get("image"),mxResources.get("retina"),c.isExportToCanvas())}));c.actions.put("embedSvg",new Action(mxResources.get("formatSvg")+"...",function(){c.showEmbedImageDialog(function(q,y,B,C,M,T){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedSvg(q,y,B,C,M,T,function(m){c.spinner.stop();m=new EmbedDialog(c,m);c.showDialog(m.container,450,240,!0,!0);m.init()},function(m){c.spinner.stop();c.handleError(m)})},-mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/doc/faq/embed-svg.html")}));c.actions.put("embedIframe",new Action(mxResources.get("iframe")+"...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){var y=l.getGraphBounds();c.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,y.height/l.view.scale))+2,null,null,null,q,c.getCurrentFile(),function(B,C,M,T,m,z,I,L,N,Q,R,V){var W=[];N&&W.push("tags=%7B%7D");B=new EmbedDialog(c,'<iframe frameborder="0" style="width:'+-I+";height:"+L+';" src="'+c.createLink(B,C,!0,T,m,z,"public"==Q?q:null,null,W,null,M,R,V)+'"'+(R?' allowtransparency="true"':"")+"></iframe>");c.showDialog(B.container,450,240,!0,!0);B.init()},!0,!0)})}));c.actions.put("embedNotion",new Action(mxResources.get("notion")+"...",function(){var q=document.createElement("div");q.style.position="absolute";q.style.bottom="30px";q.style.textAlign="center";q.style.width="100%";q.style.left="0px";var y=document.createElement("a");y.setAttribute("href","javascript:void(0);");-y.setAttribute("target","_blank");y.style.cursor="pointer";mxUtils.write(y,mxResources.get("getNotionChromeExtension"));q.appendChild(y);mxUtils.setPrefixedStyle(y.style,"transition","all 1s ease");mxUtils.setOpacity(y,0);window.setTimeout(function(){mxUtils.setOpacity(y,100)},300);mxEvent.addListener(y,"click",function(B){c.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(B)});c.getPublicUrl(c.getCurrentFile(),function(B){c.showPublishLinkDialog(mxResources.get("notion"),-null,null,!0,"https://www.drawio.com/blog/drawio-notion",q,B,c.getCurrentFile(),function(C,M,T,m,z,I,L,N,Q,R,V,W){L=["border=0"];Q&&L.push("tags=%7B%7D");C=new EmbedDialog(c,c.createLink(C,M,!0,m,z,I,"public"==R?B:null,null,L,null,T,null,W));c.showDialog(C.container,450,240,!0,!0);C.init()},null,!0)})}));c.actions.put("publishLink",new Action(mxResources.get("link")+"...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){c.showPublishLinkDialog(null,null,null,null,null,null,q,c.getCurrentFile(),-function(y,B,C,M,T,m,z,I,L,N,Q,R){z=[];M&&L&&z.push("tags=%7B%7D");y=new EmbedDialog(c,c.createLink(y,B,!0,M,T,m,"public"==N?q:null,null,z,null,C,null,R));c.showDialog(y.container,450,240,!0,!0);y.init()},null,!0)})}));c.actions.addAction("microsoftOffice...",function(){c.openLink("https://office.draw.io")});c.actions.addAction("googleDocs...",function(){c.openLink("http://docsaddon.draw.io")});c.actions.addAction("googleSlides...",function(){c.openLink("https://slidesaddon.draw.io")});c.actions.addAction("googleSheets...",-function(){c.openLink("https://sheetsaddon.draw.io")});c.actions.addAction("googleSites...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){q=new GoogleSitesDialog(c,q);c.showDialog(q.container,420,256,!0,!0);q.init()})});if(isLocalStorage||mxClient.IS_CHROMEAPP)p=c.actions.addAction("scratchpad",function(){c.toggleScratchpad()}),p.setToggleAction(!0),p.setSelectedCallback(function(){return null!=c.scratchpad}),"0"!=urlParams.plugins&&c.actions.addAction("plugins...",function(){c.showDialog((new PluginsDialog(c)).container,-380,240,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&(p=c.actions.addAction("highContrast",function(){c.setAndPersistHighContrast(!c.isHighContrast())}),p.setToggleAction(!0),p.setSelectedCallback(function(){return c.isHighContrast()}));p=c.actions.addAction("search",function(){if(null!=c.sidebar){var q=c.sidebar.isEntryVisible("search");c.sidebar.showPalette("search",!q);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!q,mxSettings.save())}});p.label=-mxResources.get("searchShapes");p.setToggleAction(!0);p.setSelectedCallback(function(){return null!=c.sidebar&&c.sidebar.isEntryVisible("search")});c.actions.get("clearDefaultStyle").funct=function(q){l.isEnabled()&&(c.clearDefaultStyle(),Editor.sketchMode&&c.setSketchMode(!1))};"1"==urlParams.embed&&(c.actions.get("saveAs").setEnabled(!1),c.actions.get("save").funct=function(q){l.isEditing()&&l.stopEditing();var y="0"!=urlParams.pages||null!=c.pages&&1<c.pages.length?c.getFileData(!0):mxUtils.getXml(c.editor.getGraphXml());-if("json"==urlParams.proto){var B=c.createLoadMessage("save");B.xml=y;!0!==q||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(B.exit=!0);y=JSON.stringify(B)}(window.opener||window.parent).postMessage(y,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(c.editor.modified=!1,c.editor.setStatus(""));q=c.getCurrentFile();null==q||q.constructor==EmbedFile||q.constructor==LocalFile&&null==q.mode||c.saveFile()},c.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?c.sendEmbeddedSvgExport():+p=c.actions.addAction("findReplace",mxUtils.bind(this,function(q,y){var B=(q=l.isEnabled()&&(null==y||!mxEvent.isShiftDown(y)))?"findReplace":"find";y=B+"Window";if(null==this[y]){var C="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,M=q?C?330:300:240;this[y]=new FindWindow(c,document.body.offsetWidth-(M+20),100,M,q?C?304:288:170,q);this[y].window.addListener("show",function(){c.fireEvent(new mxEventObject(B))});this[y].window.addListener("hide",function(){c.fireEvent(new mxEventObject(B))})}this[y].window.setVisible(!0);+this[y].focus()}),null,null,Editor.ctrlKey+"+F");c.actions.put("exportVsdx",new Action(mxResources.get("formatVsdx")+" (beta)...",function(){var q=null==c.pages||1>=c.pages.length;if(q)c.exportVisio();else{var y=document.createElement("div");y.style.whiteSpace="nowrap";var B=document.createElement("h3");mxUtils.write(B,mxResources.get("formatVsdx"));B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";y.appendChild(B);var C=c.addCheckbox(y,mxResources.get("allPages"),!q,+q);C.style.marginBottom="16px";q=new CustomDialog(c,y,mxUtils.bind(this,function(){c.exportVisio(!C.checked)}),null,mxResources.get("export"));c.showDialog(q.container,300,130,!0,!0)}}));isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&c.actions.addAction("configuration...",function(){var q=document.createElement("input");q.setAttribute("type","checkbox");q.style.marginRight="8px";q.checked=mxSettings.getShowStartScreen();q.defaultChecked=q.checked;if(Editor.isSettingsEnabled()&&("sketch"==+Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var y=document.createElement("span");y.style.display="flex";y.style.alignItems="center";y.style["float"]="right";y.style.cursor="pointer";y.style.userSelect="none";y.style.marginTop="-3px";y.appendChild(q);mxUtils.write(y,mxResources.get("showStartScreen"));mxEvent.addListener(y,"click",function(C){mxEvent.getSource(C)!=q&&(q.checked=!q.checked)});header=y}y=[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),+function(){try{localStorage.removeItem(Editor.configurationKey),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(C){c.handleError(C)}})}]];if(!c.isOfflineApp()&&isLocalStorage&&c.mode!=App.MODE_ATLAS){var B=c.actions.get("plugins");null==B||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||y.push([mxResources.get("plugins"),B.funct])}EditorUi.isElectronApp||y.push([mxResources.get("link"),function(C,M){if(0<M.value.length)try{var T=+JSON.parse(M.value),m=window.location.protocol+"//"+window.location.host+"/"+c.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(T)),z=new EmbedDialog(c,m);c.showDialog(z.container,450,240,!0);z.init()}catch(I){c.handleError(I)}else c.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=c.getServiceName()&&"1"!=urlParams.embed&&y.push([mxResources.get("preferences"),function(){c.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),+function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(C){c.handleError(C)}})}]])}]);c.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,y,q.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=q.parentNode&&(mxSettings.setShowStartScreen(q.checked),mxSettings.save())})});+if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu(mxUtils.bind(this,function(q,y){var B=mxLanguage;null==urlParams.lang&&isLocalStorage&&(B=mxSettings.settings.language);var C=mxUtils.bind(this,function(T){var m=""==T?mxResources.get("automatic"):mxLanguageMap[T],z=null;""!=m&&(z=q.addItem(m,null,mxUtils.bind(this,function(){c.setAndPersistLanguage(T);c.alert(mxResources.get("restartForChangeRequired"))}),y),(T==B||""==T&&null==B)&&q.addCheckmark(z,Editor.checkmarkImage));return z});+C("");q.addSeparator(y);for(var M in mxLanguageMap)C(M)})));var F=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(q){var y=F.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=y&&Editor.enableSimpleTheme&&"atlassian"!=c.getServiceName()){var B=this.get("dynamicAppearance");if(null!=B){var C=y.addMenu("",B.funct);C.setAttribute("title",mxResources.get("appearance"));C.className="geToolbarButton geAdaptiveAsset";C.style.backgroundPosition="center center";+C.style.backgroundRepeat="no-repeat";C.style.backgroundSize="100% 100%";C.style.display="inline-block";C.style.cursor="pointer";C.style.zIndex="1";C.style.position="absolute";C.style.height="18px";C.style.width="18px";"atlas"==Editor.currentTheme?(C.style.filter="invert(100%)",C.style.right="11px",C.style.top="10px"):(C.style.right="10px",C.style.top="5px");document.body.appendChild(C);y.langIcon=C;B=mxUtils.bind(this,function(){var M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;+C.style.display="atlas"==Editor.currentTheme||"min"==Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";C.style.backgroundImage="simple"==Editor.currentTheme?750>M?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",B);this.editorUi.addListener("darkModeChanged",B);mxEvent.addListener(window,"resize",+B);B()}}return y}}c.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];c.actions.addAction("runLayout",function(){c.showCustomLayoutDialog(JSON.stringify(c.customLayoutConfig,null,2))});c.actions.put("adaptiveColors",new Action("adaptiveColors",function(q){null==c.adaptiveColorsWindow&&(c.adaptiveColorsWindow=new AdaptiveColorsWindow(c,document.body.offsetWidth-520,80,200,160));+c.adaptiveColorsWindow.window.setVisible(!0)}));p=this.get("viewZoom");var H=p.funct;p.funct=mxUtils.bind(this,function(q,y){H.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(q,["-","outline","fullscreen"],y)});p=this.get("layout");var E=p.funct;p.funct=function(q,y){E.apply(this,arguments);q.addItem(mxResources.get("orgChart"),null,function(){var B=null,C=20,M=20,T=function(){"undefined"!==typeof mxOrgChartLayout&&null!=B&&c.tryAndHandle(mxUtils.bind(this,+function(){var V=c.editor.graph,W=new mxOrgChartLayout(V,B,C,M),X=V.getDefaultParent();1<V.model.getChildCount(V.getSelectionCell())&&(X=V.getSelectionCell());W.execute(X)}))},m=document.createElement("div"),z=document.createElement("div");z.style.marginTop="6px";z.style.display="inline-block";z.style.width="180px";mxUtils.write(z,mxResources.get("orgChartType")+": ");m.appendChild(z);var I=document.createElement("select");I.style.width="160px";I.style.boxSizing="border-box";z=[mxResources.get("linear"),+mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var L=0;L<z.length;L++){var N=document.createElement("option");mxUtils.write(N,z[L]);N.value=L;2==L&&N.setAttribute("selected","selected");I.appendChild(N)}mxEvent.addListener(I,"change",function(){B=I.value});m.appendChild(I);z=document.createElement("div");z.style.marginTop="6px";z.style.display=+"inline-block";z.style.width="180px";mxUtils.write(z,mxResources.get("parentChildSpacing")+": ");m.appendChild(z);var Q=document.createElement("input");Q.type="number";Q.value=C;Q.style.width="160px";Q.style.boxSizing="border-box";m.appendChild(Q);mxEvent.addListener(Q,"change",function(){C=Q.value});z=document.createElement("div");z.style.marginTop="6px";z.style.display="inline-block";z.style.width="180px";mxUtils.write(z,mxResources.get("siblingSpacing")+": ");m.appendChild(z);var R=document.createElement("input");+R.type="number";R.value=M;R.style.width="160px";R.style.boxSizing="border-box";m.appendChild(R);mxEvent.addListener(R,"change",function(){M=R.value});z=mxUtils.button(mxResources.get("custom")+"...",function(){var V=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(I.value),parentChildSpacing:parseInt(Q.value),siblingSpacing:parseInt(R.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(V,null,2))});z.className="geBtn";m=new CustomDialog(c,m,function(){null==B&&(B=2);c.loadOrgChartLayouts(T)},+null,null,null,z);c.showDialog(m.container,355,140,!0,!0)},y,null,n());q.addSeparator(y);q.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,function(){var B=new mxParallelEdgeLayout(l);B.checkOverlap=!0;c.prompt(mxResources.get("spacing"),B.spacing,mxUtils.bind(this,function(C){c.tryAndHandle(mxUtils.bind(this,function(){B.spacing=C;c.executeLayout(function(){B.execute(l.getDefaultParent(),l.isSelectionEmpty()?null:l.getSelectionCells())},!1)}))}))}))}),+y);q.addSeparator(y);c.menus.addMenuItem(q,"runLayout",y,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(q,y){if(!mxClient.IS_CHROMEAPP&&c.isOffline())this.addMenuItems(q,["keyboardShortcuts","-","about"],y);else{var B=q.addItem("Search:",null,null,y,null,null,!1);B.style.cursor="default";var C=document.createElement("input");C.setAttribute("type","text");C.setAttribute("size","25");C.style.borderWidth="1px";C.style.marginLeft="8px";mxEvent.addListener(C,+"keydown",mxUtils.bind(this,function(M){var T=mxUtils.trim(C.value);13==M.keyCode&&0<T.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(T)),C.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:T}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==M.keyCode&&(C.value="")}));B.firstChild.nextSibling.appendChild(C);mxEvent.addGestureListeners(C,+function(M){document.activeElement!=C&&C.focus();mxEvent.consume(M)},function(M){mxEvent.consume(M)},function(M){mxEvent.consume(M)});window.setTimeout(function(){C.focus()},0);EditorUi.isElectronApp?(c.actions.addAction("website...",function(){c.openLink("https://www.drawio.com")}),c.actions.addAction("check4Updates",function(){c.checkForUpdates()}),c.actions.put("desktopZoomIn",new Action(mxResources.get("zoomIn"),function(){c.desktopZoomIn()})),c.actions.put("desktopZoomOut",new Action(mxResources.get("zoomOut"),+function(){c.desktopZoomOut()})),c.actions.put("desktopResetZoom",new Action(mxResources.get("actualSize"),function(){c.desktopResetZoom()})),this.addMenuItems(q,"- keyboardShortcuts quickStart website support -".split(" "),y),"1"!=urlParams.disableUpdate&&this.addMenuItems(q,["check4Updates","-"],y),this.addMenuItems(q,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),y)):this.addMenuItems(q,"- keyboardShortcuts quickStart support - about".split(" "),y)}"1"==urlParams.test&&+(q.addSeparator(y),this.addSubmenu("testDevelop",q,y))})));c.actions.addAction("languageCode...",function(){var q=new FilenameDialog(c,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(y){null!=y&&(Graph.diagramLanguage=0<y.length?y:null,Graph.translateDiagram=!0,l.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");c.showDialog(q.container,340,80,!0,!0);q.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(q,+y){this.addMenuItems(q,["languageCode","-"],y);y=q.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;l.refresh()},y);Graph.translateDiagram||q.addCheckmark(y,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");+mxResources.parse("testCheckPages=Check Pages");mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");mxResources.parse("testPerformance=Performance");c.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!l.isSelectionEmpty()){var q=l.cloneCells(l.getSelectionCells()),y=l.getBoundingBoxFromGeometry(q,+!0);q=l.moveCells(q,-y.x,-y.y);c.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+y.width+", "+y.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(l.encodeCells(q)))+"'),")}}));c.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function q(m){return null==m||null==m.boundingBox||!isNaN(m.boundingBox.x)&&!isNaN(m.boundingBox.y)&&!isNaN(m.boundingBox.width)&&!isNaN(m.boundingBox.height)}var y=l.getGraphBounds(),B=l.view.translate,C=l.view.scale;l.insertVertex(l.getDefaultParent(),+null,"",y.x/C-B.x,y.y/C-B.y,y.width/C,y.height/C,"fillColor=none;strokeColor=red;");var M=0,T=0;l.view.states.visit(function(m,z){m=!0;q(z.shape)||(console.log("invalid shape",z.cell.id,z.shape),m=!1);q(z.text)||(console.log("invalid text",z.cell.id,z.text),m=!1);m||M++;T++});console.log("states checked",T,"invalid",M)}));c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var q=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"";q=new TextareaDialog(c,+"Paste Data:",q,function(y){if(0<y.length)try{var B=function(z){function I(ba){if(null==Y[ba]){if(Y[ba]=!0,null!=Q[ba]){for(;0<Q[ba].length;){var da=Q[ba].pop();I(da)}delete Q[ba]}}else mxLog.debug(L+": Visited: "+ba)}var L=z.parentNode.id,N=z.childNodes;z={};for(var Q={},R=null,V={},W=0;W<N.length;W++){var X=N[W];if(null!=X.id&&0<X.id.length)if(null==z[X.id]){z[X.id]=X.id;var Z=X.getAttribute("parent");null==Z?null!=R?mxLog.debug(L+": Multiple roots: "+X.id):R=X.id:(null==Q[Z]&&(Q[Z]=[]),Q[Z].push(X.id))}else V[X.id]=+X.id}N=Object.keys(V);0<N.length?(N=L+": "+N.length+" Duplicates: "+N.join(", "),mxLog.debug(N+" (see console)")):mxLog.debug(L+": Checked");var Y={};null==R?mxLog.debug(L+": No root"):(I(R),Object.keys(Y).length!=Object.keys(z).length&&(mxLog.debug(L+": Invalid tree: (see console)"),console.log(L+": Invalid tree",Q)))};"<"!=y.charAt(0)&&(y=Graph.decompress(y),mxLog.debug("See console for uncompressed XML"),console.log("xml",y));var C=mxUtils.parseXml(y),M=c.getPagesForNode(C.documentElement,"mxGraphModel");+if(null!=M&&0<M.length)try{var T=c.getHashValueForPages(M);mxLog.debug("Checksum: ",T)}catch(z){mxLog.debug("Error: ",z.message)}else mxLog.debug("No pages found for checksum");var m=C.getElementsByTagName("root");for(y=0;y<m.length;y++)B(m[y]);mxLog.show()}catch(z){c.handleError(z),null!=window.console&&console.error(z)}});c.showDialog(q.container,620,460,!0,!0);q.init()}));var K=null;c.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=c.pages){var q=new TextareaDialog(c,"Diff/Sync:",+"",function(y){var B=c.getCurrentFile();if(0<y.length&&null!=B)try{var C=JSON.parse(y);B.patch([C],null,!0,!0);c.hideDialog()}catch(M){c.handleError(M)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(y,B){K=c.getPagesForXml(c.getFileData(!0));q.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+c.getHashValueForPages(K)}],["Diff",function(y,B){try{q.textarea.value=JSON.stringify(c.diffPages(K,c.pages),null,2)}catch(C){c.handleError(C)}}]]);null==K?+(K=c.getPagesForXml(c.getFileData(!0)),q.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+c.getHashValueForPages(K)):q.textarea.value=JSON.stringify(c.diffPages(K,c.pages),null,2);c.showDialog(q.container,620,460,!0,!0);q.init()}else c.alert("No pages")}));c.actions.addAction("testChecksum",mxUtils.bind(this,function(){var q=c.getCurrentFile();null!=c.pages&&null!=q?c.spinner.spin(document.body,mxResources.get("loading"))&&q.getLatestVersion(function(y){c.spinner.stop();+var B=c.getHashValueForPages(c.pages),C=q.getCurrentRevisionId(),M=c.getHashValueForPages(y.getShadowPages()),T=y.getDescriptorChecksum(y.getDescriptor()),m=y.getCurrentRevisionId();console.log("Local File",[q],"modified",q.isModified(),"checksum",B);console.log("Remote File",[y],"rev",m==C,"desc",T==M,"checksum",M);c.alert("Checksums "+(M==B?"match":"no not match"))},function(y){console.log("Error getLatestVersion",y);c.handleError(y)}):console.log("Checksum: no file or pages")}));c.actions.addAction("testCheckPages",+mxUtils.bind(this,function(){var q=c.getCurrentFile();console.log("editorUi",c,"file",q);if(null!=q&&q.isRealtime()){console.log("Checksum ownPages",c.getHashValueForPages(q.ownPages));console.log("Checksum theirPages",c.getHashValueForPages(q.theirPages));console.log("diff ownPages/theirPages",c.diffPages(q.ownPages,q.theirPages));var y=q.getShadowPages();null!=y&&(console.log("Checksum shadowPages",c.getHashValueForPages(y)),console.log("diff shadowPages/ownPages",c.diffPages(y,q.ownPages)),console.log("diff ownPages/shadowPages",+c.diffPages(q.ownPages,y)),console.log("diff theirPages/shadowPages",c.diffPages(q.theirPages,y)));null!=q.sync&&null!=q.sync.snapshot&&(console.log("Checksum snapshot",c.getHashValueForPages(q.sync.snapshot)),console.log("diff ownPages/snapshot",c.diffPages(q.ownPages,q.sync.snapshot)),console.log("diff theirPages/snapshot",c.diffPages(q.theirPages,q.sync.snapshot)),null!=c.pages&&console.log("diff snapshot/actualPages",c.diffPages(q.sync.snapshot,c.pages)));null!=c.pages&&(console.log("diff ownPages/actualPages",+c.diffPages(q.ownPages,c.pages)),console.log("diff theirPages/actualPages",c.diffPages(q.theirPages,c.pages)))}null!=q&&console.log("Shadow pages",[c.getXmlForPages(q.getShadowPages())]);null!=c.pages&&console.log("Checksum actualPages",c.getHashValueForPages(c.pages))}));c.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",c);var q=c.getCurrentFile();null!=q&&q.isRealtime()&&null!=q.shadowPages&&(console.log("patching actualPages to shadowPages",q.patch([c.diffPages(q.shadowPages,+c.pages)])),q.ownPages=c.clonePages(c.pages),q.theirPages=c.clonePages(c.pages),q.shadowPages=c.clonePages(c.pages),null!=q.sync&&(q.sync.snapshot=c.clonePages(c.pages)))}));c.actions.addAction("testOptimize",mxUtils.bind(this,function(){l.model.beginUpdate();try{var q=l.model.cells,y=0,B=[],C=[],M;for(M in q){var T=q[M],m=l.getCurrentCellStyle(T)[mxConstants.STYLE_IMAGE];null!=m&&"data:"==m.substring(0,5)&&(null==B[m]&&(B[m]=(B[m]||0)+1,y++),C.push(T))}l.setCellStyles(mxConstants.STYLE_IMAGE,null,+C);console.log("Removed",y,"image(s) from",C.length,"cell(s): ",[C,B])}finally{l.model.endUpdate()}}));c.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(c,l.getModel())}));c.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var q=new mxImageExport,y=l.getGraphBounds(),B=l.view.scale,C=mxUtils.createXmlDocument(),M=C.createElement("output");C.appendChild(M);C=new mxXmlCanvas2D(M);C.translate(Math.floor((1-y.x)/B),Math.floor((1-y.y)/B));C.scale(1/B);var T=+0,m=C.save;C.save=function(){T++;m.apply(this,arguments)};var z=C.restore;C.restore=function(){T--;z.apply(this,arguments)};var I=q.drawShape;q.drawShape=function(L){mxLog.debug("entering shape",L,T);I.apply(this,arguments);mxLog.debug("leaving shape",L,T)};q.drawState(l.getView().getState(l.model.root),C);mxLog.show();mxLog.debug(mxUtils.getXml(M));mxLog.debug("stateCounter",T)}));c.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=+mxPopupMenu.prototype.zIndex-2});var d=null,g=null,k=null,u=null,t=null,x=null,A=null,J=null;c.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=d?(l.view.revalidate=d,d=null):(d=l.view.revalidate,l.view.revalidate=function(){var q=Date.now(),y=d.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=g?(c.selectPage=g,g=null):(g=c.selectPage,c.selectPage=function(){var q=Date.now(),y=g.apply(this,+arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=k?(c.diffPages=k,k=null):(k=c.diffPages,c.diffPages=function(){var q=Date.now(),y=k.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=u?(c.patchPages=u,u=null):(u=c.patchPages,c.patchPages=function(){var q=Date.now(),y=u.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",+[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=t?(c.clonePages=t,t=null):(t=c.clonePages,c.clonePages=function(){var q=Date.now(),y=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=A?(c.getHashValueForPages=A,A=null):(A=c.getHashValueForPages,c.getHashValueForPages=function(){var q=Date.now(),y=A.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],+"time",Date.now()-q+" ms","args",arguments);return y});null!=J?(c.resolveCrossReferences=J,J=null):(J=c.resolveCrossReferences,c.resolveCrossReferences=function(){var q=Date.now(),y=J.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=x?(c.getFileData=x,x=null):(x=c.getFileData,c.getFileData=function(){var q=Date.now(),y=x.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",+[this],"time",Date.now()-q+" ms","args",arguments);return y});EditorUi.debug("[Performance]",null!=d?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),y);var B=q.addItem(mxResources.get("testPerformance"),null,function(){c.actions.get("testPerformance").funct()},y);null!=d&&q.addCheckmark(B,+Editor.checkmarkImage);this.addMenuItems(q,["-","testShowConsole"],y)})))}c.actions.put("shapes",new Action(mxResources.get("moreShapes")+"...",function(q){mxClient.IS_CHROMEAPP||!c.isOffline()?c.showDialog((new MoreShapesDialog(c,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):c.showDialog((new MoreShapesDialog(c,!1)).container,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)}));c.actions.put("createShape",new Action(mxResources.get("shape")+"...",function(q){l.isEnabled()&&+(q=new mxCell("",new mxGeometry(0,0,120,120),c.defaultCustomShapeStyle),q.vertex=!0,q=new EditShapeDialog(c,q,mxResources.get("editShape")+":",630,400),c.showDialog(q.container,640,480,!0,!1),q.init())})).isEnabled=n;c.actions.put("embedHtml",new Action(mxResources.get("html")+"...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){c.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",q,function(y,B,C,M,T,m,z,I,L,N,Q,R){c.createHtml(y,B,C,M,T,m,z,I,+L,N,Q,mxUtils.bind(this,function(V,W){var X=new EmbedDialog(c,"\x3c!-- "+c.editor.appName+" diagram --\x3e\n"+V+"\n"+W+"\n",null,null,function(){var Z=window.open(),Y=Z.document;if(null!=Y){"CSS1Compat"===document.compatMode&&Y.writeln("<!DOCTYPE html>");Y.writeln("<html>");Y.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Y.writeln("<body>");Y.writeln(V);var ba=mxClient.IS_IE||mxClient.IS_EDGE||null!=document.documentMode;ba&&Y.writeln(W);+Y.writeln("</body>");Y.writeln("</html>");Y.close();if(!ba){var da=Z.document.createElement("div");da.marginLeft="26px";da.marginTop="26px";mxUtils.write(da,mxResources.get("updatingDocument"));ba=Z.document.createElement("img");ba.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ba.style.marginLeft="6px";da.appendChild(ba);Z.document.body.insertBefore(da,Z.document.body.firstChild);window.setTimeout(function(){var ca=document.createElement("script");+ca.type="text/javascript";ca.src=/<script.*?src="(.*?)"/.exec(W)[1];Y.body.appendChild(ca);da.parentNode.removeChild(da)},20)}}else c.handleError({message:mxResources.get("errorUpdatingPreview")})});c.showDialog(X.container,450,240,!0,!0);X.init()}),R)})})}));c.actions.put("liveImage",new Action("Live image...",function(){var q=c.getCurrentFile();null!=q&&c.getPublicUrl(q,function(y){null!=y?(y=new EmbedDialog(c,'<img src="'+(q.constructor!=DriveFile?y:"https://drive.google.com/uc?id="+q.getId())++'"/>'),c.showDialog(y.container,450,240,!0,!0),y.init()):c.handleError({message:mxResources.get("invalidPublicUrl")})})}));c.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){c.showEmbedImageDialog(function(q,y,B,C,M,T){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedImage(q,y,B,C,M,T,function(m){c.spinner.stop();m=new EmbedDialog(c,m);c.showDialog(m.container,450,240,!0,!0);m.init()},function(m){c.spinner.stop();c.handleError(m)})},mxResources.get("image"),+mxResources.get("retina"),c.isExportToCanvas())}));c.actions.put("embedSvg",new Action(mxResources.get("formatSvg")+"...",function(){c.showEmbedImageDialog(function(q,y,B,C,M,T){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedSvg(q,y,B,C,M,T,function(m){c.spinner.stop();m=new EmbedDialog(c,m);c.showDialog(m.container,450,240,!0,!0);m.init()},function(m){c.spinner.stop();c.handleError(m)})},mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/doc/faq/embed-svg.html")}));+c.actions.put("embedIframe",new Action(mxResources.get("iframe")+"...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){var y=l.getGraphBounds();c.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,y.height/l.view.scale))+2,null,null,null,q,c.getCurrentFile(),function(B,C,M,T,m,z,I,L,N,Q,R,V){var W=[];N&&W.push("tags=%7B%7D");B=new EmbedDialog(c,'<iframe frameborder="0" style="width:'+I+";height:"+L+';" src="'+c.createLink(B,C,!0,T,m,z,"public"==Q?q:null,null,W,+null,M,R,V)+'"'+(R?' allowtransparency="true"':"")+"></iframe>");c.showDialog(B.container,450,240,!0,!0);B.init()},!0,!0)})}));c.actions.put("embedNotion",new Action(mxResources.get("notion")+"...",function(){var q=document.createElement("div");q.style.position="absolute";q.style.bottom="30px";q.style.textAlign="center";q.style.width="100%";q.style.left="0px";var y=document.createElement("a");y.setAttribute("href","javascript:void(0);");y.setAttribute("target","_blank");y.style.cursor="pointer";mxUtils.write(y,+mxResources.get("getNotionChromeExtension"));q.appendChild(y);mxUtils.setPrefixedStyle(y.style,"transition","all 1s ease");mxUtils.setOpacity(y,0);window.setTimeout(function(){mxUtils.setOpacity(y,100)},300);mxEvent.addListener(y,"click",function(B){c.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(B)});c.getPublicUrl(c.getCurrentFile(),function(B){c.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",+q,B,c.getCurrentFile(),function(C,M,T,m,z,I,L,N,Q,R,V,W){L=["border=0"];Q&&L.push("tags=%7B%7D");C=new EmbedDialog(c,c.createLink(C,M,!0,m,z,I,"public"==R?B:null,null,L,null,T,null,W));c.showDialog(C.container,450,240,!0,!0);C.init()},null,!0)})}));c.actions.put("publishLink",new Action(mxResources.get("link")+"...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){c.showPublishLinkDialog(null,null,null,null,null,null,q,c.getCurrentFile(),function(y,B,C,M,T,m,z,I,L,N,Q,R){z=[];M&&L&&z.push("tags=%7B%7D");+y=new EmbedDialog(c,c.createLink(y,B,!0,M,T,m,"public"==N?q:null,null,z,null,C,null,R));c.showDialog(y.container,450,240,!0,!0);y.init()},null,!0)})}));c.actions.addAction("microsoftOffice...",function(){c.openLink("https://office.draw.io")});c.actions.addAction("googleDocs...",function(){c.openLink("http://docsaddon.draw.io")});c.actions.addAction("googleSlides...",function(){c.openLink("https://slidesaddon.draw.io")});c.actions.addAction("googleSheets...",function(){c.openLink("https://sheetsaddon.draw.io")});+c.actions.addAction("googleSites...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){q=new GoogleSitesDialog(c,q);c.showDialog(q.container,420,256,!0,!0);q.init()})});if(isLocalStorage||mxClient.IS_CHROMEAPP)p=c.actions.addAction("scratchpad",function(){c.toggleScratchpad()}),p.setToggleAction(!0),p.setSelectedCallback(function(){return null!=c.scratchpad}),"0"!=urlParams.plugins&&c.actions.addAction("plugins...",function(){c.showDialog((new PluginsDialog(c)).container,380,240,!0,!1)});window.matchMedia&&+null!=document.getElementById("high-contrast-stylesheet")&&(p=c.actions.addAction("highContrast",function(){c.setAndPersistHighContrast(!c.isHighContrast())}),p.setToggleAction(!0),p.setSelectedCallback(function(){return c.isHighContrast()}));p=c.actions.addAction("search",function(){if(null!=c.sidebar){var q=c.sidebar.isEntryVisible("search");c.sidebar.showPalette("search",!q);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!q,mxSettings.save())}});p.label=mxResources.get("searchShapes");+p.setToggleAction(!0);p.setSelectedCallback(function(){return null!=c.sidebar&&c.sidebar.isEntryVisible("search")});c.actions.get("clearDefaultStyle").funct=function(q){l.isEnabled()&&(c.clearDefaultStyle(),Editor.sketchMode&&c.setSketchMode(!1))};"1"==urlParams.embed&&(c.actions.get("saveAs").setEnabled(!1),c.actions.get("save").funct=function(q){l.isEditing()&&l.stopEditing();var y="0"!=urlParams.pages||null!=c.pages&&1<c.pages.length?c.getFileData(!0):mxUtils.getXml(c.editor.getGraphXml());if("json"==+urlParams.proto){var B=c.createLoadMessage("save");B.xml=y;!0!==q||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(B.exit=!0);y=JSON.stringify(B)}(window.opener||window.parent).postMessage(y,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(c.editor.modified=!1,c.editor.setStatus(""));q=c.getCurrentFile();null==q||q.constructor==EmbedFile||q.constructor==LocalFile&&null==q.mode||c.saveFile()},c.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?c.sendEmbeddedSvgExport():c.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),c.actions.addAction("exit",function(){if("1"==urlParams.embedInline)c.sendEmbeddedSvgExport();else{var q=function(){c.editor.modified=!1;var y="json"==urlParams.proto?JSON.stringify({event:"exit",modified:c.editor.modified}):"";(window.opener||window.parent).postMessage(y,"*")};c.editor.modified?c.confirm(mxResources.get("allChangesLost"),null,q,mxResources.get("cancel"),mxResources.get("discardChanges")):q()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(q,y){c.isExportToCanvas()?(this.addMenuItems(q,["exportPng"],y),c.jpgSupported&&this.addMenuItems(q,["exportJpg"],y),c.webpSupported&&this.addMenuItems(q,["exportWebp"],y)):c.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(q,["exportPng","exportJpg"],y);this.addMenuItems(q,["exportSvg","-"],y);c.isOffline()||c.printPdfExport?this.addMenuItems(q,["exportPdf"],y):c.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(q,["exportPdf"],y);!c.vsdxExportEnabled()||mxClient.IS_IE||"undefined"===typeof VsdxExport&&c.isOffline()||this.addMenuItems(q,["exportVsdx"],y);this.addMenuItems(q,["-","exportHtml","exportXml","exportUrl"],y);c.isOffline()||(q.addSeparator(y),this.addMenuItem(q,"export",y).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||diff --git a/src/main/webapp/js/extensions.min.js b/src/main/webapp/js/extensions.min.jsindex f4b3b3a6c..f7089f114 100644--- a/src/main/webapp/js/extensions.min.js+++ b/src/main/webapp/js/extensions.min.js@@ -1,337 +1,336 @@LucidImporter={};-(function(){function g(w){if(w&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[w])w=F[w];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D<F.length;D++){var u=F[D];w=w.replace(u.searchVal,u.replVal)}LucidImporter.hasExtImgs=!0}}return w}function y(w){mb="";try{if(w){var F=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(F=LucidImporter.advImpConfig.fontMapping[w]);if(F){for(var D in F)mb+=D+"="+F[D]+";";return F.fontFamily?"font-family: "+F.fontFamily:-""}if("Liberation Sans"!=w)return mb="fontFamily="+w+";","font-family: "+w+";"}}catch(u){}return""}function z(w){return Math.round(10*w)/10}function B(w,F,D){function u(ma,La){var ya="",za=ma.t,Qb=ma.l||{v:za&&"ul"==za.v?"auto":"decimal"};if(null==za||0!=Ma&&Ma==za.v&&Ja==Qb.v)null==za&&(Ma&&(ya+=O(!0),Ma=!1),ya+='<div style="',Ca.push("div"));else{Ma&&(ya+=O(!0));Ma=za.v;Ja=Qb.v;"ul"==za.v?(ya+="<ul ",Ca.push("ul")):(ya+="<ol ",Ca.push("ol"));ya+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';-if("hl"==za.v)ya+="upper-roman";else switch(Qb.v){case "auto":ya+="disc";break;case "inv":ya+="circle";break;case "disc":ya+="circle";break;case "trib":ya+="square";break;case "square":ya+="square";break;case "dash":ya+="square";break;case "heart":ya+="disc";break;default:ya+="decimal"}ya+='">'}if(null!=za){ya+='<li style="text-align:'+(ma.a?ma.a.v:D.TextAlign||"center")+";";if(null!=La){if(La.c)var ha=La.c.v;if(La.s)var xb=La.s.v}try{var Wa=ba[ka],rc=ra[Aa];La=ka;if(Wa&&rc&&Wa.s<rc.e)for(var wc=-Wa.s;null!=Wa&&Wa.s==wc;)"s"==Wa.n?xb=Wa.v:"c"==Wa.n&&(ha=Wa.v),Wa=ba[++La]}catch(Gb){console.log(Gb)}ha=V(ha);null!=ha&&(ha=ha.substring(0,7),ya+="color:"+ha+";");xb&&(ya+="font-size:"+z(.75*xb)+"px;");ya+='">';Ca.push("li");ya+='<span style="';Ca.push("span")}Ma||(xb=ha=ma.a?ma.a.v:D.TextAlign||"center","left"==ha?xb="flex-start":"right"==ha&&(xb="flex-end"),ya+="display: flex; justify-content: "+xb+"; text-align: "+ha+"; align-items: baseline; font-size: 0; line-height: 1.25;");ma.il&&(ya+="margin-left: "+-Math.max(0,z(.75*ma.il.v-(Ma?28:0)))+"px;");ma.ir&&(ya+="margin-right: "+z(.75*ma.ir.v)+"px;");ma.mt&&(ya+="margin-top: "+z(.75*ma.mt.v)+"px;");ma.mb&&(ya+="margin-bottom: "+z(.75*ma.mb.v)+"px;");ya+='margin-top: -2px;">';Ma||(ya+="<span>",Ca.push("span"));return ya}function e(ma){if(mxUtils.isEmptyObject(ma))return"";var La="",ya=0;if(ma.lk){var za=ma.lk;null!=za.v&&0<za.v.length&&(La+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}La+='<span style="';Ba.push("span");ya++;La+="font-size:"+(ma.s&&-ma.s.v?z(.75*ma.s.v):"13")+"px;";ma.c&&(za=V(ma.c.v),null!=za&&(za=za.substring(0,7),La+="color:"+za+";"));if(ma.b&&ma.b.v||ma.fc&&ma.fc.v&&0==ma.fc.v.indexOf("Bold"))La+="font-weight: bold;";ma.i&&ma.i.v&&(La+="font-style: italic;");ma.ac&&ma.ac.v&&(La+="text-transform: uppercase;");za=null;ma.f?za=ma.f.v:D.Font&&(za=D.Font);La+=y(za);za=[];ma.u&&ma.u.v&&za.push("underline");ma.k&&ma.k.v&&za.push("line-through");0<za.length&&(La+="text-decoration: "+za.join(" ")+";");La+='">';Oa.push(ya);return La}-function O(ma){var La="";do{var ya=Ca.pop();if(!ma&&Ma&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}La+="</"+ya+">"}while(0<Ca.length);return La}function r(ma,La,ya,za){ma=ma?ma.substring(La,ya):"";Ma&&(ma=ma.trim());0==Ba.length&&0<ma.length&&(ma=e({dummy:1})+ma);ma=ma.replace(/</g,"<").replace(/>/g,">");do for(La=Oa.pop(),ya=0;ya<La;ya++){var Qb=Ba.pop();ma+="</"+Qb+">"}while(za&&0<Ba.length);return ma}var p={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},aa={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,-k:!0,f:!0,ac:!0};F.sort(function(ma,La){return ma.s-La.s});var ba=F.filter(function(ma){return aa[ma.n]});ba[0]&&0!=ba[0].s&&ba.unshift({s:0,n:"dummy",v:"",e:ba[0].s});F=F.filter(function(ma){return p[ma.n]});for(var W=[0],wa=0;0<(wa=w.indexOf("\n",wa));)wa++,W.push(wa);for(var ka=wa=0;ka<F.length;ka++){if(F[ka].s>W[wa])F.splice(ka,0,{s:W[wa],n:"a",v:D.TextAlign||"center"});else{for(var pa=0;ka+pa<F.length&&F[ka+pa].s==W[wa];)pa++;1<pa&&(ka+=pa-1)}wa++}null!=W[wa]&&F.push({s:W[wa],n:"a",v:D.TextAlign||-"center"});W="";var ra=ba.slice();ra.sort(function(ma,La){return ma.e-La.e});var Aa=ka=0;wa=0;pa={};for(var na={},Ba=[],Oa=[],Ca=[],ua=!1,Ma=!1,Ja,Ka=0,l=0,Ha=w.length,cb=!0;wa<F.length||cb;){cb=!1;if(wa<F.length){var Ea=F[wa],Qa=F[wa].s;ua&&(na={},W+=r(w,Ka,Ha,!0),l=Ka=Ha,W+=O());for(;null!=Ea&&Ea.s==Qa;)na[Ea.n]=Ea,Ea=F[++wa];Ha=null!=Ea?Ea.s:w.length;W+=u(na,pa);ua&&(W+=e(pa));ua=!0}for(;ka>=Aa&&(ka<ba.length||Aa<ra.length);)if(Ea=ba[ka],Qa=ra[Aa],Ea&&Qa&&Ea.s<Qa.e){if(Ea.s>=Ha)break;Ka=Ea.s;0<-Ka-l&&(W+=e(pa)+r(w,l,Ka),l=Ka);for(;null!=Ea&&Ea.s==Ka;)pa[Ea.n]=Ea,Ea=ba[++ka];W+=e(pa)}else if(Qa){if(Qa.e>Ha)break;l=Qa.e;do delete pa[Qa.n],Qa=ra[++Aa];while(null!=Qa&&Qa.e==l);W+=r(w,Ka,l);Ka=l;0!=Oa.length||null!=Ea&&Ea.s==l||(ba.splice(ka,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ha,n:"dummy",v:""}))}else break}W+=r(null,null,null,!0);ua&&(l!=Ha&&(W+=e({dummy:1})+r(w,l,Ha)),W+=O(!0));return W}function m(w,F){G=!1;var D=null!=w.Text&&w.Text.t?w.Text:null!=w.Value&&w.Value.t?w.Value:-null!=w.Lane_0&&w.Lane_0.t?w.Lane_0:null;null==D&&null!=w.State?w.State.t&&(D=w.State):null==D&&null!=w.Note?w.Note.t&&(D=w.Note):null==D&&null!=w.Title?w.Title.t&&(D=w.Title):w.t&&(D=w);null==D&&null!=w.TextAreas?null!=w.TextAreas.Text&&null!=w.TextAreas.Text.Value&&w.TextAreas.Text.Value.t&&(D=w.TextAreas.Text.Value):null==D&&null!=w.t0&&w.t0.t&&(D=w.t0);if(null!=D){if(null!=D.t){var u=D.t;u=u.replace(/\u2028/g,"\n");D=D.m;try{/ /.test(u)&&(LucidImporter.hasUnknownShapes=!0);for(var e=0;e<D.length;e++)if(0<-D[e].s||null!=D[e].e&&D[e].e<u.length||"t"==D[e].n||"ac"==D[e].n||"lk"==D[e].n){G=!0;break}if(G=G||F)return B(u,D,w)}catch(O){console.log(O)}u=u.replace(/</g,"<");return u=u.replace(/>/g,">")}if(null!=D.Value&&null!=D.Value.t)return D.Value.t=D.Value.t.replace(/</g,"<"),D.Value.t=D.Value.t.replace(/>/g,">"),D.Value.t}return""}function h(w){return null!=w.Action?w.Action:w}function b(w){if(null!=w.Text){if(null!=w.Text.m)return w.Text.m}else if(null!=w.TextAreas){if(null!=w.TextAreas.Text&&-null!=w.TextAreas.Text.Value&&null!=w.TextAreas.Text.Value.m)return w.TextAreas.Text.Value.m}else{if(null!=w.m)return w.m;if(null!=w.Title){if(null!=w.Title.m)return w.Title.m}else if(null!=w.State){if(null!=w.State.m)return w.State.m}else if(null!=w.Note&&null!=w.Note.m)return w.Note.m}return null}function a(w,F){w="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+mb:f(w)+k(w)+q(w)+t(w)+C(w)+I(w)+Q(w)+K(w)+L(w))+S(w)+R(w)+Zb(mxConstants.STYLE_ALIGN,w.TextAlign,"center");mb=-"";return w}function c(w,F,D,u,e,O){O=null==O?!1:O;var r="",p=!1,aa=!1;if(null!=w)if(O){O=w.split(";");w="";for(var ba=0;ba<O.length;ba++)"fillColor=none"==O[ba]?aa=!0:"strokeColor=none"==O[ba]?p=!0:""!=O[ba]&&(w+=O[ba]+";")}else""!=w&&";"!=w.charAt(w.length-1)&&(r=";");r+=(Yc(w,"whiteSpace")?"":"whiteSpace=wrap;")+(e?(Yc(w,"overflow")?"":"overflow=block;blockSpacing=1;")+(Yc(w,"html")?"":"html=1;")+"fontSize=13;"+mb:d(mxConstants.STYLE_FONTSIZE,w,F,D,u)+d(mxConstants.STYLE_FONTFAMILY,w,F,D,u)+d(mxConstants.STYLE_FONTCOLOR,-w,F,D,u)+d(mxConstants.STYLE_FONTSTYLE,w,F,D,u)+d(mxConstants.STYLE_ALIGN,w,F,D,u)+d(mxConstants.STYLE_SPACING_LEFT,w,F,D,u)+d(mxConstants.STYLE_SPACING_RIGHT,w,F,D,u)+d(mxConstants.STYLE_SPACING_TOP,w,F,D,u)+d(mxConstants.STYLE_SPACING_BOTTOM,w,F,D,u))+d(mxConstants.STYLE_ALIGN+"Global",w,F,D,u)+d(mxConstants.STYLE_SPACING,w,F,D,u)+d(mxConstants.STYLE_VERTICAL_ALIGN,w,F,D,u)+d(mxConstants.STYLE_STROKECOLOR,w,F,D,u)+d(mxConstants.STYLE_OPACITY,w,F,D,u)+d(mxConstants.STYLE_ROUNDED,w,F,D,u)+d(mxConstants.STYLE_ROTATION,-w,F,D,u)+d(mxConstants.STYLE_FLIPH,w,F,D,u)+d(mxConstants.STYLE_FLIPV,w,F,D,u)+d(mxConstants.STYLE_SHADOW,w,F,D,u)+d(mxConstants.STYLE_FILLCOLOR,w,F,D,u)+d(mxConstants.STYLE_DASHED,w,F,D,u)+d(mxConstants.STYLE_STROKEWIDTH,w,F,D,u)+d(mxConstants.STYLE_IMAGE,w,F,D,u)+d(mxConstants.STYLE_POINTER_EVENTS,w,F,D,u);aa&&!Yc(r,mxConstants.STYLE_FILLCOLOR)&&(r+="fillColor=none;");p&&!Yc(r,mxConstants.STYLE_STROKECOLOR)&&(r+="strokeColor=none;");mb="";return r}function d(w,F,D,u,e){if(!Yc(F,w))switch(w){case mxConstants.STYLE_FONTSIZE:return f(D);-case mxConstants.STYLE_FONTFAMILY:return k(D);case mxConstants.STYLE_FONTCOLOR:return q(D);case mxConstants.STYLE_FONTSTYLE:return t(D);case mxConstants.STYLE_ALIGN:return C(D);case mxConstants.STYLE_ALIGN+"Global":return Zb(mxConstants.STYLE_ALIGN,D.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return I(D);case mxConstants.STYLE_SPACING_RIGHT:return Q(D);case mxConstants.STYLE_SPACING_TOP:return K(D);case mxConstants.STYLE_SPACING_BOTTOM:return L(D);case mxConstants.STYLE_SPACING:return S(D);-case mxConstants.STYLE_VERTICAL_ALIGN:return R(D);case mxConstants.STYLE_STROKECOLOR:return H(D,u);case mxConstants.STYLE_OPACITY:return M(D,u,e);case mxConstants.STYLE_ROUNDED:return w=!e.edge&&!e.style.includes("rounded")&&null!=D.Rounding&&0<D.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+z(.75*D.Rounding)+";":"",w;case mxConstants.STYLE_ROTATION:return T(D,u,e);case mxConstants.STYLE_FLIPH:return w=D.FlipX?"flipH=1;":"",w;case mxConstants.STYLE_FLIPV:return w=D.FlipY?"flipV=1;":"",w;case mxConstants.STYLE_SHADOW:return ca(D);-case mxConstants.STYLE_FILLCOLOR:return Y(D,u);case mxConstants.STYLE_DASHED:return sa(D);case mxConstants.STYLE_STROKEWIDTH:return oa(D);case mxConstants.STYLE_IMAGE:return Ra(D,u);case mxConstants.STYLE_POINTER_EVENTS:return D.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function f(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("s"==D.n&&D.v)return"fontSize="+z(.75*D.v)+";";F++}return"fontSize=13;"}function k(w){var F=b(w);if(null!=F)for(var D=-0;D<F.length;D++)if("f"==F[D].n&&F[D].v){var u=F[D].v;break}!u&&w.Font&&(u=w.Font);y(u);return mb}function n(w){return"ext"==w.tp?w.url:"ml"==w.tp?"mailto:"+w.eml:"pg"==w.tp?"data:page/id,"+(LucidImporter.pageIdsMap[w.id]||0):"c"==w.tp?"data:confluence/id,"+w.ccid:null}function q(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("c"==D.n&&null!=D.v)return w=V(D.v).substring(0,7),"#000000"==w&&(w="default"),mxConstants.STYLE_FONTCOLOR+"="+w+";";F++}return""}function t(w){return A(b(w))}function A(w){if(null!=-w){var F=0,D=!1;if(null!=w)for(var u=0;!D&&u<w.length;){var e=w[u];"b"==e.n?null!=e.v&&e.v&&(D=!0,F+=1):"fc"==e.n&&"Bold"==e.v&&(D=!0,F+=1);u++}D=!1;if(null!=w)for(u=0;!D&&u<w.length;)e=w[u],"i"==e.n&&null!=e.v&&e.v&&(D=!0,F+=2),u++;D=!1;if(null!=w)for(u=0;!D&&u<w.length;)e=w[u],"u"==e.n&&null!=e.v&&e.v&&(D=!0,F+=4),u++;if(0<F)return"fontStyle="+F+";"}return""}function C(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("a"==D.n&&null!=D.v)return"align="+D.v+";";F++}return""}function I(w){w=-b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if(null!=D.v&&"il"==D.n)return"spacingLeft="+z(.75*D.v)+";";F++}return""}function Q(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("ir"==D.n&&null!=D.v)return"spacingRight="+z(.75*D.v)+";";F++}return""}function K(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mt"==D.n&&null!=D.v)return"spacingTop="+z(.75*D.v)+";";F++}return""}function L(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mb"==D.n&&null!=D.v)return"spacingBottom="+-z(.75*D.v)+";";F++}return""}function S(w){return"number"===typeof w.InsetMargin?"spacing="+Math.max(0,z(.75*w.InsetMargin))+";":""}function R(w){return null!=w.Text_VAlign&&"string"===typeof w.Text_VAlign?"verticalAlign="+w.Text_VAlign+";":null!=w.Title_VAlign&&"string"===typeof w.Title_VAlign?"verticalAlign="+w.Title_VAlign+";":Zb(mxConstants.STYLE_VERTICAL_ALIGN,w.TextVAlign,"middle")}function H(w,F){return 0==w.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Zb(mxConstants.STYLE_STROKECOLOR,P(w.LineColor),-"#000000")}function N(w){return null!=w?mxConstants.STYLE_FILLCOLOR+"="+P(w)+";":""}function J(w){return null!=w?"swimlaneFillColor="+P(w)+";":""}function M(w,F,D){F="";if("string"===typeof w.LineColor&&(w.LineColor=V(w.LineColor),7<w.LineColor.length)){var u="0x"+w.LineColor.substring(w.LineColor.length-2,w.LineColor.length);D.style.includes("strokeOpacity")||(F+="strokeOpacity="+Math.round(parseInt(u)/2.55)+";")}"string"===typeof w.FillColor&&(w.FillColor=V(w.FillColor),7<w.FillColor.length&&(w=-"0x"+w.FillColor.substring(w.FillColor.length-2,w.FillColor.length),D.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(w)/2.55)+";")));return F}function T(w,F,D){var u="";if(null!=w.Rotation){w=mxUtils.toDegree(parseFloat(w.Rotation));var e=!0;0!=w&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==w||270==w)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(w+=90,D.geometry.rotate90(),D.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(wf,-F.Class)?(w-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(xf,F.Class)&&(w+=180);0!=w&&(u+="rotation="+w+";");e||(u+="horizontal=0;")}return u}function ca(w){return null!=w.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function V(w){if(w){if("object"===typeof w)try{w=w.cs[0].c}catch(F){console.log(F),w="#ffffff"}"rgb"==w.substring(0,3)?w="#"+w.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=w.charAt(0)&&(w="#"+w)}return w}function P(w){return(w=V(w))?-w.substring(0,7):null}function ea(w,F){return(w=V(w))&&7<w.length?F+"="+Math.round(parseInt("0x"+w.substr(7))/2.55)+";":""}function Y(w,F){if(null!=w.FillColor)if("object"===typeof w.FillColor){if(null!=w.FillColor.cs&&1<w.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,P(w.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,P(w.FillColor.cs[1].c))}else return"string"===typeof w.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,P(w.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");-return""}function sa(w){return"dotted"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":-"dashed32"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=w.StrokeStyle&&"dashed"==w.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function oa(w){return null!=w.LineWidth?Zb(mxConstants.STYLE_STROKEWIDTH,z(.75*parseFloat(w.LineWidth)),"1"):""}function Ra(w,F,D){var u="";w.FillColor&&w.FillColor.url?(D=w.FillColor.url,"fill"==w.FillColor.pos&&(u="imageAspect=0;")):"ImageSearchBlock2"==F.Class?D=w.URL:"UserImage2Block"==-F.Class&&null!=w.ImageFillProps&&null!=w.ImageFillProps.url&&(D=w.ImageFillProps.url);return null!=D?"image="+g(D)+";"+u:""}function la(w,F,D){null!=F.Link&&0<F.Link.length&&D.setAttributeForCell(w,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&D.setAttributeForCell(w,"Notes",F.NoteHint.t);var u=[],e=D.convertValueToString(w),O=!1;if(null!=e){for(var r=0;match=yf.exec(e);){var p=match[0];O=!0;if(2<p.length){var aa=p.substring(2,p.length-2);"documentName"==aa?aa="filename":"pageName"==aa?aa=-"page":"totalPages"==aa?aa="pagecount":"page"==aa?aa="pagenumber":"date:"==aa.substring(0,5)?aa="date{"+aa.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==aa.substring(0,16)?aa=aa.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==aa.substring(0,9)&&(aa="date{"+aa.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");aa="%"+aa+"%";u.push(e.substring(r,match.index)+-(null!=aa?aa:p));r=match.index+p.length}}O&&(u.push(e.substring(r)),D.setAttributeForCell(w,"label",u.join("")),D.setAttributeForCell(w,"placeholders","1"))}for(var ba in F)if(F.hasOwnProperty(ba)&&ba.toString().startsWith("ShapeData_"))try{var W=F[ba],wa=mxUtils.trim(W.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Sa(w,wa,W.Value,D)}catch(ka){window.console&&console.log("Ignored "+ba+":",ka)}}function Sa(w,F,D,u){for(var e=F,O=0;null!=u.getAttributeForCell(w,e);)O++,e=F+-"_"+O;u.setAttributeForCell(w,e,null!=D?D:"")}function Xa(w,F,D,u,e,O){var r=h(F);if(null!=r){var p=Pd[r.Class];null!=p?(w.style+=p,";"!=w.style.charAt(w.style.length-1)&&(w.style+=";")):w.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);p=null!=r.Properties?r.Properties:r;if(null!=p&&(w.value=O?"":m(p),w.style+=c(w.style,p,r,w,G,!0),w.style.includes("strokeColor")||(w.style+=H(p,r)),la(w,p,D),p.Title&&p.Title.t&&p.Text&&p.Text.t&&"ExtShape"!=r.Class.substr(0,-8)&&(D=w.geometry,D=new mxCell(m(p.Title),new mxGeometry(0,D.height,D.width,10),"strokeColor=none;fillColor=none;"),D.vertex=!0,w.insert(D),D.style+=a(p.Title,G)),w.edge)){w.style=null!=p.Rounding&&"diagonal"!=p.Shape?w.style+("rounded=1;arcSize="+p.Rounding+";"):w.style+"rounded=0;";if(D="curve"==p.Shape)w.style+="curved=1;";else if("diagonal"!=p.Shape)if(null!=p.ElbowPoints&&0<p.ElbowPoints.length)for(w.geometry.points=[],r=0;r<p.ElbowPoints.length;r++)w.geometry.points.push(new mxPoint(Math.round(.75*-p.ElbowPoints[r].x+xc),Math.round(.75*p.ElbowPoints[r].y+yc)));else if("elbow"==p.Shape||null!=p.Endpoint1.Block&&null!=p.Endpoint2.Block)w.style+="edgeStyle=orthogonalEdgeStyle;";if(p.LineJumps||LucidImporter.globalProps.LineJumps)w.style+="jumpStyle=arc;";null!=p.Endpoint1.Style&&(O=Fe[p.Endpoint1.Style],null!=O?(O=O.replace(/xyz/g,"start"),w.style+="startArrow="+O+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint1.Style)));null!=p.Endpoint2.Style&&-(O=Fe[p.Endpoint2.Style],null!=O?(O=O.replace(/xyz/g,"end"),w.style+="endArrow="+O+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint2.Style)));O=null!=p.ElbowControlPoints&&0<p.ElbowControlPoints.length?p.ElbowControlPoints:p.Joints;if(D&&null!=p.BezierJoints&&0<p.BezierJoints.length){O=[];D=p.BezierJoints[p.BezierJoints.length-1];D.p.x=p.Endpoint2.x;D.p.y=p.Endpoint2.y;for(r=0;r<p.BezierJoints.length;r++)D=p.BezierJoints[r],O.push({x:D.p.x+-D.nt.x*D.lcps*.75,y:D.p.y+D.nt.y*D.lcps*.75}),O.push({x:D.p.x+D.nt.x*D.rcps*.75,y:D.p.y+D.nt.y*D.rcps*.75});O=O.slice(1,O.length-1)}else D&&(O=[],O.push({x:p.Endpoint1.x+(.1>p.Endpoint1.LinkX?-250:.9<p.Endpoint1.LinkX?250:0),y:p.Endpoint1.y+(.1>p.Endpoint1.LinkY?-250:.9<p.Endpoint1.LinkY?250:0)}),O.push({x:p.Endpoint2.x+(.1>p.Endpoint2.LinkX?-250:.9<p.Endpoint2.LinkX?250:0),y:p.Endpoint2.y+(.1>p.Endpoint2.LinkY?-250:.9<p.Endpoint2.LinkY?250:0)}));if(null!=O)for(w.geometry.points=[],r=0;r<O.length;r++)D=-O[r].p?O[r].p:O[r],w.geometry.points.push(new mxPoint(Math.round(.75*D.x+xc),Math.round(.75*D.y+yc)));D=!1;if((null==w.geometry.points||0==w.geometry.points.length)&&null!=p.Endpoint1.Block&&p.Endpoint1.Block==p.Endpoint2.Block&&null!=u&&null!=e){D=new mxPoint(Math.round(u.geometry.x+u.geometry.width*p.Endpoint1.LinkX),Math.round(u.geometry.y+u.geometry.height*p.Endpoint1.LinkY));O=new mxPoint(Math.round(e.geometry.x+e.geometry.width*p.Endpoint2.LinkX),Math.round(e.geometry.y+e.geometry.height*p.Endpoint2.LinkY));-xc=D.x==O.x?Math.abs(D.x-u.geometry.x)<u.geometry.width/2?-20:20:0;yc=D.y==O.y?Math.abs(D.y-u.geometry.y)<u.geometry.height/2?-20:20:0;var aa=new mxPoint(D.x+xc,D.y+yc),ba=new mxPoint(O.x+xc,O.y+yc);aa.generated=!0;ba.generated=!0;w.geometry.points=[aa,ba];D=D.x==O.x}null!=u&&u.geometry.isRotated||(aa=Ge(w,p.Endpoint1,!0,D,null,u));null!=u&&null!=aa&&(null==u.stylePoints&&(u.stylePoints=[]),u.stylePoints.push(aa),LucidImporter.stylePointsSet.add(u));null!=e&&e.geometry.isRotated||(ba=Ge(w,p.Endpoint2,-!1,D,null,e));null!=e&&null!=ba&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(ba),LucidImporter.stylePointsSet.add(e))}}null!=F.id&&(w.style+=";lucidId="+F.id+";");w.lucidchartObject=F}function sc(w,F){var D=h(w).Properties,u=D.BoundingBox;null==w.Class||"AWS"!==w.Class.substring(0,3)&&"Amazon"!==w.Class.substring(0,6)||w.Class.includes("AWS19")||(u.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*u.x+xc),Math.round(.75*u.y+yc),Math.round(.75*u.w),Math.round(.75*u.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");-v.vertex=!0;Xa(v,w,F);v.zOrder=D.ZOrder;He(v,D);D.Hidden&&(v.visible=!1);return v}function yb(w,F,D,u){var e=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");e.geometry.relative=!0;e.edge=!0;Xa(e,w,F,D,u,!0);var O=h(w).Properties,r=null!=O?O.TextAreas:w.TextAreas;if(null!=r){for(var p=0;void 0!==r["t"+p];){var aa=r["t"+p];null!=aa&&(e=Qd(aa,e,w,D,u,F));p++}for(p=0;void 0!==r["m"+p]||1>p;)aa=r["m"+p],null!=aa&&(e=Qd(aa,e,w,D,u,F)),p++;null!=r.Text&&(e=Qd(r.Text,e,w,D,u,F));r=null!=-O?O.TextAreas:w.TextAreas;null!=r.Message&&(e=Qd(r.Message,e,w,D,u,F))}w.Hidden&&(e.visible=!1);return e}function Qd(w,F,D,u,e,O){var r=2*(parseFloat(w.Location)-.5);isNaN(r)&&null!=w.Text&&null!=w.Text.Location&&(r=2*(parseFloat(w.Text.Location)-.5));O=m(w);var p=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var aa=he;var ba=D;if(G)ba=mb;else{var W="13",wa="";if(null!=w&&null!=w.Value&&null!=w.Value.m){wa=A(w.Value.m);for(var ka=0;ka<w.Value.m.length;ka++)if("s"==w.Value.m[ka].n&&w.Value.m[ka].v)W=-z(.75*parseFloat(w.Value.m[ka].v));else if("c"==w.Value.m[ka].n){var pa=V(w.Value.m[ka].v);null!=pa&&(pa=pa.substring(0,7));"#000000"==pa&&(pa="default");wa+="fontColor="+pa+";"}wa+=k(ba);mb=""}ba=wa+";fontSize="+W+";"}p=new p(O,r,aa+ba);p.geometry.relative=!0;p.vertex=!0;if(w.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=u&&null!=e){var ra=u.geometry,Aa=e.geometry;var na=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*-D.Endpoint1.LinkY-(Aa.y+Aa.height*D.Endpoint2.LinkY))}else na=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Oa=mxUtils.getSizeForString(O.replace(/\n/g,"<br>"));p.geometry.offset=0==na||na<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*w.Side*(Oa.width/2+5+na),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*w.Side*(Oa.height/2+5+Ba))}catch(Ca){console.log(Ca)}p.lucidchartObject=w;F.insert(p);return F}function Zb(w,F,D,u){null!=F&&null!=u&&(F=u(F));-return null!=F&&F!=D?w+"="+F+";":""}function Ge(w,F,D,u,e,O){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=O&&O.style&&-1<O.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=O&&O.style&&-1<O.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),w.style+=(u?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function Ie(w,-F,D,u,e){try{var O=function(na,Ba){if(null!=na)if(Array.isArray(na))for(var Oa=0;Oa<na.length;Oa++)O(na[Oa].p?na[Oa].p:na[Oa],Ba);else Ba=Ba?.75:1,p=Math.min(p,na.x*Ba),aa=Math.min(aa,na.y*Ba),ba=Math.max(ba,(na.x+(na.width?na.width:0))*Ba),W=Math.max(W,(na.y+(na.height?na.height:0))*Ba)};null!=w.Action&&null!=w.Action.Properties&&(w=w.Action.Properties);var r=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");r.vertex=!0;r.zOrder=w.ZOrder;var p=Infinity,aa=Infinity,ba=-Infinity,-W=-Infinity,wa=w.Members;e=[];for(var ka in wa){var pa=F[ka];null!=pa?e.push(pa):null!=u[ka]&&(e.push(u[ka]),D[ka]=r)}e.sort(function(na,Ba){na=na.zOrder||na.ZOrder;Ba=Ba.zOrder||Ba.ZOrder;return null!=na&&null!=Ba?na>Ba?1:na<Ba?-1:0:0});for(D=F=0;D<e.length;D++)if(pa=e[D],pa.vertex)O(pa.geometry),pa.parent=r,r.insert(pa,F++);else{var ra=null!=pa.Action&&pa.Action.Properties?pa.Action.Properties:pa;O(ra.Endpoint1,!0);O(ra.Endpoint2,!0);O(ra.ElbowPoints,!0);O(ra.ElbowControlPoints,!0);O(ra.BezierJoints,-!0);O(ra.Joints,!0)}r.geometry.x=p;r.geometry.y=aa;r.geometry.width=ba-p;r.geometry.height=W-aa;if(null!=r.children)for(D=0;D<r.children.length;D++){var Aa=r.children[D].geometry;Aa.x-=p;Aa.y-=aa}w.IsState?(r.lucidLayerInfo={name:w.Name,visible:!w.Hidden,locked:w.Restrictions.b&&w.Restrictions.p&&w.Restrictions.c},r.style+="container=1;collapsible=0;recursiveResize=0;"):w.Hidden&&(r.visible=!1);r.lucidchartObject=w;return r}catch(na){console.log(na)}}function zf(w,F,D){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=-new Set;w.getModel().beginUpdate();try{var u=function(Ca,ua){function Ma(Qa,ma,La){null==Qa||Qa.generated||(Qa.x-=ma,Qa.y-=La)}var Ja=null!=ua.Endpoint1.Block?O[ua.Endpoint1.Block]:null,Ka=null!=ua.Endpoint2.Block?O[ua.Endpoint2.Block]:null,l=yb(Ca,w,Ja,Ka);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ja&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*-ua.Endpoint1.y)),!0);null==Ka&&null!=ua.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint2.x),Math.round(.75*ua.Endpoint2.y)),!1);Ca=r[Ca.id];if(null!=Ca){for(var Ha=l.geometry,cb=ua=0,Ea=Ca;null!=Ea&&null!=Ea.geometry;)ua+=Ea.geometry.x,cb+=Ea.geometry.y,Ea=Ea.parent;Ma(Ha.sourcePoint,ua,cb);Ma(Ha.targetPoint,ua,cb);Ma(Ha.offset,ua,cb);Ha=Ha.points;if(null!=Ha)for(Ea=0;Ea<Ha.length;Ea++)Ma(Ha[Ea],ua,cb)}e.push(w.addCell(l,Ca,null,Ja,Ka))},e=[],O={},r={},p={},aa=[];null!=-F.Lines&&(p=F.Lines);if(null!=F.Blocks){Object.assign(p,F.Blocks);for(var ba in F.Blocks){var W=F.Blocks[ba];W.id=ba;var wa=!1;null!=Pd[W.Class]&&"mxCompositeShape"==Pd[W.Class]&&(O[W.id]=Je(W,e,w),aa.push(W),wa=!0);wa||(O[W.id]=sc(W,w),aa.push(W))}if(null!=F.Generators)for(ba in F.Generators)"OrgChart2018"==F.Generators[ba].ClassName?(LucidImporter.hasUnknownShapes=!0,Ke(ba,F.Generators[ba],F.Data,w,O)):LucidImporter.hasUnknownShapes=!0}else{for(var ka=0;ka<F.Objects.length;ka++)W=F.Objects[ka],-p[W.id]=W,null!=W.Action&&"mxCompositeShape"==Pd[W.Action.Class]?O[W.id]=Je(W,e,w):W.IsBlock&&null!=W.Action&&null!=W.Action.Properties?O[W.id]=sc(W,w):W.IsGenerator&&W.GeneratorData&&W.GeneratorData.p&&("OrgChart2018"==W.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Ke(W.GeneratorData.id,W.GeneratorData.p,W.GeneratorData.gs,w,O)):LucidImporter.hasUnknownShapes=!0),aa.push(W);for(ka=0;ka<F.Objects.length;ka++)if(W=F.Objects[ka],W.IsGroup){var pa=Ie(W,O,r,p,w);pa&&(O[W.id]=pa,aa.push(W))}}if(null!=-F.Groups)try{for(ba in F.Groups)if(W=F.Groups[ba],W.id=ba,pa=Ie(W,O,r,p,w))O[W.id]=pa,aa.push(W)}catch(Ca){console.log(Ca)}if(null!=F.Lines)for(ba in F.Lines)W=F.Lines[ba],W.id=ba,aa.push(W);aa.sort(function(Ca,ua){Ca=h(Ca);ua=h(ua);Ca=null!=Ca.Properties?Ca.Properties.ZOrder:Ca.ZOrder;ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;return null!=Ca&&null!=ua?Ca>ua?1:Ca<ua?-1:0:0});for(ka=0;ka<aa.length;ka++){W=aa[ka];var ra=O[W.id];if(null!=ra){if(null==ra.parent)if(ra.lucidLayerInfo){var Aa=-new mxCell;w.addCell(Aa,w.model.root);Aa.setVisible(ra.lucidLayerInfo.visible);ra.lucidLayerInfo.locked&&Aa.setStyle("locked=1;");Aa.setValue(ra.lucidLayerInfo.name);delete ra.lucidLayerInfo;w.addCell(ra,Aa)}else e.push(w.addCell(ra))}else W.IsLine&&null!=W.Action&&null!=W.Action.Properties?u(W,W.Action.Properties):null!=W.StrokeStyle&&u(W,W)}LucidImporter.stylePointsSet.forEach(function(Ca){Ca.style="points=["+Ca.stylePoints.join(",")+"];"+Ca.style;delete Ca.stylePoints});try{var na=w.getModel().cells;-w.view.validate();for(var Ba in na){var Oa=na[Ba];null!=Oa&&(Af(w,Oa),Bf(w,Oa),Cf(w,Oa),"1"==urlParams.lucidchartObject&&null!=Oa.lucidchartObject&&Sa(Oa,"lucidchartObject",JSON.stringify(Oa.lucidchartObject,null,2),w),delete Oa.lucidchartObject,delete Oa.zOrder)}}catch(Ca){console.log(Ca)}D||w.setSelectionCells(e)}finally{w.getModel().endUpdate()}}function Cf(w,F){if(w.model.contains(F)&&F.edge){var D=w.view.getState(F);if(null!=D&&null!=F.children){var u=mxRectangle.fromRectangle(D.paintBounds);-u.grow(5);for(var e=0;e<F.children.length;e++){var O=w.view.getState(F.children[e]);null==O||mxUtils.contains(u,O.paintBounds.x,O.paintBounds.y)||(O.cell.geometry.offset=new mxPoint(0,0))}}w=F.lucidchartObject;null!=w&&"elbow"==w.Shape&&null==w.ElbowControlPoints&&null==w.ElbowPoints&&null!=D.style.exitX&&null!=D.style.exitY&&null!=D.style.entryX&&null!=D.style.entryY&&(F.style=mxUtils.setStyle(F.style,"exitX",Math.round(20*D.style.exitX)/20),F.style=mxUtils.setStyle(F.style,"exitY",Math.round(20*-D.style.exitY)/20),F.style=mxUtils.setStyle(F.style,"entryX",Math.round(20*D.style.entryX)/20),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*D.style.entryY)/20))}}function Bf(w,F){if(w.model.contains(F)&&null!=F.style&&""!=F.style){w=F.style.split(";");for(var D={},u=[],e=w.length-1;0<=e;e--){var O=w[e].split("=");if(2!=O.length||null==D[O[0]])D[O[0]]=O[1],""!=w[e]&&u.push(w[e])}F.style=u.reverse().join(";")+";"}}function Af(w,F){if(w.model.contains(F)&&null!=F.children&&null!=F.geometry&&-F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var D=null,u=0;u<F.children.length;u++)if(F.children[u].vertex){var e=F.children[u].geometry;if(null!=e&&0==e.x&&0==e.y&&e.width==F.geometry.width&&e.height==F.geometry.height){if(null!=D)return;D=F.children[u]}}F=D;if(null!=F&&(D=F.parent,""==w.convertValueToString(D))){if(null!=F.edges)for(u=0;u<F.edges.length;u++)F.edges[u].source==F&&F.edges[u].setTerminal(F.parent,!0),F.edges[u].target==F&&F.edges[u].setTerminal(F.parent,!1);if(null!=-F.children&&0<F.children.length)for(e=F.children.slice(),u=0;u<e.length;u++)D.insert(e[u]);w.cellLabelChanged(D,w.convertValueToString(F));D.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var w=new Graph;w.setExtendParents(!1);w.setExtendParentsOnAdd(!1);w.setConstrainChildren(!1);w.setHtmlLabels(!0);w.getModel().maintainEdgeParent=!1;return w}function Rd(w,F,D,u,e,O,r,p){this.nurbsValues=[1,3,0,0,100*(w+D),100-100*(1-(F+u)),-0,1,100*(e+r),100-100*(1-(O+p)),0,1]}function Le(w,F){try{for(var D=[],u=F.BoundingBox.w,e=F.BoundingBox.h,O=0;O<F.Shapes.length;O++){var r=F.Shapes[O],p=r.FillColor,aa=r.StrokeColor,ba=r.LineWidth,W=r.Points,wa=r.Lines,ka=['<shape strokewidth="inherit"><foreground>'];ka.push("<path>");for(var pa=null,ra=0;ra<wa.length;ra++){var Aa=wa[ra];if(pa!=Aa.p1){var na=W[Aa.p1].x,Ba=W[Aa.p1].y;na=100*na/u;Ba=100*Ba/e;na=Math.round(100*na)/100;Ba=Math.round(100*Ba)/100;ka.push('<move x="'+na+'" y="'+Ba+'"/>')}if(null!=-Aa.n1){var Oa=W[Aa.p2].x,Ca=W[Aa.p2].y,ua=u,Ma=e,Ja=new Rd(W[Aa.p1].x/u,W[Aa.p1].y/e,Aa.n1.x/u,Aa.n1.y/e,W[Aa.p2].x/u,W[Aa.p2].y/e,Aa.n2.x/u,Aa.n2.y/e);if(2<=Ja.getSize()){Ja.getX(0);Ja.getY(0);Ja.getX(1);Ja.getY(1);Oa=Math.round(100*Oa/ua*100)/100;Ca=Math.round(100*Ca/Ma*100)/100;ua=[];Ma=[];for(var Ka=[],l=Ja.getSize(),Ha=0;Ha<l-1;Ha+=3)ua.push(new mxPoint(Ja.getX(Ha),Ja.getY(Ha))),Ma.push(new mxPoint(Ja.getX(Ha+1),Ja.getY(Ha+1))),Ha<l-2?Ka.push(new mxPoint(Ja.getX(Ha+2),Ja.getY(Ha+2))):Ka.push(new mxPoint(Oa,-Ca));var cb="";for(Ha=0;Ha<ua.length;Ha++)cb+='<curve x1="'+ua[Ha].x+'" y1="'+ua[Ha].y+'" x2="'+Ma[Ha].x+'" y2="'+Ma[Ha].y+'" x3="'+Ka[Ha].x+'" y3="'+Ka[Ha].y+'"/>';var Ea=cb}else Ea=void 0;ka.push(Ea)}else na=W[Aa.p2].x,Ba=W[Aa.p2].y,na=100*na/u,Ba=100*Ba/e,na=Math.round(100*na)/100,Ba=Math.round(100*Ba)/100,ka.push('<line x="'+na+'" y="'+Ba+'"/>');pa=Aa.p2}ka.push("</path>");ka.push("<fillstroke/>");ka.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ka.join(""))+")",-FillColor:p,LineColor:aa,LineWidth:ba})}LucidImporter.stencilsMap[w]={text:F.Text,w:u,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,stencils:D}}catch(Qa){console.log("Stencil parsing error:",Qa)}}function tc(w,F,D,u,e,O,r,p){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;r.insert(w);O=[w];D=D.clone();p.insertEdge(D,!1);w.insertEdge(D,!0);O.push(D);u.push(e.addCell(D,null,null,null,null))}function gb(w,F,D,u,e,O,r,p,aa){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");-w.vertex=!0;aa.insert(w);D=new mxCell("",new mxGeometry(D,u,0,0),"strokeColor=none;fillColor=none;");D.vertex=!0;aa.insert(D);p=[D];e=e.clone();w.insertEdge(e,!0);D.insertEdge(e,!1);p.push(e);O.push(r.addCell(e,null,null,null,null))}function Ta(w,F,D,u,e,O){u.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";u.style+=c(u.style,e,O,u);F=m(e);u.vertex=!0;w=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+-"=mxgraph.gcp2."+w+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");w.style+=c(w.style,e,O,w,G);w.geometry.relative=!0;w.geometry.offset=new mxPoint(5,-12);w.vertex=!0;u.insert(w)}function Ya(w,F,D,u,e,O,r,p){e="transparent"!=w?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";O.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";O.style+=c(O.style,-r,p,O);O.value=m(r);O.vertex=!0;w=new mxCell(null,new mxGeometry(.5,0,.7*u*F,.7*u*D),e+w+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");w.geometry.relative=!0;w.geometry.offset=new mxPoint(-F*u*.35,10+(1-D)*u*.35);w.vertex=!0;w.style+=c(w.style,r,p,w,G);O.insert(w)}function Yc(w,F){return null!=w&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),w.includes(";"+F+"=")||w.substring(0,F.length+1)==F+"=")?!0:!1}function Sd(w,F){function D(u){u=Math.round(parseInt("0x"+-u)*F).toString(16);return 1==u.length?"0"+u:u}return"#"+D(w.substr(1,2))+D(w.substr(3,2))+D(w.substr(5,2))}function Je(w,F,D){var u=h(w),e=u.Properties,O=e.BoundingBox,r=Math.round(.75*O.w),p=Math.round(.75*O.h),aa=Math.round(.75*O.x+xc),ba=Math.round(.75*O.y+yc);null==w.Class||"GCPInputDatabase"!==w.Class&&"GCPInputRecord"!==w.Class&&"GCPInputPayment"!==w.Class&&"GCPInputGateway"!==w.Class&&"GCPInputLocalCompute"!==w.Class&&"GCPInputBeacon"!==w.Class&&"GCPInputStorage"!==w.Class&&"GCPInputList"!==-w.Class&&"GCPInputStream"!==w.Class&&"GCPInputMobileDevices"!==w.Class&&"GCPInputCircuitBoard"!==w.Class&&"GCPInputLive"!==w.Class&&"GCPInputUsers"!==w.Class&&"GCPInputLaptop"!==w.Class&&"GCPInputApplication"!==w.Class&&"GCPInputLightbulb"!==w.Class&&"GCPInputGame"!==w.Class&&"GCPInputDesktop"!==w.Class&&"GCPInputDesktopAndMobile"!==w.Class&&"GCPInputWebcam"!==w.Class&&"GCPInputSpeaker"!==w.Class&&"GCPInputRetail"!==w.Class&&"GCPInputReport"!==w.Class&&"GCPInputPhone"!==w.Class&&"GCPInputBlank"!==-w.Class||(p+=20);v=new mxCell("",new mxGeometry(aa,ba,r,p),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var W=null!=w.Class?w.Class:null!=u?u.Class:null;switch(W){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ka=null,pa=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"<br>"),null,null,Math.abs(r-.125*p)):{width:0,height:0};wa?(ka=new mxCell("",new mxGeometry(r-.125*-p,0,.125*p,p),"shape=curlyBracket;rounded=1;"),pa=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;")):(ka=new mxCell("",new mxGeometry(0,0,.125*p,p),"shape=curlyBracket;rounded=1;flipH=1;"),pa=new mxCell("",new mxGeometry(.125*p-Aa.height,Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);ka.vertex=!0;v.insert(ka);ka.style+=c(ka.style,e,u,ka);pa.vertex=!0;pa.value=ra;v.insert(pa);-pa.style+=c(pa.style,e,u,pa,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var na="MainText",Ba=null,Oa="HeaderFill_",Ca="BodyFill_",ua=25,Ma=25,Ja=0;if(null!=e.Lanes)Ja=e.Lanes.length;else if(null!=e.PrimaryLane){var Ka=function(hb){if(hb)32>hb?hb=32:208<hb&&(hb=208);else return 0;return.75*hb};Ja=e.PrimaryLane.length;-for(var l=p=r=0;l<Ja;l++)r+=e.PrimaryLane[l];for(l=0;l<e.SecondaryLane.length;l++)p+=e.SecondaryLane[l];ua=Ka(e.PrimaryPoolTitleHeight);Ma=Ka(e.PrimaryLaneTitleHeight);r*=.75;p=.75*p+ua+Ma;v.geometry.width=r;v.geometry.height=p;na="poolPrimaryTitleKey";Oa="PrimaryLaneHeaderFill_";Ca="CellFill_0,";Ba=e.PrimaryLaneTextAreaIds;if(null==Ba)for(Ba=[],l=0;l<Ja;l++)Ba.push("Primary_"+l)}if(0==e.IsPrimaryLaneVertical){e.Rotation=-1.5707963267948966;var Ha=v.geometry.x,cb=v.geometry.y}var Ea=0!=e.Rotation,-Qa=0<W.indexOf("Pool"),ma=0==W.indexOf("BPMN"),La=null!=e[na];v.style=(Qa?"swimlane;startSize="+ua+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Ea?"horizontalStack=0;":"");v.style+=c(v.style,e,u,v);La&&(v.value=m(e[na]),v.style+=(G?"overflow=block;blockSpacing=1;fontSize=13;"+mb:f(e[na])+q(e[na])+k(e[na])+t(e[na])+C(e[na],v)+I(e[na])+Q(e[na])+K(e[na])+L(e[na]))+S(e[na])+-R(e[na]));for(var ya=0,za=[],Qb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Ma+";dropTarget=0;rounded=0;"+(Ea?"horizontal=0;":"")+(ma?"swimlaneLine=0;fillColor=none;":""),ha=e.Rotation=0;ha<Ja;ha++){if(null==Ba){var xb=parseFloat(e.Lanes[ha].p);l=parseInt(e.Lanes[ha].tid)||ha;var Wa="Lane_"+l}else xb=.75*e.PrimaryLane[ha]/r,l=ha,Wa=Ba[ha];var rc=r*ya,wc=Qa?ua:0;za.push(new mxCell("",Ea?new mxGeometry(wc,rc,p-wc,r*xb):new mxGeometry(rc,wc,r*xb,p--wc),Qb));za[ha].vertex=!0;v.insert(za[ha]);za[ha].value=m(e[Wa]);za[ha].style+=c(za[ha].style,e,u,za[ha],G)+(G?"fontSize=13;":f(e[Wa])+q(e[Wa])+t(e[Wa])+C(e[Wa],za[ha])+I(e[Wa])+Q(e[Wa])+K(e[Wa])+L(e[Wa]))+S(e[Wa])+R(e[Wa])+N(e[Oa+l])+J(e[Ca+l]);ya+=xb}null!=Ha&&(v.geometry.x=Ha,v.geometry.y=cb);break;case "UMLMultidimensionalSwimlane":var Gb=0,Rb=0,Lb=null,$b=null;if(null!=e.Rows&&null!=e.Columns){Gb=e.Rows.length;Rb=e.Columns.length;var Za=.75*e.TitleHeight||25,qb=.75*e.TitleWidth||25}else if(null!=-e.PrimaryLane&&null!=e.SecondaryLane){Gb=e.SecondaryLane.length;Rb=e.PrimaryLane.length;qb=.75*e.SecondaryLaneTitleHeight||25;Za=.75*e.PrimaryLaneTitleHeight||25;for(l=p=r=0;l<Gb;l++)p+=e.SecondaryLane[l];for(l=0;l<Rb;l++)r+=e.PrimaryLane[l];r=.75*r+qb;p=.75*p+Za;v.geometry.width=r;v.geometry.height=p;Lb=e.SecondaryLaneTextAreaIds;$b=e.PrimaryLaneTextAreaIds}v.style="group;";var Oc=new mxCell("",new mxGeometry(0,Za,r,p-Za),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");-Oc.vertex=!0;var Gc=new mxCell("",new mxGeometry(qb,0,r-qb,p),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Gc.vertex=!0;v.insert(Oc);v.insert(Gc);ba=0;var Hc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+qb+";";for(ha=0;ha<Gb;ha++){if(null==Lb){var Td=.75*parseInt(e.Rows[ha].height);l=parseInt(e.Rows[ha].id)||ha;var Sb="Row_"+l}else Td=-.75*e.SecondaryLane[ha],Sb=Lb[ha];var Ic=new mxCell("",new mxGeometry(0,ba,r,Td),Hc);ba+=Td;Ic.vertex=!0;Oc.insert(Ic);Ic.value=m(e[Sb]);Ic.style+=c(Ic.style,e,u,Ic,G)+(G?"fontSize=13;":f(e[Sb])+q(e[Sb])+t(e[Sb])+C(e[Sb],Ic)+I(e[Sb])+Q(e[Sb])+K(e[Sb])+L(e[Sb]))+S(e[Sb])+R(e[Sb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Za+";";for(ha=aa=0;ha<Rb;ha++){if(null==$b){var Zc=.75*parseInt(e.Columns[ha].width);l=parseInt(e.Columns[ha].id)||-ha;var Tb="Column_"+l}else Zc=.75*e.PrimaryLane[ha],Tb=$b[ha];var Jc=new mxCell("",new mxGeometry(aa,0,Zc,p),Ef);aa+=Zc;Jc.vertex=!0;Gc.insert(Jc);Jc.value=m(e[Tb]);Jc.style+=c(Jc.style,e,u,Jc,G)+(G?"fontSize=13;":f(e[Tb])+q(e[Tb])+t(e[Tb])+C(e[Tb],Jc)+I(e[Tb])+Q(e[Tb])+K(e[Tb])+L(e[Tb]))+S(e[Tb])+R(e[Tb])}break;case "UMLStateBlock":if(0==e.Composite)v.style="rounded=1;arcSize=20",v.value=m(e.State,!0),v.style+=c(v.style,e,u,v,G);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0;";-v.value=m(e.State,!0);v.style+=c(v.style,e,u,v,G);v.style+=Y(e,u).replace("fillColor","swimlaneFillColor");var zb=new mxCell("",new mxGeometry(0,25,r,p-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");zb.value=m(e.Action,!0);zb.style+=c(zb.style,e,u,zb,G);zb.vertex=!0;v.insert(zb)}break;case "GSDFDProcessBlock":var ie=Math.round(.75*e.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+ie;v.value=m(e.Number,!0);v.style+=c(v.style,e,u,v,-G);v.style+=Y(e,u).replace("fillColor","swimlaneFillColor");zb=new mxCell("",new mxGeometry(0,ie,r,p-ie),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");zb.value=m(e.Text,!0);zb.style+=c(zb.style,e,u,zb,G);zb.vertex=!0;v.insert(zb);break;case "AndroidDevice":if(null!=e.AndroidDeviceName){var nb=T(e,u,v);v.style="fillColor=#000000;strokeColor=#000000;";var zc=null,$c=null,ad=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Tablet"==-e.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",zc=new mxCell("",new mxGeometry(.112,.077,.77*r,.85*p),nb),e.KeyboardShown&&($c=new mxCell("",new mxGeometry(.112,.727,.77*r,.2*p),"shape=mxgraph.android.keyboard;"+nb)),e.FullScreen||(ad=new mxCell("",new mxGeometry(.112,.077,.77*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+nb));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&-"Phone"==e.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",zc=new mxCell("",new mxGeometry(.04,.092,.92*r,.816*p),nb),e.KeyboardShown&&($c=new mxCell("",new mxGeometry(.04,.708,.92*r,.2*p),"shape=mxgraph.android.keyboard;"+nb)),e.FullScreen||(ad=new mxCell("",new mxGeometry(.04,.092,.92*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+nb));zc.vertex=!0;zc.geometry.relative=!0;v.insert(zc);"Dark"==e.Scheme?zc.style+="fillColor=#111111;":-"Light"==e.Scheme&&(zc.style+="fillColor=#ffffff;");null!=$c&&($c.vertex=!0,$c.geometry.relative=!0,v.insert($c));null!=ad&&(ad.vertex=!0,ad.geometry.relative=!0,v.insert(ad))}v.style+=c(v.style,e,u,v);break;case "AndroidAlertDialog":var ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);var Pa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Pa.vertex=!0;v.insert(Pa);var rd=new mxCell("",new mxGeometry(0,-30,r,p-30),"strokeColor=none;fillColor=none;verticalAlign=top;");rd.vertex=!0;v.insert(rd);var jb=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);var kb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");kb.vertex=!0;v.insert(kb);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);rd.value=m(e.DialogText);rd.style+=a(e.DialogText,G);jb.value=m(e.Button_0);jb.style+=a(e.Button_0,G);kb.value=m(e.Button_1);kb.style+=a(e.Button_1,G);"Dark"==-e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",jb.style+="strokeColor=#353535;",kb.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",jb.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=#E2E2E2;");v.style+=c(v.style,e,u,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,-G);Pa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Pa.vertex=!0;v.insert(Pa);jb=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=m(e.Button_0);jb.style+=a(e.Button_0,G);kb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");kb.vertex=!0;v.insert(kb);kb.value=m(e.Button_1);kb.style+=a(e.Button_1,G);var bd=new mxCell("",new mxGeometry(.5*r-4,41,8,4),"shape=triangle;direction=north;");bd.vertex=!0;v.insert(bd);-var cd=new mxCell("",new mxGeometry(.25*r-4,41,8,4),"shape=triangle;direction=north;");cd.vertex=!0;v.insert(cd);var dd=new mxCell("",new mxGeometry(.75*r-4,41,8,4),"shape=triangle;direction=north;");dd.vertex=!0;v.insert(dd);var sd=new mxCell("",new mxGeometry(.375*r,50,.2*r,15),"strokeColor=none;fillColor=none;");sd.vertex=!0;v.insert(sd);sd.value=m(e.Label_1);sd.style+=a(e.Label_1,G);var td=new mxCell("",new mxGeometry(.125*r,50,.2*r,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);-td.value=m(e.Label_0);td.style+=a(e.Label_0,G);var ed=null;"AndroidDateDialog"==w.Class&&(ed=new mxCell("",new mxGeometry(.625*r,50,.2*r,15),"strokeColor=none;fillColor=none;"),ed.vertex=!0,v.insert(ed),ed.value=m(e.Label_2),ed.style+=a(e.Label_2,G));var Ab=new mxCell("",new mxGeometry(.43*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Bb=new mxCell("",new mxGeometry(.18*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Bb.vertex=!0;v.insert(Bb);var Me=new mxCell("",-new mxGeometry(.68*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var ud=new mxCell("",new mxGeometry(.375*r,65,.2*r,15),"strokeColor=none;fillColor=none;");ud.vertex=!0;v.insert(ud);ud.value=m(e.Label_4);ud.style+=a(e.Label_4,G);var fd=null;"AndroidTimeDialog"==w.Class&&(fd=new mxCell("",new mxGeometry(.3*r,65,.1*r,15),"strokeColor=none;fillColor=none;"),fd.vertex=!0,v.insert(fd),fd.value=m(e.Label_Colon),fd.style+=a(e.Label_Colon,G));var vd=new mxCell("",new mxGeometry(.125*-r,65,.2*r,15),"strokeColor=none;fillColor=none;");vd.vertex=!0;v.insert(vd);vd.value=m(e.Label_3);vd.style+=a(e.Label_3,G);var wd=new mxCell("",new mxGeometry(.625*r,65,.2*r,15),"strokeColor=none;fillColor=none;");wd.vertex=!0;v.insert(wd);wd.value=m(e.Label_5);wd.style+=a(e.Label_5,G);var Ne=new mxCell("",new mxGeometry(.43*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.18*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Oe.vertex=-!0;v.insert(Oe);var Pe=new mxCell("",new mxGeometry(.68*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Pe.vertex=!0;v.insert(Pe);var xd=new mxCell("",new mxGeometry(.375*r,80,.2*r,15),"strokeColor=none;fillColor=none;");xd.vertex=!0;v.insert(xd);xd.value=m(e.Label_7);xd.style+=a(e.Label_7,G);var yd=new mxCell("",new mxGeometry(.125*r,80,.2*r,15),"strokeColor=none;fillColor=none;");yd.vertex=!0;v.insert(yd);yd.value=m(e.Label_6);yd.style+=a(e.Label_6,G);var zd=new mxCell("",new mxGeometry(.625*-r,80,.2*r,15),"strokeColor=none;fillColor=none;");zd.vertex=!0;v.insert(zd);zd.value=m(e.Label_8);zd.style+=a(e.Label_8,G);var gd=new mxCell("",new mxGeometry(.5*r-4,99,8,4),"shape=triangle;direction=south;");gd.vertex=!0;v.insert(gd);var hd=new mxCell("",new mxGeometry(.25*r-4,99,8,4),"shape=triangle;direction=south;");hd.vertex=!0;v.insert(hd);var id=new mxCell("",new mxGeometry(.75*r-4,99,8,4),"shape=triangle;direction=south;");id.vertex=!0;v.insert(id);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",-jb.style+="strokeColor=#353535;",kb.style+="strokeColor=#353535;",bd.style+="strokeColor=none;fillColor=#7E7E7E;",cd.style+="strokeColor=none;fillColor=#7E7E7E;",dd.style+="strokeColor=none;fillColor=#7E7E7E;",gd.style+="strokeColor=none;fillColor=#7E7E7E;",hd.style+="strokeColor=none;fillColor=#7E7E7E;",id.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",jb.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=#E2E2E2;",bd.style+="strokeColor=none;fillColor=#939393;",-cd.style+="strokeColor=none;fillColor=#939393;",dd.style+="strokeColor=none;fillColor=#939393;",gd.style+="strokeColor=none;fillColor=#939393;",hd.style+="strokeColor=none;fillColor=#939393;",id.style+="strokeColor=none;fillColor=#939393;");v.style+=c(v.style,e,u,v);break;case "AndroidListItems":var Cb=p,Ac=0;if(e.ShowHeader){Ac=8;var Pc=new mxCell("",new mxGeometry(0,0,r,Ac),"strokeColor=none;fillColor=none;");Pc.vertex=!0;v.insert(Pc);Pc.value=m(e.Header);Pc.style+=a(e.Header,G);Cb-=Ac;var Qe=new mxCell("",-new mxGeometry(0,Ac-2,r,4),"shape=line;strokeColor=#999999;");Qe.vertex=!0;v.insert(Qe)}var bc=parseInt(e.Items);0<bc&&(Cb/=bc);var X=[];Pa=[];for(l=0;l<bc;l++)X[l]=new mxCell("",new mxGeometry(0,Ac+l*Cb,r,Cb),"strokeColor=none;fillColor=none;"),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["Item_"+l]),X[l].style+=a(e["Item_"+l],G),0<l&&(Pa[l]=new mxCell("",new mxGeometry(0,Ac+l*Cb-2,r,4),"shape=line;"),Pa[l].vertex=!0,v.insert(Pa[l]),Pa[l].style="Dark"==e.Scheme?Pa[l].style+"strokeColor=#ffffff;":-Pa[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=c(v.style,e,u,v);break;case "AndroidTabs":var cc=parseInt(e.Tabs),Hb=r;0<cc&&(Hb/=cc);var Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor=none;fillColor=none;"),Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=a(e["Tab_"+l],G),0<l&&(Pa[l]=new mxCell("",new mxGeometry(l*Hb-2,-.2*p,4,.6*p),"shape=line;direction=north;"),Pa[l].vertex=!0,v.insert(Pa[l]),Pa[l].style="Dark"==e.Scheme?Pa[l].style+"strokeColor=#484848;":Pa[l].style+"strokeColor=#CCCCCC;");var Re=new mxCell("",new mxGeometry(e.Selected*Hb+2,p-3,Hb-4,3),"strokeColor=none;fillColor=#33B5E5;");Re.vertex=!0;v.insert(Re);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=c(v.style,e,u,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(aa),-Math.round(ba+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var Ad=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;fillColor=#33B5E5;");Ad.vertex=!0;v.insert(Ad);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=c(v.style,e,u,v);break;case "AndroidImageBlock":v.style="Dark"==e.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":-v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";v.style+=c(v.style,e,u,v);break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=m(e.Label);v.style+=a(e.Label,G);v.style+=c(v.style,e,u,v,G);break;case "AndroidActionBar":v.style+="strokeColor=none;";-switch(e.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(e.HighlightShow){var Bc=null;Bc=e.HighlightTop?new mxCell("",new mxGeometry(0,0,r,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,p-2,r,2),"strokeColor=none;");Bc.vertex=!0;v.insert(Bc);switch(e.HighlightColor){case "Blue":Bc.style+="fillColor=#33B5E5;";break;case "Dark Gray":Bc.style+=-"fillColor=#B0B0B0;";break;case "White":Bc.style+="fillColor=#ffffff;"}}if(e.VlignShow){var jd=new mxCell("",new mxGeometry(20,5,2,p-10),"shape=line;direction=north;");jd.vertex=!0;v.insert(jd);switch(e.VlignColor){case "Blue":jd.style+="strokeColor=#244C5A;";break;case "White":jd.style+="strokeColor=#ffffff;"}}v.style+=c(v.style,e,u,v);break;case "AndroidButton":v.value=m(e.Label);v.style+=a(e.Label,G)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":-v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=c(v.style,e,u,v);break;case "AndroidTextBox":v.value=m(e.Label);v.style+=a(e.Label,G);var Bd=new mxCell("",new mxGeometry(2,p-6,r-4,4),"shape=partialRectangle;top=0;fillColor=none;");Bd.vertex=!0;v.insert(Bd);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Bd.style=e.TextFocused?Bd.style+"strokeColor=#33B5E5;":Bd.style+"strokeColor=#A9A9A9;";v.style+=c(v.style,e,u,v);-break;case "AndroidRadioButton":var Qc=null;e.Checked&&(Qc=new mxCell("",new mxGeometry(.15*r,.15*p,.7*r,.7*p),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Qc.vertex=!0,v.insert(Qc));"Dark"==e.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",e.Checked?(Qc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&-(Qc.style+="strokeColor=#999999;"));v.style+=c(v.style,e,u,v);break;case "AndroidCheckBox":var je=null;e.Checked&&(je=new mxCell("",new mxGeometry(.25*r,.05*-p,r,.8*p),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),je.vertex=!0,v.insert(je));v.style="Dark"==e.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=c(v.style,e,u,v);break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?-v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=c(v.style,e,u,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";v.style+=c(v.style,e,u,v);break;case "iOSSegmentedControl":cc=parseInt(e.Tabs);Hb=r;v.style+="strokeColor=none;fillColor=none;";-0<cc&&(Hb/=cc);Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor="+e.FillColor+";"),Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=a(e["Tab_"+l],G),Ua[l].style=e.Selected==l?Ua[l].style+Y(e,u):Ua[l].style+"fillColor=none;";v.style+=c(v.style,e,u,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";v.style+=c(v.style,e,u,v);break;case "iOSProgressBar":v=-new mxCell("",new mxGeometry(Math.round(aa),Math.round(ba+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;Ad=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;"+Y(e,u));Ad.vertex=!0;v.insert(Ad);v.style+=c(v.style,e,u,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=c(v.style,e,u,v);break;case "iOSStatusBar":v.style+=-"shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var Da=new mxCell(m(e.Text),new mxGeometry(.35*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.Text,G);var Db=new mxCell(m(e.Carrier),new mxGeometry(.09*r,0,.2*r,p),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.Carrier,G);v.style+=c(v.style,e,u,v);break;case "iOSSearchBar":v.value=m(e.Search);v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v,G)+a(e.Search,G);var Ia=new mxCell("",-new mxGeometry(.3*r,.3*p,.4*p,.4*p),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");Ia.vertex=!0;v.insert(Ia);break;case "iOSNavBar":v.value=m(e.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+a(e.Title,G);v.style+=c(v.style,e,u,v,G);Da=new mxCell(m(e.LeftText),new mxGeometry(.03*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.LeftText,G);Db=new mxCell(m(e.RightText),new mxGeometry(.65*r,0,.3*-r,p),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.RightText,G);Ia=new mxCell("",new mxGeometry(.02*r,.2*p,.3*p,.5*p),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Ia.vertex=!0;v.insert(Ia);break;case "iOSTabs":cc=parseInt(e.Tabs);Hb=r;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=c(v.style,e,u,v);0<cc&&(Hb/=cc);Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor=none;"),-Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=G?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+mb:f(e["Tab_"+l])+k(e["Tab_"+l])+q(e["Tab_"+l])+t(e["Tab_"+l])+C(e["Tab_"+l])+I(e["Tab_"+l])+Q(e["Tab_"+l])+K(e["Tab_"+l])+L(e["Tab_"+l])+S(e["Tab_"+l]),Ua[l].style+="verticalAlign=bottom;",Ua[l].style=e.Selected==l?Ua[l].style+"fillColor=#BBBBBB;":Ua[l].style+"fillColor=none;";break;case "iOSDatePicker":var dc=new mxCell("",new mxGeometry(0,0,.5*r,.2*p),"strokeColor=none;fillColor=none;");-dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);var ec=new mxCell("",new mxGeometry(.5*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);var fc=new mxCell("",new mxGeometry(.65*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);var gc=new mxCell("",new mxGeometry(0,.2*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=-!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);var hc=new mxCell("",new mxGeometry(.5*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);var ic=new mxCell("",new mxGeometry(.65*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);var rb=new mxCell("",new mxGeometry(0,.4*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=-!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);var sb=new mxCell("",new mxGeometry(.5*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);var jc=new mxCell("",new mxGeometry(.65*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);var tb=new mxCell("",new mxGeometry(.8*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=-!0;v.insert(tb);tb.value=m(e.Option43);tb.style+=a(e.Option43,G);var ub=new mxCell("",new mxGeometry(0,.6*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);var kc=new mxCell("",new mxGeometry(.5*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);var lc=new mxCell("",new mxGeometry(.65*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=-!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);var mc=new mxCell("",new mxGeometry(.8*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option44);mc.style+=a(e.Option44,G);var vb=new mxCell("",new mxGeometry(0,.8*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);var nc=new mxCell("",new mxGeometry(.5*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=-!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);var oc=new mxCell("",new mxGeometry(.65*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=c(v.style,e,u,-v);break;case "iOSTimePicker":dc=new mxCell("",new mxGeometry(0,0,.25*r,.2*p),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);ec=new mxCell("",new mxGeometry(.25*r,0,.3*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);gc=new mxCell("",new mxGeometry(0,.2*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,-G);hc=new mxCell("",new mxGeometry(.25*r,.2*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);rb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);sb=new mxCell("",new mxGeometry(.25*r,.4*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);tb=new mxCell("",-new mxGeometry(.7*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option33);tb.style+=a(e.Option33,G);ub=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);kc=new mxCell("",new mxGeometry(.25*r,.6*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);mc=new mxCell("",new mxGeometry(.7*-r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option34);mc.style+=a(e.Option34,G);vb=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);nc=new mxCell("",new mxGeometry(.25*r,.8*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),-"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);break;case "iOSCountdownPicker":fc=new mxCell("",new mxGeometry(.45*r,0,.2*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);ic=new mxCell("",new mxGeometry(.45*r,.2*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");-ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);rb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);sb=new mxCell("",new mxGeometry(.2*r,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);jc=new mxCell("",new mxGeometry(.45*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=-!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);tb=new mxCell("",new mxGeometry(.6*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option43);tb.style+=a(e.Option43,G);ub=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);lc=new mxCell("",new mxGeometry(.45*r,.6*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);-lc.value=m(e.Option34);lc.style+=a(e.Option34,G);vb=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);oc=new mxCell("",new mxGeometry(.45*r,.8*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,-.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);break;case "iOSBasicCell":v.value=m(e.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*e.SeparatorInset+";";v.style+=(G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text))+R(e.text);v.style+=c(v.style,e,u,v,G);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*-r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);var ab=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,-.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.75*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=-G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=c(v.style,e,u,v,G);var db=new mxCell("",new mxGeometry(0,.4*p,r,.6*p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*e.SeparatorInset+";");db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");-Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");-ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.75*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=c(v.style,-e,u,v,G);db=null;switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);db=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*-r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);db=new mxCell("",new mxGeometry(.45*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);db=new mxCell("",new mxGeometry(.52*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");-break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");Ia.vertex=!0;v.insert(Ia);db=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:db=new mxCell("",new mxGeometry(.65*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;")}db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+-q(e.text)+t(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=c(v.style,e,u,v);var Ub=new mxCell("",new mxGeometry(0,0,.25*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ub.vertex=!0;v.insert(Ub);Ub.value=m(e.subtext);Ub.style+=G?"html=1;fontSize=13;"+mb:f(e.subtext)+k(e.subtext)+q(e.subtext)+t(e.subtext);db=new mxCell("",new mxGeometry(.25*r,0,.5*r,p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");-db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*-r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}break;case "iOSTableGroupedSectionBreak":v.style+=-"shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";Da=new mxCell("",new mxGeometry(0,0,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Da.vertex=!0;v.insert(Da);Da.value=m(e.text);Da.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);Db=new mxCell("",new mxGeometry(0,.6*p,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Db.vertex=!0;v.insert(Db);Db.value=m(e["bottom-text"]);Db.style+=G?"html=1;fontSize=13;"+mb:f(e["bottom-text"])+-k(e["bottom-text"])+q(e["bottom-text"])+t(e["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=m(e.text);v.style+=G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text);v.style+=c(v.style,e,u,v,G);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var x=new mxCell("",new mxGeometry(0,0,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");x.vertex=!0;v.insert(x);x.style+=H(e,u)+Y(e,u)+M(e,u,x)+ca(e)+-oa(e);var E=new mxCell("",new mxGeometry(.1*r,.1*p,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=H(e,u)+Y(e,u)+M(e,u,E)+ca(e)+oa(e)+a(e,G);e.Future&&(x.style+="dashed=1;fixDash=1;",E.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",e.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=m(e.Text),v.style+=H(e,u)+Y(e,u)+M(e,u,v)+ca(e)+oa(e)+a(e,G);v.style+=c(v.style,e,u,v,G);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":x=-null;switch(w.Class){case "SMHome":x=new mxCell("",new mxGeometry(.5*r-.4*p,.1*p,.8*p,.8*p),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":x=new mxCell("",new mxGeometry(.5*r-.4*p,.19*p,.8*p,.62*p),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":x=new mxCell("",new mxGeometry(.5*r-.4*p,.1*p,.8*p,.8*p),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");-break;case "SMSettings":x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":x=new mxCell("",new mxGeometry(.5*r-.35*p,.2*p,.7*p,.6*p),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":x=new mxCell("",new mxGeometry(.5*r-.3*p,.25*p,.6*p,.5*p),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");-break;case "SMVideo":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMAudio":x=new mxCell("",new mxGeometry(.5*r-.3*p,.2*p,.6*p,.6*p),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":x=new mxCell("",new mxGeometry(.5*r-.4*p,.15*p,.8*p,.7*p),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");-break;case "SMChart":var Z=Y(e,u);Z=""==Z?"#ffffff;":Z.replace("fillColor=","");x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+Z);break;case "SMCloud":x=new mxCell("",new mxGeometry(.5*r-.4*p,.27*p,.8*p,.46*p),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":x=new mxCell("",new mxGeometry(.5*r-.25*p,.15*p,.5*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");-break;case "SMForm":x=new mxCell("",new mxGeometry(.5*r-.4*p,.15*p,.8*p,.7*p),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}x.vertex=-!0;v.insert(x);x.value=m(e.Text);x.style+=a(e,G);v.style+=c(v.style,e,u,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.9*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(0,.1*p,.9*r,.9*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=c(E.style,e,u,E,G);break;case "UMLConstraintBlock":var Cc=new mxCell("",new mxGeometry(0,0,.25*p,p),"shape=curlyBracket;rounded=1;");-Cc.vertex=!0;v.insert(Cc);var Dc=new mxCell("",new mxGeometry(r-.25*p,0,.25*p,p),"shape=curlyBracket;rounded=1;flipH=1;");Dc.vertex=!0;v.insert(Dc);pa=new mxCell("",new mxGeometry(.25*p,0,r-.5*p,p),"strokeColor=none;fillColor=none;");pa.vertex=!0;pa.value=m(e);v.insert(pa);v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);Cc.style+=M(e,u,Cc);Dc.style+=M(e,u,Dc);pa.style+=q(e,pa);Cc.style+=c(Cc.style,e,u,Cc);Dc.style+=c(Dc.style,e,u,Dc);pa.style+=c(pa.style,e,u,pa,G);break;case "UMLTextBlock":v.value=-m(e.Text);v.style+="strokeColor=none;"+a(e.Text,G);v.style+=c(v.style,e,u,v,G);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":nb=T(e,u,v);e.Rotatio=null;var Vb=c(v.style,e,u,v,G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+nb;var Ud=.8*r,Ff=r-Ud,Rc=new mxCell("",new mxGeometry(.2,0,Ud,p),"shape=ellipse;"+Vb);Rc.vertex=!0;Rc.geometry.relative=!0;v.insert(Rc);Pa=new mxCell("",new mxGeometry(0,-.5,Ff,1),"line;"+Vb);Pa.geometry.relative=!0;Pa.vertex=!0;v.insert(Pa);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=m(e);v.style="html=1;dropTarget=0;"+c(v.style,e,u,v,G);var ob=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");ob.geometry.relative=!0;ob.geometry.offset=new mxPoint(-20,5);ob.vertex=!0;v.insert(ob);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":nb=T(e,u,v);e.Rotatio=null;Vb=c(v.style,e,u,v,G);--1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+nb;var Se=.225*r,Te=.1*r;Ud=r-Se-Te;Rc=new mxCell("",new mxGeometry(.225,0,Ud,p),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Vb);Rc.vertex=!0;Rc.geometry.relative=!0;v.insert(Rc);Ab=new mxCell("",new mxGeometry(0,.5,Se,1),"line;"+Vb);Ab.geometry.relative=!0;Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(.9,.5,Te,1),"line;"+Vb);Bb.geometry.relative=-!0;Bb.vertex=!0;v.insert(Bb);break;case "BPMNActivity":v.value=m(e.Text);switch(e.bpmnActivityType){case 1:v.style+=a(e.Text,G);break;case 2:v.style+="shape=ext;double=1;"+a(e.Text,G);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+a(e.Text,G);break;case 4:v.style+="shape=ext;strokeWidth=2;"+a(e.Text,G)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:x=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 2:x=new mxCell("",new mxGeometry(0,-0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 3:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");x.geometry.offset=new mxPoint(4,5);break;case 4:x=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");x.geometry.offset=new mxPoint(4,7);break;case 5:x=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");x.geometry.offset=new mxPoint(4,7);break;case 6:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");-x.geometry.offset=new mxPoint(4,5);break;case 7:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),x.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Sc=Y(e,u);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");Sc=Sc.replace("fillColor","strokeColor");""==Z&&(Z="fillColor=#000000;");""==Sc&&(Sc="strokeColor=#ffffff;");x.style+=Sc+Z+"part=1;"}else x.style+=Y(e,u)+H(e,u)+"part=1;";x.geometry.relative=!0;x.vertex=!0;v.insert(x)}var Cd=0;0!=e.bpmnActivityMarker1&&Cd++;-0!=e.bpmnActivityMarker2&&Cd++;var Eb=0;1==Cd?Eb=-7.5:2==Cd&&(Eb=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");-x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Eb,-17);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");x.style+=Z;break;case 6:x=new mxCell("",-new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Eb,-18),x.style+=Y(e,u)+H(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}2==Cd&&(Eb=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Eb,--20);x.style+=Y(e,u)+H(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Eb,-17);Z=H(e,-u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");x.style+=Z;break;case 6:x=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Eb,-18),x.style+=Y(e,u)+H(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}v.style+=c(v.style,e,u,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+=-"outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(e.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(e.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;"}v.style+=c(v.style,e,u,v,G);break;case "BPMNChoreography":try{var ja=P(e.FillColor),ke=Sd(ja,.75),Kc=f(e.Name).match(/\d+/),eb=Math.max(mxUtils.getSizeForString(e.Name.t,Kc?Kc[0]:"13",null,r-10).height,24);ja="swimlaneFillColor="+ke+";";v.value=-m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+eb+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Name,G);v.style+=c(v.style,e,u,v,G);var Wb=eb;Kc=f(e.TaskName).match(/\d+/);var pc=e.TaskHeight?.75*e.TaskHeight:Math.max(mxUtils.getSizeForString(e.TaskName.t,Kc?Kc[0]:"13",null,r-10).height+15,24),Ec=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");-Ec.value=m(e.TaskName);Ec.vertex=!0;v.insert(Ec);Ec.style+=a(e.TaskName,G);Ec.style+=c(Ec.style,e,u,Ec,G);Wb+=pc;X=[];for(l=0;l<e.Fields;l++){var Vd=e["Participant"+(l+1)];Kc=f(Vd).match(/\d+/);pc=Math.max(mxUtils.getSizeForString(Vd.t,Kc?Kc[0]:"13",null,r-10).height,24);X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Wb+=pc;X[l].vertex=!0;v.insert(X[l]);X[l].style+=a(Vd,G);X[l].style+=c(X[l].style,e,u,X[l],G);-X[l].value=m(Vd)}}catch(hb){console.log(hb)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=m(e.Text);v.style=0==e.bpmnConversationType?v.style+oa(e):v.style+"strokeWidth=2;";e.bpmnIsSubConversation&&(x=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),x.geometry.offset=new mxPoint(-6,-17),x.style+=Y(e,u)+H(e,u),x.geometry.relative=!0,x.vertex=!0,v.insert(x));v.style+=c(v.style,e,u,v,G);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";-switch(e.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;"}v.style+=c(v.style,e,u,v);-v.value=m(e.Text);v.style+=a(e,G);break;case "BPMNData":v.style+="shape=note;size=14;";switch(e.bpmnDataType){case 0:v.value=m(e.Text);e.Text&&!e.Text.t&&(e.Text.t=" ");break;case 1:x=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(-6,-15);x.style+=Y(e,u)+H(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);break;case 2:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");x.geometry.offset=new mxPoint(3,-3);x.style+=Y(e,u)+H(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;");Da.geometry.offset=new mxPoint(0,14);Da.geometry.relative=!0;Da.vertex=!0;v.insert(Da);Da.value=m(e.Text);Da.style+=a(e,G);break;case 3:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),x.geometry.offset=new mxPoint(3,3),x.style+=H(e,u),x.geometry.relative=-!0,x.vertex=!0,v.insert(x),Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),x.style+=Z,Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;"),Da.geometry.offset=new mxPoint(0,14),Da.geometry.relative=!0,Da.vertex=!0,v.insert(Da),Da.value=m(e.Text),Da.style+=a(e,G)}v.style+=c(v.style,e,u,v);break;case "BPMNBlackPool":v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,p),"fillColor=#000000;strokeColor=none;opacity=30;");-x.vertex=!0;v.insert(x);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,.95*r,.95*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.05*r,.05*p,.95*r,.95*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=c(E.style,e,u,E,G);break;case "GSDFDDataStoreBlock":v.value=m(e.Text);v.style+="shape=partialRectangle;right=0;"+a(e.Text,G);-v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,.2*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Number);x.style+=a(e.Number,G);x.style+=c(x.style,e,u,x,G);break;case "OrgBlock":var Ue="";for(Fa in e.Active)"Photo"!=Fa&&e.Active[Fa]&&(Ue+=m(e[Fa],!0));if(e.Active.Photo){var le=.4*r;v.style+="spacingLeft="+le+";imageWidth="+(le-4)+";imageHeight="+(le-4)+";imageAlign=left;imageVerticalAlign=top;image="+g(e.Photo)}v.value=Ue;v.style+=c(v.style,e,u,v,!0);break;case "DefaultTableBlock":try{Gb=-e.RowHeights.length;Rb=e.ColWidths.length;var Wd=[],Dd=[];for(l=0;l<Gb;l++)Wd[l]=.75*e.RowHeights[l];for(ha=0;ha<Rb;ha++)Dd[ha]=.75*e.ColWidths[ha];v.style="group;dropTarget=0;pointerEvents=0;";var me=e.BandedColor1,ne=e.BandedColor2,Gf=e.BandedRows,Ve=e.BandedCols,Xd=e.HideH,Hf=e.HideV,We=e.TextVAlign,Xe=e.FillColor,Ye=e.StrokeStyle;delete e.StrokeStyle;var If=ea(Xe,"fillOpacity"),Ze=e.LineColor,Jf=ea(Ze,"strokeOpacity");ba=0;var Ed={};for(l=0;l<Gb;l++){aa=0;p=Wd[l];for(ha=0;ha<Rb;ha++){var Mb=l+-","+ha;if(Ed[Mb])aa+=Dd[ha];else{var lb=e["CellFill_"+Mb],oe=e["NoBand_"+Mb],Yd=e["CellSize_"+Mb],qc=e["Cell_"+Mb],$e=e["Cell_"+Mb+"_VAlign"],Kf=e["Cell_"+Mb+"_TRotation"],Lf=e["CellBorderWidthH_"+Mb],Mf=e["CellBorderColorH_"+Mb],Nf=e["CellBorderStrokeStyleH_"+Mb],Of=e["CellBorderWidthV_"+Mb],Pf=e["CellBorderColorV_"+Mb],Qf=e["CellBorderStrokeStyleV_"+Mb],af=Xd?Pf:Mf,bf=ea(af,"strokeOpacity"),cf=Xd?Of:Lf,Tc=Xd?Qf:Nf;lb=Gf&&!oe?0==l%2?me:Ve&&!oe?0==ha%2?me:ne:ne:Ve&&!oe?0==ha%2?me:ne:lb;var Rf=ea(lb,-"fillOpacity")||If;r=Dd[ha];var df=p;Zc=r;for(var Nb=l+1;Nb<l+Yd.h;Nb++)if(null!=Wd[Nb]){df+=Wd[Nb];Ed[Nb+","+ha]=!0;for(var Uc=ha+1;Uc<ha+Yd.w;Uc++)Ed[Nb+","+Uc]=!0}for(Nb=ha+1;Nb<ha+Yd.w;Nb++)if(null!=Dd[Nb])for(Zc+=Dd[Nb],Ed[l+","+Nb]=!0,Uc=l+1;Uc<l+Yd.h;Uc++)Ed[Uc+","+Nb]=!0;var qa=new mxCell("",new mxGeometry(aa,ba,Zc,df),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Xd?"top=0;bottom=0;":"")+Y({FillColor:lb||Xe})+Zb(mxConstants.STYLE_STROKECOLOR,P(af),-P(Ze))+(null!=cf?Zb(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(cf)),"1"):"")+(bf?bf:Jf)+Rf+"verticalAlign="+($e?$e:We?We:"middle")+";"+sa({StrokeStyle:Tc?Tc:Ye?Ye:"solid"})+(Kf?"horizontal=0;":""));qa.vertex=!0;qa.value=m(qc);qa.style+=c(qa.style,e,u,qa,G)+(G?"fontSize=13;":f(qc)+q(qc)+t(qc)+C(qc,qa)+I(qc)+Q(qc)+K(qc)+L(qc))+S(qc)+R(qc);v.insert(qa);aa+=r}}ba+=p}}catch(hb){console.log(hb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";-"VSMDedicatedProcessBlock"==w.Class?v.value=m(e.Text):"VSMProductionControlBlock"==w.Class&&(v.value=m(e.Resources));v.style+=c(v.style,e,u,v,G);"VSMDedicatedProcessBlock"==w.Class&&(x=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(4,-13),x.vertex=!0,v.insert(x),x.style+=c(x.style,e,u,x));Da=new mxCell("",new mxGeometry(0,0,r,15),"strokeColor=none;fillColor=none;part=1;");Da.vertex=!0;v.insert(Da);Da.value=-m(e.Title);Da.style+=a(e.Title,G);e.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);Da=new mxCell("",new mxGeometry(.1*r,.3*p,.8*r,.6*p),"part=1;");Da.vertex=!0;v.insert(Da);Da.value=m(e.Resource);Da.style+=a(e.Resource,G);Da.style+=c(Da.style,e,u,Da,G);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);Cb=p;bc=parseInt(e.Cells);ja=c("part=1;",e,u,v);0<bc&&(Cb/=bc);X=[];Pa=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),ja),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["cell_"+l]),X[l].style+=a(e["cell_"+l],G);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);Cb=p;bc=parseInt(e.Cells);ja=c("part=1;fillColor=none;",e,u,v);0<bc&&(Cb/=bc);X=[];Ub=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(.5*r,(l-1)*Cb,.5*r,Cb),"shape=partialRectangle;left=0;"+ja),X[l].vertex=!0,v.insert(X[l]),Ub[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),"strokeColor=none;fillColor=none;part=1;"),Ub[l].vertex=!0,v.insert(Ub[l]),Ub[l].value=-m(e["cell_"+l]),Ub[l].style+=a(e["cell_"+l],G);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=c(v.style,e,u,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.17*r,.2*p,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");x.vertex=!0;v.insert(x);-x.style+=c(x.style,e,u,x);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";ja="shape=card;size=18;flipH=1;part=1;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ja);x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.05*r,.1*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ja);E.vertex=!0;v.insert(E);E.style+=c(E.style,-e,u,E);var U=new mxCell("",new mxGeometry(0,.2*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+ja);U.vertex=!0;v.insert(U);U.value=m(e.Text);U.style+=c(U.style,e,u,U,G);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=m(e.Title);v.style+=a(e.Title,G);var va=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");va.edge=!0;va.geometry.relative=-1;D.addCell(va,v,null,v,v);break;case "AWSRoundedRectangleContainerBlock2":case "AWSRoundedRectangleContainerBlock":v.style+="strokeColor=none;fillColor=none;";e.Spotfleet?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,35,40),-"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.Beanstalk?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),-E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.EC2?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),E.geometry.relative=-!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.Subnet?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),E.geometry.relative=!0,E.geometry.offset=-new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.VPC?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,-0),E.vertex=!0,v.insert(E)):e.AWS?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):-e.Corporate?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):-(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=m(e.Title),v.style+=c(v.style,e,u,v,G));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=c(v.style,e,u,v,G);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";-v.value=m(e.Title);v.style+=c(v.style,e,u,v,G);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=c(v.style,e,u,v,G);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";qa=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");qa.vertex=!0;v.insert(qa);var Na=[qa];qa.style+=Y(e,u);va=new mxCell("",new mxGeometry(0,-0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;tc(.5*r,0,va,F,D,Na,v,qa);tc(.855*r,.145*p,va,F,D,Na,v,qa);tc(r,.5*p,va,F,D,Na,v,qa);tc(.855*r,.855*p,va,F,D,Na,v,qa);tc(.5*r,p,va,F,D,Na,v,qa);tc(.145*r,.855*p,va,F,D,Na,v,qa);tc(0,.5*p,va,F,D,Na,v,qa);tc(.145*r,.145*p,va,F,D,Na,v,qa);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";qa=new mxCell("",new mxGeometry(0,.5*p-10,r,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");-qa.vertex=!0;v.insert(qa);Na=[qa];va=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;Na=[qa];var Fd=r/e.NumTopNodes;for(l=0;l<e.NumTopNodes;l++)tc(.5*Fd+l*Fd,0,va,F,D,Na,v,qa);Fd=r/e.NumBottomNodes;for(l=0;l<e.NumBottomNodes;l++)tc(.5*Fd+l*Fd,p,va,F,D,Na,v,qa);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=m(e.Title);v.style+=c(v.style,e,u,v,G);-e.ToggleCharge&&(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);"EIMessageChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIDatatypeChannelBlock"==-w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIInvalidMessageChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIDeadLetterChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),x.geometry.offset=-new mxPoint(.45*-r,0)):"EIGuaranteedDeliveryBlock"==w.Class&&(x=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(-10,-7));x.geometry.relative=!0;x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;gb(.15*r,.25*p,.85*r,.25*p,va,F,D,Na,v,qa);break;-case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.07*p,.21*r,.86*p),"fillColor=#FFFF33;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.26*r,.09*p,.2*r,.82*p),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");E.vertex=!0;v.insert(E);E.style+=c(E.style,e,u,E);U=new mxCell("",new mxGeometry(1,.5,.35*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");-U.geometry.relative=!0;U.geometry.offset=new mxPoint(.4*-r,-10);U.vertex=!0;v.insert(U);U.style+=c(U.style,e,u,U);fa=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;");fa.geometry.relative=!0;fa.edge=!0;x.insertEdge(fa,!0);E.insertEdge(fa,!1);fa.style+=H(e,u);F.push(D.addCell(fa,null,null,null,null));da=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;");-da.geometry.relative=!0;da.edge=!0;E.insertEdge(da,!0);U.insertEdge(da,!1);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);var Gd=-e.Messages,pe=(p-17)/Gd;E=[];va=[];for(l=0;l<Gd;l++){var Hd=pe*(l+1)-3;E[l]=new mxCell("",new mxGeometry(r-20,Hd,20,20),"part=1;");E[l].vertex=!0;v.insert(E[l]);switch(w.Class){case "EIMessageBlock":E[l].value=m(e["message_"+(l+1)]);E.style+=a(e["message_"+(l+1)],G);break;case "EICommandMessageBlock":E[l].value="C";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":E[l].value="D";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":E[l].value="E",E[l].style+=-"fontStyle=1;fontSize=13;"}E[l].style+=c(E[l].style,e,u,E[l]);va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");va[l].geometry.relative=!0;va[l].edge=!0;x.insertEdge(va[l],!1);E[l].insertEdge(va[l],!0);va[l].style+=c(va[l].style,e,u,va[l]);var Lc=[];Lc.push(new mxPoint(aa+8.5,ba+Hd+10));va[l].geometry.points=Lc;F.push(D.addCell(va[l],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.45*r,.25*p,.3*r,.5*p),"part=1;fillColor=#ffffff");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;gb(0,.5*p,.4*r,.5*p,va,F,D,Na,v,qa);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);var fa=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;");fa.geometry.relative=!0;fa.edge=!0;gb(.05*r,.5*p,.85*r,.5*p,fa,F,D,Na,v,qa);var da=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;");da.geometry.relative=!0;da.edge=!0;gb(.05*r,.5*p,.85*-r,.15*p,da,F,D,Na,v,qa);var xa=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;");xa.geometry.relative=!0;xa.edge=!0;gb(.05*r,.5*p,.85*r,.85*p,xa,F,D,Na,v,qa);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);fa=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;");-fa.geometry.relative=!0;fa.edge=!0;fa.style+=H(e,u);gb(.05*r,.5*p,.95*r,.5*p,fa,F,D,Na,v,qa);da=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;");da.geometry.relative=!0;da.edge=!0;da.style+=H(e,u);gb(.3*r,.1*p,.3*r,.5*p,da,F,D,Na,v,qa);xa=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;");-xa.geometry.relative=!0;xa.edge=!0;xa.style+=H(e,u);gb(.7*r,.1*p,.7*r,.5*p,xa,F,D,Na,v,qa);var $a=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;");$a.geometry.relative=!0;$a.edge=!0;$a.style+=H(e,u);gb(.5*r,.5*p,.5*r,.9*p,$a,F,D,Na,v,qa);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,-e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.21*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);fa=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;");fa.geometry.relative=!0;fa.edge=!0;gb(.45*r,.33*p,.8*r,.33*p,fa,F,D,Na,v,qa);E=new mxCell("",new mxGeometry(.64*r,.55*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");E.vertex=!0;v.insert(E);E.style+=c(E.style,-e,u,E);da=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;");da.geometry.relative=!0;da.edge=!0;gb(.55*r,.67*p,.2*r,.67*p,da,F,D,Na,v,qa);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.1*r,.15*p,.8*r,.7*p),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");x.vertex=!0;v.insert(x);-x.style+=c(x.style,e,u,x);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.04*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.2*r,.56*p,.2*r,.32*p),"part=1;");E.vertex=!0;v.insert(E);E.value="A";E.style+="fontStyle=1;fontSize=13;";x.style+=c(x.style,e,u,x);fa=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;");fa.geometry.relative=!0;fa.edge=!0;x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.style+=c(fa.style,e,u,fa);Lc=[];Lc.push(new mxPoint(aa+.13*r,ba+.72*p));fa.geometry.points=Lc;F.push(D.addCell(fa,null,null,null,null));U=new mxCell("",new mxGeometry(.6*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");U.vertex=!0;v.insert(U);U.style+=H(e,u)+oa(e);U.style+=c(U.style,e,u,U);ta=new mxCell("",-new mxGeometry(.76*r,.56*p,.2*r,.32*p),"part=1;");ta.vertex=!0;v.insert(ta);ta.style+=H(e,u)+M(e,u,ta)+oa(e)+sa(e);ta.value="B";ta.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";ta.style+=c(ta.style,e,u,ta);da=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;");da.geometry.relative=!0;da.edge=!0;U.insertEdge(da,!1);ta.insertEdge(da,!0);da.style+=c(da.style,e,u,da);var ef=[];ef.push(new mxPoint(aa+.69*r,ba+.72*-p));da.geometry.points=ef;F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);U.insertEdge(xa,!0);xa.style+=c(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("1",new mxGeometry(.2*-r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("2",new mxGeometry(.45*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");E.vertex=!0;v.insert(E);E.style+=c(E.style,e,u,E);U=new mxCell("3",new mxGeometry(.7*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");U.vertex=!0;v.insert(U);U.style+=c(U.style,e,u,U);fa=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");-x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.geometry.points=[new mxPoint(aa+.375*r,ba+.15*p)];fa.geometry.relative=!0;fa.edge=!0;fa.style+=c(fa.style,e,u,fa);F.push(D.addCell(fa,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");E.insertEdge(da,!1);U.insertEdge(da,!0);da.geometry.points=[new mxPoint(aa+.675*r,ba+.15*p)];da.geometry.relative=!0;da.edge=!0;da.style+=c(da.style,e,u,da);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+=-"verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.3*r,.2*p,.4*r,.6*p),"shape=mxgraph.ios7.icons.clock;fillColor=#ffffff;flipH=1;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.38*r,.42*p,.24*r,.16*p),"part=1;fillColor=#aefe7d;");-x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.38*r,0,.24*r,.16*p),"part=1;");E.vertex=!0;v.insert(E);E.style+=c(E.style,e,u,E);U=new mxCell("",new mxGeometry(.76*r,.23*p,.24*r,.16*p),"");U.vertex=!0;v.insert(U);U.style=E.style;var ta=new mxCell("",new mxGeometry(.76*r,.61*p,.24*r,.16*p),"");ta.vertex=!0;v.insert(ta);ta.style=E.style;var Zd=new mxCell("",new mxGeometry(.38*r,.84*p,.24*r,.16*p),"");Zd.vertex=!0;v.insert(Zd);Zd.style=E.style;var $d=new mxCell("",new mxGeometry(0,-.61*p,.24*r,.16*p),"");$d.vertex=!0;v.insert($d);$d.style=E.style;var ae=new mxCell("",new mxGeometry(0,.23*p,.24*r,.16*p),"");ae.vertex=!0;v.insert(ae);ae.style=E.style;fa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.edge=!0;fa.style+=c(fa.style,e,u,fa);F.push(D.addCell(fa,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(da,!1);U.insertEdge(da,!0);da.edge=!0;da.style+=c(da.style,e,u,da);-F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(xa,!1);ta.insertEdge(xa,!0);xa.edge=!0;xa.style+=c(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));$a=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge($a,!1);Zd.insertEdge($a,!0);$a.edge=!0;$a.style+=c($a.style,e,u,$a);F.push(D.addCell($a,null,null,null,null));var Mc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Mc,-!1);$d.insertEdge(Mc,!0);Mc.edge=!0;Mc.style+=c(Mc.style,e,u,Mc);F.push(D.addCell(Mc,null,null,null,null));var Nc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Nc,!1);ae.insertEdge(Nc,!0);Nc.edge=!0;Nc.style+=c(Nc.style,e,u,Nc);F.push(D.addCell(Nc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);fa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");-fa.geometry.relative=!0;fa.edge=!0;gb(.05*r,.5*p,.6*r,.25*p,fa,F,D,Na,v,qa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;gb(.05*r,.5*p,.6*r,.75*p,da,F,D,Na,v,qa);x=new mxCell("",new mxGeometry(.7*r,.1*p,.15*r,.32*p),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"shape=mxgraph.eip.control_bus;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);U=new mxCell("",-new mxGeometry(r-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");U.vertex=!0;v.insert(U);U.style+=c(U.style,e,u,U);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);U.insertEdge(xa,!0);xa.style+=c(xa.style,e,u,xa);xa.geometry.points=[new mxPoint(aa+8.5,ba+40)];F.push(D.addCell(xa,null,null,null,null));ta=new mxCell("",new mxGeometry(r--45,p-20,20,20),"part=1;");ta.vertex=!0;v.insert(ta);ta.value=m(e.message_0);ta.style+=a(e.message_0,G);ta.style+=c(ta.style,e,u,ta,G);$a=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");$a.geometry.relative=!0;$a.edge=!0;x.insertEdge($a,!1);ta.insertEdge($a,!0);$a.style+=c($a.style,e,u,$a);$a.geometry.points=[new mxPoint(aa+8.5,ba+p-10)];F.push(D.addCell($a,null,null,null,null));Gd=e.HistoryMessages;pe=(p-75)/Gd;E=[];-va=[];for(l=0;l<Gd;l++)Hd=pe*(l+1)+30,E[l]=new mxCell("",new mxGeometry(r-20,Hd,20,20),"part=1;"),E[l].vertex=!0,E[l].value=m(e["message_"+(l+1)]),E.style+=a(e["message_"+(l+1)],G),v.insert(E[l]),E[l].style+=c(E[l].style,e,u,E[l],G),va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),va[l].geometry.relative=!0,va[l].edge=!0,U.insertEdge(va[l],!1),E[l].insertEdge(va[l],!0),va[l].style+=c(va[l].style,e,u,va[l]),Lc=[],-Lc.push(new mxPoint(aa+r-30,ba+Hd+10)),va[l].geometry.points=Lc,F.push(D.addCell(va[l],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);v.value="$$"+e.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>e.DoorAngle&&(v.style+="flipV=1;");v.style+=c(v.style,e,u,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=c(v.style,e,u,-v,G);v.style=v.style.replace("rotation=180;","");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<e.DoorAngle&&(v.style+="flipV=1;");v.style+=c(v.style,e,u,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,r,.25*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=[];var ff=.02*r,qe=(r-2*ff)/e.LightCount,gf=.8*qe;for(l=0;l<e.LightCount;l++)E[l]=new mxCell("",new mxGeometry(ff+-qe*l+(qe-gf)/2,.25*p,gf,.75*p),"ellipse;part=1;"),E[l].vertex=!0,v.insert(E[l]),E[l].style+=c(E[l].style,e,u,E[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=[];var hf=r/e.SinkCount;for(l=0;l<e.SinkCount;l++)x[l]=new mxCell("",new mxGeometry(hf*l,0,hf,p),"part=1;shape=mxgraph.floorplan.sink_2;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=c(x[l].style,e,u,x[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Fb=-.1*r/e.StallCount;x=new mxCell("",new mxGeometry(0,0,Fb,p),"fillColor=#000000;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);var Ob=(r-Fb)/e.StallCount,re=[],Id=[],Jd=[],Kd=[];Z=H(e,u);Z=""==Z?"#000000;":Z.replace("stokreColor=","");var se="part=1;fillColor="+Z;se+=c(se,e,u,v);var te=c("",e,u,v);for(l=0;l<e.StallCount;l++)re[l]=new mxCell("",new mxGeometry((l+1)*Ob,0,Fb,p),se),re[l].vertex=!0,v.insert(re[l]),Jd[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.05*(Ob-Fb),p-.92*(Ob-Fb),.9*(Ob--Fb),.92*(Ob-Fb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Jd[l].vertex=!0,v.insert(Jd[l]),Jd[l].style+=te,Id[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.2*(Ob-Fb),0,.6*(Ob-Fb),.8*(Ob-Fb)),"shape=mxgraph.floorplan.toilet;part=1;"),Id[l].vertex=!0,v.insert(Id[l]),Id[l].style+=te,Kd[l]=new mxCell("",new mxGeometry(Fb+l*Ob,.42*p,.15*(Ob-Fb),.12*(Ob-Fb)),"part=1;"),Kd[l].vertex=!0,v.insert(Kd[l]),Kd[l].style+=te;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var be="edgeStyle=none;endArrow=none;part=1;";-Z=H(e,u);Z=""==Z?"#000000;":Z.replace("strokeColor=","");var Vc="shape=triangle;part=1;fillColor="+Z;Vc+=c(Vc,e,u,v);fa=new mxCell("",new mxGeometry(0,0,0,0),be);fa.geometry.relative=!0;fa.edge=!0;gb(0,.5*p,.65*r,.5*p,fa,F,D,Na,v,qa);var ia=p/e.numLines;da=[];var Wc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),be),da[l].geometry.relative=!0,da[l].edge=!0,gb(.65*r,.5*p,.96*r,(l+.5)*ia,da[l],F,D,Na,v,qa),Wc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ia,.05*r,.6*ia),Vc),-Wc[l].vertex=!0,v.insert(Wc[l]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";be="edgeStyle=none;endArrow=none;part=1;";Z=H(e,u);Z=""==Z?"#000000;":Z.replace("strokeColor=","");Vc="shape=triangle;part=1;fillColor="+Z;Vc+=c(Vc,e,u,v);ia=p/e.numLines;da=[];Wc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),be),da[l].geometry.relative=!0,da[l].edge=!0,gb(0,(l+.5)*ia,.96*r,(l+.5)*ia,da[l],F,D,Na,v,qa),Wc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ia,.05*-r,.6*ia),Vc),Wc[l].vertex=!0,v.insert(Wc[l]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);switch(e.vesselType){case 1:v.style+="shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=c(v.style,e,u,v,G);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+=-"shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");v.style+=c(v.style,e,u,v,G);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";v.style+=c(v.style,e,u,v,G);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=m(e.Text);v.style+=-c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.2*p,r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=ja;x.style+=c(x.style,e,u,x);ja="endSize=4;endArrow=block;endFill=1;";0==e.compressorType?(fa=new mxCell("",new mxGeometry(0,0,0,0),""),fa.geometry.relative=!0,fa.edge=!0,fa.style+=ja,fa.style+=c(fa.style,e,u,fa),gb(0,0,0,.2*p,fa,F,D,Na,v,qa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=-ja,da.style+=c(da.style,e,u,da),gb(r,.67*p,r,p,da,F,D,Na,v,qa)):(x.style+="flipH=1;",fa=new mxCell("",new mxGeometry(0,0,0,0),""),fa.geometry.relative=!0,fa.edge=!0,fa.style+=ja,fa.style+=c(fa.style,e,u,fa),gb(0,0,0,.33*p,fa,F,D,Na,v,qa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ja,da.style+=c(da.style,e,u,da),gb(r,.8*p,r,p,da,F,D,Na,v,qa));1==e.centerLineType&&(xa=new mxCell("",new mxGeometry(0,0,0,0),""),xa.geometry.relative=!0,xa.edge=!0,xa.style+=-ja,xa.style+=c(xa.style,e,u,xa),gb(.2*r,.5*p,.8*r,.5*p,xa,F,D,Na,v,qa));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.2*p,.6*r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(w.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;"}v.style+=c(v.style,e,u,v);"PEIndicator2Block"==-w.Class||"PESharedIndicator2Block"==w.Class?(x=new mxCell("",new mxGeometry(0,0,r,.5*r),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,.5*r,r,.5*r),"part=1;strokeColor=none;fillColor=none;")):(x=new mxCell("",new mxGeometry(0,0,r,.5*p),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=c(x.style,e,u,x,G),-E=new mxCell("",new mxGeometry(0,.5*p,r,.5*p),"part=1;strokeColor=none;fillColor=none;"));E.vertex=!0;v.insert(E);E.value=m(e.BotText);E.style+=a(e.BotText,G);E.style+=c(E.style,e,u,E,G);switch(e.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 ue=-!1;"PEPoweredValveBlock"==w.Class?1!=e.poweredHandOperated&&(ue=!0):1!=e.handOperated&&(ue=!0);if(ue){e=h(w).Properties;O=e.BoundingBox;var Sf=O.h;O.h="PEAngleValveBlock"==w.Class||"PEAngleGlobeValveBlock"==w.Class?.7*O.h:.6*O.h;v=new mxCell("",new mxGeometry(Math.round(.75*O.x+xc),Math.round(.75*(O.y+Sf-O.h)+yc),Math.round(.75*O.w),Math.round(.75*O.h)),"");v.vertex=!0;Xa(v,w,D)}if("PEPoweredValveBlock"==w.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",-v.style+=c(v.style,e,u,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",x=new mxCell("",new mxGeometry(.325*r,0,.35*r,.35*p),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),x.vertex=!0,v.insert(x),x.value=m(e.PoweredText),x.style+=(G?"":q(e.PoweredText)+t(e.PoweredText)+C(e.PoweredText)+I(e.PoweredText)+Q(e.PoweredText)+L(e.PoweredText)+S(e.PoweredText))+"fontSize=6;"+R(e.PoweredText),x.style+=c(x.style,e,u,x,G)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";-v.value=m(e.Text);switch(w.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==e.handOperated&&(v.style+="actuator=man;")}v.style+=c(v.style,e,u,v,G);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,-0,20,p-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-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==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):-new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=c(v.style,e,u,v);break;case "UI2WindowBlock":v.value=m(e.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(G?"fontSize=13;":f(e.Title)+q(e.Title)+t(e.Title));1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),-"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-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==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",-new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=c(v.style,e,u,v,G);break;case "UI2DialogBlock":v.value=m(e.Text);v.style+=a(e.Text,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=c(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");-E.geometry.relative=!0;E.geometry.offset=new mxPoint(-25,-10);E.vertex=!0;x.insert(E);1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-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==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=c(v.style,e,u,v);e.Text=null;break;case "UI2AccordionBlock":x=[];ia=25;for(l=0;l<=e.Panels-1;l++)x[l]=l<e.Selected-1?new mxCell("",new mxGeometry(0,-l*ia,r,ia),"part=1;fillColor=#000000;fillOpacity=25;"):l==e.Selected-1?new mxCell("",new mxGeometry(0,l*ia,r,ia),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,p-(e.Panels-e.Selected)*ia+(l-e.Selected)*ia,r,ia),"part=1;fillColor=#000000;fillOpacity=25;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Panel_"+(l+1)]),x[l].style+=a(e["Panel_"+(l+1)],G),0>x[l].style.indexOf(";align=")&&(x[l].style+="align=left;spacingLeft=5;");var Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&-(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ia-20-(e.Panels-e.Selected)*ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ia-(e.Panels-e.Selected)*ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ia),E.vertex=!0,v.insert(E),v.style+=-"spacingRight=20;",E.style+=Va,E.style+=c(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ia),U.vertex=!0,v.insert(U),U.style+=Va,U.style+=c(U.style,e,u,U));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,-e.Selected*ia,r-20,p-e.Selected*ia-20-(e.Panels-e.Selected)*ia),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ia,r-20,p-e.Selected*ia-(e.Panels-e.Selected)*ia),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=c(v.style,e,u,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";-x=[];E=[];ia=25;var Ib=3,Ga=(r+Ib)/(e.Tabs+1),ib=new mxCell("",new mxGeometry(0,ia,r,p-ia),"part=1;");ib.vertex=!0;v.insert(ib);ib.style+=c(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ga,0,Ga-Ib,ia),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(10+l*Ga,0,Ga-Ib,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga-Ib,ia),"fillColor=#000000;fillOpacity=25;"),-E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=c(E[l].style,e,u,E[l]);Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p--ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ia),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=c(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,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+=Va,U.style+=c(U.style,e,u,U));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ia=25;Ib=3;Ga=(r+Ib)/e.Tabs;ib=new mxCell("",new mxGeometry(0,ia,r,p-ia),"part=1;");ib.vertex=!0;v.insert(ib);ib.style+=c(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga-Ib,ia),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",-new mxGeometry(l*Ga,0,Ga-Ib,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga-Ib,ia),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=c(E[l].style,e,u,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==-e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ia),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=c(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,-1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,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+=Va,U.style+=c(U.style,e,u,U));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];Ib=3;ia=25+Ib;Ga=80;Ac=10;ib=new mxCell("",new mxGeometry(Ga,0,r-Ga,p),"part=1;");ib.vertex=-!0;v.insert(ib);ib.style+=c(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,Ac+l*ia,Ga,ia-Ib),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=c(E[l].style,e,u,E[l],G)):(x[l]=new mxCell("",new mxGeometry(0,Ac+l*ia,Ga,ia-Ib),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga,ia-Ib),"fillColor=#000000;fillOpacity=25;"),-E[l].vertex=!0,x[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=c(E[l].style,e,u,E[l]);Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),-E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=c(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(Ga,1,r-20-Ga,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ga,1,r-Ga,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+=Va,U.style+=c(U.style,e,u,U));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";ia=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ia+.5*ia-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=c(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&-(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=c(E[l].style,e,u,E[l]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";Ga=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ga,.5*p-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),-x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=c(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=c(E[l].style,e,u,E[l]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";-ia=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ia+.5*ia-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=c(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2.5,-2.5,5,5),"ellipse;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=c(E[l].style,e,u,E[l]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";Ga=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ga,.5*p-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=-c(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=c(E[l].style,e,u,E[l]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=m(e.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+=-"shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";v.style+=c(v.style,e,u,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(0,0,.6*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Date);x.style+=a(e.Date,G);v.style+=c(v.style,e,u,v);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");-E=new mxCell("",new mxGeometry(.75*r,0,.25*r,p),"part=1;shape=mxgraph.gmdl.calendar;");E.vertex=!0;v.insert(E);E.style+=Z;E.style+=c(E.style,e,u,E);break;case "UI2SearchBlock":v.value=m(e.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+a(e.Search,G);v.style+=c(v.style,e,u,v,G);break;case "UI2NumericStepperBlock":Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");v.value=m(e.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+-Z+a(e.Number,G);v.style+=c(v.style,e,u,v,G);break;case "UI2TableBlock":try{lb=P(e.FillColor);var Ld=P(e.LineColor);Tc="";var ce=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Md='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Ld+';">',uc=e.Data.split("\n");var jf=e.AltRow&&"default"!=e.AltRow?"none"==e.AltRow?lb:P(e.AltRow):Sd(lb,.95);Pc=e.Header&&"default"!=e.Header?"none"==e.Header?jf:P(e.Header):Sd(lb,.8);if("full"==e.GridLines)Tc="border: 1px solid "+-Ld,ce=19;else if("row"==e.GridLines)Tc="border-bottom: 1px solid "+Ld,ce=19;else if("default"==e.GridLines||"column"==e.GridLines)Tc="border-right: 1px solid "+Ld;uc=uc.filter(function(hb){return hb});/^\{[^}]*\}$/.test(uc[uc.length-1])&&uc.pop();Gc=uc[0].split(",").length;var kf="";for(ha=0;ha<Gc-1;ha++)kf+=" , ";for(l=uc.length;l<Math.ceil(p/20);l++)uc.push(kf);for(l=0;l<uc.length;l++){Md+='<tr style="height: '+ce+"px;background:"+(0==l?Pc:l%2?lb:jf)+'">';var lf=uc[l].split(",");for(ha=0;ha<lf.length;ha++){var Nd=-e["Cell_"+l+"_"+ha],Tf=Nd&&Nd.m&&Nd.m[0]&&"c"==Nd.m[0].n?P(Nd.m[0].v):Ld;Md+='<td style="height: '+ce+"px;color:"+Tf+";"+Tc+'">'+mxUtils.htmlEntities(lf[ha])+"</td>"}Md+="</tr>"}Md+="</table>";v.value=Md}catch(hb){console.log(hb)}break;case "UI2ButtonBarBlock":v.style+=c(v.style,e,u,v);x=[];E=[];Ga=r/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"strokeColor=none;"),-x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga,p),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=c(E[l].style,e,u,E[l],G);break;case "UI2VerticalButtonBarBlock":v.style+=c(v.style,e,u,v);x=[];E=[];ia=p/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,l*ia,r,ia),""),E[l].vertex=!0,v.insert(E[l])):-(x[l]=new mxCell("",new mxGeometry(0,l*ia,r,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,r,ia),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=c(E[l].style,e,u,E[l],G);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=[];E=[];Ga=r/e.Links;for(l=0;l<e.Links;l++)0!=-l?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),E[l].style+=c(E[l].style,e,u,E[l])):E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"fillColor=none;strokeColor=none;"),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Link_"+(l+1)]),E[l].style+=a(e["Link_"+(l+1)],G);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=[];E=[];Ga=r/e.Links;for(l=0;l<e.Links;l++)x[l]=new mxCell("",new mxGeometry(l*-Ga,0,Ga,p),"fillColor=none;strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Link_"+(l+1)]),x[l].style+=a(e["Link_"+(l+1)],G);for(l=1;l<e.Links;l++)E[l]=new mxCell("",new mxGeometry(l/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),E[l].geometry.relative=!0,E[l].geometry.offset=new mxPoint(-3,-5),E[l].vertex=!0,v.insert(E[l]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);x=[];Ga=r/(e.Buttons+1);for(l=0;l<=e.Buttons-1;l++)x[l]=l!=e.Selected--1?new mxCell("",new mxGeometry(0,0,Ga,p),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,Ga,p),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),x[l].geometry.relative=!0,x[l].geometry.offset=new mxPoint(l*Ga,0),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["MenuItem_"+(l+1)]),x[l].style+=a(e["MenuItem_"+(l+1)],G);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+a(e.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";-break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+a(e.Text_prev);v.value=m(e.Text_prev)+" ";for(l=0;l<e.Links;l++)v.value+=m(e["Link_"+(l+1)])+" ";v.value+=m(e.Text_next);break;case "UI2ContextMenuBlock":v.style+=c(v.style,e,u,v);X=[];ob=[];var kd=[];ia=p/e.Lines;ja=null;for(l=0;l<e.Lines;l++)null!=e["Item_"+(l+1)]&&(null==ja&&(ja=""+f(e["Item_"+(l+1)])+q(e["Item_"+(l+1)])+t(e["Item_"+(l+1)])),X[l]=new mxCell("",new mxGeometry(0,l*p/e.Lines,r,ia),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja,X[l].value=m(e["Item_"+(l+1)])),null!=e.Icons[l+1]&&null!=X[l]&&("dot"==e.Icons[l+1]?(ob[l]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),ob[l].geometry.offset=new mxPoint(6,-4)):"check"==e.Icons[l+1]&&(ob[l]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),ob[l].geometry.offset=new mxPoint(6.5,-4)),null!=ob[l]&&(ob[l].geometry.relative=!0,ob[l].vertex=!0,X[l].insert(ob[l]),Z=H(e,u),-Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),ob[l].style+=Z)),null!=e["Shortcut_"+(l+1)]&&(null==ja&&(ja=""+f(e["Shortcut_"+(l+1)])+q(e["Shortcut_"+(l+1)])+t(e["Shortcut_"+(l+1)])),kd[l]=new mxCell("",new mxGeometry(.6*r,l*p/e.Lines,.4*r,ia),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),kd[l].vertex=!0,v.insert(kd[l]),kd[l].style+=ja,kd[l].value=m(e["Shortcut_"+(l+1)])),null!=e.Dividers[l+1]&&(X[l]=new mxCell("",new mxGeometry(.05*r,l*p/e.Lines,.9*-r,ia),"shape=line;strokeWidth=1;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=H(e,u));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*e.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=m(e.Tip||e.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+e.RoundCorners+";"+a(e.Tip||e.Text,G);v.style+=c(v.style,e,u,v,G);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=-m(e.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+a(e.Txt,G);v.style+=c(v.style,e,u,v,G);break;case "UI2AlertBlock":v.value=m(e.Txt);v.style+=a(e.Txt,G);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=c(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");E.geometry.relative=!0;E.geometry.offset=-new mxPoint(-25,-10);E.vertex=!0;x.insert(E);var Uf=45*e.Buttons+(10*e.Buttons-1);U=[];for(l=0;l<e.Buttons;l++)U[l]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),U[l].geometry.relative=!0,U[l].geometry.offset=new mxPoint(.5*-Uf+55*l,-40),U[l].vertex=!0,v.insert(U[l]),U[l].value=m(e["Button_"+(l+1)]),U[l].style+=a(e["Button_"+(l+1)],G),U[l].style+=c(U[l].style,e,u,U[l],G);break;case "UMLClassBlock":if(0==e.Simple){ja=Y(e,u);eb=Math.round(.75*e.TitleHeight)||25;ja=ja.replace("fillColor",-"swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+eb+";"+a(e.Title,G);v.style+=c(v.style,e,u,v,G);X=[];var ve=[],wb=eb/p;Wb=eb;for(l=0;l<=e.Attributes;l++)0<l&&(ve[l]=new mxCell("",new mxGeometry(0,Wb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),-Wb+=8,ve[l].vertex=!0,v.insert(ve[l])),ia=0,0==e.Attributes?ia=l=1:l<e.Attributes?(ia=e["Text"+(l+1)+"Percent"],wb+=ia):ia=1-wb,pc=Math.round((p-eb)*ia)+(e.ExtraHeightSet&&1==l?.75*e.ExtraHeight:0),X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;whiteSpace=wrap;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=-ja+M(e,u,X[l])+a(e["Text"+(l+1)],G),X[l].value=m(e["Text"+(l+1)])}else v.value=m(e.Title),v.style+="align=center;",v.style+=a(e.Title,G),v.style+=c(v.style,e,u,v,G);break;case "ERDEntityBlock":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+-eb+";"+a(e.Name,G);v.style+=c(v.style,e,u,v,G);e.ShadedHeader?(ja=P(e.FillColor),ke=Sd(ja,.85),v.style+="fillColor="+ke+";"):v.style+=Y(e,u);X=[];wb=eb/p;Wb=eb;for(l=0;l<e.Fields;l++)ia=0,pc=.75*e["Field"+(l+1)+"_h"],X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=-ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;opacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]);break;case "ERDEntityBlock2":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+eb+";"+a(e.Name,G);v.style=e.ShadedHeader?-v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.style+=c(v.style,e,u,v,G);X=[];var Fa=[];wb=eb;var Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),Fa[l].vertex=!0,v.insert(Fa[l]),Fa[l].style+=ja+a(e["Key"+(l+1)],-G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Key"+(l+1)]),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=-ja+a(e["Field"+(l+1)],G),v.style+=c(v.style,e,u,v),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),wb+=.75*e["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+eb+-";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.value=m(e.Name);v.style+=c(v.style,e,u,v,G);X=[];Fa=[];wb=eb;Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Field"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),Fa[l].vertex=!0,v.insert(Fa[l]),-Fa[l].style+=ja+a(e["Field"+(l+1)],G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Field"+(l+1)]),Fa[l].style+=c(Fa[l].style,e,u,Fa[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Type"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Type"+(l+1)]),X[l].style+=c(X[l].style,e,u,X[l],G),wb+=.75*e["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+-ja+"startSize="+eb+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.value=m(e.Name);v.style+=c(v.style,e,u,v,G);X=[];Fa=[];var Kb=[];wb=eb;Jb=30;var de=40;null!=e.Column1&&(Jb=.75*e.Column1);null!=e.Column2&&(de=.75*e.Column2);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),-Fa[l].vertex=!0,v.insert(Fa[l]),Fa[l].style+=ja+a(e["Key"+(l+1)],G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Key"+(l+1)]),Fa[l].style+=c(Fa[l].style,e,u,Fa[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb-de,.75*e["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),X[l].style+=c(X[l].style,e,u,X[l],G),Kb[l]=new mxCell("",new mxGeometry(r-de,wb,de,.75*e["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),-Kb[l].vertex=!0,v.insert(Kb[l]),Kb[l].style+=ja+a(e["Type"+(l+1)],G),Kb[l].style=1==e.AltRows&&0!=l%2?Kb[l].style+"fillColor=#000000;fillOpacity=5;":Kb[l].style+("fillColor=none;"+M(e,u,Kb[l])),Kb[l].value=m(e["Type"+(l+1)]),Kb[l].style+=c(Kb[l].style,e,u,Kb[l],G),wb+=.75*e["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Ta("application_system",r,p,v,e,u);break;case "GCPServiceCardAuthorizationBlock":Ta("internal_payment_authorization",r,p,v,e,u);break;case "GCPServiceCardBlankBlock":Ta("blank",-r,p,v,e,u);break;case "GCPServiceCardReallyBlankBlock":Ta("blank",r,p,v,e,u);break;case "GCPServiceCardBucketBlock":Ta("bucket",r,p,v,e,u);break;case "GCPServiceCardCDNInterconnectBlock":Ta("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardCloudDNSBlock":Ta("blank",r,p,v,e,u);break;case "GCPServiceCardClusterBlock":Ta("cluster",r,p,v,e,u);break;case "GCPServiceCardDiskSnapshotBlock":Ta("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardEdgePopBlock":Ta("google_network_edge_cache",-r,p,v,e,u);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Ta("frontend_platform_services",r,p,v,e,u);break;case "GCPServiceCardGatewayBlock":Ta("gateway",r,p,v,e,u);break;case "GCPServiceCardGoogleNetworkBlock":Ta("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardImageServicesBlock":Ta("image_services",r,p,v,e,u);break;case "GCPServiceCardLoadBalancerBlock":Ta("network_load_balancer",r,p,v,e,u);break;case "GCPServiceCardLocalComputeBlock":Ta("dedicated_game_server",r,p,v,-e,u);break;case "GCPServiceCardLocalStorageBlock":Ta("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardLogsAPIBlock":Ta("logs_api",r,p,v,e,u);break;case "GCPServiceCardMemcacheBlock":Ta("memcache",r,p,v,e,u);break;case "GCPServiceCardNATBlock":Ta("nat",r,p,v,e,u);break;case "GCPServiceCardPaymentFormBlock":Ta("external_payment_form",r,p,v,e,u);break;case "GCPServiceCardPushNotificationsBlock":Ta("push_notification_service",r,p,v,e,u);break;case "GCPServiceCardScheduledTasksBlock":Ta("scheduled_tasks",-r,p,v,e,u);break;case "GCPServiceCardServiceDiscoveryBlock":Ta("service_discovery",r,p,v,e,u);break;case "GCPServiceCardSquidProxyBlock":Ta("squid_proxy",r,p,v,e,u);break;case "GCPServiceCardTaskQueuesBlock":Ta("task_queues",r,p,v,e,u);break;case "GCPServiceCardVirtualFileSystemBlock":Ta("virtual_file_system",r,p,v,e,u);break;case "GCPServiceCardVPNGatewayBlock":Ta("gateway",r,p,v,e,u);break;case "GCPInputDatabase":Ya("database",1,.9,r,p,v,e,u);break;case "GCPInputRecord":Ya("record",1,.66,r,p,v,-e,u);break;case "GCPInputPayment":Ya("payment",1,.8,r,p,v,e,u);break;case "GCPInputGateway":Ya("gateway_icon",1,.44,r,p,v,e,u);break;case "GCPInputLocalCompute":Ya("compute_engine_icon",1,.89,r,p,v,e,u);break;case "GCPInputBeacon":Ya("beacon",.73,1,r,p,v,e,u);break;case "GCPInputStorage":Ya("storage",1,.8,r,p,v,e,u);break;case "GCPInputList":Ya("list",.89,1,r,p,v,e,u);break;case "GCPInputStream":Ya("stream",1,.82,r,p,v,e,u);break;case "GCPInputMobileDevices":Ya("mobile_devices",1,.73,r,p,v,e,u);break;-case "GCPInputCircuitBoard":Ya("circuit_board",1,.9,r,p,v,e,u);break;case "GCPInputLive":Ya("live",.74,1,r,p,v,e,u);break;case "GCPInputUsers":Ya("users",1,.63,r,p,v,e,u);break;case "GCPInputLaptop":Ya("laptop",1,.66,r,p,v,e,u);break;case "GCPInputApplication":Ya("application",1,.8,r,p,v,e,u);break;case "GCPInputLightbulb":Ya("lightbulb",.7,1,r,p,v,e,u);break;case "GCPInputGame":Ya("game",1,.54,r,p,v,e,u);break;case "GCPInputDesktop":Ya("desktop",1,.9,r,p,v,e,u);break;case "GCPInputDesktopAndMobile":Ya("desktop_and_mobile",-1,.66,r,p,v,e,u);break;case "GCPInputWebcam":Ya("webcam",.5,1,r,p,v,e,u);break;case "GCPInputSpeaker":Ya("speaker",.7,1,r,p,v,e,u);break;case "GCPInputRetail":Ya("retail",1,.89,r,p,v,e,u);break;case "GCPInputReport":Ya("report",1,1,r,p,v,e,u);break;case "GCPInputPhone":Ya("phone",.64,1,r,p,v,e,u);break;case "GCPInputBlank":Ya("transparent",1,1,r,p,v,e,u);break;case "PresentationFrameBlock":0==e.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=a(e.Text),v.value=m(e.Text),v.style+=c(v.style,-e,u,v,G));break;case "SVGPathBlock2":try{var Vf=e.LineWidth,Wf=e.LineColor,mf=e.FillColor,nf=e.DrawData.Data,ee='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',we=null;for(l=0;l<nf.length;l++){var vc=nf[l],Xf=vc.a,Yf=("prop"==vc.w||null==vc.w?Vf:vc.w)/Math.min(r,p)*.75;Sc="prop"==vc.s||null==vc.s?Wf:vc.s;Z="prop"==vc.f||null==vc.f?mf:vc.f;"object"==typeof Z&&(null!=Z.url&&(we="shape=image;image="+g(Z.url)+";"),Z=Array.isArray(Z.cs)?Z.cs[0].c:mf);ee+='<path d="'+Xf+'" fill="'+Z+'" stroke="'+-Sc+'" stroke-width="'+Yf+'"/>'}ee+="</svg>";v.style=we?we:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(ee):Base64.encode(ee,!0))+";"}catch(hb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var of=0==W.indexOf("Bracket")?"size=0;arcSize=50;":"",pf=c(v.style,e,u,v,G);nb=T(e,u,v);v.style="group;"+nb;var xe=Math.min(.14*(nb?r:p),100),ye=-new mxCell("",new mxGeometry(0,0,xe,p),"shape=curlyBracket;rounded=1;"+of+pf);ye.vertex=!0;ye.geometry.relative=!0;var ze=new mxCell("",new mxGeometry(1-xe/r,0,xe,p),"shape=curlyBracket;rounded=1;flipH=1;"+of+pf);ze.vertex=!0;ze.geometry.relative=!0;v.insert(ye);v.insert(ze);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=c(v.style,e,u,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+=-"verticalAlign=middle;");var ld=new mxCell("",new mxGeometry(0,0,8,p),"shape=partialRectangle;right=0;fillColor=none;");ld.geometry.relative=!0;ld.vertex=!0;ld.style+=c(ld.style,e,u,v,G);v.insert(ld);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{nb=T(e,u,v);v.style="group;"+nb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$",-Le(e.Stencil.id,e.Stencil));var Pb=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Pb.x/Pb.w,$f=-Pb.y/Pb.h;for(l=0;l<Pb.stencils.length;l++){var pb=Pb.stencils[l];qa=new mxCell("",new mxGeometry(Zf,$f,r,p),"shape="+pb.shapeStencil+";");var ag=pb.FillColor,bg=pb.LineColor,cg=pb.LineWidth;"prop"==pb.FillColor&&(pb.FillColor=e.FillColor);null==pb.FillColor&&(pb.FillColor="#ffffff00");"prop"==pb.LineColor&&(pb.LineColor=e.LineColor);null==pb.LineColor&&(pb.LineColor="#ffffff00");"prop"==pb.LineWidth&&(pb.LineWidth=-e.LineWidth);qa.style+=c(qa.style,pb,u,qa,G);pb.FillColor=ag;pb.LineColor=bg;pb.LineWidth=cg;Z=e.FillColor;var dg=e.LineColor,eg=e.LineWidth;e.FillColor=null;e.LineColor=null;e.LineWidth=null;qa.style+=c(qa.style,e,u,qa,G);e.FillColor=Z;e.LineColor=dg;e.LineWidth=eg;qa.vertex=!0;qa.geometry.relative=!0;v.insert(qa)}var Xb=0;for(nb=e.Rotation;e["t"+Xb];){var qf=e["t"+Xb],rf=m(qf);if(rf){ra=new mxCell(rf,new mxGeometry(0,0,r,p),"strokeColor=none;fillColor=none;overflow=visible;");e.Rotation=0;ra.style+=-c(ra.style,qf,u,ra,G);ra.style+=c(ra.style,e,u,ra,G);e.Rotation=nb;if(null!=Pb.text&&null!=Pb.text["t"+Xb]){var fb=Pb.text["t"+Xb];fb.Rotation=nb+(fb.rotation?fb.rotation:0)+(e["t"+Xb+"_TRotation"]?e["t"+Xb+"_TRotation"]:0)+(e["t"+Xb+"_TAngle"]?e["t"+Xb+"_TAngle"]:0);ra.style+=c(ra.style,fb,u,ra,G);var Yb=ra.geometry;fb.w&&(Yb.width*=fb.w/Pb.w);fb.h&&(Yb.height*=fb.h/Pb.h);fb.x&&(Yb.x=fb.x/Pb.w);fb.y&&(Yb.y=fb.y/Pb.h);fb.fw&&(Yb.width*=.75*fb.fw/r);fb.fh&&(Yb.height*=.75*fb.fh/p);fb.fx&&(Yb.x=(0<-fb.fx?1:0)+.75*fb.fx/r);fb.fy&&(Yb.y=(0<fb.fy?1:0)+.75*fb.fy/p)}ra.vertex=!0;ra.geometry.relative=!0;v.insert(ra)}Xb++}}if(e.FillColor&&e.FillColor.url){var Od=new mxCell("",new mxGeometry(0,0,r,p),"shape=image;html=1;");Od.style+=Ra({},{},e.FillColor.url);Od.vertex=!0;Od.geometry.relative=!0;v.insert(Od)}}catch(hb){console.log("Freehand error",hb)}break;case "RightArrowBlock":var Ae=e.Head*p/r;v.style="shape=singleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+Ae;v.value=m(e);v.style+=c(v.style,-e,u,v,G);break;case "DoubleArrowBlock":Ae=e.Head*p/r;v.style="shape=doubleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+Ae;v.value=m(e);v.style+=c(v.style,e,u,v,G);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(W){case "VPCSubnet2017":var md="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var nd=30;var od=35;break;case "VirtualPrivateCloudContainer2017":md=-"shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";nd=52;od=36;break;case "ElasticBeanStalkContainer2017":md="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";nd=30;od=41;break;case "EC2InstanceContents2017":md="shape=mxgraph.aws3.instance;fillColor=#F58536;";nd=40;od=41;break;case "AWSCloudContainer2017":md="shape=mxgraph.aws3.cloud;fillColor=#F58536;";nd=52;od=36;break;case "CorporateDataCenterContainer2017":md="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",nd=-30,od=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";v.value=m(e);v.style+=c(v.style,e,u,v,G);v.geometry.y+=20;v.geometry.height-=20;ob=new mxCell("",new mxGeometry(20,-20,nd,od),md);ob.vertex=!0;v.insert(ob);break;case "FlexiblePolygonBlock":var Xc=['<shape strokewidth="inherit"><foreground>'];Xc.push("<path>");for(ha=0;ha<e.Vertices.length;ha++)Pa=e.Vertices[ha],0==ha?Xc.push('<move x="'+100*Pa.x+'" y="'+100*Pa.y+'"/>'):Xc.push('<line x="'+100*Pa.x+'" y="'+100*Pa.y+'"/>');Xc.push("</path>");-Xc.push("<fillstroke/>");Xc.push("</foreground></shape>");v.style="shape=stencil("+Graph.compress(Xc.join(""))+");";v.value=m(e);v.style+=c(v.style,e,u,v,G);break;case "InfographicsBlock":var sf=e.ShapeData_1.Value,Be=e.ShapeData_2.Value-sf,Ce=e.ShapeData_3.Value-sf,fe=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;lb=e["ShapeData_"+Xb].Value;lb="=fillColor()"==lb?e.FillColor:lb;var pd=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+-fe+";strokeColor=none;fillColor="+P(pd)+";"+ea(pd,"fillOpacity");v.style+=c(v.style,e,u,v,G);var bb=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Ce/Be+";arcWidth="+fe/r*2+";strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity"));bb.style+=c(bb.style,e,u,bb,G);bb.vertex=!0;bb.geometry.relative=1;v.insert(bb);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var tf=Ce/Be/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+-tf+";arcWidth="+2*fe/r+";strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=c(v.style,e,u,v,G);bb=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-tf)+";arcWidth="+2*fe/r+";strokeColor=none;flipH=1;fillColor="+P(pd)+";"+ea(pd,"fillOpacity"));e.Rotation+=Math.PI;bb.style+=c(bb.style,e,u,bb,G);bb.vertex=!0;bb.geometry.relative=1;v.insert(bb);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+-P(pd)+";"+ea(pd,"fillOpacity"),v.style+=c(v.style,e,u,v,G),bb=new mxCell("",new mxGeometry(0,0,r*Ce/Be,p),"strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity")),bb.style+=c(bb.style,e,u,bb,G),bb.vertex=!0,bb.geometry.relative=1,v.insert(bb)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var ge=e.Text.m,De=!1,Ee=!1;for(l=0;l<ge.length;l++){var qd=ge[l];De||"mt"!=qd.n?Ee||"il"!=qd.n||(qd.v=17+(qd.v||0),Ee=!0):(qd.v=17+(qd.v||0),De=!0)}De||-ge.push({s:0,n:"mt",v:17});Ee||ge.push({s:0,n:"il",v:17})}v.value=m(e);v.style+=c(v.style,e,u,v,G);break;case "PersonRoleBlock":try{ja=Y(e,u);eb=p/2;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+eb+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Role,G);v.style+=c(v.style,-e,u,v,G);var Fc=new mxCell("",new mxGeometry(0,p/2,r,p/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Fc.value=m(e.Name);Fc.vertex=!0;v.insert(Fc);Fc.style+=a(e.Name,G);Fc.style+=c(Fc.style,e,u,Fc,G)}catch(hb){console.log(hb)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var uf=v.geometry,vf=new mxCell(m(e.Title),new mxGeometry(0,uf.height+4,uf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");-vf.vertex=!0;v.insert(vf);v.style+=a(e.Title,G)}catch(hb){console.log(hb)}He(v,e);la(v,e,D);e.Hidden&&(v.visible=!1);return v}function He(w,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&w.value){var u=w.geometry.width,e=w.geometry.height,O=u,r=e,p=0,aa=0;if(-90==D||-270==D){O=e;r=u;var ba=(e-u)/2;p=-ba/u;aa=ba/e}D+=mxUtils.toDegree(F.Rotation);var W=w.style.split(";").filter(function(ka){return 0>ka.indexOf("fillColor=")&&-0>ka.indexOf("strokeColor=")&&0>ka.indexOf("rotation=")}).join(";"),wa=new mxCell(w.value,new mxGeometry(p,aa,O,r),W+"fillColor=none;strokeColor=none;rotation="+D+";");w.value=null;wa.geometry.relative=!0;wa.vertex=!0;w.insert(wa)}}catch(ka){console.log(ka)}}function Ke(w,F,D,u,e){function O(Lb,$b){var Za="";try{for(var qb=0;qb<Lb.text.length;qb++){var Oc=Lb.text[qb];if(Oc[0]=="t_"+$b){for(var Gc in Oc[1]){var Hc=Oc[1][Gc];if(Hc)switch(Gc){case "font":Za+=y(Hc);break;case "bold":Za+="font-weight: bold;";-break;case "italic":Za+="font-style: italic;";break;case "underline":Za+="text-decoration: underline;";break;case "size":Za+="font-size:"+z(.75*Hc)+"px;";break;case "color":Za+="color:"+V(Hc).substring(0,7)+";";break;case "fill":Za+="background-color:"+V(Hc).substring(0,7)+";";break;case "align":Za+="text-align:"+Hc+";"}}break}}}catch(Td){}return Za}try{var r=function(Lb,$b,Za){Lb=Aa+Lb;ra[Lb]=$b;$b="";for(var qb=0;qb<W.length;qb++)$b+='<div style="'+na[qb]+'">'+(Za[W[qb]]||" ")+"</div>";qb=-mxUtils.getSizeForString($b);Za=g(Za.Image||Za["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Za=new mxCell($b,new mxGeometry(0,0,qb.width+Ba,qb.height+Oa),ua+(Ca?Za:""));Za.vertex=!0;e[Lb]=Za;u.addCell(Za,ba)},p=F.OrgChartBlockType,aa=F.Location,ba=new mxCell("",new mxGeometry(.75*aa.x,.75*aa.y,200,100),"group");ba.vertex=!0;u.addCell(ba);var W=F.FieldNames,wa=F.LayoutSettings,ka=F.BlockItemDefaultStyle||-{props:{}},pa=F.EdgeItemDefaultStyle,ra={},Aa=(w||Date.now())+"_";4==p&&(ka.props.LineWidth=0);var na=[],Ba=25,Oa=40,Ca=!0,ua=c("",ka.props,{},ba,!0);0==p?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Oa+=54):1==p||2==p?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=p&&(Ca=!1);for(w=0;w<W.length;w++)na.push(O(ka,W[w]));if(D.Items)for(var Ma=D.Items.n,Ja=0;Ja<Ma.length;Ja++){var Ka=Ma[Ja];-r(Ka.pk,Ka.ie[0]?Ka.ie[0].nf:null,Ka.f)}else{var l=F.ContractMap.derivative;if(null==l){var Ha=F.ContractMap.c.People;var cb=Ha.id;cb=cb.substr(0,cb.lastIndexOf("_"));for(w=0;w<W.length;w++)W[w]=Ha.f[W[w]]||W[w]}else for(Ja=0;Ja<l.length;Ja++)if("ForeignKeyGraph"==l[Ja].type)cb=l[Ja].c[0].id,cb=cb.substr(0,cb.lastIndexOf("_"));else if("MappedGraph"==l[Ja].type)for(w=0;w<W.length;w++)W[w]=l[Ja].nfs[W[w]]||W[w];var Ea;for(Ea in D){Ka=D[Ea].Collections;for(var Qa in Ka)if(Qa==cb)Ma=Ka[Qa].Items;else if(Ka[Qa].Properties.ForeignKeys&&-Ka[Qa].Properties.ForeignKeys[0]){var ma=Ka[Qa].Properties.ForeignKeys[0].SourceFields[0];var La=Ka[Qa].Properties.Schema.PrimaryKey[0]}if(Ma)break}F={};for(var ya in Ma){Ka=Ma[ya];var za=Ka[La],Qb=Ka[ma];za==Qb?(F[za]=za+Date.now(),za=F[za],Ka[La]=za,r(za,Qb,Ka)):r(za,F[Qb]||Qb,Ka)}}for(Ea in ra){var ha=ra[Ea];if(null!=ha){var xb=e[Aa+ha],Wa=e[Ea];if(null!=xb&&null!=Wa){var rc=new mxCell("",new mxGeometry(0,0,100,100),"");rc.geometry.relative=!0;rc.edge=!0;null!=pa&&null!=pa.props&&Xa(rc,pa.props,-u,null,null,!0);u.addCell(rc,ba,null,xb,Wa)}}}var wc=.75*wa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(u,0,wc,.75*wa.NodeSpacing.NeighborSeparation)).execute(ba);for(Ja=wa=r=0;ba.children&&Ja<ba.children.length;Ja++){var Gb=ba.children[Ja].geometry;r=Math.max(r,Gb.x+Gb.width);wa=Math.max(wa,Gb.y+Gb.height)}var Rb=ba.geometry;Rb.y-=wc;Rb.width=r;Rb.height=wa}catch(Lb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Lb)}}var xc=0,yc=0,he="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",-G=!1,mb="",wf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],xf=["fpDoor"],Fe={None:"none;",Arrow:"block;xyzFill=1;","Hollow Arrow":"block;xyzFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;xyzSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;xyzSize=10;","CFN ERD Many Arrow":"ERmany;xyzSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;xyzSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;xyzSize=10;","CFN ERD One Arrow":"ERone;xyzSize=16;",+(function(){function r(f){if(f&&null!=LucidImporter.imgSrcRepl){var n=LucidImporter.imgSrcRepl.attMap;if(n[f])f=n[f];else{n=LucidImporter.imgSrcRepl.imgRepl;for(var l=0;l<n.length;l++){var e=n[l];f=f.replace(e.searchVal,e.replVal)}LucidImporter.hasExtImgs=!0}}return f}function w(f){ab="";try{if(f){var n=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(n=LucidImporter.advImpConfig.fontMapping[f]);if(n){for(var l in n)ab+=l+"="+n[l]+";";return n.fontFamily?"font-family: "+n.fontFamily:+""}if("Liberation Sans"!=f)return ab="fontFamily="+f+";","font-family: "+f+";"}}catch(e){}return""}function x(f){return Math.round(10*f)/10}function z(f,n,l){function e(R,sa){var da="",ea=R.t,Db=R.l||{v:ea&&"ul"==ea.v?"auto":"decimal"};if(null==ea||0!=ua&&ua==ea.v&&pa==Db.v)null==ea&&(ua&&(da+=y(!0),ua=!1),da+='<div style="',ia.push("div"));else{ua&&(da+=y(!0));ua=ea.v;pa=Db.v;"ul"==ea.v?(da+="<ul ",ia.push("ul")):(da+="<ol ",ia.push("ol"));da+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';+if("hl"==ea.v)da+="upper-roman";else switch(Db.v){case "auto":da+="disc";break;case "inv":da+="circle";break;case "disc":da+="circle";break;case "trib":da+="square";break;case "square":da+="square";break;case "dash":da+="square";break;case "heart":da+="disc";break;default:da+="decimal"}da+='">'}if(null!=ea){da+='<li style="text-align:'+(R.a?R.a.v:l.TextAlign||"center")+";";if(null!=sa){if(sa.c)var M=sa.c.v;if(sa.s)var lb=sa.s.v}try{var Ea=I[Q],fc=W[fa];sa=Q;if(Ea&&fc&&Ea.s<fc.e)for(var lc=Ea.s;null!=+Ea&&Ea.s==lc;)"s"==Ea.n?lb=Ea.v:"c"==Ea.n&&(M=Ea.v),Ea=I[++sa]}catch(tb){console.log(tb)}M=gc(M);null!=M&&(M=M.substring(0,7),da+="color:"+M+";");lb&&(da+="font-size:"+x(.75*lb)+"px;");da+='">';ia.push("li");da+='<span style="';ia.push("span")}ua||(lb=M=R.a?R.a.v:l.TextAlign||"center","left"==M?lb="flex-start":"right"==M&&(lb="flex-end"),da+="display: flex; justify-content: "+lb+"; text-align: "+M+"; align-items: baseline; font-size: 0; line-height: 1.25;");R.il&&(da+="margin-left: "+Math.max(0,x(.75*+R.il.v-(ua?28:0)))+"px;");R.ir&&(da+="margin-right: "+x(.75*R.ir.v)+"px;");R.mt&&(da+="margin-top: "+x(.75*R.mt.v)+"px;");R.mb&&(da+="margin-bottom: "+x(.75*R.mb.v)+"px;");da+='margin-top: -2px;">';ua||(da+="<span>",ia.push("span"));return da}function a(R){if(mxUtils.isEmptyObject(R))return"";var sa="",da=0;if(R.lk){var ea=R.lk;null!=ea.v&&0<ea.v.length&&(sa+='<a href="'+E(ea.v[0])+'">',ha.push("a"),da++)}sa+='<span style="';ha.push("span");da++;sa+="font-size:"+(R.s&&R.s.v?x(.75*R.s.v):"13")+"px;";+R.c&&(ea=gc(R.c.v),null!=ea&&(ea=ea.substring(0,7),sa+="color:"+ea+";"));if(R.b&&R.b.v||R.fc&&R.fc.v&&0==R.fc.v.indexOf("Bold"))sa+="font-weight: bold;";R.i&&R.i.v&&(sa+="font-style: italic;");R.ac&&R.ac.v&&(sa+="text-transform: uppercase;");ea=null;R.f?ea=R.f.v:l.Font&&(ea=l.Font);sa+=w(ea);ea=[];R.u&&R.u.v&&ea.push("underline");R.k&&R.k.v&&ea.push("line-through");0<ea.length&&(sa+="text-decoration: "+ea.join(" ")+";");sa+='">';wa.push(da);return sa}function y(R){var sa="";do{var da=ia.pop();if(!R&&+ua&&("ul"==da||"ol"==da)){ia.push(da);break}sa+="</"+da+">"}while(0<ia.length);return sa}function d(R,sa,da,ea){R=R?R.substring(sa,da):"";ua&&(R=R.trim());0==ha.length&&0<R.length&&(R=a({dummy:1})+R);R=R.replace(/</g,"<").replace(/>/g,">");do for(sa=wa.pop(),da=0;da<sa;da++){var Db=ha.pop();R+="</"+Db+">"}while(ea&&0<ha.length);return R}var c={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},H={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,f:!0,ac:!0};n.sort(function(R,sa){return R.s-sa.s});var I=n.filter(function(R){return H[R.n]});+I[0]&&0!=I[0].s&&I.unshift({s:0,n:"dummy",v:"",e:I[0].s});n=n.filter(function(R){return c[R.n]});for(var C=[0],ba=0;0<(ba=f.indexOf("\n",ba));)ba++,C.push(ba);for(var Q=ba=0;Q<n.length;Q++){if(n[Q].s>C[ba])n.splice(Q,0,{s:C[ba],n:"a",v:l.TextAlign||"center"});else{for(var T=0;Q+T<n.length&&n[Q+T].s==C[ba];)T++;1<T&&(Q+=T-1)}ba++}null!=C[ba]&&n.push({s:C[ba],n:"a",v:l.TextAlign||"center"});C="";var W=I.slice();W.sort(function(R,sa){return R.e-sa.e});var fa=Q=0;ba=0;T={};for(var S={},ha=[],wa=[],ia=+[],Z=!1,ua=!1,pa,ra=0,b=0,na=f.length,Na=!0;ba<n.length||Na;){Na=!1;if(ba<n.length){var ka=n[ba],za=n[ba].s;Z&&(S={},C+=d(f,ra,na,!0),b=ra=na,C+=y());for(;null!=ka&&ka.s==za;)S[ka.n]=ka,ka=n[++ba];na=null!=ka?ka.s:f.length;C+=e(S,T);Z&&(C+=a(T));Z=!0}for(;Q>=fa&&(Q<I.length||fa<W.length);)if(ka=I[Q],za=W[fa],ka&&za&&ka.s<za.e){if(ka.s>=na)break;ra=ka.s;0<ra-b&&(C+=a(T)+d(f,b,ra),b=ra);for(;null!=ka&&ka.s==ra;)T[ka.n]=ka,ka=I[++Q];C+=a(T)}else if(za){if(za.e>na)break;b=za.e;do delete T[za.n],za=W[++fa];+while(null!=za&&za.e==b);C+=d(f,ra,b);ra=b;0!=wa.length||null!=ka&&ka.s==b||(I.splice(Q,0,{s:b,n:"dummy",v:""}),W.splice(fa,0,{e:ka?ka.s:na,n:"dummy",v:""}))}else break}C+=d(null,null,null,!0);Z&&(b!=na&&(C+=a({dummy:1})+d(f,b,na)),C+=y(!0));return C}function k(f,n){q=!1;var l=null!=f.Text&&f.Text.t?f.Text:null!=f.Value&&f.Value.t?f.Value:null!=f.Lane_0&&f.Lane_0.t?f.Lane_0:null;null==l&&null!=f.State?f.State.t&&(l=f.State):null==l&&null!=f.Note?f.Note.t&&(l=f.Note):null==l&&null!=f.Title?f.Title.t&&+(l=f.Title):f.t&&(l=f);null==l&&null!=f.TextAreas?null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&f.TextAreas.Text.Value.t&&(l=f.TextAreas.Text.Value):null==l&&null!=f.t0&&f.t0.t&&(l=f.t0);if(null!=l){if(null!=l.t){var e=l.t;e=e.replace(/\u2028/g,"\n");l=l.m;try{/ /.test(e)&&(LucidImporter.hasUnknownShapes=!0);for(var a=0;a<l.length;a++)if(0<l[a].s||null!=l[a].e&&l[a].e<e.length||"t"==l[a].n||"ac"==l[a].n||"lk"==l[a].n){q=!0;break}if(q=q||n)return z(e,l,f)}catch(y){console.log(y)}e=e.replace(/</g,+"<");return e=e.replace(/>/g,">")}if(null!=l.Value&&null!=l.Value.t)return l.Value.t=l.Value.t.replace(/</g,"<"),l.Value.t=l.Value.t.replace(/>/g,">"),l.Value.t}return""}function t(f){return null!=f.Action?f.Action:f}function u(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;if(null!=f.Title){if(null!=f.Title.m)return f.Title.m}else if(null!=+f.State){if(null!=f.State.m)return f.State.m}else if(null!=f.Note&&null!=f.Note.m)return f.Note.m}return null}function p(f,n){f="whiteSpace=wrap;"+(n?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+ab:A(f)+N(f)+L(f)+X(f)+xa(f)+Ka(f)+Va(f)+Fa(f)+Ca(f))+Ga(f)+qa(f)+Nb(mxConstants.STYLE_ALIGN,f.TextAlign,"center");ab="";return f}function h(f,n,l,e,a,y){y=null==y?!1:y;var d="",c=!1,H=!1;if(null!=f)if(y){y=f.split(";");f="";for(var I=0;I<y.length;I++)"fillColor=none"==y[I]?H=!0:"strokeColor=none"==+y[I]?c=!0:""!=y[I]&&(f+=y[I]+";")}else""!=f&&";"!=f.charAt(f.length-1)&&(d=";");d+=(Pc(f,"whiteSpace")?"":"whiteSpace=wrap;")+(a?(Pc(f,"overflow")?"":"overflow=block;blockSpacing=1;")+(Pc(f,"html")?"":"html=1;")+"fontSize=13;"+ab:D(mxConstants.STYLE_FONTSIZE,f,n,l,e)+D(mxConstants.STYLE_FONTFAMILY,f,n,l,e)+D(mxConstants.STYLE_FONTCOLOR,f,n,l,e)+D(mxConstants.STYLE_FONTSTYLE,f,n,l,e)+D(mxConstants.STYLE_ALIGN,f,n,l,e)+D(mxConstants.STYLE_SPACING_LEFT,f,n,l,e)+D(mxConstants.STYLE_SPACING_RIGHT,f,n,+l,e)+D(mxConstants.STYLE_SPACING_TOP,f,n,l,e)+D(mxConstants.STYLE_SPACING_BOTTOM,f,n,l,e))+D(mxConstants.STYLE_ALIGN+"Global",f,n,l,e)+D(mxConstants.STYLE_SPACING,f,n,l,e)+D(mxConstants.STYLE_VERTICAL_ALIGN,f,n,l,e)+D(mxConstants.STYLE_STROKECOLOR,f,n,l,e)+D(mxConstants.STYLE_OPACITY,f,n,l,e)+D(mxConstants.STYLE_ROUNDED,f,n,l,e)+D(mxConstants.STYLE_ROTATION,f,n,l,e)+D(mxConstants.STYLE_FLIPH,f,n,l,e)+D(mxConstants.STYLE_FLIPV,f,n,l,e)+D(mxConstants.STYLE_SHADOW,f,n,l,e)+D(mxConstants.STYLE_FILLCOLOR,+f,n,l,e)+D(mxConstants.STYLE_DASHED,f,n,l,e)+D(mxConstants.STYLE_STROKEWIDTH,f,n,l,e)+D(mxConstants.STYLE_IMAGE,f,n,l,e)+D(mxConstants.STYLE_POINTER_EVENTS,f,n,l,e);H&&!Pc(d,mxConstants.STYLE_FILLCOLOR)&&(d+="fillColor=none;");c&&!Pc(d,mxConstants.STYLE_STROKECOLOR)&&(d+="strokeColor=none;");ab="";return d}function D(f,n,l,e,a){if(!Pc(n,f))switch(f){case mxConstants.STYLE_FONTSIZE:return A(l);case mxConstants.STYLE_FONTFAMILY:return N(l);case mxConstants.STYLE_FONTCOLOR:return L(l);case mxConstants.STYLE_FONTSTYLE:return X(l);+case mxConstants.STYLE_ALIGN:return xa(l);case mxConstants.STYLE_ALIGN+"Global":return Nb(mxConstants.STYLE_ALIGN,l.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return Ka(l);case mxConstants.STYLE_SPACING_RIGHT:return Va(l);case mxConstants.STYLE_SPACING_TOP:return Fa(l);case mxConstants.STYLE_SPACING_BOTTOM:return Ca(l);case mxConstants.STYLE_SPACING:return Ga(l);case mxConstants.STYLE_VERTICAL_ALIGN:return qa(l);case mxConstants.STYLE_STROKECOLOR:return U(l,e);case mxConstants.STYLE_OPACITY:return Xa(l,+e,a);case mxConstants.STYLE_ROUNDED:return f=!a.edge&&!a.style.includes("rounded")&&null!=l.Rounding&&0<l.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+x(.75*l.Rounding)+";":"",f;case mxConstants.STYLE_ROTATION:return mc(l,e,a);case mxConstants.STYLE_FLIPH:return f=l.FlipX?"flipH=1;":"",f;case mxConstants.STYLE_FLIPV:return f=l.FlipY?"flipV=1;":"",f;case mxConstants.STYLE_SHADOW:return Eb(l);case mxConstants.STYLE_FILLCOLOR:return ta(l,e);case mxConstants.STYLE_DASHED:return be(l);case mxConstants.STYLE_STROKEWIDTH:return Ec(l);+case mxConstants.STYLE_IMAGE:return Ae(l,e);case mxConstants.STYLE_POINTER_EVENTS:return l.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function A(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("s"==l.n&&l.v)return"fontSize="+x(.75*l.v)+";";n++}return"fontSize=13;"}function N(f){var n=u(f);if(null!=n)for(var l=0;l<n.length;l++)if("f"==n[l].n&&n[l].v){var e=n[l].v;break}!e&&f.Font&&(e=f.Font);w(e);return ab}function E(f){return"ext"==f.tp?f.url:+"ml"==f.tp?"mailto:"+f.eml:"pg"==f.tp?"data:page/id,"+(LucidImporter.pageIdsMap[f.id]||0):"c"==f.tp?"data:confluence/id,"+f.ccid:null}function L(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("c"==l.n&&null!=l.v)return f=gc(l.v).substring(0,7),"#000000"==f&&(f="default"),mxConstants.STYLE_FONTCOLOR+"="+f+";";n++}return""}function X(f){return Oa(u(f))}function Oa(f){if(null!=f){var n=0,l=!1;if(null!=f)for(var e=0;!l&&e<f.length;){var a=f[e];"b"==a.n?null!=a.v&&a.v&&(l=!0,n+=1):"fc"==a.n&&+"Bold"==a.v&&(l=!0,n+=1);e++}l=!1;if(null!=f)for(e=0;!l&&e<f.length;)a=f[e],"i"==a.n&&null!=a.v&&a.v&&(l=!0,n+=2),e++;l=!1;if(null!=f)for(e=0;!l&&e<f.length;)a=f[e],"u"==a.n&&null!=a.v&&a.v&&(l=!0,n+=4),e++;if(0<n)return"fontStyle="+n+";"}return""}function xa(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("a"==l.n&&null!=l.v)return"align="+l.v+";";n++}return""}function Ka(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if(null!=l.v&&"il"==l.n)return"spacingLeft="+x(.75*l.v)++";";n++}return""}function Va(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("ir"==l.n&&null!=l.v)return"spacingRight="+x(.75*l.v)+";";n++}return""}function Fa(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("mt"==l.n&&null!=l.v)return"spacingTop="+x(.75*l.v)+";";n++}return""}function Ca(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("mb"==l.n&&null!=l.v)return"spacingBottom="+x(.75*l.v)+";";n++}return""}function Ga(f){return"number"===typeof f.InsetMargin?"spacing="++Math.max(0,x(.75*f.InsetMargin))+";":""}function qa(f){return null!=f.Text_VAlign&&"string"===typeof f.Text_VAlign?"verticalAlign="+f.Text_VAlign+";":null!=f.Title_VAlign&&"string"===typeof f.Title_VAlign?"verticalAlign="+f.Title_VAlign+";":Nb(mxConstants.STYLE_VERTICAL_ALIGN,f.TextVAlign,"middle")}function U(f,n){return 0==f.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Nb(mxConstants.STYLE_STROKECOLOR,Pa(f.LineColor),"#000000")}function Gd(f){return null!=f?mxConstants.STYLE_FILLCOLOR+"="+Pa(f)++";":""}function Hd(f){return null!=f?"swimlaneFillColor="+Pa(f)+";":""}function Xa(f,n,l){n="";if("string"===typeof f.LineColor&&(f.LineColor=gc(f.LineColor),7<f.LineColor.length)){var e="0x"+f.LineColor.substring(f.LineColor.length-2,f.LineColor.length);l.style.includes("strokeOpacity")||(n+="strokeOpacity="+Math.round(parseInt(e)/2.55)+";")}"string"===typeof f.FillColor&&(f.FillColor=gc(f.FillColor),7<f.FillColor.length&&(f="0x"+f.FillColor.substring(f.FillColor.length-2,f.FillColor.length),l.style.includes("fillOpacity")||+(n+="fillOpacity="+Math.round(parseInt(f)/2.55)+";")));return n}function mc(f,n,l){var e="";if(null!=f.Rotation){f=mxUtils.toDegree(parseFloat(f.Rotation));var a=!0;0!=f&&n.Class&&("UMLSwimLaneBlockV2"==n.Class||(0<=n.Class.indexOf("Rotated")||-90==f||270==f)&&(0<=n.Class.indexOf("Pool")||0<=n.Class.indexOf("SwimLane")))?(f+=90,l.geometry.rotate90(),l.geometry.isRotated=!0,a=!1):0<=mxUtils.indexOf(vf,n.Class)?(f-=90,l.geometry.rotate90()):0<=mxUtils.indexOf(wf,n.Class)&&(f+=180);0!=f&&(e+="rotation="++f+";");a||(e+="horizontal=0;")}return e}function Eb(f){return null!=f.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function gc(f){if(f){if("object"===typeof f)try{f=f.cs[0].c}catch(n){console.log(n),f="#ffffff"}"rgb"==f.substring(0,3)?f="#"+f.match(/\d+/g).map(function(n){n=parseInt(n).toString(16);return(1==n.length?"0":"")+n}).join(""):"#"!=f.charAt(0)&&(f="#"+f)}return f}function Pa(f){return(f=gc(f))?f.substring(0,7):null}function hc(f,n){return(f=gc(f))&&7<f.length?n+"="+Math.round(parseInt("0x"++f.substr(7))/2.55)+";":""}function ta(f,n){if(null!=f.FillColor)if("object"===typeof f.FillColor){if(null!=f.FillColor.cs&&1<f.FillColor.cs.length)return Nb(mxConstants.STYLE_FILLCOLOR,Pa(f.FillColor.cs[0].c))+Nb(mxConstants.STYLE_GRADIENTCOLOR,Pa(f.FillColor.cs[1].c))}else return"string"===typeof f.FillColor?Nb(mxConstants.STYLE_FILLCOLOR,Pa(f.FillColor),"#FFFFFF"):Nb(mxConstants.STYLE_FILLCOLOR,"none");return""}function be(f){return"dotted"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==+f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":"dashed32"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":+null!=f.StrokeStyle&&"dashed"==f.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function Ec(f){return null!=f.LineWidth?Nb(mxConstants.STYLE_STROKEWIDTH,x(.75*parseFloat(f.LineWidth)),"1"):""}function Ae(f,n,l){var e="";f.FillColor&&f.FillColor.url?(l=f.FillColor.url,"fill"==f.FillColor.pos&&(e="imageAspect=0;")):"ImageSearchBlock2"==n.Class?l=f.URL:"UserImage2Block"==n.Class&&null!=f.ImageFillProps&&null!=f.ImageFillProps.url&&(l=f.ImageFillProps.url);return null!=l?"image="+r(l)+";"+e:""}function Be(f,+n,l){null!=n.Link&&0<n.Link.length&&l.setAttributeForCell(f,"link",E(n.Link[0]));null!=n.NoteHint&&n.NoteHint.t&&l.setAttributeForCell(f,"Notes",n.NoteHint.t);var e=[],a=l.convertValueToString(f),y=!1;if(null!=a){for(var d=0;match=xf.exec(a);){var c=match[0];y=!0;if(2<c.length){var H=c.substring(2,c.length-2);"documentName"==H?H="filename":"pageName"==H?H="page":"totalPages"==H?H="pagecount":"page"==H?H="pagenumber":"date:"==H.substring(0,5)?H="date{"+H.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,+"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==H.substring(0,16)?H=H.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==H.substring(0,9)&&(H="date{"+H.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");H="%"+H+"%";e.push(a.substring(d,match.index)+(null!=H?H:c));d=match.index+c.length}}y&&(e.push(a.substring(d)),l.setAttributeForCell(f,"label",e.join("")),l.setAttributeForCell(f,"placeholders","1"))}for(var I in n)if(n.hasOwnProperty(I)&&+I.toString().startsWith("ShapeData_"))try{var C=n[I],ba=mxUtils.trim(C.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Ce(f,ba,C.Value,l)}catch(Q){window.console&&console.log("Ignored "+I+":",Q)}}function Ce(f,n,l,e){for(var a=n,y=0;null!=e.getAttributeForCell(f,a);)y++,a=n+"_"+y;e.setAttributeForCell(f,a,null!=l?l:"")}function Id(f,n,l,e,a,y){var d=t(n);if(null!=d){var c=Jd[d.Class];null!=c?(f.style+=c,";"!=f.style.charAt(f.style.length-1)&&(f.style+=";")):f.edge||(console.log("No mapping found for: "++d.Class),LucidImporter.hasUnknownShapes=!0);c=null!=d.Properties?d.Properties:d;if(null!=c&&(f.value=y?"":k(c),f.style+=h(f.style,c,d,f,q,!0),f.style.includes("strokeColor")||(f.style+=U(c,d)),Be(f,c,l),c.Title&&c.Title.t&&c.Text&&c.Text.t&&"ExtShape"!=d.Class.substr(0,8)&&(l=f.geometry,l=new mxCell(k(c.Title),new mxGeometry(0,l.height,l.width,10),"strokeColor=none;fillColor=none;"),l.vertex=!0,f.insert(l),l.style+=p(c.Title,q)),f.edge)){f.style=null!=c.Rounding&&"diagonal"!=c.Shape?f.style+("rounded=1;arcSize="++c.Rounding+";"):f.style+"rounded=0;";if(l="curve"==c.Shape)f.style+="curved=1;";else if("diagonal"!=c.Shape)if(null!=c.ElbowPoints&&0<c.ElbowPoints.length)for(f.geometry.points=[],d=0;d<c.ElbowPoints.length;d++)f.geometry.points.push(new mxPoint(Math.round(.75*c.ElbowPoints[d].x+nc),Math.round(.75*c.ElbowPoints[d].y+oc)));else if("elbow"==c.Shape||null!=c.Endpoint1.Block&&null!=c.Endpoint2.Block)f.style+="edgeStyle=orthogonalEdgeStyle;";if(c.LineJumps||LucidImporter.globalProps.LineJumps)f.style+=+"jumpStyle=arc;";null!=c.Endpoint1.Style&&(y=De[c.Endpoint1.Style],null!=y?(y=y.replace(/xyz/g,"start"),f.style+="startArrow="+y+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+c.Endpoint1.Style)));null!=c.Endpoint2.Style&&(y=De[c.Endpoint2.Style],null!=y?(y=y.replace(/xyz/g,"end"),f.style+="endArrow="+y+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+c.Endpoint2.Style)));y=null!=c.ElbowControlPoints&&0<+c.ElbowControlPoints.length?c.ElbowControlPoints:c.Joints;if(l&&null!=c.BezierJoints&&0<c.BezierJoints.length){y=[];l=c.BezierJoints[c.BezierJoints.length-1];l.p.x=c.Endpoint2.x;l.p.y=c.Endpoint2.y;for(d=0;d<c.BezierJoints.length;d++)l=c.BezierJoints[d],y.push({x:l.p.x+l.nt.x*l.lcps*.75,y:l.p.y+l.nt.y*l.lcps*.75}),y.push({x:l.p.x+l.nt.x*l.rcps*.75,y:l.p.y+l.nt.y*l.rcps*.75});y=y.slice(1,y.length-1)}else l&&(y=[],y.push({x:c.Endpoint1.x+(.1>c.Endpoint1.LinkX?-250:.9<c.Endpoint1.LinkX?250:0),y:c.Endpoint1.y++(.1>c.Endpoint1.LinkY?-250:.9<c.Endpoint1.LinkY?250:0)}),y.push({x:c.Endpoint2.x+(.1>c.Endpoint2.LinkX?-250:.9<c.Endpoint2.LinkX?250:0),y:c.Endpoint2.y+(.1>c.Endpoint2.LinkY?-250:.9<c.Endpoint2.LinkY?250:0)}));if(null!=y)for(f.geometry.points=[],d=0;d<y.length;d++)l=y[d].p?y[d].p:y[d],f.geometry.points.push(new mxPoint(Math.round(.75*l.x+nc),Math.round(.75*l.y+oc)));l=!1;if((null==f.geometry.points||0==f.geometry.points.length)&&null!=c.Endpoint1.Block&&c.Endpoint1.Block==c.Endpoint2.Block&&null!=+e&&null!=a){l=new mxPoint(Math.round(e.geometry.x+e.geometry.width*c.Endpoint1.LinkX),Math.round(e.geometry.y+e.geometry.height*c.Endpoint1.LinkY));y=new mxPoint(Math.round(a.geometry.x+a.geometry.width*c.Endpoint2.LinkX),Math.round(a.geometry.y+a.geometry.height*c.Endpoint2.LinkY));nc=l.x==y.x?Math.abs(l.x-e.geometry.x)<e.geometry.width/2?-20:20:0;oc=l.y==y.y?Math.abs(l.y-e.geometry.y)<e.geometry.height/2?-20:20:0;var H=new mxPoint(l.x+nc,l.y+oc),I=new mxPoint(y.x+nc,y.y+oc);H.generated=!0;I.generated=+!0;f.geometry.points=[H,I];l=l.x==y.x}null!=e&&e.geometry.isRotated||(H=Ee(f,c.Endpoint1,!0,l,null,e));null!=e&&null!=H&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(H),LucidImporter.stylePointsSet.add(e));null!=a&&a.geometry.isRotated||(I=Ee(f,c.Endpoint2,!1,l,null,a));null!=a&&null!=I&&(null==a.stylePoints&&(a.stylePoints=[]),a.stylePoints.push(I),LucidImporter.stylePointsSet.add(a))}}null!=n.id&&(f.style+=";lucidId="+n.id+";");f.lucidchartObject=n}function Fe(f,n){var l=t(f).Properties,+e=l.BoundingBox;null==f.Class||"AWS"!==f.Class.substring(0,3)&&"Amazon"!==f.Class.substring(0,6)||f.Class.includes("AWS19")||(e.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*e.x+nc),Math.round(.75*e.y+oc),Math.round(.75*e.w),Math.round(.75*e.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;Id(v,f,n);v.zOrder=l.ZOrder;Ge(v,l);l.Hidden&&(v.visible=!1);return v}function yf(f,n,l,e){var a=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");a.geometry.relative=+!0;a.edge=!0;Id(a,f,n,l,e,!0);var y=t(f).Properties,d=null!=y?y.TextAreas:f.TextAreas;if(null!=d){for(var c=0;void 0!==d["t"+c];){var H=d["t"+c];null!=H&&(a=Kd(H,a,f,l,e,n));c++}for(c=0;void 0!==d["m"+c]||1>c;)H=d["m"+c],null!=H&&(a=Kd(H,a,f,l,e,n)),c++;null!=d.Text&&(a=Kd(d.Text,a,f,l,e,n));d=null!=y?y.TextAreas:f.TextAreas;null!=d.Message&&(a=Kd(d.Message,a,f,l,e,n))}f.Hidden&&(a.visible=!1);return a}function Kd(f,n,l,e,a,y){var d=2*(parseFloat(f.Location)-.5);isNaN(d)&&null!=f.Text&&null!=f.Text.Location&&+(d=2*(parseFloat(f.Text.Location)-.5));y=k(f);var c=mxCell;d=new mxGeometry(isNaN(d)?0:d,0,0,0);var H=ce;var I=l;if(q)I=ab;else{var C="13",ba="";if(null!=f&&null!=f.Value&&null!=f.Value.m){ba=Oa(f.Value.m);for(var Q=0;Q<f.Value.m.length;Q++)if("s"==f.Value.m[Q].n&&f.Value.m[Q].v)C=x(.75*parseFloat(f.Value.m[Q].v));else if("c"==f.Value.m[Q].n){var T=gc(f.Value.m[Q].v);null!=T&&(T=T.substring(0,7));"#000000"==T&&(T="default");ba+="fontColor="+T+";"}ba+=N(I);ab=""}I=ba+";fontSize="+C+";"}c=new c(y,d,+H+I);c.geometry.relative=!0;c.vertex=!0;if(f.Side)try{l.Action&&l.Action.Properties&&(l=l.Action.Properties);if(null!=e&&null!=a){var W=e.geometry,fa=a.geometry;var S=Math.abs(W.x+W.width*l.Endpoint1.LinkX-(fa.x+fa.width*l.Endpoint2.LinkX));var ha=Math.abs(W.y+W.height*l.Endpoint1.LinkY-(fa.y+fa.height*l.Endpoint2.LinkY))}else S=Math.abs(l.Endpoint1.x-l.Endpoint2.x),ha=Math.abs(l.Endpoint1.y-l.Endpoint2.y);var wa=mxUtils.getSizeForString(y.replace(/\n/g,"<br>"));c.geometry.offset=0==S||S<ha?new mxPoint(Math.sign(l.Endpoint1.y-+l.Endpoint2.y)*f.Side*(wa.width/2+5+S),0):new mxPoint(0,Math.sign(l.Endpoint2.x-l.Endpoint1.x)*f.Side*(wa.height/2+5+ha))}catch(ia){console.log(ia)}c.lucidchartObject=f;n.insert(c);return n}function Nb(f,n,l,e){null!=n&&null!=e&&(n=e(n));return null!=n&&n!=l?f+"="+n+";":""}function Ee(f,n,l,e,a,y){if(null!=n&&null!=n.LinkX&&null!=n.LinkY&&(n.LinkX=Math.round(1E3*n.LinkX)/1E3,n.LinkY=Math.round(1E3*n.LinkY)/1E3,null!=y&&y.style&&-1<y.style.indexOf("flipH=1")&&(n.LinkX=1-n.LinkX),null!=y&&y.style&&+-1<y.style.indexOf("flipV=1")&&(n.LinkY=1-n.LinkY),f.style+=(e?"":(l?"exitX":"entryX")+"="+n.LinkX+";")+(a?"":(l?"exitY":"entryY")+"="+n.LinkY+";")+(l?"exitPerimeter":"entryPerimeter")+"=0;",n.Inside))return"["+n.LinkX+","+n.LinkY+",0]"}function He(f,n,l,e,a){try{var y=function(S,ha){if(null!=S)if(Array.isArray(S))for(var wa=0;wa<S.length;wa++)y(S[wa].p?S[wa].p:S[wa],ha);else ha=ha?.75:1,c=Math.min(c,S.x*ha),H=Math.min(H,S.y*ha),I=Math.max(I,(S.x+(S.width?S.width:0))*ha),C=Math.max(C,(S.y+(S.height?+S.height:0))*ha)};null!=f.Action&&null!=f.Action.Properties&&(f=f.Action.Properties);var d=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");d.vertex=!0;d.zOrder=f.ZOrder;var c=Infinity,H=Infinity,I=-Infinity,C=-Infinity,ba=f.Members;a=[];for(var Q in ba){var T=n[Q];null!=T?a.push(T):null!=e[Q]&&(a.push(e[Q]),l[Q]=d)}a.sort(function(S,ha){S=S.zOrder||S.ZOrder;ha=ha.zOrder||ha.ZOrder;return null!=S&&null!=ha?S>ha?1:S<ha?-1:0:0});for(l=n=0;l<a.length;l++)if(T=a[l],T.vertex)y(T.geometry),+T.parent=d,d.insert(T,n++);else{var W=null!=T.Action&&T.Action.Properties?T.Action.Properties:T;y(W.Endpoint1,!0);y(W.Endpoint2,!0);y(W.ElbowPoints,!0);y(W.ElbowControlPoints,!0);y(W.BezierJoints,!0);y(W.Joints,!0)}d.geometry.x=c;d.geometry.y=H;d.geometry.width=I-c;d.geometry.height=C-H;if(null!=d.children)for(l=0;l<d.children.length;l++){var fa=d.children[l].geometry;fa.x-=c;fa.y-=H}f.IsState?(d.lucidLayerInfo={name:f.Name,visible:!f.Hidden,locked:f.Restrictions.b&&f.Restrictions.p&&f.Restrictions.c},+d.style+="container=1;collapsible=0;recursiveResize=0;"):f.Hidden&&(d.visible=!1);d.lucidchartObject=f;return d}catch(S){console.log(S)}}function zf(f,n,l){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;f.getModel().beginUpdate();try{var e=function(ia,Z){function ua(za,R,sa){null==za||za.generated||(za.x-=R,za.y-=sa)}var pa=null!=Z.Endpoint1.Block?y[Z.Endpoint1.Block]:null,ra=null!=Z.Endpoint2.Block?y[Z.Endpoint2.Block]:null,b=yf(ia,f,pa,ra);if(Z.Endpoint1&&Z.Endpoint1.Line||Z.Endpoint2&&+Z.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==pa&&null!=Z.Endpoint1&&b.geometry.setTerminalPoint(new mxPoint(Math.round(.75*Z.Endpoint1.x),Math.round(.75*Z.Endpoint1.y)),!0);null==ra&&null!=Z.Endpoint2&&b.geometry.setTerminalPoint(new mxPoint(Math.round(.75*Z.Endpoint2.x),Math.round(.75*Z.Endpoint2.y)),!1);ia=d[ia.id];if(null!=ia){for(var na=b.geometry,Na=Z=0,ka=ia;null!=ka&&null!=ka.geometry;)Z+=ka.geometry.x,Na+=ka.geometry.y,ka=ka.parent;ua(na.sourcePoint,+Z,Na);ua(na.targetPoint,Z,Na);ua(na.offset,Z,Na);na=na.points;if(null!=na)for(ka=0;ka<na.length;ka++)ua(na[ka],Z,Na)}a.push(f.addCell(b,ia,null,pa,ra))},a=[],y={},d={},c={},H=[];null!=n.Lines&&(c=n.Lines);if(null!=n.Blocks){Object.assign(c,n.Blocks);for(var I in n.Blocks){var C=n.Blocks[I];C.id=I;var ba=!1;null!=Jd[C.Class]&&"mxCompositeShape"==Jd[C.Class]&&(y[C.id]=Ie(C,a,f),H.push(C),ba=!0);ba||(y[C.id]=Fe(C,f),H.push(C))}if(null!=n.Generators)for(I in n.Generators)"OrgChart2018"==n.Generators[I].ClassName?+(LucidImporter.hasUnknownShapes=!0,Je(I,n.Generators[I],n.Data,f,y)):LucidImporter.hasUnknownShapes=!0}else{for(var Q=0;Q<n.Objects.length;Q++)C=n.Objects[Q],c[C.id]=C,null!=C.Action&&"mxCompositeShape"==Jd[C.Action.Class]?y[C.id]=Ie(C,a,f):C.IsBlock&&null!=C.Action&&null!=C.Action.Properties?y[C.id]=Fe(C,f):C.IsGenerator&&C.GeneratorData&&C.GeneratorData.p&&("OrgChart2018"==C.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Je(C.GeneratorData.id,C.GeneratorData.p,C.GeneratorData.gs,f,+y)):LucidImporter.hasUnknownShapes=!0),H.push(C);for(Q=0;Q<n.Objects.length;Q++)if(C=n.Objects[Q],C.IsGroup){var T=He(C,y,d,c,f);T&&(y[C.id]=T,H.push(C))}}if(null!=n.Groups)try{for(I in n.Groups)if(C=n.Groups[I],C.id=I,T=He(C,y,d,c,f))y[C.id]=T,H.push(C)}catch(ia){console.log(ia)}if(null!=n.Lines)for(I in n.Lines)C=n.Lines[I],C.id=I,H.push(C);H.sort(function(ia,Z){ia=t(ia);Z=t(Z);ia=null!=ia.Properties?ia.Properties.ZOrder:ia.ZOrder;Z=null!=Z.Properties?Z.Properties.ZOrder:Z.ZOrder;return null!=ia&&+null!=Z?ia>Z?1:ia<Z?-1:0:0});for(Q=0;Q<H.length;Q++){C=H[Q];var W=y[C.id];if(null!=W){if(null==W.parent)if(W.lucidLayerInfo){var fa=new mxCell;f.addCell(fa,f.model.root);fa.setVisible(W.lucidLayerInfo.visible);W.lucidLayerInfo.locked&&fa.setStyle("locked=1;");fa.setValue(W.lucidLayerInfo.name);delete W.lucidLayerInfo;f.addCell(W,fa)}else a.push(f.addCell(W))}else C.IsLine&&null!=C.Action&&null!=C.Action.Properties?e(C,C.Action.Properties):null!=C.StrokeStyle&&e(C,C)}LucidImporter.stylePointsSet.forEach(function(ia){ia.style=+"points=["+ia.stylePoints.join(",")+"];"+ia.style;delete ia.stylePoints});try{var S=f.getModel().cells;f.view.validate();for(var ha in S){var wa=S[ha];null!=wa&&(Af(f,wa),Bf(f,wa),Cf(f,wa),"1"==urlParams.lucidchartObject&&null!=wa.lucidchartObject&&Ce(wa,"lucidchartObject",JSON.stringify(wa.lucidchartObject,null,2),f),delete wa.lucidchartObject,delete wa.zOrder)}}catch(ia){console.log(ia)}l||f.setSelectionCells(a)}finally{f.getModel().endUpdate()}}function Cf(f,n){if(f.model.contains(n)&&n.edge){var l=+f.view.getState(n);if(null!=l&&null!=n.children){var e=mxRectangle.fromRectangle(l.paintBounds);e.grow(5);for(var a=0;a<n.children.length;a++){var y=f.view.getState(n.children[a]);null==y||mxUtils.contains(e,y.paintBounds.x,y.paintBounds.y)||(y.cell.geometry.offset=new mxPoint(0,0))}}f=n.lucidchartObject;null!=f&&"elbow"==f.Shape&&null==f.ElbowControlPoints&&null==f.ElbowPoints&&null!=l.style.exitX&&null!=l.style.exitY&&null!=l.style.entryX&&null!=l.style.entryY&&(n.style=mxUtils.setStyle(n.style,+"exitX",Math.round(20*l.style.exitX)/20),n.style=mxUtils.setStyle(n.style,"exitY",Math.round(20*l.style.exitY)/20),n.style=mxUtils.setStyle(n.style,"entryX",Math.round(20*l.style.entryX)/20),n.style=mxUtils.setStyle(n.style,"entryY",Math.round(20*l.style.entryY)/20))}}function Bf(f,n){if(f.model.contains(n)&&null!=n.style&&""!=n.style){f=n.style.split(";");for(var l={},e=[],a=f.length-1;0<=a;a--){var y=f[a].split("=");if(2!=y.length||null==l[y[0]])l[y[0]]=y[1],""!=f[a]&&e.push(f[a])}n.style=e.reverse().join(";")++";"}}function Af(f,n){if(f.model.contains(n)&&null!=n.children&&null!=n.geometry&&n.vertex&&"group;dropTarget=0;pointerEvents=0;"==n.style){for(var l=null,e=0;e<n.children.length;e++)if(n.children[e].vertex){var a=n.children[e].geometry;if(null!=a&&0==a.x&&0==a.y&&a.width==n.geometry.width&&a.height==n.geometry.height){if(null!=l)return;l=n.children[e]}}n=l;if(null!=n&&(l=n.parent,""==f.convertValueToString(l))){if(null!=n.edges)for(e=0;e<n.edges.length;e++)n.edges[e].source==n&&n.edges[e].setTerminal(n.parent,+!0),n.edges[e].target==n&&n.edges[e].setTerminal(n.parent,!1);if(null!=n.children&&0<n.children.length)for(a=n.children.slice(),e=0;e<a.length;e++)l.insert(a[e]);f.cellLabelChanged(l,f.convertValueToString(n));l.style=mxUtils.setStyle(mxUtils.setStyle(n.style,"container","1"),"collapsible","0");n.removeFromParent()}}}function Df(){var f=new Graph;f.setExtendParents(!1);f.setExtendParentsOnAdd(!1);f.setConstrainChildren(!1);f.setHtmlLabels(!0);f.getModel().maintainEdgeParent=!1;return f}function Ld(f,+n,l,e,a,y,d,c){this.nurbsValues=[1,3,0,0,100*(f+l),100-100*(1-(n+e)),0,1,100*(a+d),100-100*(1-(y+c)),0,1]}function Ke(f,n){try{for(var l=[],e=n.BoundingBox.w,a=n.BoundingBox.h,y=0;y<n.Shapes.length;y++){var d=n.Shapes[y],c=d.FillColor,H=d.StrokeColor,I=d.LineWidth,C=d.Points,ba=d.Lines,Q=['<shape strokewidth="inherit"><foreground>'];Q.push("<path>");for(var T=null,W=0;W<ba.length;W++){var fa=ba[W];if(T!=fa.p1){var S=C[fa.p1].x,ha=C[fa.p1].y;S=100*S/e;ha=100*ha/a;S=Math.round(100*S)/100;ha=Math.round(100*+ha)/100;Q.push('<move x="'+S+'" y="'+ha+'"/>')}if(null!=fa.n1){var wa=C[fa.p2].x,ia=C[fa.p2].y,Z=e,ua=a,pa=new Ld(C[fa.p1].x/e,C[fa.p1].y/a,fa.n1.x/e,fa.n1.y/a,C[fa.p2].x/e,C[fa.p2].y/a,fa.n2.x/e,fa.n2.y/a);if(2<=pa.getSize()){pa.getX(0);pa.getY(0);pa.getX(1);pa.getY(1);wa=Math.round(100*wa/Z*100)/100;ia=Math.round(100*ia/ua*100)/100;Z=[];ua=[];for(var ra=[],b=pa.getSize(),na=0;na<b-1;na+=3)Z.push(new mxPoint(pa.getX(na),pa.getY(na))),ua.push(new mxPoint(pa.getX(na+1),pa.getY(na+1))),na<b-2?ra.push(new mxPoint(pa.getX(na++2),pa.getY(na+2))):ra.push(new mxPoint(wa,ia));var Na="";for(na=0;na<Z.length;na++)Na+='<curve x1="'+Z[na].x+'" y1="'+Z[na].y+'" x2="'+ua[na].x+'" y2="'+ua[na].y+'" x3="'+ra[na].x+'" y3="'+ra[na].y+'"/>';var ka=Na}else ka=void 0;Q.push(ka)}else S=C[fa.p2].x,ha=C[fa.p2].y,S=100*S/e,ha=100*ha/a,S=Math.round(100*S)/100,ha=Math.round(100*ha)/100,Q.push('<line x="'+S+'" y="'+ha+'"/>');T=fa.p2}Q.push("</path>");Q.push("<fillstroke/>");Q.push("</foreground></shape>");l.push({shapeStencil:"stencil("+Graph.compress(Q.join(""))++")",FillColor:c,LineColor:H,LineWidth:I})}LucidImporter.stencilsMap[f]={text:n.Text,w:e,h:a,x:n.BoundingBox.x,y:n.BoundingBox.y,stencils:l}}catch(za){console.log("Stencil parsing error:",za)}}function ic(f,n,l,e,a,y,d,c){f=new mxCell("",new mxGeometry(f,n,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;d.insert(f);y=[f];l=l.clone();c.insertEdge(l,!1);f.insertEdge(l,!0);y.push(l);e.push(a.addCell(l,null,null,null,null))}function Ta(f,n,l,e,a,y,d,c,H){f=new mxCell("",new mxGeometry(f,n,0,0),"strokeColor=none;fillColor=none;");+f.vertex=!0;H.insert(f);l=new mxCell("",new mxGeometry(l,e,0,0),"strokeColor=none;fillColor=none;");l.vertex=!0;H.insert(l);c=[l];a=a.clone();f.insertEdge(a,!0);l.insertEdge(a,!1);c.push(a);y.push(d.addCell(a,null,null,null,null))}function Aa(f,n,l,e,a,y){e.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";e.style+=h(e.style,a,y,e);n=k(a);e.vertex=!0;f=new mxCell(n,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE++"=mxgraph.gcp2."+f+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");f.style+=h(f.style,a,y,f,q);f.geometry.relative=!0;f.geometry.offset=new mxPoint(5,-12);f.vertex=!0;e.insert(f)}function Ha(f,n,l,e,a,y,d,c){a="transparent"!=f?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";y.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";y.style+=h(y.style,+d,c,y);y.value=k(d);y.vertex=!0;f=new mxCell(null,new mxGeometry(.5,0,.7*e*n,.7*e*l),a+f+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");f.geometry.relative=!0;f.geometry.offset=new mxPoint(-n*e*.35,10+(1-l)*e*.35);f.vertex=!0;f.style+=h(f.style,d,c,f,q);y.insert(f)}function Pc(f,n){return null!=f&&null!=n&&(n==mxConstants.STYLE_ALIGN+"Global"&&(n=mxConstants.STYLE_ALIGN),f.includes(";"+n+"=")||f.substring(0,n.length+1)==n+"=")?!0:!1}function Md(f,n){function l(e){e=Math.round(parseInt("0x"++e)*n).toString(16);return 1==e.length?"0"+e:e}return"#"+l(f.substr(1,2))+l(f.substr(3,2))+l(f.substr(5,2))}function Ie(f,n,l){var e=t(f),a=e.Properties,y=a.BoundingBox,d=Math.round(.75*y.w),c=Math.round(.75*y.h),H=Math.round(.75*y.x+nc),I=Math.round(.75*y.y+oc);null==f.Class||"GCPInputDatabase"!==f.Class&&"GCPInputRecord"!==f.Class&&"GCPInputPayment"!==f.Class&&"GCPInputGateway"!==f.Class&&"GCPInputLocalCompute"!==f.Class&&"GCPInputBeacon"!==f.Class&&"GCPInputStorage"!==f.Class&&"GCPInputList"!==+f.Class&&"GCPInputStream"!==f.Class&&"GCPInputMobileDevices"!==f.Class&&"GCPInputCircuitBoard"!==f.Class&&"GCPInputLive"!==f.Class&&"GCPInputUsers"!==f.Class&&"GCPInputLaptop"!==f.Class&&"GCPInputApplication"!==f.Class&&"GCPInputLightbulb"!==f.Class&&"GCPInputGame"!==f.Class&&"GCPInputDesktop"!==f.Class&&"GCPInputDesktopAndMobile"!==f.Class&&"GCPInputWebcam"!==f.Class&&"GCPInputSpeaker"!==f.Class&&"GCPInputRetail"!==f.Class&&"GCPInputReport"!==f.Class&&"GCPInputPhone"!==f.Class&&"GCPInputBlank"!==+f.Class||(c+=20);v=new mxCell("",new mxGeometry(H,I,d,c),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=a.ZOrder;var C=null!=f.Class?f.Class:null!=e?e.Class:null;switch(C){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ba=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(ba=!0);var Q=null,T=null,W=k(a),fa=a.Rotation?mxUtils.getSizeForString(W.replace(/\n/g,"<br>"),null,null,Math.abs(d-.125*c)):{width:0,height:0};ba?(Q=new mxCell("",new mxGeometry(d-.125*c,0,+.125*c,c),"shape=curlyBracket;rounded=1;"),T=new mxCell("",new mxGeometry(fa.height,-2*fa.width,d-.125*c,c),"strokeColor=none;fillColor=none;")):(Q=new mxCell("",new mxGeometry(0,0,.125*c,c),"shape=curlyBracket;rounded=1;flipH=1;"),T=new mxCell("",new mxGeometry(.125*c-fa.height,fa.width,d-.125*c,c),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);Q.vertex=!0;v.insert(Q);Q.style+=h(Q.style,a,e,Q);T.vertex=!0;T.value=W;v.insert(T);T.style+=h(T.style,+a,e,T,q);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var S="MainText",ha=null,wa="HeaderFill_",ia="BodyFill_",Z=25,ua=25,pa=0;if(null!=a.Lanes)pa=a.Lanes.length;else if(null!=a.PrimaryLane){var ra=function(Ua){if(Ua)32>Ua?Ua=32:208<Ua&&(Ua=208);else return 0;return.75*Ua};pa=a.PrimaryLane.length;for(var b=c=d=0;b<pa;b++)d+=+a.PrimaryLane[b];for(b=0;b<a.SecondaryLane.length;b++)c+=a.SecondaryLane[b];Z=ra(a.PrimaryPoolTitleHeight);ua=ra(a.PrimaryLaneTitleHeight);d*=.75;c=.75*c+Z+ua;v.geometry.width=d;v.geometry.height=c;S="poolPrimaryTitleKey";wa="PrimaryLaneHeaderFill_";ia="CellFill_0,";ha=a.PrimaryLaneTextAreaIds;if(null==ha)for(ha=[],b=0;b<pa;b++)ha.push("Primary_"+b)}if(0==a.IsPrimaryLaneVertical){a.Rotation=-1.5707963267948966;var na=v.geometry.x,Na=v.geometry.y}var ka=0!=a.Rotation,za=0<C.indexOf("Pool"),R=0==C.indexOf("BPMN"),+sa=null!=a[S];v.style=(za?"swimlane;startSize="+Z+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(ka?"horizontalStack=0;":"");v.style+=h(v.style,a,e,v);sa&&(v.value=k(a[S]),v.style+=(q?"overflow=block;blockSpacing=1;fontSize=13;"+ab:A(a[S])+L(a[S])+N(a[S])+X(a[S])+xa(a[S],v)+Ka(a[S])+Va(a[S])+Fa(a[S])+Ca(a[S]))+Ga(a[S])+qa(a[S]));for(var da=0,ea=[],Db="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="++ua+";dropTarget=0;rounded=0;"+(ka?"horizontal=0;":"")+(R?"swimlaneLine=0;fillColor=none;":""),M=a.Rotation=0;M<pa;M++){if(null==ha){var lb=parseFloat(a.Lanes[M].p);b=parseInt(a.Lanes[M].tid)||M;var Ea="Lane_"+b}else lb=.75*a.PrimaryLane[M]/d,b=M,Ea=ha[M];var fc=d*da,lc=za?Z:0;ea.push(new mxCell("",ka?new mxGeometry(lc,fc,c-lc,d*lb):new mxGeometry(fc,lc,d*lb,c-lc),Db));ea[M].vertex=!0;v.insert(ea[M]);ea[M].value=k(a[Ea]);ea[M].style+=h(ea[M].style,a,e,ea[M],q)+(q?"fontSize=13;":A(a[Ea])+L(a[Ea])+X(a[Ea])++xa(a[Ea],ea[M])+Ka(a[Ea])+Va(a[Ea])+Fa(a[Ea])+Ca(a[Ea]))+Ga(a[Ea])+qa(a[Ea])+Gd(a[wa+b])+Hd(a[ia+b]);da+=lb}null!=na&&(v.geometry.x=na,v.geometry.y=Na);break;case "UMLMultidimensionalSwimlane":var tb=0,Fb=0,yb=null,Ob=null;if(null!=a.Rows&&null!=a.Columns){tb=a.Rows.length;Fb=a.Columns.length;var Ia=.75*a.TitleHeight||25,eb=.75*a.TitleWidth||25}else if(null!=a.PrimaryLane&&null!=a.SecondaryLane){tb=a.SecondaryLane.length;Fb=a.PrimaryLane.length;eb=.75*a.SecondaryLaneTitleHeight||25;Ia=.75*a.PrimaryLaneTitleHeight||+25;for(b=c=d=0;b<tb;b++)c+=a.SecondaryLane[b];for(b=0;b<Fb;b++)d+=a.PrimaryLane[b];d=.75*d+eb;c=.75*c+Ia;v.geometry.width=d;v.geometry.height=c;yb=a.SecondaryLaneTextAreaIds;Ob=a.PrimaryLaneTextAreaIds}v.style="group;";var Fc=new mxCell("",new mxGeometry(0,Ia,d,c-Ia),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Fc.vertex=!0;var wc=new mxCell("",new mxGeometry(eb,0,d-eb,c),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");+wc.vertex=!0;v.insert(Fc);v.insert(wc);I=0;var xc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+eb+";";for(M=0;M<tb;M++){if(null==yb){var Nd=.75*parseInt(a.Rows[M].height);b=parseInt(a.Rows[M].id)||M;var Gb="Row_"+b}else Nd=.75*a.SecondaryLane[M],Gb=yb[M];var yc=new mxCell("",new mxGeometry(0,I,d,Nd),xc);I+=Nd;yc.vertex=!0;Fc.insert(yc);yc.value=k(a[Gb]);yc.style+=h(yc.style,a,e,yc,q)+(q?"fontSize=13;":A(a[Gb])+L(a[Gb])++X(a[Gb])+xa(a[Gb],yc)+Ka(a[Gb])+Va(a[Gb])+Fa(a[Gb])+Ca(a[Gb]))+Ga(a[Gb])+qa(a[Gb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Ia+";";for(M=H=0;M<Fb;M++){if(null==Ob){var Qc=.75*parseInt(a.Columns[M].width);b=parseInt(a.Columns[M].id)||M;var Hb="Column_"+b}else Qc=.75*a.PrimaryLane[M],Hb=Ob[M];var zc=new mxCell("",new mxGeometry(H,0,Qc,c),Ef);H+=Qc;zc.vertex=!0;wc.insert(zc);zc.value=k(a[Hb]);zc.style+=h(zc.style,a,e,zc,q)+(q?+"fontSize=13;":A(a[Hb])+L(a[Hb])+X(a[Hb])+xa(a[Hb],zc)+Ka(a[Hb])+Va(a[Hb])+Fa(a[Hb])+Ca(a[Hb]))+Ga(a[Hb])+qa(a[Hb])}break;case "UMLStateBlock":if(0==a.Composite)v.style="rounded=1;arcSize=20",v.value=k(a.State,!0),v.style+=h(v.style,a,e,v,q);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0;";v.value=k(a.State,!0);v.style+=h(v.style,a,e,v,q);v.style+=ta(a,e).replace("fillColor",+"swimlaneFillColor");var mb=new mxCell("",new mxGeometry(0,25,d,c-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");mb.value=k(a.Action,!0);mb.style+=h(mb.style,a,e,mb,q);mb.vertex=!0;v.insert(mb)}break;case "GSDFDProcessBlock":var de=Math.round(.75*a.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+de;v.value=k(a.Number,!0);v.style+=h(v.style,a,e,v,q);v.style+=ta(a,e).replace("fillColor","swimlaneFillColor");mb=new mxCell("",new mxGeometry(0,+de,d,c-de),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");mb.value=k(a.Text,!0);mb.style+=h(mb.style,a,e,mb,q);mb.vertex=!0;v.insert(mb);break;case "AndroidDevice":if(null!=a.AndroidDeviceName){var bb=mc(a,e,v);v.style="fillColor=#000000;strokeColor=#000000;";var pc=null,Rc=null,Sc=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName||"custom"==a.AndroidDeviceName&&"Tablet"==a.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",pc=new mxCell("",new mxGeometry(.112,+.077,.77*d,.85*c),bb),a.KeyboardShown&&(Rc=new mxCell("",new mxGeometry(.112,.727,.77*d,.2*c),"shape=mxgraph.android.keyboard;"+bb)),a.FullScreen||(Sc=new mxCell("",new mxGeometry(.112,.077,.77*d,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*c+";"+bb));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName||"custom"==a.AndroidDeviceName&&"Phone"==a.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",pc=new mxCell("",+new mxGeometry(.04,.092,.92*d,.816*c),bb),a.KeyboardShown&&(Rc=new mxCell("",new mxGeometry(.04,.708,.92*d,.2*c),"shape=mxgraph.android.keyboard;"+bb)),a.FullScreen||(Sc=new mxCell("",new mxGeometry(.04,.092,.92*d,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*c+";"+bb));pc.vertex=!0;pc.geometry.relative=!0;v.insert(pc);"Dark"==a.Scheme?pc.style+="fillColor=#111111;":"Light"==a.Scheme&&(pc.style+="fillColor=#ffffff;");null!=Rc&&(Rc.vertex=+!0,Rc.geometry.relative=!0,v.insert(Rc));null!=Sc&&(Sc.vertex=!0,Sc.geometry.relative=!0,v.insert(Sc))}v.style+=h(v.style,a,e,v);break;case "AndroidAlertDialog":var Pb=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Pb.vertex=!0;v.insert(Pb);var ya=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");ya.vertex=!0;v.insert(ya);var id=new mxCell("",new mxGeometry(0,30,d,c-30),"strokeColor=none;fillColor=none;verticalAlign=top;");id.vertex=+!0;v.insert(id);var Ya=new mxCell("",new mxGeometry(0,c-25,.5*d,25),"fillColor=none;");Ya.vertex=!0;v.insert(Ya);var Za=new mxCell("",new mxGeometry(.5*d,c-25,.5*d,25),"fillColor=none;");Za.vertex=!0;v.insert(Za);Pb.value=k(a.DialogTitle);Pb.style+=p(a.DialogTitle,q);id.value=k(a.DialogText);id.style+=p(a.DialogText,q);Ya.value=k(a.Button_0);Ya.style+=p(a.Button_0,q);Za.value=k(a.Button_1);Za.style+=p(a.Button_1,q);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",Ya.style+=+"strokeColor=#353535;",Za.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",Ya.style+="strokeColor=#E2E2E2;",Za.style+="strokeColor=#E2E2E2;");v.style+=h(v.style,a,e,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":Pb=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Pb.vertex=!0;v.insert(Pb);Pb.value=k(a.DialogTitle);Pb.style+=p(a.DialogTitle,q);ya=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");+ya.vertex=!0;v.insert(ya);Ya=new mxCell("",new mxGeometry(0,c-25,.5*d,25),"fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=k(a.Button_0);Ya.style+=p(a.Button_0,q);Za=new mxCell("",new mxGeometry(.5*d,c-25,.5*d,25),"fillColor=none;");Za.vertex=!0;v.insert(Za);Za.value=k(a.Button_1);Za.style+=p(a.Button_1,q);var Tc=new mxCell("",new mxGeometry(.5*d-4,41,8,4),"shape=triangle;direction=north;");Tc.vertex=!0;v.insert(Tc);var Uc=new mxCell("",new mxGeometry(.25*d-4,41,8,4),"shape=triangle;direction=north;");+Uc.vertex=!0;v.insert(Uc);var Vc=new mxCell("",new mxGeometry(.75*d-4,41,8,4),"shape=triangle;direction=north;");Vc.vertex=!0;v.insert(Vc);var jd=new mxCell("",new mxGeometry(.375*d,50,.2*d,15),"strokeColor=none;fillColor=none;");jd.vertex=!0;v.insert(jd);jd.value=k(a.Label_1);jd.style+=p(a.Label_1,q);var kd=new mxCell("",new mxGeometry(.125*d,50,.2*d,15),"strokeColor=none;fillColor=none;");kd.vertex=!0;v.insert(kd);kd.value=k(a.Label_0);kd.style+=p(a.Label_0,q);var Wc=null;"AndroidDateDialog"==f.Class&&+(Wc=new mxCell("",new mxGeometry(.625*d,50,.2*d,15),"strokeColor=none;fillColor=none;"),Wc.vertex=!0,v.insert(Wc),Wc.value=k(a.Label_2),Wc.style+=p(a.Label_2,q));var nb=new mxCell("",new mxGeometry(.43*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");nb.vertex=!0;v.insert(nb);var ob=new mxCell("",new mxGeometry(.18*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");ob.vertex=!0;v.insert(ob);var Le=new mxCell("",new mxGeometry(.68*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");Le.vertex=!0;v.insert(Le);+var ld=new mxCell("",new mxGeometry(.375*d,65,.2*d,15),"strokeColor=none;fillColor=none;");ld.vertex=!0;v.insert(ld);ld.value=k(a.Label_4);ld.style+=p(a.Label_4,q);var Xc=null;"AndroidTimeDialog"==f.Class&&(Xc=new mxCell("",new mxGeometry(.3*d,65,.1*d,15),"strokeColor=none;fillColor=none;"),Xc.vertex=!0,v.insert(Xc),Xc.value=k(a.Label_Colon),Xc.style+=p(a.Label_Colon,q));var md=new mxCell("",new mxGeometry(.125*d,65,.2*d,15),"strokeColor=none;fillColor=none;");md.vertex=!0;v.insert(md);md.value=k(a.Label_3);+md.style+=p(a.Label_3,q);var nd=new mxCell("",new mxGeometry(.625*d,65,.2*d,15),"strokeColor=none;fillColor=none;");nd.vertex=!0;v.insert(nd);nd.value=k(a.Label_5);nd.style+=p(a.Label_5,q);var Me=new mxCell("",new mxGeometry(.43*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var Ne=new mxCell("",new mxGeometry(.18*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.68*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");+Oe.vertex=!0;v.insert(Oe);var od=new mxCell("",new mxGeometry(.375*d,80,.2*d,15),"strokeColor=none;fillColor=none;");od.vertex=!0;v.insert(od);od.value=k(a.Label_7);od.style+=p(a.Label_7,q);var pd=new mxCell("",new mxGeometry(.125*d,80,.2*d,15),"strokeColor=none;fillColor=none;");pd.vertex=!0;v.insert(pd);pd.value=k(a.Label_6);pd.style+=p(a.Label_6,q);var qd=new mxCell("",new mxGeometry(.625*d,80,.2*d,15),"strokeColor=none;fillColor=none;");qd.vertex=!0;v.insert(qd);qd.value=k(a.Label_8);qd.style+=+p(a.Label_8,q);var Yc=new mxCell("",new mxGeometry(.5*d-4,99,8,4),"shape=triangle;direction=south;");Yc.vertex=!0;v.insert(Yc);var Zc=new mxCell("",new mxGeometry(.25*d-4,99,8,4),"shape=triangle;direction=south;");Zc.vertex=!0;v.insert(Zc);var $c=new mxCell("",new mxGeometry(.75*d-4,99,8,4),"shape=triangle;direction=south;");$c.vertex=!0;v.insert($c);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",Ya.style+="strokeColor=#353535;",Za.style+="strokeColor=#353535;",Tc.style+=+"strokeColor=none;fillColor=#7E7E7E;",Uc.style+="strokeColor=none;fillColor=#7E7E7E;",Vc.style+="strokeColor=none;fillColor=#7E7E7E;",Yc.style+="strokeColor=none;fillColor=#7E7E7E;",Zc.style+="strokeColor=none;fillColor=#7E7E7E;",$c.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",Ya.style+="strokeColor=#E2E2E2;",Za.style+="strokeColor=#E2E2E2;",Tc.style+="strokeColor=none;fillColor=#939393;",Uc.style+="strokeColor=none;fillColor=#939393;",Vc.style+=+"strokeColor=none;fillColor=#939393;",Yc.style+="strokeColor=none;fillColor=#939393;",Zc.style+="strokeColor=none;fillColor=#939393;",$c.style+="strokeColor=none;fillColor=#939393;");v.style+=h(v.style,a,e,v);break;case "AndroidListItems":var pb=c,qc=0;if(a.ShowHeader){qc=8;var Gc=new mxCell("",new mxGeometry(0,0,d,qc),"strokeColor=none;fillColor=none;");Gc.vertex=!0;v.insert(Gc);Gc.value=k(a.Header);Gc.style+=p(a.Header,q);pb-=qc;var Pe=new mxCell("",new mxGeometry(0,qc-2,d,4),"shape=line;strokeColor=#999999;");+Pe.vertex=!0;v.insert(Pe)}var Qb=parseInt(a.Items);0<Qb&&(pb/=Qb);var F=[];ya=[];for(b=0;b<Qb;b++)F[b]=new mxCell("",new mxGeometry(0,qc+b*pb,d,pb),"strokeColor=none;fillColor=none;"),F[b].vertex=!0,v.insert(F[b]),F[b].value=k(a["Item_"+b]),F[b].style+=p(a["Item_"+b],q),0<b&&(ya[b]=new mxCell("",new mxGeometry(0,qc+b*pb-2,d,4),"shape=line;"),ya[b].vertex=!0,v.insert(ya[b]),ya[b].style="Dark"==a.Scheme?ya[b].style+"strokeColor=#ffffff;":ya[b].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?+v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=h(v.style,a,e,v);break;case "AndroidTabs":var Rb=parseInt(a.Tabs),ub=d;0<Rb&&(ub/=Rb);var Ba=[];ya=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor=none;fillColor=none;"),Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=p(a["Tab_"+b],q),0<b&&(ya[b]=new mxCell("",new mxGeometry(b*ub-2,.2*c,4,.6*c),"shape=line;direction=north;"),ya[b].vertex=!0,+v.insert(ya[b]),ya[b].style="Dark"==a.Scheme?ya[b].style+"strokeColor=#484848;":ya[b].style+"strokeColor=#CCCCCC;");var Qe=new mxCell("",new mxGeometry(a.Selected*ub+2,c-3,ub-4,3),"strokeColor=none;fillColor=#33B5E5;");Qe.vertex=!0;v.insert(Qe);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=h(v.style,a,e,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(H),Math.round(I+.25*c),Math.round(d),Math.round(.5*+c)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var rd=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*c)),"strokeColor=none;fillColor=#33B5E5;");rd.vertex=!0;v.insert(rd);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=h(v.style,a,e,v);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;";v.style+=h(v.style,a,e,v);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+=p(a.Label,q);v.style+=h(v.style,a,e,v,q);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 rc=null;rc=a.HighlightTop?new mxCell("",new mxGeometry(0,0,d,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,c-2,d,2),"strokeColor=none;");rc.vertex=!0;v.insert(rc);switch(a.HighlightColor){case "Blue":rc.style+="fillColor=#33B5E5;";break;case "Dark Gray":rc.style+=+"fillColor=#B0B0B0;";break;case "White":rc.style+="fillColor=#ffffff;"}}if(a.VlignShow){var ad=new mxCell("",new mxGeometry(20,5,2,c-10),"shape=line;direction=north;");ad.vertex=!0;v.insert(ad);switch(a.VlignColor){case "Blue":ad.style+="strokeColor=#244C5A;";break;case "White":ad.style+="strokeColor=#ffffff;"}}v.style+=h(v.style,a,e,v);break;case "AndroidButton":v.value=k(a.Label);v.style+=p(a.Label,q)+"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;";v.style+=h(v.style,a,e,v);break;case "AndroidTextBox":v.value=k(a.Label);v.style+=p(a.Label,q);var sd=new mxCell("",new mxGeometry(2,c-6,d-4,4),"shape=partialRectangle;top=0;fillColor=none;");sd.vertex=!0;v.insert(sd);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";sd.style=a.TextFocused?sd.style+"strokeColor=#33B5E5;":sd.style+"strokeColor=#A9A9A9;";v.style+=h(v.style,a,e,v);+break;case "AndroidRadioButton":var Hc=null;a.Checked&&(Hc=new mxCell("",new mxGeometry(.15*d,.15*c,.7*d,.7*c),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Hc.vertex=!0,v.insert(Hc));"Dark"==a.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",a.Checked?(Hc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",a.Checked&&+(Hc.style+="strokeColor=#999999;"));v.style+=h(v.style,a,e,v);break;case "AndroidCheckBox":var ee=null;a.Checked&&(ee=new mxCell("",new mxGeometry(.25*d,.05*-c,d,.8*c),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),ee.vertex=!0,v.insert(ee));v.style="Dark"==a.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=h(v.style,a,e,v);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;";v.style+=h(v.style,a,e,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";v.style+=h(v.style,a,e,v);break;case "iOSSegmentedControl":Rb=parseInt(a.Tabs);ub=d;v.style+="strokeColor=none;fillColor=none;";+0<Rb&&(ub/=Rb);Ba=[];ya=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor="+a.FillColor+";"),Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=p(a["Tab_"+b],q),Ba[b].style=a.Selected==b?Ba[b].style+ta(a,e):Ba[b].style+"fillColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";v.style+=h(v.style,a,e,v);break;case "iOSProgressBar":v=+new mxCell("",new mxGeometry(Math.round(H),Math.round(I+.25*c),Math.round(d),Math.round(.5*c)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;rd=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*c)),"strokeColor=none;"+ta(a,e));rd.vertex=!0;v.insert(rd);v.style+=h(v.style,a,e,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=h(v.style,a,e,v);break;case "iOSStatusBar":v.style+=+"shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var ja=new mxCell(k(a.Text),new mxGeometry(.35*d,0,.3*d,c),"strokeColor=none;fillColor=none;");ja.vertex=!0;v.insert(ja);ja.style+=p(a.Text,q);var qb=new mxCell(k(a.Carrier),new mxGeometry(.09*d,0,.2*d,c),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.style+=p(a.Carrier,q);v.style+=h(v.style,a,e,v);break;case "iOSSearchBar":v.value=k(a.Search);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v,q)+p(a.Search,q);var oa=new mxCell("",+new mxGeometry(.3*d,.3*c,.4*c,.4*c),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");oa.vertex=!0;v.insert(oa);break;case "iOSNavBar":v.value=k(a.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+p(a.Title,q);v.style+=h(v.style,a,e,v,q);ja=new mxCell(k(a.LeftText),new mxGeometry(.03*d,0,.3*d,c),"strokeColor=none;fillColor=none;");ja.vertex=!0;v.insert(ja);ja.style+=p(a.LeftText,q);qb=new mxCell(k(a.RightText),new mxGeometry(.65*d,0,.3*+d,c),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.style+=p(a.RightText,q);oa=new mxCell("",new mxGeometry(.02*d,.2*c,.3*c,.5*c),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");oa.vertex=!0;v.insert(oa);break;case "iOSTabs":Rb=parseInt(a.Tabs);ub=d;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=h(v.style,a,e,v);0<Rb&&(ub/=Rb);Ba=[];ya=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor=none;"),+Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=q?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+ab:A(a["Tab_"+b])+N(a["Tab_"+b])+L(a["Tab_"+b])+X(a["Tab_"+b])+xa(a["Tab_"+b])+Ka(a["Tab_"+b])+Va(a["Tab_"+b])+Fa(a["Tab_"+b])+Ca(a["Tab_"+b])+Ga(a["Tab_"+b]),Ba[b].style+="verticalAlign=bottom;",Ba[b].style=a.Selected==b?Ba[b].style+"fillColor=#BBBBBB;":Ba[b].style+"fillColor=none;";break;case "iOSDatePicker":var Sb=new mxCell("",new mxGeometry(0,0,.5*d,.2*c),"strokeColor=none;fillColor=none;");+Sb.vertex=!0;v.insert(Sb);Sb.value=k(a.Option11);Sb.style+=p(a.Option11,q);var Tb=new mxCell("",new mxGeometry(.5*d,0,.15*d,.2*c),"strokeColor=none;fillColor=none;");Tb.vertex=!0;v.insert(Tb);Tb.value=k(a.Option21);Tb.style+=p(a.Option21,q);var Ub=new mxCell("",new mxGeometry(.65*d,0,.15*d,.2*c),"strokeColor=none;fillColor=none;");Ub.vertex=!0;v.insert(Ub);Ub.value=k(a.Option31);Ub.style+=p(a.Option31,q);var Vb=new mxCell("",new mxGeometry(0,.2*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");Vb.vertex=+!0;v.insert(Vb);Vb.value=k(a.Option12);Vb.style+=p(a.Option12,q);var Wb=new mxCell("",new mxGeometry(.5*d,.2*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Wb.vertex=!0;v.insert(Wb);Wb.value=k(a.Option22);Wb.style+=p(a.Option22,q);var Xb=new mxCell("",new mxGeometry(.65*d,.2*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Xb.vertex=!0;v.insert(Xb);Xb.value=k(a.Option32);Xb.style+=p(a.Option32,q);var fb=new mxCell("",new mxGeometry(0,.4*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=+!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);var gb=new mxCell("",new mxGeometry(.5*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);var Yb=new mxCell("",new mxGeometry(.65*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Yb.vertex=!0;v.insert(Yb);Yb.value=k(a.Option33);Yb.style+=p(a.Option33,q);var hb=new mxCell("",new mxGeometry(.8*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=+!0;v.insert(hb);hb.value=k(a.Option43);hb.style+=p(a.Option43,q);var ib=new mxCell("",new mxGeometry(0,.6*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);var Zb=new mxCell("",new mxGeometry(.5*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Zb.vertex=!0;v.insert(Zb);Zb.value=k(a.Option24);Zb.style+=p(a.Option24,q);var $b=new mxCell("",new mxGeometry(.65*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");$b.vertex=+!0;v.insert($b);$b.value=k(a.Option34);$b.style+=p(a.Option34,q);var ac=new mxCell("",new mxGeometry(.8*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");ac.vertex=!0;v.insert(ac);ac.value=k(a.Option44);ac.style+=p(a.Option44,q);var jb=new mxCell("",new mxGeometry(0,.8*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);var bc=new mxCell("",new mxGeometry(.5*d,.8*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");bc.vertex=+!0;v.insert(bc);bc.value=k(a.Option25);bc.style+=p(a.Option25,q);var cc=new mxCell("",new mxGeometry(.65*d,.8*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");cc.vertex=!0;v.insert(cc);cc.value=k(a.Option35);cc.style+=p(a.Option35,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,+v);break;case "iOSTimePicker":Sb=new mxCell("",new mxGeometry(0,0,.25*d,.2*c),"strokeColor=none;fillColor=none;");Sb.vertex=!0;v.insert(Sb);Sb.value=k(a.Option11);Sb.style+=p(a.Option11,q);Tb=new mxCell("",new mxGeometry(.25*d,0,.3*d,.2*c),"strokeColor=none;fillColor=none;");Tb.vertex=!0;v.insert(Tb);Tb.value=k(a.Option21);Tb.style+=p(a.Option21,q);Vb=new mxCell("",new mxGeometry(0,.2*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");Vb.vertex=!0;v.insert(Vb);Vb.value=k(a.Option12);Vb.style+=p(a.Option12,+q);Wb=new mxCell("",new mxGeometry(.25*d,.2*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");Wb.vertex=!0;v.insert(Wb);Wb.value=k(a.Option22);Wb.style+=p(a.Option22,q);fb=new mxCell("",new mxGeometry(0,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);gb=new mxCell("",new mxGeometry(.25*d,.4*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);hb=new mxCell("",+new mxGeometry(.7*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=!0;v.insert(hb);hb.value=k(a.Option33);hb.style+=p(a.Option33,q);ib=new mxCell("",new mxGeometry(0,.6*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);Zb=new mxCell("",new mxGeometry(.25*d,.6*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");Zb.vertex=!0;v.insert(Zb);Zb.value=k(a.Option24);Zb.style+=p(a.Option24,q);ac=new mxCell("",new mxGeometry(.7*+d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");ac.vertex=!0;v.insert(ac);ac.value=k(a.Option34);ac.style+=p(a.Option34,q);jb=new mxCell("",new mxGeometry(0,.8*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);bc=new mxCell("",new mxGeometry(.25*d,.8*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");bc.vertex=!0;v.insert(bc);bc.value=k(a.Option25);bc.style+=p(a.Option25,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),+"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSCountdownPicker":Ub=new mxCell("",new mxGeometry(.45*d,0,.2*d,.2*c),"strokeColor=none;fillColor=none;");Ub.vertex=!0;v.insert(Ub);Ub.value=k(a.Option31);Ub.style+=p(a.Option31,q);Xb=new mxCell("",new mxGeometry(.45*d,.2*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");+Xb.vertex=!0;v.insert(Xb);Xb.value=k(a.Option32);Xb.style+=p(a.Option32,q);fb=new mxCell("",new mxGeometry(0,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);gb=new mxCell("",new mxGeometry(.2*d,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);Yb=new mxCell("",new mxGeometry(.45*d,.4*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");Yb.vertex=+!0;v.insert(Yb);Yb.value=k(a.Option33);Yb.style+=p(a.Option33,q);hb=new mxCell("",new mxGeometry(.6*d,.4*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=!0;v.insert(hb);hb.value=k(a.Option43);hb.style+=p(a.Option43,q);ib=new mxCell("",new mxGeometry(0,.6*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);$b=new mxCell("",new mxGeometry(.45*d,.6*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");$b.vertex=!0;v.insert($b);+$b.value=k(a.Option34);$b.style+=p(a.Option34,q);jb=new mxCell("",new mxGeometry(0,.8*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);cc=new mxCell("",new mxGeometry(.45*d,.8*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");cc.vertex=!0;v.insert(cc);cc.value=k(a.Option35);cc.style+=p(a.Option35,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,+.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSBasicCell":v.value=k(a.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*a.SeparatorInset+";";v.style+=(q?"fontSize=13;":A(a.text)+L(a.text)+X(a.text))+qa(a.text);v.style+=h(v.style,a,e,v,q);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*+d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);var La=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,+.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.75*a.SeparatorInset+";";v.value=k(a.subtext);v.style+=+q?"fontSize=13;":A(a.subtext)+L(a.subtext)+X(a.subtext);v.style+=h(v.style,a,e,v,q);var Qa=new mxCell("",new mxGeometry(0,.4*c,d,.6*c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*a.SeparatorInset+";");Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");+oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");+La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.75*a.SeparatorInset+";";v.value=k(a.subtext);v.style+=q?"fontSize=13;":A(a.subtext)+L(a.subtext)+X(a.subtext);v.style+=h(v.style,+a,e,v,q);Qa=null;switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);Qa=new mxCell("",new mxGeometry(.55*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*+d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);Qa=new mxCell("",new mxGeometry(.45*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);Qa=new mxCell("",new mxGeometry(.52*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");+break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");oa.vertex=!0;v.insert(oa);Qa=new mxCell("",new mxGeometry(.55*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:Qa=new mxCell("",new mxGeometry(.65*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;")}Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)++L(a.text)+X(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=h(v.style,a,e,v);var Ib=new mxCell("",new mxGeometry(0,0,.25*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ib.vertex=!0;v.insert(Ib);Ib.value=k(a.subtext);Ib.style+=q?"html=1;fontSize=13;"+ab:A(a.subtext)+N(a.subtext)+L(a.subtext)+X(a.subtext);Qa=new mxCell("",new mxGeometry(.25*d,0,.5*d,c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");+Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*+d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSTableGroupedSectionBreak":v.style+=+"shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";ja=new mxCell("",new mxGeometry(0,0,d,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");ja.vertex=!0;v.insert(ja);ja.value=k(a.text);ja.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);qb=new mxCell("",new mxGeometry(0,.6*c,d,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");qb.vertex=!0;v.insert(qb);qb.value=k(a["bottom-text"]);qb.style+=q?"html=1;fontSize=13;"+ab:A(a["bottom-text"])++N(a["bottom-text"])+L(a["bottom-text"])+X(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=k(a.text);v.style+=q?"fontSize=13;":A(a.text)+L(a.text)+X(a.text);v.style+=h(v.style,a,e,v,q);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var g=new mxCell("",new mxGeometry(0,0,.9*d,.9*c),"rounded=1;arcSize=3;part=1;");g.vertex=!0;v.insert(g);g.style+=U(a,e)+ta(a,e)+Xa(a,e,g)+Eb(a)++Ec(a);var m=new mxCell("",new mxGeometry(.1*d,.1*c,.9*d,.9*c),"rounded=1;arcSize=3;part=1;");m.vertex=!0;v.insert(m);m.value=k(a.Text);m.style+=U(a,e)+ta(a,e)+Xa(a,e,m)+Eb(a)+Ec(a)+p(a,q);a.Future&&(g.style+="dashed=1;fixDash=1;",m.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",a.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=k(a.Text),v.style+=U(a,e)+ta(a,e)+Xa(a,e,v)+Eb(a)+Ec(a)+p(a,q);v.style+=h(v.style,a,e,v,q);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":g=+null;switch(f.Class){case "SMHome":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.4*c,.19*c,.8*c,.62*c),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.3*c,.25*c,.6*c,.5*c),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");+break;case "SMVideo":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.3*c,.2*c,.6*c,.6*c),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":g=new mxCell("",new mxGeometry(.5*d-.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 G=ta(a,e);G=""==G?"#ffffff;":G.replace("fillColor=","");g=new mxCell("",new mxGeometry(.5*d-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+G);break;case "SMCloud":g=new mxCell("",new mxGeometry(.5*d-.4*c,.27*c,.8*c,.46*c),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":g=new mxCell("",new mxGeometry(.5*d-.25*c,.15*c,.5*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");+break;case "SMForm":g=new mxCell("",new mxGeometry(.5*d-.4*c,.15*c,.8*c,.7*c),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}g.vertex=+!0;v.insert(g);g.value=k(a.Text);g.style+=p(a,q);v.style+=h(v.style,a,e,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";g=new mxCell("",new mxGeometry(.1*d,0,.9*d,.9*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(0,.1*c,.9*d,.9*c),"part=1;");m.vertex=!0;v.insert(m);m.value=k(a.Text);m.style+=p(a.Text,q);m.style+=h(m.style,a,e,m,q);break;case "UMLConstraintBlock":var sc=new mxCell("",new mxGeometry(0,0,.25*c,c),"shape=curlyBracket;rounded=1;");+sc.vertex=!0;v.insert(sc);var tc=new mxCell("",new mxGeometry(d-.25*c,0,.25*c,c),"shape=curlyBracket;rounded=1;flipH=1;");tc.vertex=!0;v.insert(tc);T=new mxCell("",new mxGeometry(.25*c,0,d-.5*c,c),"strokeColor=none;fillColor=none;");T.vertex=!0;T.value=k(a);v.insert(T);v.style="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);sc.style+=Xa(a,e,sc);tc.style+=Xa(a,e,tc);T.style+=L(a,T);sc.style+=h(sc.style,a,e,sc);tc.style+=h(tc.style,a,e,tc);T.style+=h(T.style,a,e,T,q);break;case "UMLTextBlock":v.value=+k(a.Text);v.style+="strokeColor=none;"+p(a.Text,q);v.style+=h(v.style,a,e,v,q);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":bb=mc(a,e,v);a.Rotatio=null;var Jb=h(v.style,a,e,v,q);-1==Jb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Jb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Jb);v.style="group;dropTarget=0;pointerEvents=0;"+bb;var Od=.8*d,Ff=d-Od,Ic=new mxCell("",new mxGeometry(.2,0,Od,c),"shape=ellipse;"+Jb);Ic.vertex=!0;Ic.geometry.relative=!0;v.insert(Ic);ya=new mxCell("",new mxGeometry(0,+.5,Ff,1),"line;"+Jb);ya.geometry.relative=!0;ya.vertex=!0;v.insert(ya);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=k(a);v.style="html=1;dropTarget=0;"+h(v.style,a,e,v,q);var cb=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");cb.geometry.relative=!0;cb.geometry.offset=new mxPoint(-20,5);cb.vertex=!0;v.insert(cb);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":bb=mc(a,e,v);a.Rotatio=null;Jb=h(v.style,a,e,v,+q);-1==Jb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Jb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Jb);v.style="group;dropTarget=0;pointerEvents=0;"+bb;var Re=.225*d,Se=.1*d;Od=d-Re-Se;Ic=new mxCell("",new mxGeometry(.225,0,Od,c),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Jb);Ic.vertex=!0;Ic.geometry.relative=!0;v.insert(Ic);nb=new mxCell("",new mxGeometry(0,.5,Re,1),"line;"+Jb);nb.geometry.relative=!0;nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(.9,.5,Se,1),"line;"+Jb);ob.geometry.relative=+!0;ob.vertex=!0;v.insert(ob);break;case "BPMNActivity":v.value=k(a.Text);switch(a.bpmnActivityType){case 1:v.style+=p(a.Text,q);break;case 2:v.style+="shape=ext;double=1;"+p(a.Text,q);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+p(a.Text,q);break;case 4:v.style+="shape=ext;strokeWidth=2;"+p(a.Text,q)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:g=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");g.geometry.offset=new mxPoint(4,7);break;case 2:g=new mxCell("",new mxGeometry(0,+0,19,12),"shape=message;");g.geometry.offset=new mxPoint(4,7);break;case 3:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");g.geometry.offset=new mxPoint(4,5);break;case 4:g=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");g.geometry.offset=new mxPoint(4,7);break;case 5:g=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");g.geometry.offset=new mxPoint(4,7);break;case 6:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");+g.geometry.offset=new mxPoint(4,5);break;case 7:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),g.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Jc=ta(a,e);G=U(a,e);G=G.replace("strokeColor","fillColor");Jc=Jc.replace("fillColor","strokeColor");""==G&&(G="fillColor=#000000;");""==Jc&&(Jc="strokeColor=#ffffff;");g.style+=Jc+G+"part=1;"}else g.style+=ta(a,e)+U(a,e)+"part=1;";g.geometry.relative=!0;g.vertex=!0;v.insert(g)}var td=0;0!=a.bpmnActivityMarker1&&td++;+0!=a.bpmnActivityMarker2&&td++;var rb=0;1==td?rb=-7.5:2==td&&(rb=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 2:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 3:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");+g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 4:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 5:g=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");g.geometry.offset=new mxPoint(rb,-17);G=U(a,e);G=G.replace("strokeColor","fillColor");""==G&&(G="fillColor=#000000;");g.style+=G;break;case 6:g=new mxCell("",+new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),g.geometry.offset=new mxPoint(rb,-18),g.style+=ta(a,e)+U(a,e)}g.geometry.relative=!0;g.vertex=!0;v.insert(g)}2==td&&(rb=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 2:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");g.geometry.offset=new mxPoint(rb,+-20);g.style+=ta(a,e)+U(a,e);break;case 3:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 4:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 5:g=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");g.geometry.offset=new mxPoint(rb,-17);+G=U(a,e);G=G.replace("strokeColor","fillColor");""==G&&(G="fillColor=#000000;");g.style+=G;break;case 6:g=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),g.geometry.offset=new mxPoint(rb,-18),g.style+=ta(a,e)+U(a,e)}g.geometry.relative=!0;g.vertex=!0;v.insert(g)}v.style+=h(v.style,a,e,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";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;"}v.style+=h(v.style,a,e,v,q);break;case "BPMNChoreography":try{var P=Pa(a.FillColor),fe=Md(P,.75),Ac=A(a.Name).match(/\d+/),Ra=Math.max(mxUtils.getSizeForString(a.Name.t,Ac?Ac[0]:"13",null,d-10).height,24);P="swimlaneFillColor="+fe+";";v.value=+k(a.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+P+"startSize="+Ra+";spacingLeft=3;spacingRight=3;fontStyle=0;"+p(a.Name,q);v.style+=h(v.style,a,e,v,q);var Kb=Ra;Ac=A(a.TaskName).match(/\d+/);var dc=a.TaskHeight?.75*a.TaskHeight:Math.max(mxUtils.getSizeForString(a.TaskName.t,Ac?Ac[0]:"13",null,d-10).height+15,24),uc=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");+uc.value=k(a.TaskName);uc.vertex=!0;v.insert(uc);uc.style+=p(a.TaskName,q);uc.style+=h(uc.style,a,e,uc,q);Kb+=dc;F=[];for(b=0;b<a.Fields;b++){var Pd=a["Participant"+(b+1)];Ac=A(Pd).match(/\d+/);dc=Math.max(mxUtils.getSizeForString(Pd.t,Ac?Ac[0]:"13",null,d-10).height,24);F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Kb+=dc;F[b].vertex=!0;v.insert(F[b]);F[b].style+=p(Pd,q);F[b].style+=h(F[b].style,a,e,F[b],q);+F[b].value=k(Pd)}}catch(Ua){console.log(Ua)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=k(a.Text);v.style=0==a.bpmnConversationType?v.style+Ec(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(g=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),g.geometry.offset=new mxPoint(-6,-17),g.style+=ta(a,e)+U(a,e),g.geometry.relative=!0,g.vertex=!0,v.insert(g));v.style+=h(v.style,a,e,v,q);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";+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;"}v.style+=h(v.style,a,e,v);+v.value=k(a.Text);v.style+=p(a,q);break;case "BPMNData":v.style+="shape=note;size=14;";switch(a.bpmnDataType){case 0:v.value=k(a.Text);a.Text&&!a.Text.t&&(a.Text.t=" ");break;case 1:g=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(-6,-15);g.style+=ta(a,e)+U(a,e);g.geometry.relative=!0;g.vertex=!0;v.insert(g);break;case 2:g=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");g.geometry.offset=new mxPoint(3,+3);g.style+=ta(a,e)+U(a,e);g.geometry.relative=!0;g.vertex=!0;v.insert(g);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";ja=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;");ja.geometry.offset=new mxPoint(0,14);ja.geometry.relative=!0;ja.vertex=!0;v.insert(ja);ja.value=k(a.Text);ja.style+=p(a,q);break;case 3:g=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),g.geometry.offset=new mxPoint(3,3),g.style+=U(a,e),g.geometry.relative=+!0,g.vertex=!0,v.insert(g),G=U(a,e),G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),g.style+=G,ja=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;"),ja.geometry.offset=new mxPoint(0,14),ja.geometry.relative=!0,ja.vertex=!0,v.insert(ja),ja.value=k(a.Text),ja.style+=p(a,q)}v.style+=h(v.style,a,e,v);break;case "BPMNBlackPool":v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,d,c),"fillColor=#000000;strokeColor=none;opacity=30;");+g.vertex=!0;v.insert(g);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=new mxCell("",new mxGeometry(0,0,.95*d,.95*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.05*d,.05*c,.95*d,.95*c),"part=1;");m.vertex=!0;v.insert(m);m.value=k(a.Text);m.style+=p(a.Text,q);m.style+=h(m.style,a,e,m,q);break;case "GSDFDDataStoreBlock":v.value=k(a.Text);v.style+="shape=partialRectangle;right=0;"+p(a.Text,q);+v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,.2*d,c),"part=1;");g.vertex=!0;v.insert(g);g.value=k(a.Number);g.style+=p(a.Number,q);g.style+=h(g.style,a,e,g,q);break;case "OrgBlock":var Te="";for(la in a.Active)"Photo"!=la&&a.Active[la]&&(Te+=k(a[la],!0));if(a.Active.Photo){var ge=.4*d;v.style+="spacingLeft="+ge+";imageWidth="+(ge-4)+";imageHeight="+(ge-4)+";imageAlign=left;imageVerticalAlign=top;image="+r(a.Photo)}v.value=Te;v.style+=h(v.style,a,e,v,!0);break;case "DefaultTableBlock":try{tb=+a.RowHeights.length;Fb=a.ColWidths.length;var Qd=[],ud=[];for(b=0;b<tb;b++)Qd[b]=.75*a.RowHeights[b];for(M=0;M<Fb;M++)ud[M]=.75*a.ColWidths[M];v.style="group;dropTarget=0;pointerEvents=0;";var he=a.BandedColor1,ie=a.BandedColor2,Gf=a.BandedRows,Ue=a.BandedCols,Rd=a.HideH,Hf=a.HideV,Ve=a.TextVAlign,We=a.FillColor,Xe=a.StrokeStyle;delete a.StrokeStyle;var If=hc(We,"fillOpacity"),Ye=a.LineColor,Jf=hc(Ye,"strokeOpacity");I=0;var vd={};for(b=0;b<tb;b++){H=0;c=Qd[b];for(M=0;M<Fb;M++){var zb=b+","+M;if(vd[zb])H+=+ud[M];else{var $a=a["CellFill_"+zb],je=a["NoBand_"+zb],Sd=a["CellSize_"+zb],ec=a["Cell_"+zb],Ze=a["Cell_"+zb+"_VAlign"],Kf=a["Cell_"+zb+"_TRotation"],Lf=a["CellBorderWidthH_"+zb],Mf=a["CellBorderColorH_"+zb],Nf=a["CellBorderStrokeStyleH_"+zb],Of=a["CellBorderWidthV_"+zb],Pf=a["CellBorderColorV_"+zb],Qf=a["CellBorderStrokeStyleV_"+zb],$e=Rd?Pf:Mf,af=hc($e,"strokeOpacity"),bf=Rd?Of:Lf,Kc=Rd?Qf:Nf;$a=Gf&&!je?0==b%2?he:Ue&&!je?0==M%2?he:ie:ie:Ue&&!je?0==M%2?he:ie:$a;var Rf=hc($a,"fillOpacity")||If;d=+ud[M];var cf=c;Qc=d;for(var Ab=b+1;Ab<b+Sd.h;Ab++)if(null!=Qd[Ab]){cf+=Qd[Ab];vd[Ab+","+M]=!0;for(var Lc=M+1;Lc<M+Sd.w;Lc++)vd[Ab+","+Lc]=!0}for(Ab=M+1;Ab<M+Sd.w;Ab++)if(null!=ud[Ab])for(Qc+=ud[Ab],vd[b+","+Ab]=!0,Lc=b+1;Lc<b+Sd.h;Lc++)vd[Lc+","+Ab]=!0;var V=new mxCell("",new mxGeometry(H,I,Qc,cf),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Rd?"top=0;bottom=0;":"")+ta({FillColor:$a||We})+Nb(mxConstants.STYLE_STROKECOLOR,Pa($e),Pa(Ye))+(null!=bf?Nb(mxConstants.STYLE_STROKEWIDTH,+Math.round(.75*parseFloat(bf)),"1"):"")+(af?af:Jf)+Rf+"verticalAlign="+(Ze?Ze:Ve?Ve:"middle")+";"+be({StrokeStyle:Kc?Kc:Xe?Xe:"solid"})+(Kf?"horizontal=0;":""));V.vertex=!0;V.value=k(ec);V.style+=h(V.style,a,e,V,q)+(q?"fontSize=13;":A(ec)+L(ec)+X(ec)+xa(ec,V)+Ka(ec)+Va(ec)+Fa(ec)+Ca(ec))+Ga(ec)+qa(ec);v.insert(V);H+=d}}I+=c}}catch(Ua){console.log(Ua)}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(v.style,a,e,v,q);"VSMDedicatedProcessBlock"==f.Class&&(g=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),g.geometry.relative=!0,g.geometry.offset=new mxPoint(4,-13),g.vertex=!0,v.insert(g),g.style+=h(g.style,a,e,g));ja=new mxCell("",new mxGeometry(0,0,d,15),"strokeColor=none;fillColor=none;part=1;");ja.vertex=!0;v.insert(ja);ja.value=k(a.Title);ja.style+=p(a.Title,+q);a.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);ja=new mxCell("",new mxGeometry(.1*d,.3*c,.8*d,.6*c),"part=1;");ja.vertex=!0;v.insert(ja);ja.value=k(a.Resource);ja.style+=p(a.Resource,q);ja.style+=h(ja.style,a,e,ja,q);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.value=k(a.Text);v.style+=+h(v.style,a,e,v,q);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);pb=c;Qb=parseInt(a.Cells);P=h("part=1;",a,e,v);0<Qb&&(pb/=Qb);F=[];ya=[];for(b=1;b<=Qb;b++)F[b]=new mxCell("",new mxGeometry(0,(b-1)*pb,d,pb),P),F[b].vertex=!0,v.insert(F[b]),F[b].value=k(a["cell_"+b]),F[b].style+=p(a["cell_"+b],q);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";+v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);pb=c;Qb=parseInt(a.Cells);P=h("part=1;fillColor=none;",a,e,v);0<Qb&&(pb/=Qb);F=[];Ib=[];for(b=1;b<=Qb;b++)F[b]=new mxCell("",new mxGeometry(.5*d,(b-1)*pb,.5*d,pb),"shape=partialRectangle;left=0;"+P),F[b].vertex=!0,v.insert(F[b]),Ib[b]=new mxCell("",new mxGeometry(0,(b-1)*pb,d,pb),"strokeColor=none;fillColor=none;part=1;"),Ib[b].vertex=!0,v.insert(Ib[b]),Ib[b].value=+k(a["cell_"+b]),Ib[b].style+=p(a["cell_"+b],q);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=h(v.style,a,e,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.17*d,.2*c,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");g.vertex=!0;v.insert(g);+g.style+=h(g.style,a,e,g);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";P="shape=card;size=18;flipH=1;part=1;";g=new mxCell("",new mxGeometry(.1*d,0,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+P);g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.05*d,.1*c,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+P);m.vertex=!0;v.insert(m);m.style+=h(m.style,+a,e,m);var B=new mxCell("",new mxGeometry(0,.2*c,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+P);B.vertex=!0;v.insert(B);B.value=k(a.Text);B.style+=h(B.style,a,e,B,q);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=k(a.Title);v.style+=p(a.Title,q);var aa=new mxCell("",new mxGeometry(0,0,d,c),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");aa.edge=!0;aa.geometry.relative=+1;l.addCell(aa,v,null,v,v);break;case "AWSRoundedRectangleContainerBlock2":case "AWSRoundedRectangleContainerBlock":v.style+="strokeColor=none;fillColor=none;";a.Spotfleet?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,35,40),+"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.Beanstalk?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),+m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.EC2?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),m.geometry.relative=+!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.Subnet?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),m.geometry.relative=!0,m.geometry.offset=+new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.VPC?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,+0),m.vertex=!0,v.insert(m)):a.AWS?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):+a.Corporate?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):+(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=k(a.Title),v.style+=h(v.style,a,e,v,q));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";+v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";V=new mxCell("",new mxGeometry(.25*d,.25*c,.5*d,.5*c),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");V.vertex=!0;v.insert(V);var va=[V];V.style+=ta(a,e);aa=new mxCell("",new mxGeometry(0,0,+0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");aa.geometry.relative=!0;aa.edge=!0;ic(.5*d,0,aa,n,l,va,v,V);ic(.855*d,.145*c,aa,n,l,va,v,V);ic(d,.5*c,aa,n,l,va,v,V);ic(.855*d,.855*c,aa,n,l,va,v,V);ic(.5*d,c,aa,n,l,va,v,V);ic(.145*d,.855*c,aa,n,l,va,v,V);ic(0,.5*c,aa,n,l,va,v,V);ic(.145*d,.145*c,aa,n,l,va,v,V);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";V=new mxCell("",new mxGeometry(0,.5*c-10,d,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");+V.vertex=!0;v.insert(V);va=[V];aa=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");aa.geometry.relative=!0;aa.edge=!0;va=[V];var wd=d/a.NumTopNodes;for(b=0;b<a.NumTopNodes;b++)ic(.5*wd+b*wd,0,aa,n,l,va,v,V);wd=d/a.NumBottomNodes;for(b=0;b<a.NumBottomNodes;b++)ic(.5*wd+b*wd,c,aa,n,l,va,v,V);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);a.ToggleCharge&&+(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);"EIMessageChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIDatatypeChannelBlock"==+f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIInvalidMessageChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIDeadLetterChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),g.geometry.offset=+new mxPoint(.45*-d,0)):"EIGuaranteedDeliveryBlock"==f.Class&&(g=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(-10,-7));g.geometry.relative=!0;g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);aa=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;");aa.geometry.relative=!0;aa.edge=!0;Ta(.15*d,.25*c,.85*d,.25*c,aa,n,l,va,v,V);break;case "EIChannelAdapterBlock":v.style+=+"verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,.07*c,.21*d,.86*c),"fillColor=#FFFF33;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.26*d,.09*c,.2*d,.82*c),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);B=new mxCell("",new mxGeometry(1,.5,.35*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");+B.geometry.relative=!0;B.geometry.offset=new mxPoint(.4*-d,-10);B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);K=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;");K.geometry.relative=!0;K.edge=!0;g.insertEdge(K,!0);m.insertEdge(K,!1);K.style+=U(a,e);n.push(l.addCell(K,null,null,null,null));J=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;");+J.geometry.relative=!0;J.edge=!0;m.insertEdge(J,!0);B.insertEdge(J,!1);n.push(l.addCell(J,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);var xd=a.Messages,+ke=(c-17)/xd;m=[];aa=[];for(b=0;b<xd;b++){var yd=ke*(b+1)-3;m[b]=new mxCell("",new mxGeometry(d-20,yd,20,20),"part=1;");m[b].vertex=!0;v.insert(m[b]);switch(f.Class){case "EIMessageBlock":m[b].value=k(a["message_"+(b+1)]);m.style+=p(a["message_"+(b+1)],q);break;case "EICommandMessageBlock":m[b].value="C";m[b].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":m[b].value="D";m[b].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":m[b].value="E",m[b].style+="fontStyle=1;fontSize=13;"}m[b].style+=+h(m[b].style,a,e,m[b]);aa[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");aa[b].geometry.relative=!0;aa[b].edge=!0;g.insertEdge(aa[b],!1);m[b].insertEdge(aa[b],!0);aa[b].style+=h(aa[b].style,a,e,aa[b]);var Bc=[];Bc.push(new mxPoint(H+8.5,I+yd+10));aa[b].geometry.points=Bc;n.push(l.addCell(aa[b],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=+k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.45*d,.25*c,.3*d,.5*c),"part=1;fillColor=#ffffff");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);aa=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;");aa.geometry.relative=!0;aa.edge=!0;Ta(0,.5*c,.4*d,.5*c,aa,n,l,va,v,V);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=+k(a.Text);v.style+=h(v.style,a,e,v,q);var K=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;");K.geometry.relative=!0;K.edge=!0;Ta(.05*d,.5*c,.85*d,.5*c,K,n,l,va,v,V);var J=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;");J.geometry.relative=!0;J.edge=!0;Ta(.05*d,.5*c,.85*d,.15*c,J,n,l,+va,v,V);var ca=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;");ca.geometry.relative=!0;ca.edge=!0;Ta(.05*d,.5*c,.85*d,.85*c,ca,n,l,va,v,V);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);K=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;");+K.geometry.relative=!0;K.edge=!0;K.style+=U(a,e);Ta(.05*d,.5*c,.95*d,.5*c,K,n,l,va,v,V);J=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;");J.geometry.relative=!0;J.edge=!0;J.style+=U(a,e);Ta(.3*d,.1*c,.3*d,.5*c,J,n,l,va,v,V);ca=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;");+ca.geometry.relative=!0;ca.edge=!0;ca.style+=U(a,e);Ta(.7*d,.1*c,.7*d,.5*c,ca,n,l,va,v,V);var Ja=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;");Ja.geometry.relative=!0;Ja.edge=!0;Ja.style+=U(a,e);Ta(.5*d,.5*c,.5*d,.9*c,Ja,n,l,va,v,V);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,+e,v,q);g=new mxCell("",new mxGeometry(.2*d,.21*c,.16*d,.24*c),"part=1;fillColor=#ffffff;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);K=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;");K.geometry.relative=!0;K.edge=!0;Ta(.45*d,.33*c,.8*d,.33*c,K,n,l,va,v,V);m=new mxCell("",new mxGeometry(.64*d,.55*c,.16*d,.24*c),"part=1;fillColor=#ffffff;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);+J=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;");J.geometry.relative=!0;J.edge=!0;Ta(.55*d,.67*c,.2*d,.67*c,J,n,l,va,v,V);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.1*d,.15*c,.8*d,.7*c),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");g.vertex=!0;v.insert(g);g.style+=+h(g.style,a,e,g);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.04*d,.06*c,.18*d,.28*c),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.2*d,.56*c,.2*d,.32*c),"part=1;");m.vertex=!0;v.insert(m);m.value="A";m.style+="fontStyle=1;fontSize=13;";g.style+=h(g.style,a,e,g);K=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;");K.geometry.relative=!0;K.edge=!0;g.insertEdge(K,!1);m.insertEdge(K,!0);K.style+=h(K.style,a,e,K);Bc=[];Bc.push(new mxPoint(H+.13*d,I+.72*c));K.geometry.points=Bc;n.push(l.addCell(K,null,null,null,null));B=new mxCell("",new mxGeometry(.6*d,.06*c,.18*d,.28*c),"ellipse;fillColor=#808080;part=1;");B.vertex=!0;v.insert(B);B.style+=U(a,e)+Ec(a);B.style+=h(B.style,a,e,B);Y=new mxCell("",new mxGeometry(.76*+d,.56*c,.2*d,.32*c),"part=1;");Y.vertex=!0;v.insert(Y);Y.style+=U(a,e)+Xa(a,e,Y)+Ec(a)+be(a);Y.value="B";Y.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";Y.style+=h(Y.style,a,e,Y);J=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;");J.geometry.relative=!0;J.edge=!0;B.insertEdge(J,!1);Y.insertEdge(J,!0);J.style+=h(J.style,a,e,J);var df=[];df.push(new mxPoint(H+.69*d,I+.72*c));J.geometry.points=df;n.push(l.addCell(J,+null,null,null,null));ca=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");ca.geometry.relative=!0;ca.edge=!0;g.insertEdge(ca,!1);B.insertEdge(ca,!0);ca.style+=h(ca.style,a,e,ca);n.push(l.addCell(ca,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("1",new mxGeometry(.2*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");+g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("2",new mxGeometry(.45*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);B=new mxCell("3",new mxGeometry(.7*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);K=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");g.insertEdge(K,!1);m.insertEdge(K,!0);K.geometry.points=+[new mxPoint(H+.375*d,I+.15*c)];K.geometry.relative=!0;K.edge=!0;K.style+=h(K.style,a,e,K);n.push(l.addCell(K,null,null,null,null));J=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");m.insertEdge(J,!1);B.insertEdge(J,!0);J.geometry.points=[new mxPoint(H+.675*d,I+.15*c)];J.geometry.relative=!0;J.edge=!0;J.style+=h(J.style,a,e,J);n.push(l.addCell(J,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";+v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.3*d,.2*c,.4*d,.6*c),"shape=mxgraph.ios7.icons.clock;fillColor=#ffffff;flipH=1;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.38*d,.42*c,.24*d,.16*c),"part=1;fillColor=#aefe7d;");g.vertex=!0;v.insert(g);g.style+=+h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.38*d,0,.24*d,.16*c),"part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);B=new mxCell("",new mxGeometry(.76*d,.23*c,.24*d,.16*c),"");B.vertex=!0;v.insert(B);B.style=m.style;var Y=new mxCell("",new mxGeometry(.76*d,.61*c,.24*d,.16*c),"");Y.vertex=!0;v.insert(Y);Y.style=m.style;var Td=new mxCell("",new mxGeometry(.38*d,.84*c,.24*d,.16*c),"");Td.vertex=!0;v.insert(Td);Td.style=m.style;var Ud=new mxCell("",new mxGeometry(0,.61*c,.24*d,.16*c),"");+Ud.vertex=!0;v.insert(Ud);Ud.style=m.style;var Vd=new mxCell("",new mxGeometry(0,.23*c,.24*d,.16*c),"");Vd.vertex=!0;v.insert(Vd);Vd.style=m.style;K=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(K,!1);m.insertEdge(K,!0);K.edge=!0;K.style+=h(K.style,a,e,K);n.push(l.addCell(K,null,null,null,null));J=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(J,!1);B.insertEdge(J,!0);J.edge=!0;J.style+=h(J.style,a,e,J);n.push(l.addCell(J,null,null,null,null));+ca=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(ca,!1);Y.insertEdge(ca,!0);ca.edge=!0;ca.style+=h(ca.style,a,e,ca);n.push(l.addCell(ca,null,null,null,null));Ja=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Ja,!1);Td.insertEdge(Ja,!0);Ja.edge=!0;Ja.style+=h(Ja.style,a,e,Ja);n.push(l.addCell(Ja,null,null,null,null));var Cc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Cc,!1);Ud.insertEdge(Cc,!0);Cc.edge=!0;Cc.style+=+h(Cc.style,a,e,Cc);n.push(l.addCell(Cc,null,null,null,null));var Dc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Dc,!1);Vd.insertEdge(Dc,!0);Dc.edge=!0;Dc.style+=h(Dc.style,a,e,Dc);n.push(l.addCell(Dc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);K=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");+K.geometry.relative=!0;K.edge=!0;Ta(.05*d,.5*c,.6*d,.25*c,K,n,l,va,v,V);J=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");J.geometry.relative=!0;J.edge=!0;Ta(.05*d,.5*c,.6*d,.75*c,J,n,l,va,v,V);g=new mxCell("",new mxGeometry(.7*d,.1*c,.15*d,.32*c),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";+v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.25*d,.25*c,.5*d,.5*c),"shape=mxgraph.eip.control_bus;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);B=new mxCell("",+new mxGeometry(d-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);ca=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");ca.geometry.relative=!0;ca.edge=!0;g.insertEdge(ca,!1);B.insertEdge(ca,!0);ca.style+=h(ca.style,a,e,ca);ca.geometry.points=[new mxPoint(H+8.5,I+40)];n.push(l.addCell(ca,null,null,null,null));Y=new mxCell("",new mxGeometry(d-45,+c-20,20,20),"part=1;");Y.vertex=!0;v.insert(Y);Y.value=k(a.message_0);Y.style+=p(a.message_0,q);Y.style+=h(Y.style,a,e,Y,q);Ja=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Ja.geometry.relative=!0;Ja.edge=!0;g.insertEdge(Ja,!1);Y.insertEdge(Ja,!0);Ja.style+=h(Ja.style,a,e,Ja);Ja.geometry.points=[new mxPoint(H+8.5,I+c-10)];n.push(l.addCell(Ja,null,null,null,null));xd=a.HistoryMessages;ke=(c-75)/xd;m=[];aa=[];for(b=+0;b<xd;b++)yd=ke*(b+1)+30,m[b]=new mxCell("",new mxGeometry(d-20,yd,20,20),"part=1;"),m[b].vertex=!0,m[b].value=k(a["message_"+(b+1)]),m.style+=p(a["message_"+(b+1)],q),v.insert(m[b]),m[b].style+=h(m[b].style,a,e,m[b],q),aa[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),aa[b].geometry.relative=!0,aa[b].edge=!0,B.insertEdge(aa[b],!1),m[b].insertEdge(aa[b],!0),aa[b].style+=h(aa[b].style,a,e,aa[b]),Bc=[],Bc.push(new mxPoint(H++d-30,I+yd+10)),aa[b].geometry.points=Bc,n.push(l.addCell(aa[b],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);v.value="$$"+a.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>a.DoorAngle&&(v.style+="flipV=1;");v.style+=h(v.style,a,e,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=k(a);v.style+=h(v.style,a,e,v,q);v.style=v.style.replace("rotation=180;",+"");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<a.DoorAngle&&(v.style+="flipV=1;");v.style+=h(v.style,a,e,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=new mxCell("",new mxGeometry(0,0,d,.25*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=[];var ef=.02*d,le=(d-2*ef)/a.LightCount,ff=.8*le;for(b=0;b<a.LightCount;b++)m[b]=new mxCell("",new mxGeometry(ef+le*b+(le-ff)/2,.25*c,ff,.75*c),"ellipse;part=1;"),+m[b].vertex=!0,v.insert(m[b]),m[b].style+=h(m[b].style,a,e,m[b]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];var gf=d/a.SinkCount;for(b=0;b<a.SinkCount;b++)g[b]=new mxCell("",new mxGeometry(gf*b,0,gf,c),"part=1;shape=mxgraph.floorplan.sink_2;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var sb=.1*d/a.StallCount;g=new mxCell("",new mxGeometry(0,+0,sb,c),"fillColor=#000000;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);var Bb=(d-sb)/a.StallCount,me=[],zd=[],Ad=[],Bd=[];G=U(a,e);G=""==G?"#000000;":G.replace("stokreColor=","");var ne="part=1;fillColor="+G;ne+=h(ne,a,e,v);var oe=h("",a,e,v);for(b=0;b<a.StallCount;b++)me[b]=new mxCell("",new mxGeometry((b+1)*Bb,0,sb,c),ne),me[b].vertex=!0,v.insert(me[b]),Ad[b]=new mxCell("",new mxGeometry(sb+b*Bb+.05*(Bb-sb),c-.92*(Bb-sb),.9*(Bb-sb),.92*(Bb-sb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),+Ad[b].vertex=!0,v.insert(Ad[b]),Ad[b].style+=oe,zd[b]=new mxCell("",new mxGeometry(sb+b*Bb+.2*(Bb-sb),0,.6*(Bb-sb),.8*(Bb-sb)),"shape=mxgraph.floorplan.toilet;part=1;"),zd[b].vertex=!0,v.insert(zd[b]),zd[b].style+=oe,Bd[b]=new mxCell("",new mxGeometry(sb+b*Bb,.42*c,.15*(Bb-sb),.12*(Bb-sb)),"part=1;"),Bd[b].vertex=!0,v.insert(Bd[b]),Bd[b].style+=oe;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Wd="edgeStyle=none;endArrow=none;part=1;";G=U(a,e);G=""==G?"#000000;":G.replace("strokeColor=",+"");var Mc="shape=triangle;part=1;fillColor="+G;Mc+=h(Mc,a,e,v);K=new mxCell("",new mxGeometry(0,0,0,0),Wd);K.geometry.relative=!0;K.edge=!0;Ta(0,.5*c,.65*d,.5*c,K,n,l,va,v,V);var O=c/a.numLines;J=[];var Nc=[];for(b=0;b<a.numLines;b++)J[b]=new mxCell("",new mxGeometry(0,0,0,0),Wd),J[b].geometry.relative=!0,J[b].edge=!0,Ta(.65*d,.5*c,.96*d,(b+.5)*O,J[b],n,l,va,v,V),Nc[b]=new mxCell("",new mxGeometry(.95*d,(b+.2)*O,.05*d,.6*O),Mc),Nc[b].vertex=!0,v.insert(Nc[b]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";+Wd="edgeStyle=none;endArrow=none;part=1;";G=U(a,e);G=""==G?"#000000;":G.replace("strokeColor=","");Mc="shape=triangle;part=1;fillColor="+G;Mc+=h(Mc,a,e,v);O=c/a.numLines;J=[];Nc=[];for(b=0;b<a.numLines;b++)J[b]=new mxCell("",new mxGeometry(0,0,0,0),Wd),J[b].geometry.relative=!0,J[b].edge=!0,Ta(0,(b+.5)*O,.96*d,(b+.5)*O,J[b],n,l,va,v,V),Nc[b]=new mxCell("",new mxGeometry(.95*d,(b+.2)*O,.05*d,.6*O),Mc),Nc[b].vertex=!0,v.insert(Nc[b]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";+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;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=h(v.style,a,e,v,q);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";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);");v.style+=h(v.style,+a,e,v,q);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";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;";v.style+=h(v.style,a,e,v,q);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,.2*c,d,.6*c),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");+g.vertex=!0;v.insert(g);g.style+=P;g.style+=h(g.style,a,e,g);P="endSize=4;endArrow=block;endFill=1;";0==a.compressorType?(K=new mxCell("",new mxGeometry(0,0,0,0),""),K.geometry.relative=!0,K.edge=!0,K.style+=P,K.style+=h(K.style,a,e,K),Ta(0,0,0,.2*c,K,n,l,va,v,V),J=new mxCell("",new mxGeometry(0,0,0,0),""),J.geometry.relative=!0,J.edge=!0,J.style+=P,J.style+=h(J.style,a,e,J),Ta(d,.67*c,d,c,J,n,l,va,v,V)):(g.style+="flipH=1;",K=new mxCell("",new mxGeometry(0,0,0,0),""),K.geometry.relative=!0,K.edge=+!0,K.style+=P,K.style+=h(K.style,a,e,K),Ta(0,0,0,.33*c,K,n,l,va,v,V),J=new mxCell("",new mxGeometry(0,0,0,0),""),J.geometry.relative=!0,J.edge=!0,J.style+=P,J.style+=h(J.style,a,e,J),Ta(d,.8*c,d,c,J,n,l,va,v,V));1==a.centerLineType&&(ca=new mxCell("",new mxGeometry(0,0,0,0),""),ca.geometry.relative=!0,ca.edge=!0,ca.style+=P,ca.style+=h(ca.style,a,e,ca),Ta(.2*d,.5*c,.8*d,.5*c,ca,n,l,va,v,V));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=k(a.Text);+v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.2*d,.2*c,.6*d,.6*c),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":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;"}v.style+=h(v.style,a,e,v);"PEIndicator2Block"==f.Class||"PESharedIndicator2Block"==f.Class?(g=new mxCell("",+new mxGeometry(0,0,d,.5*d),"part=1;strokeColor=none;fillColor=none;"),g.vertex=!0,v.insert(g),g.value=k(a.TopText),g.style+=p(a.TopText,q),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,.5*d,d,.5*d),"part=1;strokeColor=none;fillColor=none;")):(g=new mxCell("",new mxGeometry(0,0,d,.5*c),"part=1;strokeColor=none;fillColor=none;"),g.vertex=!0,v.insert(g),g.value=k(a.TopText),g.style+=p(a.TopText,q),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,.5*c,d,.5*c),"part=1;strokeColor=none;fillColor=none;"));+m.vertex=!0;v.insert(m);m.value=k(a.BotText);m.style+=p(a.BotText,q);m.style+=h(m.style,a,e,m,q);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 pe=!1;"PEPoweredValveBlock"==f.Class?1!=a.poweredHandOperated&&(pe=!0):1!=+a.handOperated&&(pe=!0);if(pe){a=t(f).Properties;y=a.BoundingBox;var Sf=y.h;y.h="PEAngleValveBlock"==f.Class||"PEAngleGlobeValveBlock"==f.Class?.7*y.h:.6*y.h;v=new mxCell("",new mxGeometry(Math.round(.75*y.x+nc),Math.round(.75*(y.y+Sf-y.h)+oc),Math.round(.75*y.w),Math.round(.75*y.h)),"");v.vertex=!0;Id(v,f,l)}if("PEPoweredValveBlock"==f.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=h(v.style,a,e,v),1==a.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",+g=new mxCell("",new mxGeometry(.325*d,0,.35*d,.35*c),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),g.vertex=!0,v.insert(g),g.value=k(a.PoweredText),g.style+=(q?"":L(a.PoweredText)+X(a.PoweredText)+xa(a.PoweredText)+Ka(a.PoweredText)+Va(a.PoweredText)+Ca(a.PoweredText)+Ga(a.PoweredText))+"fontSize=6;"+qa(a.PoweredText),g.style+=h(g.style,a,e,g,q)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";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;")}v.style+=h(v.style,a,e,v,q);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,110),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),+Y.geometry.relative=!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v);break;case "UI2WindowBlock":v.value=k(a.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(q?"fontSize=13;":A(a.Title)+L(a.Title)+X(a.Title));1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,30),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Y.geometry.relative=+!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v,q);break;case "UI2DialogBlock":v.value=k(a.Text);v.style+=p(a.Text,q);g=new mxCell("",new mxGeometry(0,0,d,30),"part=1;resizeHeight=0;");g.vertex=!0;v.insert(g);g.value=k(a.Title);g.style+=p(a.Title,q);g.style+=h(g.style,a,e,g,q);m=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");m.geometry.relative=!0;m.geometry.offset=new mxPoint(-25,-10);m.vertex=+!0;g.insert(m);1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,30),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),+"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Y.geometry.relative=!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v);a.Text=null;break;case "UI2AccordionBlock":g=[];O=25;for(b=0;b<=a.Panels-1;b++)g[b]=b<a.Selected-1?new mxCell("",new mxGeometry(0,b*O,d,O),"part=1;fillColor=#000000;fillOpacity=25;"):b==a.Selected-1?+new mxCell("",new mxGeometry(0,b*O,d,O),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,c-(a.Panels-a.Selected)*O+(b-a.Selected)*O,d,O),"part=1;fillColor=#000000;fillOpacity=25;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Panel_"+(b+1)]),g[b].style+=p(a["Panel_"+(b+1)],q),0>g[b].style.indexOf(";align=")&&(g[b].style+="align=left;spacingLeft=5;");var Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",new mxGeometry(1,+0,20,c-a.Selected*O-20-(a.Panels-a.Selected)*O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-a.Selected*O-(a.Panels-a.Selected)*O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,a.Selected*O),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Da,m.style+=h(m.style,a,e,m));1==a.hScroll&&(B=1==a.vScroll?+new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20-(a.Panels-a.Selected)*O),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));Y=1==a.vScroll?new mxCell("",new mxGeometry(0,a.Selected*O,d-20,c-a.Selected*O-20-(a.Panels-a.Selected)*O),"part=1;fillColor=none;strokeColor=none;"):+new mxCell("",new mxGeometry(0,a.Selected*O,d-20,c-a.Selected*O-(a.Panels-a.Selected)*O),"part=1;fillColor=none;strokeColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Content_1);Y.style+=p(a.Content_1,q);!q&&0>Y.style.indexOf(";align=")&&(Y.style+="align=left;spacingLeft=5;");v.style+=h(v.style,a,e,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];O=25;var vb=3,ma=(d+vb)/(a.Tabs+1),Wa=new mxCell("",new mxGeometry(0,O,d,c-O),"part=1;");Wa.vertex=!0;v.insert(Wa);+Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(10+b*ma,0,ma-vb,O),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(10+b*ma,0,ma-vb,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ma-vb,O),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=k(a["Tab_"+(b+1)]),m[b].style+=p(a["Tab_"+(b+1)],q),0>m[b].style.indexOf(";align=")&&+(m[b].style+="align=left;spacingLeft=2;"),m[b].style+=h(m[b].style,a,e,m[b]);Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),m.geometry.relative=!0,m.geometry.offset=+new mxPoint(-20,O),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Da,m.style+=h(m.style,a,e,m));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;+case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];O=25;vb=3;ma=(d+vb)/a.Tabs;Wa=new mxCell("",new mxGeometry(0,O,d,c-O),"part=1;");Wa.vertex=!0;v.insert(Wa);Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(b*ma,0,ma-vb,O),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(b*ma,0,ma-vb,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",+new mxGeometry(0,0,ma-vb,O),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=k(a["Tab_"+(b+1)]),m[b].style+=p(a["Tab_"+(b+1)],q),m[b].style+=h(m[b].style,a,e,m[b],q),0>m[b].style.indexOf(";align=")&&(m[b].style+="align=left;spacingLeft=2;");Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):+new mxCell("",new mxGeometry(1,0,20,c-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,O),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Da,m.style+=h(m.style,a,e,m));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),+B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];vb=3;O=25+vb;ma=80;qc=10;Wa=new mxCell("",new mxGeometry(ma,0,d-ma,c),"part=1;");Wa.vertex=!0;v.insert(Wa);Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(0,qc+b*O,ma,O-vb),""),m[b].vertex=!0,v.insert(m[b]),m[b].value=k(a["Tab_"+(b++1)]),m[b].style+=p(a["Tab_"+(b+1)],q),m[b].style+=h(m[b].style,a,e,m[b],q)):(g[b]=new mxCell("",new mxGeometry(0,qc+b*O,ma,O-vb),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ma,O-vb),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].value=k(a["Tab_"+(b+1)]),m[b].style+=p(a["Tab_"+(b+1)],q)),0>m[b].style.indexOf(";align=")&&(m[b].style+="align=left;spacingLeft=2;"),m[b].style+=h(m[b].style,a,e,m[b]);+Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(m=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;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,0),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=+Da,m.style+=h(m.style,a,e,m));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(ma,1,d-20-ma,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(ma,1,d-ma,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";O=c/+a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(0,b*O+.5*O-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(G=U(a,e),G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,+6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=G,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";ma=d/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(b*ma,.5*c-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=+p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(G=U(a,e),G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=G,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";O=c/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(0,+b*O+.5*O-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected&&a.Selected==b+1&&(G=U(a,e),G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"ellipse;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=G,m[b].style+=+h(m[b].style,a,e,m[b]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";ma=d/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(b*ma,.5*c-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected&&a.Selected==b+1&&(G=U(a,e),+G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=G,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=k(a.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";+"UI2VSliderBlock"==f.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*a.ScrollVal+";";v.style+=h(v.style,a,e,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";g=new mxCell("",new mxGeometry(0,0,.6*d,c),"part=1;");g.vertex=!0;v.insert(g);g.value=k(a.Date);g.style+=p(a.Date,q);v.style+=h(v.style,a,e,v);G=U(a,e);G=G.replace("strokeColor","fillColor");""==G&&(G="fillColor=#000000;");m=new mxCell("",new mxGeometry(.75*d,0,.25*d,c),"part=1;shape=mxgraph.gmdl.calendar;");+m.vertex=!0;v.insert(m);m.style+=G;m.style+=h(m.style,a,e,m);break;case "UI2SearchBlock":v.value=k(a.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+p(a.Search,q);v.style+=h(v.style,a,e,v,q);break;case "UI2NumericStepperBlock":G=U(a,e);G=G.replace("strokeColor","fillColor");""==G&&(G="fillColor=#000000;");v.value=k(a.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"++G+p(a.Number,q);v.style+=h(v.style,a,e,v,q);break;case "UI2TableBlock":try{$a=Pa(a.FillColor);var Cd=Pa(a.LineColor);Kc="";var Xd=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Dd='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Cd+';">',jc=a.Data.split("\n");var hf=a.AltRow&&"default"!=a.AltRow?"none"==a.AltRow?$a:Pa(a.AltRow):Md($a,.95);Gc=a.Header&&"default"!=a.Header?"none"==a.Header?hf:Pa(a.Header):Md($a,.8);if("full"==a.GridLines)Kc="border: 1px solid "++Cd,Xd=19;else if("row"==a.GridLines)Kc="border-bottom: 1px solid "+Cd,Xd=19;else if("default"==a.GridLines||"column"==a.GridLines)Kc="border-right: 1px solid "+Cd;jc=jc.filter(function(Ua){return Ua});/^\{[^}]*\}$/.test(jc[jc.length-1])&&jc.pop();wc=jc[0].split(",").length;var jf="";for(M=0;M<wc-1;M++)jf+=" , ";for(b=jc.length;b<Math.ceil(c/20);b++)jc.push(jf);for(b=0;b<jc.length;b++){Dd+='<tr style="height: '+Xd+"px;background:"+(0==b?Gc:b%2?$a:hf)+'">';var kf=jc[b].split(",");for(M=0;M<kf.length;M++){var Ed=+a["Cell_"+b+"_"+M],Tf=Ed&&Ed.m&&Ed.m[0]&&"c"==Ed.m[0].n?Pa(Ed.m[0].v):Cd;Dd+='<td style="height: '+Xd+"px;color:"+Tf+";"+Kc+'">'+mxUtils.htmlEntities(kf[M])+"</td>"}Dd+="</tr>"}Dd+="</table>";v.value=Dd}catch(Ua){console.log(Ua)}break;case "UI2ButtonBarBlock":v.style+=h(v.style,a,e,v);g=[];m=[];ma=d/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"strokeColor=none;"),+g[b].vertex=!0,v.insert(g[b]),g[b].style+=g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ma,c),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=k(a["Button_"+(b+1)]),m[b].style+=p(a["Button_"+(b+1)],q),m[b].style+=h(m[b].style,a,e,m[b],q);break;case "UI2VerticalButtonBarBlock":v.style+=h(v.style,a,e,v);g=[];m=[];O=c/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(0,b*O,d,O),""),m[b].vertex=!0,v.insert(m[b])):+(g[b]=new mxCell("",new mxGeometry(0,b*O,d,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,d,O),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=k(a["Button_"+(b+1)]),m[b].style+=p(a["Button_"+(b+1)],q),m[b].style+=h(m[b].style,a,e,m[b],q);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];m=[];ma=d/a.Links;for(b=0;b<a.Links;b++)0!=b?+(m[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),m[b].style+=h(m[b].style,a,e,m[b])):m[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"fillColor=none;strokeColor=none;"),m[b].vertex=!0,v.insert(m[b]),m[b].value=k(a["Link_"+(b+1)]),m[b].style+=p(a["Link_"+(b+1)],q);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];m=[];ma=d/a.Links;for(b=0;b<a.Links;b++)g[b]=new mxCell("",new mxGeometry(b*+ma,0,ma,c),"fillColor=none;strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Link_"+(b+1)]),g[b].style+=p(a["Link_"+(b+1)],q);for(b=1;b<a.Links;b++)m[b]=new mxCell("",new mxGeometry(b/a.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),m[b].geometry.relative=!0,m[b].geometry.offset=new mxPoint(-3,-5),m[b].vertex=!0,v.insert(m[b]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);g=[];ma=d/(a.Buttons+1);for(b=0;b<=a.Buttons-1;b++)g[b]=b!=a.Selected-+1?new mxCell("",new mxGeometry(0,0,ma,c),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,ma,c),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),g[b].geometry.relative=!0,g[b].geometry.offset=new mxPoint(b*ma,0),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["MenuItem_"+(b+1)]),g[b].style+=p(a["MenuItem_"+(b+1)],q);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+p(a.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";+break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+p(a.Text_prev);v.value=k(a.Text_prev)+" ";for(b=0;b<a.Links;b++)v.value+=k(a["Link_"+(b+1)])+" ";v.value+=k(a.Text_next);break;case "UI2ContextMenuBlock":v.style+=h(v.style,a,e,v);F=[];cb=[];var bd=[];O=c/a.Lines;P=null;for(b=0;b<a.Lines;b++)null!=a["Item_"+(b+1)]&&(null==P&&(P=""+A(a["Item_"+(b+1)])+L(a["Item_"+(b+1)])+X(a["Item_"+(b+1)])),F[b]=new mxCell("",new mxGeometry(0,b*c/a.Lines,d,O),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),+F[b].vertex=!0,v.insert(F[b]),F[b].style+=P,F[b].value=k(a["Item_"+(b+1)])),null!=a.Icons[b+1]&&null!=F[b]&&("dot"==a.Icons[b+1]?(cb[b]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),cb[b].geometry.offset=new mxPoint(6,-4)):"check"==a.Icons[b+1]&&(cb[b]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),cb[b].geometry.offset=new mxPoint(6.5,-4)),null!=cb[b]&&(cb[b].geometry.relative=!0,cb[b].vertex=!0,F[b].insert(cb[b]),G=U(a,e),+G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),cb[b].style+=G)),null!=a["Shortcut_"+(b+1)]&&(null==P&&(P=""+A(a["Shortcut_"+(b+1)])+L(a["Shortcut_"+(b+1)])+X(a["Shortcut_"+(b+1)])),bd[b]=new mxCell("",new mxGeometry(.6*d,b*c/a.Lines,.4*d,O),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),bd[b].vertex=!0,v.insert(bd[b]),bd[b].style+=P,bd[b].value=k(a["Shortcut_"+(b+1)])),null!=a.Dividers[b+1]&&(F[b]=new mxCell("",new mxGeometry(.05*d,b*c/a.Lines,.9*d,O),+"shape=line;strokeWidth=1;"),F[b].vertex=!0,v.insert(F[b]),F[b].style+=U(a,e));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*a.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=k(a.Tip||a.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+a.RoundCorners+";"+p(a.Tip||a.Text,q);v.style+=h(v.style,a,e,v,q);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=+k(a.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+p(a.Txt,q);v.style+=h(v.style,a,e,v,q);break;case "UI2AlertBlock":v.value=k(a.Txt);v.style+=p(a.Txt,q);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,d,30),"part=1;resizeHeight=0;");g.vertex=!0;v.insert(g);g.value=k(a.Title);g.style+=p(a.Title,q);g.style+=h(g.style,a,e,g,q);m=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");m.geometry.relative=!0;m.geometry.offset=+new mxPoint(-25,-10);m.vertex=!0;g.insert(m);var Uf=45*a.Buttons+(10*a.Buttons-1);B=[];for(b=0;b<a.Buttons;b++)B[b]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),B[b].geometry.relative=!0,B[b].geometry.offset=new mxPoint(.5*-Uf+55*b,-40),B[b].vertex=!0,v.insert(B[b]),B[b].value=k(a["Button_"+(b+1)]),B[b].style+=p(a["Button_"+(b+1)],q),B[b].style+=h(B[b].style,a,e,B[b],q);break;case "UMLClassBlock":if(0==a.Simple){P=ta(a,e);Ra=Math.round(.75*a.TitleHeight)||25;P=P.replace("fillColor",+"swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+P+"startSize="+Ra+";"+p(a.Title,q);v.style+=h(v.style,a,e,v,q);F=[];var qe=[],kb=Ra/c;Kb=Ra;for(b=0;b<=a.Attributes;b++)0<b&&(qe[b]=new mxCell("",new mxGeometry(0,Kb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),+Kb+=8,qe[b].vertex=!0,v.insert(qe[b])),O=0,0==a.Attributes?O=b=1:b<a.Attributes?(O=a["Text"+(b+1)+"Percent"],kb+=O):O=1-kb,dc=Math.round((c-Ra)*O)+(a.ExtraHeightSet&&1==b?.75*a.ExtraHeight:0),F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;whiteSpace=wrap;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),Kb+=dc,F[b].vertex=!0,v.insert(F[b]),F[b].style+=+P+Xa(a,e,F[b])+p(a["Text"+(b+1)],q),F[b].value=k(a["Text"+(b+1)])}else v.value=k(a.Title),v.style+="align=center;",v.style+=p(a.Title,q),v.style+=h(v.style,a,e,v,q);break;case "ERDEntityBlock":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+P+"startSize="+Ra++";"+p(a.Name,q);v.style+=h(v.style,a,e,v,q);a.ShadedHeader?(P=Pa(a.FillColor),fe=Md(P,.85),v.style+="fillColor="+fe+";"):v.style+=ta(a,e);F=[];kb=Ra/c;Kb=Ra;for(b=0;b<a.Fields;b++)O=0,dc=.75*a["Field"+(b+1)+"_h"],F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),Kb+=dc,F[b].vertex=!0,v.insert(F[b]),F[b].style+=+P+p(a["Field"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;opacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]);break;case "ERDEntityBlock2":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+P+"startSize="+Ra+";"+p(a.Name,q);v.style=a.ShadedHeader?v.style++"fillColor=#e0e0e0;":v.style+ta(a,e);v.style+=h(v.style,a,e,v,q);F=[];var la=[];kb=Ra;var wb=30;null!=a.Column1&&(wb=.75*a.Column1);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Key"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),la[b].vertex=!0,v.insert(la[b]),la[b].style+=P+p(a["Key"+(b+1)],q),la[b].style=+1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Key"+(b+1)]),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb,.75*a["Field"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Field"++(b+1)],q),v.style+=h(v.style,a,e,v),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]),kb+=.75*a["Key"+(b+1)+"_h"];break;case "ERDEntityBlock3":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+P+"startSize="+Ra+";"+p(a.Name);v.style=+a.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ta(a,e);v.value=k(a.Name);v.style+=h(v.style,a,e,v,q);F=[];la=[];kb=Ra;wb=30;null!=a.Column1&&(wb=.75*a.Column1);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Field"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),la[b].vertex=!0,v.insert(la[b]),la[b].style+=+P+p(a["Field"+(b+1)],q),la[b].style=1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Field"+(b+1)]),la[b].style+=h(la[b].style,a,e,la[b],q),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb,.75*a["Type"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),+F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Type"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Type"+(b+1)]),F[b].style+=h(F[b].style,a,e,F[b],q),kb+=.75*a["Field"+(b+1)+"_h"];break;case "ERDEntityBlock4":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"++P+"startSize="+Ra+";"+p(a.Name);v.style=a.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ta(a,e);v.value=k(a.Name);v.style+=h(v.style,a,e,v,q);F=[];la=[];var xb=[];kb=Ra;wb=30;var Yd=40;null!=a.Column1&&(wb=.75*a.Column1);null!=a.Column2&&(Yd=.75*a.Column2);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Key"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),+la[b].vertex=!0,v.insert(la[b]),la[b].style+=P+p(a["Key"+(b+1)],q),la[b].style=1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Key"+(b+1)]),la[b].style+=h(la[b].style,a,e,la[b],q),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb-Yd,.75*a["Field"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),+F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Field"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]),F[b].style+=h(F[b].style,a,e,F[b],q),xb[b]=new mxCell("",new mxGeometry(d-Yd,kb,Yd,.75*a["Type"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),+xb[b].vertex=!0,v.insert(xb[b]),xb[b].style+=P+p(a["Type"+(b+1)],q),xb[b].style=1==a.AltRows&&0!=b%2?xb[b].style+"fillColor=#000000;fillOpacity=5;":xb[b].style+("fillColor=none;"+Xa(a,e,xb[b])),xb[b].value=k(a["Type"+(b+1)]),xb[b].style+=h(xb[b].style,a,e,xb[b],q),kb+=.75*a["Key"+(b+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Aa("application_system",d,c,v,a,e);break;case "GCPServiceCardAuthorizationBlock":Aa("internal_payment_authorization",d,c,v,a,e);break;case "GCPServiceCardBlankBlock":Aa("blank",+d,c,v,a,e);break;case "GCPServiceCardReallyBlankBlock":Aa("blank",d,c,v,a,e);break;case "GCPServiceCardBucketBlock":Aa("bucket",d,c,v,a,e);break;case "GCPServiceCardCDNInterconnectBlock":Aa("google_network_edge_cache",d,c,v,a,e);break;case "GCPServiceCardCloudDNSBlock":Aa("blank",d,c,v,a,e);break;case "GCPServiceCardClusterBlock":Aa("cluster",d,c,v,a,e);break;case "GCPServiceCardDiskSnapshotBlock":Aa("persistent_disk_snapshot",d,c,v,a,e);break;case "GCPServiceCardEdgePopBlock":Aa("google_network_edge_cache",+d,c,v,a,e);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Aa("frontend_platform_services",d,c,v,a,e);break;case "GCPServiceCardGatewayBlock":Aa("gateway",d,c,v,a,e);break;case "GCPServiceCardGoogleNetworkBlock":Aa("google_network_edge_cache",d,c,v,a,e);break;case "GCPServiceCardImageServicesBlock":Aa("image_services",d,c,v,a,e);break;case "GCPServiceCardLoadBalancerBlock":Aa("network_load_balancer",d,c,v,a,e);break;case "GCPServiceCardLocalComputeBlock":Aa("dedicated_game_server",d,c,v,+a,e);break;case "GCPServiceCardLocalStorageBlock":Aa("persistent_disk_snapshot",d,c,v,a,e);break;case "GCPServiceCardLogsAPIBlock":Aa("logs_api",d,c,v,a,e);break;case "GCPServiceCardMemcacheBlock":Aa("memcache",d,c,v,a,e);break;case "GCPServiceCardNATBlock":Aa("nat",d,c,v,a,e);break;case "GCPServiceCardPaymentFormBlock":Aa("external_payment_form",d,c,v,a,e);break;case "GCPServiceCardPushNotificationsBlock":Aa("push_notification_service",d,c,v,a,e);break;case "GCPServiceCardScheduledTasksBlock":Aa("scheduled_tasks",+d,c,v,a,e);break;case "GCPServiceCardServiceDiscoveryBlock":Aa("service_discovery",d,c,v,a,e);break;case "GCPServiceCardSquidProxyBlock":Aa("squid_proxy",d,c,v,a,e);break;case "GCPServiceCardTaskQueuesBlock":Aa("task_queues",d,c,v,a,e);break;case "GCPServiceCardVirtualFileSystemBlock":Aa("virtual_file_system",d,c,v,a,e);break;case "GCPServiceCardVPNGatewayBlock":Aa("gateway",d,c,v,a,e);break;case "GCPInputDatabase":Ha("database",1,.9,d,c,v,a,e);break;case "GCPInputRecord":Ha("record",1,.66,d,c,v,+a,e);break;case "GCPInputPayment":Ha("payment",1,.8,d,c,v,a,e);break;case "GCPInputGateway":Ha("gateway_icon",1,.44,d,c,v,a,e);break;case "GCPInputLocalCompute":Ha("compute_engine_icon",1,.89,d,c,v,a,e);break;case "GCPInputBeacon":Ha("beacon",.73,1,d,c,v,a,e);break;case "GCPInputStorage":Ha("storage",1,.8,d,c,v,a,e);break;case "GCPInputList":Ha("list",.89,1,d,c,v,a,e);break;case "GCPInputStream":Ha("stream",1,.82,d,c,v,a,e);break;case "GCPInputMobileDevices":Ha("mobile_devices",1,.73,d,c,v,a,e);break;+case "GCPInputCircuitBoard":Ha("circuit_board",1,.9,d,c,v,a,e);break;case "GCPInputLive":Ha("live",.74,1,d,c,v,a,e);break;case "GCPInputUsers":Ha("users",1,.63,d,c,v,a,e);break;case "GCPInputLaptop":Ha("laptop",1,.66,d,c,v,a,e);break;case "GCPInputApplication":Ha("application",1,.8,d,c,v,a,e);break;case "GCPInputLightbulb":Ha("lightbulb",.7,1,d,c,v,a,e);break;case "GCPInputGame":Ha("game",1,.54,d,c,v,a,e);break;case "GCPInputDesktop":Ha("desktop",1,.9,d,c,v,a,e);break;case "GCPInputDesktopAndMobile":Ha("desktop_and_mobile",+1,.66,d,c,v,a,e);break;case "GCPInputWebcam":Ha("webcam",.5,1,d,c,v,a,e);break;case "GCPInputSpeaker":Ha("speaker",.7,1,d,c,v,a,e);break;case "GCPInputRetail":Ha("retail",1,.89,d,c,v,a,e);break;case "GCPInputReport":Ha("report",1,1,d,c,v,a,e);break;case "GCPInputPhone":Ha("phone",.64,1,d,c,v,a,e);break;case "GCPInputBlank":Ha("transparent",1,1,d,c,v,a,e);break;case "PresentationFrameBlock":0==a.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=p(a.Text),v.value=k(a.Text),v.style+=h(v.style,+a,e,v,q));break;case "SVGPathBlock2":try{var Vf=a.LineWidth,Wf=a.LineColor,lf=a.FillColor,mf=a.DrawData.Data,Zd='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',re=null;for(b=0;b<mf.length;b++){var kc=mf[b],Xf=kc.a,Yf=("prop"==kc.w||null==kc.w?Vf:kc.w)/Math.min(d,c)*.75;Jc="prop"==kc.s||null==kc.s?Wf:kc.s;G="prop"==kc.f||null==kc.f?lf:kc.f;"object"==typeof G&&(null!=G.url&&(re="shape=image;image="+r(G.url)+";"),G=Array.isArray(G.cs)?G.cs[0].c:lf);Zd+='<path d="'+Xf+'" fill="'+G+'" stroke="'++Jc+'" stroke-width="'+Yf+'"/>'}Zd+="</svg>";v.style=re?re:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(Zd):Base64.encode(Zd,!0))+";"}catch(Ua){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var nf=0==C.indexOf("Bracket")?"size=0;arcSize=50;":"",of=h(v.style,a,e,v,q);bb=mc(a,e,v);v.style="group;"+bb;var se=Math.min(.14*(bb?d:c),100),te=+new mxCell("",new mxGeometry(0,0,se,c),"shape=curlyBracket;rounded=1;"+nf+of);te.vertex=!0;te.geometry.relative=!0;var ue=new mxCell("",new mxGeometry(1-se/d,0,se,c),"shape=curlyBracket;rounded=1;flipH=1;"+nf+of);ue.vertex=!0;ue.geometry.relative=!0;v.insert(te);v.insert(ue);break;case "BPMNTextAnnotation":case "NoteBlock":a.InsetMargin=null;v.value=k(a.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=h(v.style,a,e,v,q);0>v.style.indexOf("verticalAlign")&&(v.style+=+"verticalAlign=middle;");var cd=new mxCell("",new mxGeometry(0,0,8,c),"shape=partialRectangle;right=0;fillColor=none;");cd.geometry.relative=!0;cd.vertex=!0;cd.style+=h(cd.style,a,e,v,q);v.insert(cd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{bb=mc(a,e,v);v.style="group;"+bb;if(null!=a.Stencil){null==a.Stencil.id&&(a.Stencil.id="$$tmpId$$",+Ke(a.Stencil.id,a.Stencil));var Cb=LucidImporter.stencilsMap[a.Stencil.id],Zf=-Cb.x/Cb.w,$f=-Cb.y/Cb.h;for(b=0;b<Cb.stencils.length;b++){var db=Cb.stencils[b];V=new mxCell("",new mxGeometry(Zf,$f,d,c),"shape="+db.shapeStencil+";");var ag=db.FillColor,bg=db.LineColor,cg=db.LineWidth;"prop"==db.FillColor&&(db.FillColor=a.FillColor);null==db.FillColor&&(db.FillColor="#ffffff00");"prop"==db.LineColor&&(db.LineColor=a.LineColor);null==db.LineColor&&(db.LineColor="#ffffff00");"prop"==db.LineWidth&&(db.LineWidth=+a.LineWidth);V.style+=h(V.style,db,e,V,q);db.FillColor=ag;db.LineColor=bg;db.LineWidth=cg;G=a.FillColor;var dg=a.LineColor,eg=a.LineWidth;a.FillColor=null;a.LineColor=null;a.LineWidth=null;V.style+=h(V.style,a,e,V,q);a.FillColor=G;a.LineColor=dg;a.LineWidth=eg;V.vertex=!0;V.geometry.relative=!0;v.insert(V)}var Lb=0;for(bb=a.Rotation;a["t"+Lb];){var pf=a["t"+Lb],qf=k(pf);if(qf){W=new mxCell(qf,new mxGeometry(0,0,d,c),"strokeColor=none;fillColor=none;overflow=visible;");a.Rotation=0;W.style+=h(W.style,+pf,e,W,q);W.style+=h(W.style,a,e,W,q);a.Rotation=bb;if(null!=Cb.text&&null!=Cb.text["t"+Lb]){var Sa=Cb.text["t"+Lb];Sa.Rotation=bb+(Sa.rotation?Sa.rotation:0)+(a["t"+Lb+"_TRotation"]?a["t"+Lb+"_TRotation"]:0)+(a["t"+Lb+"_TAngle"]?a["t"+Lb+"_TAngle"]:0);W.style+=h(W.style,Sa,e,W,q);var Mb=W.geometry;Sa.w&&(Mb.width*=Sa.w/Cb.w);Sa.h&&(Mb.height*=Sa.h/Cb.h);Sa.x&&(Mb.x=Sa.x/Cb.w);Sa.y&&(Mb.y=Sa.y/Cb.h);Sa.fw&&(Mb.width*=.75*Sa.fw/d);Sa.fh&&(Mb.height*=.75*Sa.fh/c);Sa.fx&&(Mb.x=(0<Sa.fx?1:0)+.75*Sa.fx/+d);Sa.fy&&(Mb.y=(0<Sa.fy?1:0)+.75*Sa.fy/c)}W.vertex=!0;W.geometry.relative=!0;v.insert(W)}Lb++}}if(a.FillColor&&a.FillColor.url){var Fd=new mxCell("",new mxGeometry(0,0,d,c),"shape=image;html=1;");Fd.style+=Ae({},{},a.FillColor.url);Fd.vertex=!0;Fd.geometry.relative=!0;v.insert(Fd)}}catch(Ua){console.log("Freehand error",Ua)}break;case "RightArrowBlock":var ve=a.Head*c/d;v.style="shape=singleArrow;arrowWidth="+(1-2*a.Notch)+";arrowSize="+ve;v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "DoubleArrowBlock":ve=+a.Head*c/d;v.style="shape=doubleArrow;arrowWidth="+(1-2*a.Notch)+";arrowSize="+ve;v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(C){case "VPCSubnet2017":var dd="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var ed=30;var fd=35;break;case "VirtualPrivateCloudContainer2017":dd="shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";+ed=52;fd=36;break;case "ElasticBeanStalkContainer2017":dd="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";ed=30;fd=41;break;case "EC2InstanceContents2017":dd="shape=mxgraph.aws3.instance;fillColor=#F58536;";ed=40;fd=41;break;case "AWSCloudContainer2017":dd="shape=mxgraph.aws3.cloud;fillColor=#F58536;";ed=52;fd=36;break;case "CorporateDataCenterContainer2017":dd="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",ed=30,fd=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";+v.value=k(a);v.style+=h(v.style,a,e,v,q);v.geometry.y+=20;v.geometry.height-=20;cb=new mxCell("",new mxGeometry(20,-20,ed,fd),dd);cb.vertex=!0;v.insert(cb);break;case "FlexiblePolygonBlock":var Oc=['<shape strokewidth="inherit"><foreground>'];Oc.push("<path>");for(M=0;M<a.Vertices.length;M++)ya=a.Vertices[M],0==M?Oc.push('<move x="'+100*ya.x+'" y="'+100*ya.y+'"/>'):Oc.push('<line x="'+100*ya.x+'" y="'+100*ya.y+'"/>');Oc.push("</path>");Oc.push("<fillstroke/>");Oc.push("</foreground></shape>");v.style=+"shape=stencil("+Graph.compress(Oc.join(""))+");";v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "InfographicsBlock":var rf=a.ShapeData_1.Value,we=a.ShapeData_2.Value-rf,xe=a.ShapeData_3.Value-rf,$d=a.ShapeData_4.Value*d/200;Lb="ProgressBar"==a.InternalStencilId?4:5;$a=a["ShapeData_"+Lb].Value;$a="=fillColor()"==$a?a.FillColor:$a;var gd=a["ShapeData_"+(Lb+1)].Value;switch(a.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+$d+";strokeColor=none;fillColor="+Pa(gd)++";"+hc(gd,"fillOpacity");v.style+=h(v.style,a,e,v,q);var Ma=new mxCell("",new mxGeometry(0,0,d,c),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+xe/we+";arcWidth="+$d/d*2+";strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity"));Ma.style+=h(Ma.style,a,e,Ma,q);Ma.vertex=!0;Ma.geometry.relative=1;v.insert(Ma);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var sf=xe/we/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+sf+";arcWidth="++2*$d/d+";strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity");a.Rotation-=Math.PI/2;v.style+=h(v.style,a,e,v,q);Ma=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-sf)+";arcWidth="+2*$d/d+";strokeColor=none;flipH=1;fillColor="+Pa(gd)+";"+hc(gd,"fillOpacity"));a.Rotation+=Math.PI;Ma.style+=h(Ma.style,a,e,Ma,q);Ma.vertex=!0;Ma.geometry.relative=1;v.insert(Ma);break;case "ProgressBar":v.style="strokeColor=none;fillColor="++Pa(gd)+";"+hc(gd,"fillOpacity"),v.style+=h(v.style,a,e,v,q),Ma=new mxCell("",new mxGeometry(0,0,d*xe/we,c),"strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity")),Ma.style+=h(Ma.style,a,e,Ma,q),Ma.vertex=!0,Ma.geometry.relative=1,v.insert(Ma)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(a.Text&&a.Text.m){var ae=a.Text.m,ye=!1,ze=!1;for(b=0;b<ae.length;b++){var hd=ae[b];ye||"mt"!=hd.n?ze||"il"!=hd.n||(hd.v=17+(hd.v||0),ze=!0):(hd.v=17+(hd.v||0),ye=!0)}ye||+ae.push({s:0,n:"mt",v:17});ze||ae.push({s:0,n:"il",v:17})}v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "PersonRoleBlock":try{P=ta(a,e);Ra=c/2;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+P+"startSize="+Ra+";spacingLeft=3;spacingRight=3;fontStyle=0;"+p(a.Role,q);v.style+=h(v.style,a,e,+v,q);var vc=new mxCell("",new mxGeometry(0,c/2,d,c/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");vc.value=k(a.Name);vc.vertex=!0;v.insert(vc);vc.style+=p(a.Name,q);vc.style+=h(vc.style,a,e,vc,q)}catch(Ua){console.log(Ua)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(a.Title&&a.Title.t&&a.Text&&a.Text.t)try{var tf=v.geometry,uf=new mxCell(k(a.Title),new mxGeometry(0,tf.height+4,tf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");+uf.vertex=!0;v.insert(uf);v.style+=p(a.Title,q)}catch(Ua){console.log(Ua)}Ge(v,a);Be(v,a,l);a.Hidden&&(v.visible=!1);return v}function Ge(f,n){if(n.Text_TRotation||n.TextRotation)try{var l=mxUtils.toDegree(n.Text_TRotation||0)+mxUtils.toDegree(n.TextRotation||0);if(!isNaN(l)&&0!=l&&f.value){var e=f.geometry.width,a=f.geometry.height,y=e,d=a,c=0,H=0;if(-90==l||-270==l){y=a;d=e;var I=(a-e)/2;c=-I/e;H=I/a}l+=mxUtils.toDegree(n.Rotation);var C=f.style.split(";").filter(function(Q){return 0>Q.indexOf("fillColor=")&&+0>Q.indexOf("strokeColor=")&&0>Q.indexOf("rotation=")}).join(";"),ba=new mxCell(f.value,new mxGeometry(c,H,y,d),C+"fillColor=none;strokeColor=none;rotation="+l+";");f.value=null;ba.geometry.relative=!0;ba.vertex=!0;f.insert(ba)}}catch(Q){console.log(Q)}}function Je(f,n,l,e,a){function y(yb,Ob){var Ia="";try{for(var eb=0;eb<yb.text.length;eb++){var Fc=yb.text[eb];if(Fc[0]=="t_"+Ob){for(var wc in Fc[1]){var xc=Fc[1][wc];if(xc)switch(wc){case "font":Ia+=w(xc);break;case "bold":Ia+="font-weight: bold;";+break;case "italic":Ia+="font-style: italic;";break;case "underline":Ia+="text-decoration: underline;";break;case "size":Ia+="font-size:"+x(.75*xc)+"px;";break;case "color":Ia+="color:"+gc(xc).substring(0,7)+";";break;case "fill":Ia+="background-color:"+gc(xc).substring(0,7)+";";break;case "align":Ia+="text-align:"+xc+";"}}break}}}catch(Nd){}return Ia}try{var d=function(yb,Ob,Ia){yb=fa+yb;W[yb]=Ob;Ob="";for(var eb=0;eb<C.length;eb++)Ob+='<div style="'+S[eb]+'">'+(Ia[C[eb]]||" ")+"</div>";eb=+mxUtils.getSizeForString(Ob);Ia=r(Ia.Image||Ia["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Ia=new mxCell(Ob,new mxGeometry(0,0,eb.width+ha,eb.height+wa),Z+(ia?Ia:""));Ia.vertex=!0;a[yb]=Ia;e.addCell(Ia,I)},c=n.OrgChartBlockType,H=n.Location,I=new mxCell("",new mxGeometry(.75*H.x,.75*H.y,200,100),"group");I.vertex=!0;e.addCell(I);var C=n.FieldNames,ba=n.LayoutSettings,Q=n.BlockItemDefaultStyle||+{props:{}},T=n.EdgeItemDefaultStyle,W={},fa=(f||Date.now())+"_";4==c&&(Q.props.LineWidth=0);var S=[],ha=25,wa=40,ia=!0,Z=h("",Q.props,{},I,!0);0==c?(Z+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",wa+=54):1==c||2==c?(Z+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",ha+=54):3<=c&&(ia=!1);for(f=0;f<C.length;f++)S.push(y(Q,C[f]));if(l.Items)for(var ua=l.Items.n,pa=0;pa<ua.length;pa++){var ra=ua[pa];d(ra.pk,+ra.ie[0]?ra.ie[0].nf:null,ra.f)}else{var b=n.ContractMap.derivative;if(null==b){var na=n.ContractMap.c.People;var Na=na.id;Na=Na.substr(0,Na.lastIndexOf("_"));for(f=0;f<C.length;f++)C[f]=na.f[C[f]]||C[f]}else for(pa=0;pa<b.length;pa++)if("ForeignKeyGraph"==b[pa].type)Na=b[pa].c[0].id,Na=Na.substr(0,Na.lastIndexOf("_"));else if("MappedGraph"==b[pa].type)for(f=0;f<C.length;f++)C[f]=b[pa].nfs[C[f]]||C[f];var ka;for(ka in l){ra=l[ka].Collections;for(var za in ra)if(za==Na)ua=ra[za].Items;else if(ra[za].Properties.ForeignKeys&&+ra[za].Properties.ForeignKeys[0]){var R=ra[za].Properties.ForeignKeys[0].SourceFields[0];var sa=ra[za].Properties.Schema.PrimaryKey[0]}if(ua)break}n={};for(var da in ua){ra=ua[da];var ea=ra[sa],Db=ra[R];ea==Db?(n[ea]=ea+Date.now(),ea=n[ea],ra[sa]=ea,d(ea,Db,ra)):d(ea,n[Db]||Db,ra)}}for(ka in W){var M=W[ka];if(null!=M){var lb=a[fa+M],Ea=a[ka];if(null!=lb&&null!=Ea){var fc=new mxCell("",new mxGeometry(0,0,100,100),"");fc.geometry.relative=!0;fc.edge=!0;null!=T&&null!=T.props&&Id(fc,T.props,e,null,null,+!0);e.addCell(fc,I,null,lb,Ea)}}}var lc=.75*ba.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(e,0,lc,.75*ba.NodeSpacing.NeighborSeparation)).execute(I);for(pa=ba=d=0;I.children&&pa<I.children.length;pa++){var tb=I.children[pa].geometry;d=Math.max(d,tb.x+tb.width);ba=Math.max(ba,tb.y+tb.height)}var Fb=I.geometry;Fb.y-=lc;Fb.width=d;Fb.height=ba}catch(yb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(yb)}}var nc=0,oc=0,ce="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",+q=!1,ab="",vf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],wf=["fpDoor"],De={None:"none;",Arrow:"block;xyzFill=1;","Hollow Arrow":"block;xyzFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;xyzSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;xyzSize=10;","CFN ERD Many Arrow":"ERmany;xyzSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;xyzSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;xyzSize=10;","CFN ERD One Arrow":"ERone;xyzSize=16;",Generalization:"block;xyzFill=0;xyzSize=12;","Big Open Arrow":"open;xyzSize=10;",Asynch1:"openAsync;flipV=1;xyzSize=10;",Asynch2:"openAsync;xyzSize=10;",Aggregation:"diamond;xyzFill=0;xyzSize=16;",Composition:"diamond;xyzFill=1;xyzSize=16;",BlockEnd:"box;xyzFill=0;xyzSize=16;",Measure:"ERone;xyzSize=10;",CircleOpen:"oval;xyzFill=0;xyzSize=16;",CircleClosed:"oval;xyzFill=1;xyzSize=16;",BlockEndFill:"box;xyzFill=1;xyzSize=16;",Nesting:"circlePlus;xyzSize=7;xyzFill=0;","BPMN Conditional":"diamond;xyzFill=0;",-"BPMN Default":"dash;"},Pd={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ExtShapeBoxBlock:"",DefaultStickyNoteBlock:"shadow=1",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",+"BPMN Default":"dash;"},Jd={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ExtShapeBoxBlock:"",DefaultStickyNoteBlock:"shadow=1",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document;boundedLbl=1",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DatabaseBlock:"shape=cylinder3;size=4;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder3;direction=south;size=10;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"mxCompositeShape",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=cylinder3;boundedLbl=1;size=15;lid=0;direction=south;",MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"mxCompositeShape",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",DiamondContainerBlock:"shape=rhombus;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",RoundedRectangleContainerBlock:"rounded=1;absoluteArcSize=1;arcSize=24;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",CircleContainerBlock:"ellipse;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",@@ -1045,655 +1044,98 @@ SMCalendar:"shape=mxgraph.sitemap.calendar;strokeColor=#000000;fillColor=#E6E6E6SMGame:"shape=mxgraph.sitemap.game;strokeColor=#000000;fillColor=#E6E6E6",SMJobs:"shape=mxgraph.sitemap.jobs;strokeColor=#000000;fillColor=#E6E6E6",SMLucid:"shape=mxgraph.sitemap.home;strokeColor=#000000;fillColor=#E6E6E6",SMNewspress:"shape=mxgraph.sitemap.news;strokeColor=#000000;fillColor=#E6E6E6",SMPhoto:"shape=mxgraph.sitemap.photo;strokeColor=#000000;fillColor=#E6E6E6",SMPortfolio:"shape=mxgraph.sitemap.portfolio;strokeColor=#000000;fillColor=#E6E6E6",SMPricing:"shape=mxgraph.sitemap.pricing;strokeColor=#000000;fillColor=#E6E6E6",SMProfile:"shape=mxgraph.sitemap.profile;strokeColor=#000000;fillColor=#E6E6E6",SMSlideshow:"shape=mxgraph.sitemap.slideshow;strokeColor=#000000;fillColor=#E6E6E6",SMUpload:"shape=mxgraph.sitemap.upload;strokeColor=#000000;fillColor=#E6E6E6",SVGPathBlock2:"mxCompositeShape",PresentationFrameBlock:"mxCompositeShape",TimelineBlock:"mxCompositeShape",TimelineMilestoneBlock:"mxCompositeShape",TimelineIntervalBlock:"mxCompositeShape",MinimalTextBlock:"strokeColor=none;fillColor=none",FreehandBlock:"mxCompositeShape",ExtShapeLaptopBlock:"strokeColor=none;shape=mxgraph.citrix.laptop_2;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeServerBlock:"strokeColor=none;shape=mxgraph.citrix.tower_server;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeCloudBlock:"strokeColor=none;shape=mxgraph.citrix.cloud;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeUserBlock:"strokeColor=none;shape=mxgraph.aws3d.end_user;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#073763",ExtShapeWorkstationLCDBlock:"strokeColor=none;shape=mxgraph.veeam.3d.workstation;verticalLabelPosition=bottom;verticalAlign=top",-InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},yf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Rd.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Rd.prototype.getX=function(w){return Math.round(100*this.nurbsValues[4*(w+1)])/100};Rd.prototype.getY=function(w){return Math.round(100*this.nurbsValues[4*(w+1)+1])/100};LucidImporter.importState=function(w,F,D){function u(p){null!=p.state&&EditorUi.debug("convertLucidChart addPages",-p);if(p.Properties){for(var aa in p.Properties)"Stencil-"==aa.substr(0,8)&&Le(aa.substr(8),p.Properties[aa]);LucidImporter.globalProps=p.Properties}for(var ba in p.Pages)aa=p.Pages[ba],aa.id=ba,aa.Data=p.Data,e.push(aa);e.sort(function(W,wa){return W.Properties.Order<wa.Properties.Order?-1:W.Properties.Order>wa.Properties.Order?1:0});for(p=0;p<e.length;p++)LucidImporter.pageIdsMap[e[p].id]=p}yc=xc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=F;LucidImporter.advImpConfig=D;LucidImporter.globalProps=-{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;F=['<?xml version="1.0" encoding="UTF-8"?>','<mxfile type="Lucidchart-Import" version="'+EditorUi.VERSION+'" host="'+mxUtils.htmlEntities(window.location.hostname)+'" agent="'+mxUtils.htmlEntities(navigator.appVersion)+'" modified="'+mxUtils.htmlEntities((new Date).toISOString())+'">'];D&&D.transparentEdgeLabels&&(he=he.replace("labelBackgroundColor=default;",-"labelBackgroundColor=none;"));var e=[];null!=w.state?u(JSON.parse(w.state)):null==w.Page&&null!=w.Pages?u(w):e.push(w);w=Df();D=new mxCodec;for(var O=0;O<e.length;O++){F.push("<diagram");null!=e[O].Properties&&null!=e[O].Properties.Title&&F.push(' name="'+mxUtils.htmlEntities(e[O].Properties.Title)+'"');F.push(' id="'+O+'"');zf(w,e[O],!0);var r=D.encode(w.getModel());null!=e[O].Properties&&(e[O].Properties.FillColor&&"#ffffff"!=e[O].Properties.FillColor&&r.setAttribute("background",P(e[O].Properties.FillColor)),-e[O].Properties.InfiniteCanvas?r.setAttribute("page",0):null!=e[O].Properties.Size&&(r.setAttribute("page",1),r.setAttribute("pageWidth",.75*e[O].Properties.Size.w),r.setAttribute("pageHeight",.75*e[O].Properties.Size.h)),null!=e[O].Properties.GridSpacing&&(r.setAttribute("grid",1),r.setAttribute("gridSize",.75*e[O].Properties.GridSpacing)));LucidImporter.hasMath&&r.setAttribute("math",1);w.getModel().clear();F.push(">"+Graph.compress(mxUtils.getXml(r))+"</diagram>")}F.push("</mxfile>");LucidImporter.imgSrcRepl=-null;return F.join("")}})();function VsdxExport(g){function y(H,N){var J={"[Content_Types].xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='png' ContentType='image/png'/><Default Extension='jpg' ContentType='image/jpeg'/><Default Extension='jpeg' ContentType='image/jpeg'/><Default Extension='svg' ContentType='image/svg+xml'/><Default Extension='bmp' ContentType='image/bmp'/><Default Extension='gif' ContentType='image/gif'/><Default Extension='emf' ContentType='image/x-emf' /><Default Extension='rels' ContentType='application/vnd.openxmlformats-package.relationships+xml' /><Default Extension='xml' ContentType='application/xml' /><Override PartName='/docProps/app.xml' ContentType='application/vnd.openxmlformats-officedocument.extended-properties+xml' /><Override PartName='/docProps/core.xml' ContentType='application/vnd.openxmlformats-package.core-properties+xml' /><Override PartName='/docProps/custom.xml' ContentType='application/vnd.openxmlformats-officedocument.custom-properties+xml' /><Override PartName='/visio/document.xml' ContentType='application/vnd.ms-visio.drawing.main+xml' /><Override PartName='/visio/masters/masters.xml' ContentType='application/vnd.ms-visio.masters+xml' /><Override PartName='/visio/masters/master1.xml' ContentType='application/vnd.ms-visio.master+xml'/><Override PartName='/visio/pages/page1.xml' ContentType='application/vnd.ms-visio.page+xml' /><Override PartName='/visio/pages/pages.xml' ContentType='application/vnd.ms-visio.pages+xml' /><Override PartName='/visio/windows.xml' ContentType='application/vnd.ms-visio.windows+xml' /></Types>",-"_rels/.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties' Target='docProps/core.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/document' Target='visio/document.xml' /><Relationship Id='rId3' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties' Target='docProps/custom.xml' /><Relationship Id='rId4' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties' Target='docProps/app.xml' /></Relationships>",-"docProps/app.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\'><Application>Microsoft Visio</Application><AppVersion>15.0000</AppVersion><Template /><Manager /><Company /><HyperlinkBase /></Properties>',"docProps/core.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><cp:coreProperties xmlns:cp='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:dcterms='http://purl.org/dc/terms/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><dc:title /><dc:subject /><dc:creator /><cp:keywords /><dc:description /><cp:category /><dc:language>en-US</dc:language></cp:coreProperties>",-"docProps/custom.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\' />',"visio/document.xml":"<?xml version='1.0' encoding='utf-8' ?><VisioDocument xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><DocumentSettings TopPage='0' DefaultTextStyle='3' DefaultLineStyle='3' DefaultFillStyle='3' DefaultGuideStyle='4'><GlueSettings>9</GlueSettings><SnapSettings>65847</SnapSettings><SnapExtensions>34</SnapExtensions><SnapAngles/><DynamicGridEnabled>1</DynamicGridEnabled><ProtectStyles>0</ProtectStyles><ProtectShapes>0</ProtectShapes><ProtectMasters>0</ProtectMasters><ProtectBkgnds>0</ProtectBkgnds></DocumentSettings><Colors><ColorEntry IX='24' RGB='#000000'/><ColorEntry IX='25' RGB='#FFFFFF'/><ColorEntry IX='26' RGB='#FF0000'/><ColorEntry IX='27' RGB='#00FF00'/><ColorEntry IX='28' RGB='#0000FF'/><ColorEntry IX='29' RGB='#FFFF00'/><ColorEntry IX='30' RGB='#FF00FF'/><ColorEntry IX='31' RGB='#00FFFF'/><ColorEntry IX='32' RGB='#800000'/><ColorEntry IX='33' RGB='#008000'/><ColorEntry IX='34' RGB='#000080'/><ColorEntry IX='35' RGB='#808000'/><ColorEntry IX='36' RGB='#800080'/><ColorEntry IX='37' RGB='#008080'/><ColorEntry IX='38' RGB='#C0C0C0'/><ColorEntry IX='39' RGB='#E6E6E6'/><ColorEntry IX='40' RGB='#CDCDCD'/><ColorEntry IX='41' RGB='#B3B3B3'/><ColorEntry IX='42' RGB='#9A9A9A'/><ColorEntry IX='43' RGB='#808080'/><ColorEntry IX='44' RGB='#666666'/><ColorEntry IX='45' RGB='#4D4D4D'/><ColorEntry IX='46' RGB='#333333'/><ColorEntry IX='47' RGB='#1A1A1A'/><ColorEntry IX='48' RGB='#7F7F7F'/><ColorEntry IX='49' RGB='#99004D'/><ColorEntry IX='50' RGB='#FF0080'/><ColorEntry IX='51' RGB='#CC0066'/></Colors><FaceNames><FaceName NameU='Calibri' UnicodeRanges='-536859905 -1073732485 9 0' CharSets='536871423 0' Panose='2 15 5 2 2 2 4 3 2 4' Flags='325'/></FaceNames><StyleSheets><StyleSheet ID='0' NameU='No Style' IsCustomNameU='1' Name='No Style' IsCustomName='1'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0.01041666666666667'/><Cell N='LineColor' V='0'/><Cell N='LinePattern' V='1'/><Cell N='Rounding' V='0'/><Cell N='EndArrowSize' V='2'/><Cell N='BeginArrow' V='0'/><Cell N='EndArrow' V='0'/><Cell N='LineCap' V='0'/><Cell N='BeginArrowSize' V='2'/><Cell N='LineColorTrans' V='0'/><Cell N='CompoundType' V='0'/><Cell N='FillForegnd' V='1'/><Cell N='FillBkgnd' V='0'/><Cell N='FillPattern' V='1'/><Cell N='ShdwForegnd' V='0'/><Cell N='ShdwPattern' V='0'/><Cell N='FillForegndTrans' V='0'/><Cell N='FillBkgndTrans' V='0'/><Cell N='ShdwForegndTrans' V='0'/><Cell N='ShapeShdwType' V='0'/><Cell N='ShapeShdwOffsetX' V='0'/><Cell N='ShapeShdwOffsetY' V='0'/><Cell N='ShapeShdwObliqueAngle' V='0'/><Cell N='ShapeShdwScaleFactor' V='1'/><Cell N='ShapeShdwBlur' V='0'/><Cell N='ShapeShdwShow' V='0'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='1'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5'/><Cell N='TextDirection' V='0'/><Cell N='TextBkgndTrans' V='0'/><Cell N='LockWidth' V='0'/><Cell N='LockHeight' V='0'/><Cell N='LockMoveX' V='0'/><Cell N='LockMoveY' V='0'/><Cell N='LockAspect' V='0'/><Cell N='LockDelete' V='0'/><Cell N='LockBegin' V='0'/><Cell N='LockEnd' V='0'/><Cell N='LockRotate' V='0'/><Cell N='LockCrop' V='0'/><Cell N='LockVtxEdit' V='0'/><Cell N='LockTextEdit' V='0'/><Cell N='LockFormat' V='0'/><Cell N='LockGroup' V='0'/><Cell N='LockCalcWH' V='0'/><Cell N='LockSelect' V='0'/><Cell N='LockCustProp' V='0'/><Cell N='LockFromGroupFormat' V='0'/><Cell N='LockThemeColors' V='0'/><Cell N='LockThemeEffects' V='0'/><Cell N='LockThemeConnectors' V='0'/><Cell N='LockThemeFonts' V='0'/><Cell N='LockThemeIndex' V='0'/><Cell N='LockReplace' V='0'/><Cell N='LockVariation' V='0'/><Cell N='NoObjHandles' V='0'/><Cell N='NonPrinting' V='0'/><Cell N='NoCtlHandles' V='0'/><Cell N='NoAlignBox' V='0'/><Cell N='UpdateAlignBox' V='0'/><Cell N='HideText' V='0'/><Cell N='DynFeedback' V='0'/><Cell N='GlueType' V='0'/><Cell N='WalkPreference' V='0'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0'/><Cell N='Comment' V=''/><Cell N='IsDropSource' V='0'/><Cell N='NoLiveDynamics' V='0'/><Cell N='LocalizeMerge' V='0'/><Cell N='NoProofing' V='0'/><Cell N='Calendar' V='0'/><Cell N='LangID' V='en-US'/><Cell N='ShapeKeywords' V=''/><Cell N='DropOnPageScale' V='1'/><Cell N='TheData' V='0' F='No Formula'/><Cell N='TheText' V='0' F='No Formula'/><Cell N='EventDblClick' V='0' F='No Formula'/><Cell N='EventXFMod' V='0' F='No Formula'/><Cell N='EventDrop' V='0' F='No Formula'/><Cell N='EventMultiDrop' V='0' F='No Formula'/><Cell N='HelpTopic' V=''/><Cell N='Copyright' V=''/><Cell N='LayerMember' V=''/><Cell N='XRulerDensity' V='32'/><Cell N='YRulerDensity' V='32'/><Cell N='XRulerOrigin' V='0'/><Cell N='YRulerOrigin' V='0'/><Cell N='XGridDensity' V='8'/><Cell N='YGridDensity' V='8'/><Cell N='XGridSpacing' V='0'/><Cell N='YGridSpacing' V='0'/><Cell N='XGridOrigin' V='0'/><Cell N='YGridOrigin' V='0'/><Cell N='Gamma' V='1'/><Cell N='Contrast' V='0.5'/><Cell N='Brightness' V='0.5'/><Cell N='Sharpen' V='0'/><Cell N='Blur' V='0'/><Cell N='Denoise' V='0'/><Cell N='Transparency' V='0'/><Cell N='SelectMode' V='1'/><Cell N='DisplayMode' V='2'/><Cell N='IsDropTarget' V='0'/><Cell N='IsSnapTarget' V='1'/><Cell N='IsTextEditTarget' V='1'/><Cell N='DontMoveChildren' V='0'/><Cell N='ShapePermeableX' V='0'/><Cell N='ShapePermeableY' V='0'/><Cell N='ShapePermeablePlace' V='0'/><Cell N='Relationships' V='0'/><Cell N='ShapeFixedCode' V='0'/><Cell N='ShapePlowCode' V='0'/><Cell N='ShapeRouteStyle' V='0'/><Cell N='ShapePlaceStyle' V='0'/><Cell N='ConFixedCode' V='0'/><Cell N='ConLineJumpCode' V='0'/><Cell N='ConLineJumpStyle' V='0'/><Cell N='ConLineJumpDirX' V='0'/><Cell N='ConLineJumpDirY' V='0'/><Cell N='ShapePlaceFlip' V='0'/><Cell N='ConLineRouteExt' V='0'/><Cell N='ShapeSplit' V='0'/><Cell N='ShapeSplittable' V='0'/><Cell N='DisplayLevel' V='0'/><Cell N='ResizePage' V='0'/><Cell N='EnableGrid' V='0'/><Cell N='DynamicsOff' V='0'/><Cell N='CtrlAsInput' V='0'/><Cell N='AvoidPageBreaks' V='0'/><Cell N='PlaceStyle' V='0'/><Cell N='RouteStyle' V='0'/><Cell N='PlaceDepth' V='0'/><Cell N='PlowCode' V='0'/><Cell N='LineJumpCode' V='1'/><Cell N='LineJumpStyle' V='0'/><Cell N='PageLineJumpDirX' V='0'/><Cell N='PageLineJumpDirY' V='0'/><Cell N='LineToNodeX' V='0.125'/><Cell N='LineToNodeY' V='0.125'/><Cell N='BlockSizeX' V='0.25'/><Cell N='BlockSizeY' V='0.25'/><Cell N='AvenueSizeX' V='0.375'/><Cell N='AvenueSizeY' V='0.375'/><Cell N='LineToLineX' V='0.125'/><Cell N='LineToLineY' V='0.125'/><Cell N='LineJumpFactorX' V='0.66666666666667'/><Cell N='LineJumpFactorY' V='0.66666666666667'/><Cell N='LineAdjustFrom' V='0'/><Cell N='LineAdjustTo' V='0'/><Cell N='PlaceFlip' V='0'/><Cell N='LineRouteExt' V='0'/><Cell N='PageShapeSplit' V='0'/><Cell N='PageLeftMargin' V='0.25'/><Cell N='PageRightMargin' V='0.25'/><Cell N='PageTopMargin' V='0.25'/><Cell N='PageBottomMargin' V='0.25'/><Cell N='ScaleX' V='1'/><Cell N='ScaleY' V='1'/><Cell N='PagesX' V='1'/><Cell N='PagesY' V='1'/><Cell N='CenterX' V='0'/><Cell N='CenterY' V='0'/><Cell N='OnPage' V='0'/><Cell N='PrintGrid' V='0'/><Cell N='PrintPageOrientation' V='1'/><Cell N='PaperKind' V='1'/><Cell N='PaperSource' V='7'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineGradientDir' V='0'/><Cell N='LineGradientAngle' V='1.5707963267949'/><Cell N='FillGradientDir' V='0'/><Cell N='FillGradientAngle' V='1.5707963267949'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='1'/><Cell N='UseGroupGradient' V='0'/><Cell N='BevelTopType' V='0'/><Cell N='BevelTopWidth' V='0'/><Cell N='BevelTopHeight' V='0'/><Cell N='BevelBottomType' V='0'/><Cell N='BevelBottomWidth' V='0'/><Cell N='BevelBottomHeight' V='0'/><Cell N='BevelDepthColor' V='1'/><Cell N='BevelDepthSize' V='0'/><Cell N='BevelContourColor' V='0'/><Cell N='BevelContourSize' V='0'/><Cell N='BevelMaterialType' V='0'/><Cell N='BevelLightingType' V='0'/><Cell N='BevelLightingAngle' V='0'/><Cell N='RotationXAngle' V='0'/><Cell N='RotationYAngle' V='0'/><Cell N='RotationZAngle' V='0'/><Cell N='RotationType' V='0'/><Cell N='Perspective' V='0'/><Cell N='DistanceFromGround' V='0'/><Cell N='KeepTextFlat' V='0'/><Cell N='ReflectionTrans' V='0'/><Cell N='ReflectionSize' V='0'/><Cell N='ReflectionDist' V='0'/><Cell N='ReflectionBlur' V='0'/><Cell N='GlowColor' V='1'/><Cell N='GlowColorTrans' V='0'/><Cell N='GlowSize' V='0'/><Cell N='SoftEdgesSize' V='0'/><Cell N='SketchSeed' V='0'/><Cell N='SketchEnabled' V='0'/><Cell N='SketchAmount' V='5'/><Cell N='SketchLineWeight' V='0.04166666666666666' U='PT'/><Cell N='SketchLineChange' V='0.14'/><Cell N='SketchFillChange' V='0.1'/><Cell N='ColorSchemeIndex' V='0'/><Cell N='EffectSchemeIndex' V='0'/><Cell N='ConnectorSchemeIndex' V='0'/><Cell N='FontSchemeIndex' V='0'/><Cell N='ThemeIndex' V='0'/><Cell N='VariationColorIndex' V='0'/><Cell N='VariationStyleIndex' V='0'/><Cell N='EmbellishmentIndex' V='0'/><Cell N='ReplaceLockShapeData' V='0'/><Cell N='ReplaceLockText' V='0'/><Cell N='ReplaceLockFormat' V='0'/><Cell N='ReplaceCopyCells' V='0' U='BOOL' F='No Formula'/><Cell N='PageWidth' V='0' F='No Formula'/><Cell N='PageHeight' V='0' F='No Formula'/><Cell N='ShdwOffsetX' V='0' F='No Formula'/><Cell N='ShdwOffsetY' V='0' F='No Formula'/><Cell N='PageScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingSizeType' V='0' F='No Formula'/><Cell N='DrawingScaleType' V='0' F='No Formula'/><Cell N='InhibitSnap' V='0' F='No Formula'/><Cell N='PageLockReplace' V='0' U='BOOL' F='No Formula'/><Cell N='PageLockDuplicate' V='0' U='BOOL' F='No Formula'/><Cell N='UIVisibility' V='0' F='No Formula'/><Cell N='ShdwType' V='0' F='No Formula'/><Cell N='ShdwObliqueAngle' V='0' F='No Formula'/><Cell N='ShdwScaleFactor' V='0' F='No Formula'/><Cell N='DrawingResizeType' V='0' F='No Formula'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Calibri'/><Cell N='Color' V='0'/><Cell N='Style' V='0'/><Cell N='Case' V='0'/><Cell N='Pos' V='0'/><Cell N='FontScale' V='1'/><Cell N='Size' V='0.1666666666666667'/><Cell N='DblUnderline' V='0'/><Cell N='Overline' V='0'/><Cell N='Strikethru' V='0'/><Cell N='DoubleStrikethrough' V='0'/><Cell N='Letterspace' V='0'/><Cell N='ColorTrans' V='0'/><Cell N='AsianFont' V='0'/><Cell N='ComplexScriptFont' V='0'/><Cell N='ComplexScriptSize' V='-1'/><Cell N='LangID' V='en-US'/></Row></Section><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0'/><Cell N='IndLeft' V='0'/><Cell N='IndRight' V='0'/><Cell N='SpLine' V='-1.2'/><Cell N='SpBefore' V='0'/><Cell N='SpAfter' V='0'/><Cell N='HorzAlign' V='1'/><Cell N='Bullet' V='0'/><Cell N='BulletStr' V=''/><Cell N='BulletFont' V='0'/><Cell N='BulletFontSize' V='-1'/><Cell N='TextPosAfterBullet' V='0'/><Cell N='Flags' V='0'/></Row></Section><Section N='Tabs'><Row IX='0'/></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section></StyleSheet><StyleSheet ID='1' NameU='Text Only' IsCustomNameU='1' Name='Text Only' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='Themed' F='Inh'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='0'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='Themed' F='Inh'/><Cell N='FillGradientEnabled' V='Themed' F='Inh'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0' F='Inh'/><Cell N='IndLeft' V='0' F='Inh'/><Cell N='IndRight' V='0' F='Inh'/><Cell N='SpLine' V='-1.2' F='Inh'/><Cell N='SpBefore' V='0' F='Inh'/><Cell N='SpAfter' V='0' F='Inh'/><Cell N='HorzAlign' V='0'/><Cell N='Bullet' V='0' F='Inh'/><Cell N='BulletStr' V='' F='Inh'/><Cell N='BulletFont' V='0' F='Inh'/><Cell N='BulletFontSize' V='-1' F='Inh'/><Cell N='TextPosAfterBullet' V='0' F='Inh'/><Cell N='Flags' V='0' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='2' NameU='None' IsCustomNameU='1' Name='None' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='0'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='QuickStyleLineColor' V='100' F='Inh'/><Cell N='QuickStyleFillColor' V='100' F='Inh'/><Cell N='QuickStyleShadowColor' V='100' F='Inh'/><Cell N='QuickStyleFontColor' V='100' F='Inh'/><Cell N='QuickStyleLineMatrix' V='100' F='Inh'/><Cell N='QuickStyleFillMatrix' V='100' F='Inh'/><Cell N='QuickStyleEffectsMatrix' V='0' F='GUARD(0)'/><Cell N='QuickStyleFontMatrix' V='100' F='Inh'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='2'/></StyleSheet><StyleSheet ID='3' NameU='Normal' IsCustomNameU='1' Name='Normal' IsCustomName='1' LineStyle='6' FillStyle='6' TextStyle='6'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT'/><Cell N='RightMargin' V='0.05555555555555555' U='PT'/><Cell N='TopMargin' V='0.05555555555555555' U='PT'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/></StyleSheet><StyleSheet ID='4' NameU='Guide' IsCustomNameU='1' Name='Guide' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0' U='PT'/><Cell N='LineColor' V='#7f7f7f'/><Cell N='LinePattern' V='23'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='2'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='1'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='ShapePermeableX' V='1'/><Cell N='ShapePermeableY' V='1'/><Cell N='ShapePermeablePlace' V='1'/><Cell N='Relationships' V='0' F='Inh'/><Cell N='ShapeFixedCode' V='0' F='Inh'/><Cell N='ShapePlowCode' V='0' F='Inh'/><Cell N='ShapeRouteStyle' V='0' F='Inh'/><Cell N='ShapePlaceStyle' V='0' F='Inh'/><Cell N='ConFixedCode' V='0' F='Inh'/><Cell N='ConLineJumpCode' V='0' F='Inh'/><Cell N='ConLineJumpStyle' V='0' F='Inh'/><Cell N='ConLineJumpDirX' V='0' F='Inh'/><Cell N='ConLineJumpDirY' V='0' F='Inh'/><Cell N='ShapePlaceFlip' V='0' F='Inh'/><Cell N='ConLineRouteExt' V='0' F='Inh'/><Cell N='ShapeSplit' V='0' F='Inh'/><Cell N='ShapeSplittable' V='0' F='Inh'/><Cell N='DisplayLevel' V='0' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='4'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.125'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='6' NameU='Theme' IsCustomNameU='1' Name='Theme' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='THEMEVAL()'/><Cell N='LineColor' V='Themed' F='THEMEVAL()'/><Cell N='LinePattern' V='Themed' F='THEMEVAL()'/><Cell N='Rounding' V='Themed' F='THEMEVAL()'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='CompoundType' V='Themed' F='THEMEVAL()'/><Cell N='FillForegnd' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgnd' V='Themed' F='THEMEVAL()'/><Cell N='FillPattern' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegnd' V='Themed' F='THEMEVAL()'/><Cell N='ShdwPattern' V='Themed' F='THEMEVAL()'/><Cell N='FillForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwType' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetX' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetY' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwBlur' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='RotateGradientWithShape' V='Themed' F='THEMEVAL()'/><Cell N='UseGroupGradient' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopType' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopWidth' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopHeight' V='Themed' F='THEMEVAL()'/><Cell N='BevelBottomType' V='0' F='Inh'/><Cell N='BevelBottomWidth' V='0' F='Inh'/><Cell N='BevelBottomHeight' V='0' F='Inh'/><Cell N='BevelDepthColor' V='1' F='Inh'/><Cell N='BevelDepthSize' V='0' F='Inh'/><Cell N='BevelContourColor' V='Themed' F='THEMEVAL()'/><Cell N='BevelContourSize' V='Themed' F='THEMEVAL()'/><Cell N='BevelMaterialType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingAngle' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionTrans' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionSize' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionDist' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionBlur' V='Themed' F='THEMEVAL()'/><Cell N='GlowColor' V='Themed' F='THEMEVAL()'/><Cell N='GlowColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GlowSize' V='Themed' F='THEMEVAL()'/><Cell N='SoftEdgesSize' V='Themed' F='THEMEVAL()'/><Cell N='SketchSeed' V='0' F='Inh'/><Cell N='SketchEnabled' V='Themed' F='THEMEVAL()'/><Cell N='SketchAmount' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineWeight' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineChange' V='Themed' F='THEMEVAL()'/><Cell N='SketchFillChange' V='Themed' F='THEMEVAL()'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='0' F='Inh'/><Cell N='ColorSchemeIndex' V='65534'/><Cell N='EffectSchemeIndex' V='65534'/><Cell N='ConnectorSchemeIndex' V='65534'/><Cell N='FontSchemeIndex' V='65534'/><Cell N='ThemeIndex' V='65534'/><Cell N='VariationColorIndex' V='65534'/><Cell N='VariationStyleIndex' V='65534'/><Cell N='EmbellishmentIndex' V='65534'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='THEMEVAL()'/><Cell N='Color' V='Themed' F='THEMEVAL()'/><Cell N='Style' V='Themed' F='THEMEVAL()'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1666666666666667' F='Inh'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section></StyleSheet><StyleSheet ID='7' NameU='Connector' IsCustomNameU='1' Name='Connector' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='#ffffff' F='THEMEGUARD(THEMEVAL(\"BackgroundColor\")+1)'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='0' F='Inh'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='1'/><Cell N='QuickStyleFillMatrix' V='1'/><Cell N='QuickStyleEffectsMatrix' V='1'/><Cell N='QuickStyleFontMatrix' V='1'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrow' V='Themed' F='THEMEVAL()'/><Cell N='EndArrow' V='Themed' F='THEMEVAL()'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='Themed' F='Inh'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1111111111111111'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet></StyleSheets><DocumentSheet NameU='TheDoc' IsCustomNameU='1' Name='TheDoc' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='OutputFormat' V='0'/><Cell N='LockPreview' V='0'/><Cell N='AddMarkup' V='0'/><Cell N='ViewMarkup' V='0'/><Cell N='DocLockReplace' V='0' U='BOOL'/><Cell N='NoCoauth' V='0' U='BOOL'/><Cell N='DocLockDuplicatePage' V='0' U='BOOL'/><Cell N='PreviewQuality' V='0'/><Cell N='PreviewScope' V='0'/><Cell N='DocLangID' V='en-US'/><Section N='User'><Row N='msvNoAutoConnect'><Cell N='Value' V='1'/><Cell N='Prompt' V='' F='No Formula'/></Row></Section></DocumentSheet></VisioDocument>",-"visio/windows.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />","visio/_rels/document.xml.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>",-"visio/masters/_rels/masters.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>',"visio/masters/masters.xml":"<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>",-"visio/masters/master1.xml":"<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>"},-M;for(M in J)if(1<N&&M==K.CONTENT_TYPES_XML){for(var T=mxUtils.parseXml(J[M]),ca=T.documentElement,V=ca.children,P=null,ea=0;ea<V.length;ea++){var Y=V[ea];"/visio/pages/page1.xml"==Y.getAttribute(K.PART_NAME)&&(P=Y)}for(ea=2;ea<=N;ea++)V=P.cloneNode(),V.setAttribute(K.PART_NAME,"/visio/pages/page"+ea+".xml"),ca.appendChild(V);C(H,M,T,!0)}else H.file(M,J[M])}function z(H,N,J){return null!=H.createElementNS?H.createElementNS(N,J):H.createElement(J)}function B(H){var N=S[H];null==N&&(N=R++,S[H]=N);return N}-function m(H){var N={};try{var J=H.getGraphBounds().clone(),M=H.view.scale,T=H.view.translate,ca=Math.round(J.x/M)-T.x,V=Math.round(J.y/M)-T.y,P=H.pageFormat.width,ea=H.pageFormat.height;0>ca&&(ca+=Math.ceil((T.x-J.x/M)/P)*P);0>V&&(V+=Math.ceil((T.y-J.y/M)/ea)*ea);var Y=Math.max(1,Math.ceil((J.width/M+ca)/P)),sa=Math.max(1,Math.ceil((J.height/M+V)/ea));N.gridEnabled=H.gridEnabled;N.gridSize=H.gridSize;N.guidesEnabled=H.graphHandler.guidesEnabled;N.pageVisible=H.pageVisible;N.pageScale=H.pageScale;-N.pageWidth=H.pageFormat.width*Y;N.pageHeight=H.pageFormat.height*sa;N.backgroundClr=H.background;N.mathEnabled=H.mathEnabled;N.shadowVisible=H.shadowVisible}catch(oa){}return N}function h(H,N,J,M){return b(H,N/K.CONVERSION_FACTOR,J,M)}function b(H,N,J,M){J=z(J,K.XMLNS,"Cell");J.setAttribute("N",H);J.setAttribute("V",N);M&&J.setAttribute("F",M);return J}function a(H,N,J,M,T){var ca=z(T,K.XMLNS,"Row");ca.setAttribute("T",H);ca.setAttribute("IX",N);ca.appendChild(h("X",J,T));ca.appendChild(h("Y",M,-T));return ca}function c(H){mxUtils.isLightDarkColor(H)&&(H=mxUtils.parseLightDarkColor(H).light);return mxUtils.rgba2hex(H)}function d(H,N,J){var M=c(H.style[mxConstants.STYLE_FILLCOLOR]);if(M&&"none"!=M){if(N.appendChild(b("FillForegnd",M,J)),(M=c(H.style[mxConstants.STYLE_GRADIENTCOLOR]))&&"none"!=M){N.appendChild(b("FillBkgnd",M,J));M=H.style[mxConstants.STYLE_GRADIENT_DIRECTION];var T=28;if(M)switch(M){case mxConstants.DIRECTION_EAST:T=25;break;case mxConstants.DIRECTION_WEST:T=27;break;case mxConstants.DIRECTION_NORTH:T=-30}N.appendChild(b("FillPattern",T,J))}}else N.appendChild(b("FillPattern",0,J));(M=c(H.style[mxConstants.STYLE_STROKECOLOR]))&&"none"!=M?N.appendChild(b("LineColor",M,J)):N.appendChild(b("LinePattern",0,J));(M=H.style[mxConstants.STYLE_STROKEWIDTH])&&N.appendChild(h("LineWeight",M,J));(T=H.style[mxConstants.STYLE_OPACITY])?M=T:(M=H.style[mxConstants.STYLE_FILL_OPACITY],T=H.style[mxConstants.STYLE_STROKE_OPACITY]);M&&N.appendChild(b("FillForegndTrans",1-parseInt(M)/100,J));T&&N.appendChild(b("LineColorTrans",-1-parseInt(T)/100,J));if(1==H.style[mxConstants.STYLE_DASHED]){M=H.style[mxConstants.STYLE_DASH_PATTERN];T=9;if(M)switch(M){case "1 1":T=10;break;case "1 2":T=3;break;case "1 4":T=17}N.appendChild(b("LinePattern",T,J))}1==H.style[mxConstants.STYLE_SHADOW]&&(N.appendChild(b("ShdwPattern",1,J)),N.appendChild(b("ShdwForegnd","#000000",J)),N.appendChild(b("ShdwForegndTrans",.6,J)),N.appendChild(b("ShapeShdwType",1,J)),N.appendChild(b("ShapeShdwOffsetX","0.02946278254943948",J)),N.appendChild(b("ShapeShdwOffsetY",-"-0.02946278254943948",J)),N.appendChild(b("ShapeShdwScaleFactor","1",J)),N.appendChild(b("ShapeShdwBlur","0.05555555555555555",J)),N.appendChild(b("ShapeShdwShow",2,J)));1==H.style[mxConstants.STYLE_FLIPH]&&N.appendChild(b("FlipX",1,J));1==H.style[mxConstants.STYLE_FLIPV]&&N.appendChild(b("FlipY",1,J));1==H.style[mxConstants.STYLE_ROUNDED]&&N.appendChild(h("Rounding",.1*H.cell.geometry.width,J));(H=c(H.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]))&&N.appendChild(b("TextBkgnd",H,J))}function f(H,-N,J,M,T,ca){var V=z(M,K.XMLNS,"Shape");V.setAttribute("ID",H);V.setAttribute("NameU","Shape"+H);V.setAttribute("LineStyle","0");V.setAttribute("FillStyle","0");V.setAttribute("TextStyle","0");H=N.width/2;var P=N.height/2;V.appendChild(h("PinX",N.x+H+(ca?0:L.shiftX),M));V.appendChild(h("PinY",T-N.y-P-(ca?0:L.shiftY),M));V.appendChild(h("Width",N.width,M));V.appendChild(h("Height",N.height,M));V.appendChild(h("LocPinX",H,M));V.appendChild(h("LocPinY",P,M));V.appendChild(b("LayerMember",J+"",M));return V}-function k(H,N){H=K.ARROWS_MAP[(null==H?"none":H)+"|"+(null==N?"1":N)];return null!=H?H:1}function n(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function q(H,N,J,M,T,ca){var V=J.view.getState(H,!0);if(null==V||null==V.absolutePoints||null==V.cellBounds)return null;J=z(M,K.XMLNS,"Shape");var P=B(H.id);J.setAttribute("ID",P);J.setAttribute("NameU","Dynamic connector."+P);J.setAttribute("Name","Dynamic connector."+P);J.setAttribute("Type","Shape");J.setAttribute("Master","4");var ea=-L.state;P=V.absolutePoints;var Y=V.cellBounds,sa=Y.width/2,oa=Y.height/2;J.appendChild(h("PinX",Y.x+sa+(ca?0:L.shiftX),M));J.appendChild(h("PinY",T-Y.y-oa-(ca?0:L.shiftY),M));J.appendChild(h("Width",Y.width,M));J.appendChild(h("Height",Y.height,M));J.appendChild(h("LocPinX",sa,M));J.appendChild(h("LocPinY",oa,M));L.newEdge(J,V,M);sa=function(Ra,la,Sa){var Xa=Ra.x;Ra=Ra.y;Xa=Xa*ea.scale-Y.x+ea.dx+(Sa||ca?0:L.shiftX);Ra=(la?0:Y.height)-Ra*ea.scale+Y.y-ea.dy-(Sa||ca?0:L.shiftY);return{x:Xa,y:Ra}};oa=-sa(P[0],!0);J.appendChild(h("BeginX",Y.x+oa.x,M,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));J.appendChild(h("BeginY",T-Y.y+oa.y,M,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));oa=sa(P[P.length-1],!0);J.appendChild(h("EndX",Y.x+oa.x,M,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));J.appendChild(h("EndY",T-Y.y+oa.y,M,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));J.appendChild(b("BegTrigger","2",M,H.source?"_XFTRIGGER(Sheet."+B(H.source.id)+"!EventXFMod)":null));J.appendChild(b("EndTrigger",-"2",M,H.target?"_XFTRIGGER(Sheet."+B(H.target.id)+"!EventXFMod)":null));J.appendChild(b("ConFixedCode","6",M));J.appendChild(b("LayerMember",N+"",M));d(V,J,M);N=V.style[mxConstants.STYLE_STARTSIZE];H=k(V.style[mxConstants.STYLE_STARTARROW],V.style[mxConstants.STYLE_STARTFILL]);J.appendChild(b("BeginArrow",H,M));J.appendChild(b("BeginArrowSize",n(N),M));N=V.style[mxConstants.STYLE_ENDSIZE];H=k(V.style[mxConstants.STYLE_ENDARROW],V.style[mxConstants.STYLE_ENDFILL]);J.appendChild(b("EndArrow",H,M));-J.appendChild(b("EndArrowSize",n(N),M));null!=V.text&&V.text.checkBounds()&&(L.save(),V.text.paint(L),L.restore());V=z(M,K.XMLNS,"Section");V.setAttribute("N","Geometry");V.setAttribute("IX","0");for(H=0;H<P.length;H++)N=sa(P[H],!1,!0),V.appendChild(a(0==H?"MoveTo":"LineTo",H+1,N.x,N.y,M));V.appendChild(b("NoFill","1",M));V.appendChild(b("NoLine","0",M));J.appendChild(V);return J}function t(H,N,J,M,T,ca,V){var P=H.geometry,ea=P;if(null!=P)try{P.relative&&ca&&(ea=P.clone(),P.x*=ca.width,P.y*=ca.height,-H.vertex&&null!=P.offset&&(P.x+=P.offset.x,P.y+=P.offset.y),P.relative=0);var Y=B(H.id);if(!H.treatAsSingle&&0<H.getChildCount()){var sa=f(Y+"10000",P,N,M,T,V);sa.setAttribute("Type","Group");var oa=z(M,K.XMLNS,"Shapes");L.save();L.translate(-P.x,-P.y);var Ra=P.clone();Ra.x=0;Ra.y=0;H.setGeometry(Ra);H.treatAsSingle=!0;var la=t(H,N,J,M,P.height,P,!0);delete H.treatAsSingle;H.setGeometry(P);null!=la&&oa.appendChild(la);for(T=0;T<H.getChildCount();T++)la=t(H.children[T],N,J,M,P.height,P,!0),null!=la&&-oa.appendChild(la);sa.appendChild(oa);L.restore();return sa}if(H.vertex){sa=f(Y,P,N,M,T,V);var Sa=J.view.getState(H,!0);null!=Sa&&(d(Sa,sa,M),L.newShape(sa,Sa,M),null!=Sa.text&&Sa.text.checkBounds()&&(L.save(),Sa.text.paint(L),L.restore()),null!=Sa.shape&&Sa.shape.checkBounds()&&(L.save(),Sa.shape.paint(L),L.restore()),sa.appendChild(L.getShapeGeo()),L.endShape(),sa.setAttribute("Type",L.getShapeType()));return sa}return q(H,N,J,M,T,V)}finally{H.geometry=ea}else return null}function A(H,N){var J=-mxUtils.createXmlDocument(),M=z(J,K.XMLNS,"PageContents");M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",K.XMLNS);M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",K.XMLNS_R);var T=z(J,K.XMLNS,"Shapes");M.appendChild(T);var ca=H.model,V=H.view.translate,P=H.view.scale,ea=H.getGraphBounds();L.shiftX=0;L.shiftY=0;if(ea.x/P<V.x||ea.y/P<V.y)L.shiftX=Math.ceil((V.x-ea.x/P)/H.pageFormat.width)*H.pageFormat.width,L.shiftY=Math.ceil((V.y-ea.y/P)/H.pageFormat.height)*H.pageFormat.height;-L.save();L.translate(-V.x,-V.y);L.scale(1/P);L.newPage();P=H.model.getChildCells(H.model.root);V={};for(ea=0;ea<P.length;ea++)V[P[ea].id]=ea;for(var Y in ca.cells)P=ca.cells[Y],ea=null!=P.parent?V[P.parent.id]:null,null!=ea&&(P=t(P,ea,H,J,N.pageHeight),null!=P&&T.appendChild(P));H=z(J,K.XMLNS,"Connects");M.appendChild(H);for(Y in ca.cells)P=ca.cells[Y],P.edge&&(P.source&&(N=z(J,K.XMLNS,"Connect"),N.setAttribute("FromSheet",B(P.id)),N.setAttribute("FromCell","BeginX"),N.setAttribute("ToSheet",B(P.source.id)),-H.appendChild(N)),P.target&&(N=z(J,K.XMLNS,"Connect"),N.setAttribute("FromSheet",B(P.id)),N.setAttribute("FromCell","EndX"),N.setAttribute("ToSheet",B(P.target.id)),H.appendChild(N)));J.appendChild(M);L.restore();return J}function C(H,N,J,M){H.file(N,(M?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(J,"\n"))}function I(H,N,J,M){var T=mxUtils.createXmlDocument(),ca=mxUtils.createXmlDocument(),V=z(T,K.XMLNS,"Pages");V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",-K.XMLNS);V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",K.XMLNS_R);var P=z(ca,K.RELS_XMLNS,"Relationships"),ea=1,Y;for(Y in N){var sa="page"+ea+".xml",oa=z(T,K.XMLNS,"Page");oa.setAttribute("ID",ea-1);oa.setAttribute("NameU",Y);oa.setAttribute("Name",Y);var Ra=z(T,K.XMLNS,"PageSheet"),la=M[Y];Ra.appendChild(h("PageWidth",la.pageWidth,T));Ra.appendChild(h("PageHeight",la.pageHeight,T));Ra.appendChild(b("PageScale",la.pageScale,T));Ra.appendChild(b("DrawingScale",1,T));la=z(T,K.XMLNS,"Rel");-la.setAttributeNS(K.XMLNS_R,"r:id","rId"+ea);var Sa=z(T,K.XMLNS,"Section");Sa.setAttribute("N","Layer");for(var Xa=J[Y],sc=0;sc<Xa.length;sc++){var yb=z(T,K.XMLNS,"Row");yb.setAttribute("IX",sc+"");Sa.appendChild(yb);yb.appendChild(b("Name",Xa[sc].name,T));yb.appendChild(b("Color","255",T));yb.appendChild(b("Status","0",T));yb.appendChild(b("Visible",Xa[sc].visible?"1":"0",T));yb.appendChild(b("Print","1",T));yb.appendChild(b("Active","0",T));yb.appendChild(b("Lock",Xa[sc].locked?"1":"0",T));yb.appendChild(b("Snap",-"1",T));yb.appendChild(b("Glue","1",T));yb.appendChild(b("NameUniv",Xa[sc].name,T));yb.appendChild(b("ColorTrans","0",T))}Ra.appendChild(Sa);oa.appendChild(Ra);oa.appendChild(la);V.appendChild(oa);oa=z(ca,K.RELS_XMLNS,"Relationship");oa.setAttribute("Id","rId"+ea);oa.setAttribute("Type",K.PAGES_TYPE);oa.setAttribute("Target",sa);P.appendChild(oa);C(H,K.VISIO_PAGES+sa,N[Y]);ea++}T.appendChild(V);ca.appendChild(P);C(H,K.VISIO_PAGES+"pages.xml",T);C(H,K.VISIO_PAGES+"_rels/pages.xml.rels",ca)}function Q(H,-N){N=K.VISIO_PAGES_RELS+"page"+N+".xml.rels";var J=mxUtils.createXmlDocument(),M=z(J,K.RELS_XMLNS,"Relationships"),T=z(J,K.RELS_XMLNS,"Relationship");T.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");T.setAttribute("Id","rId1");T.setAttribute("Target","../masters/master1.xml");M.appendChild(T);var ca=L.images;if(0<ca.length)for(var V=0;V<ca.length;V++)T=z(J,K.RELS_XMLNS,"Relationship"),T.setAttribute("Type",K.XMLNS_R+"/image"),T.setAttribute("Id","rId"+(V+2)),T.setAttribute("Target",-"../media/"+ca[V]),M.appendChild(T);J.appendChild(M);C(H,N,J)}var K=this,L=new mxVsdxCanvas2D,S={},R=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var N=function(la,Sa){la=la.model.getChildCells(la.model.root);T[Sa]=[];for(var Xa=0;Xa<la.length;Xa++)la[Xa].visible&&T[Sa].push({name:la[Xa].value||"Background",visible:la[Xa].visible,locked:la[Xa].style&&0<=la[Xa].style.indexOf("locked=1")})},J=new JSZip;L.init(J);S={};R=1;var M={},T={},ca=-{},V=null!=g.pages?g.pages.length:1;if(null!=g.pages){var P=function(la){la=la.getName();var Sa=g.editor.graph,Xa=m(Sa);M[la]=A(Sa,Xa);N(Sa,la);Q(J,sa+1);ca[la]=Xa},ea=g.editor.graph.getSelectionCells(),Y=g.currentPage;if(H)P(Y);else{for(var sa=0;sa<g.pages.length;sa++){var oa=g.pages[sa];g.currentPage!=oa&&g.selectPage(oa,!0);P(oa)}Y!=g.currentPage&&g.selectPage(Y,!0);g.editor.graph.setSelectionCells(ea)}}else{P=g.editor.graph;var Ra=m(P);M.Page1=A(P,Ra);N(P,"Page1");Q(J,1);ca.Page1=Ra}y(J,V);I(J,-M,T,ca);H=function(){J.generateAsync({type:"base64"}).then(function(la){g.spinner.stop();var Sa=g.getBaseFilename();g.saveData(Sa+".vsdx","vsdx",la,"application/vnd.visio2013",!0)})};0<L.filesLoading?L.onFilesLoaded=H:H()}return!0}catch(la){return console.log(la),g.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";-VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/";VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";-VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/";-VsdxExport.prototype.ARROWS_MAP={"none|1":0,"none|0":0,"open|1":1,"open|0":1,"block|1":4,"block|0":14,"classic|1":5,"classic|0":17,"oval|1":10,"oval|0":20,"diamond|1":11,"diamond|0":22,"blockThin|1":2,"blockThin|0":15,"dash|1":23,"dash|0":23,"ERone|1":24,"ERone|0":24,"ERmandOne|1":25,"ERmandOne|0":25,"ERmany|1":27,"ERmany|0":27,"ERoneToMany|1":28,"ERoneToMany|0":28,"ERzeroToMany|1":29,"ERzeroToMany|0":29,"ERzeroToOne|1":30,"ERzeroToOne|0":30,"openAsync|1":9,"openAsync|0":9};function mxVsdxCanvas2D(){mxAbstractCanvas2D.call(this);this.pageIndex=0}mxUtils.extend(mxVsdxCanvas2D,mxAbstractCanvas2D);mxVsdxCanvas2D.prototype.textEnabled=!0;mxVsdxCanvas2D.prototype.init=function(g){this.filesLoading=0;this.zip=g};mxVsdxCanvas2D.prototype.onFilesLoaded=function(){};mxVsdxCanvas2D.prototype.createElt=function(g){return null!=this.xmlDoc.createElementNS?this.xmlDoc.createElementNS(VsdxExport.prototype.XMLNS,g):this.xmlDoc.createElement(g)};-mxVsdxCanvas2D.prototype.createGeoSec=function(){null!=this.geoSec&&this.shape.appendChild(this.geoSec);var g=this.createElt("Section");g.setAttribute("N","Geometry");g.setAttribute("IX",this.geoIndex++);this.geoSec=g;this.geoStepIndex=1;this.lastMoveToY=this.lastMoveToX=this.lastY=this.lastX=0};mxVsdxCanvas2D.prototype.newShape=function(g,y,z){this.geoIndex=0;this.shape=g;this.cellState=y;this.xmGeo=y.cell.geometry;this.xmlDoc=z;this.shapeImg=this.geoSec=null;this.shapeType="Shape";this.createGeoSec()};-mxVsdxCanvas2D.prototype.newEdge=function(g,y,z){this.shape=g;this.cellState=y;this.xmGeo=y.cellBounds;this.xmlDoc=z};mxVsdxCanvas2D.prototype.endShape=function(){null!=this.shapeImg&&this.addForeignData(this.shapeImg.type,this.shapeImg.id)};mxVsdxCanvas2D.prototype.newPage=function(){this.images=[];this.pageIndex++};mxVsdxCanvas2D.prototype.getShapeType=function(){return this.shapeType};mxVsdxCanvas2D.prototype.getShapeGeo=function(){return this.geoSec};-mxVsdxCanvas2D.prototype.createCellElemScaled=function(g,y,z){return this.createCellElem(g,y/VsdxExport.prototype.CONVERSION_FACTOR,z)};mxVsdxCanvas2D.prototype.createCellElem=function(g,y,z){var B=this.createElt("Cell");B.setAttribute("N",g);B.setAttribute("V",y);z&&B.setAttribute("F",z);return B};-mxVsdxCanvas2D.prototype.createRowScaled=function(g,y,z,B,m,h,b,a,c,d,f,k,n,q){return this.createRowRel(g,y,z/VsdxExport.prototype.CONVERSION_FACTOR,B/VsdxExport.prototype.CONVERSION_FACTOR,m/VsdxExport.prototype.CONVERSION_FACTOR,h/VsdxExport.prototype.CONVERSION_FACTOR,b/VsdxExport.prototype.CONVERSION_FACTOR,a/VsdxExport.prototype.CONVERSION_FACTOR,c,d,f,k,n,q)};-mxVsdxCanvas2D.prototype.createRowRel=function(g,y,z,B,m,h,b,a,c,d,f,k,n,q){var t=this.createElt("Row");t.setAttribute("T",g);t.setAttribute("IX",y);t.appendChild(this.createCellElem("X",z,c));t.appendChild(this.createCellElem("Y",B,d));null!=m&&isFinite(m)&&t.appendChild(this.createCellElem("A",m,f));null!=h&&isFinite(h)&&t.appendChild(this.createCellElem("B",h,k));null!=b&&isFinite(b)&&t.appendChild(this.createCellElem("C",b,n));null!=a&&isFinite(a)&&t.appendChild(this.createCellElem("D",a,q));-return t};mxVsdxCanvas2D.prototype.begin=function(){1<this.geoStepIndex&&this.createGeoSec()};-mxVsdxCanvas2D.prototype.rect=function(g,y,z,B){1<this.geoStepIndex&&this.createGeoSec();var m=this.state;z*=m.scale;B*=m.scale;var h=this.xmGeo;g=(g-h.x+m.dx)*m.scale;y=(h.height-y+h.y-m.dy)*m.scale;this.geoSec.appendChild(this.createRowScaled("MoveTo",this.geoStepIndex++,g,y));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,g+z,y));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,g+z,y-B));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,-g,y-B));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,g,y))};mxVsdxCanvas2D.prototype.roundrect=function(g,y,z,B,m,h){this.rect(g,y,z,B);this.shape.appendChild(this.createCellElemScaled("Rounding",m))};-mxVsdxCanvas2D.prototype.ellipse=function(g,y,z,B){1<this.geoStepIndex&&this.createGeoSec();var m=this.state;z*=m.scale;B*=m.scale;var h=this.xmGeo,b=h.height*m.scale,a=h.width*m.scale;g=(g-h.x+m.dx)*m.scale;y=b+(-y+h.y-m.dy)*m.scale;this.geoSec.appendChild(this.createRowScaled("Ellipse",this.geoStepIndex++,g+z/2,y-B/2,g,y-B/2,g+z/2,y,"Width*"+(g+z/2)/a,"Height*"+(y-B/2)/b,"Width*"+g/a,"Height*"+(y-B/2)/b,"Width*"+(g+z/2)/a,"Height*"+y/b))};-mxVsdxCanvas2D.prototype.moveTo=function(g,y){1<this.geoStepIndex&&this.createGeoSec();this.lastMoveToX=g;this.lastMoveToY=y;this.lastX=g;this.lastY=y;var z=this.xmGeo,B=this.state;g=(g-z.x+B.dx)*B.scale;y=(z.height-y+z.y-B.dy)*B.scale;var m=z.height*B.scale;z=z.width*B.scale;this.geoSec.appendChild(this.createRowRel("RelMoveTo",this.geoStepIndex++,g/z,y/m))};-mxVsdxCanvas2D.prototype.lineTo=function(g,y){this.lastX=g;this.lastY=y;var z=this.xmGeo,B=this.state;g=(g-z.x+B.dx)*B.scale;y=(z.height-y+z.y-B.dy)*B.scale;var m=z.height*B.scale;z=z.width*B.scale;this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,g/z,y/m))};-mxVsdxCanvas2D.prototype.quadTo=function(g,y,z,B){this.lastX=z;this.lastY=B;var m=this.state,h=this.xmGeo,b=h.height*m.scale,a=h.width*m.scale;g=(g-h.x+m.dx)*m.scale;y=(h.height-y+h.y-m.dy)*m.scale;z=(z-h.x+m.dx)*m.scale;B=(h.height-B+h.y-m.dy)*m.scale;g/=a;y/=b;z/=a;B/=b;this.geoSec.appendChild(this.createRowRel("RelQuadBezTo",this.geoStepIndex++,z,B,g,y))};-mxVsdxCanvas2D.prototype.curveTo=function(g,y,z,B,m,h){this.lastX=m;this.lastY=h;var b=this.state,a=this.xmGeo,c=a.height*b.scale,d=a.width*b.scale;g=(g-a.x+b.dx)*b.scale;y=(a.height-y+a.y-b.dy)*b.scale;z=(z-a.x+b.dx)*b.scale;B=(a.height-B+a.y-b.dy)*b.scale;m=(m-a.x+b.dx)*b.scale;h=(a.height-h+a.y-b.dy)*b.scale;g/=d;y/=c;z/=d;B/=c;m/=d;h/=c;this.geoSec.appendChild(this.createRowRel("RelCubBezTo",this.geoStepIndex++,m,h,g,y,z,B))};-mxVsdxCanvas2D.prototype.close=function(){this.lastMoveToX==this.lastX&&this.lastMoveToY==this.lastY||this.lineTo(this.lastMoveToX,this.lastMoveToY)};mxVsdxCanvas2D.prototype.addForeignData=function(g,y){var z=this.createElt("ForeignData");z.setAttribute("ForeignType","Bitmap");g=g.toUpperCase();"BMP"!=g&&z.setAttribute("CompressionType",g);g=this.createElt("Rel");g.setAttribute("r:id","rId"+y);z.appendChild(g);this.shape.appendChild(z);this.shapeType="Foreign"};-mxVsdxCanvas2D.prototype.convertSvg2Png=function(g,y,z,B,m){var h=this;this.filesLoading++;try{var b=document.createElement("canvas"),a=b.getContext("2d");B||(g=String.fromCharCode.apply(null,new Uint8Array(g)),g=window.btoa?btoa(g):Base64.encode(g,!0));B="data:image/svg+xml;base64,"+g;img=new Image;img.onload=function(){b.width=Math.max(this.width,y);b.height=Math.max(this.height,z);a.drawImage(this,0,0,b.width,b.height);try{m(b.toDataURL("image/png"))}catch(c){}h.filesLoading--;if(0==h.filesLoading)h.onFilesLoaded()};-img.onerror=function(){console.log("SVG2PNG conversion failed");try{m(g)}catch(c){}h.filesLoading--;if(0==h.filesLoading)h.onFilesLoaded()};img.src=B}catch(c){console.log("SVG2PNG conversion failed"+c.message);try{m(g)}catch(d){}this.filesLoading--;if(0==h.filesLoading)h.onFilesLoaded()}};-mxVsdxCanvas2D.prototype.image=function(g,y,z,B,m,h,b,a){var c=this;h=this.state;z*=h.scale;B*=h.scale;var d=this.pageIndex+"_image"+(this.images.length+1)+".";if(0==m.indexOf("data:")){var f=m.indexOf("base64,");b=m.substring(f+7);f=m.substring(11,f-1);0==f.indexOf("svg")?(f="png",d+=f,this.convertSvg2Png(b,z,B,!0,function(n){c.zip.file("visio/media/"+d,n.substring(22),{base64:!0})})):(d+=f,this.zip.file("visio/media/"+d,b,{base64:!0}))}else if(window.XMLHttpRequest){m=this.converter.convert(m);-this.filesLoading++;f=m.lastIndexOf(".");f=m.substring(f+1);var k=!1;0==f.indexOf("svg")&&(f="png",k=!0);d+=f;b=new XMLHttpRequest;b.open("GET",m,!0);b.responseType="arraybuffer";b.onreadystatechange=function(n){if(4==this.readyState&&(200==this.status&&(k?c.convertSvg2Png(this.response,z,B,!1,function(q){c.zip.file("visio/media/"+d,q.substring(22),{base64:!0})}):c.zip.file("visio/media/"+d,this.response)),c.filesLoading--,0==c.filesLoading))c.onFilesLoaded()};b.send()}this.images.push(d);this.shapeImg=-{type:f,id:this.images.length+1};m=this.xmGeo;g=(g-m.x+h.dx)*h.scale;y=(m.height-y+m.y-h.dy)*h.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",g));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",y-B));this.shape.appendChild(this.createCellElemScaled("ImgWidth",z));this.shape.appendChild(this.createCellElemScaled("ImgHeight",B))};-mxVsdxCanvas2D.prototype.text=function(g,y,z,B,m,h,b,a,c,d,f,k,n){var q=this;if(this.textEnabled&&null!=m){mxUtils.isNode(m)&&(m=mxUtils.getOuterHtml(m));0==z&&0==B&&(B=mxUtils.getSizeForString(m,q.cellState.style.fontSize,q.cellState.style.fontFamily),z=2*B.width,B=2*B.height);"html"==c&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(m=m.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=Graph.sanitizeHtml(m),-m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));d=this.state;f=this.xmGeo;z*=d.scale;B*=d.scale;var t=this.createElt("Section");t.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var C=this.createElt("Text"),I=0,Q=0,K=0,L=0,S=0,R=0,H=0,N=function(V,P,ea,Y,sa){var oa=V.fontSize,Ra=V.fontFamily,la=mxUtils.getSizeForString(sa,oa,Ra);a&&la.width>z&&(la=mxUtils.getSizeForString(sa,oa,Ra,z));V.blockElem?(S+=la.width,K=Math.min(Math.max(K,S),-z),S=0,R=Math.max(R,la.height),L+=R+H,H=R,R=0):(S+=la.width,K=Math.min(Math.max(K,S),z),R=Math.max(R,la.height),L=Math.max(L,R));la=q.createElt("Row");la.setAttribute("IX",I);V.fontColor&&la.appendChild(q.createCellElem("Color",mxUtils.rgba2hex(V.fontColor)));oa&&la.appendChild(q.createCellElemScaled("Size",.97*oa));Ra&&la.appendChild(q.createCellElem("Font",Ra));oa=0;V.bold&&(oa|=17);V.italic&&(oa|=34);V.underline&&(oa|=4);la.appendChild(q.createCellElem("Style",oa));la.appendChild(q.createCellElem("Case",-"0"));la.appendChild(q.createCellElem("Pos","0"));la.appendChild(q.createCellElem("FontScale","1"));la.appendChild(q.createCellElem("Letterspace","0"));P.appendChild(la);P=q.createElt("Row");P.setAttribute("IX",Q);switch(V.align){case "left":oa=0;break;case "center":oa=1;break;case "right":oa=2;break;case "start":oa=0;break;case "end":oa=2;break;case "justify":oa=0;break;default:oa=1}P.appendChild(q.createCellElem("HorzAlign",oa));ea.appendChild(P);ea=q.createElt("cp");ea.setAttribute("IX",I++);Y.appendChild(ea);-V=q.xmlDoc.createTextNode(sa+(V.blockElem?"\n":""));Y.appendChild(V)},J=function(V,P){P=P||{};for(var ea=0;ea<V.length;ea++){var Y=V[ea];if(3==Y.nodeType){var sa=q.cellState.style.fontStyle;sa={fontColor:P.fontColor||q.cellState.style.fontColor,fontSize:P.fontSize||q.cellState.style.fontSize,fontFamily:P.fontFamily||q.cellState.style.fontFamily,align:P.align||q.cellState.style.align,bold:P.bold||sa&1,italic:P.italic||sa&2,underline:P.underline||sa&4};var oa=!1;ea+1<V.length&&"BR"==V[ea+1].nodeName.toUpperCase()&&-(oa=!0,ea++);N(sa,t,A,C,(P.OL?P.LiIndex+". ":"")+Y.textContent+(oa?"\n":""))}else if(1==Y.nodeType){oa=Y.nodeName.toUpperCase();var Ra=Y.childNodes.length;sa=window.getComputedStyle(Y,null);sa={bold:"bold"==sa.getPropertyValue("font-weight")||P.bold,italic:"italic"==sa.getPropertyValue("font-style")||P.italic,underline:0<=sa.getPropertyValue("text-decoration").indexOf("underline")||P.underline,align:sa.getPropertyValue("text-align"),fontColor:sa.getPropertyValue("color"),fontSize:parseFloat(sa.getPropertyValue("font-size")),-fontFamily:sa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==sa.getPropertyValue("display")||"BR"==oa||"LI"==oa,OL:P.OL,LiIndex:P.LiIndex};if("UL"==oa){var la=q.createElt("Row");la.setAttribute("IX",Q);la.appendChild(q.createCellElem("HorzAlign","0"));la.appendChild(q.createCellElem("Bullet","1"));A.appendChild(la);la=q.createElt("pp");la.setAttribute("IX",Q++);C.appendChild(la)}else"OL"==oa?sa.OL=!0:"LI"==oa&&(sa.LiIndex=ea+1);0<Ra?(J(Y.childNodes,sa),"UL"==oa&&(la=q.createElt("Row"),-la.setAttribute("IX",Q),la.appendChild(q.createCellElem("Bullet","0")),A.appendChild(la),la=q.createElt("pp"),la.setAttribute("IX",Q++),C.appendChild(la)),N(sa,t,A,C,"")):N(sa,t,A,C,(P.OL?P.LiIndex+". ":"")+Y.textContent)}}};"html"==c&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&J(m.childNodes,{})):N({fontColor:q.cellState.style.fontColor,fontSize:q.cellState.style.fontSize,fontFamily:q.cellState.style.fontFamily},t,A,C,m);c=m=0;B=Math.max(B,-L);z=Math.max(z,K);n=z/2;var M=B/2,T=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),ca=T*Math.PI/180;switch(h){case "right":0!=T?(g-=n*Math.cos(ca),y-=n*Math.sin(ca)):m=K/2;break;case "left":0!=T?(g+=n*Math.cos(ca),y+=n*Math.sin(ca)):m=-K/2}switch(b){case "top":0!=T?(g+=M*Math.sin(ca),y+=M*Math.cos(ca)):c=L/2;break;case "bottom":0!=T?(g-=M*Math.sin(ca),y-=M*Math.cos(ca)):c=-L/2}g=(g-f.x+d.dx)*d.scale;y=(f.height-y+f.y-d.dy)*d.scale;this.shape.appendChild(this.createCellElemScaled("TxtPinX",-g));this.shape.appendChild(this.createCellElemScaled("TxtPinY",y));this.shape.appendChild(this.createCellElemScaled("TxtWidth",z));this.shape.appendChild(this.createCellElemScaled("TxtHeight",B));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",n+m));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",M+c));k-=T;0!=k&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-k)*Math.PI/180));this.shape.appendChild(t);this.shape.appendChild(A);this.shape.appendChild(C)}};-mxVsdxCanvas2D.prototype.rotate=function(g,y,z,B,m){0!=g&&(y=this.state,B+=y.dx,m+=y.dy,B*=y.scale,m*=y.scale,this.shape.appendChild(this.createCellElem("Angle",(360-g)*Math.PI/180)),y.rotation+=g,y.rotationCx=B,y.rotationCy=m)};mxVsdxCanvas2D.prototype.stroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","1"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};-mxVsdxCanvas2D.prototype.fill=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","1"))};mxVsdxCanvas2D.prototype.fillAndStroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};function BmpDecoder(g,y){this.pos=0;this.buffer=g;this.is_with_alpha=!!y;if(66!=this.buffer[0]&&77!=this.buffer[1])throw Error("Invalid BMP File");this.pos+=2;this.parseHeader();this.parseBGR()}-BmpDecoder.prototype.parseHeader=function(){var g=this.buffer;this.fileSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.reserved=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.offset=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.headerSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.width=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];-this.pos+=4;this.height=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.planes=g[this.pos+1]<<8|g[this.pos];this.pos+=2;this.bitPP=g[this.pos+1]<<8|g[this.pos];this.pos+=2;this.compress=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.rawSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.hr=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.vr=g[this.pos+3]<<24|g[this.pos+-2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.colors=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.importantColors=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15);if(15>this.bitPP){g=0===this.colors?1<<this.bitPP:this.colors;this.palette=Array(g);for(var y=0;y<g;y++){var z=this.buffer[this.pos++],B=this.buffer[this.pos++],m=this.buffer[this.pos++],h=this.buffer[this.pos++];-this.palette[y]={red:m,green:B,blue:z,quad:h}}}};BmpDecoder.prototype.parseBGR=function(){this.pos=this.offset;try{var g="bit"+this.bitPP,y=document.createElement("canvas").getContext("2d").createImageData(this.width,this.height);this.imageData=y;this.data=y.data;this[g]()}catch(z){console.log("bit decode error:"+z)}};-BmpDecoder.prototype.bit1=function(){for(var g=Math.ceil(this.width/8),y=g%4,z=this.height-1;0<=z;z--){for(var B=0;B<g;B++)for(var m=this.buffer[this.pos++],h=z*this.width*4+32*B,b=0;8>b;b++)if(8*B+b<this.width){var a=this.palette[m>>7-b&1];this.data[h+4*b]=a.red;this.data[h+4*b+1]=a.green;this.data[h+4*b+2]=a.blue;this.data[h+4*b+3]=255}else break;0!=y&&(this.pos+=4-y)}};-BmpDecoder.prototype.bit4=function(){for(var g=Math.ceil(this.width/2),y=g%4,z=this.height-1;0<=z;z--){for(var B=0;B<g;B++){var m=this.buffer[this.pos++],h=z*this.width*4+8*B,b=m&15;m=this.palette[m>>4];this.data[h]=m.red;this.data[h+1]=m.green;this.data[h+2]=m.blue;this.data[h+3]=255;if(2*B+1>=this.width)break;m=this.palette[b];this.data[h+4]=m.red;this.data[h+4+1]=m.green;this.data[h+4+2]=m.blue;this.data[h+4+3]=255}0!=y&&(this.pos+=4-y)}};-BmpDecoder.prototype.bit8=function(){for(var g=this.width%4,y=this.height-1;0<=y;y--){for(var z=0;z<this.width;z++){var B=this.buffer[this.pos++],m=y*this.width*4+4*z;B<this.palette.length?(B=this.palette[B],this.data[m]=B.red,this.data[m+1]=B.green,this.data[m+2]=B.blue):(this.data[m]=255,this.data[m+1]=255,this.data[m+2]=255);this.data[m+3]=255}0!=g&&(this.pos+=4-g)}};-BmpDecoder.prototype.bit15=function(){var g=2*this.width%4;0!=g&&(g=4-g);for(var y=this.height-1;0<=y;y--){for(var z=0;z<this.width;z++){var B=this.buffer[this.pos+1]<<8|this.buffer[this.pos];this.pos+=2;var m=(B&31)/31*255|0,h=(B>>5&31)/31*255|0,b=B>>15?255:0,a=y*this.width*4+4*z;this.data[a]=(B>>10&31)/31*255|0;this.data[a+1]=h;this.data[a+2]=m;this.data[a+3]=b}this.pos+=g}};-BmpDecoder.prototype.bit16=function(){var g=2*this.width%4;0!=g&&(g=4-g);for(var y=this.height-1;0<=y;y--){for(var z=0;z<this.width;z++){var B=this.buffer[this.pos+1]<<8|this.buffer[this.pos];this.pos+=2;var m=(B&31)/31*255|0,h=(B>>5&31)/31*255|0,b=y*this.width*4+4*z;this.data[b]=(B>>10&31)/31*255|0;this.data[b+1]=h;this.data[b+2]=m;this.data[b+3]=255}this.pos+=g}};-BmpDecoder.prototype.bit24=function(){var g=3*this.width%4;0!=g&&(g=4-g);for(var y=this.height-1;0<=y;y--){for(var z=0;z<this.width;z++){var B=this.buffer[this.pos++],m=this.buffer[this.pos++],h=this.buffer[this.pos++],b=y*this.width*4+4*z;this.data[b]=h;this.data[b+1]=m;this.data[b+2]=B;this.data[b+3]=255}this.pos+=g}};-BmpDecoder.prototype.bit32=function(){for(var g=this.height-1;0<=g;g--)for(var y=0;y<this.width;y++){var z=this.buffer[this.pos++],B=this.buffer[this.pos++],m=this.buffer[this.pos++],h=this.buffer[this.pos++],b=g*this.width*4+4*y;this.data[b]=m;this.data[b+1]=B;this.data[b+2]=z;this.data[b+3]=h}};BmpDecoder.prototype.getData=function(){return this.data};var __extends=this&&this.__extends||function(g,y){function z(){this.constructor=g}for(var B in y)y.hasOwnProperty(B)&&(g[B]=y[B]);g.prototype=null===y?Object.create(y):(z.prototype=y.prototype,new z)},com;-(function(g){(function(y){(function(z){var B=function(){function m(b){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.layerNames=[];this.debugPaths=!1;this.vsdxModel=null;this.editorUi=b;this.shapeIndexShift=0}function h(b,a,c,d,f){b=c.createLabelSubShape(b,a);null!=b&&(0!==d&&(a=b.getStyle().match(/;rotation=(\d+\.*\d+)/),-null!=a&&(d+=parseFloat(a[1])),b.setStyle(b.getStyle().replace(/;rotation=(\d+\.*\d+)/,"")+";rotation="+(60<d&&240>d?(d+180)%360:d))),d=b.getGeometry(),d.x=0,d.y=0,d.relative=!0,f=f||new mxPoint(0,0),d.offset=new mxPoint(f.x-d.width/2,f.y-d.height/2))}m.vsdxPlaceholder_$LI$=function(){null==m.vsdxPlaceholder&&(m.vsdxPlaceholder=window.atob?atob("dmlzaW8="):Base64.decode("dmlzaW8=",!0));return m.vsdxPlaceholder};m.parsererrorNS_$LI$=function(){m.parsererrorNS=mxConstants.NS_XHTML;return m.parsererrorNS};-m.parseXml=function(b){try{var a=mxUtils.parseXml(b);return 0<a.getElementsByTagNameNS(m.parsererrorNS,"parsererror").length?null:a}catch(c){return null}};m.decodeUTF16LE=function(b){for(var a="",c=0;c<b.length;c+=2)a+=String.fromCharCode(b.charCodeAt(c)|b.charCodeAt(c+1)<<8);return a};m.prototype.scaleGraph=function(b,a){if(1!==a){b=b.getModel();for(var c in b.cells){var d=b.cells[c],f=b.getGeometry(d);if(null!=f&&(this.scaleRect(f,a),this.scaleRect(f.alternateBounds,a),b.isEdge(d)&&(this.scalePoint(f.sourcePoint,-a),this.scalePoint(f.targetPoint,a),this.scalePoint(f.offset,a),d=f.points,null!=d)))for(f=0;f<d.length;f++)this.scalePoint(d[f],a)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&"}];m.prototype.decodeVsdx=function(b,a,c,d){function f(K,L,S){function R(){C++;I();L++;L==H&&f(K,L,S)}for(var H=Math.min(L+Q,K.length),N=L;N<H;N++)(function(J){function M(ca){var V=new FormData;V.append("img",ca,J.name);V.append("inputformat","emf");V.append("outputformat","png");var P=new XMLHttpRequest;-P.open("POST",EMF_CONVERT_URL);P.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(P);P.onreadystatechange=mxUtils.bind(this,function(){if(4==P.readyState)if(200<=P.status&&299>=P.status)try{var ea=new FileReader;ea.readAsDataURL(P.response);ea.onloadend=function(){var Y=ea.result.indexOf(",")+1;S[J.name]=ea.result.substr(Y);R()}}catch(Y){console.log(Y),R()}else T++,3>T?M(ca):R()});P.send(V)}var T=0;J.async("blob").then(M)})(K[N])}var k=this,n={},q={},t=function(){function K(){H=H.concat(k.RESPONSE_END);-a&&a(H)}for(var L=m.vsdxPlaceholder+"/document.xml",S=n[L]?n[L]:null,R=S.firstChild;null!=R&&1!=R.nodeType;)R=R.nextSibling;if(null!=R&&1==R.nodeType)k.importNodes(S,R,L,n);else return null;k.vsdxModel=new g.mxgraph.io.vsdx.mxVsdxModel(S,n,q);L=k.vsdxModel.getPages();var H=k.RESPONSE_HEADER;var N=function(ca){null==ca.entries&&(ca.entries=[]);return ca.entries}(L);m.pageTitleMap={};m.pageIdsSet={};try{for(L=0;L<N.length;L++){var J=N[L].getValue();m.pageTitleMap[J.getPageName()]=J.getPageNameU();m.pageIdsSet[J.getPageNameU()]=-!0}}catch(ca){}var M=function(ca,V){var P=N[ca].getValue(),ea=T.createMxGraph();ea.getModel().beginUpdate();T.importPage(P,ea,ea.getDefaultParent(),!0);T.scaleGraph(ea,P.getPageScale()/P.getDrawingScale());ea.getModel().endUpdate();T.postImportPage(P,ea,function(){T.sanitiseGraph(ea);H=H.concat(k.RESPONSE_DIAGRAM_START);H=H.concat(k.processPage(ea,P));H=H.concat(k.RESPONSE_DIAGRAM_END);ca<N.length-1?M(ca+1,V):V()})},T=k;0<N.length?M(0,K):K()},A=0,C=0,I=function(){if(C==A)try{t()}catch(K){console.log(K),-null!=d?d(K):a("")}},Q=window.EMF_CHUNK_SIZE||10;JSZip.loadAsync(b).then(function(K){if(0==Object.keys(K.files).length)null!=d&&d();else{var L=[];K.forEach(function(S,R){var H=R.name;S=H.toLowerCase();var N=S.length;S.indexOf(".xml")==N-4||S.indexOf(".rels")==N-5?(A++,R.async("string").then(function(J){if(0!==J.length){65279==J.charCodeAt(0)&&(J=J.substring(1));var M=m.parseXml(J);if(null==M)if(0===J.charCodeAt(1)&&0===J.charCodeAt(3)&&0===J.charCodeAt(5))M=m.parseXml(m.decodeUTF16LE(J));else{for(M=-0;M<m.incorrectXMLReqExp.length;M++)m.incorrectXMLReqExp[M].regExp.test(J)&&(J=J.replace(m.incorrectXMLReqExp[M].regExp,m.incorrectXMLReqExp[M].repl));M=m.parseXml(J)}null!=M&&(M.vsdxFileName=H,n[H]=M)}C++;I()})):0===S.indexOf(m.vsdxPlaceholder+"/media")&&(A++,function(J,M){var T=J.length-M.length;J=J.indexOf(M,T);return-1!==J&&J===T}(S,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?L.push(R):(C++,I()):function(J,M){var T=J.length-M.length;J=J.indexOf(M,T);return-1!==J&&J===T}(S,".bmp")?JSZip.support.uint8array&&-R.async("uint8array").then(function(J){J=new BmpDecoder(J);var M=document.createElement("canvas");M.width=J.width;M.height=J.height;M.getContext("2d").putImageData(J.imageData,0,0);J=M.toDataURL("image/jpeg");q[H]=J.substr(23);C++;I()}):R.async("base64").then(function(J){q[H]=J;C++;I()}))});f(L,0,q)}},function(K){null!=d&&d(K)})};m.prototype.createMxGraph=function(){var b=new Graph;b.setExtendParents(!1);b.setExtendParentsOnAdd(!1);b.setConstrainChildren(!1);b.setHtmlLabels(!0);b.getModel().maintainEdgeParent=-!1;return b};m.prototype.processPage=function(b,a){b=(new mxCodec).encode(b.getModel());b.setAttribute("style","default-style2");b=mxUtils.getXml(b);var c="";if(null!=a){var d=mxUtils.htmlEntities(a.getPageName())+(a.isBackground()?" (Background)":"");a=mxUtils.htmlEntities(a.getPageNameU());c+='<diagram name="'+d+'" id="'+a.replace(/\s/g,"_")+'">'}return c+=Graph.compress(b)};m.prototype.scalePoint=function(b,a){null!=b&&(b.x*=a,b.y*=a);return b};m.prototype.scaleRect=function(b,a){null!=b&&(b.x*=-a,b.y*=a,b.height*=a,b.width*=a);return b};m.prototype.importNodes=function(b,a,c,d){var f=c.lastIndexOf("/"),k=c,n=c;if(-1!==f&&(k=c.substring(0,f),n=c.substring(f+1,c.length),c=function(C,I){return C[I]?C[I]:null}(d,k+"/_rels/"+n+".rels"),null!=c)){var q=c.getElementsByTagName("Relationship");c={};for(f=0;f<q.length;f++){n=q.item(f);var t=n.getAttribute("Id");n=n.getAttribute("Target");c[t]=n}a=a.getElementsByTagName("Rel");for(f=0;f<a.length;f++)if(q=a.item(f),n=function(C,I){return C[I]?C[I]:-null}(c,q.getAttribute("r:id")),n=k+"/"+n,null!=n&&(t=d[n]?d[n]:null,null!=t)){q=q.parentNode;for(t=t.firstChild;null!=t&&1!=t.nodeType;)t=t.nextSibling;if(null!=t&&1==t.nodeType)for(t=t.firstChild;null!=t;){if(null!=t&&1==t.nodeType){var A=q.appendChild(b.importNode(t,!0));this.importNodes(b,A,n,d)}t=t.nextSibling}}}};m.prototype.layerIndexToNames=function(b){var a=[];if(b)for(var c=0;c<b.length;c++){var d=parseInt(b[c]);d<this.layerNames.length&&a.push(this.layerNames[d])}return 0<a.length?a:[mxResources.get("background")]};-m.prototype.importPage=function(b,a,c,d){var f=b.getBackPage();if(null!=f){a.getModel().setValue(a.getDefaultParent(),b.getPageName());var k=new mxCell(f.getPageName());a.addCell(k,a.getModel().getRoot(),0,null,null);this.importPage(f,a,a.getDefaultParent())}var n=b.getLayers();k=b.getShapes();f=[];for(var q=0;q<n.length;q++){var t=n[q],A=t.Name.replace(/\s/g,"_");this.layerNames.push(A);0==t.Visible&&f.push(A)}t=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<-C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(k));k=b.getPageDimensions().y;for(q=b.getId();t.hasNext();)n=t.next(),n=n.getValue(),A=this.addShape(a,n,c,q,k),n=this.layerIndexToNames(n.layerMember),null!=A&&null!=n&&a.addTagsForCells([A],n);for(b=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(b.getConnects()));b.hasNext();)n=b.next(),n=this.addConnectedEdge(a,-n.getValue(),q,k),null!=n&&function(C,I){null==C.entries&&(C.entries=[]);for(var Q=0;Q<C.entries.length;Q++)if(null!=C.entries[Q].key.equals&&C.entries[Q].key.equals(I)||C.entries[Q].key===I)return C.entries.splice(Q,1)[0]}(this.edgeShapeMap,n);for(b=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(this.edgeShapeMap));b.hasNext();)n=b.next(),n.getKey().getPageNumber()===q&&-(t=this.addUnconnectedEdge(a,function(C,I){null==C.entries&&(C.entries=[]);for(var Q=0;Q<C.entries.length;Q++)if(null!=C.entries[Q].key.equals&&C.entries[Q].key.equals(I)||C.entries[Q].key===I)return C.entries[Q].value;return null}(this.parentsMap,n.getKey()),n.getValue(),k),n=this.layerIndexToNames(n.getValue().layerMember),null!=n&&a.addTagsForCells([t],n));if(0<this.layerNames.length){b=a.getAllTags();q=!1;for(n=0;n<this.layerNames.length;n++)if(0>mxUtils.indexOf(b,this.layerNames[n])){q=!0;break}q&&-(c=a.insertVertex(c,null,null,0,0,0,0),a.addTagsForCells([c],this.layerNames),c.setVisible(!1));a.setHiddenTags(f)}d||this.sanitiseGraph(a);return k};m.prototype.postImportPage=function(b,a,c){try{var d=function(q){if(null!=q){q=q.entries||[];for(var t=0;t<q.length;t++){var A=q[t].value||{};A.toBeCroppedImg&&k.push(A);d(A.getChildShapes())}}},f=this,k=[];d(b.getShapes());if(0<k.length){var n=function(q,t){function A(){q<k.length-1?n(q+1,t):t()}var C=k[q],I=C.toBeCroppedImg,Q=function(L,S){null==L.entries&&-(L.entries=[]);for(var R=0;R<L.entries.length;R++)if(null!=L.entries[R].key.equals&&L.entries[R].key.equals(S)||L.entries[R].key===S)return L.entries[R].value;return null}(f.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b.Id,C.Id)),K=new Image;K.onload=function(){var L=I.iData,S=I.iType;try{var R=K.width/I.imgWidth,H=K.height/I.imgHeight,N=-I.imgOffsetX*R,J=(I.imgHeight-I.height+I.imgOffsetY)*H,M=document.createElement("canvas");M.width=I.width*R;M.height=I.height*H;var T=M.getContext("2d");T.fillStyle=-"#FFFFFF";T.fillRect(0,0,M.width,M.height);T.drawImage(K,N,J,M.width,M.height,0,0,M.width,M.height);L=M.toDataURL("image/jpeg").substr(23);S="jpg"}catch(ca){console.log(ca)}Q.style+=";image=data:image/"+S+","+L;A()};K.src="data:image/"+I.iType+";base64,"+I.iData;K.onerror=function(){Q.style+=";image=data:image/"+I.iType+","+I.iData;A()}};n(0,c)}else c()}catch(q){console.log(q),c()}};m.prototype.addShape=function(b,a,c,d,f){a.parentHeight=f;var k=g.mxgraph.io.vsdx.VsdxShape.getType(a.getShape());if(null!=-k&&(function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var n=a.getId();if(a.isVertex()){k=null;k=a.isGroup()?this.addGroup(b,a,c,d,f):this.addVertex(b,a,c,d,f);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=-q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),a);c=a.getHyperlink();c.pageLink?(d=c.pageLink,m.pageIdsSet[d]||null==m.pageTitleMap[d]||(d=m.pageTitleMap[d]+""),b.setLinkForCell(k,"data:page/id,"+d.replace(/\s/g,"_"))):c.extLink&&b.setLinkForCell(k,c.extLink);a=a.getProperties();-for(c=0;c<a.length;c++)try{b.setAttributeForCell(k,a[c].key,a[c].val)}catch(q){console.log('Attribute: "',a[c].key,'" with value "',a[c].val,'" not allowed in HTML')}return k}a.isGroup()&&this.addGroup(b,a,c,d,f,!0);a.setShapeIndex(b.getModel().getChildCount(c));(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},-getValue:function(){return this.value}})})(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),a);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),c)}return null};m.prototype.addGroup=function(b,-a,c,d,f,k){var n=a.getDimensions(),q=a.getMaster(),t=a.getStyleFromShape(),A=a.getGeomList();if(A.isNoFill()||k)t[mxConstants.STYLE_FILLCOLOR]="none",t[mxConstants.STYLE_GRADIENTCOLOR]="none";if(A.isNoLine()||k)t[mxConstants.STYLE_STROKECOLOR]="none";t.html="1";t[mxConstants.STYLE_WHITE_SPACE]="wrap";var C=g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"=");k=null;A=a.getChildShapes();k=null!=A&&0<function(K){null==K.entries&&(K.entries=[]);return K.entries.length}(A);t=a.isDisplacedLabel()||a.isRotatedLabel()||-k;k=a.getOriginPoint(f,!0);if(t)k=b.insertVertex(c,null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C);else{var I=a.noLabelGroup?null:a.getTextLabel();k=b.insertVertex(c,null,I,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C)}c=k.geometry.height;for(A=function(K){var L=0;return{next:function(){return L<-K.length?K[L++]:null},hasNext:function(){return L<K.length}}}(function(K){null==K.entries&&(K.entries=[]);return K.entries}(A));A.hasNext();)if(C=A.next().getValue(),I=C.getId(),C.isVertex()){var Q=g.mxgraph.io.vsdx.VsdxShape.getType(C.getShape());null!=Q&&(function(K,L){return K&&K.equals?K.equals(L):K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(K,L){return K&&K.equals?K.equals(L):K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(K,L){return K&&K.equals?K.equals(L):-K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&C.isVertex()&&(C.propagateRotation(a.getRotation()),(Q=C.isGroup()?this.addGroup(b,C,k,d,n.y):this.addVertex(b,C,k,d,n.y))&&Q.geometry&&(c=Math.max(Q.geometry.height,c)));null==q&&function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,-new g.mxgraph.io.vsdx.ShapePageId(d,I),C)}else null==q?(function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),C),function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=-K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),k)):this.addUnconnectedEdge(b,k,C,f);if(k.children&&0==k.geometry.height&&0<c)for(k.geometry.height=c,f=0;f<k.children.length;f++)n=k.children[f],n.geometry&&(n.geometry.y+=c);t&&a.createLabelSubShape(b,k);b=a.getRotation();if(0!==b)for(f=-k.getGeometry(),q=f.width/2,t=f.height/2,f=0;f<k.getChildCount();f++)n=k.getChildAt(f),g.mxgraph.online.Utils.rotatedGeometry(n.getGeometry(),b,q,t);(function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,-a.getId()),k);return k};m.rotatedEdgePoint=function(b,a,c,d){a=a*Math.PI/180;var f=Math.cos(a);a=Math.sin(a);var k=b.x-c,n=b.y-d;b.x=Math.round(k*f-n*a+c);b.y=Math.round(n*f+k*a+d)};m.prototype.addVertex=function(b,a,c,d,f){var k="",n=a.isDisplacedLabel()||a.isRotatedLabel();n||(k=a.getTextLabel());var q=a.getDimensions(),t=a.getStyleFromShape();t.html="1";var A=t.hasOwnProperty(mxConstants.STYLE_SHAPE)||t.hasOwnProperty("stencil");t.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&A||(t[mxConstants.STYLE_FILLCOLOR]=-"none");A||(t[mxConstants.STYLE_STROKECOLOR]="none");t.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&A||(t[mxConstants.STYLE_GRADIENTCOLOR]="none");t[mxConstants.STYLE_WHITE_SPACE]="wrap";f=a.getOriginPoint(f,!0);return A||null!=k?(t=g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"="),A=null,A=n?b.insertVertex(c,null,null,Math.floor(Math.round(100*f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t):b.insertVertex(c,null,k,Math.floor(Math.round(100*-f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t),function(C,I,Q){null==C.entries&&(C.entries=[]);for(var K=0;K<C.entries.length;K++)if(null!=C.entries[K].key.equals&&C.entries[K].key.equals(I)||C.entries[K].key===I){C.entries[K].value=Q;return}C.entries.push({key:I,value:Q,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,a.getId()),A),a.setLabelOffset(A,-t),n&&a.createLabelSubShape(b,A),A):null};m.calculateAbsolutePoint=function(b){for(var a=0,c=0;null!=b;){var d=b.geometry;null!=d&&(a+=d.x,c+=d.y);b=b.parent}return new mxPoint(a,c)};m.prototype.processEdgeGeo=function(b,a){try{var c=b.geomList.geomList[0].rows;for(b=0;b<c.length;b++)if(c[b]instanceof g.mxgraph.io.vsdx.geometry.ArcTo){a.style+="jumpStyle=arc;";break}for(b=0;b<c.length;b++);}catch(d){}};m.prototype.addConnectedEdge=function(b,a,c,d){var f=a.getFromSheet();f=new g.mxgraph.io.vsdx.ShapePageId(c,-f);var k=function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.edgeShapeMap,f);if(null==k)return null;var n=function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(c,-k.getId()));if(null!=n){var q=b.getModel().getGeometry(n);null!=q&&(d=q.height)}var t=k.getStartXY(d),A=k.getEndXY(d);q=k.getRoutingPoints(d,t,k.getRotation());this.rotateChildEdge(b.getModel(),n,t,A,q);var C=null,I=a.getSourceToSheet();I=null!=I?function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c,-I)):null;var Q=!0;if(null==I||0==I.geometry.width||0==I.geometry.height)I=b.insertVertex(n,null,null,Math.floor(Math.round(100*t.x)/100),Math.floor(Math.round(100*t.y)/100),0,0);else if(I.style&&-1==I.style.indexOf(";rotation=")){C=m.calculateAbsolutePoint(I);var K=m.calculateAbsolutePoint(n),L=I.geometry;C=new mxPoint((K.x+t.x-C.x)/L.width,(K.y+t.y-C.y)/L.height)}else Q=!1;t=null;a=a.getTargetToSheet();a=null!=a?function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=-H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c,a)):null;K=!0;null==a||0==a.geometry.width||0==a.geometry.height?a=b.insertVertex(n,null,null,Math.floor(Math.round(100*A.x)/100),Math.floor(Math.round(100*A.y)/100),0,0):a.style&&-1==a.style.indexOf(";rotation=")?(c=m.calculateAbsolutePoint(a),t=m.calculateAbsolutePoint(n),L=a.geometry,t=new mxPoint((t.x+A.x-c.x)/L.width,(t.y+A.y-c.y)/-L.height)):K=!1;c=k.getStyleFromEdgeShape(d);L=k.getRotation();A="";var S=k.isDisplacedLabel()||k.isRotatedLabel()||0!==L,R=k.getLblEdgeOffset(b.getView(),q);S||(A=k.getTextLabel(!0));A=b.insertEdge(n,null,A,I,a,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(c,"="));S?h(b,A,k,L,R):A.getGeometry().offset=R;null!=C&&b.setConnectionConstraint(A,I,!0,new mxConnectionConstraint(C,!1));Q&&q.shift();null!=t&&b.setConnectionConstraint(A,a,!1,new mxConnectionConstraint(t,!1));K&&q.pop();Q=b.getModel().getGeometry(A);-if(I.parent!=a.parent&&null!=n&&1!=n.id&&1==I.parent.id){a=C=0;do t=n.geometry,null!=t&&(C+=t.x,a+=t.y),n=n.parent;while(null!=n);A.parent=I.parent;for(n=0;n<q.length;n++)q[n].x+=C,q[n].y+=a}Q.points=q;c.hasOwnProperty("curved")&&function(H,N){return H&&H.equals?H.equals(N):H===N}(function(H,N){return H[N]?H[N]:null}(c,"curved"),"1")&&(Q=b.getModel().getGeometry(A),d=k.getControlPoints(d),Q.points=d);this.processEdgeGeo(k,A);k=this.layerIndexToNames(k.layerMember);null!=k&&b.addTagsForCells([A],k);-return f};m.prototype.addUnconnectedEdge=function(b,a,c,d){if(null!=a){var f=b.getModel().getGeometry(a);null!=f&&(d=f.height)}f=c.getStartXY(d);var k=c.getEndXY(d),n=c.getStyleFromEdgeShape(d),q=c.getRoutingPoints(d,f,c.getRotation()),t=c.getRotation();var A="";var C=c.isDisplacedLabel()||c.isRotatedLabel()||0!==t,I=c.getLblEdgeOffset(b.getView(),q);C||(A=c.getTextLabel(!0));0===c.getShapeIndex()?A=b.insertEdge(a,null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")):(A=b.createEdge(a,-null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")),A=b.addEdge(A,a,null,null,c.getShapeIndex()+this.shapeIndexShift++));C?h(b,A,c,t,I):A.getGeometry().offset=I;this.rotateChildEdge(b.getModel(),a,f,k,q);a=b.getModel().getGeometry(A);q.pop();q.shift();a.points=q;a.setTerminalPoint(f,!0);a.setTerminalPoint(k,!1);n.hasOwnProperty("curved")&&function(Q,K){return Q&&Q.equals?Q.equals(K):Q===K}(function(Q,K){return Q[K]?Q[K]:null}(n,"curved"),"1")&&(a=b.getModel().getGeometry(A),b=c.getControlPoints(d),-a.points=b);this.processEdgeGeo(c,A);return A};m.prototype.rotateChildEdge=function(b,a,c,d,f){if(null!=a){var k=b.getGeometry(a);b=b.getStyle(a);if(null!=k&&null!=b&&(a=b.indexOf("rotation="),-1<a))for(b=parseFloat(b.substring(a+9,b.indexOf(";",a))),a=k.width/2,k=k.height/2,m.rotatedEdgePoint(c,b,a,k),m.rotatedEdgePoint(d,b,a,k),c=0;c<f.length;c++)m.rotatedEdgePoint(f[c],b,a,k)}};m.prototype.sanitiseGraph=function(b){var a=b.getModel().getRoot();this.sanitiseCell(b,a)};m.prototype.sanitiseCell=function(b,-a){for(var c=b.getModel(),d=c.getChildCount(a),f=[],k=0;k<d;k++){var n=c.getChildAt(a,k);this.sanitiseCell(b,n)&&f.push(n)}for(b=0;b<f.length;b++)c.remove(f[b]);f=a.geometry;null!=f&&(0>f.height&&(f.height=Math.abs(f.height),f.y-=f.height,a.style+=";flipV=1;"),0>f.width&&(f.width=Math.abs(f.width),f.x-=f.width,a.style+=";flipH=1;"));0<d&&(d=c.getChildCount(a));f=(new String(c.getValue(a))).toString();b=c.getStyle(a);return 0!==d||!c.isVertex(a)||null!=c.getValue(a)&&0!==f.length||null==b||-1==b.indexOf(mxConstants.STYLE_FILLCOLOR+-"=none")||-1==b.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=b.indexOf("image=")?!1:!0};return m}();z.mxVsdxCodec=B;B.__class="com.mxgraph.io.mxVsdxCodec"})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){var B=function(m){function h(b){var a=m.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=b;return a}__extends(h,m);h.prototype.decodeVssx=function(b,a,c,d){var f=this,k="<mxlibrary>[";this.decodeVsdx(b,function(n){k=k.concat(n);var q=f.vsdxModel.getMasterShapes(),t=function(L){var S=0;return{next:function(){return S<L.length?L[S++]:null},hasNext:function(){return S<L.length}}}(function(L){var S=-[];null==L.entries&&(L.entries=[]);for(var R=0;R<L.entries.length;R++)S.push(L.entries[R].value);return S}(f.vsdxModel.getPages())).next();if(null!=q){var A={str:"",toString:function(){return this.str}},C=0===n.length?"":",",I=function(L){return Object.keys(L).map(function(S){return L[S]})}(q);n=function(L){L=I[L];var S=Q.createMxGraph(),R=1;if(null!=L.pageSheet){var H=R=1,N=L.pageSheet.DrawingScale;null!=N&&(R=parseFloat(N.getAttribute("V"))||1);N=L.pageSheet.PageScale;null!=N&&(H=parseFloat(N.getAttribute("V"))||-1);R=H/R}H=!1;for(N=0;null!=L.firstLevelShapes&&N<L.firstLevelShapes.length;N++){var J=L.firstLevelShapes[N].getShape(),M=new g.mxgraph.io.vsdx.VsdxShape(t,J,!t.isEdge(J),q,null,Q.vsdxModel);J=null;if(M.isVertex()){Q.edgeShapeMap.entries=[];Q.parentsMap.entries=[];J=Q.addShape(S,M,S.getDefaultParent(),0,1169);M=function(P){null==P.entries&&(P.entries=[]);return P.entries}(Q.edgeShapeMap);for(var T=0;T<M.length;T++){var ca=M[T],V=function(P,ea){null==P.entries&&(P.entries=[]);for(var Y=0;Y<P.entries.length;Y++)if(null!=-P.entries[Y].key.equals&&P.entries[Y].key.equals(ea)||P.entries[Y].key===ea)return P.entries[Y].value;return null}(Q.parentsMap,ca.getKey());Q.addUnconnectedEdge(S,V,ca.getValue(),1169)}}else J=Q.addUnconnectedEdge(S,null,M,1169);H|=null!=J}if(H){Q.scaleGraph(S,R);R=Q.normalizeGraph(S);Q.sanitiseGraph(S);if(0===S.getModel().getChildCount(S.getDefaultParent()))return"continue";A.str=A.str.concat(C);A.str=A.str.concat('{"xml":"');S=m.prototype.processPage.call(Q,S,null);A.str=A.str.concat(S);A.str=-A.str.concat('","w":');A.str=A.str.concat(R.width);A.str=A.str.concat(',"h":');A.str=A.str.concat(R.height);A.str=A.str.concat(',"title":');L=L.getName();null==L&&(L="");L=mxUtils.htmlEntities(JSON.stringify(L));A.str=A.str.concat(L);A.str=A.str.concat("}");C=","}};for(var Q=f,K=0;K<I.length;K++)n(K);k=k.concat(A)}k=k.concat("]</mxlibrary>");if(a)try{a(k)}catch(L){null!=d?d(L):a("")}},c)};h.prototype.normalizeGeo=function(b){var a=b.getGeometry();a.x=0;a.y=0;var c=a.sourcePoint;if(b.isEdge()&&null!=-c){this.transPoint(a.targetPoint,c);this.transPoint(a.offset,c);b=a.points;if(null!=b)for(var d=0;d<b.length;d++)this.transPoint(b[d],c);this.transPoint(c,c)}return a};h.prototype.normalizeGraph=function(b){function a(C){null!=C&&(null==c?(c=C.x,d=C.y,f=C.x+(C.width||0),k=C.y+(C.height||0)):(c=Math.min(C.x,c),d=Math.min(C.y,d),f=Math.max(C.x+(C.width||0),f),k=Math.max(C.y+(C.height||0),k)))}var c,d,f,k,n;for(n in b.model.cells){var q=b.model.cells[n],t=q.geometry;if(null!=t&&1==q.parent.id)if(q.vertex)a(t);-else for(a(t.sourcePoint),a(t.targetPoint),q=t.points,t=0;null!=q&&t<q.length;t++)a(q[t])}var A={x:c,y:d};for(n in b.model.cells)if(q=b.model.cells[n],t=q.geometry,null!=t&&1==q.parent.id&&(t.x-=c,t.y-=d,q.isEdge()))for(this.transPoint(t.sourcePoint,A),this.transPoint(t.targetPoint,A),this.transPoint(t.offset,A),q=t.points,t=0;null!=q&&t<q.length;t++)this.transPoint(q[t],A);return{width:f-c,height:k-d}};h.prototype.transPoint=function(b,a){null!=b&&(b.x-=a.x,b.y-=a.y)};h.prototype.processPage=function(b,-a){var c=b.getModel(),d="",f="";for(q in c.cells){var k=c.cells[q];if(b.getDefaultParent()===c.getParent(k)){d=d.concat(f);d=d.concat('{"xml":"');var n=this.createMxGraph();n.addCell(k);this.sanitiseGraph(n);if(0===n.getModel().getChildCount(n.getDefaultParent()))return"continue";f=this.normalizeGeo(k);n=m.prototype.processPage.call(this,n,null);d=d.concat(n);d=d.concat('","w":');d=d.concat(f.width);d=d.concat(',"h":');d=d.concat(f.height);d=d.concat(',"title":"');f=c.getStyle(k);k="";if(null!=f&&-(n=f.indexOf(g.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID),0<=n)){n+=g.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID.length+1;var q=parseInt(f.substring(n,f.indexOf(";",n)));a:{f=this.vertexShapeMap;n=new g.mxgraph.io.vsdx.ShapePageId(a.getId(),q);null==f.entries&&(f.entries=[]);for(var t=0;t<f.entries.length;t++)if(null!=f.entries[t].key.equals&&f.entries[t].key.equals(n)||f.entries[t].key===n){f=f.entries[t].value;break a}f=null}null!=f&&(k=f.getName())}d=d.concat(k);d=d.concat('"}');f=","}}this.RESPONSE_DIAGRAM_START=-0<d.length?",":"";return d};return h}(g.mxgraph.io.mxVsdxCodec);z.mxVssxCodec=B;B.__class="com.mxgraph.io.mxVssxCodec"})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=c;this.y=d}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA=-function(){return this.formulaA};b.prototype.getFormulaE=function(){return this.formulaE};b.prototype.getIndex=function(){return this.index};return b}();m.Row=h;h.__class="com.mxgraph.io.vsdx.geometry.Row"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(c){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var c=parseFloat(a);if(isFinite(c))return c}}catch(d){}return null};b.getRowObj=function(a,c){var d=a.getAttribute("T"),f=b.getIndex(a);var k=(k=a.getAttribute("Del"))&&k.equals?k.equals("1"):"1"===k;if(!k){var n=null;f<=c.length&&(n=c[f-1]);var q=k=c=null,t=null,-A=null,C=null,I=null,Q=null;null!=n&&(c=n.x,k=n.y,q=n.getA(),t=n.getB(),A=n.getC(),C=n.getD(),Q=n.getFormulaA(),I=n.getFormulaE());a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(n=0;n<a.length;n++){var K=a[n],L=K.getAttribute("N"),S=K.getAttribute("V");switch(L){case "X":c=b.getDoubleVal(S);break;case "Y":k=b.getDoubleVal(S);break;case "A":q=b.getDoubleVal(S);Q=K.getAttribute("V");break;case "B":t=b.getDoubleVal(S);break;case "C":A=b.getDoubleVal(S);break;case "D":C=b.getDoubleVal(S);-break;case "E":I=S}}switch(d){case "MoveTo":return new g.mxgraph.io.vsdx.geometry.MoveTo(f,c,k);case "LineTo":return new g.mxgraph.io.vsdx.geometry.LineTo(f,c,k);case "ArcTo":return new g.mxgraph.io.vsdx.geometry.ArcTo(f,c,k,q);case "Ellipse":return new g.mxgraph.io.vsdx.geometry.Ellipse(f,c,k,q,t,A,C);case "EllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.EllipticalArcTo(f,c,k,q,t,A,C);case "InfiniteLine":return new g.mxgraph.io.vsdx.geometry.InfiniteLine(f,c,k,q,t);case "NURBSTo":return new g.mxgraph.io.vsdx.geometry.NURBSTo(f,-c,k,q,t,A,C,I);case "PolylineTo":return new g.mxgraph.io.vsdx.geometry.PolylineTo(f,c,k,Q);case "RelCubBezTo":return new g.mxgraph.io.vsdx.geometry.RelCubBezTo(f,c,k,q,t,A,C);case "RelEllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(f,c,k,q,t,A,C);case "RelLineTo":return new g.mxgraph.io.vsdx.geometry.RelLineTo(f,c,k);case "RelMoveTo":return new g.mxgraph.io.vsdx.geometry.RelMoveTo(f,c,k);case "RelQuadBezTo":return new g.mxgraph.io.vsdx.geometry.RelQuadBezTo(f,c,k,q,t);case "SplineKnot":return new g.mxgraph.io.vsdx.geometry.SplineKnot(f,-c,k,q);case "SplineStart":return new g.mxgraph.io.vsdx.geometry.SplineStart(f,c,k,q,t,A,C)}}return new g.mxgraph.io.vsdx.geometry.DelRow(f)};return b}();m.RowFactory=h;h.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(){this.colorElementMap={};this.fontElementMap={}}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0())};h.defaultColors_$LI$=function(){h.__static_initialize();null==h.defaultColors&&(h.defaultColors={});return h.defaultColors};h.__static_initializer_0=function(){h.defaultColors_$LI$()["0"]="#000000";h.defaultColors_$LI$()["1"]="#FFFFFF";h.defaultColors_$LI$()["2"]=-"#FF0000";h.defaultColors_$LI$()["3"]="#00FF00";h.defaultColors_$LI$()["4"]="#0000FF";h.defaultColors_$LI$()["5"]="#FFFF00";h.defaultColors_$LI$()["6"]="#FF00FF";h.defaultColors_$LI$()["7"]="#00FFFF";h.defaultColors_$LI$()["8"]="#800000";h.defaultColors_$LI$()["9"]="#008000";h.defaultColors_$LI$()["10"]="#000080";h.defaultColors_$LI$()["11"]="#808000";h.defaultColors_$LI$()["12"]="#800080";h.defaultColors_$LI$()["13"]="#008080";h.defaultColors_$LI$()["14"]="#C0C0C0";h.defaultColors_$LI$()["15"]="#E6E6E6";-h.defaultColors_$LI$()["16"]="#CDCDCD";h.defaultColors_$LI$()["17"]="#B3B3B3";h.defaultColors_$LI$()["18"]="#9A9A9A";h.defaultColors_$LI$()["19"]="#808080";h.defaultColors_$LI$()["20"]="#666666";h.defaultColors_$LI$()["21"]="#4D4D4D";h.defaultColors_$LI$()["22"]="#333333";h.defaultColors_$LI$()["23"]="#1A1A1A"};h.prototype.initialise=function(b,a){if(null!=b){a=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.COLORS);if(0<a.length){var c=a.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR_ENTRY),-d=c.length;for(a=0;a<d;a++){var f=c.item(a),k=f.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.INDEX);f=f.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.RGB);this.colorElementMap[k]=f}}a=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.FACE_NAMES);if(0<a.length)for(b=a.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.FACE_NAME),c=b.length,a=0;a<c;a++)k=b.item(a),d=k.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID),k=k.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FONT_NAME),-this.fontElementMap[d]=k}};h.prototype.getColor=function(b){var a=function(c,d){return c[d]?c[d]:null}(this.colorElementMap,b);return null==a&&(a=function(c,d){return c[d]?c[d]:null}(h.defaultColors_$LI$(),b),null==a)?"":a};h.prototype.getFont=function(b){var a=this.fontElementMap;b=a[b]?a[b]:null;return null==b?"":b};return h}();m.__static_initialized=!1;B.mxPropertiesManager=m;m.__class="com.mxgraph.io.vsdx.mxPropertiesManager"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||-(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b){this.sourceToSheet=this.fromSheet=null;this.sourceToPart=-1;this.targetToSheet=null;this.targetToPart=-1;this.endShape=this.fromCell=null;var a=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FROM_SHEET);this.fromSheet=null!=a&&0!==a.length?parseFloat(a):-1;a=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FROM_CELL);this.addFromCell(b,a)}h.prototype.addFromCell=function(b,a){var c=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TO_SHEET),d=-!0;null!=a&&function(f,k){return f&&f.equals?f.equals(k):f===k}(a,g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X)?(this.sourceToSheet=null!=c&&0!==c.length?parseFloat(c):-1,d=!0):null!=a&&function(f,k){return f&&f.equals?f.equals(k):f===k}(a,g.mxgraph.io.vsdx.mxVsdxConstants.END_X)?(this.targetToSheet=null!=c&&0!==c.length?parseFloat(c):-1,d=!1):null==this.sourceToSheet?(this.sourceToSheet=null!=c&&0!==c.length?parseFloat(c):-1,d=!0):null==this.targetToSheet&&(this.targetToSheet=null!=c&&0!==c.length?-parseFloat(c):-1,d=!1);this.findToPart(b,d)};h.prototype.findToPart=function(b,a){b=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TO_PART);b=null!=b&&0!==b.length?parseFloat(b):-1;a?this.sourceToPart=b:this.targetToPart=b};h.prototype.getFromSheet=function(){return this.fromSheet};h.prototype.getSourceToSheet=function(){return this.sourceToSheet};h.prototype.getTargetToSheet=function(){return this.targetToSheet};h.prototype.getSourceToPart=function(){return this.sourceToPart};h.prototype.getTargetToPart=-function(){return this.targetToPart};h.prototype.addConnect=function(b){this.endShape=b;var a=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FROM_CELL);this.addFromCell(b,a)};return h}();B.mxVsdxConnect=m;m.__class="com.mxgraph.io.vsdx.mxVsdxConnect"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(){}h.SET_VALUES_$LI$=function(){null==h.SET_VALUES&&(h.SET_VALUES=["a","b"]);return h.SET_VALUES};h.MY_SET_$LI$=function(){null==h.MY_SET&&(h.MY_SET=h.SET_VALUES_$LI$().slice(0).slice(0));return h.MY_SET};return h}();m.ANGLE="Angle";m.ARC_TO="ArcTo";m.BACKGROUND="Background";m.BACK_PAGE="BackPage";m.BEGIN_ARROW="BeginArrow";m.BEGIN_ARROW_SIZE="BeginArrowSize";m.BEGIN_X="BeginX";m.BEGIN_Y="BeginY";m.BOTTOM_MARGIN="BottomMargin";-m.BULLET="Bullet";m.CASE="Case";m.CHARACTER="Character";m.COLOR="Color";m.COLOR_ENTRY="ColorEntry";m.COLORS="Colors";m.COLOR_TRANS="ColorTrans";m.CONNECT="Connect";m.CONNECTS="Connects";m.CONNECTION="Connection";m.CONTROL="Control";m.DELETED="Del";m.DOCUMENT_SHEET="DocumentSheet";m.ELLIPSE="Ellipse";m.ELLIPTICAL_ARC_TO="EllipticalArcTo";m.END_ARROW="EndArrow";m.END_ARROW_SIZE="EndArrowSize";m.END_X="EndX";m.END_Y="EndY";m.FACE_NAME="FaceName";m.FACE_NAMES="FaceNames";m.FALSE="0";m.FILL="Fill";m.FILL_BKGND=-"FillBkgnd";m.FILL_BKGND_TRANS="FillBkgndTrans";m.FILL_FOREGND="FillForegnd";m.FILL_FOREGND_TRANS="FillForegndTrans";m.FILL_PATTERN="FillPattern";m.FILL_STYLE="FillStyle";m.FILL_GRADIENT_ENABLED="FillGradientEnabled";m.FLAGS="Flags";m.FLIP_X="FlipX";m.FLIP_Y="FlipY";m.FONT="Font";m.FONT_NAME="Name";m.FOREIGN="Foreign";m.FROM_CELL="FromCell";m.FROM_SHEET="FromSheet";m.GEOM="Geom";m.HEIGHT="Height";m.HORIZONTAL_ALIGN="HorzAlign";m.ID="ID";m.INDENT_FIRST="IndFirst";m.INDENT_LEFT="IndLeft";m.INDENT_RIGHT=-"IndRight";m.INDEX="IX";m.LEFT_MARGIN="LeftMargin";m.LETTER_SPACE="Letterspace";m.LINE="Line";m.LINE_COLOR="LineColor";m.LINE_COLOR_TRANS="LineColorTrans";m.LINE_PATTERN="LinePattern";m.LINE_STYLE="LineStyle";m.LINE_TO="LineTo";m.LINE_WEIGHT="LineWeight";m.LOC_PIN_X="LocPinX";m.LOC_PIN_Y="LocPinY";m.MASTER="Master";m.MASTER_SHAPE="MasterShape";m.MASTERS="Masters";m.MOVE_TO="MoveTo";m.NAME="Name";m.NAME_U="NameU";m.NO_LINE="NoLine";m.NURBS_TO="NURBSTo";m.PAGE="Page";m.PAGE_HEIGHT="PageHeight";m.PAGE_WIDTH=-"PageWidth";m.PAGES="Pages";m.PARAGRAPH="Paragraph";m.PIN_X="PinX";m.PIN_Y="PinY";m.POS="Pos";m.RGB="RGB";m.RIGHT_MARGIN="RightMargin";m.ROUNDING="Rounding";m.RTL_TEXT="RTLText";m.SIZE="Size";m.SHAPE="Shape";m.SHAPES="Shapes";m.SHAPE_SHDW_SHOW="ShapeShdwShow";m.SHDW_PATTERN="ShdwPattern";m.SPACE_AFTER="SpAfter";m.SPACE_BEFORE="SpBefore";m.SPACE_LINE="SpLine";m.STRIKETHRU="Strikethru";m.STYLE="Style";m.STYLE_SHEET="StyleSheet";m.STYLE_SHEETS="StyleSheets";m.TEXT="Text";m.TEXT_BKGND="TextBkgnd";m.TEXT_BLOCK=-"TextBlock";m.TEXT_STYLE="TextStyle";m.TO_PART="ToPart";m.TO_SHEET="ToSheet";m.TOP_MARGIN="TopMargin";m.TRUE="1";m.TXT_ANGLE="TxtAngle";m.TXT_HEIGHT="TxtHeight";m.TXT_LOC_PIN_X="TxtLocPinX";m.TXT_LOC_PIN_Y="TxtLocPinY";m.TXT_PIN_X="TxtPinX";m.TXT_PIN_Y="TxtPinY";m.TXT_WIDTH="TxtWidth";m.TYPE="Type";m.TYPE_GROUP="Group";m.TYPE_SHAPE="Shape";m.UNIQUE_ID="UniqueID";m.VERTICAL_ALIGN="VerticalAlign";m.WIDTH="Width";m.X_CON="XCon";m.X_DYN="XDyn";m.X="X";m.Y_CON="YCon";m.Y_DYN="YDyn";m.Y="Y";m.HIDE_TEXT=-"HideText";m.VSDX_ID="vsdxID";m.CONNECT_TO_PART_WHOLE_SHAPE=3;B.mxVsdxConstants=m;m.__class="com.mxgraph.io.vsdx.mxVsdxConstants"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1;this.rows=null;if((null!=b&&1==b.nodeType||null===b)&&(null!=a&&a instanceof Array||null===a))Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),null!=a&&this.index<a.length&&this.inheritGeo(a[this.index]),-this.processGeoElem(b);else if((null!=b&&1==b.nodeType||null===b)&&void 0===a)Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),this.processGeoElem(b);else throw Error("invalid overload");}h.prototype.getIndex$org_w3c_dom_Element=function(b){try{return parseInt(b.getAttribute("IX"))||0}catch(a){return 0}};h.prototype.getIndex=function(b){if(null!=b&&1==b.nodeType||-null===b)return this.getIndex$org_w3c_dom_Element(b);if(void 0===b)return this.getIndex$();throw Error("invalid overload");};h.prototype.processGeoElem=function(b){var a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"Cell");b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"Row");if(null==this.rows){this.rows=[];for(var c=0;c<b.length;c++)this.rows.push(null)}for(c=0;c<a.length;c++){var d=a[c],f=d.getAttribute("N");d=d.getAttribute("V");switch(f){case "NoFill":this.noFill=-function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoLine":this.noLine=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoShow":this.noShow=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoSnap":this.noSnap=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoQuickDrag":this.noQuickDrag=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d)}}a=this.rows.length;c=!1;for(f=0;f<b.length;f++)d=g.mxgraph.io.vsdx.geometry.RowFactory.getRowObj(b[f],-this.rows),d.getIndex()>a?(this.rows.push(d),c=!0):this.rows[d.getIndex()-1]=d;c&&function(k,n){n.compare?k.sort(function(q,t){return n.compare(q,t)}):k.sort(n)}(this.rows,new h.mxVsdxGeometry$0(this))};h.prototype.inheritGeo=function(b){this.noFill=b.noFill;this.noLine=b.noLine;this.noShow=b.noShow;this.noSnap=b.noSnap;this.noQuickDrag=b.noQuickDrag;var a=this.rows=[];a.push.apply(a,b.rows)};h.prototype.getIndex$=function(){return this.index};h.prototype.isNoFill=function(){return this.noFill};h.prototype.isNoLine=-function(){return this.noLine};h.prototype.isNoShow=function(){return this.noShow};h.prototype.isNoSnap=function(){return this.noSnap};h.prototype.isNoQuickDrag=function(){return this.noQuickDrag};h.prototype.getRows=function(){return this.rows};h.prototype.getPathXML=function(b,a){if(this.noShow)return"";for(var c="",d=0;d<this.rows.length;d++){var f=this.rows[d];c=c.concat(null!=f?f.handle(b,a):"")}return c};return h}();B.mxVsdxGeometry=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometry";(function(h){var b=-function(){function a(c){this.__parent=c}a.prototype.compare=function(c,d){c=null!=c?c.getIndex():0;d=null!=d?d.getIndex():0;return c-d};return a}();h.mxVsdxGeometry$0=b;b.__interfaces=["java.util.Comparator"]})(m=B.mxVsdxGeometry||(B.mxVsdxGeometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b){this.geomList=[];this.parentGeomList=null;this.sortNeeded=!1;if(null!=b){this.parentGeomList=b.geomList;var a=this.geomList;a.push.apply(a,b.geomList)}}h.prototype.addGeometry=function(b){b=new g.mxgraph.io.vsdx.mxVsdxGeometry(b,this.parentGeomList);b.getIndex()<this.geomList.length?this.geomList[b.getIndex()]=b:(this.geomList.push(b),this.sortNeeded=!0)};h.prototype.sort=function(){this.sortNeeded&&(function(b,a){a.compare?-b.sort(function(c,d){return a.compare(c,d)}):b.sort(a)}(this.geomList,new h.mxVsdxGeometryList$0(this)),this.sortNeeded=!1)};h.prototype.isNoShow=function(){for(var b=0;b<this.geomList.length;b++)if(!this.geomList[b].isNoShow())return!1;return!0};h.prototype.isNoFill=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&!a.isNoFill())return!1}return!0};h.prototype.isNoLine=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&-!a.isNoLine())return!1}return!0};h.prototype.hasGeom=function(){return 0!=this.geomList.length};h.prototype.getGeoCount=function(){for(var b=0,a=0;a<this.geomList.length;a++)this.geomList[a].isNoShow()||b++;return b};h.prototype.rotatedPoint=function(b,a,c){var d=b.y*a+b.x*c;b.x=b.x*a-b.y*c;b.y=d};h.prototype.getRoutingPoints=function(b,a,c){this.sort();b=[];b.push(a.clone());for(var d=0,f=0,k=0;k<this.geomList.length;k++){var n=this.geomList[k];if(!n.isNoShow()){n=n.getRows();for(var q=0;q<n.length;q++){var t=-n[q];if(0==q&&null!=t&&t instanceof g.mxgraph.io.vsdx.geometry.MoveTo)d=null!=t.x?t.x:0,f=null!=t.y?t.y:0;else if(null!=t&&t instanceof g.mxgraph.io.vsdx.geometry.LineTo){var A=null!=t.x?t.x:0;t=null!=t.y?t.y:0;var C=new mxPoint(A,t);0!==c&&(c=(360-c)*Math.PI/180,this.rotatedPoint(C,Math.cos(c),Math.sin(c)));A=(C.x-d)*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();A+=a.x;t=(C.y-f)*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()*-1;t+=a.y;A=Math.round(100*A)/100;t=Math.round(100*t)/100;-C.x=A;C.y=t;b.push(C)}}}}return b};h.prototype.getShapeXML=function(b){var a=new mxPoint(0,0),c={str:'<shape strokewidth="inherit"><foreground>',toString:function(){return this.str}},d=c.str.length;var f=this.processGeo(b,a,c,-1,!0);f=this.processGeo(b,a,c,f,!1);if(c.str.length===d)return"";this.closePath(c,f);c.str=c.str.concat("</foreground></shape>");return c.str};h.prototype.processGeo=function(b,a,c,d,f){var k=b.getRounding(),n="";0<k&&(n=' rounded="1" arcSize="'+k*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor+-'" ');for(k=0;k<this.geomList.length;k++){var q=this.geomList[k];if(f!==q.isNoFill()){var t=q.getPathXML(a,b);0!==t.length&&(q=this.getGeoStyle(q),-1===d?c.str=c.str.concat("<path"+n+">"):d!==q&&(this.closePath(c,d),c.str=c.str.concat("<path"+n+">")),c.str=c.str.concat(t),d=q)}}return d};h.prototype.getGeoStyle=function(b){var a=0;b.isNoLine()||b.isNoFill()?b.isNoFill()?b.isNoLine()||(a=3):a=2:a=1;return a};h.prototype.closePath=function(b,a){b.str=b.str.concat("</path>");1===a?b.str=b.str.concat("<fillstroke/>"):-2===a?b.str=b.str.concat("<fill/>"):3===a&&(b.str=b.str.concat("<stroke/>"))};return h}();B.mxVsdxGeometryList=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometryList";(function(h){var b=function(){function a(c){this.__parent=c}a.prototype.compare=function(c,d){return c.getIndex()-d.getIndex()};return a}();h.mxVsdxGeometryList$0=b;b.__interfaces=["java.util.Comparator"]})(m=B.mxVsdxGeometryList||(B.mxVsdxGeometryList={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com=-{}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.masterShape=this.Id=null;this.childShapes={};this.master=b;this.Id=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID)||"";this.processMasterShapes(a)}h.prototype.processMasterShapes=function(b){for(var a=this.master.firstChild;null!=a;){if(null!=a&&1==a.nodeType&&function(k,n){return k&&k.equals?k.equals(n):k===n}(a.nodeName,"Rel")){var c=b.getRelationship(a.getAttribute("r:id"),g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/_rels/masters.xml.rels"),-d=c.getAttribute("Target");c=c.getAttribute("Type");var f=null;null!=c&&function(k,n){var q=k.length-n.length;k=k.indexOf(n,q);return-1!==k&&k===q}(c,"master")&&(f=b.getXmlDoc(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/"+d));if(null!=f)for(d=f.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(k,n){return k&&k.equals?k.equals(n):k===n}(d.nodeName,"MasterContents")){this.processMasterShape(d,b);break}d=d.nextSibling}}else if(1==a.nodeType&&"PageSheet"==a.nodeName)for(this.pageSheet={},-d=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Cell"),c=0;c<d.length;c++)this.pageSheet[d[c].getAttribute("N")]=d[c];a=a.nextSibling}};h.prototype.processMasterShape=function(b,a,c){c||(this.firstLevelShapes=[]);for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(q,t){return q&&q.equals?q.equals(t):q===t}(b.nodeName,"Shapes"))for(var d=b.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(q,t){return q&&q.equals?q.equals(t):q===t}(d.nodeName,"Shape")){var f=d,k=f.getAttribute("ID"),-n=new g.mxgraph.io.vsdx.Shape(f,a);this.masterShape=null==this.masterShape?n:this.masterShape;this.childShapes[k]=n;c||this.firstLevelShapes.push(n);this.processMasterShape(f,a,!0)}d=d.nextSibling}else if(null!=b&&1==b.nodeType&&"Connects"==b.nodeName)for(this.connects={},d=b.firstChild;null!=d;)null!=d&&1==d.nodeType&&"Connect"==d.nodeName&&(f=new g.mxgraph.io.vsdx.mxVsdxConnect(d),this.connects[f.getFromSheet()]=f),d=d.nextSibling;b=b.nextSibling}};h.prototype.getMasterShape=function(){return this.masterShape};-h.prototype.getSubShape=function(b){var a=this.childShapes;return a[b]?a[b]:null};h.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};h.prototype.getName=function(){return this.master.getAttribute("Name")||""};h.prototype.getUniqueID=function(){var b="";this.master.hasAttribute("UniqueID")&&(b=this.master.getAttribute("UniqueID"));return b};h.prototype.getId=function(){return this.Id};h.prototype.getMasterElement=function(){return this.master};return h}();B.mxVsdxMaster=-m;m.__class="com.mxgraph.io.vsdx.mxVsdxMaster"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a,c){this.pages=this.media=this.xmlDocs=null;this.masters={};this.stylesheets={};this.themes={};this.pm=this.rootElement=null;this.xmlDocs=a;this.media=c;for(b=b.firstChild;null!=b;){if(a=null!=b&&1==b.nodeType)a=b.tagName.toLowerCase(),c=g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"document",a=a&&a.equals?a.equals(c):a===c;if(a){this.rootElement=b;break}b=b.nextSibling}this.pm=new g.mxgraph.io.vsdx.mxPropertiesManager;-this.pm.initialise(this.rootElement,this);this.initStylesheets();this.initThemes();this.initMasters();this.initPages()}h.prototype.initThemes=function(){if(null!=this.xmlDocs)for(var b=!0,a=1;b;){var c=function(f,k){return f[k]?f[k]:null}(this.xmlDocs,g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/theme/theme"+a+".xml");if(null!=c){for(c=c.firstChild;null!=c;){if(null!=c&&1==c.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(c.tagName,"a:theme")){c=new g.mxgraph.io.vsdx.mxVsdxTheme(c);0>-c.getThemeIndex()&&c.processTheme();var d=function(f,k){null==f.entries&&(f.entries=[]);for(var n=0;n<f.entries.length;n++)if(null!=f.entries[n].key.equals&&f.entries[n].key.equals(k)||f.entries[n].key===k)return f.entries[n].value;return null}(this.themes,c.getThemeIndex());null!=d&&d.isPure()||function(f,k,n){null==f.entries&&(f.entries=[]);for(var q=0;q<f.entries.length;q++)if(null!=f.entries[q].key.equals&&f.entries[q].key.equals(k)||f.entries[q].key===k){f.entries[q].value=n;return}f.entries.push({key:k,-value:n,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.themes,c.getThemeIndex(),c);break}c=c.nextSibling}a++}else b=!1}};h.prototype.initStylesheets=function(){var b=this.rootElement.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEETS);if(0<b.length){b=b.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEET);for(var a=b.length,c=0;c<a;c++){var d=b.item(c),f=d.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID);d=new g.mxgraph.io.vsdx.Style(d,-this);this.stylesheets[f]=d}}for(b=function(k){var n=0;return{next:function(){return n<k.length?k[n++]:null},hasNext:function(){return n<k.length}}}(function(k){return Object.keys(k).map(function(n){return k[n]})}(this.stylesheets));b.hasNext();)d=b.next(),d.stylesheetRefs(this)};h.prototype.initMasters=function(){if(null!=this.xmlDocs){var b=function(c,d){return c[d]?c[d]:null}(this.xmlDocs,g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/masters.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=-b&&1==b.nodeType&&function(c,d){return c&&c.equals?c.equals(d):c===d}(b.tagName,g.mxgraph.io.vsdx.mxVsdxConstants.MASTERS)){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(c,d){return c&&c.equals?c.equals(d):c===d}(b.tagName,"Master")){var a=new g.mxgraph.io.vsdx.mxVsdxMaster(b,this);this.masters[a.getId()]=a}b=b.nextSibling}break}b=b.nextSibling}}};h.prototype.initPages=function(){if(null!=this.xmlDocs){var b=function(k,n){return k[n]?k[n]:null}(this.xmlDocs,g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+-"/pages/pages.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(k,n){return k&&k.equals?k.equals(n):k===n}(b.tagName,g.mxgraph.io.vsdx.mxVsdxConstants.PAGES)){var a=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.PAGE);if(null!=a&&0<a.length){this.pages={};b={};for(var c=a.length,d=0;d<c;d++){var f=a.item(d);f=this.createPage(f);f.isBackground()&&function(k,n,q){null==k.entries&&(k.entries=[]);for(var t=0;t<k.entries.length;t++)if(null!=k.entries[t].key.equals&&-k.entries[t].key.equals(n)||k.entries[t].key===n){k.entries[t].value=q;return}k.entries.push({key:n,value:q,getKey:function(){return this.key},getValue:function(){return this.value}})}(b,f.getId(),f);(function(k,n,q){null==k.entries&&(k.entries=[]);for(var t=0;t<k.entries.length;t++)if(null!=k.entries[t].key.equals&&k.entries[t].key.equals(n)||k.entries[t].key===n){k.entries[t].value=q;return}k.entries.push({key:n,value:q,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.pages,-f.getId(),f)}a=function(k){null==k.entries&&(k.entries=[]);return k.entries}(this.pages);for(c=0;c<a.length;c++)f=a[c].getValue(),d=f.getBackPageId(),null!=d&&(d=function(k,n){null==k.entries&&(k.entries=[]);for(var q=0;q<k.entries.length;q++)if(null!=k.entries[q].key.equals&&k.entries[q].key.equals(n)||k.entries[q].key===n)return k.entries[q].value;return null}(b,d),f.setBackPage(d))}break}b=b.nextSibling}}};h.prototype.getPages=function(){return this.pages};h.prototype.getThemes=function(){return this.themes};-h.prototype.getDefaultTheme=function(){null==this.defaultTheme&&null!=this.themes.entries&&0<this.themes.entries.length&&(this.defaultTheme=this.themes.entries[0].getValue());return this.defaultTheme};h.prototype.getRelationship=function(b,a){a=function(f,k){return f[k]?f[k]:null}(this.xmlDocs,a);if(null==a||null==b||0===b.length)return null;a=a.getElementsByTagName("Relationship");for(var c=0;c<a.length;c++){var d=a.item(c);if(function(f,k){return f&&f.equals?f.equals(k):f===k}(d.getAttribute("Id"),-b))return d}return null};h.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};h.prototype.createPage=function(b){return new g.mxgraph.io.vsdx.mxVsdxPage(b,this)};h.prototype.getPropertiesManager=function(){return this.pm};h.prototype.setPropertiesManager=function(b){this.pm=b};h.prototype.getMasterShapes=function(){return this.masters};h.prototype.setMasterShapes=function(b){this.masters=b};h.prototype.getStylesheet=function(b){var a=this.stylesheets;return a[b]?a[b]:null};-h.prototype.getXmlDoc=function(b){var a=this.xmlDocs;return a[b]?a[b]:null};h.prototype.getMedia=function(b){var a=this.media;return a[b]?a[b]:null};return h}();B.mxVsdxModel=m;m.__class="com.mxgraph.io.vsdx.mxVsdxModel"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.pageName=this.Id=null;this.__isBackground=!1;this.model=this.pageSheet=this.pageElement=this.backPage=this.backPageId=null;this.shapes={};this.connects={};this.connectsMap={};this.cellElements={};this.model=a;this.pageElement=b;this.layers=[];var c=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.BACKGROUND),d;if(d=null!=c)d=g.mxgraph.io.vsdx.mxVsdxConstants.TRUE,d=c&&c.equals?c.equals(d):c===d;this.__isBackground=-d?!0:!1;c=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.BACK_PAGE);null!=c&&0<c.length&&(this.backPageId=parseFloat(c));this.Id=parseFloat(b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID));this.pageName=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME)||"";this.pageNameU=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||this.pageName;c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"PageSheet");if(0<c.length){c=c[0];d=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(c,-"Cell");for(var f=0;f<d.length;f++){var k=d[f],n=k.getAttribute("N");this.cellElements[n]=k}c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(c,"Section");for(d=0;d<c.length;d++)if(f=c[d],n=f.getAttribute("N"),"Layer"==n)for(n=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(f,"Row"),f=0;f<n.length;f++){k=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(n[f],"Cell");for(var q={},t=0;t<k.length;t++)q[k[t].getAttribute("N")]=k[t].getAttribute("V");null==q.Name&&(q.Name="Layer "+-f);this.layers[parseInt(n[f].getAttribute("IX"))]=q}}this.parseNodes(b,a,"pages")}h.prototype.parseNodes=function(b,a,c){for(var d=b.firstChild;null!=d;){if(null!=d&&1==d.nodeType){var f=d,k=f.nodeName;if(function(t,A){return t&&t.equals?t.equals(A):t===A}(k,"Connects"))for(f=f.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONNECT),f=null!=f&&0<f.length?f.item(0):null;null!=f;){if(null!=f&&1==f.nodeType){k=f;var n=new g.mxgraph.io.vsdx.mxVsdxConnect(k),q=n.getFromSheet();this.connectsMap[q]=-(this.connectsMap[q]||0)+1;q=null!=q&&-1<q?function(t,A){null==t.entries&&(t.entries=[]);for(var C=0;C<t.entries.length;C++)if(null!=t.entries[C].key.equals&&t.entries[C].key.equals(A)||t.entries[C].key===A)return t.entries[C].value;return null}(this.connects,q):null;null!=q?q.addConnect(k):function(t,A,C){null==t.entries&&(t.entries=[]);for(var I=0;I<t.entries.length;I++)if(null!=t.entries[I].key.equals&&t.entries[I].key.equals(A)||t.entries[I].key===A){t.entries[I].value=C;return}t.entries.push({key:A,-value:C,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.connects,n.getFromSheet(),n)}f=f.nextSibling}}d=d.nextSibling}for(d=b.firstChild;null!=d;)null!=d&&1==d.nodeType&&(f=d,k=f.nodeName,function(t,A){return t&&t.equals?t.equals(A):t===A}(k,"Rel")?this.resolveRel(f,a,c):function(t,A){return t&&t.equals?t.equals(A):t===A}(k,"Shapes")?this.shapes=this.parseShapes(f,null,!1):function(t,A){return t&&t.equals?t.equals(A):t===A}(k,"PageSheet")&&(this.pageSheet=f)),d=d.nextSibling};-h.prototype.resolveRel=function(b,a,c){c=a.getRelationship(b.getAttribute("r:id"),g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/_rels/"+c+".xml.rels");b=c.getAttribute("Target");c=c.getAttribute("Type");if(function(f,k){var n=f.length-k.length;f=f.indexOf(k,n);return-1!==f&&f===n}((new String(c)).toString(),"page")){var d=null;null!=c&&function(f,k){var n=f.length-k.length;f=f.indexOf(k,n);return-1!==f&&f===n}(c,"page")&&(d=a.getXmlDoc(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/"+b));if(null!=-d)for(c=d.firstChild;null!=c;){if(null!=c&&1==c.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(c.tagName,"PageContents")){d=b.indexOf(".");-1!==d&&this.parseNodes(c,a,b.substring(0,d));break}c=c.nextSibling}}};h.prototype.parseShapes=function(b,a,c){c={};b=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.SHAPE);for(b=null!=b&&0<b.length?b.item(0):null;null!=b;){if(null!=b&&1==b.nodeType){var d=b,f=a;if(null==f){var k=d.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER);-null==k||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,"")||(f=this.model.getMaster(k))}var n=this.isEdge(d);n||null==f||(k=d.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE),n=f.getMasterElement(),null==k||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,"")||(k=f.getSubShape(k),n=null!=k?k.getShape():n),n=this.isEdge(n));d=this.createCell(d,!n,f);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||-q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(c,d.getId(),d)}b=b.nextSibling}return c};h.prototype.createCell=function(b,a,c){return new g.mxgraph.io.vsdx.VsdxShape(this,b,a,this.model.getMasterShapes(),c,this.model)};h.prototype.isEdge=function(b){if(null!=b&&(b=b.childNodes,null!=b))for(b=b.item(0);null!=b;){if(null!=b&&1==b.nodeType){var a=b;if(function(c,d){return c&&c.equals?c.equals(d):-c===d}(a.nodeName,"Cell")&&(a=a.getAttribute("N"),function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"BeginX")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"BeginY")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"EndY")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"EndX")))return!0}b=b.nextSibling}return!1};h.prototype.getPageDimensions=function(){var b=0,a=0,c=function(f,k){return f[k]?f[k]:null}(this.cellElements,"PageHeight"),d=function(f,k){return f[k]?f[k]:null}(this.cellElements,-"PageWidth");null!=c&&(b=parseFloat(c.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),b=Math.round(100*b)/100);null!=d&&(a=parseFloat(d.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),a=Math.round(100*a)/100);return new mxPoint(a,b)};h.prototype.getDrawingScale=function(){var b=this.cellElements;b=b.DrawingScale?b.DrawingScale:null;return null!=b?parseFloat(b.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};h.prototype.getPageScale=-function(){var b=this.cellElements;b=b.PageScale?b.PageScale:null;return null!=b?parseFloat(b.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};h.prototype.getCellValue=function(b){var a=this.cellElements;b=a[b]?a[b]:null;return null!=b?b.getAttribute("V")||"":null};h.prototype.getCellIntValue=function(b,a){b=this.getCellValue(b);return null!=b?parseInt(b):a};h.prototype.getId=function(){return this.Id};h.prototype.getPageName=function(){return this.pageName};h.prototype.getPageNameU=-function(){return this.pageNameU};h.prototype.getShapes=function(){return this.shapes};h.prototype.getLayers=function(){return this.layers};h.prototype.getConnects=function(){return this.connects};h.prototype.isBackground=function(){return this.__isBackground};h.prototype.getBackPageId=function(){return this.backPageId};h.prototype.setBackPage=function(b){this.backPage=b};h.prototype.getBackPage=function(){return this.backPage};return h}();B.mxVsdxPage=m;m.__class="com.mxgraph.io.vsdx.mxVsdxPage"})(z.vsdx||-(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b){this.themeIndex=-1;this.themeVariant=0;this.baseColors={};this.variantsColors=function(a){var c=function(d){if(0!=d.length){for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f}};return c(a)}([4,7]);this.isMonotoneVariant=Array(4);this.defaultClr=new g.mxgraph.io.vsdx.theme.Color(255,255,255);this.defaultLineClr=new g.mxgraph.io.vsdx.theme.Color(0,0,0);this.defaultLineStyle=new g.mxgraph.io.vsdx.theme.LineStyle;-this.fillStyles=[];this.connFillStyles=[];this.lineStyles=[];this.connLineStyles=[];this.lineStylesExt=[];this.connLineStylesExt=[];this.connFontColors=[];this.connFontStyles=[];this.fontColors=[];this.fontStyles=[];this.variantEmbellishment=[0,0,0,0];this.variantFillIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.variantLineIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));-return f};return c(a)}([4,4]);this.variantEffectIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.variantFontIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.isProcessed=!1;this.__isPure=!0;this.name=this.bkgndColor=this.theme=null;this.theme=b;this.name=b.getAttribute("name")||"";b=function(a,c){return a[c]?a[c]:-null}(h.themesIds_$LI$(),this.name);null!=b&&(this.themeIndex=b)}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0(),h.__static_initializer_1())};h.themesIds_$LI$=function(){h.__static_initialize();null==h.themesIds&&(h.themesIds={});return h.themesIds};h.__static_initializer_0=function(){h.themesIds_$LI$().Office=33;h.themesIds_$LI$().Linear=34;h.themesIds_$LI$().Zephyr=35;h.themesIds_$LI$().Integral=36;h.themesIds_$LI$().Simple=37;h.themesIds_$LI$().Whisp=-38;h.themesIds_$LI$().Daybreak=39;h.themesIds_$LI$().Parallel=40;h.themesIds_$LI$().Sequence=41;h.themesIds_$LI$().Slice=42;h.themesIds_$LI$().Ion=43;h.themesIds_$LI$().Retrospect=44;h.themesIds_$LI$().Organic=45;h.themesIds_$LI$().Bubble=46;h.themesIds_$LI$().Clouds=47;h.themesIds_$LI$().Gemstone=48;h.themesIds_$LI$().Lines=49;h.themesIds_$LI$().Facet=50;h.themesIds_$LI$().Prominence=51;h.themesIds_$LI$().Smoke=52;h.themesIds_$LI$().Radiance=53;h.themesIds_$LI$().Shade=54;h.themesIds_$LI$().Pencil=-55;h.themesIds_$LI$().Pen=56;h.themesIds_$LI$().Marker=57;h.themesIds_$LI$().Whiteboard=58};h.colorIds_$LI$=function(){h.__static_initialize();null==h.colorIds&&(h.colorIds={});return h.colorIds};h.__static_initializer_1=function(){(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),-0,"dk1");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),1,"lt1");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===-a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),2,"accent1");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),3,"accent2");-(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),4,"accent3");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=-c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),5,"accent4");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),6,"accent5");(function(b,a,c){null==-b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),7,"accent6")};h.prototype.getThemeIndex=function(){return this.themeIndex};h.prototype.setVariant=function(b){this.themeVariant=b};h.prototype.isPure=function(){return this.__isPure};h.prototype.processTheme=-function(){if(!this.isProcessed){try{for(var b=this.theme.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(b.nodeName,"a:themeElements"))for(var a=b.firstChild;null!=a;){if(null!=a&&1==a.nodeType){var c=a,d=c.nodeName;(function(f,k){return f&&f.equals?f.equals(k):f===k})(d,"a:clrScheme")?(function(f,k){return f&&f.equals?f.equals(k):f===k}(this.name,c.getAttribute("name"))||(this.__isPure=!1),this.processColors(c)):function(f,k){return f&&f.equals?-f.equals(k):f===k}(d,"a:fontScheme")?(function(f,k){return f&&f.equals?f.equals(k):f===k}(this.name,c.getAttribute("name"))||(this.__isPure=!1),this.processFonts(c)):function(f,k){return f&&f.equals?f.equals(k):f===k}(d,"a:fmtScheme")?(function(f,k){return f&&f.equals?f.equals(k):f===k}(this.name,c.getAttribute("name"))||(this.__isPure=!1),this.processFormats(c)):function(f,k){return f&&f.equals?f.equals(k):f===k}(d,"a:extLst")&&this.processExtras(c)}a=a.nextSibling}b=b.nextSibling}}catch(f){}this.isProcessed=-!0}};h.prototype.processExtras=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=0;a<b.length;a++){var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b[a]);switch(c.nodeName){case "vt:fmtConnectorScheme":var d=this.name;var f=c.getAttribute("name");d=d&&d.equals?d.equals(f):d===f;d||(this.__isPure=!1);c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c);for(d=0;d<c.length;d++)switch(f=c[d],f.nodeName){case "a:fillStyleLst":f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f);-for(var k=0;k<f.length;k++)this.connFillStyles.push(g.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(f[k]));break;case "a:lnStyleLst":for(f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f),k=0;k<f.length;k++)this.connLineStyles.push(new g.mxgraph.io.vsdx.theme.LineStyle(f[k]))}break;case "vt:lineStyles":c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c);for(d=0;d<c.length;d++)switch(f=c[d],f.nodeName){case "vt:fmtConnectorSchemeLineStyles":f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f);-for(k=0;k<f.length;k++)this.connLineStylesExt.push(new g.mxgraph.io.vsdx.theme.LineStyleExt(f[k]));break;case "vt:fmtSchemeLineStyles":for(f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f),k=0;k<f.length;k++)this.lineStylesExt.push(new g.mxgraph.io.vsdx.theme.LineStyleExt(f[k]))}break;case "vt:fontStylesGroup":c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c);for(d=0;d<c.length;d++)switch(f=c[d],f.nodeName){case "vt:connectorFontStyles":this.fillFontStyles(f,this.connFontColors,this.connFontStyles);-break;case "vt:fontStyles":this.fillFontStyles(f,this.fontColors,this.fontStyles)}break;case "vt:variationStyleSchemeLst":for(c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c),f=d=0;f<c.length;f++){k=c[f];this.variantEmbellishment[d]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(k,"embellishment");k=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(k);for(var n=0,q=0;q<k.length;q++){var t=k[q];this.variantFillIdx[d][n]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,-"fillIdx");this.variantLineIdx[d][n]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"lineIdx");this.variantEffectIdx[d][n]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"effectIdx");this.variantFontIdx[d][n]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"fontIdx");n++}d++}}}};h.prototype.fillFontStyles=function(b,a,c){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var d=0;d<b.length;d++){var f=-b[d];c.push(g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"style"));f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(f);null!=f&&a.push(g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(f)))}};h.prototype.processFormats=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=0;a<b.length;a++){var c=b[a];switch(c.nodeName){case "a:fillStyleLst":c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c);-for(var d=0;d<c.length;d++)this.fillStyles.push(g.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(c[d]));break;case "a:lnStyleLst":for(c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c),d=0;d<c.length;d++)this.lineStyles.push(new g.mxgraph.io.vsdx.theme.LineStyle(c[d]))}}};h.prototype.processFonts=function(b){};h.prototype.processColors=function(b){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var a=b,c=a.nodeName;a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);var d=-(d=c)&&d.equals?d.equals("a:extLst"):"a:extLst"===d;d?3===a.length&&(0>this.themeIndex&&this.extractThemeIndex(a[0]),this.addBkgndColor(a[1]),this.addVariantColors(a[2])):(c=c.substring(2),0<a.length&&this.addBasicColor(c,a[0]))}b=b.nextSibling}};h.prototype.addVariantColors=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);if(null!=b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=0,c=0;c<b.length;c++){var d=b[c];this.addVariantColorsSet(a++,d)}}};h.prototype.addVariantColorsSet=-function(b,a){var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);this.isMonotoneVariant[b]=a.hasAttribute("monotone");for(a=0;a<c.length;a++){var d=c[a];switch(d.nodeName){case "vt:varColor1":this.variantsColors[b][0]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));break;case "vt:varColor2":this.variantsColors[b][1]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));-break;case "vt:varColor3":this.variantsColors[b][2]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));break;case "vt:varColor4":this.variantsColors[b][3]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));break;case "vt:varColor5":this.variantsColors[b][4]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));-break;case "vt:varColor6":this.variantsColors[b][5]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));break;case "vt:varColor7":this.variantsColors[b][6]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d))}}};h.prototype.addBkgndColor=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);null!=b&&(this.bkgndColor=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b)))};-h.prototype.extractThemeIndex=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);null!=b&&(this.themeIndex=parseInt(b.getAttribute("schemeEnum")))};h.prototype.addBasicColor=function(b,a){this.baseColors[b]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(a)};h.prototype.getSchemeColor=function(b){this.processTheme();var a=this.baseColors;b=a[b]?a[b]:null;return null!=b?b.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this):this.defaultClr};h.prototype.getStyleColor=function(b){this.processTheme();-if(8>b){var a=function(d,f){return d[f]?d[f]:null}(this.baseColors,function(d,f){null==d.entries&&(d.entries=[]);for(var k=0;k<d.entries.length;k++)if(null!=d.entries[k].key.equals&&d.entries[k].key.equals(f)||d.entries[k].key===f)return d.entries[k].value;return null}(h.colorIds_$LI$(),b));if(null!=a)return a.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}else if(8===b){if(null!=this.bkgndColor)return this.bkgndColor.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}else{a=null;var c=0;200<=b?c=b-200:-100<=b&&(c=b-100);0<=c&&6>=c&&(a=this.variantsColors[this.themeVariant][c]);if(null!=a)return a.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}return this.defaultClr};h.prototype.getFillGraientColor=function(b){return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b,!0)};h.prototype.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b,!1)};h.prototype.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean=-function(b,a){this.processTheme();var c=b.getQuickStyleFillColor(),d=null;switch(b.getQuickStyleFillMatrix()){case 1:case 2:case 3:case 4:case 5:case 6:d=this.fillStyles[b.getQuickStyleFillMatrix()-1];break;case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&(c=100),d=b.getQuickStyleFillMatrix()-100,d=this.fillStyles[this.variantFillIdx[this.themeVariant][d]-1]}a=null!=d?a?null!=d&&d instanceof g.mxgraph.io.vsdx.theme.GradFill?d.applyStyle(c,this).getGradientClr():null:-d.applyStyle(c,this):a?null:this.getStyleColor(c);c=b.getQuickStyleVariation();if(null!=a&&0<(c&8)){c=this.getStyleColor(8).toHsl();b=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);d=b.toHsl();var f=a.toHsl();.1666<=Math.abs(c.getLum()-f.getLum())||(.7292>=c.getLum()?a=new g.mxgraph.io.vsdx.theme.Color(255,255,255):Math.abs(c.getLum()-d.getLum())>Math.abs(c.getLum()-f.getLum())&&(a=b))}return a};h.prototype.getFillColor=function(b,a){if(!(null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||-null===b)||"boolean"!==typeof a&&null!==a){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");}return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b,a)};h.prototype.getLineStyle=function(b,a){this.processTheme();var c=null;switch(b){case 1:case 2:case 3:case 4:case 5:case 6:c=a[b-1];break;case 100:case 101:case 102:case 103:c=a===this.lineStyles?-this.lineStyles[this.variantLineIdx[this.themeVariant][b-100]-1]:this.defaultLineStyle}return c};h.prototype.getLineStyleExt=function(b,a){this.processTheme();var c=null;switch(b){case 0:case 1:case 2:case 3:case 4:case 5:case 6:c=a[b]}return c};h.prototype.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=function(b,a){this.processTheme();var c=b.getQuickStyleLineColor();a=this.getLineStyle(b.getQuickStyleLineMatrix(),a);switch(b.getQuickStyleLineMatrix()){case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&-(c=100)}c=null!=a?a.getLineColor(c,this):this.getStyleColor(c);if(0<(b.getQuickStyleVariation()&4)){a=this.getStyleColor(8).toHsl();b=this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);var d=b.toHsl(),f=c.toHsl();.1666<=Math.abs(a.getLum()-f.getLum())||(.7292>=a.getLum()?c=new g.mxgraph.io.vsdx.theme.Color(255,255,255):Math.abs(a.getLum()-d.getLum())>Math.abs(a.getLum()-f.getLum())&&(c=b))}return c};h.prototype.getLineColor=function(b,a){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||-null===b)&&(null!=a&&a instanceof Array||null===a))return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};h.prototype.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.lineStyles)};-h.prototype.getConnLineColor=function(b){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connLineStyles)};h.prototype.getDefaultLineClr=function(){return this.defaultLineClr};h.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=function(b,a,c){a=this.getLineStyleExt(b.getQuickStyleLineMatrix(),a);if(null!=a)return a.isDashed();b=this.getLineStyle(b.getQuickStyleLineMatrix(),c);return null!=b?b.isDashed():-!1};h.prototype.isLineDashed=function(b,a,c){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a)&&(null!=c&&c instanceof Array||null===c))return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,a,c);if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a&&void 0===c)return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");-};h.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.lineStylesExt,this.lineStyles)};h.prototype.isConnLineDashed=function(b){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.connLineStylesExt,this.connLineStyles)};h.prototype.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=-function(b,a,c){a=this.getLineStyleExt(b.getQuickStyleLineMatrix(),a);if(null!=a)return a.getLineDashPattern();b=this.getLineStyle(b.getQuickStyleLineMatrix(),c);return null!=b?b.getLineDashPattern():null};h.prototype.getLineDashPattern=function(b,a,c){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a)&&(null!=c&&c instanceof Array||null===c))return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,-a,c);if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a&&void 0===c)return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};h.prototype.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.lineStylesExt,this.lineStyles)};h.prototype.getConnLineDashPattern=function(b){return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,-this.connLineStylesExt,this.connLineStyles)};h.prototype.getArrowSize=function(b,a,c,d){c=this.getLineStyleExt(b.getQuickStyleLineMatrix(),c);if(null!=c)return a?c.getStartSize():c.getEndSize();b=this.getLineStyle(b.getQuickStyleLineMatrix(),d);return null!=b?a?b.getStartSize():b.getEndSize():4};h.prototype.getStartSize=function(b){return this.getArrowSize(b,!0,this.lineStylesExt,this.lineStyles)};h.prototype.getConnStartSize=function(b){return this.getArrowSize(b,!0,this.connLineStylesExt,this.connLineStyles)};-h.prototype.getEndSize=function(b){return this.getArrowSize(b,!1,this.lineStylesExt,this.lineStyles)};h.prototype.getConnEndSize=function(b){return this.getArrowSize(b,!1,this.connLineStylesExt,this.connLineStyles)};h.prototype.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=function(b,a){this.processTheme();var c=b.getQuickStyleFontColor(),d=null;switch(b.getQuickStyleFontMatrix()){case 1:case 2:case 3:case 4:case 5:case 6:d=a[b.getQuickStyleFontMatrix()-1];break;case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&-(c=100),d=b.getQuickStyleFontMatrix()-100,a!==this.fontColors?(a=this.baseColors,d=a.dk1?a.dk1:null):d=a[this.variantFontIdx[this.themeVariant][d]-1]}c=null!=d?d.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(c,this):this.getStyleColor(c);if(0<(b.getQuickStyleVariation()&2)){d=this.getStyleColor(8).toHsl();var f=c.toHsl();a=this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);var k=a.toHsl();b=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);var n=b.toHsl();.1666<=Math.abs(d.getLum()--f.getLum())||(.7292>=d.getLum()?c=new g.mxgraph.io.vsdx.theme.Color(255,255,255):(n=Math.abs(d.getLum()-n.getLum()),k=Math.abs(d.getLum()-k.getLum()),d=Math.abs(d.getLum()-f.getLum()),d=Math.max(n,k,d),d==n?c=b:d==k&&(c=a)))}return c};h.prototype.getFontColor=function(b,a){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a))return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof-g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};h.prototype.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.fontColors)};h.prototype.getConnFontColor=function(b){return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connFontColors)};h.prototype.getArrowType=-function(b,a,c,d){c=this.getLineStyleExt(b.getQuickStyleLineMatrix(),c);if(null!=c)return a?c.getStart():c.getEnd();b=this.getLineStyle(b.getQuickStyleLineMatrix(),d);return null!=b?a?b.getStart():b.getEnd():0};h.prototype.getEdgeMarker=function(b,a){return this.getArrowType(a,b,this.lineStylesExt,this.lineStyles)};h.prototype.getConnEdgeMarker=function(b,a){return this.getArrowType(a,b,this.connLineStylesExt,this.connLineStyles)};h.prototype.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=-function(b,a){b=this.getLineStyle(b.getQuickStyleLineMatrix(),a);return null!=b?b.getLineWidth():0};h.prototype.getLineWidth=function(b,a){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a))return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);-throw Error("invalid overload");};h.prototype.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.lineStyles)};h.prototype.getConnLineWidth=function(b){return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connLineStyles)};return h}();m.__static_initialized=!1;B.mxVsdxTheme=m;m.__class="com.mxgraph.io.vsdx.mxVsdxTheme"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io=-{}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(){}h.conversionFactor_$LI$=function(){null==h.conversionFactor&&(h.conversionFactor=h.screenCoordinatesPerCm*h.CENTIMETERS_PER_INCHES);return h.conversionFactor};h.getDirectChildNamedElements=function(b,a){var c=[];for(b=b.firstChild;null!=b;b=b.nextSibling){var d;if(d=null!=b&&1==b.nodeType){d=a;var f=b.nodeName;d=d&&d.equals?d.equals(f):d===f}d&&c.push(b)}return c};h.getDirectChildElements=function(b){var a=[];for(b=-b.firstChild;null!=b;b=b.nextSibling)null!=b&&1==b.nodeType&&a.push(b);return a};h.getDirectFirstChildElement=function(b){for(b=b.firstChild;null!=b;b=b.nextSibling)if(null!=b&&1==b.nodeType)return b;return null};h.getIntAttr$org_w3c_dom_Element$java_lang_String$int=function(b,a,c){try{var d=b.getAttribute(a);if(null!=d)return parseInt(d)}catch(f){}return c};h.getIntAttr=function(b,a,c){if((null==b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||"number"!==typeof c&&null!==c){if((null==-b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||void 0!==c)throw Error("invalid overload");return g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(b,a)}return g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,c)};h.getIntAttr$org_w3c_dom_Element$java_lang_String=function(b,a){return h.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,0)};h.getStyleString=function(b,a){for(var c="",d=function(q){var t=0;return{next:function(){return t<-q.length?q[t++]:null},hasNext:function(){return t<q.length}}}(function(q){return Object.keys(q).map(function(t){return q[t]})}(b)),f=function(q){var t=0;return{next:function(){return t<q.length?q[t++]:null},hasNext:function(){return t<q.length}}}(Object.keys(b));f.hasNext();){var k=f.next(),n=d.next();if(!function(q,t){return q&&q.equals?q.equals(t):q===t}(k,mxConstants.STYLE_SHAPE)||!function(q,t,A){void 0===A&&(A=0);return q.substr(A,t.length)===t}(b[k]?b[k]:null,"image")&&!function(q,t,A){void 0===-A&&(A=0);return q.substr(A,t.length)===t}(b[k]?b[k]:null,"rounded="))try{c=c+k+a}catch(q){}c=c+n+";"}return c};h.surroundByTags=function(b,a,c){return"<"+a+(c?' style="'+c+'"':"")+">"+b+"</"+a+">"};h.htmlEntities=function(b){return b.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};h.toInitialCapital=function(b){b=b.split(" ");for(var a="",c=0;c<b.length;c++){var d=b[c],f=d.substring(0,-1);d=d.substring(1);f=f.toUpperCase();a+=f+d}return a.substring(0,a.length)};h.toSmallCaps=function(b,a){var c="",d=c;if(a&&a.equals?a.equals(d):a===d)c=b;else for(b=b.split(""),d=0;d<b.length;d++){var f=b[d];(null==f.charCodeAt?f:f.charCodeAt(0))>=(null=="a".charCodeAt?"a":97)&&(null==f.charCodeAt?f:f.charCodeAt(0))<=(null=="z".charCodeAt?"z":122)?(f=(new String(f)).toString(),f=f.toUpperCase(),c+='<font style="font-size:'+parseFloat(a)/1.28+'px">'+f+"</font>"):c+=f}return c};h.getStyleMap=function(b,-a){var c={};b=b.split(";");for(var d=0;d<b.length;d++){var f=b[d],k=f.indexOf(a),n=f.substring(0,k);f=f.substring(k+1);c[n]=f}return c};h.isInsideTriangle=function(b,a,c,d,f,k,n,q){var t=(b-f)*(d-k)-(c-f)*(a-k);f=(b-n)*(k-q)-(f-n)*(a-q);b=(b-c)*(q-d)-(n-c)*(a-d);return!((0>t||0>f||0>b)&&(0<t||0<f||0<b))};return h}();m.screenCoordinatesPerCm=40;m.CENTIMETERS_PER_INCHES=2.54;B.mxVsdxUtils=m;m.__class="com.mxgraph.io.vsdx.mxVsdxUtils"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=-{}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a,c,d){this.paraIndex=this.fields=this.charIndices=this.values=null;this.values=[];this.values.push(b);this.charIndices=[];this.charIndices.push(a);this.fields=[];this.fields.push(d);this.paraIndex=c}h.prototype.addText=function(b,a,c){this.values.push(b);this.charIndices.push(a);this.fields.push(c)};h.prototype.getParagraphIndex=function(){return this.paraIndex};h.prototype.getValue=function(b){return this.values[b]};h.prototype.numValues=-function(){return this.values.length};h.prototype.getChar=function(b){return this.charIndices[b]};h.prototype.getField=function(b){return this.fields[b]};return h}();B.Paragraph=m;m.__class="com.mxgraph.io.vsdx.Paragraph"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b){this.elem=b}h.prototype.getIndexedCell=function(b,a){for(var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.elem,"Row"),d=0;d<c.length;d++){var f=c[d],k=f.getAttribute("IX");if(function(t,A){return t&&t.equals?t.equals(A):t===A}(k,b)||null==b){f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(f,"Cell");for(var n=0;n<f.length;n++){var q=f[n];k=q.getAttribute("N");if(function(t,A){return t&&-t.equals?t.equals(A):t===A}(k,a))return q}}}return null};return h}();B.Section=m;m.__class="com.mxgraph.io.vsdx.Section"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.pageNumber=0;this.pageNumber=b;this.Id=a}h.prototype.getId=function(){return this.Id};h.prototype.getPageNumber=function(){return this.pageNumber};h.prototype.equals=function(b){return null==b||this.constructor!==b.constructor||this.pageNumber!==b.pageNumber||this.Id!==b.Id?!1:!0};h.prototype.hashCode=function(){return 1E5*this.pageNumber+this.Id};return h}();B.ShapePageId=m;m.__class="com.mxgraph.io.vsdx.ShapePageId"})(z.vsdx||-(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d){this.blue=this.green=this.red=0;this.gradientClr=null;this.red=a;this.green=c;this.blue=d}b.NONE_$LI$=function(){null==b.NONE&&(b.NONE=new b(-1,-1,-1));return b.NONE};b.prototype.getRed=function(){return this.red};b.prototype.setRed=function(a){this.red=a};b.prototype.getGreen=function(){return this.green};b.prototype.setGreen=function(a){this.green=a};b.prototype.getBlue=function(){return this.blue};-b.prototype.setBlue=function(a){this.blue=a};b.prototype.toHsl=function(){var a=this.getRed()/255,c=this.getGreen()/255,d=this.getBlue()/255,f=Math.max(a,Math.max(c,d)),k=Math.min(a,Math.min(c,d)),n=(f+k)/2;if(f===k)a=k=0;else{var q=f-k;k=.5<n?q/(2-f-k):q/(f+k);a=(f===a?(c-d)/q+(c<d?6:0):f===c?(d-a)/q+2:(a-c)/q+4)/6}return new g.mxgraph.io.vsdx.theme.HSLColor(a,k,n)};b.prototype.toHsv=function(){var a=this.getRed()/255,c=this.getGreen()/255,d=this.getBlue()/255,f=Math.max(a,Math.max(c,d)),k=Math.min(a,-Math.min(c,d)),n=f-k;a=f===k?0:(f===a?(c-d)/n+(c<d?6:0):f===c?(d-a)/n+2:(a-c)/n+4)/6;return new g.mxgraph.io.vsdx.theme.HSVColor(a,0===f?0:n/f,f)};b.decodeColorHex=function(a){a=parseInt(a,16);return new b(a>>16&255,a>>8&255,a&255)};b.prototype.toHexStr=function(){var a=this.red.toString(16);a=1==a.length?"0"+a:a;var c=this.green.toString(16);c=1==c.length?"0"+c:c;var d=this.blue.toString(16);d=1==d.length?"0"+d:d;return"#"+a+c+d};b.prototype.getGradientClr=function(){return this.gradientClr};b.prototype.setGradientClr=-function(a){this.gradientClr=a};return b}();m.Color=h;h.__class="com.mxgraph.io.vsdx.theme.Color"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){}b.getFillStyle=function(a){var c=null;switch(a.nodeName){case "a:solidFill":c=new g.mxgraph.io.vsdx.theme.SolidFillStyle(g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a)));break;case "a:noFill":c=new g.mxgraph.io.vsdx.theme.NoFillStyle;break;case "a:gradFill":c=new g.mxgraph.io.vsdx.theme.GradFill(a)}return c};return b}();m.FillStyleFactory=-h;h.__class="com.mxgraph.io.vsdx.theme.FillStyleFactory"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a){this.color2=this.color1=null;a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"a:gsLst");0<a.length&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a[0]),2<=a.length&&(this.color2=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a[0])),this.color1=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a[a.length--1]))));null==this.color1&&(this.color1=this.color2=new g.mxgraph.io.vsdx.theme.SrgbClr("FFFFFF"))}b.prototype.applyStyle=function(a,c){var d=this.color1.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,c);d.setGradientClr(this.color2.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,c));return d};return b}();m.GradFill=h;h.__class="com.mxgraph.io.vsdx.theme.GradFill";h.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=-{}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d){this.lum=this.sat=this.hue=0;this.hue=a;this.sat=c;this.lum=d}b.prototype.getHue=function(){return this.hue};b.prototype.setHue=function(a){this.hue=a};b.prototype.getSat=function(){return this.sat};b.prototype.setSat=function(a){this.sat=a};b.prototype.getLum=function(){return this.lum};b.prototype.setLum=function(a){this.lum=a};b.prototype.hue2rgb=function(a,c,d){0>d&&(d+=1);1<d&&--d;return d<1/6?-a+6*(c-a)*d:.5>d?c:d<2/3?a+(c-a)*(2/3-d)*6:a};b.prototype.toRgb=function(){var a=this.hue;var c=this.sat;var d=this.lum;if(0===c)d=c=a=d;else{var f=.5>d?d*(1+c):d+c-d*c,k=2*d-f;d=this.hue2rgb(k,f,a+1/3);c=this.hue2rgb(k,f,a);a=this.hue2rgb(k,f,a-1/3)}return new g.mxgraph.io.vsdx.theme.Color(255*d|0,255*c|0,255*a|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.lum*=1+a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.shade=function(a){this.lum*=-a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.satMod=function(a){this.sat*=a/100;this.sat=this.clamp01(this.sat);return this};b.prototype.lumMod=function(a){this.lum*=a/100;this.lum=this.clamp01(this.lum);return this};return b}();m.HSLColor=h;h.__class="com.mxgraph.io.vsdx.theme.HSLColor"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d){this.h=a;this.s=c;this.v=d}b.prototype.toRgb=function(){var a=6*this.h,c=this.s,d=Math.floor(a),f=a-d;a=this.v*(1-c);var k=this.v*(1-f*c);c=this.v*(1-(1-f)*c);d=(d|0)%6;return new g.mxgraph.io.vsdx.theme.Color(255*[this.v,k,a,a,c,this.v][d]|0,255*[c,this.v,this.v,k,a,a][d]|0,255*[a,a,c,this.v,this.v,k][d]|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.v*=-1+a/100;this.v=this.clamp01(this.v);return this};b.prototype.shade=function(a){this.v*=a/100;this.v=this.clamp01(this.v);return this};b.prototype.satMod=function(a){this.s*=a/100;this.s=this.clamp01(this.s);return this};b.prototype.lumMod=function(a){this.v*=a/100;this.v=this.clamp01(this.v);return this};b.prototype.hueMod=function(a){this.h*=a/100;this.h=this.clamp01(this.h);return this};return b}();m.HSVColor=h;h.__class="com.mxgraph.io.vsdx.theme.HSVColor"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx=-{}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a){this.isLineDashed=!1;this.lineDashPattern=[];this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1;if(null!=a&&1==a.nodeType||null===a){Array.prototype.slice.call(arguments);this.lineWidth=0;this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null;this.headEndLen=this.headEndWidth=0;this.tailEndType=null;this.tailEndLen=this.tailEndWidth=0;this.isLineDashed=!1;this.lineDashPattern=[];this.isMiterJoin=-this.isBevelJoin=this.isRoundJoin=!1;this.lineWidth=0;this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null;this.headEndLen=this.headEndWidth=0;this.tailEndType=null;this.tailEndLen=this.tailEndWidth=0;this.lineWidth=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"w");var c=a.getAttribute("cap");if(null!=c)switch(c){case "rnd":this.lineCap=b.LineCapType.ROUND;break;case "sq":this.lineCap=b.LineCapType.SQUARE;break;case "flat":this.lineCap=b.LineCapType.FLAT}c=-a.getAttribute("cmpd");if(null!=c)switch(c){case "sng":this.lineComp=b.CompoundLineType.SINGLE;break;case "dbl":this.lineComp=b.CompoundLineType.DOUBLE;break;case "thickThin":this.lineComp=b.CompoundLineType.THICK_THIN_DOUBLE;break;case "thinThick":this.lineComp=b.CompoundLineType.THIN_THICK_DOUBLE;break;case "tri":this.lineComp=b.CompoundLineType.THIN_THICK_THIN_TRIPLE}c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(var d=0;d<c.length;d++){var f=c[d];switch(f.nodeName){case "a:noFill":case "a:solidFill":case "a:gradFill":case "a:pattFill":this.fillStyle=-g.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(f);break;case "a:prstDash":f=f.getAttribute("val");this.isLineDashed=!0;switch(f){case "solid":this.isLineDashed=!1;break;case "sysDot":case "dot":this.lineDashPattern.push(1);this.lineDashPattern.push(4);break;case "lgDash":this.lineDashPattern.push(12);this.lineDashPattern.push(4);break;case "sysDashDot":case "dashDot":this.lineDashPattern.push(8);this.lineDashPattern.push(4);this.lineDashPattern.push(1);this.lineDashPattern.push(4);break;case "lgDashDot":this.lineDashPattern.push(12);-this.lineDashPattern.push(4);this.lineDashPattern.push(1);this.lineDashPattern.push(4);break;case "sysDashDotDot":case "lgDashDotDot":this.lineDashPattern.push(12),this.lineDashPattern.push(4),this.lineDashPattern.push(1),this.lineDashPattern.push(4),this.lineDashPattern.push(1),this.lineDashPattern.push(4)}break;case "a:custDash":this.isLineDashed=!0;f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(f,"a:ds");for(var k=0;k<f.length;k++){var n=f[k],q=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,-"d");n=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,"sp");this.lineDashPattern.push(q/1E4);this.lineDashPattern.push(n/1E4)}break;case "a:round":this.isRoundJoin=!0;break;case "a:bevel":this.isBevelJoin=!0;break;case "a:miter":g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"lim");this.isMiterJoin=!0;break;case "a:headEnd":this.headEndType=this.getLineEndType(f);this.headEndWidth=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,-"w");this.headEndLen=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"len");break;case "a:tailEnd":this.tailEndType=this.getLineEndType(f),this.tailEndWidth=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"w"),this.tailEndLen=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"len")}}}else if(void 0===a)Array.prototype.slice.call(arguments),this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=-null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0,this.isLineDashed=!1,this.lineDashPattern=[],this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1,this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0;else throw Error("invalid overload");}b.prototype.getLineEndType=function(a){var c=null;switch(a.getAttribute("type")){case "none":c=-b.LineEndType.NONE;break;case "triangle":c=b.LineEndType.TRIANGLE;break;case "stealth":c=b.LineEndType.STEALTH;break;case "diamond":c=b.LineEndType.DIAMOND;break;case "oval":c=b.LineEndType.OVAL;break;case "arrow":c=b.LineEndType.ARROW}return c};b.prototype.getLineColor=function(a,c){return null!=this.fillStyle?this.fillStyle.applyStyle(a,c):c.getDefaultLineClr()};b.prototype.isDashed=function(){return this.isLineDashed};b.prototype.getLineDashPattern=function(){return this.lineDashPattern};b.prototype.getStartSize=-function(){return 4};b.prototype.getEndSize=function(){return 4};b.prototype.getStart=function(){return 0};b.prototype.getEnd=function(){return 0};b.prototype.getLineWidth=function(){return this.lineWidth};return b}();m.LineStyle=h;h.__class="com.mxgraph.io.vsdx.theme.LineStyle";(function(b){(function(a){a[a.ROUND=0]="ROUND";a[a.SQUARE=1]="SQUARE";a[a.FLAT=2]="FLAT"})(b.LineCapType||(b.LineCapType={}));(function(a){a[a.SINGLE=0]="SINGLE";a[a.DOUBLE=1]="DOUBLE";a[a.THICK_THIN_DOUBLE=2]="THICK_THIN_DOUBLE";-a[a.THIN_THICK_DOUBLE=3]="THIN_THICK_DOUBLE";a[a.THIN_THICK_THIN_TRIPLE=4]="THIN_THICK_THIN_TRIPLE"})(b.CompoundLineType||(b.CompoundLineType={}));(function(a){a[a.NONE=0]="NONE";a[a.TRIANGLE=1]="TRIANGLE";a[a.STEALTH=2]="STEALTH";a[a.DIAMOND=3]="DIAMOND";a[a.OVAL=4]="OVAL";a[a.ARROW=5]="ARROW"})(b.LineEndType||(b.LineEndType={}))})(h=m.LineStyle||(m.LineStyle={}))})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a){this.pattern=this.endSize=this.end=this.startSize=this.start=this.rndg=0;this.lineDashPattern=null;a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a);this.rndg=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"rndg");this.start=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"start");this.startSize=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,-"startSize");this.end=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"end");this.endSize=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"endSize");this.pattern=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"pattern");this.lineDashPattern=g.mxgraph.io.vsdx.Style.getLineDashPattern(this.pattern)}b.prototype.getRndg=function(){return this.rndg};b.prototype.getStart=function(){return this.start};b.prototype.getStartSize=-function(){return this.startSize};b.prototype.getEnd=function(){return this.end};b.prototype.getEndSize=function(){return this.endSize};b.prototype.isDashed=function(){return 1<this.pattern};b.prototype.getLineDashPattern=function(){return this.lineDashPattern};return b}();m.LineStyleExt=h;h.__class="com.mxgraph.io.vsdx.theme.LineStyleExt"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){}b.prototype.applyStyle=function(a,c){return g.mxgraph.io.vsdx.theme.Color.NONE_$LI$()};return b}();m.NoFillStyle=h;h.__class="com.mxgraph.io.vsdx.theme.NoFillStyle";h.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){this.invGamma=this.gamma=this.blueMod=this.blueOff=this.blue=this.greenMod=this.greenOff=this.green=this.redMod=this.redOff=this.red=this.lumMod=this.lumOff=this.lum=this.satMod=this.satOff=this.sat=this.hueMod=this.hueOff=this.hue=this.alphaMod=this.alphaOff=this.alpha=this.gray=this.inv=this.comp=this.shade=this.tint=0;this.hasEffects=this.isInitialized=this.isDynamic=!1;this.color=null}b.prototype.calcColor=-function(a,c){this.hasEffects&&(a=this.color.toHsv(),0!==this.tint&&a.tint(this.tint),0!==this.shade&&a.shade(this.shade),0!==this.satMod&&a.satMod(this.satMod),0!==this.lumMod&&a.lumMod(this.lumMod),0!==this.hueMod&&a.hueMod(this.hueMod),this.color=a.toRgb())};b.prototype.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme=function(a,c){if(this.isDynamic||!this.isInitialized)this.calcColor(a,c),this.isInitialized=!0;return this.color};b.prototype.getColor=function(a,c){if("number"!==typeof a&&null!==a||-!(null!=c&&c instanceof g.mxgraph.io.vsdx.mxVsdxTheme||null===c)){if((null!=a&&a instanceof g.mxgraph.io.vsdx.mxVsdxTheme||null===a)&&void 0===c)return this.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(a);throw Error("invalid overload");}return this.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,c)};b.prototype.getColor$com_mxgraph_io_vsdx_mxVsdxTheme=function(a){return this.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(-1,a)};b.prototype.setTint=function(a){this.tint=a;this.hasEffects=!0};b.prototype.setShade=-function(a){this.shade=a;this.hasEffects=!0};b.prototype.setComp=function(a){this.comp=a;this.hasEffects=!0};b.prototype.setInv=function(a){this.inv=a;this.hasEffects=!0};b.prototype.setGray=function(a){this.gray=a;this.hasEffects=!0};b.prototype.setAlpha=function(a){this.alpha=a;this.hasEffects=!0};b.prototype.setAlphaOff=function(a){this.alphaOff=a;this.hasEffects=!0};b.prototype.setAlphaMod=function(a){this.alphaMod=a;this.hasEffects=!0};b.prototype.setHue=function(a){this.hue=a;this.hasEffects=-!0};b.prototype.setHueOff=function(a){this.hueOff=a;this.hasEffects=!0};b.prototype.setHueMod=function(a){this.hueMod=a;this.hasEffects=!0};b.prototype.setSat=function(a){this.sat=a;this.hasEffects=!0};b.prototype.setSatOff=function(a){this.satOff=a;this.hasEffects=!0};b.prototype.setSatMod=function(a){this.satMod=a;this.hasEffects=!0};b.prototype.setLum=function(a){this.lum=a;this.hasEffects=!0};b.prototype.setLumOff=function(a){this.lumOff=a;this.hasEffects=!0};b.prototype.setLumMod=function(a){this.lumMod=-a;this.hasEffects=!0};b.prototype.setRed=function(a){this.red=a;this.hasEffects=!0};b.prototype.setRedOff=function(a){this.redOff=a;this.hasEffects=!0};b.prototype.setRedMod=function(a){this.redMod=a;this.hasEffects=!0};b.prototype.setGreen=function(a){this.green=a;this.hasEffects=!0};b.prototype.setGreenOff=function(a){this.greenOff=a;this.hasEffects=!0};b.prototype.setGreenMod=function(a){this.greenMod=a;this.hasEffects=!0};b.prototype.setBlue=function(a){this.blue=a;this.hasEffects=!0};b.prototype.setBlueOff=-function(a){this.blueOff=a;this.hasEffects=!0};b.prototype.setBlueMod=function(a){this.blueMod=a;this.hasEffects=!0};b.prototype.setGamma=function(a){this.gamma=a;this.hasEffects=!0};b.prototype.setInvGamma=function(a){this.invGamma=a;this.hasEffects=!0};return b}();m.OoxmlColor=h;h.__class="com.mxgraph.io.vsdx.theme.OoxmlColor"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){}b.getOoxmlColor=function(a){var c=null;switch(a.nodeName){case "a:scrgbClr":c=new g.mxgraph.io.vsdx.theme.ScrgbClr(parseInt(a.getAttribute("r")),parseInt(a.getAttribute("g")),parseInt(a.getAttribute("b")));break;case "a:srgbClr":c=new g.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"));break;case "a:hslClr":c=new g.mxgraph.io.vsdx.theme.HslClr(parseInt(a.getAttribute("hue")),parseInt(a.getAttribute("sat")),-parseInt(a.getAttribute("lum")));break;case "a:sysClr":c=new g.mxgraph.io.vsdx.theme.SysClr(a.getAttribute("val"),a.getAttribute("lastClr"));break;case "a:schemeClr":c=new g.mxgraph.io.vsdx.theme.SchemeClr(a.getAttribute("val"));break;case "a:prstClr":c=new g.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"))}a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(var d=0;d<a.length;d++){var f=a[d],k=parseInt(f.getAttribute("val"))/1E3|0;switch(f.nodeName){case "a:tint":c.setTint(k);break;-case "a:shade":c.setShade(k);break;case "a:satMod":c.setSatMod(k);break;case "a:lumMod":c.setLumMod(k);break;case "a:hueMod":c.setHueMod(k)}}return c};return b}();m.OoxmlColorFactory=h;h.__class="com.mxgraph.io.vsdx.theme.OoxmlColorFactory"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d,f,k,n,q,t,A,C){this.quickStyleVariation=this.quickStyleType=this.quickStyleShadowColor=this.quickStyleLineColor=this.quickStyleFontMatrix=this.quickStyleFontColor=this.quickStyleFillMatrix=this.quickStyleFillColor=this.quickStyleEffectsMatrix=0;this.quickStyleEffectsMatrix=a;this.quickStyleFillColor=c;this.quickStyleFillMatrix=d;this.quickStyleFontColor=f;this.quickStyleFontMatrix=k;this.quickStyleLineColor=-n;this.quickStyleLineMatrix=q;this.quickStyleShadowColor=t;this.quickStyleType=A;this.quickStyleVariation=C}b.prototype.getQuickStyleEffectsMatrix=function(){return this.quickStyleEffectsMatrix};b.prototype.getQuickStyleFillColor=function(){return this.quickStyleFillColor};b.prototype.getQuickStyleFillMatrix=function(){return this.quickStyleFillMatrix};b.prototype.getQuickStyleFontColor=function(){return this.quickStyleFontColor};b.prototype.getQuickStyleFontMatrix=function(){return this.quickStyleFontMatrix};-b.prototype.getQuickStyleLineColor=function(){return this.quickStyleLineColor};b.prototype.getQuickStyleLineMatrix=function(){return this.quickStyleLineMatrix};b.prototype.getQuickStyleShadowColor=function(){return this.quickStyleShadowColor};b.prototype.getQuickStyleType=function(){return this.quickStyleType};b.prototype.getQuickStyleVariation=function(){return this.quickStyleVariation};b.prototype.setQuickStyleEffectsMatrix=function(a){this.quickStyleEffectsMatrix=a};b.prototype.setQuickStyleFillColor=-function(a){this.quickStyleFillColor=a};b.prototype.setQuickStyleFillMatrix=function(a){this.quickStyleFillMatrix=a};b.prototype.setQuickStyleFontColor=function(a){this.quickStyleFontColor=a};b.prototype.setQuickStyleFontMatrix=function(a){this.quickStyleFontMatrix=a};b.prototype.setQuickStyleLineColor=function(a){this.quickStyleLineColor=a};b.prototype.setQuickStyleLineMatrix=function(a){this.quickStyleLineMatrix=a};b.prototype.setQuickStyleShadowColor=function(a){this.quickStyleShadowColor=a};b.prototype.setQuickStyleType=-function(a){this.quickStyleType=a};b.prototype.setQuickStyleVariation=function(a){this.quickStyleVariation=a};return b}();m.QuickStyleVals=h;h.__class="com.mxgraph.io.vsdx.theme.QuickStyleVals"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a){this.color=null;this.color=a}b.prototype.applyStyle=function(a,c){return this.color.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,c)};return b}();m.SolidFillStyle=h;h.__class="com.mxgraph.io.vsdx.theme.SolidFillStyle";h.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){var B=function(){function m(){}m.MAX_AREA_$LI$=function(){null==m.MAX_AREA&&(m.MAX_AREA=1E8);return m.MAX_AREA};return m}();B.MAX_REQUEST_SIZE=52428800;B.IMAGE_DOMAIN="http://img.diagramly.com/";z.Constants=B;B.__class="com.mxgraph.online.Constants"})(y.online||(y.online={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){var B=function(){function m(){}m.getRotatedPoint=function(h,b,a,c){var d=h.x-c.x;h=h.y-c.y;return new mxPoint(d*b-h*a+c.x,h*b+d*a+c.y)};m.rotatedGeometry=function(h,b,a,c){b=b*Math.PI/180;var d=Math.cos(b);b=Math.sin(b);var f=h.getCenterX()-a,k=h.getCenterY()-c;h.x=Math.round(f*d-k*b+a-h.width/2);h.y=Math.round(k*d+f*b+c-h.height/2)};return m}();B.CHARSET_FOR_URL_ENCODING="ISO-8859-1";z.Utils=B;B.__class="com.mxgraph.online.Utils"})(y.online||(y.online={}))})(g.mxgraph||-(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k){c=b.call(this,c,d,f)||this;c.a=k;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a){var f=d.getHeight(),k=d.getWidth(),n=Math.floor(Math.round(d.getLastX()*k)/100),q=Math.floor(Math.round(d.getLastY()*f)/100);c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var t=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();t=f-t;var A=-this.a*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=Math.abs(c-n);q=Math.abs(t-q);n=q=.5*A+(n*n+q*q)/(8*A);var C=Math.abs(q);q=Math.round(100*q/k*100)/100;n=Math.round(100*n/f*100)/100;c=Math.round(100*c/k*100)/100;t=Math.round(100*t/f*100)/100;A=Math.round(100*A)/100;q=Math.abs(q);n=Math.abs(n);f=0>A?"1":"0";A=C<Math.abs(A)?"1":"0";d.setLastX(c);d.setLastY(t);return'<arc rx="'+(new String(q)).toString()+'" ry="'+(new String(n)).toString()+'" x="'+(new String(c)).toString()+'" y="'+(new String(t)).toString()+-'" x-axis-rotation="0" large-arc-flag="'+A+'" sweep-flag="'+f+'"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.ArcTo=h;h.__class="com.mxgraph.io.vsdx.geometry.ArcTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c){return b.call(this,c,null,null)||this}__extends(a,b);a.prototype.handle=function(c,d){return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.DelRow=h;h.__class="com.mxgraph.io.vsdx.geometry.DelRow"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){c=d.getHeight();var f=d.getWidth(),k=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();d=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();d=c-d;var n=this.a*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),-q=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();q=c-q;var t=this.c*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),A=this.d*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=Math.abs(n-k);q=Math.abs(q-d);q=Math.sqrt(n*n+q*q);t=Math.abs(t-k);A=Math.abs(c-A-d);k=100*k/f;A=Math.round(100*Math.sqrt(t*t+A*A)/c/2*100)/100;f=Math.round(100*q/f/2*100)/100;t=Math.round(100*(k-2*f))/100;k=Math.round(100*(k+2*f))/100;c=Math.round(100*d/c*100)/100;return'<move x="'+(new String(t)).toString()+-'" y="'+(new String(c)).toString()+'"/><arc rx="'+(new String(f)).toString()+'" ry="'+(new String(A)).toString()+'" x="'+(new String(k)).toString()+'" y="'+(new String(c)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(f)).toString()+'" ry="'+(new String(A)).toString()+'" x="'+(new String(t)).toString()+'" y="'+(new String(c)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.Ellipse=-h;h.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var f=d.getHeight(),k=d.getWidth();c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var n=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=f-n;var q=this.a*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),-t=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),A=this.c,C=this.d;c=100*c/k;n=100*n/f;var I=d.getLastX()*k/100,Q=d.getLastY()*f/100,K=c*k/100,L=n*f/100,S=f-t,R=-A;A=Math.sqrt(I*I+Q*Q)*Math.cos(Math.atan2(Q,I)-R);t=Math.sqrt(I*I+Q*Q)*Math.sin(Math.atan2(Q,I)-R);var H=Math.sqrt(K*K+L*L)*Math.cos(Math.atan2(L,K)-R),N=Math.sqrt(K*K+L*L)*Math.sin(Math.atan2(L,K)-R),J=Math.sqrt(q*q+S*S)*Math.cos(Math.atan2(S,q)-R),M=Math.sqrt(q*q+S*S)*Math.sin(Math.atan2(S,q)-R),T=((A-H)*(A+H)*(N-M)-(H-J)*-(H+J)*(t-N)+C*C*(t-N)*(N-M)*(t-M))/(2*((A-H)*(N-M)-(H-J)*(t-N))),ca=((A-H)*(H-J)*(A-J)/(C*C)+(H-J)*(t-N)*(t+N)-(A-H)*(N-M)*(N+M))/(2*((H-J)*(t-N)-(A-H)*(N-M))),V=A-T,P=t-ca;V=Math.sqrt(V*V+P*P*C*C);C=V/C;R=180*R/Math.PI;c=Math.round(100*c)/100;n=Math.round(100*n)/100;V=Math.round(100*V/k*100)/100;C=Math.round(100*C/f*100)/100;R=Math.round(100*R)/100;f=0<(K-I)*(S-Q)-(L-Q)*(q-I)?"0":"1";k="0";g.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(T,ca,A,t,H,N,J,M)&&(k="1");d.setLastX(c);d.setLastY(n);return'<arc rx="'+-(new String(V)).toString()+'" ry="'+(new String(C)).toString()+'" x="'+(new String(c)).toString()+'" y="'+(new String(n)).toString()+'" x-axis-rotation="'+(new String(R)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+f+'"/>'}return""};a.prototype.isReflexAngle=function(c,d,f,k,n,q,t,A){f-=c;k-=d;q-=d;n=t-c;A-=d;d=c=0;f=180*(Math.atan2(k,f)-Math.atan2(d,c))/Math.PI;n=180*(Math.atan2(q,n)-Math.atan2(d,c))/Math.PI;c=180*(Math.atan2(A,t)-Math.atan2(d,c))/Math.PI;f=(f-c)%360;n=(n-c)%360;180<f?f-=-360:-180>f&&(f+=360);180<n?n-=360:-180>n&&(n+=360);return(0<f&&0>n||0>f&&0<n)&&180<Math.abs(f-n)?!0:!1};return a}(g.mxgraph.io.vsdx.geometry.Row);m.EllipticalArcTo=h;h.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;return c}__extends(a,b);a.prototype.handle=function(c,d){return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.InfiniteLine=h;h.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){return b.call(this,c,d,f)||this}__extends(a,b);a.prototype.handle=function(c,d){var f=c.x,k=c.y,n=d.getHeight(),q=d.getWidth();null!=this.x&&null!=this.y&&(f=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());f=Math.round(100*f/q*100)/100;k=Math.round(100*(100-100*k/n))/100;c.x=f;c.y=k;d.setLastX(f);d.setLastY(k);return'<line x="'+-(new String(f)).toString()+'" y="'+(new String(k)).toString()+'"/>'};return a}(g.mxgraph.io.vsdx.geometry.Row);m.LineTo=h;h.__class="com.mxgraph.io.vsdx.geometry.LineTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){return b.call(this,c,d,f)||this}__extends(a,b);a.prototype.handle=function(c,d){var f=c.x,k=c.y,n=d.getHeight(),q=d.getWidth();null!=this.x&&null!=this.y&&(f=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());f=Math.round(100*f/q*100)/100;k=Math.round(100*(100-100*k/n))/100;c.x=f;c.y=k;d.setLastX(f);d.setLastY(k);d.setLastMoveX(f);-d.setLastMoveY(k);return'<move x="'+(new String(f)).toString()+'" y="'+(new String(k)).toString()+'"/>'};return a}(g.mxgraph.io.vsdx.geometry.Row);m.MoveTo=h;h.__class="com.mxgraph.io.vsdx.geometry.MoveTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t,A){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;c.formulaE=A;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.formulaE){var f=d.getHeight(),k=d.getWidth();c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var n=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=this.formulaE.split("NURBS(").join("");q=q.split(")").join("");-q=new a.Nurbs(this,q,k,f);if(2<=q.getSize()){var t=q.getX(0),A=q.getY(0),C=q.getX(1),I=q.getY(1);c=Math.round(100*c/k*100)/100;n=Math.round(100*(100-100*n/f))/100;t=Math.round(100*t)/100;A=Math.round(100*A)/100;C=Math.round(100*C)/100;I=Math.round(100*I)/100;d.setLastX(c);d.setLastY(n);if(3===q.getDegree()&&q.isOrderedByThree(this.getA())){d=[];f=[];k=[];A=q.getSize();for(t=0;t<A-1;t+=3)d.push(new mxPoint(q.getX(t),q.getY(t))),f.push(new mxPoint(q.getX(t+1),q.getY(t+1))),t<A-2?k.push(new mxPoint(q.getX(t+-2),q.getY(t+2))):k.push(new mxPoint(c,n));c="";for(t=0;t<d.length;t++)c+='<curve x1="'+d[t].x+'" y1="'+d[t].y+'" x2="'+f[t].x+'" y2="'+f[t].y+'" x3="'+k[t].x+'" y3="'+k[t].y+'"/>\n';return c}return'<curve x1="'+(new String(t)).toString()+'" y1="'+(new String(A)).toString()+'" x2="'+(new String(C)).toString()+'" y2="'+(new String(I)).toString()+'" x3="'+(new String(c)).toString()+'" y3="'+(new String(n)).toString()+'"/>'}}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.NURBSTo=h;h.__class="com.mxgraph.io.vsdx.geometry.NURBSTo";-(function(b){var a=function(){function c(d,f,k,n){this.__parent=d;this.nurbsValues=[];d=f.split(/\s*,\s*/).slice(0);for(f=0;f<d.length;f++)3<f&&0===f%4?this.nurbsValues.push(100*parseFloat(d[f])):3<f&&1===f%4?this.nurbsValues.push(100-100*parseFloat(d[f])):this.nurbsValues.push(parseFloat(d[f]))}c.prototype.isOrderedByThree=function(d){for(var f=0;f+2<this.getSize();f+=3){var k=Math.round(100*this.getKnot(f))/100,n=Math.round(100*this.getKnot(f+1))/100,q=Math.round(100*this.getKnot(f+2))/100;if(k!==-n||k!==q||n!==q)return!1}f=Math.round(10*this.getKnot(this.getSize()-2))/10;k=Math.round(10*this.getKnot(this.getSize()-1))/10;d=Math.round(10*d)/10;return f!==k||f!==d||k!==d?!1:!0};c.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};c.prototype.getKnotLast=function(){return this.nurbsValues[0]};c.prototype.getDegree=function(){return this.nurbsValues[1]};c.prototype.getXType=function(){return this.nurbsValues[2]};c.prototype.getYType=function(){return this.nurbsValues[3]};c.prototype.getX=-function(d){return this.nurbsValues[4*(d+1)]};c.prototype.getY=function(d){return this.nurbsValues[4*(d+1)+1]};c.prototype.getKnot=function(d){return this.nurbsValues[4*(d+1)+2]};c.prototype.getWeight=function(d){return this.nurbsValues[4*(d+1)+3]};return c}();b.Nurbs=a;a.__class="com.mxgraph.io.vsdx.geometry.NURBSTo.Nurbs"})(h=m.NURBSTo||(m.NURBSTo={}))})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k){c=b.call(this,c,d,f)||this;c.formulaA=k;return c}__extends(a,b);a.prototype.handle=function(c,d){c="";if(null!=this.x&&null!=this.y&&null!=this.formulaA){var f=d.getHeight(),k=d.getWidth(),n=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=Math.round(100*n/k*100)/100;q=Math.round(100*(100-100*q/f))/100;var t=this.formulaA.replace(RegExp("\\s",-"g"),"").toLowerCase().replace(RegExp("polyline\\(","g"),"").replace(RegExp("\\)","g"),"");var A=t&&t.equals?t.equals("inh"):"inh"===t;if(A)throw Object.defineProperty(Error(),"__classes",{configurable:!0,value:["java.lang.Throwable","java.lang.Object","java.lang.RuntimeException","java.lang.IllegalArgumentException","java.lang.Exception"]});t=t.split(",").slice(0).slice(0);A=parseFloat(t.splice(0,1));parseFloat(t.splice(0,1));for(var C,I;0<t.length;)C=parseFloat(t.splice(0,1))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),-I=parseFloat(t.splice(0,1))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),1===A&&(C=100*C/k),1===A&&(I=100*I/f),I=100-I,C=Math.round(100*C)/100,I=Math.round(100*I)/100,d.setLastX(C),d.setLastY(I),c+='<line x="'+(new String(C)).toString()+'" y="'+(new String(I)).toString()+'"/>';c+='<line x="'+(new String(n)).toString()+'" y="'+(new String(q)).toString()+'"/>';d.getLastMoveX()===n&&d.getLastMoveY()===q&&(c+="<close/>")}return c};return a}(g.mxgraph.io.vsdx.geometry.Row);m.PolylineTo=h;h.__class=-"com.mxgraph.io.vsdx.geometry.PolylineTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){c=100*this.x;var f=100-100*this.y,k=100*this.a,n=100-100*this.b,q=100*this.c,t=100-100*this.d;c=Math.round(100*c)/100;f=Math.round(100*f)/100;k=Math.round(100*k)/100;n=Math.round(100*n)/100;q=Math.round(100*-q)/100;t=Math.round(100*t)/100;d.setLastX(c);d.setLastY(f);return'<curve x1="'+(new String(k)).toString()+'" y1="'+(new String(n)).toString()+'" x2="'+(new String(q)).toString()+'" y2="'+(new String(t)).toString()+'" x3="'+(new String(c)).toString()+'" y3="'+(new String(f)).toString()+'"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.RelCubBezTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelCubBezTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=-{}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){return b.call(this,c,d,f)||this}__extends(a,b);a.prototype.handle=function(c,d){var f=c.x,k=c.y;null!=this.x&&null!=this.y&&(f=100*this.x,k=100-100*this.y);f=Math.round(100*f)/100;k=Math.round(100*k)/100;c.x=f;c.y=k;d.setLastX(f);d.setLastY(k);return'<line x="'+(new String(f)).toString()+'" y="'+(new String(k)).toString()+'"/>'};return a}(g.mxgraph.io.vsdx.geometry.Row);m.RelLineTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelLineTo"})(B.geometry||-(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){return b.call(this,c,d,f)||this}__extends(a,b);a.prototype.handle=function(c,d){var f=c.x,k=c.y;null!=this.x&&null!=this.y&&(f=100*this.x,k=100-100*this.y);f=Math.round(100*f)/100;k=Math.round(100*k)/100;c.x=f;c.y=k;d.setLastX(f);d.setLastY(k);d.setLastMoveX(f);d.setLastMoveY(k);return'<move x="'+(new String(f)).toString()+'" y="'+(new String(k)).toString()+'"/>'};return a}(g.mxgraph.io.vsdx.geometry.Row);-m.RelMoveTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelMoveTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b){c=100*this.x;var f=100-100*this.y,k=100*this.a,n=100-100*this.b;c=Math.round(100*c)/100;f=Math.round(100*f)/100;k=Math.round(100*k)/100;n=Math.round(100*n)/100;d.setLastX(c);d.setLastY(f);return'<quad x1="'+(new String(k)).toString()+'" y1="'+-(new String(n)).toString()+'" x2="'+(new String(c)).toString()+'" y2="'+(new String(f)).toString()+'"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.RelQuadBezTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelQuadBezTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k){c=b.call(this,c,d,f)||this;c.a=k;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a){c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var f=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();c=Math.round(100*c)/100;f=Math.round(100*(100-f))/100;d.setLastX(c);d.setLastY(f)}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);-m.SplineKnot=h;h.__class="com.mxgraph.io.vsdx.geometry.SplineKnot"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){d.getHeight();d.getWidth();c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var f=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();d.setLastKnot(this.c);c=Math.round(100*c)/-100;f=Math.round(100*(100-f))/100;d.getLastX();d.getLastY();d.setLastX(c);d.setLastY(f);return"<curve "}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.SplineStart=h;h.__class="com.mxgraph.io.vsdx.geometry.SplineStart"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.cellElements={};this.sections={};this.styleParents={};this.style=this.pm=this.Id=this.shape=null;this.shape=b;this.pm=a.getPropertiesManager();b=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID);try{this.Id=null!=b&&0!==b.length?parseFloat(b):-1}catch(c){this.Id=-1}this.cacheCells(a);this.stylesheetRefs(a)}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0(),-h.__static_initializer_1())};h.styleTypes_$LI$=function(){h.__static_initialize();null==h.styleTypes&&(h.styleTypes={});return h.styleTypes};h.__static_initializer_0=function(){h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND_TRANS]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;-h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE]=-g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$().QuickStyleFillColor=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$().QuickStyleFillMatrix=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN]=-g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$().QuickStyleLineColor=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$().QuickStyleLineMatrix=-g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.BOTTOM_MARGIN]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;-h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LEFT_MARGIN]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.RIGHT_MARGIN]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.TOP_MARGIN]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER]=-g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$().QuickStyleFontColor=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$().QuickStyleFontMatrix=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE};h.prototype.getTheme=function(){return null};h.prototype.getQuickStyleVals=function(){return null};h.prototype.isVertex=function(){return!1};h.prototype.styleDebug=function(b){h.vsdxStyleDebug&&console.info(b)};h.prototype.stylesheetRefs=function(b){this.styleParents[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE]=-b.getStylesheet(this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE));this.styleParents[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE]=b.getStylesheet(this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE));this.styleParents[g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE]=b.getStylesheet(this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE));this.style=b.getStylesheet("0")};h.prototype.cacheCells=function(b){if(null!=this.shape){var a=this.shape.childNodes;-if(null!=a)for(a=a.item(0);null!=a;)null!=a&&1==a.nodeType&&this.parseShapeElem(a,b),a=a.nextSibling}};h.prototype.parseShapeElem=function(b,a){a=b.nodeName;(function(c,d){return c&&c.equals?c.equals(d):c===d})(a,"Cell")?this.cellElements[b.getAttribute("N")]=b:function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Section")&&this.parseSection(b)};h.prototype.parseSection=function(b){var a=new g.mxgraph.io.vsdx.Section(b);this.sections[b.getAttribute("N")]=a};h.prototype.hasProperty=function(b,a){return this.cellElements.hasOwnProperty(a)};-h.prototype.getValue=function(b,a){return null!=b?b.getAttribute("V")||"":a};h.prototype.getValueAsDouble=function(b,a){if(null!=b){var c=b.getAttribute("V");if(null!=c){if(function(f,k){return f&&f.equals?f.equals(k):f===k}(c,"Themed"))return 0;try{var d=parseFloat(c);(function(f,k){return f&&f.equals?f.equals(k):f===k})(b.getAttribute("U"),"PT")&&(d*=g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());return Math.round(100*d)/100}catch(f){}}}return a};h.prototype.getScreenNumericalValue$org_w3c_dom_Element$double=-function(b,a){if(null!=b&&(b=b.getAttribute("V"),null!=b))try{var c=parseFloat(b);return this.getScreenNumericalValue$double(c)}catch(d){}return a};h.prototype.getScreenNumericalValue=function(b,a){if((null==b||1!=b.nodeType)&&null!==b||"number"!==typeof a&&null!==a){if("number"!==typeof b&&null!==b||void 0!==a)throw Error("invalid overload");return this.getScreenNumericalValue$double(b)}return this.getScreenNumericalValue$org_w3c_dom_Element$double(b,a)};h.prototype.getScreenNumericalValue$double=-function(b){return b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()};h.prototype.getAttribute=function(b,a,c){var d=this.cellElements;b=d[b]?d[b]:null;null!=b&&(c=b.getAttribute(a)||"");return c};h.prototype.getChildValues=function(b,a){var c={};for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var d=b,f;if((f=d.nodeName)&&f.equals?f.equals("Cell"):"Cell"===f){f=d.getAttribute("N")||"";var k=d.getAttribute("V")||""}else f=d.nodeName,k=d.textContent;if(null!=a){var n=a[f]?a[f]:null;null!=-n&&(k=d.getAttribute(n)||"")}c[f]=k}b=b.nextSibling}return c};h.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(b,a,c){var d=function(q,t){return q[t]?q[t]:null}(this.sections,c),f=null,k=!1;null!=d&&(f=d.getIndexedCell(a,b));if(null!=f){d=f.getAttribute("F");var n=f.getAttribute("V");if(null!=d&&null!=n)if(function(q,t){return q&&q.equals?q.equals(t):q===t}(d,"Inh")&&function(q,t){return q&&q.equals?q.equals(t):q===t}(n,"Themed"))k=!0;else if(function(q,t){return q&&-q.equals?q.equals(t):q===t}(d,"THEMEVAL()")&&function(q,t){return q&&q.equals?q.equals(t):q===t}(n,"Themed")&&null!=this.style){if(function(q,t){return q&&q.equals?q.equals(t):q===t}(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR,b))return f;d=this.style.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,a,c);if(null!=d)return d}}if(null==f||k)if(k=function(q,t){return q[t]?q[t]:null}(h.styleTypes_$LI$(),c),k=function(q,t){return q[t]?q[t]:null}(this.styleParents,k),null!=k&&(b=k.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,-a,c),null!=b))return b;return f};h.prototype.getCellElement=function(b,a,c){if("string"!==typeof b&&null!==b||"string"!==typeof a&&null!==a||"string"!==typeof c&&null!==c){if("string"!==typeof b&&null!==b||void 0!==a||void 0!==c)throw Error("invalid overload");return this.getCellElement$java_lang_String(b)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,a,c)};h.prototype.getCellElement$java_lang_String=function(b){var a=function(k,n){return k[n]?k[n]:null}(this.cellElements,-b),c=!1;if(null!=a){var d=a.getAttribute("F"),f=a.getAttribute("V");if(null!=d&&null!=f)if(function(k,n){return k&&k.equals?k.equals(n):k===n}(d,"Inh")&&function(k,n){return k&&k.equals?k.equals(n):k===n}(f,"Themed"))c=!0;else if(-1!=d.indexOf("THEMEVAL()")&&function(k,n){return k&&k.equals?k.equals(n):k===n}(f,"Themed")&&null!=this.style){if(function(k,n){return k&&k.equals?k.equals(n):k===n}("FillForegnd",b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR,-b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN,b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE,b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE,b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW,b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW,-b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT,b))return a;d=this.style.getCellElement$java_lang_String(b);if(null!=d)return d}}if(null==a||c)if(c=function(k,n){return k[n]?k[n]:null}(h.styleTypes_$LI$(),b),c=function(k,n){return k[n]?k[n]:null}(this.styleParents,c),null!=c&&(b=c.getCellElement$java_lang_String(b),null!=b))return b;return a};h.prototype.getStrokeColor=function(){var b="";(function(a,c){return a&&a.equals?a.equals(c):a===c})(this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),-"1"),"0")?b="none":(b=this.getColor(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR)),function(a,c){return a&&a.equals?a.equals(c):a===c}("Themed",b)&&(b=this.getTheme(),b=null!=b?(this.isVertex()?b.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):b.getConnLineColor(this.getQuickStyleVals())).toHexStr():""));return b};h.prototype.getFillColor=function(){if(function(c,d){return c&&c.equals?c.equals(d):c===d}("1",this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),-"0"))){var b=function(c,d){return c[d]?c[d]:null}(this.sections,"FillGradient");if(null!=b&&(b=this.getColor(b.getIndexedCell("0","GradientStopColor")),null!=b&&0!==b.length))return b}b=this.getColor(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND));(function(c,d){return c&&c.equals?c.equals(d):c===d})("Themed",b)&&(b=this.getTheme(),null!=b?(b=b.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()),b=b.toHexStr()):b="#FFFFFF");var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),-"0");return null!=a&&function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")?"none":b};h.prototype.getColor=function(b){b=this.getValue(b,"");(function(a,c){return a&&a.equals?a.equals(c):a===c})("Themed",b)||function(a,c,d){void 0===d&&(d=0);return a.substr(d,c.length)===c}(b,"#")||(b=this.pm.getColor(b));return b};h.prototype.getTextBkgndColor=function(b){b=this.getValue(b,"");return function(a,c,d){void 0===d&&(d=0);return a.substr(d,c.length)===c}(b,"#")?b:function(a,c){return a&&a.equals?-a.equals(c):a===c}(b,"0")||function(a,c){return a&&a.equals?a.equals(c):a===c}(b,"255")||0===b.length?"none":this.pm.getColor((new String(parseInt(b)-1)).toString())};h.prototype.getLineWeight=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),0)};h.prototype.getStrokeTransparency=function(){return this.getValueAsDouble(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS),-0)};h.prototype.getNameU=function(){return this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||""};h.prototype.getName=function(){return this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME)||""};h.prototype.getUniqueID=function(){return this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.UNIQUE_ID)||""};h.prototype.getId=function(){return this.Id};h.prototype.getTextColor=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR,-b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);b=this.getValue(b,"#000000");(function(a,c){return a&&a.equals?a.equals(c):a===c})("Themed",b)?(b=this.getTheme(),b=null!=b?(this.isVertex()?b.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):b.getConnFontColor(this.getQuickStyleVals())).toHexStr():"#000000"):function(a,c,d){void 0===d&&(d=0);return a.substr(d,c.length)===c}(b,"#")||(b=this.pm.getColor(b));return b};h.prototype.getTextTopMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.TOP_MARGIN),-0)};h.prototype.getTextBottomMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BOTTOM_MARGIN),0)};h.prototype.getTextLeftMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LEFT_MARGIN),0)};h.prototype.getTextRightMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.RIGHT_MARGIN),-0)};h.prototype.getTextStyle=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.STYLE,b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};h.prototype.getTextFont=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FONT,b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};h.prototype.getTextPos=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.POS,-b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};h.prototype.getTextStrike=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.STRIKETHRU,b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);b=(b=this.getValue(b,""))&&b.equals?b.equals("1"):"1"===b;return b};h.prototype.getTextCase=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.CASE,b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);-return this.getValue(b,"")};h.prototype.getHorizontalAlign=function(b,a){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.HORIZONTAL_ALIGN,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);switch(this.getValue(b,"")){case "0":a=a?"left":mxConstants.ALIGN_LEFT;break;case "2":a=a?"right":mxConstants.ALIGN_RIGHT;break;case "3":case "4":a=a?"justify":mxConstants.ALIGN_CENTER;break;default:a=a?"center":mxConstants.ALIGN_CENTER}return a};h.prototype.getIndentFirst=-function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.INDENT_FIRST,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))).toString()};h.prototype.getIndentLeft=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.INDENT_LEFT,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,-0))|0)).toString()};h.prototype.getIndentRight=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.INDENT_RIGHT,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};h.prototype.getSpBefore=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SPACE_BEFORE,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);-return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};h.prototype.getSpAfter=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SPACE_AFTER,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};h.prototype.getSpLine=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SPACE_LINE,-b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);b=this.getValue(b,"");var a=b&&b.equals?b.equals(""):""===b;return a?0:parseFloat(b)};h.prototype.getFlags=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FLAGS,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return this.getValue(b,"0")};h.prototype.getLetterSpace=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LETTER_SPACE,-b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))).toString()};h.prototype.getBullet=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BULLET,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return this.getValue(b,"0")};h.prototype.getShape=function(){return this.shape};h.prototype.setShape=function(b){this.shape=b};h.lineDashPatterns_$LI$=function(){h.__static_initialize();-null==h.lineDashPatterns&&(h.lineDashPatterns=[]);return h.lineDashPatterns};h.__static_initializer_1=function(){h.lineDashPatterns_$LI$().push([]);h.lineDashPatterns_$LI$().push([]);h.lineDashPatterns_$LI$().push([]);var b=[];b.push(h.DOT);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DASH);b.push(h.SPACE);b.push(h.DOT);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DASH);b.push(h.SPACE);b.push(h.DOT);b.push(h.SPACE);b.push(h.DOT);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);-b=[];b.push(h.DASH);b.push(h.SPACE);b.push(h.DASH);b.push(h.SPACE);b.push(h.DOT);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.SPACE);b.push(h.SHORT_DASH);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.SPACE);b.push(h.SHORT_DASH);b.push(h.SPACE);b.push(h.SHORT_DASH);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DOT);b.push(h.SHORT_SPACE);-h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.DOT);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.DOT);b.push(h.SHORT_SPACE);b.push(h.DOT);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.DOT);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DASH);b.push(h.SHORT_SPACE);-b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DASH);b.push(h.SHORT_SPACE);b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DOT);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.LONG_SPACE);b.push(h.DOT);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);-b=[];b.push(h.LONG_DASH);b.push(h.LONG_SPACE);b.push(h.DOT);b.push(h.LONG_SPACE);b.push(h.DOT);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.LONG_SPACE);b.push(h.LONG_DASH);b.push(h.LONG_SPACE);b.push(h.DOT);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.XLONG_DASH);b.push(h.LONG_SPACE);b.push(h.DASH);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.XLONG_DASH);b.push(h.LONG_SPACE);b.push(h.DASH);b.push(h.LONG_SPACE);-b.push(h.DASH);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.XSHORT_DASH);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b)};h.getLineDashPattern=function(b){return 0<=b&&23>=b?h.lineDashPatterns_$LI$()[b]:h.lineDashPatterns_$LI$()[0]};return h}();m.__static_initialized=!1;m.vsdxStyleDebug=!1;m.SPACE=4;m.SHORT_SPACE=2;m.LONG_SPACE=6;m.DOT=1;m.DASH=8;m.LONG_DASH=12;m.SHORT_DASH=4;m.XLONG_DASH=20;m.XSHORT_DASH=2;B.Style=m;m.__class="com.mxgraph.io.vsdx.Style"})(z.vsdx||-(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){var k=b.call(this)||this;k.__com_mxgraph_io_vsdx_theme_HslClr_hue=c/360;k.__com_mxgraph_io_vsdx_theme_HslClr_sat=d/100;k.__com_mxgraph_io_vsdx_theme_HslClr_lum=f/100;k.color=(new g.mxgraph.io.vsdx.theme.HSLColor(c,d,f)).toRgb();return k}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.HslClr=h;h.__class="com.mxgraph.io.vsdx.theme.HslClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||-(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c){var d=b.call(this)||this;d.val=c;d.color=new g.mxgraph.io.vsdx.theme.Color(255,255,255);return d}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.PrstClr=h;h.__class="com.mxgraph.io.vsdx.theme.PrstClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c){var d=b.call(this)||this;d.isDynamic=!0;d.val=c;return d}__extends(a,b);a.prototype.calcColor=function(c,d){var f=this.val;f="phClr".equals?"phClr".equals(f):"phClr"===f;f?this.color=d.getStyleColor(c):(this.color=d.getSchemeColor(this.val),this.isDynamic=!1);b.prototype.calcColor.call(this,c,d)};return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.SchemeClr=h;h.__class="com.mxgraph.io.vsdx.theme.SchemeClr"})(B.theme||-(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){var k=b.call(this)||this;k.r=0;k.g=0;k.b=0;k.r=c;k.g=d;k.b=f;k.color=new g.mxgraph.io.vsdx.theme.Color(c,d,f);return k}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.ScrgbClr=h;h.__class="com.mxgraph.io.vsdx.theme.ScrgbClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c){var d=b.call(this)||this;d.hexVal=null;d.hexVal=c;d.color=g.mxgraph.io.vsdx.theme.Color.decodeColorHex(c);return d}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.SrgbClr=h;h.__class="com.mxgraph.io.vsdx.theme.SrgbClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d){var f=b.call(this)||this;f.lastClr=null;f.val=c;f.lastClr=d;if(null==d)switch(c){case "windowText":d="000000";break;case "window":d="FFFFFF";break;default:d="FFFFFF"}f.color=g.mxgraph.io.vsdx.theme.Color.decodeColorHex(d);return f}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.SysClr=h;h.__class="com.mxgraph.io.vsdx.theme.SysClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||-(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){return b.call(this,c,d,f,k,n,q,t)||this}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var f=d.getHeight()/g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=d.getWidth()/g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();this.x*=k;this.y*=f;this.a*=k;this.b*=f}return b.prototype.handle.call(this,-c,d)};return a}(g.mxgraph.io.vsdx.geometry.EllipticalArcTo);m.RelEllipticalArcTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelEllipticalArcTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(h){function b(a,c){var d=this;d.text=null;d.fields=null;d.geom=null;d.imageData=null;d.theme=null;d.quickStyleVals=null;d=h.call(this,a,c)||this;d.paragraphs=null;d.styleMap={};d.width=0;d.height=0;d.rotation=0;d.lastX=0;d.lastY=0;d.lastMoveX=0;d.lastMoveY=0;d.lastKnot=-1;d.geomList=null;d.geomListProcessed=!1;d.themeVariant=0;d.cp="0";d.pp="0";d.tp="0";d.fld="0";d.width=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(f,-k){return f[k]?f[k]:null}(d.cellElements,g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0);d.height=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(f,k){return f[k]?f[k]:null}(d.cellElements,g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return d}__extends(b,h);b.UNICODE_LINE_SEP_$LI$=function(){null==b.UNICODE_LINE_SEP&&(b.ERROR_IMAGE="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tIENyZWF0ZWQgd2l0aCBJbmtzY2FwZSAoaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvKSAtLT4NCjxzdmcNCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyINCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiDQogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiDQogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIg0KICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiDQogICB3aWR0aD0iMjUwIg0KICAgaGVpZ2h0PSIyNTAiDQogICBpZD0ic3ZnMzMxOSINCiAgIHNvZGlwb2RpOnZlcnNpb249IjAuMzIiDQogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2Ig0KICAgdmVyc2lvbj0iMS4wIg0KICAgc29kaXBvZGk6ZG9jbmFtZT0ibm9waG90b19pLnN2ZyINCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4NCiAgPGRlZnMNCiAgICAgaWQ9ImRlZnMzMzIxIj4NCiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUNCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIg0KICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIg0KICAgICAgIGlkPSJwZXJzcGVjdGl2ZTMzMjciIC8+DQogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlDQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzM0MiINCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSINCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPg0KICA8L2RlZnM+DQogIDxzb2RpcG9kaTpuYW1lZHZpZXcNCiAgICAgaWQ9ImJhc2UiDQogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiINCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiDQogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCINCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCINCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiINCiAgICAgaW5rc2NhcGU6em9vbT0iMi4yNDI5NDI3Ig0KICAgICBpbmtzY2FwZTpjeD0iMTIxLjk3NjQ4Ig0KICAgICBpbmtzY2FwZTpjeT0iMTIyLjQ0MTk4Ig0KICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiDQogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImxheWVyMSINCiAgICAgc2hvd2dyaWQ9ImZhbHNlIg0KICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjE2NjQiDQogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9Ijg0NCINCiAgICAgaW5rc2NhcGU6d2luZG93LXg9Ii0zIg0KICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTE4IiAvPg0KICA8bWV0YWRhdGENCiAgICAgaWQ9Im1ldGFkYXRhMzMyNCI+DQogICAgPHJkZjpSREY+DQogICAgICA8Y2M6V29yaw0KICAgICAgICAgcmRmOmFib3V0PSIiPg0KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4NCiAgICAgICAgPGRjOnR5cGUNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4NCiAgICAgICAgPGRjOnRpdGxlPkZvdG9ncmFmaWVydmVyYm90PC9kYzp0aXRsZT4NCiAgICAgICAgPGRjOmRhdGU+MjAwOC0wNi0yOTwvZGM6ZGF0ZT4NCiAgICAgICAgPGRjOmNyZWF0b3I+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnJzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOmNyZWF0b3I+DQogICAgICAgIDxkYzpyaWdodHM+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnN0ZW4gU2tvbXA8L2RjOnRpdGxlPg0KICAgICAgICAgIDwvY2M6QWdlbnQ+DQogICAgICAgIDwvZGM6cmlnaHRzPg0KICAgICAgICA8ZGM6cHVibGlzaGVyPg0KICAgICAgICAgIDxjYzpBZ2VudD4NCiAgICAgICAgICAgIDxkYzp0aXRsZT5Ub3JzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOnB1Ymxpc2hlcj4NCiAgICAgICAgPGRjOmxhbmd1YWdlPmRlX0RFPC9kYzpsYW5ndWFnZT4NCiAgICAgICAgPGRjOnN1YmplY3Q+DQogICAgICAgICAgPHJkZjpCYWc+DQogICAgICAgICAgICA8cmRmOmxpPlBpa3RvZ3JhbW07IEZvdG9ncmFmaWVydmVyYm90PC9yZGY6bGk+DQogICAgICAgICAgPC9yZGY6QmFnPg0KICAgICAgICA8L2RjOnN1YmplY3Q+DQogICAgICAgIDxkYzpkZXNjcmlwdGlvbj5Gb3RvZ3JhZmllcnZlcmJvdCBhbHMgUGlrdG9ncmFtbSA8L2RjOmRlc2NyaXB0aW9uPg0KICAgICAgICA8Y2M6bGljZW5zZQ0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL3B1YmxpY2RvbWFpbi8iIC8+DQogICAgICA8L2NjOldvcms+DQogICAgICA8Y2M6TGljZW5zZQ0KICAgICAgICAgcmRmOmFib3V0PSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9wdWJsaWNkb21haW4vIj4NCiAgICAgICAgPGNjOnBlcm1pdHMNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyNSZXByb2R1Y3Rpb24iIC8+DQogICAgICAgIDxjYzpwZXJtaXRzDQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjRGlzdHJpYnV0aW9uIiAvPg0KICAgICAgICA8Y2M6cGVybWl0cw0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zI0Rlcml2YXRpdmVXb3JrcyIgLz4NCiAgICAgIDwvY2M6TGljZW5zZT4NCiAgICA8L3JkZjpSREY+DQogIDwvbWV0YWRhdGE+DQogIDxnDQogICAgIGlua3NjYXBlOmxhYmVsPSJFYmVuZSAxIg0KICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIg0KICAgICBpZD0ibGF5ZXIxIj4NCiAgICA8cGF0aA0KICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjEiDQogICAgICAgZD0iTSAxNjQuNTMxMjUgNjIuNjg3NSBDIDE2Mi43OTExNSA2Mi42ODc1MDEgMTYxLjM3NSA2NC4wNzI0MTYgMTYxLjM3NSA2NS44MTI1IEwgMTYxLjM3NSA2OC43NSBMIDM4LjM3NSA2OC43NSBDIDM1LjA5MjI5OCA2OC43NDk5OTkgMzIuNDY4NzUgNzEuMzczNTQ4IDMyLjQ2ODc1IDc0LjY1NjI1IEwgMzIuNDY4NzUgMTgxLjM3NSBDIDMyLjQ2ODc1IDE4NC42NTc3IDM1LjA5MjMwNyAxODcuMzEyNTEgMzguMzc1IDE4Ny4zMTI1IEwgMjExLjYyNSAxODcuMzEyNSBDIDIxNC45MDc2OSAxODcuMzEyNSAyMTcuNTMxMjcgMTg0LjY1NzcgMjE3LjUzMTI1IDE4MS4zNzUgTCAyMTcuNTMxMjUgNzQuNjU2MjUgQyAyMTcuNTMxMjUgNzEuMzczNTUxIDIxNC45MDc2OCA2OC43NSAyMTEuNjI1IDY4Ljc1IEwgMjAyLjA2MjUgNjguNzUgTCAyMDIuMDYyNSA2NS44MTI1IEMgMjAyLjA2MjUgNjQuMDcyNDEgMjAwLjY0NjM1IDYyLjY4NzUgMTk4LjkwNjI1IDYyLjY4NzUgTCAxNjQuNTMxMjUgNjIuNjg3NSB6IE0gNDYuODEyNSA3OCBMIDg4LjY1NjI1IDc4IEMgOTAuMzk2MzQyIDc4IDkxLjgxMjUgNzkuMzg0OTA3IDkxLjgxMjUgODEuMTI1IEwgOTEuODEyNSA5Ni4zMTI1IEMgOTEuODEyNSA5OC4wNTI1OTIgOTAuMzk2MzQzIDk5LjQzNzUgODguNjU2MjUgOTkuNDM3NSBMIDQ2LjgxMjUgOTkuNDM3NSBDIDQ1LjA3MjQwOCA5OS40Mzc1IDQzLjY4NzUgOTguMDUyNTkzIDQzLjY4NzUgOTYuMzEyNSBMIDQzLjY4NzUgODEuMTI1IEMgNDMuNjg3NSA3OS4zODQ5MDggNDUuMDcyNDA3IDc4IDQ2LjgxMjUgNzggeiBNIDE0NiA4OC4yMTg3NSBDIDE2Ny43MzQ3NSA4OC4yMTg3NTMgMTg1LjM3NSAxMDYuMTUwNzEgMTg1LjM3NSAxMjguMjUgQyAxODUuMzc0OTkgMTUwLjM0OTI4IDE2Ny43MzQ3NCAxNjguMjgxMjUgMTQ2IDE2OC4yODEyNSBDIDEyNC4yNjUyNyAxNjguMjgxMjYgMTA2LjYyNSAxNTAuMzQ5MjkgMTA2LjYyNSAxMjguMjUgQyAxMDYuNjI1IDEwNi4xNTA3MSAxMjQuMjY1MjYgODguMjE4NzUgMTQ2IDg4LjIxODc1IHogTSAxNDYgOTEuNzE4NzUgQyAxMjYuMTY1NTcgOTEuNzE4NzUgMTEwLjA2MjUgMTA4LjA4Mjg5IDExMC4wNjI1IDEyOC4yNSBDIDExMC4wNjI1IDE0OC40MTcxMSAxMjYuMTY1NTcgMTY0Ljc4MTI2IDE0NiAxNjQuNzgxMjUgQyAxNjUuODM0NDMgMTY0Ljc4MTI1IDE4MS45Mzc1IDE0OC40MTcxIDE4MS45Mzc1IDEyOC4yNSBDIDE4MS45Mzc1IDEwOC4wODI4OSAxNjUuODM0NDMgOTEuNzE4NzUgMTQ2IDkxLjcxODc1IHogTSAxNDYgOTYuNTkzNzUgQyAxNjMuMTc3NjggOTYuNTkzNzUyIDE3Ny4xMjUgMTEwLjc4NDIgMTc3LjEyNSAxMjguMjUgQyAxNzcuMTI0OTkgMTQ1LjcxNTggMTYzLjE3NzY5IDE1OS44NzUgMTQ2IDE1OS44NzUgQyAxMjguODIyMzEgMTU5Ljg3NSAxMTQuODc1IDE0NS43MTU4IDExNC44NzUgMTI4LjI1IEMgMTE0Ljg3NSAxMTAuNzg0MTkgMTI4LjgyMjMxIDk2LjU5Mzc1IDE0NiA5Ni41OTM3NSB6IE0gMTc2LjUgMTcyLjcxODc1IEwgMjA2LjE4NzUgMTcyLjcxODc1IEMgMjA3LjQyMTM4IDE3Mi43MTg3NSAyMDguNDA2MjUgMTczLjEyNzgzIDIwOC40MDYyNSAxNzMuNjI1IEwgMjA4LjQwNjI1IDE3Ny45Njg3NSBDIDIwOC40MDYyNSAxNzguNDY1OTIgMjA3LjQyMTM4IDE3OC44NDM3NSAyMDYuMTg3NSAxNzguODQzNzUgTCAxNzYuNSAxNzguODQzNzUgQyAxNzUuMjY2MTEgMTc4Ljg0Mzc1IDE3NC4yODEyNSAxNzguNDY1OTIgMTc0LjI4MTI1IDE3Ny45Njg3NSBMIDE3NC4yODEyNSAxNzMuNjI1IEMgMTc0LjI4MTI1IDE3My4xMjc4MyAxNzUuMjY2MTIgMTcyLjcxODc1IDE3Ni41IDE3Mi43MTg3NSB6ICINCiAgICAgICBpZD0icmVjdDMyMDkiIC8+DQogICAgPHBhdGgNCiAgICAgICBzdHlsZT0iZmlsbDojYzQyNjFkO2ZpbGwtb3BhY2l0eToxIg0KICAgICAgIGQ9Ik0gMjAgMCBDIDE4LjU1OTkzOCAwIDE3LjE2NDc0NyAwLjE1MDk4NjY2IDE1LjgxMjUgMC40Mzc1IEMgMTUuMjEwMjkxIDAuNTY1MTk1NzggMTQuNjExOTEzIDAuNzI2MjExMjYgMTQuMDMxMjUgMC45MDYyNSBDIDEzLjU1NDc3MyAxLjA1Mzk4NTIgMTMuMDg1MzQ5IDEuMjI0ODUzNiAxMi42MjUgMS40MDYyNSBDIDEyLjMyODc2NiAxLjUyMzA3MzkgMTIuMDM5MDMzIDEuNjUwOTE4MiAxMS43NSAxLjc4MTI1IEMgMTEuMzQ3Mjc4IDEuOTYyMzU5OCAxMC45NTA0MDYgMi4xMzc0MTY1IDEwLjU2MjUgMi4zNDM3NSBDIDEwLjUyMTU1NSAyLjM2NTU2ODggMTAuNDc4MjczIDIuMzg0MTU1NSAxMC40Mzc1IDIuNDA2MjUgQyAxMC40MTY5MzQgMi40MTczNzU0IDEwLjM5NTUyMiAyLjQyNjMwNDkgMTAuMzc1IDIuNDM3NSBDIDkuODMyNjg2MSAyLjczMzM0NDYgOS4zMjI2NDQ4IDMuMDYzMjQ1MiA4LjgxMjUgMy40MDYyNSBDIDguMjgzMTIyMSAzLjc2MjE4NjUgNy43NzI3NzI4IDQuMTU4OTIwOSA3LjI4MTI1IDQuNTYyNSBDIDcuMjc1MDU1IDQuNTY3NTg2NiA3LjI1NjE4ODggNC41NTc0MDYxIDcuMjUgNC41NjI1IEMgNy4yMzg1NDc5IDQuNTcxOTQzNCA3LjIzMDE4MDYgNC41ODQyODE2IDcuMjE4NzUgNC41OTM3NSBDIDcuMTA0NzM1MiA0LjY4ODAxNTkgNi45ODY4NTA3IDQuNzc4MjY4NyA2Ljg3NSA0Ljg3NSBDIDYuNTE1NzAyMSA1LjE4NjQyNjQgNi4xNzk3OTA5IDUuNTA3NzA5MSA1Ljg0Mzc1IDUuODQzNzUgQyA1LjQwNDQwMjUgNi4yODE4MDc4IDQuOTkwNzQ0OSA2Ljc0MTM1NTQgNC41OTM3NSA3LjIxODc1IEMgNC41NzkwMDg2IDcuMjM2NTQ2MiA0LjU3NzE4MDYgNy4yNjM0MDE1IDQuNTYyNSA3LjI4MTI1IEMgMy43Njc0ODk4IDguMjQzOTE4MSAzLjA0MjI3MjEgOS4yNzE4NzA1IDIuNDM3NSAxMC4zNzUgQyAyLjQyNjIyMzIgMTAuMzk1NjM1IDIuNDE3NDU2MSAxMC40MTY4MiAyLjQwNjI1IDEwLjQzNzUgQyAyLjEwODM5MDggMTAuOTg1MzQ4IDEuODQwMjIzMyAxMS41NDcyMTQgMS41OTM3NSAxMi4xMjUgQyAxLjU3NTU4NjUgMTIuMTY3NjY1IDEuNTQ5MTI1NSAxMi4yMDcxODIgMS41MzEyNSAxMi4yNSBDIDEuMjg3NzEzMSAxMi44MzI0MzMgMS4wOTQ2NzU0IDEzLjQyMTgyMiAwLjkwNjI1IDE0LjAzMTI1IEMgMC43Mjk2MzAxNCAxNC42MDI0OTUgMC41NjMwOTYzNCAxNS4xODg4MjggMC40Mzc1IDE1Ljc4MTI1IEMgMC4xNDY5MTQwNCAxNy4xNDI1NzggLTQuMzkwNjEzM2UtMTggMTguNTQ5NDY2IDAgMjAgTCAwIDIzMCBDIDAgMjQxLjA4IDguOTIgMjUwIDIwIDI1MCBMIDIzMCAyNTAgQyAyMzEuNDQwMDYgMjUwIDIzMi44MzUyNSAyNDkuODQ5MDEgMjM0LjE4NzUgMjQ5LjU2MjUgQyAyMzQuNzg5MDMgMjQ5LjQzNDk3IDIzNS4zODg2NiAyNDkuMjczODEgMjM1Ljk2ODc1IDI0OS4wOTM3NSBDIDIzNi40NDQ3NiAyNDguOTQ2IDIzNi45MTUwNSAyNDguNzc1MjYgMjM3LjM3NSAyNDguNTkzNzUgQyAyMzcuNjcxMjMgMjQ4LjQ3NjkzIDIzNy45NjA5NyAyNDguMzQ5MDggMjM4LjI1IDI0OC4yMTg3NSBDIDIzOC4yNzk4MSAyNDguMjA1MzEgMjM4LjMxNDAyIDI0OC4yMDEwOSAyMzguMzQzNzUgMjQ4LjE4NzUgQyAyMzguNzU4MzYgMjQ3Ljk5ODMgMjM5LjE2Mzc0IDI0Ny44MDk4MSAyMzkuNTYyNSAyNDcuNTkzNzUgQyAyMzkuNTgzMTggMjQ3LjU4MjU0IDIzOS42MDQzNiAyNDcuNTczNzggMjM5LjYyNSAyNDcuNTYyNSBDIDI0MC4xNjkyNSAyNDcuMjY1MTIgMjQwLjY3NTU4IDI0Ni45Mzg3MyAyNDEuMTg3NSAyNDYuNTkzNzUgQyAyNDEuNjY4NzggMjQ2LjI2OTQxIDI0Mi4xNDM1OSAyNDUuOTI2MzkgMjQyLjU5Mzc1IDI0NS41NjI1IEMgMjQyLjY0NDc0IDI0NS41MjEyOCAyNDIuNjk5NDMgMjQ1LjQ3OTIxIDI0Mi43NSAyNDUuNDM3NSBDIDI0Mi44NzY1MSAyNDUuMzMzMTggMjQzLjAwMTE1IDI0NS4yMzIzNSAyNDMuMTI1IDI0NS4xMjUgQyAyNDMuNDgyNjUgMjQ0LjgxNTM4IDI0My44MjE1NSAyNDQuNDkwMTkgMjQ0LjE1NjI1IDI0NC4xNTYyNSBDIDI0NC40OTIyOSAyNDMuODIwMjEgMjQ0LjgxMzU3IDI0My40ODQzIDI0NS4xMjUgMjQzLjEyNSBDIDI0NS4yMzE2NyAyNDMuMDAyMzQgMjQ1LjMzMzgxIDI0Mi44NzUyNyAyNDUuNDM3NSAyNDIuNzUgQyAyNDUuNDQyNzYgMjQyLjc0MzYyIDI0NS40MzIyNSAyNDIuNzI1MTMgMjQ1LjQzNzUgMjQyLjcxODc1IEMgMjQ1Ljg0MjQ5IDI0Mi4yMjgzIDI0Ni4yMzY0IDI0MS43MTU3NiAyNDYuNTkzNzUgMjQxLjE4NzUgQyAyNDYuOTM4MTIgMjQwLjY3ODQzIDI0Ny4yNjUzNiAyNDAuMTY2MjIgMjQ3LjU2MjUgMjM5LjYyNSBDIDI0Ny41NzM2MyAyMzkuNjA0NzIgMjQ3LjU4MjY4IDIzOS41ODI4MiAyNDcuNTkzNzUgMjM5LjU2MjUgQyAyNDcuODkxOTcgMjM5LjAxNDggMjQ4LjE1OTMxIDIzOC40NTIzOSAyNDguNDA2MjUgMjM3Ljg3NSBDIDI0OC40MTU1NCAyMzcuODUzMjggMjQ4LjQyODI5IDIzNy44MzQyNiAyNDguNDM3NSAyMzcuODEyNSBDIDI0OC40NDY0NCAyMzcuNzkxMjkgMjQ4LjQ1OTg4IDIzNy43NzEyNSAyNDguNDY4NzUgMjM3Ljc1IEMgMjQ4LjcwOTkyIDIzNy4xNzQ3NiAyNDguOTA2MjggMjM2LjU3MDA4IDI0OS4wOTM3NSAyMzUuOTY4NzUgQyAyNDkuMjczNzUgMjM1LjM5MTM3IDI0OS40MzQ2OCAyMzQuODE3NTQgMjQ5LjU2MjUgMjM0LjIxODc1IEMgMjQ5Ljg1MzA5IDIzMi44NTc0MiAyNTAgMjMxLjQ1MDUzIDI1MCAyMzAgTCAyNTAgMjAgQyAyNTAgOC45MiAyNDEuMDggLTMuMzUzNzk4N2UtMTcgMjMwIDAgTCAyMCAwIHogTSAzNC43ODEyNSAxOS40MDYyNSBMIDIyNS40Njg3NSAxOS40MDYyNSBDIDIyOC4zMDk0NiAxOS40MDYyNSAyMzAuNTkzNzUgMjEuNjkwNTQ0IDIzMC41OTM3NSAyNC41MzEyNSBMIDIzMC41OTM3NSAyMTUuMjUgTCAzNC43ODEyNSAxOS40MDYyNSB6IE0gMTkuNDA2MjUgMzQuNzUgTCAyMTUuMjE4NzUgMjMwLjU5Mzc1IEwgMjQuNTMxMjUgMjMwLjU5Mzc1IEMgMjEuNjkwNTQ0IDIzMC41OTM3NiAxOS40MDYyNSAyMjguMzA5NDYgMTkuNDA2MjUgMjI1LjQ2ODc1IEwgMTkuNDA2MjUgMzQuNzUgeiAiDQogICAgICAgaWQ9InBhdGgzMTk2IiAvPg0KICA8L2c+DQo8L3N2Zz4NCg==",-b.UNICODE_LINE_SEP=String.fromCharCode(8232));return b.UNICODE_LINE_SEP};b.prototype.setThemeAndVariant=function(a,c){this.theme=a;this.themeVariant=c};b.prototype.getTheme=function(){null!=this.theme&&this.theme.setVariant(this.themeVariant);return this.theme};b.prototype.getQuickStyleVals=function(){return this.quickStyleVals};b.prototype.processGeomList=function(a){if(!this.geomListProcessed){this.geomList=new g.mxgraph.io.vsdx.mxVsdxGeometryList(a);if(null!=this.geom)for(a=0;a<this.geom.length;a++)this.geomList.addGeometry(this.geom[a]);-this.geomListProcessed=!0}};b.prototype.parseShapeElem=function(a,c){h.prototype.parseShapeElem.call(this,a,c);var d=a.nodeName;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"ForeignData")){d=function(A,C){for(A=A.firstChild;null!=A;){if(1==A.nodeType){var I=A;if("rel"==I.nodeName.toLowerCase()&&(I=I.getAttribute("r:id"),null!=I&&0!==I.length)){A=C.lastIndexOf("/");var Q="",K="";try{Q=C.substring(0,A),K=C.substring(A,C.length)}catch(L){break}A=c.getRelationship(I,Q+"/_rels"+K+".rels");-if(null!=A){C=A.getAttribute("Target")||"";I=A.getAttribute("Type");A=C.lastIndexOf("/");try{C=C.substring(A+1,C.length)}catch(L){break}return{type:I,target:C}}break}}A=A.nextSibling}};var f=a.ownerDocument.vsdxFileName,k=a.getAttribute("ForeignType"),n=a.getAttribute("CompressionType")||"",q=null;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"Bitmap"))n=n.toLowerCase();else if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"MetaFile"))n="png";else if(function(A,C){return A&&A.equals?-A.equals(C):A===C}(k,"Enhanced Metafile")||function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"EnhMetaFile"))n="png";else if("Object"==k){if(q=d(a,f),0<q.type.indexOf("/oleObject"))if(n=c.getRelationship("rId1","visio/embeddings/_rels/"+q.target+".rels"),null!=n){q=n.getAttribute("Target");k=n.getAttribute("Type");try{var t=q.lastIndexOf("/");q=q.substring(t+1,q.length)}catch(A){return}n="png";q={type:k,target:q}}else return}else return;null==q&&(q=d(a,f));k=q.type;q=q.target;null!=k&&function(A,-C){var I=A.length-C.length;A=A.indexOf(C,I);return-1!==A&&A===I}(k,"image")&&(this.imageData={},(a=c.getMedia(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+q))?(this.imageData.iData=a,function(A,C){var I=A.length-C.length;A=A.indexOf(C,I);return-1!==A&&A===I}(q.toLowerCase(),".bmp")&&(n="jpg"),this.imageData.iType=n):(this.imageData.iData=b.ERROR_IMAGE,this.imageData.iType="svg+xml"))}else(function(A,C){return A&&A.equals?A.equals(C):A===C})(d,g.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&(this.text=-a)};b.prototype.parseSection=function(a){var c=a.getAttribute("N");if(function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(c,"Geometry"))null==this.geom&&(this.geom=[]),this.geom.push(a);else if(function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(c,"Field")){a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var d=0;d<a.length;d++){c=a[d];var f=c.getAttribute("IX")||"";if(0!==f.length)if(null==this.fields&&(this.fields={}),function(I,Q){return I&&I.equals?I.equals(Q):I===Q}("1",-c.getAttribute("Del")))this.fields[f]="";else{for(var k=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(c,"Cell"),n="",q="",t=0;t<k.length;t++){var A=k[t];c=A.getAttribute("N");A=A.getAttribute("V")||A.textContent||"";switch(c){case "Value":n=A;break;case "Format":q=A}}if("esc(0)"==q)this.fields[f]=n;else if(0!==n.length){try{var C=isNaN(n)?new Date(n):new Date(b.VSDX_START_TIME+Math.floor(864E5*parseFloat(n)));q="c"==q?0==C.getHours()+C.getMinutes()+C.getSeconds()+C.getMilliseconds()?"m/d/yyyy":-"m/d/yyyy h:MM:ss tt":"ddddd"==q?"m/d/yyyy":"dddddd"==q?"dddd, mmmm dd, yyyy":"C"==q?"dddd, mmmm dd, yyyy h:MM:ss tt":"T"==q?"h:MM:ss tt":q.replace(/am\/pm/g,"tt").replace(/m/g,"@").replace(/M/g,"m").replace(/@/g,"M");n=Graph.prototype.formatDate(C,"UTC:"+q.replace(RegExp("\\{|\\}","g"),""))}catch(I){}this.fields[f]=n}}}}else h.prototype.parseSection.call(this,a)};b.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};b.prototype.getText=function(){return null!=-this.text?this.text.textContent:null};b.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};b.prototype.getWidth=function(){if(1>this.width&&null!=this.childShapes)try{for(var a=0;a<this.childShapes.entries.length;a++)this.width=Math.max(this.childShapes.entries[a].value.width,this.width)}catch(c){}return 0===this.width&&0<this.height?1:this.width};b.prototype.getHeight=function(){if(1>this.height&&null!=this.childShapes)try{for(var a=0;a<this.childShapes.entries.length;a++)this.height=-Math.max(this.childShapes.entries[a].value.height,this.height)}catch(c){}return 0===this.height&&0<this.width?1:this.height};b.prototype.getRotation=function(){return this.rotation};b.prototype.getStyleMap=function(){return this.styleMap};b.prototype.hasGeom=function(){return!(null==this.geom||0==this.geom.length)};b.prototype.hasGeomList=function(){return null!=this.geomList&&this.geomList.hasGeom()};b.prototype.getPPList=function(a){var c=null;""!=a&&(a=this.getBullet(a),"0"!=a&&(c='<ul style="margin: 0;list-style-type: '+-("4"==a?"square":"disc")+'">'));return c};b.prototype.getTextParagraphFormated=function(a){var c="",d={};d["text-align"]=this.getHorizontalAlign(this.pp,!0);d["margin-left"]=this.getIndentLeft(this.pp);d["margin-right"]=this.getIndentRight(this.pp);d["margin-top"]=this.getSpBefore(this.pp)+"px";d["margin-bottom"]=this.getSpAfter(this.pp)+"px";d["text-indent"]=this.getIndentFirst(this.pp);d["vertical-align"]=this.getAlignVertical();d.direction=this.getTextDirection(this.pp);return c+=this.insertAttributes(a,-d)};b.prototype.getTextCharFormated=function(a){var c="color:"+this.getTextColor(this.cp)+";",d="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",k="direction:"+this.getRtlText(this.cp)+";",n="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",q="line-height:"+this.getSpcLine(this.pp),t=";opacity:"+this.getTextOpacity(this.cp),A=this.getTextPos(this.cp),C=this.getTextCase(this.cp);(function(I,Q){return I&&I.equals?I.equals(Q):-I===Q})(C,"1")?a=a.toUpperCase():function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(C,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(I,Q){return I&&I.equals?I.equals(Q):I===Q})(A,"1")?a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(A,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,-"i"):a;a=this.isUnderline(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;a=this.isSmallCaps(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return'<font style="'+d+f+c+k+n+q+t+'">'+a+"</font>"};b.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(c,d){return c&&c.equals?c.equals(d):c===d})(a,"0")?a="ltr":function(c,d){return c&&c.equals?c.equals(d):-c===d}(a,"1")&&(a="rtl");return a};b.prototype.getSpcLine=function(a){var c=!1;a=this.getSpLine(a);0<a?a*=g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===a?100:100*Math.abs(a),c=!0);return(new String(a)).toString()+(c?"%":"px")};b.prototype.getSpcBefore=function(a){return this.getSpBefore(a)};b.prototype.insertAttributes=function(a,c){if(-1!=a.indexOf(">")){var d=a.indexOf(">"),f=a.substring(d);a=a.substring(0,d);c=' style="'+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(c,":")+'"';return a+-c+f}return a};b.prototype.getRtlText=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.RTL_TEXT,a,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);a=this.getValue(a,"ltr");(function(c,d){return c&&c.equals?c.equals(d):c===d})(a,"0")?a="ltr":function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"1")&&(a="rtl");return a};b.prototype.isBold=function(a){var c=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,-"")||function(d,f){return d&&d.equals?d.equals(f):d===f}(a.toLowerCase(),"themed")||(c=1===(parseInt(a)&1));return c};b.prototype.isItalic=function(a){var c=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,"")||function(d,f){return d&&d.equals?d.equals(f):d===f}(a.toLowerCase(),"themed")||(c=2===(parseInt(a)&2));return c};b.prototype.isUnderline=function(a){var c=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,"")||function(d,f){return d&&-d.equals?d.equals(f):d===f}(a.toLowerCase(),"themed")||(c=4===(parseInt(a)&4));return c};b.prototype.isSmallCaps=function(a){var c=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,"")||function(d,f){return d&&d.equals?d.equals(f):d===f}(a.toLowerCase(),"themed")||(c=8===(parseInt(a)&8));return c};b.prototype.getTextOpacity=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR_TRANS,a,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);-a=this.getValue(a,"0");var c="1";null!=a&&0!==a.length&&(a=1-parseFloat(a),c=(new String(a)).toString());return c};b.prototype.getTextSize=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SIZE,a,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);a=this.getScreenNumericalValue$org_w3c_dom_Element$double(a,12);return""+Math.round(100*a)/100};b.prototype.getAlignVertical=function(){var a=mxConstants.ALIGN_MIDDLE,c=parseInt(this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.VERTICAL_ALIGN),-"1"));0===c?a=mxConstants.ALIGN_TOP:2===c&&(a=mxConstants.ALIGN_BOTTOM);return a};b.prototype.getGeomList=function(){return this.geomList};b.prototype.getLastX=function(){return this.lastX};b.prototype.getLastY=function(){return this.lastY};b.prototype.getLastMoveX=function(){return this.lastMoveX};b.prototype.getLastMoveY=function(){return this.lastMoveY};b.prototype.getLastKnot=function(){return this.lastKnot};b.prototype.setLastX=function(a){this.lastX=a};b.prototype.setLastY=function(a){this.lastY=-a};b.prototype.setLastMoveX=function(a){this.lastMoveX=a};b.prototype.setLastMoveY=function(a){this.lastMoveY=a};b.prototype.setLastKnot=function(a){this.lastKnot=a};b.prototype.getConnections=function(){var a=[];if(this.sections&&this.sections.Connection)for(var c=this.getHeight(),d=this.getWidth(),f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.sections.Connection.elem,"Row"),k=0;k<f.length;k++){for(var n=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f[k]),q,t,A=0;A<n.length;A++){var C=-n[A],I=C.getAttribute("N");C=this.getScreenNumericalValue$org_w3c_dom_Element$double(C,0);"X"==I?q=mxUtils.format(C/d):"Y"==I&&(t=mxUtils.format(1-C/c))}null!=q&&null!=t&&a.push({x:q,y:t})}0==a.length&&this.master&&this.master.masterShape&&(a=this.master.masterShape.getConnections());return a};return b}(g.mxgraph.io.vsdx.Style);m.VSDX_START_TIME=(new Date("1899-12-30T00:00:00Z")).getTime();B.Shape=m;m.__class="com.mxgraph.io.vsdx.Shape"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=-{}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(h){function b(a,c,d,f,k,n){function q(){var I;if(I=2!=a.connectsMap[t.Id])if(I=null!=t.childShapes)I=t.childShapes,null==I.entries&&(I.entries=[]),I=0!=I.entries.length;try{if(1==t.childShapes.entries.length){var Q=t.childShapes.entries[0].value,K=t.fields?Object.values(t.fields).join(""):t.text.textContent,L=Q.fields?Object.values(Q.fields).join(""):Q.text.textContent;K==L&&(I=!1,t.childShapes.entries=[],t.noLabelGroup=!0)}}catch(S){console.log(S)}return I}-var t=this;t.masterShape=null;t.master=null;t.parentHeight=0;t=h.call(this,c,n)||this;t.htmlLabels=!0;t.rootShape=t;t.shapeName=null;t.shapeIndex=0;t.vertex=!0;t.childShapes={};var A=t.getMasterId(),C=t.getShapeMasterId();t.master=null!=A?f[A]?f[A]:null:k;null!=t.master&&(t.masterShape=null==A&&null!=C?t.master.getSubShape(C):t.master.getMasterShape());f=t.getNameU();k=f.lastIndexOf(".");-1!==k&&(f=f.substring(0,k));t.shapeName=f;c=c.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);-null!=c&&0<c.length&&(c=c.item(0),t.childShapes=a.parseShapes(c,t.master,!1));c=t.calcRotation();t.rotation=100*c/100;t.rotation%=360;c=a.getCellIntValue("ThemeIndex",-100);-100===c&&(c=parseInt(t.getValue(t.getCellElement$java_lang_String("ThemeIndex"),"0")));n=function(I,Q){null==I.entries&&(I.entries=[]);for(var K=0;K<I.entries.length;K++)if(null!=I.entries[K].key.equals&&I.entries[K].key.equals(Q)||I.entries[K].key===Q)return I.entries[K].value;return null}(n.getThemes(),c);null==n&&"1"==urlParams.dev&&-console.log("No theme found for index "+c);c=a.getCellIntValue("VariationColorIndex",0);t.setThemeAndVariant(n,c);f=function(I){null==I.entries&&(I.entries=[]);return I.entries}(t.childShapes);for(k=0;k<f.length;k++)A=f[k].getValue(),A.setRootShape(t),null==A.theme&&A.setThemeAndVariant(n,c);t.quickStyleVals=new g.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFillColor"),-"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFillMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFontColor"),"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFontMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleLineColor"),"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleLineMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleShadowColor"),-"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleType"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleVariation"),"0")));null!=t.masterShape?(t.masterShape.processGeomList(null),t.processGeomList(t.masterShape.getGeomList()),0===t.width&&(t.width=t.getScreenNumericalValue$org_w3c_dom_Element$double(t.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0)),0===t.height&&(t.height=t.getScreenNumericalValue$org_w3c_dom_Element$double(t.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),-0))):t.processGeomList(null);t.vertex=d||q()||null!=t.geomList&&(!t.geomList.isNoFill()||1<t.geomList.getGeoCount());t.layerMember=t.getValue(t.getCellElement$java_lang_String("LayerMember"));t.layerMember&&(t.layerMember=t.layerMember.split(";"));return t}__extends(b,h);b.__static_initialize=function(){b.__static_initialized||(b.__static_initialized=!0,b.__static_initializer_0())};b.OFFSET_ARRAY_$LI$=function(){b.__static_initialize();null==b.OFFSET_ARRAY&&(b.OFFSET_ARRAY=["Organizational unit",-"Domain 3D"].slice(0).slice(0));return b.OFFSET_ARRAY};b.arrowSizes_$LI$=function(){b.__static_initialize();null==b.arrowSizes&&(b.arrowSizes=[2,3,5,7,9,22,45]);return b.arrowSizes};b.arrowTypes_$LI$=function(){b.__static_initialize();return b.arrowTypes};b.__static_initializer_0=function(){b.arrowTypes={};(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),0,mxConstants.NONE);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),1,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&-(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),2,"blockThin");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),3,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),4,mxConstants.ARROW_BLOCK);(function(a,c,d){null==-a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),5,mxConstants.ARROW_CLASSIC);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=-d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),10,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),13,mxConstants.ARROW_BLOCK);-(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),14,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||-a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),17,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_CLASSIC);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),-20,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),22,b.ARROW_NO_FILL_MARKER+"diamond");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=-a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),23,"dash");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),24,"ERone");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),25,"ERmandOne");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=-a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),27,"ERmany");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),28,"ERoneToMany");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),29,"ERzeroToMany");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=-a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),30,"ERzeroToOne");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),6,mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),7,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<-a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),8,mxConstants.ARROW_CLASSIC);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),9,"openAsync");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),11,"diamond");(function(a,c,d){null==a.entries&&(a.entries=-[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),12,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),15,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),16,b.ARROW_NO_FILL_MARKER+-mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),18,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&-a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),19,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_CLASSIC);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),21,b.ARROW_NO_FILL_MARKER+"diamond");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),26,"ERmandOne");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<-a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),31,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),32,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),33,b.ARROW_NO_FILL_MARKER+-mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),34,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&-a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),35,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),-36,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),37,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||-a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),38,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),-39,mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),40,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&-a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),41,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),42,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),43,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<-a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),44,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),45,mxConstants.ARROW_OPEN)};b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$=function(){b.__static_initialize();null==b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER&&(b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER={});return b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER};b.prototype.getShapeNode=function(a){var c=this.cellElements;c=c[a]?c[a]:null;return null==c&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):-c};b.prototype.getTextLabel=function(a){var c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.HIDE_TEXT),"0");c="1".equals?"1".equals(c):"1"===c;if(c)return null;c=this.getTextChildren();null==c&&null!=this.masterShape&&(c=this.masterShape.getTextChildren());if(this.htmlLabels){if(null!=c)return this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=this.getAlignVertical(),this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign("0",!1),a||(this.styleMap.overflow=-"width"),this.getHtmlTextContent(c)}else return a=this.getText(),null==a&&null!=this.masterShape?this.masterShape.getText():a;return null};b.prototype.getIndex=function(a){a=a.getAttribute("IX")||"";return 0===a.length?"0":a};b.prototype.initLabels=function(a){this.paragraphs={};for(var c=null,d=null,f=null,k=0;k<a.length;k++){var n=a.item(k);switch(n.nodeName){case "cp":c=this.getIndex(n);break;case "tp":this.getIndex(n);break;case "pp":d=this.getIndex(n);break;case "fld":f=this.getIndex(n);break;-case "#text":n=n.textContent;var q=this.paragraphs;q=q[d]?q[d]:null;null==q?(q=new g.mxgraph.io.vsdx.Paragraph(n,c,d,f),this.paragraphs[d]=q):q.addText(n,c,f)}}};b.prototype.createHybridLabel=function(a){var c=function(q,t){return q[t]?q[t]:null}(this.paragraphs,a);this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign(a,!1);this.styleMap[mxConstants.STYLE_SPACING_LEFT]=this.getIndentLeft(a);this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=this.getIndentRight(a);this.styleMap[mxConstants.STYLE_SPACING_TOP]=-this.getSpBefore(a);this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=this.getSpAfter(a);this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=this.getAlignVertical();this.styleMap.fontColor=this.getTextColor(a);this.styleMap.fontSize=this.getTextSize(a);this.styleMap.fontFamily=this.getTextFont(a);var d=this.isBold(a)?mxConstants.FONT_BOLD:0;d|=this.isItalic(a)?mxConstants.FONT_ITALIC:0;d|=this.isUnderline(a)?mxConstants.FONT_UNDERLINE:0;this.styleMap.fontStyle=(new String(d)).toString();a=c.numValues();-d=null;for(var f=0;f<a;f++){var k=c.getValue(f);if(0===k.length&&null!=this.fields){var n=c.getField(f);null!=n&&(k=function(q,t){return q[t]?q[t]:null}(this.fields,n),null==k&&null!=this.masterShape&&null!=this.masterShape.fields&&(k=function(q,t){return q[t]?q[t]:null}(this.masterShape.fields,n)))}null!=k&&(d=null==d?k:d+k)}return d};b.prototype.getHtmlTextContent=function(a){function c(A){A=g.mxgraph.io.vsdx.mxVsdxUtils.htmlEntities(A);n&&(A="<li>"+A,n=!1);k?(A=A.split("\n"),A[A.length-1]||(A.pop(),-n=!0),A=A.join("</li><li>")):A=A.replace(RegExp("\n","g"),"<br/>").replace(new RegExp(g.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP,"g"),"<br/>");return this.getTextCharFormated(A)}var d="",f=!0,k=!1,n=!1;if(null!=a&&0<a.length)for(var q=0;q<a.length;q++){var t=a.item(q);(function(A,C){return A&&A.equals?A.equals(C):A===C})(t.nodeName,"cp")?this.cp=this.getIndex(t):function(A,C){return A&&A.equals?A.equals(C):A===C}(t.nodeName,"tp")?this.tp=this.getIndex(t):function(A,C){return A&&A.equals?A.equals(C):-A===C}(t.nodeName,"pp")?(this.pp=this.getIndex(t),k&&(d+="</li></ul>"),f?f=!1:d+="</p>",d+=this.getTextParagraphFormated("<p>"),t=this.getPPList(this.pp),n=k=null!=t,d+=k?t:""):function(A,C){return A&&A.equals?A.equals(C):A===C}(t.nodeName,"fld")?(this.fld=this.getIndex(t),t=null,null!=this.fields&&(t=function(A,C){return A[C]?A[C]:null}(this.fields,this.fld)),null==t&&null!=this.masterShape&&null!=this.masterShape.fields&&(t=function(A,C){return A[C]?A[C]:null}(this.masterShape.fields,this.fld)),-null!=t&&(d+=c.call(this,t))):function(A,C){return A&&A.equals?A.equals(C):A===C}(t.nodeName,"#text")&&(t=t.textContent,d+=c.call(this,t))}k&&(d+="</li></ul>");return g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(d+(f?"":"</p>"),"div","font-size: 1px")};b.prototype.isConnectorBigNameU=function(a){return function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"60 degree single")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"45 degree single")||function(c,d,f){void 0===-f&&(f=0);return c.substr(f,d.length)===d}(a,"45 degree double")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"60 degree double")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"45 degree tail")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"60 degree tail")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"45 degree tail")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"60 degree tail")||-function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Flexi-arrow 2")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Flexi-arrow 1")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Flexi-arrow 3")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Double flexi-arrow")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Fancy arrow")};b.prototype.isVertex=function(){return this.vertex};b.prototype.getOriginPoint=-function(a,c){var d=this.getPinX(),f=this.getPinY(),k=this.getLocPinY(),n=this.getLocPinX(),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);d-=n;a-=f+(t-k);return!c||k===t/2&&n===q/2||0===this.rotation?new mxPoint(d,a):(c=q/2-n,k-=t/2,t=Math.cos((360-this.rotation)*Math.PI/180),n=Math.sin((360-this.rotation)*-Math.PI/180),new mxPoint(d+c-(c*t-k*n),c*n+k*t+a-k))};b.prototype.getDimensions=function(){var a=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),c=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return new mxPoint(0===a&&0<c?1:a,0===c&&0<a?1:c)};b.prototype.getPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.PIN_X),-0)};b.prototype.getPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.PIN_Y),0)};b.prototype.getLocPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_X),0)};b.prototype.getLocPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_Y),0)};b.prototype.getOpacity=-function(a){this.isGroup();a=this.getValueAsDouble(this.getCellElement$java_lang_String(a),0);a=Math.max(100-100*a,0);return a=Math.min(a,100)};b.prototype.getGradient=function(){if(function(d,f){return d&&d.equals?d.equals(f):d===f}("1",this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),"0"))){var a=function(d,f){return d[f]?d[f]:null}(this.sections,"FillGradient");if(null!=a){var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a.elem,-"Row");a=this.getColor(a.getIndexedCell(c[c.length-1].getAttribute("IX"),"GradientStopColor"));if(null!=a&&0!==a.length)return a}}a="";c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");25<=parseInt(c)?a=this.getColor(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND)):(c=this.getTheme(),null!=c&&(c=c.getFillGraientColor(this.getQuickStyleVals()),null!=c&&(a=c.toHexStr())));return a};b.prototype.getGradientDirection=-function(){var a="",c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");(function(d,f){return d&&d.equals?d.equals(f):d===f})(c,"25")?a=mxConstants.DIRECTION_EAST:function(d,f){return d&&d.equals?d.equals(f):d===f}(c,"27")?a=mxConstants.DIRECTION_WEST:function(d,f){return d&&d.equals?d.equals(f):d===f}(c,"28")?a=mxConstants.DIRECTION_SOUTH:function(d,f){return d&&d.equals?d.equals(f):d===f}(c,"30")&&(a=mxConstants.DIRECTION_NORTH);return a};b.prototype.calcRotation=-function(){var a=parseFloat(this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.ANGLE),"0"));a=180*a/Math.PI;return 360-a%360*100/100};b.prototype.propagateRotation=function(a){this.rotation+=a;this.rotation%=360;this.rotation=100*this.rotation/100};b.prototype.getTopSpacing=function(){return 100*(this.getTextTopMargin()/2-2.8)/100};b.prototype.getBottomSpacing=function(){return 100*(this.getTextBottomMargin()/2-2.8)/100};b.prototype.getLeftSpacing=function(){return 100*-(this.getTextLeftMargin()/2-2.8)/100};b.prototype.getRightSpacing=function(){return 100*(this.getTextRightMargin()/2-2.8)/100};b.prototype.getLabelRotation=function(){var a=!0,c=this.calcRotation(),d=parseFloat(this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),"0"));d=180*d/Math.PI;d-=c;45>Math.abs(d)||270<Math.abs(d)||(a=!1);return a};b.prototype.getHyperlink=function(){var a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("Address",-null,"Hyperlink");a=this.getValue(a,"");var c=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("SubAddress",null,"Hyperlink");c=this.getValue(c,"");return{extLink:a,pageLink:c}};b.prototype.getProperties=function(){var a=[];if(this.sections&&this.sections.Property)for(var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.sections.Property.elem,"Row"),d=0;d<c.length;d++){var f=c[d],k=f.getAttribute("N"),n=null;f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f);-for(var q=0;q<f.length;q++){var t=f[q],A=t.getAttribute("N");"Value"==A?n=t.getAttribute("V"):"Label"==A&&(k=t.getAttribute("V"))}null!=n&&a.push({key:k,val:n})}return a};b.prototype.getStyleFromShape=function(){this.styleMap[g.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();this.rotation=Math.round(this.rotation);0!==this.rotation&&(this.styleMap[mxConstants.STYLE_ROTATION]=""+this.rotation);var a=this.getFillColor();(function(n,q){return n&&n.equals?n.equals(q):n===q})(a,"")?this.styleMap[mxConstants.STYLE_FILLCOLOR]=-"none":this.styleMap[mxConstants.STYLE_FILLCOLOR]=a;var c=this.getId();this.styleDebug("ID = "+c+" , Fill Color = "+a);a=this.getGradient();(function(n,q){return n&&n.equals?n.equals(q):n===q})(a,"")?this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]="none":(this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]=a,a=this.getGradientDirection(),function(n,q){return n&&n.equals?n.equals(q):n===q}(a,"")||function(n,q){return n&&n.equals?n.equals(q):n===q}(a,mxConstants.DIRECTION_SOUTH)||(this.styleMap[mxConstants.STYLE_GRADIENT_DIRECTION]=-a));a=this.getOpacity(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_FILL_OPACITY]=""+a);a=this.getOpacity(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_STROKE_OPACITY]=""+a);a=this.getForm();a.hasOwnProperty(mxConstants.STYLE_SHAPE)&&function(n,q,t){void 0===t&&(t=0);return n.substr(t,q.length)===q}(function(n,q){return n[q]?n[q]:null}(a,mxConstants.STYLE_SHAPE),"image;")&&(this.styleMap[mxConstants.STYLE_WHITE_SPACE]=-"wrap");for(var d in a)this.styleMap[d]=a[d];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",d=this.getDashPattern(),null!=d&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=d));d=this.getStrokeColor();var f=this.getStrokeTransparency();this.styleDebug("ID = "+c+" , Color = "+d+" , stroke transparency = "+f);(function(n,q){return n&&n.equals?n.equals(q):n===q})(d,"")||1===f||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=d);c=Math.round(this.getLineWidth())|0;1!==c&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=-""+c);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=g.mxgraph.io.vsdx.mxVsdxConstants.TRUE);c=Math.round(this.getTopSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+c);c=Math.round(this.getBottomSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+c);c=Math.round(this.getLeftSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+c);c=Math.round(this.getRightSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+c);a=-this.getDirection(a);a!==mxConstants.DIRECTION_EAST&&(this.styleMap[mxConstants.STYLE_DIRECTION]=a);a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FLIP_X),"0");c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FLIP_Y),"0");(function(n,q){return n&&n.equals?n.equals(q):n===q})("1",a)&&(this.styleMap[mxConstants.STYLE_FLIPH]="1");(function(n,q){return n&&n.equals?n.equals(q):n===q})("1",c)&&(this.styleMap[mxConstants.STYLE_FLIPV]=-"1");try{var k=this.getConnections();a=[];for(c=0;c<k.length;c++)a.push("["+k[c].x+","+k[c].y+",0]");this.styleMap.points="["+a.join(",")+"]"}catch(n){console.log(n)}this.resolveCommonStyles();return this.styleMap};b.prototype.getDashPattern=function(){var a=null,c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");(c&&c.equals?c.equals("Themed"):"Themed"===c)?(c=this.getTheme(),null!=c&&(a=this.isVertex()?c.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):-c.getConnLineDashPattern(this.getQuickStyleVals()))):a=B.Style.getLineDashPattern(parseInt(c));if(null!=a&&0!=a.length){c="";for(var d=0;d<a.length;d++)c=c.concat(a[d].toFixed(2)+" ");return c.trim()}return null};b.prototype.isDashed=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");if(function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Themed")){if(a=this.getTheme(),null!=a)return this.isVertex()?a.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):-a.isConnLineDashed(this.getQuickStyleVals())}else if(!function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")&&!function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"1"))return!0;return!1};b.prototype.getLineWidth=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),"1"),c=1;try{var d=a&&a.equals?a.equals("Themed"):"Themed"===a;if(d){var f=this.getTheme();null!=f&&(c=(this.isVertex()?f.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):-f.getConnLineWidth(this.getQuickStyleVals()))/1E4)}else c=parseFloat(a),c=this.getScreenNumericalValue$double(c)}catch(k){}1>c&&(c*=2);return c};b.prototype.getStartArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE),"4");try{var c=4;var d=a&&a.equals?a.equals("Themed"):"Themed"===a;if(d){var f=this.getTheme();null!=f&&(c=this.isVertex()?f.getStartSize(this.getQuickStyleVals()):f.getConnStartSize(this.getQuickStyleVals()))}else c=-parseFloat(a);return b.arrowSizes_$LI$()[c]}catch(k){}return 4};b.prototype.getFinalArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE),"4");try{var c=4;var d=a&&a.equals?a.equals("Themed"):"Themed"===a;if(d){var f=this.getTheme();null!=f&&(c=this.isVertex()?f.getEndSize(this.getQuickStyleVals()):f.getConnEndSize(this.getQuickStyleVals()))}else c=parseFloat(a);return b.arrowSizes_$LI$()[c]}catch(k){}return 4};b.prototype.getRounding=-function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.ROUNDING),"0");var c=a;c="Themed".equals?"Themed".equals(c):"Themed"===c;c&&(a="0");return parseFloat(a)};b.prototype.isShadow=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN),"0");return function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Themed")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")?!1:!0};b.prototype.getEdgeStyle$java_util_Map=-function(a){var c={};(function(d,f){return d&&d.equals?d.equals(f):d===f})(function(d,f){return d[f]?d[f]:null}(a,mxConstants.STYLE_SHAPE),"mxgraph.lean_mapping.electronic_info_flow_edge")?c[mxConstants.STYLE_EDGE]=mxConstants.NONE:c[mxConstants.STYLE_EDGE]=mxConstants.EDGESTYLE_ELBOW;return c};b.prototype.getEdgeStyle=function(a){if(null!=a&&a instanceof Object||null===a)return this.getEdgeStyle$java_util_Map(a);if(void 0===a)return this.getEdgeStyle$();throw Error("invalid overload");};b.prototype.getMasterId=-function(){return this.shape.hasAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER)?this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER):null};b.prototype.getShapeMasterId=function(){return this.shape.hasAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE)?this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE):null};b.prototype.isGroup=function(){var a=(a=this.shape.getAttribute("Type"))&&a.equals?a.equals("Group"):"Group"===a;return a};b.getType=function(a){return a.getAttribute("Type")};-b.prototype.getMaster=function(){return this.master};b.prototype.getNameU=function(){var a=this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||"",c;(c=null==a)||(c=(c=a)&&c.equals?c.equals(""):""===c);c&&null!=this.masterShape&&(a=this.masterShape.getNameU());return a};b.prototype.getName=function(){var a=this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME),c;(c=null==a)||(c=(c=a)&&c.equals?c.equals(""):""===c);c&&null!=this.masterShape&&(a=this.masterShape.getName());return a};-b.prototype.getMasterName=function(){return this.shapeName};b.prototype.setLabelOffset=function(a,c){var d="",f="";this.shape.hasAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(d=this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));null!=this.getMaster()&&null!=this.getMaster().getMasterElement()&&this.getMaster().getMasterElement().hasAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(f=this.getMaster().getMasterElement().getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));-if(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(d,"Organizational unit")||function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(f,"Organizational unit")){var k=this.shape.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;d="0.0";f=null;f="-0.4";null!=k&&(d=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent,f=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),-f=f.hasAttribute("F")?f.getAttribute("F"):f.textContent);k=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");(function(A,C){return A&&A.equals?A.equals(C):A===C})(d,"Inh")&&(d="0.0");(function(A,C){return A&&A.equals?A.equals(C):A===C})(f,"Inh")&&(f="-0.4");-1!=f.indexOf("txtHeight")&&(f="-0.4");c=c.split(";");for(var n="",q=0;q<c.length;q++){var t=c[q];t=t.trim();(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C})(t,"tabHeight=")&&-(n=t.split("tabHeight=").join(""))}(function(A,C){return A&&A.equals?A.equals(C):A===C})(n,"")&&(n="20");c=parseFloat(n);d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f-c/2);a.getGeometry().offset=d}else if(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(d,"Domain 3D")||function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(f,"Domain 3D")){k=this.shape.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;-d="0.0";f=null;f="-0.4";null!=k&&(d=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.getAttribute("F")||"",f=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),f=f.getAttribute("F")||"");k=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(d,""))d="0.0";if(function(A,C){return A&&A.equals?A.equals(C):-A===C}(f,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(f,""))f="-0.4";-1!=f.indexOf("txtHeight")&&(f="-0.4");d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f);a.getGeometry().offset=d}};b.prototype.getForm=function(){var a={};if(this.isVertex())try{var c=b.getType(this.getShape());this.styleDebug("shape type = "+c);if(null!=this.imageData||function(L,S){return L&&L.equals?L.equals(S):L===S}(g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,c)&&null!=this.masterShape&&-null!=this.masterShape.imageData){var d=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var f=function(L,S){return L[S]?L[S]:null}(d,"iType"),k=function(L,S){return L[S]?L[S]:null}(d,"iData"),n=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),q=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),t=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),-"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),I=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=n||0!=q||t!=C||A!=I?this.toBeCroppedImg={imgOffsetX:n,imgOffsetY:q,imgWidth:t,imgHeight:A,width:C,height:I,iType:f,iData:k}:a.image="data:image/"+f+","+k;return a}var Q=this.parseGeom();if(function(L,S){return L&&L.equals?L.equals(S):L===S}(Q,""))return this.styleDebug("No geom found"),a;var K=Graph.compress(Q);a[mxConstants.STYLE_SHAPE]=-"stencil("+K+")"}catch(L){}else return this.getEdgeStyle();return a};b.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Off-page reference")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Lined/Shaded process")?!0:!1};b.prototype.isExternal_process=function(){var a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};b.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+-this.shapeName);if(null!=a&&!function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")&&!function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"")){if(function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};b.prototype.isSubproces=function(){var a=-(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};b.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};b.prototype.getChildShapes=function(){return this.childShapes};b.prototype.setChildShapes=function(a){this.childShapes=a};b.prototype.isDisplacedLabel=function(){var a=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),c=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),d=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,-"F",""),f=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(k,n){return k&&k.equals?k.equals(n):k===n}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F","");if(""===c||function(k,n){return k&&k.equals?k.equals(n):k===n}(c.toLowerCase(),"inh"))c=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===d||function(k,n){return k&&k.equals?k.equals(n):-k===n}(d.toLowerCase(),"inh"))d=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F","");if(""===f||function(k,n){return k&&k.equals?k.equals(n):k===n}(f.toLowerCase(),"inh"))f=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","")}return function(k,n){return k&&k.equals?k.equals(n):k===n}(a.toLowerCase(),"width*0.5")&&function(k,n){return k&&k.equals?k.equals(n):k===n}(c.toLowerCase(),"height*0.5")&&function(k,n){return k&&k.equals?k.equals(n):-k===n}(d.toLowerCase(),"width*1")&&function(k,n){return k&&k.equals?k.equals(n):k===n}(f.toLowerCase(),"height*1")||!(function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(a.toLowerCase(),"width*")&&function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(c.toLowerCase(),"height*")&&function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(d.toLowerCase(),"width*")&&function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(f.toLowerCase(),"height*")||function(k,-n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(a.toLowerCase(),"controls.row_")||function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(c.toLowerCase(),"controls.row_"))?!1:!0};b.prototype.isVerticalLabel=function(){var a=this.getAttribute("TextDirection","V","");a||null==this.masterShape||(a=this.masterShape.getAttribute("TextDirection","V",""));return"1"==a};b.prototype.isRotatedLabel=function(){if(this.isVerticalLabel())return!0;var a=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,-"V","");null!=this.masterShape&&function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"")&&(a=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,"V",""));return function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0.0")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"")?!1:!0};b.prototype.setRootShape=function(a){this.rootShape=a};b.prototype.getRootShape=function(){return this.rootShape};b.prototype.getStartXY=-function(a){var c=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X),0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_Y),0)))/100);return new mxPoint(c,a)};b.prototype.getEndXY=function(a){var c=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.END_X),-0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.END_Y),0)))/100);return new mxPoint(c,a)};b.prototype.getRoutingPoints=function(a,c,d){return null!=this.geomList?this.geomList.getRoutingPoints(a,c,d):null};b.prototype.getControlPoints=function(a){var c=this.getStartXY(a);a=this.getEndXY(a);var d=[];if(null!=this.shape){var f=this.shape.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.GEOM);-if(0<f.length&&(f=f.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.NURBS_TO).item(0).getElementsByTagName("E").item(0),null!=f)){f=f.getAttribute("F")||"";f=f.replace(RegExp("NURBS\\(","g"),"");f=f.replace(RegExp("\\)","g"),"");f=f.replace(RegExp(",","g")," ");f=f.replace(RegExp("\\s\\s","g")," ");f=f.split(" ");for(var k=f.length,n=[];0<k--;)n.push(0);for(k=0;k<f.length;k++)n[k]=parseFloat(f[k]);for(k=2;k+4<f.length;k+=4){var q=new mxPoint,t=n[k+3];q.x=Math.floor(Math.round(100*(c.x+-Math.min(100,Math.abs(a.x-c.x))*n[k+2]))/100);q.y=Math.floor(Math.round(100*(c.y-100*t))/100);d.push(q)}return d}}return null};b.prototype.getStyleFromEdgeShape=function(a){this.styleMap[g.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();a=this.getForm();if(null!=a&&!function(d,f){return d&&d.equals?d.equals(f):d===f}(a,""))for(var c in a)this.styleMap[c]=a[c];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",c=this.getDashPattern(),null!=c&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=-c));c=this.getEdgeMarker(!0);null!=c&&(function(d,f,k){void 0===k&&(k=0);return d.substr(k,f.length)===f}(c,b.ARROW_NO_FILL_MARKER)&&(c=c.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_STARTFILL]="0"),this.styleMap[mxConstants.STYLE_STARTARROW]=c);c=this.getEdgeMarker(!1);null!=c&&(function(d,f,k){void 0===k&&(k=0);return d.substr(k,f.length)===f}(c,b.ARROW_NO_FILL_MARKER)&&(c=c.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_ENDFILL]="0"),this.styleMap[mxConstants.STYLE_ENDARROW]=-c);c=Math.round(this.getStartArrowSize())|0;6!==c&&(this.styleMap[mxConstants.STYLE_STARTSIZE]=""+c);c=Math.round(this.getFinalArrowSize())|0;6!==c&&(this.styleMap[mxConstants.STYLE_ENDSIZE]=""+c);c=Math.round(this.getLineWidth())|0;1!==c&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+c);c=this.getStrokeColor();(function(d,f){return d&&d.equals?d.equals(f):d===f})(c,"")||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=c);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=g.mxgraph.io.vsdx.mxVsdxConstants.TRUE);-this.isConnectorBigNameU(this.getNameU())&&(this.styleMap[mxConstants.STYLE_SHAPE]=mxConstants.SHAPE_ARROW,c=this.getFillColor(),function(d,f){return d&&d.equals?d.equals(f):d===f}(c,"")||(this.styleMap[mxConstants.STYLE_FILLCOLOR]=c));c=Math.round(this.getTopSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+c;c=Math.round(this.getBottomSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+c;c=Math.round(this.getLeftSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+-c;c=Math.round(this.getRightSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+c;c=this.getAlignVertical();this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=c;this.styleMap.html="1";this.resolveCommonStyles();return this.styleMap};b.prototype.resolveCommonStyles=function(){var a=this.getTextBkgndColor(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND));var c=a&&a.equals?a.equals(""):""===a;c||"1"!=this.getValue(this.getCellElement$java_lang_String("TextBkgndTrans"),-"0")&&(this.styleMap[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]=a);this.styleMap[mxConstants.STYLE_ROUNDED]=0<this.getRounding()?g.mxgraph.io.vsdx.mxVsdxConstants.TRUE:g.mxgraph.io.vsdx.mxVsdxConstants.FALSE;return this.styleMap};b.prototype.getEdgeMarker=function(a){var c=this.getValue(this.getCellElement$java_lang_String(a?g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW:g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW),"0"),d=0;try{if(function(k,n){return k&&k.equals?k.equals(n):k===n}(c,"Themed")){var f=-this.getTheme();null!=f&&(d=this.isVertex()?f.getEdgeMarker(a,this.getQuickStyleVals()):f.getConnEdgeMarker(a,this.getQuickStyleVals()))}else d=parseInt(c)}catch(k){}a=function(k,n){null==k.entries&&(k.entries=[]);for(var q=0;q<k.entries.length;q++)if(null!=k.entries[q].key.equals&&k.entries[q].key.equals(n)||k.entries[q].key===n)return k.entries[q].value;return null}(b.arrowTypes_$LI$(),d);0<d&&null==a&&(a=function(k,n){null==k.entries&&(k.entries=[]);for(var q=0;q<k.entries.length;q++)if(null!=-k.entries[q].key.equals&&k.entries[q].key.equals(n)||k.entries[q].key===n)return k.entries[q].value;return null}(b.arrowTypes_$LI$(),1));return a};b.prototype.getCellElement$java_lang_String=function(a){var c=h.prototype.getCellElement$java_lang_String.call(this,a);return null==c&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):c};b.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(a,c,d){var f=h.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String.call(this,-a,c,d);return null==f&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,c,d):f};b.prototype.getCellElement=function(a,c,d){if("string"!==typeof a&&null!==a||"string"!==typeof c&&null!==c||"string"!==typeof d&&null!==d){if("string"!==typeof a&&null!==a||void 0!==c||void 0!==d)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,c,d)};b.prototype.createLabelSubShape=-function(a,c){var d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),f=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),d/2),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),-f/2),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),k),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),n),A=this.getValueAsDouble(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),C=this.getTextLabel(1>d||1>f);if(null!=C&&0!==C.length){var I=mxUtils.clone(this.getStyleMap())||{};I[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;I[mxConstants.STYLE_STROKECOLOR]=-mxConstants.NONE;I[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;I.hasOwnProperty("align")||(I.align="center");I.hasOwnProperty("verticalAlign")||(I.verticalAlign="middle");I.hasOwnProperty("whiteSpace")||(I.whiteSpace="wrap");delete I.shape;delete I.image;this.isVerticalLabel()&&(A+=Math.PI+.01,I.horizontal="0");var Q=this.getRotation();0!==A&&(A=360-180*A/Math.PI,A=Math.round((A+Q)%360*100)/100,0!==A&&(I.rotation=""+A));I="text;"+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(I,"=");n=c.getGeometry().height--(t+f-n);k=q-k;0<Q&&(q=new mxGeometry(k,n,d,f),k=c.getGeometry(),g.mxgraph.online.Utils.rotatedGeometry(q,Q,k.width/2,k.height/2),k=q.x,n=q.y);return a.insertVertex(c,null,C,Math.round(100*k)/100,Math.round(100*n)/100,Math.round(100*d)/100,Math.round(100*f)/100,I+";html=1;")}return null};b.prototype.getLblEdgeOffset=function(a,c){if(null!=c&&1<c.length){var d=new mxCellState;d.absolutePoints=c;a.updateEdgeBounds(d);a=a.getPoint(d);d=c[0];var f=c[c.length-1];c=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),-this.getWidth());var k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),-0),A=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0);f=(this.getHeight()-(d.y-f.y))/2+d.y-a.y-(A-q+k/2);a=t-n+c/2+(d.x-a.x);return 1E11<Math.abs(a)?null:new mxPoint(Math.floor(Math.round(100*a)/100),Math.floor(Math.round(100*f)/100))}return null};b.prototype.getShapeIndex=function(){return this.shapeIndex};b.prototype.setShapeIndex=function(a){this.shapeIndex=a};return b}(g.mxgraph.io.vsdx.Shape);m.__static_initialized=!1;m.ARROW_NO_FILL_MARKER=-"0";m.maxDp=2;m.USE_SHAPE_MATCH=!1;m.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';B.VsdxShape=m;m.__class="com.mxgraph.io.vsdx.VsdxShape"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){var B=function(){function m(){}m.__static_initialize=function(){m.__static_initialized||(m.__static_initialized=!0,m.__static_initializer_0())};m.CA_$LI$=function(){m.__static_initialize();null==m.CA&&(m.CA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""));return m.CA};m.IA_$LI$=function(){m.__static_initialize();if(null==m.IA){for(var h=256,b=[];0<h--;)b.push(0);m.IA=b}return m.IA};m.__static_initializer_0=function(){for(var h=m.IA_$LI$(),-b=0;b<h.length;b++)h[b]=-1;h=0;for(b=m.CA_$LI$().length;h<b;h++)m.IA_$LI$()[m.CA_$LI$()[h].charCodeAt(0)]=h;m.IA_$LI$()[61]=0};m.encodeToChar=function(h,b,a){var c=null!=h?h.length-b:0;if(0===c)return[];var d=3*(c/3|0),f=((c-1)/3|0)+1<<2;f+=a?((f-1)/76|0)<<1:0;for(var k=Array(f),n=b,q=0,t=0;n<d+b;){var A=(h[n++]&255)<<16|(h[n++]&255)<<8|h[n++]&255;k[q++]=m.CA_$LI$()[A>>>18&63];k[q++]=m.CA_$LI$()[A>>>12&63];k[q++]=m.CA_$LI$()[A>>>6&63];k[q++]=m.CA_$LI$()[A&63];a&&19===++t&&q<f-2&&(k[q++]="\r",k[q++]=-"\n",t=0)}a=c-d;0<a&&(A=(h[d+b]&255)<<10|(2===a?(h[c+b-1]&255)<<2:0),k[f-4]=m.CA_$LI$()[A>>12],k[f-3]=m.CA_$LI$()[A>>>6&63],k[f-2]=2===a?m.CA_$LI$()[A&63]:"=",k[f-1]="=");return k};m.decode$char_A=function(h){var b=null!=h?h.length:0;if(0===b)return[];for(var a=0,c=0;c<b;c++)0>m.IA_$LI$()[h[c].charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;var d=0;for(c=b;1<c&&0>=m.IA_$LI$()[h[--c].charCodeAt(0)];)61==function(q){return null==q.charCodeAt?q:q.charCodeAt(0)}(h[c])&&d++;b=(6*(b-a)>>3)-d;a=function(q){for(var t=-[];0<q--;)t.push(0);return t}(b);for(var f=d=0;f<b;){for(var k=c=0;4>k;k++){var n=m.IA_$LI$()[h[d++].charCodeAt(0)];0<=n?c|=n<<18-6*k:k--}a[f++]=c>>16|0;f<b&&(a[f++]=c>>8|0,f<b&&(a[f++]=c|0))}return a};m.decode=function(h){if(null!=h&&h instanceof Array&&(0==h.length||null==h[0]||"string"===typeof h[0])||null===h)return g.mxgraph.online.mxBase64.decode$char_A(h);if(null!=h&&h instanceof Array&&(0==h.length||null==h[0]||"number"===typeof h[0])||null===h)return g.mxgraph.online.mxBase64.decode$byte_A(h);-if("string"===typeof h||null===h)return g.mxgraph.online.mxBase64.decode$java_lang_String(h);throw Error("invalid overload");};m.decodeFast$char_A=function(h){var b=h.length;if(0===b)return[];for(var a=0,c=b-1;a<c&&0>m.IA_$LI$()[h[a].charCodeAt(0)];)a++;for(;0<c&&0>m.IA_$LI$()[h[c].charCodeAt(0)];)c--;var d=61==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h[c])?61==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h[c-1])?2:1:0,f=c-a+1,k=76<b?(13==function(C){return null==C.charCodeAt?-C:C.charCodeAt(0)}(h[76])?f/78|0:0)<<1:0;f=(6*(f-k)>>3)-d;b=function(C){for(var I=[];0<C--;)I.push(0);return I}(f);for(var n=0,q=0,t=3*(f/3|0);n<t;){var A=m.IA_$LI$()[h[a++].charCodeAt(0)]<<18|m.IA_$LI$()[h[a++].charCodeAt(0)]<<12|m.IA_$LI$()[h[a++].charCodeAt(0)]<<6|m.IA_$LI$()[h[a++].charCodeAt(0)];b[n++]=A>>16|0;b[n++]=A>>8|0;b[n++]=A|0;0<k&&19===++q&&(a+=2,q=0)}if(n<f){for(k=A=0;a<=c-d;k++)A|=m.IA_$LI$()[h[a++].charCodeAt(0)]<<18-6*k;for(h=16;n<f;h-=8)b[n++]=A>>h|0}return b};m.decodeFast=function(h){if(null!=-h&&h instanceof Array&&(0==h.length||null==h[0]||"string"===typeof h[0])||null===h)return g.mxgraph.online.mxBase64.decodeFast$char_A(h);if(null!=h&&h instanceof Array&&(0==h.length||null==h[0]||"number"===typeof h[0])||null===h)return g.mxgraph.online.mxBase64.decodeFast$byte_A(h);if("string"===typeof h||null===h)return g.mxgraph.online.mxBase64.decodeFast$java_lang_String(h);throw Error("invalid overload");};m.encodeToByte=function(h,b){var a=null!=h?h.length:0;if(0===a)return[];for(var c=3*(a/-3|0),d=((a-1)/3|0)+1<<2,f=d+=b?((d-1)/76|0)<<1:0,k=[];0<f--;)k.push(0);for(var n=0,q=0,t=0;n<c;)f=(h[n++]&255)<<16|(h[n++]&255)<<8|h[n++]&255,k[q++]=m.CA_$LI$()[f>>>18&63].charCodeAt(0),k[q++]=m.CA_$LI$()[f>>>12&63].charCodeAt(0),k[q++]=m.CA_$LI$()[f>>>6&63].charCodeAt(0),k[q++]=m.CA_$LI$()[f&63].charCodeAt(0),b&&19===++t&&q<d-2&&(k[q++]=13,k[q++]=10,t=0);b=a-c;0<b&&(f=(h[c]&255)<<10|(2===b?(h[a-1]&255)<<2:0),k[d-4]=m.CA_$LI$()[f>>12].charCodeAt(0),k[d-3]=m.CA_$LI$()[f>>>6&63].charCodeAt(0),k[d-2]=-2===b?m.CA_$LI$()[f&63].charCodeAt(0):61,k[d-1]=61);return k};m.decode$byte_A=function(h){for(var b=h.length,a=0,c=0;c<b;c++)0>m.IA_$LI$()[h[c]&255]&&a++;if(0!==(b-a)%4)return null;var d=0;for(c=b;1<c&&0>=m.IA_$LI$()[h[--c]&255];)61==h[c]&&d++;c=b=(6*(b-a)>>3)-d;for(a=[];0<c--;)a.push(0);for(var f=d=0;f<b;){for(var k=c=0;4>k;k++){var n=m.IA_$LI$()[h[d++]&255];0<=n?c|=n<<18-6*k:k--}a[f++]=c>>16|0;f<b&&(a[f++]=c>>8|0,f<b&&(a[f++]=c|0))}return a};m.decodeFast$byte_A=function(h){var b=h.length;if(0===-b)return[];for(var a=0,c=b-1;a<c&&0>m.IA_$LI$()[h[a]&255];)a++;for(;0<c&&0>m.IA_$LI$()[h[c]&255];)c--;var d=61==h[c]?61==h[c-1]?2:1:0,f=c-a+1,k=76<b?(13==h[76]?f/78|0:0)<<1:0,n=f=(6*(f-k)>>3)-d;for(b=[];0<n--;)b.push(0);for(var q=n=0,t=3*(f/3|0);n<t;){var A=m.IA_$LI$()[h[a++]]<<18|m.IA_$LI$()[h[a++]]<<12|m.IA_$LI$()[h[a++]]<<6|m.IA_$LI$()[h[a++]];b[n++]=A>>16|0;b[n++]=A>>8|0;b[n++]=A|0;0<k&&19===++q&&(a+=2,q=0)}if(n<f){for(k=A=0;a<=c-d;k++)A|=m.IA_$LI$()[h[a++]]<<18-6*k;for(h=16;n<f;h-=8)b[n++]=A>>-h|0}return b};m.encodeToString=function(h,b,a){return m.encodeToChar(h,b,a).join("")};m.decode$java_lang_String=function(h){var b=null!=h?h.length:0;if(0===b)return[];for(var a=0,c=0;c<b;c++)0>m.IA_$LI$()[h.charAt(c).charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;var d=0;for(c=b;1<c&&0>=m.IA_$LI$()[h.charAt(--c).charCodeAt(0)];)61==function(q){return null==q.charCodeAt?q:q.charCodeAt(0)}(h.charAt(c))&&d++;b=(6*(b-a)>>3)-d;a=function(q){for(var t=[];0<q--;)t.push(0);return t}(b);for(var f=d=0;f<b;){for(var k=-c=0;4>k;k++){var n=m.IA_$LI$()[h.charAt(d++).charCodeAt(0)];0<=n?c|=n<<18-6*k:k--}a[f++]=c>>16|0;f<b&&(a[f++]=c>>8|0,f<b&&(a[f++]=c|0))}return a};m.decodeFast$java_lang_String=function(h){var b=h.length;if(0===b)return[];for(var a=0,c=b-1;a<c&&0>m.IA_$LI$()[function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(a))&255];)a++;for(;0<c&&0>m.IA_$LI$()[function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(c))&255];)c--;var d=61==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(c))?-61==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(c-1))?2:1:0,f=c-a+1,k=76<b?(13==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(76))?f/78|0:0)<<1:0;f=(6*(f-k)>>3)-d;b=function(C){for(var I=[];0<C--;)I.push(0);return I}(f);for(var n=0,q=0,t=3*(f/3|0);n<t;){var A=m.IA_$LI$()[h.charAt(a++).charCodeAt(0)]<<18|m.IA_$LI$()[h.charAt(a++).charCodeAt(0)]<<12|m.IA_$LI$()[h.charAt(a++).charCodeAt(0)]<<6|m.IA_$LI$()[h.charAt(a++).charCodeAt(0)];b[n++]=A>>16|0;b[n++]=A>>-8|0;b[n++]=A|0;0<k&&19===++q&&(a+=2,q=0)}if(n<f){for(k=A=0;a<=c-d;k++)A|=m.IA_$LI$()[h.charAt(a++).charCodeAt(0)]<<18-6*k;for(h=16;n<f;h-=8)b[n++]=A>>h|0}return b};return m}();B.__static_initialized=!1;z.mxBase64=B;B.__class="com.mxgraph.online.mxBase64"})(y.online||(y.online={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$();-com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.arrowSizes_$LI$();com.mxgraph.io.vsdx.VsdxShape.OFFSET_ARRAY_$LI$();com.mxgraph.io.vsdx.VsdxShape.__static_initialize();com.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP_$LI$();com.mxgraph.io.vsdx.Style.lineDashPatterns_$LI$();com.mxgraph.io.vsdx.Style.styleTypes_$LI$();com.mxgraph.io.vsdx.Style.__static_initialize();com.mxgraph.online.Constants.MAX_AREA_$LI$();com.mxgraph.io.vsdx.theme.Color.NONE_$LI$();com.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();-com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$();-EditorUi.prototype.doImportVisio=function(g,y,z,B){B=B||g.name;null!=B&&/(\.vs(x|sx?))($|\?)/i.test(B)?(new com.mxgraph.io.mxVssxCodec(this)).decodeVssx(g,y,null,z):(new com.mxgraph.io.mxVsdxCodec(this)).decodeVsdx(g,y,null,z)};function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x:Static\s+(.+)\.(.+)\}$/;-mxGraphMlCodec.prototype.decode=function(g,y,z){try{var B=mxUtils.parseXml(g),m=this.getDirectChildNamedElements(B.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(B.documentElement);g='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(B=0;B<m.length;B++){var h=m[B],b=this.createMxGraph(),a=b.getModel();a.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(h,b,b.getDefaultParent()),B=0;B<this.edges.length;B++)for(var c=this.edges[B],d=c.edges,f=c.parent,k=c.dx,n=c.dy,-q=0;q<d.length;q++)this.importEdge(d[q],b,f,k,n)}catch(ca){throw console.log(ca),ca;}finally{a.endUpdate()}a.beginUpdate();try{var t=b.getModel().cells,A;for(A in t){var C=t[A];if(C.edge&&0<C.getChildCount())for(B=0;B<C.getChildCount();B++){var I=C.children[B].geometry;if(I.adjustIt){var Q=b.view.getState(C),K=Q.absolutePoints,L=K[0],S=K[K.length-1],R=I.x,H=I.y;k=S.x-L.x;n=S.y-L.y;var N=L.x+R*k,J=L.y+R*n,M=Math.sqrt(k*k+n*n);k/=M;n/=M;N-=H*n;J+=H*k;var T=b.view.getRelativePoint(Q,N,J);I.x=T.x;I.y=-T.y}}}}catch(ca){throw console.log(ca),ca;}finally{a.endUpdate()}g+=this.processPage(b,B+1)}y&&y(g+"</mxfile>")}catch(ca){z&&z(ca)}};-mxGraphMlCodec.prototype.initializeKeys=function(g){var y=this.getDirectChildNamedElements(g,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=-{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var z,B=0;B<y.length;B++){var m=this.dataElem2Obj(y[B]),h=m[mxGraphMlConstants.ID],b=m[mxGraphMlConstants.KEY_FOR],a=m[mxGraphMlConstants.KEY_NAME],c=m[mxGraphMlConstants.KEY_YTYPE];a==mxGraphMlConstants.SHARED_DATA&&(z=h);a=a?a:c;switch(b){case mxGraphMlConstants.NODE:this.nodesKeys[a]=-{key:h,keyObj:m};break;case mxGraphMlConstants.EDGE:this.edgesKeys[a]={key:h,keyObj:m};break;case mxGraphMlConstants.PORT:this.portsKeys[a]={key:h,keyObj:m};break;case mxGraphMlConstants.ALL:m={key:h,keyObj:m},this.nodesKeys[a]=m,this.edgesKeys[a]=m,this.portsKeys[a]=m}}g=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA);for(B=0;B<g.length;B++)if(g[B].getAttribute(mxGraphMlConstants.KEY)==z)for(b=this.getDirectChildNamedElements(g[B],mxGraphMlConstants.Y_SHARED_DATA),y=0;y<b.length;y++)for(a=-this.getDirectChildElements(b[y]),m=0;m<a.length;m++)h=a[m].getAttribute(mxGraphMlConstants.X_KEY),this.sharedData[h]=a[m];else for(b=this.getDirectChildNamedElements(g[B],mxGraphMlConstants.Y_RESOURCES),y=0;y<b.length;y++)for(a=this.getDirectChildElements(b[y]),m=0;m<a.length;m++)h=a[m].getAttribute(mxGraphMlConstants.ID),this.sharedData[h]=a[m]};-mxGraphMlCodec.prototype.parseAttributes=function(g,y){if(g=g.attributes)for(var z=0;z<g.length;z++){var B=g[z].nodeValue,m=this.refRegexp.exec(B),h=this.staticRegexp.exec(B);m?(B=m[1],m=this.cachedRefObj[B],m||(m={},m[this.sharedData[B].nodeName]=this.dataElem2Obj(this.sharedData[B]),this.cachedRefObj[B]=m),y[g[z].nodeName]=m):h?(y[g[z].nodeName]={},y[g[z].nodeName][h[1]]=h[2]):y[g[z].nodeName]=B}};-mxGraphMlCodec.prototype.dataElem2Obj=function(g){var y=this.getDirectFirstChildNamedElements(g,mxGraphMlConstants.GRAPHML_REFERENCE)||g.getAttribute(mxGraphMlConstants.REFID),z=null,B=g,m={};if(y){z="string"===typeof y?y:y.getAttribute(mxGraphMlConstants.RESOURCE_KEY);if(y=this.cachedRefObj[z])return this.parseAttributes(g,y),y;g=this.sharedData[z]}this.parseAttributes(g,m);for(y=0;y<g.childNodes.length;y++){var h=g.childNodes[y];if(1==h.nodeType){var b=h.nodeName;if(b==mxGraphMlConstants.X_LIST){var a=-[];h=this.getDirectChildElements(h);for(var c=0;c<h.length;c++)b=h[c].nodeName,a.push(this.dataElem2Obj(h[c]));m[b]=a}else b==mxGraphMlConstants.X_STATIC?(b=h.getAttribute(mxGraphMlConstants.MEMBER),a=b.lastIndexOf("."),m[b.substr(0,a)]=b.substr(a+1)):(a=b.lastIndexOf("."),0<a&&(b=b.substr(a+1)),null!=m[b]?(m[b]instanceof Array||(m[b]=[m[b]]),m[b].push(this.dataElem2Obj(h))):m[b]=this.dataElem2Obj(h))}else 3!=h.nodeType&&4!=h.nodeType||!h.textContent.trim()||(m["#text"]=h.textContent)}return z?(g=-{},this.parseAttributes(B,g),g[this.sharedData[z].nodeName]=m,this.cachedRefObj[z]=g):m};mxGraphMlCodec.prototype.mapArray=function(g,y,z){for(var B={},m=0;m<g.length;m++)g[m].name&&(B[g[m].name]=g[m].value||g[m]);this.mapObject(B,y,z)};-mxGraphMlCodec.prototype.mapObject=function(g,y,z){if(y.defaults)for(var B in y.defaults)z[B]=y.defaults[B];for(B in y){for(var m=B.split("."),h=g,b=0;b<m.length&&h;b++)h=h[m[b]];null==h&&g&&(h=g[B]);if(null!=h)if(m=y[B],"string"===typeof h)if("string"===typeof m)z[m]=h.toLowerCase();else if("object"===typeof m){b=h.toLowerCase();switch(m.mod){case "color":0==h.indexOf("#")&&9==h.length?b="#"+h.substr(3)+h.substr(1,2):"TRANSPARENT"==h&&(b="none");break;case "shape":b=mxGraphMlShapesMap[h.toLowerCase()];-break;case "bpmnOutline":b=mxGraphMlShapesMap.bpmnOutline[h.toLowerCase()];break;case "bpmnSymbol":b=mxGraphMlShapesMap.bpmnSymbol[h.toLowerCase()];break;case "bool":b="true"==h?"1":"0";break;case "scale":try{b=parseFloat(h)*m.scale}catch(a){}break;case "arrow":b=mxGraphMlArrowsMap[h]}null!=b&&(z[m.key]=b)}else m(h,z);else h instanceof Array?this.mapArray(h,m,z):null!=h.name&&null!=h.value?this.mapArray([h],m,z):this.mapObject(h,m,z)}};mxGraphMlCodec.prototype.createMxGraph=function(){return new mxGraph};-mxGraphMlCodec.prototype.importGraph=function(g,y,z){for(var B=this.getDirectChildNamedElements(g,mxGraphMlConstants.NODE),m=z,h=0,b=0;m&&m.geometry;)h+=m.geometry.x,b+=m.geometry.y,m=m.parent;for(m=0;m<B.length;m++)this.importNode(B[m],y,z,h,b);this.edges.push({edges:this.getDirectChildNamedElements(g,mxGraphMlConstants.EDGE),parent:z,dx:h,dy:b})};-mxGraphMlCodec.prototype.importPort=function(g,y){var z=g.getAttribute(mxGraphMlConstants.PORT_NAME),B={};g=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA);for(var m=0;m<g.length;m++){var h=g[m];h.getAttribute(mxGraphMlConstants.KEY);h=this.dataElem2Obj(h);h.key==this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER].key&&this.mapObject(h,{"y:FreeNodePortLocationModelParameter.Ratio":function(b,a){b=b.split(",");a.pos={x:b[0],y:b[1]}}},B)}y[z]=B};-mxGraphMlCodec.prototype.styleMap2Str=function(g){var y="",z="",B;for(B in g)z+=y+B+"="+g[B],y=";";return z};-mxGraphMlCodec.prototype.importNode=function(g,y,z,B,m){var h=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA),b=g.getAttribute(mxGraphMlConstants.ID),a=new mxCell;a.vertex=!0;a.geometry=new mxGeometry(0,0,30,30);y.addCell(a,z);z={graphMlID:b};for(var c=null,d=null,f=null,k=null,n=0;n<h.length;n++){var q=this.dataElem2Obj(h[n]);if(q.key)if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY].key)this.addNodeGeo(a,q,B,m);else if(q.key==this.nodesKeys[mxGraphMlConstants.USER_TAGS].key)f=-q;else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)c=q,q["yjs:StringTemplateNodeStyle"]?d=q["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(a,q,z);else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)k=q;else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var t=c=null;for(t in q)if("key"!=t&&"#text"!=t){if("y:ProxyAutoBoundsNode"==t){if(t=q[t]["y:Realizers"])for(var A in t)if("active"!=A&&"#text"!=A){c=t[A][t.active];q={};q[A]=c;break}}else c=-q[t];break}c&&(c[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(a,c[mxGraphMlConstants.GEOMETRY],B,m),c[mxGraphMlConstants.NODE_LABEL]&&(k=c[mxGraphMlConstants.NODE_LABEL]));c=q;this.addNodeStyle(a,q,z)}}m=this.getDirectChildNamedElements(g,mxGraphMlConstants.PORT);B={};for(n=0;n<m.length;n++)this.importPort(m[n],B);d&&this.handleTemplates(d,f,a,z);this.handleFixedRatio(a,z);this.handleCompoundShape(a,z,c,null);0==z.strokeWidth&&(z.strokeColor="none");a.style=this.styleMap2Str(z);g=this.getDirectChildNamedElements(g,-mxGraphMlConstants.GRAPH);for(n=0;n<g.length;n++)this.importGraph(g[n],y,a,B);k&&this.addLabels(a,k,z,y);this.nodesMap[b]={node:a,ports:B}};-mxGraphMlCodec.prototype.addNodeStyle=function(g,y,z){g=function(R,H){if("line"!=R){H.dashed=1;switch(R){case "DashDot":R="3 1 1 1";break;case "Dot":R="1 1";break;case "DashDotDot":R="3 1 1 1 1 1";break;case "Dash":R="3 1";break;case "dotted":R="1 3";break;case "dashed":R="5 2";break;default:R=R.replace(/0/g,"1")}R&&(0>R.indexOf(" ")&&(R=R+" "+R),H.dashPattern=R)}};g={shape:{key:"shape",mod:"shape"},"y:Shape.type":{key:"shape",mod:"shape"},configuration:{key:"shape",mod:"shape"},type:{key:"shape",-mod:"shape"},assetName:{key:"shape",mod:"shape"},activityType:{key:"shape",mod:"shape"},fill:{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"y:Fill":{color:{key:"fillColor",mod:"color"},transparent:function(R,H){"true"==R&&(H.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(R,H){"false"==R&&(H.strokeColor="none")},-type:g},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:g,"dashStyle.yjs:DashStyle.dashes":g,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var B=mxUtils.clone(g);B.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var m=mxUtils.clone(g);m.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var h=mxUtils.clone(g);h.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};-var b=mxUtils.clone(g);b.defaults={shape:"hexagon",strokeColor:"#007000"};var a=mxUtils.clone(g);a.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};a.characteristic={key:"outline",mod:"bpmnOutline"};var c=mxUtils.clone(g);c.defaults={shape:"js:bpmnDataObject"};var d=mxUtils.clone(g);d.defaults={shape:"datastore"};var f=mxUtils.clone(g);f.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};var k=-mxUtils.clone(g);k.defaults={shape:"js:BpmnChoreography"};var n=mxUtils.clone(g);n.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};n.inset="strokeWidth";n.radius="arcSize";n.drawShadow={key:"shadow",mod:"bool"};n.color={key:"fillColor",mod:"color",addGradient:"north"};n["color.yjs:Color.value"]=n.color;var q=mxUtils.clone(g);q.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};q.drawShadow={key:"shadow",mod:"bool"};var t=mxUtils.clone(g);t.defaults={shape:"swimlane",-startSize:20,strokeWidth:4,spacingLeft:10};t.isCollapsible={key:"collapsible",mod:"bool"};t.borderColor={key:"strokeColor",mod:"color"};t.folderFrontColor={key:"fillColor",mod:"color"};var A=mxUtils.clone(g);A.defaults={shape:"swimlane",startSize:20,spacingLeft:10};A["yjs:PanelNodeStyle"]={color:{key:"swimlaneFillColor",mod:"color"},"color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},labelInsetsColor:{key:"fillColor",mod:"color"},"labelInsetsColor.yjs:Color.value":{key:"fillColor",mod:"color"}};-var C=mxUtils.clone(g);C.defaults={shape:"js:table"};var I=mxUtils.clone(g);I.defaults={shape:"image"};I.image=function(R,H){H.image=R};var Q=mxUtils.clone(g);Q.defaults={shape:"image"};Q["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(R,H){H.image="data:image/svg+xml,"+(window.btoa?btoa(R):Base64.encode(R))};var K=mxUtils.clone(g);K.defaults={shape:"swimlane",startSize:20};K["y:Shape.type"]=function(R,H){"roundrectangle"==R&&(H.rounded=1,H.arcSize=5)};var L=mxUtils.clone(g);L.defaults={shape:"js:table2"};-var S=mxUtils.clone(g);S.defaults={gradientDirection:"east"};S["y:Fill"].color2={key:"gradientColor",mod:"color"};S["y:StyleProperties.y:Property"]={"com.yworks.bpmn.characteristic":{key:"outline",mod:"bpmnOutline"},"com.yworks.bpmn.icon.fill":{key:"gradientColor",mod:"color"},"com.yworks.bpmn.icon.fill2":{key:"fillColor",mod:"color"},"com.yworks.bpmn.type":{key:"symbol",mod:"bpmnSymbol"},"y.view.ShadowNodePainter.SHADOW_PAINTING":{key:"shadow",mod:"bool"},doubleBorder:{key:"double",mod:"bool"},"com.yworks.sbgn.style.radius":{key:"arcSize",-mod:"scale",scale:2},"com.yworks.sbgn.style.inverse":{key:"flipV",mod:"bool"}};this.mapObject(y,{"yjs:ShapeNodeStyle":g,"demostyle:FlowchartNodeStyle":g,"demostyle:AssetNodeStyle":B,"bpmn:ActivityNodeStyle":m,"bpmn:GatewayNodeStyle":h,"bpmn:ConversationNodeStyle":b,"bpmn:EventNodeStyle":a,"bpmn:DataObjectNodeStyle":c,"bpmn:DataStoreNodeStyle":d,"bpmn:GroupNodeStyle":f,"bpmn:ChoreographyNodeStyle":k,"yjs:BevelNodeStyle":n,"yjs:ShinyPlateNodeStyle":q,"demostyle:DemoGroupStyle":t,"yjs:CollapsibleNodeStyleDecorator":A,-"bpmn:PoolNodeStyle":C,"yjs:TableNodeStyle":C,"demotablestyle:DemoTableStyle":C,"yjs:ImageNodeStyle":I,"y:ShapeNode":g,"y:GenericNode":S,"y:GenericGroupNode":S,"y:TableNode":L,"y:SVGNode":Q,"y:GroupNode":K},z)};-mxGraphMlCodec.prototype.handleTemplates=function(g,y,z,B){if(g){var m=z.geometry.width,h=z.geometry.height;z='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+m+" "+h+'"><g>';for(var b,a=[],c=/\{TemplateBinding\s+([^}]+)\}/g;null!=(b=c.exec(g));){var d="";switch(b[1]){case "width":d=m;break;case "height":d=h}a.push({match:b[0],repl:d})}if(y&&y["y:Json"])for(y=JSON.parse(y["y:Json"]["#text"]),m=/\{Binding\s+([^}]+)\}/g;null!=(b=m.exec(g));)if(h=b[1].split(","),-c=y[h[0]])1<h.length&&h[1].indexOf("Converter=")&&(d=mxGraphMlConverters[h[1].substr(11)])&&(c=[c],h[2]&&c.push(h[2].substr(11)),c=d.apply(null,c)),a.push({match:b[0],repl:mxUtils.htmlEntities(c)});for(b=0;b<a.length;b++)g=g.replace(a[b].match,a[b].repl);a=[];for(y=/<text.+data-content="([^"]+).+<\/text>/g;null!=(b=y.exec(g));)c=b[0].substr(0,b[0].length-7)+b[1]+"</text>",a.push({match:b[0],repl:c});for(b=0;b<a.length;b++)g=g.replace(a[b].match,a[b].repl);g=z+g+"</g></svg>";B.shape="image";B.image=-"data:image/svg+xml,"+(window.btoa?btoa(g):Base64.encode(g))}};-mxGraphMlCodec.prototype.handleCompoundShape=function(g,y,z,B){var m=y.shape;if(m&&0==m.indexOf("js:")){switch(m){case "js:bpmnArtifactShadow":y.shadow="1";case "js:bpmnArtifact":y.shape=y.symbol;delete y.fillColor;delete y.strokeColor;delete y.gradientColor;this.handleCompoundShape(g,y,z,B);break;case "js:bpmnDataObjectShadow":case "js:bpmnDataObject":y.shape="note;size=16";z=z["bpmn:DataObjectNodeStyle"]||z["y:GenericNode"]||z["y:GenericGroupNode"];B={};this.mapObject(z,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.dataObjectType":"dataObjectType",-"com.yworks.bpmn.marker1":"marker1"}},B);if("true"==z.collection||"bpmn_marker_parallel"==B.marker1){var h=new mxCell("",new mxGeometry(.5,1,10,10),"html=1;whiteSpace=wrap;shape=parallelMarker;");h.vertex=!0;h.geometry.relative=!0;h.geometry.offset=new mxPoint(-5,-10);g.insert(h)}if("INPUT"==z.type||"data_object_type_input"==B.dataObjectType)h=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;"),h.vertex=!0,h.geometry.relative=!0,h.geometry.offset=new mxPoint(2,-2),g.insert(h);else if("OUTPUT"==z.type||"data_object_type_output"==B.dataObjectType)h=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;fillColor=#000000;"),h.vertex=!0,h.geometry.relative=!0,h.geometry.offset=new mxPoint(2,2),g.insert(h);break;case "js:BpmnChoreography":this.mapObject(z,{defaults:{shape:"swimlane;collapsible=0;rounded=1",startSize:"20",strokeColor:"#006000",fillColor:"#CCCCCC"}},y);h=g.geometry;h=new mxCell("",new mxGeometry(0,h.height--20,h.width,20),"strokeColor=#006000;fillColor=#777777;rounded=1");h.vertex=!0;g.insert(h);B&&B.lblTxts&&(g.value=B.lblTxts[0],h.value=B.lblTxts[1]);break;case "js:bpmnActivityShadow":case "js:bpmnActivity":y.shape="ext;rounded=1";B={};z=z["y:GenericNode"]||z["y:GenericGroupNode"];this.mapObject(z,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.taskType":"taskType","com.yworks.bpmn.activityType":"activityType","com.yworks.bpmn.marker1":"marker1","com.yworks.bpmn.marker2":"marker2","com.yworks.bpmn.marker3":"marker3",-"com.yworks.bpmn.marker4":"marker4"}},B);switch(B.activityType){case "activity_type_transaction":y["double"]="1"}switch(B.taskType){case "task_type_send":var b=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;fillColor=#000000;strokeColor=#FFFFFF;");b.geometry.offset=new mxPoint(4,7);break;case "task_type_receive":b=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");b.geometry.offset=new mxPoint(4,7);break;case "task_type_user":b=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");-b.geometry.offset=new mxPoint(4,5);break;case "task_type_manual":b=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");b.geometry.offset=new mxPoint(4,7);break;case "task_type_business_rule":b=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");b.geometry.offset=new mxPoint(4,7);break;case "task_type_service":b=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");b.geometry.offset=new mxPoint(4,5);break;case "task_type_script":b=-new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),b.geometry.offset=new mxPoint(4,5)}b&&(b.vertex=!0,b.geometry.relative=!0,g.insert(b),b=null);var a=0;for(h=1;4>=h;h++)B["marker"+h]&&a++;z=-7.5*a-2*(a-1);for(h=1;h<=a;h++){switch(B["marker"+h]){case "bpmn_marker_closed":b=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");b.geometry.offset=new mxPoint(z,-20);break;case "bpmn_marker_open":b=new mxCell("",new mxGeometry(.5,1,15,15),"shape=rect;part=1;");b.geometry.offset=-new mxPoint(z,-20);var c=new mxCell("",new mxGeometry(.5,.5,8,1),"shape=rect;part=1;");c.geometry.offset=new mxPoint(-4,-1);c.geometry.relative=!0;c.vertex=!0;b.insert(c);break;case "bpmn_marker_loop":b=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");b.geometry.offset=new mxPoint(z,-20);break;case "bpmn_marker_parallel":b=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");b.geometry.offset=new mxPoint(z,-20);break;case "bpmn_marker_sequential":b=new mxCell("",-new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");b.geometry.offset=new mxPoint(z,-20);break;case "bpmn_marker_ad_hoc":b=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;fillColor=#000000");b.geometry.offset=new mxPoint(z,-17);break;case "bpmn_marker_compensation":b=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),b.geometry.offset=new mxPoint(z,-18)}b.geometry.relative=!0;b.vertex=!0;g.insert(b);-z+=20}break;case "js:table":y.shape="swimlane;collapsible=0;swimlaneLine=0";B=z["yjs:TableNodeStyle"]||z["demotablestyle:DemoTableStyle"];!B&&z["bpmn:PoolNodeStyle"]&&(B=z["bpmn:PoolNodeStyle"]["yjs:TableNodeStyle"]);this.mapObject(B,{"backgroundStyle.demotablestyle:TableBackgroundStyle":{"insetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableBackgroundFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},"tableBackgroundStroke.yjs:Stroke":{fill:{key:"strokeColor",-mod:"color"},thickness:"strokeWidth"}},"backgroundStyle.yjs:ShapeNodeStyle.fill":{key:"fillColor",mod:"color"},"backgroundStyle.yjs:ShapeNodeStyle.fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"}},y);y.swimlaneFillColor=y.fillColor;B=B.table["y:Table"];var d=a=0,f={x:0};z=0;(h=B.Insets)?(h=h.split(","),"0"!=h[0]?(y.startSize=h[0],f.x=parseFloat(h[0]),y.horizontal="0"):"0"!=h[1]&&(y.startSize=h[1],z=parseFloat(h[1]),d+=z)):y.startSize="0";var k={},n={Insets:function(A,C){C.startSize=A.split(",")[0]},-"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",-mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"height"};this.mapObject(B.RowDefaults,{defaults:{shape:"swimlane;collapsible=0;horizontal=0",startSize:"0"},"y:StripeDefaults":n},k);b={};c={Insets:function(A,C){C.startSize=A.split(",")[1]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",-mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"width"};this.mapObject(B.ColumnDefaults,{defaults:{shape:"swimlane;collapsible=0",startSize:"0",fillColor:"none"},-"y:StripeDefaults":c},b);h=g.geometry;a=B.Rows["y:Row"];d+=parseFloat(b.startSize);var q=f.x,t=f.x;f.lx=f.x;if(a)for(a instanceof Array||(a=[a]),h=0;h<a.length;h++)f.x=t,f.lx=t,d=this.addRow(a[h],g,h&1,d,f,n,k),q=Math.max(f.x,q);B=B.Columns["y:Column"];a=q;if(B)for(B instanceof Array||(B=[B]),h=0;h<B.length;h++)a=this.addColumn(B[h],g,h&1,a,z,c,b);break;case "js:table2":y.shape="swimlane;collapsible=0;swimlaneLine=0";B={};this.mapObject(z,{"y:TableNode":{"y:StyleProperties.y:Property":{"yed.table.section.color":{key:"secColor",+InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},xf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Ld.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Ld.prototype.getX=function(f){return Math.round(100*this.nurbsValues[4*(f+1)])/100};Ld.prototype.getY=function(f){return Math.round(100*this.nurbsValues[4*(f+1)+1])/100};LucidImporter.importState=function(f,n,l){function e(c){null!=c.state&&EditorUi.debug("convertLucidChart addPages",+c);if(c.Properties){for(var H in c.Properties)"Stencil-"==H.substr(0,8)&&Ke(H.substr(8),c.Properties[H]);LucidImporter.globalProps=c.Properties}for(var I in c.Pages)H=c.Pages[I],H.id=I,H.Data=c.Data,a.push(H);a.sort(function(C,ba){return C.Properties.Order<ba.Properties.Order?-1:C.Properties.Order>ba.Properties.Order?1:0});for(c=0;c<a.length;c++)LucidImporter.pageIdsMap[a[c].id]=c}oc=nc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=n;LucidImporter.advImpConfig=l;LucidImporter.globalProps=+{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;n=['<?xml version="1.0" encoding="UTF-8"?>','<mxfile type="Lucidchart-Import" version="'+EditorUi.VERSION+'" host="'+mxUtils.htmlEntities(window.location.hostname)+'" agent="'+mxUtils.htmlEntities(navigator.appVersion)+'" modified="'+mxUtils.htmlEntities((new Date).toISOString())+'">'];l&&l.transparentEdgeLabels&&(ce=ce.replace("labelBackgroundColor=default;",+"labelBackgroundColor=none;"));var a=[];null!=f.state?e(JSON.parse(f.state)):null==f.Page&&null!=f.Pages?e(f):a.push(f);f=Df();l=new mxCodec;for(var y=0;y<a.length;y++){n.push("<diagram");null!=a[y].Properties&&null!=a[y].Properties.Title&&n.push(' name="'+mxUtils.htmlEntities(a[y].Properties.Title)+'"');n.push(' id="'+y+'"');zf(f,a[y],!0);var d=l.encode(f.getModel());null!=a[y].Properties&&(a[y].Properties.FillColor&&"#ffffff"!=a[y].Properties.FillColor&&d.setAttribute("background",Pa(a[y].Properties.FillColor)),+a[y].Properties.InfiniteCanvas?d.setAttribute("page",0):null!=a[y].Properties.Size&&(d.setAttribute("page",1),d.setAttribute("pageWidth",.75*a[y].Properties.Size.w),d.setAttribute("pageHeight",.75*a[y].Properties.Size.h)),null!=a[y].Properties.GridSpacing&&(d.setAttribute("grid",1),d.setAttribute("gridSize",.75*a[y].Properties.GridSpacing)));LucidImporter.hasMath&&d.setAttribute("math",1);f.getModel().clear();n.push(">"+Graph.compress(mxUtils.getXml(d))+"</diagram>")}n.push("</mxfile>");LucidImporter.imgSrcRepl=+null;return n.join("")}})();function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x:Static\s+(.+)\.(.+)\}$/;+mxGraphMlCodec.prototype.decode=function(r,w,x){try{var z=mxUtils.parseXml(r),k=this.getDirectChildNamedElements(z.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(z.documentElement);r='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(z=0;z<k.length;z++){var t=k[z],u=this.createMxGraph(),p=u.getModel();p.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(t,u,u.getDefaultParent()),z=0;z<this.edges.length;z++)for(var h=this.edges[z],D=h.edges,A=h.parent,N=h.dx,E=h.dy,+L=0;L<D.length;L++)this.importEdge(D[L],u,A,N,E)}catch(Eb){throw console.log(Eb),Eb;}finally{p.endUpdate()}p.beginUpdate();try{var X=u.getModel().cells,Oa;for(Oa in X){var xa=X[Oa];if(xa.edge&&0<xa.getChildCount())for(z=0;z<xa.getChildCount();z++){var Ka=xa.children[z].geometry;if(Ka.adjustIt){var Va=u.view.getState(xa),Fa=Va.absolutePoints,Ca=Fa[0],Ga=Fa[Fa.length-1],qa=Ka.x,U=Ka.y;N=Ga.x-Ca.x;E=Ga.y-Ca.y;var Gd=Ca.x+qa*N,Hd=Ca.y+qa*E,Xa=Math.sqrt(N*N+E*E);N/=Xa;E/=Xa;Gd-=U*E;Hd+=U*N;var mc=u.view.getRelativePoint(Va,+Gd,Hd);Ka.x=mc.x;Ka.y=mc.y}}}}catch(Eb){throw console.log(Eb),Eb;}finally{p.endUpdate()}r+=this.processPage(u,z+1)}w&&w(r+"</mxfile>")}catch(Eb){x&&x(Eb)}};+mxGraphMlCodec.prototype.initializeKeys=function(r){var w=this.getDirectChildNamedElements(r,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=+{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var x,z=0;z<w.length;z++){var k=this.dataElem2Obj(w[z]),t=k[mxGraphMlConstants.ID],u=k[mxGraphMlConstants.KEY_FOR],p=k[mxGraphMlConstants.KEY_NAME],h=k[mxGraphMlConstants.KEY_YTYPE];p==mxGraphMlConstants.SHARED_DATA&&(x=t);p=p?p:h;switch(u){case mxGraphMlConstants.NODE:this.nodesKeys[p]=+{key:t,keyObj:k};break;case mxGraphMlConstants.EDGE:this.edgesKeys[p]={key:t,keyObj:k};break;case mxGraphMlConstants.PORT:this.portsKeys[p]={key:t,keyObj:k};break;case mxGraphMlConstants.ALL:k={key:t,keyObj:k},this.nodesKeys[p]=k,this.edgesKeys[p]=k,this.portsKeys[p]=k}}r=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA);for(z=0;z<r.length;z++)if(r[z].getAttribute(mxGraphMlConstants.KEY)==x)for(u=this.getDirectChildNamedElements(r[z],mxGraphMlConstants.Y_SHARED_DATA),w=0;w<u.length;w++)for(p=+this.getDirectChildElements(u[w]),k=0;k<p.length;k++)t=p[k].getAttribute(mxGraphMlConstants.X_KEY),this.sharedData[t]=p[k];else for(u=this.getDirectChildNamedElements(r[z],mxGraphMlConstants.Y_RESOURCES),w=0;w<u.length;w++)for(p=this.getDirectChildElements(u[w]),k=0;k<p.length;k++)t=p[k].getAttribute(mxGraphMlConstants.ID),this.sharedData[t]=p[k]};+mxGraphMlCodec.prototype.parseAttributes=function(r,w){if(r=r.attributes)for(var x=0;x<r.length;x++){var z=r[x].nodeValue,k=this.refRegexp.exec(z),t=this.staticRegexp.exec(z);k?(z=k[1],k=this.cachedRefObj[z],k||(k={},k[this.sharedData[z].nodeName]=this.dataElem2Obj(this.sharedData[z]),this.cachedRefObj[z]=k),w[r[x].nodeName]=k):t?(w[r[x].nodeName]={},w[r[x].nodeName][t[1]]=t[2]):w[r[x].nodeName]=z}};+mxGraphMlCodec.prototype.dataElem2Obj=function(r){var w=this.getDirectFirstChildNamedElements(r,mxGraphMlConstants.GRAPHML_REFERENCE)||r.getAttribute(mxGraphMlConstants.REFID),x=null,z=r,k={};if(w){x="string"===typeof w?w:w.getAttribute(mxGraphMlConstants.RESOURCE_KEY);if(w=this.cachedRefObj[x])return this.parseAttributes(r,w),w;r=this.sharedData[x]}this.parseAttributes(r,k);for(w=0;w<r.childNodes.length;w++){var t=r.childNodes[w];if(1==t.nodeType){var u=t.nodeName;if(u==mxGraphMlConstants.X_LIST){var p=+[];t=this.getDirectChildElements(t);for(var h=0;h<t.length;h++)u=t[h].nodeName,p.push(this.dataElem2Obj(t[h]));k[u]=p}else u==mxGraphMlConstants.X_STATIC?(u=t.getAttribute(mxGraphMlConstants.MEMBER),p=u.lastIndexOf("."),k[u.substr(0,p)]=u.substr(p+1)):(p=u.lastIndexOf("."),0<p&&(u=u.substr(p+1)),null!=k[u]?(k[u]instanceof Array||(k[u]=[k[u]]),k[u].push(this.dataElem2Obj(t))):k[u]=this.dataElem2Obj(t))}else 3!=t.nodeType&&4!=t.nodeType||!t.textContent.trim()||(k["#text"]=t.textContent)}return x?(r=+{},this.parseAttributes(z,r),r[this.sharedData[x].nodeName]=k,this.cachedRefObj[x]=r):k};mxGraphMlCodec.prototype.mapArray=function(r,w,x){for(var z={},k=0;k<r.length;k++)r[k].name&&(z[r[k].name]=r[k].value||r[k]);this.mapObject(z,w,x)};+mxGraphMlCodec.prototype.mapObject=function(r,w,x){if(w.defaults)for(var z in w.defaults)x[z]=w.defaults[z];for(z in w){for(var k=z.split("."),t=r,u=0;u<k.length&&t;u++)t=t[k[u]];null==t&&r&&(t=r[z]);if(null!=t)if(k=w[z],"string"===typeof t)if("string"===typeof k)x[k]=t.toLowerCase();else if("object"===typeof k){u=t.toLowerCase();switch(k.mod){case "color":0==t.indexOf("#")&&9==t.length?u="#"+t.substr(3)+t.substr(1,2):"TRANSPARENT"==t&&(u="none");break;case "shape":u=mxGraphMlShapesMap[t.toLowerCase()];+break;case "bpmnOutline":u=mxGraphMlShapesMap.bpmnOutline[t.toLowerCase()];break;case "bpmnSymbol":u=mxGraphMlShapesMap.bpmnSymbol[t.toLowerCase()];break;case "bool":u="true"==t?"1":"0";break;case "scale":try{u=parseFloat(t)*k.scale}catch(p){}break;case "arrow":u=mxGraphMlArrowsMap[t]}null!=u&&(x[k.key]=u)}else k(t,x);else t instanceof Array?this.mapArray(t,k,x):null!=t.name&&null!=t.value?this.mapArray([t],k,x):this.mapObject(t,k,x)}};mxGraphMlCodec.prototype.createMxGraph=function(){return new mxGraph};+mxGraphMlCodec.prototype.importGraph=function(r,w,x){for(var z=this.getDirectChildNamedElements(r,mxGraphMlConstants.NODE),k=x,t=0,u=0;k&&k.geometry;)t+=k.geometry.x,u+=k.geometry.y,k=k.parent;for(k=0;k<z.length;k++)this.importNode(z[k],w,x,t,u);this.edges.push({edges:this.getDirectChildNamedElements(r,mxGraphMlConstants.EDGE),parent:x,dx:t,dy:u})};+mxGraphMlCodec.prototype.importPort=function(r,w){var x=r.getAttribute(mxGraphMlConstants.PORT_NAME),z={};r=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA);for(var k=0;k<r.length;k++){var t=r[k];t.getAttribute(mxGraphMlConstants.KEY);t=this.dataElem2Obj(t);t.key==this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER].key&&this.mapObject(t,{"y:FreeNodePortLocationModelParameter.Ratio":function(u,p){u=u.split(",");p.pos={x:u[0],y:u[1]}}},z)}w[x]=z};+mxGraphMlCodec.prototype.styleMap2Str=function(r){var w="",x="",z;for(z in r)x+=w+z+"="+r[z],w=";";return x};+mxGraphMlCodec.prototype.importNode=function(r,w,x,z,k){var t=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA),u=r.getAttribute(mxGraphMlConstants.ID),p=new mxCell;p.vertex=!0;p.geometry=new mxGeometry(0,0,30,30);w.addCell(p,x);x={graphMlID:u};for(var h=null,D=null,A=null,N=null,E=0;E<t.length;E++){var L=this.dataElem2Obj(t[E]);if(L.key)if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY].key)this.addNodeGeo(p,L,z,k);else if(L.key==this.nodesKeys[mxGraphMlConstants.USER_TAGS].key)A=+L;else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)h=L,L["yjs:StringTemplateNodeStyle"]?D=L["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(p,L,x);else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)N=L;else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var X=h=null;for(X in L)if("key"!=X&&"#text"!=X){if("y:ProxyAutoBoundsNode"==X){if(X=L[X]["y:Realizers"])for(var Oa in X)if("active"!=Oa&&"#text"!=Oa){h=X[Oa][X.active];L={};L[Oa]=h;break}}else h=+L[X];break}h&&(h[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(p,h[mxGraphMlConstants.GEOMETRY],z,k),h[mxGraphMlConstants.NODE_LABEL]&&(N=h[mxGraphMlConstants.NODE_LABEL]));h=L;this.addNodeStyle(p,L,x)}}k=this.getDirectChildNamedElements(r,mxGraphMlConstants.PORT);z={};for(E=0;E<k.length;E++)this.importPort(k[E],z);D&&this.handleTemplates(D,A,p,x);this.handleFixedRatio(p,x);this.handleCompoundShape(p,x,h,null);0==x.strokeWidth&&(x.strokeColor="none");p.style=this.styleMap2Str(x);r=this.getDirectChildNamedElements(r,+mxGraphMlConstants.GRAPH);for(E=0;E<r.length;E++)this.importGraph(r[E],w,p,z);N&&this.addLabels(p,N,x,w);this.nodesMap[u]={node:p,ports:z}};+mxGraphMlCodec.prototype.addNodeStyle=function(r,w,x){r=function(qa,U){if("line"!=qa){U.dashed=1;switch(qa){case "DashDot":qa="3 1 1 1";break;case "Dot":qa="1 1";break;case "DashDotDot":qa="3 1 1 1 1 1";break;case "Dash":qa="3 1";break;case "dotted":qa="1 3";break;case "dashed":qa="5 2";break;default:qa=qa.replace(/0/g,"1")}qa&&(0>qa.indexOf(" ")&&(qa=qa+" "+qa),U.dashPattern=qa)}};r={shape:{key:"shape",mod:"shape"},"y:Shape.type":{key:"shape",mod:"shape"},configuration:{key:"shape",mod:"shape"},+type:{key:"shape",mod:"shape"},assetName:{key:"shape",mod:"shape"},activityType:{key:"shape",mod:"shape"},fill:{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"y:Fill":{color:{key:"fillColor",mod:"color"},transparent:function(qa,U){"true"==qa&&(U.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(qa,U){"false"==qa&&+(U.strokeColor="none")},type:r},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:r,"dashStyle.yjs:DashStyle.dashes":r,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var z=mxUtils.clone(r);z.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var k=mxUtils.clone(r);k.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var t=mxUtils.clone(r);+t.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};var u=mxUtils.clone(r);u.defaults={shape:"hexagon",strokeColor:"#007000"};var p=mxUtils.clone(r);p.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};p.characteristic={key:"outline",mod:"bpmnOutline"};var h=mxUtils.clone(r);h.defaults={shape:"js:bpmnDataObject"};var D=mxUtils.clone(r);D.defaults={shape:"datastore"};var A=mxUtils.clone(r);A.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};+var N=mxUtils.clone(r);N.defaults={shape:"js:BpmnChoreography"};var E=mxUtils.clone(r);E.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};E.inset="strokeWidth";E.radius="arcSize";E.drawShadow={key:"shadow",mod:"bool"};E.color={key:"fillColor",mod:"color",addGradient:"north"};E["color.yjs:Color.value"]=E.color;var L=mxUtils.clone(r);L.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};L.drawShadow={key:"shadow",mod:"bool"};var X=mxUtils.clone(r);X.defaults={shape:"swimlane",+startSize:20,strokeWidth:4,spacingLeft:10};X.isCollapsible={key:"collapsible",mod:"bool"};X.borderColor={key:"strokeColor",mod:"color"};X.folderFrontColor={key:"fillColor",mod:"color"};var Oa=mxUtils.clone(r);Oa.defaults={shape:"swimlane",startSize:20,spacingLeft:10};Oa["yjs:PanelNodeStyle"]={color:{key:"swimlaneFillColor",mod:"color"},"color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},labelInsetsColor:{key:"fillColor",mod:"color"},"labelInsetsColor.yjs:Color.value":{key:"fillColor",mod:"color"}};+var xa=mxUtils.clone(r);xa.defaults={shape:"js:table"};var Ka=mxUtils.clone(r);Ka.defaults={shape:"image"};Ka.image=function(qa,U){U.image=qa};var Va=mxUtils.clone(r);Va.defaults={shape:"image"};Va["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(qa,U){U.image="data:image/svg+xml,"+(window.btoa?btoa(qa):Base64.encode(qa))};var Fa=mxUtils.clone(r);Fa.defaults={shape:"swimlane",startSize:20};Fa["y:Shape.type"]=function(qa,U){"roundrectangle"==qa&&(U.rounded=1,U.arcSize=5)};var Ca=mxUtils.clone(r);+Ca.defaults={shape:"js:table2"};var Ga=mxUtils.clone(r);Ga.defaults={gradientDirection:"east"};Ga["y:Fill"].color2={key:"gradientColor",mod:"color"};Ga["y:StyleProperties.y:Property"]={"com.yworks.bpmn.characteristic":{key:"outline",mod:"bpmnOutline"},"com.yworks.bpmn.icon.fill":{key:"gradientColor",mod:"color"},"com.yworks.bpmn.icon.fill2":{key:"fillColor",mod:"color"},"com.yworks.bpmn.type":{key:"symbol",mod:"bpmnSymbol"},"y.view.ShadowNodePainter.SHADOW_PAINTING":{key:"shadow",mod:"bool"},doubleBorder:{key:"double",+mod:"bool"},"com.yworks.sbgn.style.radius":{key:"arcSize",mod:"scale",scale:2},"com.yworks.sbgn.style.inverse":{key:"flipV",mod:"bool"}};this.mapObject(w,{"yjs:ShapeNodeStyle":r,"demostyle:FlowchartNodeStyle":r,"demostyle:AssetNodeStyle":z,"bpmn:ActivityNodeStyle":k,"bpmn:GatewayNodeStyle":t,"bpmn:ConversationNodeStyle":u,"bpmn:EventNodeStyle":p,"bpmn:DataObjectNodeStyle":h,"bpmn:DataStoreNodeStyle":D,"bpmn:GroupNodeStyle":A,"bpmn:ChoreographyNodeStyle":N,"yjs:BevelNodeStyle":E,"yjs:ShinyPlateNodeStyle":L,+"demostyle:DemoGroupStyle":X,"yjs:CollapsibleNodeStyleDecorator":Oa,"bpmn:PoolNodeStyle":xa,"yjs:TableNodeStyle":xa,"demotablestyle:DemoTableStyle":xa,"yjs:ImageNodeStyle":Ka,"y:ShapeNode":r,"y:GenericNode":Ga,"y:GenericGroupNode":Ga,"y:TableNode":Ca,"y:SVGNode":Va,"y:GroupNode":Fa},x)};+mxGraphMlCodec.prototype.handleTemplates=function(r,w,x,z){if(r){var k=x.geometry.width,t=x.geometry.height;x='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+k+" "+t+'"><g>';for(var u,p=[],h=/\{TemplateBinding\s+([^}]+)\}/g;null!=(u=h.exec(r));){var D="";switch(u[1]){case "width":D=k;break;case "height":D=t}p.push({match:u[0],repl:D})}if(w&&w["y:Json"])for(w=JSON.parse(w["y:Json"]["#text"]),k=/\{Binding\s+([^}]+)\}/g;null!=(u=k.exec(r));)if(t=u[1].split(","),+h=w[t[0]])1<t.length&&t[1].indexOf("Converter=")&&(D=mxGraphMlConverters[t[1].substr(11)])&&(h=[h],t[2]&&h.push(t[2].substr(11)),h=D.apply(null,h)),p.push({match:u[0],repl:mxUtils.htmlEntities(h)});for(u=0;u<p.length;u++)r=r.replace(p[u].match,p[u].repl);p=[];for(w=/<text.+data-content="([^"]+).+<\/text>/g;null!=(u=w.exec(r));)h=u[0].substr(0,u[0].length-7)+u[1]+"</text>",p.push({match:u[0],repl:h});for(u=0;u<p.length;u++)r=r.replace(p[u].match,p[u].repl);r=x+r+"</g></svg>";z.shape="image";z.image=+"data:image/svg+xml,"+(window.btoa?btoa(r):Base64.encode(r))}};+mxGraphMlCodec.prototype.handleCompoundShape=function(r,w,x,z){var k=w.shape;if(k&&0==k.indexOf("js:")){switch(k){case "js:bpmnArtifactShadow":w.shadow="1";case "js:bpmnArtifact":w.shape=w.symbol;delete w.fillColor;delete w.strokeColor;delete w.gradientColor;this.handleCompoundShape(r,w,x,z);break;case "js:bpmnDataObjectShadow":case "js:bpmnDataObject":w.shape="note;size=16";x=x["bpmn:DataObjectNodeStyle"]||x["y:GenericNode"]||x["y:GenericGroupNode"];z={};this.mapObject(x,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.dataObjectType":"dataObjectType",+"com.yworks.bpmn.marker1":"marker1"}},z);if("true"==x.collection||"bpmn_marker_parallel"==z.marker1){var t=new mxCell("",new mxGeometry(.5,1,10,10),"html=1;whiteSpace=wrap;shape=parallelMarker;");t.vertex=!0;t.geometry.relative=!0;t.geometry.offset=new mxPoint(-5,-10);r.insert(t)}if("INPUT"==x.type||"data_object_type_input"==z.dataObjectType)t=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;"),t.vertex=!0,t.geometry.relative=!0,t.geometry.offset=new mxPoint(2,+2),r.insert(t);else if("OUTPUT"==x.type||"data_object_type_output"==z.dataObjectType)t=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;fillColor=#000000;"),t.vertex=!0,t.geometry.relative=!0,t.geometry.offset=new mxPoint(2,2),r.insert(t);break;case "js:BpmnChoreography":this.mapObject(x,{defaults:{shape:"swimlane;collapsible=0;rounded=1",startSize:"20",strokeColor:"#006000",fillColor:"#CCCCCC"}},w);t=r.geometry;t=new mxCell("",new mxGeometry(0,t.height-+20,t.width,20),"strokeColor=#006000;fillColor=#777777;rounded=1");t.vertex=!0;r.insert(t);z&&z.lblTxts&&(r.value=z.lblTxts[0],t.value=z.lblTxts[1]);break;case "js:bpmnActivityShadow":case "js:bpmnActivity":w.shape="ext;rounded=1";z={};x=x["y:GenericNode"]||x["y:GenericGroupNode"];this.mapObject(x,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.taskType":"taskType","com.yworks.bpmn.activityType":"activityType","com.yworks.bpmn.marker1":"marker1","com.yworks.bpmn.marker2":"marker2","com.yworks.bpmn.marker3":"marker3",+"com.yworks.bpmn.marker4":"marker4"}},z);switch(z.activityType){case "activity_type_transaction":w["double"]="1"}switch(z.taskType){case "task_type_send":var u=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;fillColor=#000000;strokeColor=#FFFFFF;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_receive":u=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_user":u=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");+u.geometry.offset=new mxPoint(4,5);break;case "task_type_manual":u=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_business_rule":u=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_service":u=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");u.geometry.offset=new mxPoint(4,5);break;case "task_type_script":u=+new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),u.geometry.offset=new mxPoint(4,5)}u&&(u.vertex=!0,u.geometry.relative=!0,r.insert(u),u=null);var p=0;for(t=1;4>=t;t++)z["marker"+t]&&p++;x=-7.5*p-2*(p-1);for(t=1;t<=p;t++){switch(z["marker"+t]){case "bpmn_marker_closed":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_open":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=rect;part=1;");u.geometry.offset=+new mxPoint(x,-20);var h=new mxCell("",new mxGeometry(.5,.5,8,1),"shape=rect;part=1;");h.geometry.offset=new mxPoint(-4,-1);h.geometry.relative=!0;h.vertex=!0;u.insert(h);break;case "bpmn_marker_loop":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_parallel":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_sequential":u=new mxCell("",+new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_ad_hoc":u=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;fillColor=#000000");u.geometry.offset=new mxPoint(x,-17);break;case "bpmn_marker_compensation":u=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),u.geometry.offset=new mxPoint(x,-18)}u.geometry.relative=!0;u.vertex=!0;r.insert(u);+x+=20}break;case "js:table":w.shape="swimlane;collapsible=0;swimlaneLine=0";z=x["yjs:TableNodeStyle"]||x["demotablestyle:DemoTableStyle"];!z&&x["bpmn:PoolNodeStyle"]&&(z=x["bpmn:PoolNodeStyle"]["yjs:TableNodeStyle"]);this.mapObject(z,{"backgroundStyle.demotablestyle:TableBackgroundStyle":{"insetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableBackgroundFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},"tableBackgroundStroke.yjs:Stroke":{fill:{key:"strokeColor",+mod:"color"},thickness:"strokeWidth"}},"backgroundStyle.yjs:ShapeNodeStyle.fill":{key:"fillColor",mod:"color"},"backgroundStyle.yjs:ShapeNodeStyle.fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"}},w);w.swimlaneFillColor=w.fillColor;z=z.table["y:Table"];var D=p=0,A={x:0};x=0;(t=z.Insets)?(t=t.split(","),"0"!=t[0]?(w.startSize=t[0],A.x=parseFloat(t[0]),w.horizontal="0"):"0"!=t[1]&&(w.startSize=t[1],x=parseFloat(t[1]),D+=x)):w.startSize="0";var N={},E={Insets:function(Oa,xa){xa.startSize=+Oa.split(",")[0]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",+mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"height"};this.mapObject(z.RowDefaults,{defaults:{shape:"swimlane;collapsible=0;horizontal=0",startSize:"0"},"y:StripeDefaults":E},N);u={};h={Insets:function(Oa,xa){xa.startSize=Oa.split(",")[1]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",+mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"width"};this.mapObject(z.ColumnDefaults,{defaults:{shape:"swimlane;collapsible=0",startSize:"0",fillColor:"none"},+"y:StripeDefaults":h},u);t=r.geometry;p=z.Rows["y:Row"];D+=parseFloat(u.startSize);var L=A.x,X=A.x;A.lx=A.x;if(p)for(p instanceof Array||(p=[p]),t=0;t<p.length;t++)A.x=X,A.lx=X,D=this.addRow(p[t],r,t&1,D,A,E,N),L=Math.max(A.x,L);z=z.Columns["y:Column"];p=L;if(z)for(z instanceof Array||(z=[z]),t=0;t<z.length;t++)p=this.addColumn(z[t],r,t&1,p,x,h,u);break;case "js:table2":w.shape="swimlane;collapsible=0;swimlaneLine=0";z={};this.mapObject(x,{"y:TableNode":{"y:StyleProperties.y:Property":{"yed.table.section.color":{key:"secColor",mod:"color"},"yed.table.header.height":"headerH","yed.table.header.color.main":{key:"headerColor",mod:"color"},"yed.table.header.color.alternating":{key:"headerColorAlt",mod:"color"},"yed.table.lane.color.main":{key:"laneColor",mod:"color"},"yed.table.lane.color.alternating":{key:"laneColorAlt",mod:"color"},"yed.table.lane.style":"laneStyle","com.yworks.bpmn.type":"isHorz",POOL_LANE_COLOR_ALTERNATING:{key:"laneColorAlt",mod:"color"},POOL_LANE_COLOR_MAIN:{key:"laneColor",mod:"color"},POOL_LANE_STYLE:"laneStyle",-POOL_HEADER_COLOR_MAIN:{key:"headerColor",mod:"color"},POOL_HEADER_COLOR_ALTERNATING:{key:"headerColorAlt",mod:"color"},POOL_TABLE_SECTION_COLOR:{key:"secColor",mod:"color"}},"y:Table":{"y:DefaultColumnInsets.top":"colHHeight","y:DefaultRowInsets.left":"rowHWidth","y:Insets":{top:"tblHHeight",left:"tblHWidth"}}}},B);y.swimlaneFillColor=y.fillColor;n=b=0;"pool_type_lane_and_column"==B.isHorz||"pool_type_empty"==B.isHorz||"pool_type_lane"==B.isHorz?n=parseFloat(B.tblHWidth):b=parseFloat(B.tblHHeight);-y.startSize=b?b:n;try{a=z["y:TableNode"]["y:Table"]["y:Rows"]["y:Row"];c=z["y:TableNode"]["y:Table"]["y:Columns"]["y:Column"];d="lane.style.rows"==B.laneStyle||"lane_style_rows"==B.laneStyle;a instanceof Array||(a=[a]);c instanceof Array||(c=[c]);f=parseFloat(B.rowHWidth);for(h=0;h<a.length;h++)a[h]["y:Insets"]&&(f=Math.max(f,parseFloat(a[h]["y:Insets"].left)+parseFloat(a[h]["y:Insets"].right)));k=parseFloat(B.colHHeight);for(h=0;h<c.length;h++)c[h]["y:Insets"]&&(k=Math.max(k,parseFloat(c[h]["y:Insets"].top)+-parseFloat(c[h]["y:Insets"].bottom)));d?(this.addTbl2Rows(g,a,b,n,f,k,d,B),this.addTbl2Cols(g,c,b,n,f,k,d,B)):(this.addTbl2Cols(g,c,b,n,f,k,d,B),this.addTbl2Rows(g,a,b,n,f,k,d,B))}catch(A){}break;case "js:relationship_big_entity":y.shape="swimlane;startSize=30;rounded=1;arcSize=5;collapsible=0";if(g=z["y:GenericNode"]["y:Fill"])y.fillColor=g.color2,y.swimlaneFillColor=g.color;break;case "js:relationship_attribute":y.shape="1"==y["double"]?"doubleEllipse":"ellipse"}0<m.indexOf("Shadow")&&(y.shadow=+POOL_HEADER_COLOR_MAIN:{key:"headerColor",mod:"color"},POOL_HEADER_COLOR_ALTERNATING:{key:"headerColorAlt",mod:"color"},POOL_TABLE_SECTION_COLOR:{key:"secColor",mod:"color"}},"y:Table":{"y:DefaultColumnInsets.top":"colHHeight","y:DefaultRowInsets.left":"rowHWidth","y:Insets":{top:"tblHHeight",left:"tblHWidth"}}}},z);w.swimlaneFillColor=w.fillColor;E=u=0;"pool_type_lane_and_column"==z.isHorz||"pool_type_empty"==z.isHorz||"pool_type_lane"==z.isHorz?E=parseFloat(z.tblHWidth):u=parseFloat(z.tblHHeight);+w.startSize=u?u:E;try{p=x["y:TableNode"]["y:Table"]["y:Rows"]["y:Row"];h=x["y:TableNode"]["y:Table"]["y:Columns"]["y:Column"];D="lane.style.rows"==z.laneStyle||"lane_style_rows"==z.laneStyle;p instanceof Array||(p=[p]);h instanceof Array||(h=[h]);A=parseFloat(z.rowHWidth);for(t=0;t<p.length;t++)p[t]["y:Insets"]&&(A=Math.max(A,parseFloat(p[t]["y:Insets"].left)+parseFloat(p[t]["y:Insets"].right)));N=parseFloat(z.colHHeight);for(t=0;t<h.length;t++)h[t]["y:Insets"]&&(N=Math.max(N,parseFloat(h[t]["y:Insets"].top)++parseFloat(h[t]["y:Insets"].bottom)));D?(this.addTbl2Rows(r,p,u,E,A,N,D,z),this.addTbl2Cols(r,h,u,E,A,N,D,z)):(this.addTbl2Cols(r,h,u,E,A,N,D,z),this.addTbl2Rows(r,p,u,E,A,N,D,z))}catch(Oa){}break;case "js:relationship_big_entity":w.shape="swimlane;startSize=30;rounded=1;arcSize=5;collapsible=0";if(r=x["y:GenericNode"]["y:Fill"])w.fillColor=r.color2,w.swimlaneFillColor=r.color;break;case "js:relationship_attribute":w.shape="1"==w["double"]?"doubleEllipse":"ellipse"}0<k.indexOf("Shadow")&&(w.shadow="1")}};-mxGraphMlCodec.prototype.addTbl2Rows=function(g,y,z,B,m,h,b,a){z+=h;for(var c=null!=a.isHorz,d=0;d<y.length;d++){var f=d&1,k=new mxCell;k.vertex=!0;var n={shape:"swimlane;collapsible=0;horizontal=0",startSize:m,fillColor:a.secColor||"none",swimlaneLine:c?"0":"1"};0==parseFloat(n.startSize)&&(n.fillColor="none",n.swimlaneLine="0");if(b){var q=f?a.headerColorAlt:a.headerColor;n.swimlaneFillColor=f?a.laneColorAlt:a.laneColor;n.fillColor=q?q:n.swimlaneFillColor}f=parseFloat(y[d].height);q=c&&0==d?h:0;-k.geometry=new mxGeometry(B,z-q,g.geometry.width-B,f+q);z+=f;k.style=this.styleMap2Str(n);g.insert(k)}};-mxGraphMlCodec.prototype.addTbl2Cols=function(g,y,z,B,m,h,b,a){B=m+B;for(var c=null!=a.isHorz,d=0;d<y.length;d++){var f=d&1,k=new mxCell;k.vertex=!0;var n={shape:"swimlane;collapsible=0",startSize:h,fillColor:a.secColor||"none",swimlaneLine:c?"0":"1"};0==parseFloat(n.startSize)&&(n.fillColor="none");if(!b){var q=f?a.headerColorAlt:a.headerColor;n.swimlaneFillColor=f?a.laneColorAlt:a.laneColor;n.fillColor=q?q:n.swimlaneFillColor}f=parseFloat(y[d].width);q=c&&0==d?m:0;k.geometry=new mxGeometry(B-q,-z,f+q,g.geometry.height-z);B+=f;k.style=this.styleMap2Str(n);g.insert(k)}};-mxGraphMlCodec.prototype.addRow=function(g,y,z,B,m,h,b){var a=new mxCell;a.vertex=!0;var c=mxUtils.clone(b);this.mapObject(g,h,c);z?(c.oddFill&&(c.fillColor=c.oddFill),c.oddLaneFill&&(c.swimlaneFillColor=c.oddLaneFill)):(c.evenFill&&(c.fillColor=c.evenFill),c.evenLaneFill&&(c.swimlaneFillColor=c.evenLaneFill));z=parseFloat(c.height);a.geometry=new mxGeometry(m.lx,B,y.geometry.width-m.lx,z);var d=g.Labels;d&&this.addLabels(a,d,c);a.style=this.styleMap2Str(c);y.insert(a);g=g["y:Row"];m.lx=0;c.startSize&&-(m.lx=parseFloat(c.startSize),m.x+=m.lx);y=c=m.x;d=m.lx;var f=0;if(g){g instanceof Array||(g=[g]);for(var k=0;k<g.length;k++)m.x=c,m.lx=d,f=this.addRow(g[k],a,k&1,f,m,h,b),y=Math.max(m.x,y)}m.x=y;z=Math.max(z,f);a.geometry.height=z;return B+=z};-mxGraphMlCodec.prototype.addColumn=function(g,y,z,B,m,h,b){var a=new mxCell;a.vertex=!0;var c=mxUtils.clone(b);this.mapObject(g,h,c);z?(c.oddFill&&(c.fillColor=c.oddFill),c.oddLaneFill&&(c.swimlaneFillColor=c.oddLaneFill)):(c.evenFill&&(c.fillColor=c.evenFill),c.evenLaneFill&&(c.swimlaneFillColor=c.evenLaneFill));z=parseFloat(c.width);a.geometry=new mxGeometry(B,m,z,y.geometry.height-m);var d=g.Labels;d&&this.addLabels(a,d,c);a.style=this.styleMap2Str(c);y.insert(a);g=g["y:Column"];y=0;if(g)for(g instanceof-Array||(g=[g]),c=0;c<g.length;c++)y=this.addColumn(g[c],a,c&1,y,m,h,b);z=Math.max(z,y);a.geometry.width=z;return B+=z};mxGraphMlCodec.prototype.handleFixedRatio=function(g,y){y=y.shape;g=g.geometry;if(y&&g)if(0<y.indexOf(";aspect=fixed"))y=Math.min(g.height,g.width),y==g.height&&(g.x+=(g.width-y)/2),g.height=y,g.width=y;else if(0<y.indexOf(";rotation=90")||0<y.indexOf(";rotation=-90")){y=g.height;var z=g.width;g.height=z;g.width=y;y=(y-z)/2;g.x-=y;g.y+=y}};-mxGraphMlCodec.prototype.addNodeGeo=function(g,y,z,B){var m=y[mxGraphMlConstants.RECT],h=0,b=0,a=30,c=30;m?(h=m[mxGraphMlConstants.X],b=m[mxGraphMlConstants.Y],a=m[mxGraphMlConstants.WIDTH],c=m[mxGraphMlConstants.HEIGHT]):(h=y[mxGraphMlConstants.X_L]||h,b=y[mxGraphMlConstants.Y_L]||b,a=y[mxGraphMlConstants.WIDTH_L]||a,c=y[mxGraphMlConstants.HEIGHT_L]||c);g=g.geometry;g.x=parseFloat(h)-z;g.y=parseFloat(b)-B;g.width=parseFloat(a);g.height=parseFloat(c)};-mxGraphMlCodec.prototype.importEdge=function(g,y,z,B,m){var h=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA),b=g.getAttribute(mxGraphMlConstants.ID),a=g.getAttribute(mxGraphMlConstants.EDGE_SOURCE),c=g.getAttribute(mxGraphMlConstants.EDGE_TARGET),d=g.getAttribute(mxGraphMlConstants.EDGE_SOURCE_PORT);g=g.getAttribute(mxGraphMlConstants.EDGE_TARGET_PORT);a=this.nodesMap[a];c=this.nodesMap[c];z=y.insertEdge(z,null,"",a.node,c.node,"graphMLId="+b);b={graphMlID:b};for(var f=0;f<h.length;f++){var k=-this.dataElem2Obj(h[f]),n=k["y:PolyLineEdge"]||k["y:GenericEdge"]||k["y:ArcEdge"]||k["y:BezierEdge"]||k["y:QuadCurveEdge"]||k["y:SplineEdge"];k.key==this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY].key?this.addEdgeGeo(z,k,B,m):k.key==this.edgesKeys[mxGraphMlConstants.EDGE_STYLE].key?this.addEdgeStyle(z,k,b):k.key==this.edgesKeys[mxGraphMlConstants.EDGE_LABELS].key?this.addLabels(z,k,b,y):n&&(this.addEdgeStyle(z,k,b),k=this.addEdgePath(z,n["y:Path"],b,B,m),n["y:EdgeLabel"]&&this.addLabels(z,n["y:EdgeLabel"],-b,y,k),null!=b.shape&&0==b.shape.indexOf("link")&&(b.width=b.strokeWidth,b.strokeWidth=1))}a.ports&&d&&(y=a.ports[d],y.pos&&(b.exitX=y.pos.x,b.exitY=y.pos.y));c.ports&&g&&(y=c.ports[g],y.pos&&(b.entryX=y.pos.x,b.entryY=y.pos.y));z.style=this.styleMap2Str(b);return z};-mxGraphMlCodec.prototype.addEdgeGeo=function(g,y,z,B){if(y=y[mxGraphMlConstants.Y_BEND]){for(var m=[],h=0;h<y.length;h++){var b=y[h][mxGraphMlConstants.LOCATION];b&&(b=b.split(","),m.push(new mxPoint(parseFloat(b[0])-z,parseFloat(b[1])-B)))}g.geometry.points=m}};-mxGraphMlCodec.prototype.addEdgePath=function(g,y,z,B,m){var h=[];if(y){var b=parseFloat(y.sx),a=parseFloat(y.sy),c=parseFloat(y.tx),d=parseFloat(y.ty),f=g.source.geometry;0!=b||0!=a?(z.exitX=(b+f.width/2)/f.width,z.exitY=(a+f.height/2)/f.height,h.push(new mxPoint(f.x+z.exitX*f.width-B,f.y+z.exitY*f.height-m))):h.push(new mxPoint(f.x+f.width/2-B,f.y+f.height/2-m));b=g.target.geometry;0!=c||0!=d?(z.entryX=(c+b.width/2)/b.width,z.entryY=(d+b.height/2)/b.height,z=new mxPoint(b.x+z.entryX*b.width-B,b.y+-z.entryY*b.height-m)):z=new mxPoint(b.x+b.width/2-B,b.y+b.height/2-m);if(y=y["y:Point"]){y instanceof Array||(y=[y]);c=[];for(d=0;d<y.length;d++)b=new mxPoint(parseFloat(y[d].x)-B,parseFloat(y[d].y)-m),c.push(b),h.push(b);g.geometry.points=c}h.push(z)}return h};-mxGraphMlCodec.prototype.addEdgeStyle=function(g,y,z){g=function(a,c){c.dashed=1;switch(a){case "DashDot":a="3 1 1 1";break;case "Dot":a="1 1";break;case "DashDotDot":a="3 1 1 1 1 1";break;case "Dash":a="3 1";break;default:a=a.replace(/0/g,"1")}a&&(0>a.indexOf(" ")&&(a=a+" "+a),c.dashPattern=a)};var B=function(a,c){c.endFill="WHITE"==a||0==a.indexOf("white_")||0==a.indexOf("transparent_")?"0":"1"},m=function(a,c){c.startFill="WHITE"==a||0==a.indexOf("white_")||0==a.indexOf("transparent_")?"0":"1"},-h={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(a,c){"line"!=a&&(c.dashed=1);var d=null;switch(a){case "dashed":d="3 1";break;case "dotted":d="1 1";break;case "dashed_dotted":d="3 2 1 2"}d&&(c.dashPattern=d)},width:"strokeWidth"},"y:Arrows":{source:function(a,c){c.startArrow=mxGraphMlArrowsMap[a]||"classic";m(a,c)},target:function(a,c){c.endArrow=mxGraphMlArrowsMap[a]||"classic";B(a,c)}},"y:BendStyle":{smoothed:{key:"rounded",-mod:"bool"}}},b=mxUtils.clone(h);b.defaults.curved="1";this.mapObject(y,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(a,c){c.rounded=a&&0<parseFloat(a)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:g,"dashStyle.yjs:DashStyle.dashes":g,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"},targetArrow:{key:"endArrow",-mod:"arrow"},"targetArrow.yjs:Arrow":{defaults:{endArrow:"classic",endFill:"1",endSize:"6"},fill:B,scale:{key:"endSize",mod:"scale",scale:5},type:{key:"endArrow",mod:"arrow"}},sourceArrow:{key:"startArrow",mod:"arrow"},"sourceArrow.yjs:Arrow":{defaults:{startArrow:"classic",startFill:"1",startSize:"6"},fill:m,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":h,"y:GenericEdge":h,"y:ArcEdge":b,"y:BezierEdge":b,"y:QuadCurveEdge":b,"y:SplineEdge":b},z)};-mxGraphMlCodec.prototype.addLabels=function(g,y,z,B,m){z=g.getChildCount();var h=y[mxGraphMlConstants.Y_LABEL]||y;y=[];var b=[],a=[];if(h){h instanceof Array||(h=[h]);for(var c=0;c<h.length;c++){var d=h[c],f={},k=d[mxGraphMlConstants.TEXT]||d;k&&(k=k["#text"]);var n=d[mxGraphMlConstants.LAYOUTPARAMETER]||d||{},q=function(K,L){K&&(K=K.toUpperCase());var S=L.fontStyle||0;switch(K){case "ITALIC":S|=2;break;case "BOLD":S|=1;break;case "UNDERLINE":S|=4}L.fontStyle=S};this.mapObject(d,{"Style.yjs:DefaultLabelStyle":{backgroundFill:{key:"labelBackgroundColor",-mod:"color"},"backgroundFill.yjs:SolidColorFill.color":{key:"labelBackgroundColor",mod:"color"},backgroundStroke:{key:"labelBorderColor",mod:"color"},"backgroundStroke.yjs:Stroke.fill":{key:"labelBorderColor",mod:"color"},textFill:{key:"fontColor",mod:"color"},"textFill.yjs:SolidColorFill.color":{key:"fontColor",mod:"color"},textSize:"fontSize",horizontalTextAlignment:"align",verticalTextAlignment:"verticalAlign",wrapping:function(K,L){K&&(L.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",-fontSize:"fontSize",fontStyle:q,fontWeight:q,textDecoration:q}},"Style.y:VoidLabelStyle":function(K,L){L.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:q,underlinedText:function(K,L){var S=L.fontStyle||0;"true"==K&&(S|=4);L.fontStyle=S},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},f);f.VoidLbl||"0"==f.hasText||(y.push(k),b.push(f),a.push(n))}}for(c=-0;c<y.length;c++)if(y[c]&&(!a[c]||!a[c]["bpmn:ParticipantParameter"])){y[c]=mxUtils.htmlEntities(y[c],!1).replace(/\n/g,"<br/>");n=g.geometry;f=new mxCell(y[c],new mxGeometry(0,0,n.width,n.height),"text;html=1;spacing=0;"+this.styleMap2Str(b[c]));f.vertex=!0;g.insert(f,z);h=f.geometry;if(a[c]["y:RatioAnchoredLabelModelParameter"])n=mxUtils.getSizeForString(y[c],b[c].fontSize,b[c].fontFamily),(d=a[c]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(d=d.split(","),h.x=parseFloat(d[0]),h.y=parseFloat(d[1]),-h.width=n.width,h.height=n.height,f.style+=";spacingTop=-4;"):f.style+=";align=center;";else if(a[c]["y:InteriorLabelModel"]){switch(a[c]["y:InteriorLabelModel"]){case "Center":f.style+=";verticalAlign=middle;";break;case "North":h.height=1;break;case "West":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90"}f.style+=";align=center;"}else if(a[c]["y:StretchStripeLabelModel"]||a[c]["y:StripeLabelModelParameter"])switch(a[c]["y:StretchStripeLabelModel"]||a[c]["y:StripeLabelModelParameter"].Position){case "North":h.height=-1;break;case "West":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90;"}else if(a[c]["bpmn:PoolHeaderLabelModel"]){switch(a[c]["bpmn:PoolHeaderLabelModel"]){case "NORTH":h.height=1;break;case "WEST":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90;"}f.style+=";align=center;"}else if(a[c]["y:InteriorStretchLabelModelParameter"])f.style+=";align=center;";else if(a[c]["y:ExteriorLabelModel"])switch(a[c]["y:ExteriorLabelModel"]){case "East":f.style+=-";labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;";break;case "South":f.style+=";labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;";break;case "North":f.style+=";labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;";break;case "West":f.style+=";labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;"}else if(a[c]["y:FreeEdgeLabelModelParameter"]){h.relative=!0;h.adjustIt=!0;n=a[c]["y:FreeEdgeLabelModelParameter"];-d=n.Ratio;q=n.Distance;var t=n.Angle;d&&(h.x=parseFloat(d));q&&(h.y=parseFloat(q));t&&(f.style+=";rotation="+parseFloat(t)*(180/Math.PI));f.style+=";verticalAlign=middle;"}else if(a[c]["y:EdgePathLabelModelParameter"]){h.relative=!0;n=a[c]["y:EdgePathLabelModelParameter"];k=n.SideOfEdge;d=n.SegmentRatio;h.x=d?2*parseFloat(d)-1:0;if(k)switch(k){case "RightOfEdge":h.y=-15;break;case "LeftOfEdge":h.y=15}f.style+=";verticalAlign=middle;"}else if(n=parseFloat(a[c].x),d=parseFloat(a[c].y),a[c].width&&(h.width=-parseFloat(a[c].width)),a[c].height&&(h.height=parseFloat(a[c].height)),g.edge)if(h.relative=!0,h.x=0,h.y=0,f=g.source.geometry.getCenterX()-g.target.geometry.getCenterX(),k=g.source.geometry.getCenterY()-g.target.geometry.getCenterY(),B&&m&&a[c]["y:ModelParameter"]&&a[c]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){n=a[c]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"];t=parseFloat(n.angle);q=parseFloat(n.distance);var A=n.position;d=parseFloat(n.ratio);n=parseFloat(n.segment);var C=-new mxCellState;C.absolutePoints=m;B.view.updateEdgeBounds(C);var I="left"==A?1:-1;if(-1==n&&6.283185307179586==t)h.offset=new mxPoint(1>Math.abs(d)?C.segments[0]*d:d,I*q);else{-1==n&&(n=0);for(var Q=t=0;Q<n;Q++)t+=C.segments[Q];t+=C.segments[n]*d;h.x=t/C.length*2-1;h.y=(("center"==A?0:q)+h.height/2*I*(Math.abs(f)>Math.abs(k)?1:-1))*I}}else isNaN(n)||isNaN(d)||(h.offset=new mxPoint(n+f/2+(0<f?-h.width:h.width),d));else h.x=n||0,h.y=d||0;b[c].rotation&&270==b[c].rotation&&(h.x-=h.height/2)}return{lblTxts:y,-lblStyles:b}};mxGraphMlCodec.prototype.processPage=function(g,y){g=(new mxCodec).encode(g.getModel());g.setAttribute("style","default-style2");g=mxUtils.getXml(g);y='<diagram name="Page '+y+'">'+Graph.compress(g);return y+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(g,y){var z=[];for(g=g.firstChild;null!=g;g=g.nextSibling)null!=g&&1==g.nodeType&&y==g.nodeName&&z.push(g);return z};-mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(g,y){for(g=g.firstChild;null!=g;g=g.nextSibling)if(null!=g&&1==g.nodeType&&y==g.nodeName)return g;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(g){var y=[];for(g=g.firstChild;null!=g;g=g.nextSibling)null!=g&&1==g.nodeType&&y.push(g);return y};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(g){for(g=g.firstChild;null!=g;g=g.nextSibling)if(null!=g&&1==g.nodeType)return g;return null};-var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(g,y){if("string"===typeof g){for(var z=g;20<z.length&&-1<z.indexOf(" ");)z=z.substring(0,z.lastIndexOf(" "));return"true"===y?z:g.substring(z.length)}return""},"orgchartconverters.borderconverter":function(g,y){return"boolean"===typeof g?g?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(g,y){return"string"===typeof g?"string"===typeof y?"#"+g+y:"#"+g:g},"orgchartconverters.intermediateconverter":function(g,-y){return"string"===typeof g&&17<g.length?g.replace(/^(.)(\S*)(.*)/,"$1.$3"):g},"orgchartconverters.overviewconverter":function(g,y){return"string"===typeof g&&0<g.length?g.replace(/^(.)(\S*)(.*)/,"$1.$3"):""}},mxGraphMlArrowsMap={SIMPLE:"open",TRIANGLE:"block",DIAMOND:"diamond",CIRCLE:"oval",CROSS:"cross",SHORT:"classicThin",DEFAULT:"classic",NONE:"none",none:"none",white_delta_bar:"block",delta:"block",standard:"classic",diamond:"diamond",white_diamond:"diamond",white_delta:"block",plain:"open",+mxGraphMlCodec.prototype.addTbl2Rows=function(r,w,x,z,k,t,u,p){x+=t;for(var h=null!=p.isHorz,D=0;D<w.length;D++){var A=D&1,N=new mxCell;N.vertex=!0;var E={shape:"swimlane;collapsible=0;horizontal=0",startSize:k,fillColor:p.secColor||"none",swimlaneLine:h?"0":"1"};0==parseFloat(E.startSize)&&(E.fillColor="none",E.swimlaneLine="0");if(u){var L=A?p.headerColorAlt:p.headerColor;E.swimlaneFillColor=A?p.laneColorAlt:p.laneColor;E.fillColor=L?L:E.swimlaneFillColor}A=parseFloat(w[D].height);L=h&&0==D?t:0;+N.geometry=new mxGeometry(z,x-L,r.geometry.width-z,A+L);x+=A;N.style=this.styleMap2Str(E);r.insert(N)}};+mxGraphMlCodec.prototype.addTbl2Cols=function(r,w,x,z,k,t,u,p){z=k+z;for(var h=null!=p.isHorz,D=0;D<w.length;D++){var A=D&1,N=new mxCell;N.vertex=!0;var E={shape:"swimlane;collapsible=0",startSize:t,fillColor:p.secColor||"none",swimlaneLine:h?"0":"1"};0==parseFloat(E.startSize)&&(E.fillColor="none");if(!u){var L=A?p.headerColorAlt:p.headerColor;E.swimlaneFillColor=A?p.laneColorAlt:p.laneColor;E.fillColor=L?L:E.swimlaneFillColor}A=parseFloat(w[D].width);L=h&&0==D?k:0;N.geometry=new mxGeometry(z-L,+x,A+L,r.geometry.height-x);z+=A;N.style=this.styleMap2Str(E);r.insert(N)}};+mxGraphMlCodec.prototype.addRow=function(r,w,x,z,k,t,u){var p=new mxCell;p.vertex=!0;var h=mxUtils.clone(u);this.mapObject(r,t,h);x?(h.oddFill&&(h.fillColor=h.oddFill),h.oddLaneFill&&(h.swimlaneFillColor=h.oddLaneFill)):(h.evenFill&&(h.fillColor=h.evenFill),h.evenLaneFill&&(h.swimlaneFillColor=h.evenLaneFill));x=parseFloat(h.height);p.geometry=new mxGeometry(k.lx,z,w.geometry.width-k.lx,x);var D=r.Labels;D&&this.addLabels(p,D,h);p.style=this.styleMap2Str(h);w.insert(p);r=r["y:Row"];k.lx=0;h.startSize&&+(k.lx=parseFloat(h.startSize),k.x+=k.lx);w=h=k.x;D=k.lx;var A=0;if(r){r instanceof Array||(r=[r]);for(var N=0;N<r.length;N++)k.x=h,k.lx=D,A=this.addRow(r[N],p,N&1,A,k,t,u),w=Math.max(k.x,w)}k.x=w;x=Math.max(x,A);p.geometry.height=x;return z+=x};+mxGraphMlCodec.prototype.addColumn=function(r,w,x,z,k,t,u){var p=new mxCell;p.vertex=!0;var h=mxUtils.clone(u);this.mapObject(r,t,h);x?(h.oddFill&&(h.fillColor=h.oddFill),h.oddLaneFill&&(h.swimlaneFillColor=h.oddLaneFill)):(h.evenFill&&(h.fillColor=h.evenFill),h.evenLaneFill&&(h.swimlaneFillColor=h.evenLaneFill));x=parseFloat(h.width);p.geometry=new mxGeometry(z,k,x,w.geometry.height-k);var D=r.Labels;D&&this.addLabels(p,D,h);p.style=this.styleMap2Str(h);w.insert(p);r=r["y:Column"];w=0;if(r)for(r instanceof+Array||(r=[r]),h=0;h<r.length;h++)w=this.addColumn(r[h],p,h&1,w,k,t,u);x=Math.max(x,w);p.geometry.width=x;return z+=x};mxGraphMlCodec.prototype.handleFixedRatio=function(r,w){w=w.shape;r=r.geometry;if(w&&r)if(0<w.indexOf(";aspect=fixed"))w=Math.min(r.height,r.width),w==r.height&&(r.x+=(r.width-w)/2),r.height=w,r.width=w;else if(0<w.indexOf(";rotation=90")||0<w.indexOf(";rotation=-90")){w=r.height;var x=r.width;r.height=x;r.width=w;w=(w-x)/2;r.x-=w;r.y+=w}};+mxGraphMlCodec.prototype.addNodeGeo=function(r,w,x,z){var k=w[mxGraphMlConstants.RECT],t=0,u=0,p=30,h=30;k?(t=k[mxGraphMlConstants.X],u=k[mxGraphMlConstants.Y],p=k[mxGraphMlConstants.WIDTH],h=k[mxGraphMlConstants.HEIGHT]):(t=w[mxGraphMlConstants.X_L]||t,u=w[mxGraphMlConstants.Y_L]||u,p=w[mxGraphMlConstants.WIDTH_L]||p,h=w[mxGraphMlConstants.HEIGHT_L]||h);r=r.geometry;r.x=parseFloat(t)-x;r.y=parseFloat(u)-z;r.width=parseFloat(p);r.height=parseFloat(h)};+mxGraphMlCodec.prototype.importEdge=function(r,w,x,z,k){var t=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA),u=r.getAttribute(mxGraphMlConstants.ID),p=r.getAttribute(mxGraphMlConstants.EDGE_SOURCE),h=r.getAttribute(mxGraphMlConstants.EDGE_TARGET),D=r.getAttribute(mxGraphMlConstants.EDGE_SOURCE_PORT);r=r.getAttribute(mxGraphMlConstants.EDGE_TARGET_PORT);p=this.nodesMap[p];h=this.nodesMap[h];x=w.insertEdge(x,null,"",p.node,h.node,"graphMLId="+u);u={graphMlID:u};for(var A=0;A<t.length;A++){var N=+this.dataElem2Obj(t[A]),E=N["y:PolyLineEdge"]||N["y:GenericEdge"]||N["y:ArcEdge"]||N["y:BezierEdge"]||N["y:QuadCurveEdge"]||N["y:SplineEdge"];N.key==this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY].key?this.addEdgeGeo(x,N,z,k):N.key==this.edgesKeys[mxGraphMlConstants.EDGE_STYLE].key?this.addEdgeStyle(x,N,u):N.key==this.edgesKeys[mxGraphMlConstants.EDGE_LABELS].key?this.addLabels(x,N,u,w):E&&(this.addEdgeStyle(x,N,u),N=this.addEdgePath(x,E["y:Path"],u,z,k),E["y:EdgeLabel"]&&this.addLabels(x,E["y:EdgeLabel"],+u,w,N),null!=u.shape&&0==u.shape.indexOf("link")&&(u.width=u.strokeWidth,u.strokeWidth=1))}p.ports&&D&&(w=p.ports[D],w.pos&&(u.exitX=w.pos.x,u.exitY=w.pos.y));h.ports&&r&&(w=h.ports[r],w.pos&&(u.entryX=w.pos.x,u.entryY=w.pos.y));x.style=this.styleMap2Str(u);return x};+mxGraphMlCodec.prototype.addEdgeGeo=function(r,w,x,z){if(w=w[mxGraphMlConstants.Y_BEND]){for(var k=[],t=0;t<w.length;t++){var u=w[t][mxGraphMlConstants.LOCATION];u&&(u=u.split(","),k.push(new mxPoint(parseFloat(u[0])-x,parseFloat(u[1])-z)))}r.geometry.points=k}};+mxGraphMlCodec.prototype.addEdgePath=function(r,w,x,z,k){var t=[];if(w){var u=parseFloat(w.sx),p=parseFloat(w.sy),h=parseFloat(w.tx),D=parseFloat(w.ty),A=r.source.geometry;0!=u||0!=p?(x.exitX=(u+A.width/2)/A.width,x.exitY=(p+A.height/2)/A.height,t.push(new mxPoint(A.x+x.exitX*A.width-z,A.y+x.exitY*A.height-k))):t.push(new mxPoint(A.x+A.width/2-z,A.y+A.height/2-k));u=r.target.geometry;0!=h||0!=D?(x.entryX=(h+u.width/2)/u.width,x.entryY=(D+u.height/2)/u.height,x=new mxPoint(u.x+x.entryX*u.width-z,u.y++x.entryY*u.height-k)):x=new mxPoint(u.x+u.width/2-z,u.y+u.height/2-k);if(w=w["y:Point"]){w instanceof Array||(w=[w]);h=[];for(D=0;D<w.length;D++)u=new mxPoint(parseFloat(w[D].x)-z,parseFloat(w[D].y)-k),h.push(u),t.push(u);r.geometry.points=h}t.push(x)}return t};+mxGraphMlCodec.prototype.addEdgeStyle=function(r,w,x){r=function(p,h){h.dashed=1;switch(p){case "DashDot":p="3 1 1 1";break;case "Dot":p="1 1";break;case "DashDotDot":p="3 1 1 1 1 1";break;case "Dash":p="3 1";break;default:p=p.replace(/0/g,"1")}p&&(0>p.indexOf(" ")&&(p=p+" "+p),h.dashPattern=p)};var z=function(p,h){h.endFill="WHITE"==p||0==p.indexOf("white_")||0==p.indexOf("transparent_")?"0":"1"},k=function(p,h){h.startFill="WHITE"==p||0==p.indexOf("white_")||0==p.indexOf("transparent_")?"0":"1"},+t={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(p,h){"line"!=p&&(h.dashed=1);var D=null;switch(p){case "dashed":D="3 1";break;case "dotted":D="1 1";break;case "dashed_dotted":D="3 2 1 2"}D&&(h.dashPattern=D)},width:"strokeWidth"},"y:Arrows":{source:function(p,h){h.startArrow=mxGraphMlArrowsMap[p]||"classic";k(p,h)},target:function(p,h){h.endArrow=mxGraphMlArrowsMap[p]||"classic";z(p,h)}},"y:BendStyle":{smoothed:{key:"rounded",+mod:"bool"}}},u=mxUtils.clone(t);u.defaults.curved="1";this.mapObject(w,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(p,h){h.rounded=p&&0<parseFloat(p)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:r,"dashStyle.yjs:DashStyle.dashes":r,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"},targetArrow:{key:"endArrow",+mod:"arrow"},"targetArrow.yjs:Arrow":{defaults:{endArrow:"classic",endFill:"1",endSize:"6"},fill:z,scale:{key:"endSize",mod:"scale",scale:5},type:{key:"endArrow",mod:"arrow"}},sourceArrow:{key:"startArrow",mod:"arrow"},"sourceArrow.yjs:Arrow":{defaults:{startArrow:"classic",startFill:"1",startSize:"6"},fill:k,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":t,"y:GenericEdge":t,"y:ArcEdge":u,"y:BezierEdge":u,"y:QuadCurveEdge":u,"y:SplineEdge":u},x)};+mxGraphMlCodec.prototype.addLabels=function(r,w,x,z,k){x=r.getChildCount();var t=w[mxGraphMlConstants.Y_LABEL]||w;w=[];var u=[],p=[];if(t){t instanceof Array||(t=[t]);for(var h=0;h<t.length;h++){var D=t[h],A={},N=D[mxGraphMlConstants.TEXT]||D;N&&(N=N["#text"]);var E=D[mxGraphMlConstants.LAYOUTPARAMETER]||D||{},L=function(Fa,Ca){Fa&&(Fa=Fa.toUpperCase());var Ga=Ca.fontStyle||0;switch(Fa){case "ITALIC":Ga|=2;break;case "BOLD":Ga|=1;break;case "UNDERLINE":Ga|=4}Ca.fontStyle=Ga};this.mapObject(D,{"Style.yjs:DefaultLabelStyle":{backgroundFill:{key:"labelBackgroundColor",+mod:"color"},"backgroundFill.yjs:SolidColorFill.color":{key:"labelBackgroundColor",mod:"color"},backgroundStroke:{key:"labelBorderColor",mod:"color"},"backgroundStroke.yjs:Stroke.fill":{key:"labelBorderColor",mod:"color"},textFill:{key:"fontColor",mod:"color"},"textFill.yjs:SolidColorFill.color":{key:"fontColor",mod:"color"},textSize:"fontSize",horizontalTextAlignment:"align",verticalTextAlignment:"verticalAlign",wrapping:function(Fa,Ca){Fa&&(Ca.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",+fontSize:"fontSize",fontStyle:L,fontWeight:L,textDecoration:L}},"Style.y:VoidLabelStyle":function(Fa,Ca){Ca.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:L,underlinedText:function(Fa,Ca){var Ga=Ca.fontStyle||0;"true"==Fa&&(Ga|=4);Ca.fontStyle=Ga},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},A);A.VoidLbl||"0"==A.hasText||(w.push(N),u.push(A),p.push(E))}}for(h=+0;h<w.length;h++)if(w[h]&&(!p[h]||!p[h]["bpmn:ParticipantParameter"])){w[h]=mxUtils.htmlEntities(w[h],!1).replace(/\n/g,"<br/>");E=r.geometry;A=new mxCell(w[h],new mxGeometry(0,0,E.width,E.height),"text;html=1;spacing=0;"+this.styleMap2Str(u[h]));A.vertex=!0;r.insert(A,x);t=A.geometry;if(p[h]["y:RatioAnchoredLabelModelParameter"])E=mxUtils.getSizeForString(w[h],u[h].fontSize,u[h].fontFamily),(D=p[h]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(D=D.split(","),t.x=parseFloat(D[0]),t.y=parseFloat(D[1]),+t.width=E.width,t.height=E.height,A.style+=";spacingTop=-4;"):A.style+=";align=center;";else if(p[h]["y:InteriorLabelModel"]){switch(p[h]["y:InteriorLabelModel"]){case "Center":A.style+=";verticalAlign=middle;";break;case "North":t.height=1;break;case "West":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90"}A.style+=";align=center;"}else if(p[h]["y:StretchStripeLabelModel"]||p[h]["y:StripeLabelModelParameter"])switch(p[h]["y:StretchStripeLabelModel"]||p[h]["y:StripeLabelModelParameter"].Position){case "North":t.height=+1;break;case "West":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90;"}else if(p[h]["bpmn:PoolHeaderLabelModel"]){switch(p[h]["bpmn:PoolHeaderLabelModel"]){case "NORTH":t.height=1;break;case "WEST":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90;"}A.style+=";align=center;"}else if(p[h]["y:InteriorStretchLabelModelParameter"])A.style+=";align=center;";else if(p[h]["y:ExteriorLabelModel"])switch(p[h]["y:ExteriorLabelModel"]){case "East":A.style+=+";labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;";break;case "South":A.style+=";labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;";break;case "North":A.style+=";labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;";break;case "West":A.style+=";labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;"}else if(p[h]["y:FreeEdgeLabelModelParameter"]){t.relative=!0;t.adjustIt=!0;E=p[h]["y:FreeEdgeLabelModelParameter"];+D=E.Ratio;L=E.Distance;var X=E.Angle;D&&(t.x=parseFloat(D));L&&(t.y=parseFloat(L));X&&(A.style+=";rotation="+parseFloat(X)*(180/Math.PI));A.style+=";verticalAlign=middle;"}else if(p[h]["y:EdgePathLabelModelParameter"]){t.relative=!0;E=p[h]["y:EdgePathLabelModelParameter"];N=E.SideOfEdge;D=E.SegmentRatio;t.x=D?2*parseFloat(D)-1:0;if(N)switch(N){case "RightOfEdge":t.y=-15;break;case "LeftOfEdge":t.y=15}A.style+=";verticalAlign=middle;"}else if(E=parseFloat(p[h].x),D=parseFloat(p[h].y),p[h].width&&(t.width=+parseFloat(p[h].width)),p[h].height&&(t.height=parseFloat(p[h].height)),r.edge)if(t.relative=!0,t.x=0,t.y=0,A=r.source.geometry.getCenterX()-r.target.geometry.getCenterX(),N=r.source.geometry.getCenterY()-r.target.geometry.getCenterY(),z&&k&&p[h]["y:ModelParameter"]&&p[h]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){E=p[h]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"];X=parseFloat(E.angle);L=parseFloat(E.distance);var Oa=E.position;D=parseFloat(E.ratio);E=parseFloat(E.segment);var xa=+new mxCellState;xa.absolutePoints=k;z.view.updateEdgeBounds(xa);var Ka="left"==Oa?1:-1;if(-1==E&&6.283185307179586==X)t.offset=new mxPoint(1>Math.abs(D)?xa.segments[0]*D:D,Ka*L);else{-1==E&&(E=0);for(var Va=X=0;Va<E;Va++)X+=xa.segments[Va];X+=xa.segments[E]*D;t.x=X/xa.length*2-1;t.y=(("center"==Oa?0:L)+t.height/2*Ka*(Math.abs(A)>Math.abs(N)?1:-1))*Ka}}else isNaN(E)||isNaN(D)||(t.offset=new mxPoint(E+A/2+(0<A?-t.width:t.width),D));else t.x=E||0,t.y=D||0;u[h].rotation&&270==u[h].rotation&&(t.x-=t.height/+2)}return{lblTxts:w,lblStyles:u}};mxGraphMlCodec.prototype.processPage=function(r,w){r=(new mxCodec).encode(r.getModel());r.setAttribute("style","default-style2");r=mxUtils.getXml(r);w='<diagram name="Page '+w+'">'+Graph.compress(r);return w+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(r,w){var x=[];for(r=r.firstChild;null!=r;r=r.nextSibling)null!=r&&1==r.nodeType&&w==r.nodeName&&x.push(r);return x};+mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(r,w){for(r=r.firstChild;null!=r;r=r.nextSibling)if(null!=r&&1==r.nodeType&&w==r.nodeName)return r;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(r){var w=[];for(r=r.firstChild;null!=r;r=r.nextSibling)null!=r&&1==r.nodeType&&w.push(r);return w};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(r){for(r=r.firstChild;null!=r;r=r.nextSibling)if(null!=r&&1==r.nodeType)return r;return null};+var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(r,w){if("string"===typeof r){for(var x=r;20<x.length&&-1<x.indexOf(" ");)x=x.substring(0,x.lastIndexOf(" "));return"true"===w?x:r.substring(x.length)}return""},"orgchartconverters.borderconverter":function(r,w){return"boolean"===typeof r?r?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(r,w){return"string"===typeof r?"string"===typeof w?"#"+r+w:"#"+r:r},"orgchartconverters.intermediateconverter":function(r,+w){return"string"===typeof r&&17<r.length?r.replace(/^(.)(\S*)(.*)/,"$1.$3"):r},"orgchartconverters.overviewconverter":function(r,w){return"string"===typeof r&&0<r.length?r.replace(/^(.)(\S*)(.*)/,"$1.$3"):""}},mxGraphMlArrowsMap={SIMPLE:"open",TRIANGLE:"block",DIAMOND:"diamond",CIRCLE:"oval",CROSS:"cross",SHORT:"classicThin",DEFAULT:"classic",NONE:"none",none:"none",white_delta_bar:"block",delta:"block",standard:"classic",diamond:"diamond",white_diamond:"diamond",white_delta:"block",plain:"open",skewed_dash:"dash",concave:"openThin",transparent_circle:"oval",crows_foot_many:"ERmany",crows_foot_one:"ERone",crows_foot_one_optional:"ERzeroToOne",crows_foot_one_mandatory:"ERmandOne",crows_foot_many_optional:"ERzeroToMany",crows_foot_many_mandatory:"ERoneToMany",white_circle:"oval",t_shape:"ERone","short":"classicThin",convex:"",cross:"cross"},mxGraphMlShapesMap={star5:"mxgraph.basic.star;flipV=1",star6:"mxgraph.basic.6_point_star",star8:"mxgraph.basic.8_point_star",sheared_rectangle:"parallelogram",sheared_rectangle2:"parallelogram;flipH=1",hexagon:"hexagon",octagon:"mxgraph.basic.octagon",ellipse:"ellipse",round_rectangle:"rect;rounded=1;arcsize=30",diamond:"rhombus",fat_arrow:"step;perimeter=stepPerimeter",fat_arrow2:"step;perimeter=stepPerimeter;flipH=1",trapez:"trapezoid;perimeter=trapezoidPerimeter;flipV=1",trapez2:"trapezoid;perimeter=trapezoidPerimeter",triangle:"triangle",triangle2:"triangle",rectangle:"rect",rectangle3d:"",roundrectangle:"rect;rounded=1;arcsize=30",fatarrow:"step;perimeter=stepPerimeter",fatarrow2:"step;perimeter=stepPerimeter;flipH=1",parallelogram:"parallelogram",parallelogram2:"parallelogram;flipH=1",trapezoid2:"trapezoid;perimeter=trapezoidPerimeter;flipV=1",trapezoid:"trapezoid;perimeter=trapezoidPerimeter",bevelnode:"rect;glass=1;",bevelnodewithshadow:"rect;glass=1;shadow=1",bevelnode2:"rect;glass=1;rounded=1;arcsize=30",bevelnode3:"rect;glass=1;rounded=1;arcsize=30;shadow=1",shinyplatenode:"rect;glass=1",shinyplatenodewithshadow:"rect;glass=1;shadow=1",shinyplatenode2:"rect;glass=1;rounded=1;arcsize=30",@@ -1719,7 +1161,7 @@ artifact_type_request_message:"message",connection_type_sequence_flow:"",connectHYPEREDGE:"hyperedge",PORT:"port",ENDPOINT:"endpoint",KEY:"key",DATA:"data",ALL:"all",EDGE_SOURCE:"source",EDGE_SOURCE_PORT:"sourceport",EDGE_TARGET:"target",EDGE_TARGET_PORT:"targetport",EDGE_DIRECTED:"directed",EDGE_UNDIRECTED:"undirected",EDGE_DEFAULT:"edgedefault",PORT_NAME:"name",HEIGHT:"Height",WIDTH:"Width",X:"X",Y:"Y",HEIGHT_L:"height",WIDTH_L:"width",X_L:"x",Y_L:"y",JGRAPH:"jGraph:",GEOMETRY:"y:Geometry",FILL:"Fill",SHAPENODE:"y:ShapeNode",SHAPEEDGE:"ShapeEdge",JGRAPH_URL:"http://www.jgraph.com/",KEY_NODE_ID:"d0",KEY_NODE_NAME:"nodeData",KEY_EDGE_ID:"d1",KEY_EDGE_NAME:"edgeData",STYLE:"Style",SHAPE:"Shape",TYPE:"type",LABEL:"label",TEXT:"text",PROPERTIES:"properties",SOURCETARGET:"SourceTarget",RECT:"y:RectD",NODE_LABELS:"NodeLabels",NODE_LABEL:"y:NodeLabel",NODE_GEOMETRY:"NodeGeometry",USER_TAGS:"UserTags",NODE_STYLE:"NodeStyle",NODE_GRAPHICS:"nodegraphics",NODE_VIEW_STATE:"NodeViewState",EDGE_LABELS:"EdgeLabels",EDGE_GEOMETRY:"EdgeGeometry",EDGE_STYLE:"EdgeStyle",EDGE_VIEW_STATE:"EdgeViewState",PORT_LOCATION_PARAMETER:"PortLocationParameter",PORT_STYLE:"PortStyle",PORT_VIEW_STATE:"PortViewState",SHARED_DATA:"SharedData",Y_SHARED_DATA:"y:SharedData",X_KEY:"x:Key",GRAPHML_REFERENCE:"y:GraphMLReference",RESOURCE_KEY:"ResourceKey",Y_RESOURCES:"y:Resources",Y_RESOURCE:"y:Resource",REFID:"refid",X_LIST:"x:List",X_STATIC:"x:Static",Y_BEND:"y:Bend",LOCATION:"Location",Y_LABEL:"y:Label",LAYOUTPARAMETER:"LayoutParameter",YJS_DEFAULTLABELSTYLE:"yjs:DefaultLabelStyle",MEMBER:"Member"};-EditorUi.prototype.doImportGraphML=function(g,y,z){(new mxGraphMlCodec).decode(g,y,z)};/*!+EditorUi.prototype.doImportGraphML=function(r,w,x){(new mxGraphMlCodec).decode(r,w,x)};/*!JSZip v3.10.0 - A JavaScript class for generating and reading zip files<http://stuartk.com/jszip>diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.jsindex 9e3b5c428..120d8fb8c 100644--- a/src/main/webapp/js/integrate.min.js+++ b/src/main/webapp/js/integrate.min.js@@ -64,7 +64,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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||"mxgraph";-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.1.0",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.1.1",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&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:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().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:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||@@ -257,10 +257,10 @@ mxForm.prototype.addCombo=function(a,b,c){var d=document.createElement("select")mxForm.prototype.addField=function(a,b){var c=document.createElement("tr"),d=document.createElement("td");mxUtils.write(d,a);c.appendChild(d);d=document.createElement("td");d.appendChild(b);c.appendChild(d);this.body.appendChild(c);return b};function mxImage(a,b,c,d,e){this.src=a;this.width=null!=b?b:this.width;this.height=null!=c?c:this.height;this.x=null!=d?d:this.x;this.y=null!=e?e:this.y}mxImage.prototype.src=null;mxImage.prototype.width=0;mxImage.prototype.height=0;mxImage.prototype.x=0;mxImage.prototype.y=0;function mxDivResizer(a,b){"div"==a.nodeName.toLowerCase()&&(null==b&&(b=window),this.div=a,a=mxUtils.getCurrentStyle(a),null!=a&&(this.resizeWidth="auto"==a.width,this.resizeHeight="auto"==a.height),mxEvent.addListener(b,"resize",mxUtils.bind(this,function(c){this.handlingResize||(this.handlingResize=!0,this.resize(),this.handlingResize=!1)})),this.resize())}mxDivResizer.prototype.resizeWidth=!0;mxDivResizer.prototype.resizeHeight=!0;mxDivResizer.prototype.handlingResize=!1;mxDivResizer.prototype.resize=function(){var a=this.getDocumentWidth(),b=this.getDocumentHeight(),c=parseInt(this.div.style.left),d=parseInt(this.div.style.right),e=parseInt(this.div.style.top),f=parseInt(this.div.style.bottom);this.resizeWidth&&!isNaN(c)&&!isNaN(d)&&0<=c&&0<=d&&0<a-d-c&&(this.div.style.width=a-d-c+"px");this.resizeHeight&&!isNaN(e)&&!isNaN(f)&&0<=e&&0<=f&&0<b-e-f&&(this.div.style.height=b-e-f+"px")};mxDivResizer.prototype.getDocumentWidth=function(){return document.body.clientWidth};-mxDivResizer.prototype.getDocumentHeight=function(){return document.body.clientHeight};function mxDragSource(a,b){this.element=a;this.dropHandler=b;mxEvent.addGestureListeners(a,mxUtils.bind(this,function(c){this.mouseDown(c)}));mxEvent.addListener(a,"dragstart",function(c){mxEvent.consume(c)});this.eventConsumer=function(c,d){c=d.getProperty("eventName");d=d.getProperty("event");c!=mxEvent.MOUSE_DOWN&&d.consume()}}mxDragSource.prototype.element=null;mxDragSource.prototype.dropHandler=null;-mxDragSource.prototype.dragOffset=null;mxDragSource.prototype.dragElement=null;mxDragSource.prototype.previewElement=null;mxDragSource.prototype.previewOffset=null;mxDragSource.prototype.enabled=!0;mxDragSource.prototype.currentGraph=null;mxDragSource.prototype.currentDropTarget=null;mxDragSource.prototype.currentPoint=null;mxDragSource.prototype.currentGuide=null;mxDragSource.prototype.currentHighlight=null;mxDragSource.prototype.autoscroll=!0;mxDragSource.prototype.guidesEnabled=!0;-mxDragSource.prototype.gridEnabled=!0;mxDragSource.prototype.highlightDropTargets=!0;mxDragSource.prototype.dragElementZIndex=100;mxDragSource.prototype.dragElementOpacity=70;mxDragSource.prototype.checkEventSource=!0;mxDragSource.prototype.isEnabled=function(){return this.enabled};mxDragSource.prototype.setEnabled=function(a){this.enabled=a};mxDragSource.prototype.isGuidesEnabled=function(){return this.guidesEnabled};mxDragSource.prototype.setGuidesEnabled=function(a){this.guidesEnabled=a};-mxDragSource.prototype.isGridEnabled=function(){return this.gridEnabled};mxDragSource.prototype.setGridEnabled=function(a){this.gridEnabled=a};mxDragSource.prototype.getGraphForEvent=function(a){return null};mxDragSource.prototype.getDropTarget=function(a,b,c,d){return a.getCellAt(b,c)};mxDragSource.prototype.createDragElement=function(a){return this.element.cloneNode(!0)};mxDragSource.prototype.createPreviewElement=function(a){return null};+mxDivResizer.prototype.getDocumentHeight=function(){return document.body.clientHeight};function mxDragSource(a,b){this.element=a;this.dropHandler=b;mxEvent.addGestureListeners(a,mxUtils.bind(this,function(c){this.mouseDown(c);mxEvent.consume(c)}));mxEvent.addListener(a,"dragstart",function(c){mxEvent.consume(c)});this.eventConsumer=function(c,d){c=d.getProperty("eventName");d=d.getProperty("event");c!=mxEvent.MOUSE_DOWN&&d.consume()}}mxDragSource.prototype.element=null;+mxDragSource.prototype.dropHandler=null;mxDragSource.prototype.dragOffset=null;mxDragSource.prototype.dragElement=null;mxDragSource.prototype.previewElement=null;mxDragSource.prototype.previewOffset=null;mxDragSource.prototype.enabled=!0;mxDragSource.prototype.currentGraph=null;mxDragSource.prototype.currentDropTarget=null;mxDragSource.prototype.currentPoint=null;mxDragSource.prototype.currentGuide=null;mxDragSource.prototype.currentHighlight=null;mxDragSource.prototype.autoscroll=!0;+mxDragSource.prototype.guidesEnabled=!0;mxDragSource.prototype.gridEnabled=!0;mxDragSource.prototype.highlightDropTargets=!0;mxDragSource.prototype.dragElementZIndex=100;mxDragSource.prototype.dragElementOpacity=70;mxDragSource.prototype.checkEventSource=!0;mxDragSource.prototype.isEnabled=function(){return this.enabled};mxDragSource.prototype.setEnabled=function(a){this.enabled=a};mxDragSource.prototype.isGuidesEnabled=function(){return this.guidesEnabled};+mxDragSource.prototype.setGuidesEnabled=function(a){this.guidesEnabled=a};mxDragSource.prototype.isGridEnabled=function(){return this.gridEnabled};mxDragSource.prototype.setGridEnabled=function(a){this.gridEnabled=a};mxDragSource.prototype.getGraphForEvent=function(a){return null};mxDragSource.prototype.getDropTarget=function(a,b,c,d){return a.getCellAt(b,c)};mxDragSource.prototype.createDragElement=function(a){return this.element.cloneNode(!0)};mxDragSource.prototype.createPreviewElement=function(a){return null};mxDragSource.prototype.isActive=function(){return null!=this.mouseMoveHandler};mxDragSource.prototype.reset=function(){null!=this.currentGraph&&(this.dragExit(this.currentGraph),this.currentGraph=null);this.removeDragElement();this.removeListeners();this.stopDrag()};mxDragSource.prototype.mouseDown=function(a){this.enabled&&!mxEvent.isConsumed(a)&&null==this.mouseMoveHandler&&(this.startDrag(a),this.mouseMoveHandler=mxUtils.bind(this,this.mouseMove),this.mouseUpHandler=mxUtils.bind(this,this.mouseUp),mxEvent.addGestureListeners(document,null,this.mouseMoveHandler,this.mouseUpHandler),mxClient.IS_TOUCH&&!mxEvent.isMouseEvent(a)&&(this.eventSource=mxEvent.getSource(a),mxEvent.addGestureListeners(this.eventSource,null,this.mouseMoveHandler,this.mouseUpHandler)))};mxDragSource.prototype.startDrag=function(a){this.dragElement=this.createDragElement(a);this.dragElement.style.position="absolute";this.dragElement.style.zIndex=this.dragElementZIndex;mxUtils.setOpacity(this.dragElement,this.dragElementOpacity);this.checkEventSource&&mxClient.IS_SVG&&(this.dragElement.style.pointerEvents="none")};mxDragSource.prototype.stopDrag=function(){this.removeDragElement()};@@ -528,7 +528,7 @@ mxStencil.prototype.evaluateTextAttribute=function(a,b,c){b=this.evaluateAttribumxStencil.prototype.drawShape=function(a,b,c,d,e,f,g){var k=a.states.slice(),l=mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,null);l=this.computeAspect(b.style,c,d,e,f,l);var m=Math.min(l.width,l.height);m="inherit"==this.strokewidth?Number(mxUtils.getNumber(b.style,mxConstants.STYLE_STROKEWIDTH,1)):Number(this.strokewidth)*m;a.setStrokeWidth(m);null!=b.style&&"1"==mxUtils.getValue(b.style,mxConstants.STYLE_POINTER_EVENTS,"0")&&(a.setStrokeColor(mxConstants.NONE),a.rect(c,d,e,f),a.stroke(),a.setStrokeColor(b.stroke));this.drawChildren(a,b,c,d,e,f,this.bgNode,l,!1,!0,g);this.drawChildren(a,b,c,d,e,f,this.fgNode,l,!0,!b.outline||null==b.style||0==mxUtils.getValue(b.style,mxConstants.STYLE_BACKGROUND_OUTLINE,0),g);a.states.length!=k.length&&(a.states=k)};mxStencil.prototype.drawChildren=function(a,b,c,d,e,f,g,k,l,m,n){if(null!=g&&0<e&&0<f)for(c=g.firstChild;null!=c;)c.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,c,k,l,m,n),c=c.nextSibling};mxStencil.prototype.computeAspect=function(a,b,c,d,e,f){a=b;b=d/this.w0;var g=e/this.h0;if(f=f==mxConstants.DIRECTION_NORTH||f==mxConstants.DIRECTION_SOUTH){g=d/this.h0;b=e/this.w0;var k=(d-e)/2;a+=k;c-=k}"fixed"==this.aspect&&(b=g=Math.min(b,g),f?(a+=(e-this.w0*b)/2,c+=(d-this.h0*g)/2):(a+=(d-this.w0*b)/2,c+=(e-this.h0*g)/2));return new mxRectangle(a,c,b,g)};-mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style&&(d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"));return d};+mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style?d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"):null==b.style||mxUtils.isValidColor(d)||(a=mxUtils.getValue(b.style,d,mxConstants.NONE),"default"==a&&(a="fillcolor"==c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor),d=a);return d};mxStencil.prototype.drawNode=function(a,b,c,d,e,f,g){var k=c.nodeName,l=d.x,m=d.y,n=d.width,p=d.height,q=Math.min(n,p);if("save"==k)a.save();else if("restore"==k)a.restore();else if(f){if("path"==k){a.begin();q=!0;if("1"==c.getAttribute("rounded")){q=!1;for(var r=Number(c.getAttribute("arcSize")),t=0,u=[],x=c.firstChild;null!=x;){if(x.nodeType==mxConstants.NODETYPE_ELEMENT){var y=x.nodeName;if("move"==y||"line"==y)"move"!=y&&0!=u.length||u.push([]),u[u.length-1].push(new mxPoint(l+Number(x.getAttribute("x"))*n,m+Number(x.getAttribute("y"))*p)),t++;else{q=!0;break}}x=x.nextSibling}if(!q&&0<t)for(n=0;n<u.length;n++)p=!1,m=u[n][0],l=u[n][u[n].length-1],m.x==l.x&&m.y==l.y&&(u[n].pop(),p=!0),this.addPoints(a,u[n],!0,r,p);else q=!0}if(q)for(x=c.firstChild;null!=x;)x.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,x,d,e,f,g),x=x.nextSibling}else if("close"==k)a.close();else if("move"==k)a.moveTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("line"==k)a.lineTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("quad"==k)a.quadTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p);else if("curve"==k)a.curveTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p,l+Number(c.getAttribute("x3"))*n,m+Number(c.getAttribute("y3"))*p);else if("arc"==k)a.arcTo(Number(c.getAttribute("rx"))*n,Number(c.getAttribute("ry"))*@@ -1701,9 +1701,9 @@ l,d.height+=2*d.height*l),null==k?k=d:(k=mxRectangle.fromRectangle(k),k.interseck.y+k.height&&(this.unscaledBounds.height-=this.unscaledBounds.y+this.unscaledBounds.height-k.y-k.height)));d=this.bounds;this.bounds=new mxRectangle((null!=this.parentState?this.parentState.x:e.x*f)+this.unscaledBounds.x*f,(null!=this.parentState?this.parentState.y:e.y*f)+this.unscaledBounds.y*f,this.unscaledBounds.width*f,this.unscaledBounds.height*f);g.relative&&null!=this.parentState&&(this.bounds.x+=this.state.x-this.parentState.x,this.bounds.y+=this.state.y-this.parentState.y);g=Math.cos(c);k=Math.sin(c);c=new mxPoint(this.bounds.getCenterX(),this.bounds.getCenterY());l=c.x-b.x;m=c.y-b.y;b=g*l-k*m-l;c=k*l+g*m-m;l=this.bounds.x-this.state.x;m=this.bounds.y-this.state.y;e=g*l-k*m;g=k*l+g*m;this.bounds.x+=b;this.bounds.y+=c;this.unscaledBounds.x=this.roundLength(this.unscaledBounds.x+b/f);this.unscaledBounds.y=this.roundLength(this.unscaledBounds.y+c/f);this.unscaledBounds.width=this.roundLength(this.unscaledBounds.width);this.unscaledBounds.height=this.roundLength(this.unscaledBounds.height);this.graph.isCellCollapsed(this.state.cell)||0==b&&0==c?this.childOffsetY=this.childOffsetX=0:(this.childOffsetX=this.state.x-this.bounds.x+e,this.childOffsetY=this.state.y-this.bounds.y+g);d.equals(this.bounds)||(this.livePreviewActive&&this.updateLivePreview(a),null!=this.preview?this.drawPreview():this.updateParentHighlight())};-mxVertexHandler.prototype.updateLivePreview=function(a){var b=this.graph.view.scale,c=this.graph.view.translate;a=this.state.clone();this.state.x=this.bounds.x;this.state.y=this.bounds.y;this.state.origin=new mxPoint(this.state.x/b-c.x,this.state.y/b-c.y);this.state.width=this.bounds.width;this.state.height=this.bounds.height;b=this.state.absoluteOffset;new mxPoint(b.x,b.y);this.state.absoluteOffset.x=0;this.state.absoluteOffset.y=0;b=this.graph.getCellGeometry(this.state.cell);null!=b&&(c=b.offset||-this.EMPTY_POINT,null==c||b.relative||(this.state.absoluteOffset.x=this.state.view.scale*c.x,this.state.absoluteOffset.y=this.state.view.scale*c.y),this.state.view.updateVertexLabelOffset(this.state));this.state.view.graph.cellRenderer.redraw(this.state,!0);this.state.view.invalidate(this.state.cell);this.state.invalid=!1;this.state.view.validate();this.redrawHandles();this.movePreviewToFront&&this.moveToFront();null!=this.state.control&&null!=this.state.control.node&&(this.state.control.node.style.visibility=-"hidden");this.state.setState(a)};+mxVertexHandler.prototype.updateLivePreview=function(a){a=this.graph.view.scale;var b=this.graph.view.translate,c=this.state.clone();this.state.x=this.bounds.x;this.state.y=this.bounds.y;this.state.origin=new mxPoint(this.state.x/a-b.x,this.state.y/a-b.y);this.state.width=this.bounds.width;this.state.height=this.bounds.height;b=this.state.absoluteOffset;new mxPoint(b.x,b.y);this.state.absoluteOffset.x=0;this.state.absoluteOffset.y=0;b=this.graph.getCellGeometry(this.state.cell);if(null!=b){var d=+b.offset||this.EMPTY_POINT;null==d||b.relative||(this.state.absoluteOffset.x=this.state.view.scale*d.x,this.state.absoluteOffset.y=this.state.view.scale*d.y);this.state.view.updateVertexLabelOffset(this.state)}b=this.state.cell.geometry.width;d=this.state.cell.geometry.height;this.state.cell.geometry.width=this.roundLength(this.bounds.width/a);this.state.cell.geometry.height=this.roundLength(this.bounds.height/a);this.state.view.graph.cellRenderer.redraw(this.state,!0);this.state.cell.geometry.width=+b;this.state.cell.geometry.height=d;this.state.view.invalidate(this.state.cell);this.state.invalid=!1;this.state.view.validate();this.redrawHandles();this.movePreviewToFront&&this.moveToFront();null!=this.state.control&&null!=this.state.control.node&&(this.state.control.node.style.visibility="hidden");this.state.setState(c)};mxVertexHandler.prototype.moveToFront=function(){if(null!=this.state.text&&null!=this.state.text.node&&null!=this.state.text.node.nextSibling||null!=this.state.shape&&null!=this.state.shape.node&&null!=this.state.shape.node.nextSibling&&(null==this.state.text||this.state.shape.node.nextSibling!=this.state.text.node))null!=this.state.shape&&null!=this.state.shape.node&&this.state.shape.node.parentNode.appendChild(this.state.shape.node),null!=this.state.text&&null!=this.state.text.node&&this.state.text.node.parentNode.appendChild(this.state.text.node)};mxVertexHandler.prototype.mouseUp=function(a,b){if(null!=this.index&&null!=this.state){var c=new mxPoint(b.getGraphX(),b.getGraphY());a=this.index;this.index=null;null==this.ghostPreview&&this.state.view.invalidate(this.state.cell,!1,!1);this.graph.getModel().beginUpdate();try{if(a<=mxEvent.CUSTOM_HANDLE){if(null!=this.customHandles&&null!=this.customHandles[mxEvent.CUSTOM_HANDLE-a]){var d=this.state.view.graph.getCellStyle(this.state.cell);this.customHandles[mxEvent.CUSTOM_HANDLE-a].active=!1;this.customHandles[mxEvent.CUSTOM_HANDLE-a].execute(b);null!=this.customHandles&&null!=this.customHandles[mxEvent.CUSTOM_HANDLE-a]&&(this.state.style=d,this.customHandles[mxEvent.CUSTOM_HANDLE-a].positionChanged())}}else if(a==mxEvent.ROTATION_HANDLE)if(null!=this.currentAlpha){var e=this.currentAlpha-(this.state.style[mxConstants.STYLE_ROTATION]||0);0!=e&&this.rotateCell(this.state.cell,e)}else this.rotateClick();else{var f=this.graph.isGridEnabledEvent(b.getEvent()),g=mxUtils.toRadians(this.state.style[mxConstants.STYLE_ROTATION]||"0"),@@ -2003,10 +2003,10 @@ Editor.prototype.setModified=function(a){this.modified=a};Editor.prototype.setFiEditor.prototype.createUndoManager=function(){var a=this.graph,b=new mxUndoManager;this.undoListener=function(f,h){b.undoableEditHappened(h.getProperty("edit"))};var e=mxUtils.bind(this,function(f,h){this.undoListener.apply(this,arguments)});a.getModel().addListener(mxEvent.UNDO,e);a.getView().addListener(mxEvent.UNDO,e);e=function(f,h){f=h.getProperty("edit").changes;f=a.getSelectionCellsForChanges(f);h=!1;if(0<f.length){for(var d=[],g=0;g<f.length;g++)null!=a.view.getState(f[g])&&(d.push(f[g]),h||(a.scrollCellToVisible(f[g]),h=!0));a.setSelectionCells(d)}};b.addListener(mxEvent.UNDO,e);b.addListener(mxEvent.REDO,e);return b};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(a){this.consumer=this.producer=null;this.done=a;this.args=null};OpenFile.prototype.setConsumer=function(a){this.consumer=a;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};OpenFile.prototype.error=function(a){this.cancel(!0);mxUtils.alert(a)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(a){null!=this.done&&this.done(null!=a?a:!0)};-function Dialog(a,b,e,f,h,d,g,m,q,k,u){this.editorUi=a;var w=q?57:0,z=e,C=f,E=q?0:64,D=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);null==a.embedViewport&&null!=window.innerHeight&&(D.height=window.innerHeight);var G=D.height;D=Math.max(1,Math.round((D.width-e-E)/2));var J=Math.max(1,Math.round((G-f-a.footerHeight)/3));b.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-E):e;f=Math.min(f,G-E);0<a.dialogs.length&&-(this.zIndex+=2*a.dialogs.length);null==this.bg&&(this.bg=a.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=G+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var L=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=L.x+"px";this.bg.style.top=L.y+"px";D+=L.x;J+=L.y;Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",J+=a.embedViewport.y,D+=a.embedViewport.x);-h&&document.body.appendChild(this.bg);var Q=a.createDiv(q?"geTransDialog":"geDialog");h=this.getPosition(D,J,e,f);D=h.x;J=h.y;Q.style.width=e+"px";Q.style.height=f+"px";Q.style.left=D+"px";Q.style.top=J+"px";Q.style.zIndex=this.zIndex;Q.appendChild(b);document.body.appendChild(Q);!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");b.style.overflowX="hidden";if(d&&(d=document.createElement("img"),d.setAttribute("src",Dialog.prototype.closeImage),d.setAttribute("title",mxResources.get("close")),-d.className="geDialogClose",d.style.top=J+14+"px",d.style.left=D+e+38-w+"px",d.style.zIndex=this.zIndex,mxEvent.addListener(d,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),document.body.appendChild(d),this.dialogImg=d,!u)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){N=!0}),null,mxUtils.bind(this,function(U){N&&(a.hideDialog(!0),N=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=k){var U=k();null!=U&&(z=e=U.w,C=f=U.h)}U=Editor.inlineFullscreen||+function Dialog(a,b,e,f,h,d,g,m,q,k,u){this.editorUi=a;var w=q?57:0,z=e,C=f,E=q?0:64,D=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);null==a.embedViewport&&null!=window.innerHeight&&(D.height=window.innerHeight);var G=D.height;D=Math.max(1,Math.round((D.width-e-E)/2));var I=Math.max(1,Math.round((G-f-a.footerHeight)/3));b.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-E):e;f=Math.min(f,G-E);0<a.dialogs.length&&+(this.zIndex+=2*a.dialogs.length);null==this.bg&&(this.bg=a.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=G+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var L=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=L.x+"px";this.bg.style.top=L.y+"px";D+=L.x;I+=L.y;Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",I+=a.embedViewport.y,D+=a.embedViewport.x);+h&&document.body.appendChild(this.bg);var Q=a.createDiv(q?"geTransDialog":"geDialog");h=this.getPosition(D,I,e,f);D=h.x;I=h.y;Q.style.width=e+"px";Q.style.height=f+"px";Q.style.left=D+"px";Q.style.top=I+"px";Q.style.zIndex=this.zIndex;Q.appendChild(b);document.body.appendChild(Q);!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");b.style.overflowX="hidden";if(d&&(d=document.createElement("img"),d.setAttribute("src",Dialog.prototype.closeImage),d.setAttribute("title",mxResources.get("close")),+d.className="geDialogClose",d.style.top=I+14+"px",d.style.left=D+e+38-w+"px",d.style.zIndex=this.zIndex,mxEvent.addListener(d,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),document.body.appendChild(d),this.dialogImg=d,!u)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){N=!0}),null,mxUtils.bind(this,function(U){N&&(a.hideDialog(!0),N=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=k){var U=k();null!=U&&(z=e=U.w,C=f=U.h)}U=Editor.inlineFullscreen||null==a.embedViewport?this.getDocumentSize():mxUtils.clone(a.embedViewport);G=U.height;this.bg.style.height=G+"px";Editor.inlineFullscreen||null==a.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");e=null!=document.body?Math.min(z,document.body.scrollWidth-E):z;f=Math.min(C,G-E);U=Math.max(1,Math.round((U.width-e-E)/2));var Y=Math.max(1,Math.round((G-f-a.footerHeight)/3));Y=this.getPosition(U,Y,e,f);U=Y.x;Y=Y.y;var P=mxUtils.getDocumentScrollOrigin(document);U+=P.x;Y+=P.y;Editor.inlineFullscreen||null==a.embedViewport||(Y+=a.embedViewport.y,U+=a.embedViewport.x);Q.style.left=U+"px";Q.style.top=Y+"px";Q.style.width=e+"px";Q.style.height=f+"px";!m&&b.clientHeight>Q.clientHeight-E&&(b.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=Y+14+"px",this.dialogImg.style.left=U+e+38-w+"px")});null!=a.embedViewport?a.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=g;this.container=Q;a.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;@@ -2019,8 +2019,8 @@ this.container.parentNode.removeChild(this.container)};var ErrorDialog=function(a,b,e,f,h,d,g,m,q,k,u){q=null!=q?q:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var z=document.createElement("div");z.style.padding="0px";z.style.margin="0px";z.style.fontSize="18px";z.style.paddingBottom="16px";z.style.marginBottom="10px";z.style.borderBottom="1px solid #c0c0c0";z.style.color="gray";z.style.whiteSpace="nowrap";z.style.textOverflow="ellipsis";z.style.overflow="hidden";mxUtils.write(z,b);z.setAttribute("title",b);w.appendChild(z)}b=document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof e&&(e=e.replace(/\n/g,"<br/>"));b.innerHTML=Graph.sanitizeHtml(e);w.appendChild(b);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",e.appendChild(b),e.style.textAlign="center");null!=k&&(k=mxUtils.button(k,function(){null!=u&&u()}),k.className="geBtn",e.appendChild(k));var C=mxUtils.button(f,function(){q&&a.hideDialog();null!=h&&h()});C.className="geBtn";e.appendChild(C);null!=g&&(f=mxUtils.button(g,function(){q&&a.hideDialog();null!=m&&m()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b,e,f){this.create(a,b,e,f)};-PrintDialog.prototype.create=function(a){function b(C){var E=g.checked||k.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,J=1/e.pageScale;if(E){var L=g.checked?1:parseInt(u.value);isNaN(L)||(J=mxUtils.getScaleForPageCount(L,e,G))}var Q=L=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);J*=D;!E&&e.pageVisible?(D=e.getPageLayout(),L-=D.x*G.width,Q-=D.y*G.height):-E=!0;E=PrintDialog.createPrintPreview(e,J,G,0,L,Q,E);E.open();C&&PrintDialog.printPreview(E)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");var d=document.createElement("tr");var g=document.createElement("input");g.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(g);var q=document.createElement("span");mxUtils.write(q," "+mxResources.get("fitPage"));+PrintDialog.prototype.create=function(a){function b(C){var E=g.checked||k.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,I=1/e.pageScale;if(E){var L=g.checked?1:parseInt(u.value);isNaN(L)||(I=mxUtils.getScaleForPageCount(L,e,G))}var Q=L=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);I*=D;!E&&e.pageVisible?(D=e.getPageLayout(),L-=D.x*G.width,Q-=D.y*G.height):+E=!0;E=PrintDialog.createPrintPreview(e,I,G,0,L,Q,E);E.open();C&&PrintDialog.printPreview(E)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");var d=document.createElement("tr");var g=document.createElement("input");g.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(g);var q=document.createElement("span");mxUtils.write(q," "+mxResources.get("fitPage"));m.appendChild(q);mxEvent.addListener(q,"click",function(C){g.checked=!g.checked;k.checked=!g.checked;mxEvent.consume(C)});mxEvent.addListener(g,"change",function(){k.checked=!g.checked});d.appendChild(m);h.appendChild(d);d=d.cloneNode(!1);var k=document.createElement("input");k.setAttribute("type","checkbox");m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(k);q=document.createElement("span");mxUtils.write(q," "+mxResources.get("posterPrint")+":");m.appendChild(q);mxEvent.addListener(q,"click",function(C){k.checked=!k.checked;g.checked=!k.checked;mxEvent.consume(C)});d.appendChild(m);var u=document.createElement("input");u.setAttribute("value","1");u.setAttribute("type","number");u.setAttribute("min","1");u.setAttribute("size","4");u.setAttribute("disabled","disabled");u.style.width="50px";m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(u);mxUtils.write(m," "+mxResources.get("pages")+" (max)");d.appendChild(m);h.appendChild(d);mxEvent.addListener(k,"change",function(){k.checked?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");g.checked=!k.checked});d=d.cloneNode(!1);m=document.createElement("td");mxUtils.write(m,mxResources.get("pageScale")+":");d.appendChild(m);m=document.createElement("td");var w=document.createElement("input");w.setAttribute("value","100 %");w.setAttribute("size","5");w.style.width="50px";m.appendChild(w);d.appendChild(m);h.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;@@ -2032,14 +2032,14 @@ var PageSetupDialog=function(a){function b(){var D=w;null!=D&&null!=D.originalSrvar d=document.createElement("tr");var g=document.createElement("td");g.style.verticalAlign="top";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("paperSize")+":");d.appendChild(g);g=document.createElement("td");g.style.verticalAlign="top";g.style.fontSize="10pt";var m=PageSetupDialog.addPageFormatPanel(g,"pagesetupdialog",e.pageFormat);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("gridSize")+":");d.appendChild(g);g=document.createElement("td");g.style.whiteSpace="nowrap";var q=document.createElement("input");q.setAttribute("type","number");q.setAttribute("min","0");q.style.width="40px";q.style.marginLeft="6px";q.value=e.getGridSize();g.appendChild(q);mxEvent.addListener(q,"change",function(){var D=parseInt(q.value);q.value=Math.max(1,isNaN(D)?e.getGridSize():D)});d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");mxUtils.write(g,mxResources.get("background")+":");d.appendChild(g);g=document.createElement("td");var k=document.createElement("button");k.className="geBtn";k.style.margin="0px";mxUtils.write(k,mxResources.get("change")+"...");var u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="middle";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="contain";u.style.border="1px solid lightGray";u.style.borderRadius="4px";u.style.marginRight="14px";u.style.height="32px";-u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=e.backgroundImage,z=e.background,C=e.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,J,L,Q){J||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);z=L;b()},w,z,!0);mxEvent.consume(D)};mxEvent.addListener(k,"click",E);mxEvent.addListener(u,"click",E);b();g.appendChild(u);g.appendChild(k);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");+u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=e.backgroundImage,z=e.background,C=e.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,I,L,Q){I||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);z=L;b()},w,z,!0);mxEvent.consume(D)};mxEvent.addListener(k,"click",E);mxEvent.addListener(u,"click",E);b();g.appendChild(u);g.appendChild(k);d.appendChild(g);h.appendChild(d);d=document.createElement("tr");g=document.createElement("td");g.colSpan=2;g.style.paddingTop="16px";g.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";a.editor.cancelFirst&&g.appendChild(k);E=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var D=parseInt(q.value);isNaN(D)||e.gridSize===D||e.setGridSize(D);D=new ChangePageSetup(a,z,w,m.get());D.ignoreColor=e.background==z;D.ignoreImage=(null!=e.backgroundImage?e.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&(D.shadowVisible=C);e.pageFormat.width==D.previousFormat.width&&e.pageFormat.height==D.previousFormat.height&&D.ignoreColor&&D.ignoreImage&&D.shadowVisible==e.shadowVisible||e.model.execute(D)});E.className="geBtn gePrimaryBtn";g.appendChild(E);a.editor.cancelFirst||g.appendChild(k);d.appendChild(g);h.appendChild(d);f.appendChild(h);this.container=f};PageSetupDialog.addPageFormatPanel=function(a,b,e,f){b="format-"+b;var h=document.createElement("input");h.setAttribute("name",b);h.setAttribute("type","radio");h.setAttribute("value","portrait");var d=document.createElement("input");d.setAttribute("name",b);d.setAttribute("type","radio");d.setAttribute("value","landscape");var g=document.createElement("select");g.style.marginBottom="4px";g.style.borderRadius="4px";g.style.borderWidth="1px";g.style.borderStyle="solid";g.style.boxSizing="border-box";g.style.padding="2px";g.style.width="210px";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.marginLeft="4px";m.style.width="210px";m.style.height="24px";h.style.marginRight="6px";m.appendChild(h);b=document.createElement("span");b.style.maxWidth="100px";mxUtils.write(b,mxResources.get("portrait"));m.appendChild(b);d.style.marginLeft="10px";d.style.marginRight="6px";m.appendChild(d);var q=document.createElement("span");q.style.width="100px";mxUtils.write(q,mxResources.get("landscape"));m.appendChild(q);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var u=document.createElement("input");u.setAttribute("size","7");u.setAttribute("title",mxResources.get("width"));u.style.textAlign="right";k.appendChild(u);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign="right";k.appendChild(w);var z=document.createElement("select");z.style.marginLeft="4px";z.style.maxWidth="78px";z.style.width="78px";for(var C=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],E=0;E<C.length;E++){var D=document.createElement("option");D.setAttribute("value",C[E].unit);mxUtils.write(D,C[E].label);z.appendChild(D)}z.value=Editor.pageSizeUnit;k.appendChild(z);m.style.display=-"none";k.style.display="none";var G={},J=PageSetupDialog.getFormats();for(E=0;E<J.length;E++)C=J[E],G[C.key]=C,D=document.createElement("option"),D.setAttribute("value",C.key),mxUtils.write(D,C.title),g.appendChild(D);var L=function(){g.value="custom";for(var N=0;N<J.length;N++){var U=J[N];null!=U.format&&("a4"==U.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==U.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=+"none";k.style.display="none";var G={},I=PageSetupDialog.getFormats();for(E=0;E<I.length;E++)C=I[E],G[C.key]=C,D=document.createElement("option"),D.setAttribute("value",C.key),mxUtils.write(D,C.title),g.appendChild(D);var L=function(){g.value="custom";for(var N=0;N<I.length;N++){var U=I[N];null!=U.format&&("a4"==U.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==U.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=583):584==e.height&&(e=mxRectangle.fromRectangle(e),e.height=583)),e.width==U.format.width&&e.height==U.format.height?(g.value=U.key,h.setAttribute("checked","checked"),h.defaultChecked=!0,h.checked=!0,d.removeAttribute("checked"),d.defaultChecked=!1,d.checked=!1,detected=!0):e.width==U.format.height&&e.height==U.format.width&&(g.value=U.key,h.removeAttribute("checked"),h.defaultChecked=!1,h.checked=!1,d.setAttribute("checked","checked"),d.defaultChecked=!0,detected=d.checked=!0))}"custom"==g.value?(u.value=Editor.toUnit(e.width,z.value),w.value=Editor.toUnit(e.height,z.value),h.setAttribute("checked","checked"),g.value="custom",m.style.display="none",k.style.display=""):(m.style.display="",k.style.display="none")};L();a.appendChild(g);mxUtils.br(a);a.appendChild(m);a.appendChild(k);var Q=function(N,U){N=G[g.value];null!=N.format?(u.value=Editor.toUnit(d.checked?N.format.height:N.format.width,z.value),w.value=Editor.toUnit(d.checked?N.format.width:N.format.height,z.value),k.style.display="none",m.style.display=""):(m.style.display="none",k.style.display="");N=parseFloat(u.value);if(isNaN(N)||0>=N)u.value=Editor.toUnit(e.width,z.value);N=parseFloat(w.value);if(isNaN(N)||0>=N)w.value=Editor.toUnit(e.height,z.value);N=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),z.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),z.value)));U||N.width==e.width&&N.height==e.height||(e=N,null!=f&&f(e))};mxEvent.addListener(b,"click",function(N){h.checked=!0;Q(N);mxEvent.consume(N)});@@ -2050,26 +2050,26 @@ format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",fo{key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]};var FilenameDialog=function(a,b,e,f,h,d,g,m,q,k,u){q=null!=q?q:!0;var w=document.createElement("div"),z=document.createElement("div");z.style.width="100%";z.style.display="grid";z.style.gap="5px 8px";z.style.gridAutoColumns="auto 1fr";z.style.boxSizing="border-box";z.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var E=document.createElement("div");E.style.display="inline-block";E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.fontSize="10pt";E.style.padding="2px 0";E.setAttribute("title",h||mxResources.get("filename"));mxUtils.write(E,(h||mxResources.get("filename"))+":");C.appendChild(E);z.appendChild(C);var D=document.createElement("input");D.setAttribute("value",b||"");D.style.flexGrow="1";var G=mxUtils.button(e,function(){if(null==d||d(D.value))q&&a.hideDialog(),f(D.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=-h||null==g)if(null!=u?Editor.selectFilename(D):(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var J=z.parentNode;if(null!=J){var L=null;mxEvent.addListener(J,"dragleave",function(Q){null!=L&&(L.style.backgroundColor="",L=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(Q){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=D,L.style.backgroundColor=-"#ebf2f9");Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(J,"drop",mxUtils.bind(this,function(Q){null!=L&&(L.style.backgroundColor="",L=null);0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(Q.dataTransfer.getData("text/uri-list")),G.click());Q.stopPropagation();Q.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(D);z.appendChild(C);+h||null==g)if(null!=u?Editor.selectFilename(D):(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var I=z.parentNode;if(null!=I){var L=null;mxEvent.addListener(I,"dragleave",function(Q){null!=L&&(L.style.backgroundColor="",L=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(I,"dragover",mxUtils.bind(this,function(Q){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=D,L.style.backgroundColor=+"#ebf2f9");Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(I,"drop",mxUtils.bind(this,function(Q){null!=L&&(L.style.backgroundColor="",L=null);0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(Q.dataTransfer.getData("text/uri-list")),G.click());Q.stopPropagation();Q.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(D);z.appendChild(C);null==h&&null!=g||null==u||null==a.editor.diagramFileTypes||(C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.textOverflow="ellipsis",C.style.justifyContent="flex-end",C.style.fontSize="10pt",mxUtils.write(C,mxResources.get("type")+":"),z.appendChild(C),C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.whiteSpace="nowrap",z.appendChild(C),b=FilenameDialog.createFileTypes(a,D,a.editor.diagramFileTypes),b.style.width="100%",C.appendChild(b));null!=g&&z.appendChild(g);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=u?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});C.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));-a.editor.cancelFirst&&row.appendChild(C);mxEvent.addListener(D,"keypress",function(J){13==J.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(C);z.appendChild(row);w.appendChild(z);this.container=w};FilenameDialog.filenameHelpLink=null;+a.editor.cancelFirst&&row.appendChild(C);mxEvent.addListener(D,"keypress",function(I){13==I.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(C);z.appendChild(row);w.appendChild(z);this.container=w};FilenameDialog.filenameHelpLink=null;FilenameDialog.createFileTypes=function(a,b,e){var f=document.createElement("select");for(a=0;a<e.length;a++){var h=document.createElement("option");h.setAttribute("value",a);mxUtils.write(h,mxResources.get(e[a].description)+" (."+e[a].extension+")");f.appendChild(h)}mxEvent.addListener(f,"change",function(d){d=e[f.value].extension;var g=b.value.lastIndexOf(".drawio.");g=0<g?g:b.value.lastIndexOf(".");"drawio"!=d&&(d="drawio."+d);b.value=0<g?b.value.substring(0,g+1)+d:b.value+"."+d;"createEvent"indocument?(d=document.createEvent("HTMLEvents"),d.initEvent("change",!1,!0),b.dispatchEvent(d)):b.fireEvent("onchange")});a=function(d){d=b.value.toLowerCase();for(var g=0,m=0;m<e.length;m++){var q=e[m].extension,k=null;"drawio"!=q&&(k=q,q=".drawio."+q);if(d.substring(d.length-q.length-1)=="."+q||null!=k&&d.substring(d.length-k.length-1)=="."+k){g=m;break}}f.value=g};mxEvent.addListener(b,"change",a);mxEvent.addListener(b,"keyup",a);a();return f};-var WrapperWindow=function(a,b,e,f,h,d,g){var m=a.createSidebarContainer();g(m);this.window=new mxWindow(b,m,e,f,h,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(q){null==q&&(q=window.event);return null!=q&&a.isSelectionAllowed(q)}))};+var WrapperWindow=function(a,b,e,f,h,d,g){var m=a.createSidebarContainer();g(m);this.window=new mxWindow(b,m,e,f,h,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0)};(function(){mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph;if(null!=g.container&&!g.transparentBackground){if(g.pageVisible){var m=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var q=g.container.firstChild;null!=q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.nextSibling;null!=q&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,this.backgroundPageShape.init(g.container),q.style.position="absolute",g.container.insertBefore(this.backgroundPageShape.node,q),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(k){g.dblClick(k)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){null!=g.tooltipHandler&&g.tooltipHandler.isHideOnHover()&&g.tooltipHandler.hide();g.isMouseDown&&!mxEvent.isConsumed(k)&&g.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){g.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(k))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=m,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};mxGraphView.prototype.validateBackgroundStyles=function(g,m,q){var k=this.graph;g=null!=g?g:1;var u=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,z=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",E="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){E=-10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(z,g))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",E=k.gridSize*this.scale*this.gridSteps*g):C="url("+this.gridImage+")";var D=z=0;m=null!=m?m-this.translate.x*this.scale:0;q=null!=q?q-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,J=m%G;G=q%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),z=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*-this.scale-z+m,E)+J*g)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+q,E)+G*g)+"px"}g=k.view.canvas;null!=g.ownerSVGElement&&(g=g.ownerSVGElement);z=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=E,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=+10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(z,g))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",E=k.gridSize*this.scale*this.gridSteps*g):C="url("+this.gridImage+")";var D=z=0;m=null!=m?m-this.translate.x*this.scale:0;q=null!=q?q-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,I=m%G;G=q%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),z=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*+this.scale-z+m,E)+I*g)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+q,E)+G*g)+"px"}g=k.view.canvas;null!=g.ownerSVGElement&&(g=g.ownerSVGElement);z=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=E,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme="none"==k.getAdaptiveColors()?"light":"",k.container.classList.add("geDiagramBackdrop"),g.style.backgroundImage="none",g.style.backgroundColor="",k.container.style.backgroundColor=z?k.diagramBackgroundColor:""):(k.container.classList.remove("geDiagramBackdrop"),g.style.backgroundPosition=E,g.style.backgroundImage=C,"1"==urlParams.transparent?k.container.style.background="transparent":!z||null!=k.background&&k.background!=mxConstants.NONE?g.style.backgroundColor=u:(g.style.backgroundColor=k.diagramBackgroundColor,k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(g,m){for(var q=this.graph.gridSize*this.scale*(null!=m?m:1);q<this.minGridSize;)q*=2;m=this.gridSteps*q;for(var k=[],u=1;u<this.gridSteps;u++){var w=u*q;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}g=mxUtils.getLightDarkColor(g);q="color-scheme: light dark;";mxClient.IS_SF&&(q="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+q+'" width="'+m+'" height="'+m+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+m+'" height="'+m+'" patternUnits="userSpaceOnUse"><path d="'+k.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(g.cssText)+';" stroke="'+g.light+'" opacity="0.2" stroke-width="1"/><path d="M '+m+" 0 L 0 0 0 "+m+'" fill="none" style="stroke:'+mxUtils.htmlEntities(g.cssText)+';" stroke="'+g.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var a=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){a.apply(this,arguments);if(null!=this.shiftPreview1){var q=this.view.canvas;null!=q.ownerSVGElement&&(q=q.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+g,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";q.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(g,m,q){var k=this.view.scale,u=this.view.translate,w=-this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;q=C.height;var E=new mxRectangle(k*u.x,k*u.y,w.width*z,w.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(q/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,J=C.x+m,L=C.y+q;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(Q){if(null!=Q){for(var N=Q==this.horizontalPageBreaks?D:G,U=-0;U<=N;U++){var Y=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),Math.round(C.y+(U+1)*E.height)),new mxPoint(Math.round(J),Math.round(C.y+(U+1)*E.height))]:[new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(L))];null!=Q[U]?(Q[U].points=Y,Q[U].redraw()):(Y=new mxPolyline(Y,this.pageBreakColor),Y.dialect=this.dialect,Y.isDashed=this.pageBreakDashed,Y.pointerEvents=!1,Y.init(this.view.backgroundPane),Y.redraw(),Q[U]=Y)}for(U=N;U<+this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;q=C.height;var E=new mxRectangle(k*u.x,k*u.y,w.width*z,w.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(q/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,I=C.x+m,L=C.y+q;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(Q){if(null!=Q){for(var N=Q==this.horizontalPageBreaks?D:G,U=+0;U<=N;U++){var Y=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),Math.round(C.y+(U+1)*E.height)),new mxPoint(Math.round(I),Math.round(C.y+(U+1)*E.height))]:[new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(U+1)*E.width),Math.round(L))];null!=Q[U]?(Q[U].points=Y,Q[U].redraw()):(Y=new mxPolyline(Y,this.pageBreakColor),Y.dialect=this.dialect,Y.isDashed=this.pageBreakDashed,Y.pointerEvents=!1,Y.init(this.view.backgroundPane),Y.redraw(),Q[U]=Y)}for(U=N;U<Q.length;U++)null!=Q[U]&&Q[U].destroy();Q.splice(N,Q.length-N)}});g(this.horizontalPageBreaks);g(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(g,m,q){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var u=this.graph.getCellGeometry(m[k]);if(null!=u&&u.relative)return!1}}return b.apply(this,arguments)};var e=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var g=e.apply(this,arguments);g.intersects=mxUtils.bind(this,function(m,q){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(g,arguments)});return g};mxGraphView.prototype.createBackgroundPageShape=function(g){return new mxRectangleShape(g,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var g=this.getGraphBounds(),m=0<g.width?g.x/this.scale-this.translate.x:0,q=0<g.height?g.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,u=this.graph.pageScale,w=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/w);var z=Math.floor(Math.min(0,q)/k);return new mxRectangle(this.scale*(this.translate.x+u*w),this.scale*(this.translate.y+z*k),this.scale*(Math.ceil(Math.max(1,m+g.width/this.scale)/w)-u)*w,this.scale*(Math.ceil(Math.max(1,q+g.height/this.scale)/k)-z)*k)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){f.apply(this,arguments);this.dialect==@@ -2088,8 +2088,8 @@ k),mxClient.IS_IOS&&(b=function(){var K=null;if(/iP(hone|od|ad)/.test(navigator.function(K){var V=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(K)-V.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(K)-V.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var w=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(K,V){return f.isSpaceDown()||w.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(K){16==K.which?this.shiftDown=!0:32!=K.which||h.isEditing()?mxEvent.isConsumed(K)||27!=K.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),h.container.style.cursor="move",h.isEditing()||mxEvent.getSource(K)!=h.container||mxEvent.consume(K))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(K){h.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var z=h.panningHandler.isForcePanningEvent;h.panningHandler.isForcePanningEvent=function(K){return z.apply(this,arguments)||f.isSpaceDown()||mxEvent.isMouseEvent(K.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(K.getEvent()))&&(!mxEvent.isControlDown(K.getEvent())&&mxEvent.isRightMouseButton(K.getEvent())||mxEvent.isMiddleMouseButton(K.getEvent()))};var C=h.cellEditor.isStopEditingEvent;h.cellEditor.isStopEditingEvent=function(K){return C.apply(this,arguments)||13==K.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(K)||mxClient.IS_MAC&&-mxEvent.isMetaDown(K)||mxClient.IS_SF&&mxEvent.isShiftDown(K))};var E=h.isZoomWheelEvent;h.isZoomWheelEvent=function(){return f.isSpaceDown()||E.apply(this,arguments)};var D=!1,G=null,J=null,L=null,Q=mxUtils.bind(this,function(){if(null!=this.toolbar&&D!=h.cellEditor.isContentEditing()){for(var K=this.toolbar.container.firstChild,V=[];null!=K;){var Z=K.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,K)&&(K.parentNode.removeChild(K),V.push(K));K=Z}K=this.toolbar.fontMenu;Z=this.toolbar.sizeMenu;-if(null==L)this.toolbar.createTextToolbar();else{for(var ia=0;ia<L.length;ia++)this.toolbar.container.appendChild(L[ia]);this.toolbar.fontMenu=G;this.toolbar.sizeMenu=J}D=h.cellEditor.isContentEditing();G=K;J=Z;L=V}}),N=h.cellEditor.startEditing;h.cellEditor.startEditing=function(){N.apply(this,arguments);Q();if(h.cellEditor.isContentEditing()){var K=!1,V=function(){K||(K=!0,window.setTimeout(function(){var Z=h.getSelectedEditingElement();null!=Z&&(Z=mxUtils.getCurrentStyle(Z),null!=Z&&null!=f.toolbar&&+mxEvent.isMetaDown(K)||mxClient.IS_SF&&mxEvent.isShiftDown(K))};var E=h.isZoomWheelEvent;h.isZoomWheelEvent=function(){return f.isSpaceDown()||E.apply(this,arguments)};var D=!1,G=null,I=null,L=null,Q=mxUtils.bind(this,function(){if(null!=this.toolbar&&D!=h.cellEditor.isContentEditing()){for(var K=this.toolbar.container.firstChild,V=[];null!=K;){var Z=K.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,K)&&(K.parentNode.removeChild(K),V.push(K));K=Z}K=this.toolbar.fontMenu;Z=this.toolbar.sizeMenu;+if(null==L)this.toolbar.createTextToolbar();else{for(var ia=0;ia<L.length;ia++)this.toolbar.container.appendChild(L[ia]);this.toolbar.fontMenu=G;this.toolbar.sizeMenu=I}D=h.cellEditor.isContentEditing();G=K;I=Z;L=V}}),N=h.cellEditor.startEditing;h.cellEditor.startEditing=function(){N.apply(this,arguments);Q();if(h.cellEditor.isContentEditing()){var K=!1,V=function(){K||(K=!0,window.setTimeout(function(){var Z=h.getSelectedEditingElement();null!=Z&&(Z=mxUtils.getCurrentStyle(Z),null!=Z&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(Z.fontFamily)),f.toolbar.setFontSize(parseInt(Z.fontSize))));K=!1},0))};mxEvent.addListener(h.cellEditor.textarea,"input",V);mxEvent.addListener(h.cellEditor.textarea,"touchend",V);mxEvent.addListener(h.cellEditor.textarea,"mouseup",V);mxEvent.addListener(h.cellEditor.textarea,"keyup",V);V()}};var U=h.cellEditor.stopEditing;h.cellEditor.stopEditing=function(K,V){try{U.apply(this,arguments),Q()}catch(Z){f.handleError(Z)}};h.container.setAttribute("tabindex","0");h.container.style.cursor="default";if(window.self===window.top&&null!=h.container.parentNode)try{h.container.focus()}catch(K){}var Y=h.fireMouseEvent;h.fireMouseEvent=function(K,V,Z){try{K==mxEvent.MOUSE_DOWN&&this.container.focus(),Y.apply(this,arguments)}catch(ia){f.handleError(ia)}};var P=h.foldCells;h.foldCells=function(K,V,Z,ia,oa){try{P.apply(this,arguments)}catch(sa){f.handleError(sa)}};h.popupMenuHandler.autoExpand=!0;null!=this.menus&&(h.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(K,V,Z){this.menus.createPopupMenu(K,V,Z)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(K){h.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};h.connectionHandler.addListener(mxEvent.CONNECT,function(K,V){var Z=[V.getProperty("cell")];V.getProperty("terminalInserted")&&(Z.push(V.getProperty("terminal")),window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(h.view.getState(Z[Z.length-@@ -2124,14 +2124,14 @@ EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.popupMenuHandler.isMenuShowing=function(){return f.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var h=a.dblClick;a.dblClick=function(q,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(q)||a.isCellLocked(a.getDefaultParent()))h.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));mxEvent.consume(q);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.x,u.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",e);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var g=this.hoverIcons.execute;this.hoverIcons.execute=function(q,k,u){var w=u.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?g.apply(this,arguments):this.graph.connectVertex(q.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(z,C,E){var D=a.getCompositeParent(q.cell);z=a.getCellGeometry(D);for(u.consume();null!=D&&a.model.isVertex(D)&&null!=z&&z.relative;)cell=D,D=a.model.getParent(cell),z=a.getCellGeometry(D);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),D,mxUtils.bind(this,function(G){E(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(z){this.graph.selectCellsForConnectVertex(z,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(q,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=-k.getProperty("arrow"),w=k.getProperty("direction"),z=k.getProperty("event");u=u.getBoundingClientRect();var C=mxUtils.getOffset(a.container),E=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var D=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(E,C,D,mxUtils.bind(this,function(J){null!=J&&a.connectVertex(D,w,a.defaultEdgeLength,z,!0,!1,function(L,Q,N){N(J);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(J))},+k.getProperty("arrow"),w=k.getProperty("direction"),z=k.getProperty("event");u=u.getBoundingClientRect();var C=mxUtils.getOffset(a.container),E=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var D=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(E,C,D,mxUtils.bind(this,function(I){null!=I&&a.connectVertex(D,w,a.defaultEdgeLength,z,!0,!1,function(L,Q,N){N(I);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(I))},function(L){a.selectCellsForConnectVertex(L)},z,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,E,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(q,k){null!=m&&window.clearTimeout(m)}))}};EditorUi.prototype.centerShapePicker=function(a,b,e,f,h){if(h==mxConstants.DIRECTION_EAST||h==mxConstants.DIRECTION_WEST)a.style.width="40px";var d=a.getBoundingClientRect();h==mxConstants.DIRECTION_NORTH?(e-=d.width/2-10,f-=d.height+6):h==mxConstants.DIRECTION_SOUTH?(e-=d.width/2-10,f+=b.height+6):h==mxConstants.DIRECTION_WEST?(e-=d.width+6,f-=d.height/2-10):h==mxConstants.DIRECTION_EAST&&(e+=b.width+6,f-=d.height/2-10);a.style.left=e+"px";a.style.top=f+"px"};EditorUi.prototype.showShapePicker=function(a,b,e,f,h,d,g,m,q){var k=null;this.editor.graph.freehand.isDrawing()||(m=m||null==e,k=this.createShapePicker(a,b,e,f,h,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(e,d,m),d,g,m,q),null!=k&&(null==this.hoverIcons||d||this.hoverIcons.reset(),a=this.editor.graph,a.popupMenuHandler.hideMenu(),a.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=f,this.shapePicker=k));return k};-EditorUi.prototype.createShapePicker=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;var w=this.editor.graph,z=null;q=null!=q?q:function(D){D=D[0];var G=0,J=0,L=D.geometry;null!=L&&(w.model.isEdge(D)&&(D=L.getTerminalPoint(!1),L=new mxRectangle(0,0,D.x,D.y)),G=L.width/2,J=L.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=g&&0<g.length){var C=this;w=this.editor.graph;z=document.createElement("div");+EditorUi.prototype.createShapePicker=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;var w=this.editor.graph,z=null;q=null!=q?q:function(D){D=D[0];var G=0,I=0,L=D.geometry;null!=L&&(w.model.isEdge(D)&&(D=L.getTerminalPoint(!1),L=new mxRectangle(0,0,D.x,D.y)),G=L.width/2,I=L.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-I))};if(null!=g&&0<g.length){var C=this;w=this.editor.graph;z=document.createElement("div");h=w.view.getState(e);var E=null==e||null!=h&&w.isTransparentState(h)?null:w.copyStyle(e);h=6>g.length?35*g.length:140;z.className="geToolbarContainer geSidebarContainer geShapePicker";z.setAttribute("title",mxResources.get("sidebarTooltip"));z.style.left=Math.round(a)+"px";z.style.top=Math.round(b)+"px";z.style.width=h+"px";mxClient.IS_POINTER&&(z.style.touchAction="none");m||mxUtils.setPrefixedStyle(z.style,"transform","translate(-22px,-22px)");w.container.appendChild(z);h=mxUtils.bind(this,function(D){var G=-document.createElement("a");G.className="geToolbarButton";G.style.display="inline-block";G.style.position="relative";G.style.overflow="hidden";G.style.cursor="pointer";G.style.width="30px";G.style.height="30px";G.style.padding="1px";z.appendChild(G);null!=E&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(E,[D]):this.sidebar.graph.pasteCellStyles([D],w.currentVertexStyle,w.currentEdgeStyle);var J=D.geometry;w.model.isEdge(D)&&(J=J.getTerminalPoint(!1),J=new mxRectangle(0,0,J.x,J.y));null!=J&&-G.appendChild(this.sidebar.createVertexTemplateFromCells([D],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(L){if(!mxEvent.isShiftDown(L)||null==e&&w.isSelectionEmpty()){var Q=w.cloneCell(D);if(null!=f)f(Q);else{var N=q([Q]);w.model.isEdge(Q)?Q.geometry.translate(N.x,N.y):(Q.geometry.x=N.x,Q.geometry.y=N.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&+document.createElement("a");G.className="geToolbarButton";G.style.display="inline-block";G.style.position="relative";G.style.overflow="hidden";G.style.cursor="pointer";G.style.width="30px";G.style.height="30px";G.style.padding="1px";z.appendChild(G);null!=E&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(E,[D]):this.sidebar.graph.pasteCellStyles([D],w.currentVertexStyle,w.currentEdgeStyle);var I=D.geometry;w.model.isEdge(D)&&(I=I.getTerminalPoint(!1),I=new mxRectangle(0,0,I.x,I.y));null!=I&&+G.appendChild(this.sidebar.createVertexTemplateFromCells([D],I.width,I.height,"",!0,!1,null,!1,mxUtils.bind(this,function(L){if(!mxEvent.isShiftDown(L)||null==e&&w.isSelectionEmpty()){var Q=w.cloneCell(D);if(null!=f)f(Q);else{var N=q([Q]);w.model.isEdge(Q)?Q.geometry.translate(N.x,N.y):(Q.geometry.x=N.x,Q.geometry.y=N.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&w.startEditing(Q);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(Q))}}else Q=w.getEditableCells(null!=e?[e]:w.getSelectionCells()),w.updateShapes(D,Q);null!=d&&d(L);mxEvent.consume(L)}),25,25,null,null,e))});for(k=0;k<(m?Math.min(g.length,4):g.length);k++)h(g[k]);g=z.offsetTop+z.clientHeight-(w.container.scrollTop+w.container.offsetHeight);0<g&&(z.style.top=Math.max(w.container.scrollTop+22,b-g)+"px");g=z.offsetLeft+z.clientWidth-(w.container.scrollLeft+w.container.offsetWidth);0<g&&(z.style.left=Math.max(w.container.scrollLeft+22,a-g)+"px")}return z};EditorUi.prototype.getCellsForShapePicker=function(a,b,e){var f=this.editor.graph,h=mxUtils.bind(this,function(d,g,m,q){return f.createVertex(null,null,q||"",0,0,g||120,m||60,d,!1)});b=mxUtils.bind(this,function(d,g,m){d=new mxCell(m||"",new mxGeometry(0,0,f.defaultEdgeLength+20,0),d);d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new mxPoint(d.geometry.width,null!=g?g:0),!1);d.geometry.points=null!=g?[new mxPoint(d.geometry.width/2,g)]:[];d.geometry.relative=!0;d.edge=@@ -2168,16 +2168,16 @@ q.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.m(u.style.display="none",q.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(H){var ea=new mxPopupMenu(C.funct);ea.div.className+=" geMenubarMenu";ea.smartSeparators=!0;ea.showDisabled=!0;ea.autoExpand=!0;ea.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(ea,arguments);ea.destroy()});var ra=mxUtils.getOffset(k);ea.popup(ra.x,ra.y+k.offsetHeight,null,H);mxEvent.addListener(ea.div,"mouseleave",mxUtils.bind(this,function(){ea.hideMenu()}))}))}this.editor.addListener("resetGraphView",z);this.editor.addListener("pageSelected",w)}d(mxUtils.bind(this,function(H){this.actions.get("zoomOut").funct();mxEvent.consume(H)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(H){this.actions.get("zoomIn").funct();mxEvent.consume(H)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(H){a.isLightboxView()?(1==a.view.scale?this.lightboxFit():a.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(H)}),Editor.zoomFitImage,mxResources.get("fit"));var E=null,D=null,G=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);E=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);E=null;D=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";D=null}),-600)}),H||200)}),J=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,H||30)});if("1"==urlParams.layers){this.layersDialog=null;var L=d(mxUtils.bind(this,function(H){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=a.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&+600)}),H||200)}),I=mxUtils.bind(this,function(H){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,H||30)});if("1"==urlParams.layers){this.layersDialog=null;var L=d(mxUtils.bind(this,function(H){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=a.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var ea=L.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=ea.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));ea=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=ea.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(H)}),Editor.layersImage,mxResources.get("layers")),Q=a.getModel();Q.addListener(mxEvent.CHANGE,function(){L.style.display=1<Q.getChildCount(Q.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(d);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||d(mxUtils.bind(this,function(H){null!=this.editor.editButtonFunc?this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):a.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(H)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(z=0;z<this.lightboxToolbarActions.length;z++){var N=this.lightboxToolbarActions[z];N.elem=d(N.fn,N.icon,N.tooltip)}if(null!=h.refreshBtn){var U=null==h.refreshBtn.url?null:Graph.sanitizeLink(h.refreshBtn.url);d(mxUtils.bind(this,function(H){null!=U?window.location.href=U:window.location.reload();mxEvent.consume(H)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=h.fullscreenBtn&&window.self!==window.top&&d(mxUtils.bind(this,function(H){h.fullscreenBtn.url?a.openLink(h.fullscreenBtn.url):a.openLink(window.location.href);mxEvent.consume(H)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!h.noCloseBtn&&(h.closeBtn&&window.self===window.top||a.lightbox&&("1"==urlParams.close||this.container!=document.body))&&d(mxUtils.bind(this,function(H){"1"==urlParams.close||h.closeBtn?window.close():(this.destroy(),mxEvent.consume(H))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";a.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");a.container.appendChild(this.chromelessToolbar);mxEvent.addListener(a.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(H){mxEvent.isTouchEvent(H)||-(mxEvent.isShiftDown(H)||J(30),G())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(H){mxEvent.consume(H)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(H){a.tooltipHandler.resetTimer();a.tooltipHandler.hideTooltip();mxEvent.isShiftDown(H)?G():J(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(H){mxEvent.isShiftDown(H)?G():J(100);mxEvent.consume(H)}));mxEvent.addListener(this.chromelessToolbar,-"mouseleave",mxUtils.bind(this,function(H){mxEvent.isTouchEvent(H)||J(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(H,ea){this.startX=ea.getGraphX();this.startY=ea.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(H,ea){},mouseUp:function(H,ea){mxEvent.isTouchEvent(ea.getEvent())&&Math.abs(this.scrollLeft-a.container.scrollLeft)<Y&&Math.abs(this.scrollTop-a.container.scrollTop)<-Y&&Math.abs(this.startX-ea.getGraphX())<Y&&Math.abs(this.startY-ea.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?G():J(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var P=a.view.validate,T=new mxPoint,K=!1,V=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&V!=e.currentPage){V=e.currentPage;K=!0;var H=a.getBoundingBoxFromGeometry(a.model.getCells(),!0,null,!0);null==+(mxEvent.isShiftDown(H)||I(30),G())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(H){mxEvent.consume(H)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(H){a.tooltipHandler.resetTimer();a.tooltipHandler.hideTooltip();mxEvent.isShiftDown(H)?G():I(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(H){mxEvent.isShiftDown(H)?G():I(100);mxEvent.consume(H)}));mxEvent.addListener(this.chromelessToolbar,+"mouseleave",mxUtils.bind(this,function(H){mxEvent.isTouchEvent(H)||I(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(H,ea){this.startX=ea.getGraphX();this.startY=ea.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(H,ea){},mouseUp:function(H,ea){mxEvent.isTouchEvent(ea.getEvent())&&Math.abs(this.scrollLeft-a.container.scrollLeft)<Y&&Math.abs(this.scrollTop-a.container.scrollTop)<+Y&&Math.abs(this.startX-ea.getGraphX())<Y&&Math.abs(this.startY-ea.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?G():I(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var P=a.view.validate,T=new mxPoint,K=!1,V=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&V!=e.currentPage){V=e.currentPage;K=!0;var H=a.getBoundingBoxFromGeometry(a.model.getCells(),!0,null,!0);null==H&&(H=new mxRectangle(a.view.translate.x*a.view.scale,a.view.translate.y*a.view.scale));H=a.getPageLayout(H,T,1);var ea=a.getDefaultTranslate(H);this.x0=H.x;this.y0=H.y;if(ea.x!=this.translate.x||ea.y!=this.translate.y)this.invalidate(),this.translate.x=ea.x,this.translate.y=ea.y}ea=a.getPagePadding();var ra=a.getPageSize();H=ea.x-(this.x0||0)*ra.width;ea=ea.y-(this.y0||0)*ra.height;if(this.translate.x!=H||this.translate.y!=ea)this.invalidate(),this.translate.x=H,this.translate.y=ea}P.apply(this,arguments)};if(!a.isViewer()){var Z=a.sizeDidChange;a.sizeDidChange=function(){var H=K;K=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var ea=this.getPageLayout(),ra=this.getDefaultTranslate(ea),qa=this.view.translate.x,Pa=this.view.translate.y;if(ra.x!=qa||ra.y!=Pa){this.view.x0=ea.x;this.view.y0=ea.y;this.autoTranslate=!0;this.view.setTranslate(ra.x,ra.y);this.autoTranslate=!1;H||(this.container.scrollLeft+=Math.round((ra.x-qa)*this.view.scale),this.container.scrollTop+=Math.round((ra.y-Pa)*this.view.scale));return}}Z.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ia=a.view.getBackgroundPane(),oa=a.view.getDrawPane();a.cumulativeZoomFactor=1;var sa=null,O=null,X=null,ba=null,da=null,ca=function(H){null!=sa&&window.clearTimeout(sa);0<=H&&window.setTimeout(function(){if(!a.isMouseDown||ba)sa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&@@ -2279,8 +2279,8 @@ EditorUi.prototype.showBackgroundImageDialog=function(a,b){a=null!=a?a:mxUtils.bEditorUi.prototype.setBackgroundImage=function(a){this.editor.graph.setBackgroundImage(a);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mxEventObject("backgroundImageChanged"))};EditorUi.prototype.confirm=function(a,b,e){mxUtils.confirm(a)?null!=b&&b():null!=e&&e()};EditorUi.prototype.createOutline=function(a){var b=new mxOutline(this.editor.graph);mxEvent.addListener(window,"resize",function(){b.update(!1)});return b};EditorUi.prototype.altShiftActions={65:"connectionArrows",82:"clearWaypoints",76:"editLink",79:"connectionPoints",81:"editConnectionPoints",84:"editTooltip",86:"pasteSize",70:"copySize",66:"copyData",69:"pasteData"};EditorUi.prototype.ctrlAltShiftActions={70:"bringForward",66:"sendBackward"};EditorUi.prototype.ctrlAltActions={88:"copyAsImage"};EditorUi.prototype.createKeyHandler=function(a){function b(w,z,C){if(!f.isSelectionEmpty()&&f.isEnabled()){z=null!=z?z:1;var E=f.getCompositeParents(f.getSelectionCells()),D=0<E.length?E[0]:null;if(null!=D)if(C){f.getModel().beginUpdate();try{for(D=0;D<E.length;D++)if(f.getModel().isVertex(E[D])&&f.isCellResizable(E[D])){var G=f.getCellGeometry(E[D]);null!=G&&(G=G.clone(),37==w?G.width=Math.max(0,G.width-z):38==w?G.height=Math.max(0,G.height-z):39==w?G.width+=z:40==w&&(G.height+=z),f.getModel().setGeometry(E[D],-G))}}finally{f.getModel().endUpdate()}}else{G=f.model.getParent(D);var J=f.getView().scale;C=null;1==f.getSelectionCount()&&f.model.isVertex(D)&&null!=f.layoutManager&&!f.isCellLocked(D)&&(C=f.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)z=G.getIndex(D),37==w||38==w?f.model.add(G,D,Math.max(0,z-1)):(39==w||40==w)&&f.model.add(G,D,Math.min(f.model.getChildCount(G),z+1));else{var L=f.graphHandler;null!=L&&(null==L.first&&L.start(D,0,0,f.getMovableCells(E)),null!=L.first&&(D=-E=0,37==w?E=-z:38==w?D=-z:39==w?E=z:40==w&&(D=z),L.currentDx+=E*J,L.currentDy+=D*J,L.checkPreview(),L.updatePreview()),null!=g&&window.clearTimeout(g),g=window.setTimeout(function(){if(null!=L.first){var Q=L.roundLength(L.currentDx/J),N=L.roundLength(L.currentDy/J);L.moveCells(L.cells,Q,N);L.reset()}},400))}}}}var e=this,f=this.editor.graph,h=new mxKeyHandler(f),d=h.isEventIgnored;h.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||+G))}}finally{f.getModel().endUpdate()}}else{G=f.model.getParent(D);var I=f.getView().scale;C=null;1==f.getSelectionCount()&&f.model.isVertex(D)&&null!=f.layoutManager&&!f.isCellLocked(D)&&(C=f.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)z=G.getIndex(D),37==w||38==w?f.model.add(G,D,Math.max(0,z-1)):(39==w||40==w)&&f.model.add(G,D,Math.min(f.model.getChildCount(G),z+1));else{var L=f.graphHandler;null!=L&&(null==L.first&&L.start(D,0,0,f.getMovableCells(E)),null!=L.first&&(D=+E=0,37==w?E=-z:38==w?D=-z:39==w?E=z:40==w&&(D=z),L.currentDx+=E*I,L.currentDy+=D*I,L.checkPreview(),L.updatePreview()),null!=g&&window.clearTimeout(g),g=window.setTimeout(function(){if(null!=L.first){var Q=L.roundLength(L.currentDx/I),N=L.roundLength(L.currentDy/I);L.moveCells(L.cells,Q,N);L.reset()}},400))}}}}var e=this,f=this.editor.graph,h=new mxKeyHandler(f),d=h.isEventIgnored;h.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||90!=w.keyCode&&89!=w.keyCode&&188!=w.keyCode&&190!=w.keyCode&&85!=w.keyCode&&83!=w.keyCode)&&(66!=w.keyCode&&73!=w.keyCode||!this.isControlDown(w)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=w.keyCode&&107!=w.keyCode||!this.isControlDown(w)&&!mxEvent.isShiftDown(w)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&d.apply(this,arguments)};h.isEnabledForEvent=function(w){return!mxEvent.isConsumed(w)&&this.isGraphEvent(w)&&this.isEnabled()&&(null==e.dialogs||0==e.dialogs.length)};h.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var g=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},q=h.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?z=e.actions.get(e.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)?z=e.actions.get(e.altShiftActions[w.keyCode]):this.isControlDown(w)&&mxEvent.isAltDown(w)&&(z=e.actions.get(e.ctrlAltActions[w.keyCode]));if(null!=z)return z.funct;if(null!=m[w.keyCode]&&!f.isSelectionEmpty())if(!this.isControlDown(w)&&mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)){if(f.model.isVertex(f.getSelectionCell()))return function(){var C=f.connectVertex(f.getSelectionCell(),m[w.keyCode],f.defaultEdgeLength,w,!0);null!=C&&0<C.length&&(1==C.length&&f.model.isEdge(C[0])?f.setSelectionCell(f.model.getTerminal(C[0],@@ -2337,13 +2337,13 @@ Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&nuld)&&(m.push(C),k==g.length-1&&m.length==h))){f(m.slice(e*b,h),h,!0,g);return}}}else m=[];a=u;q++}}d=m.length;f(m.slice(e*b,(e+1)*b),d,!1,g)}else f([],null,null,g)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],e={},f=0;f<a.length;f++)null==e[a[f]]&&(e[a[f]]="1",b.push(a[f]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,e){};Sidebar.prototype.addSearchPalette=function(a){function b(){g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));q.style.display="none";k=d.value="";D()}var e=document.createElement("div");e.style.visibility="hidden";this.appendChild(e);var f=document.createElement("div");f.className="geSidebar geSearchSidebar";a||(f.style.display="none");var h=document.createElement("div");h.style.whiteSpace="nowrap";h.style.textOverflow="clip";h.style.paddingBottom="8px";h.style.cursor="default";var d=document.createElement("input");d.setAttribute("placeholder",mxResources.get("searchShapes"));d.setAttribute("type","text");h.appendChild(d);var g=document.createElement("img");g.setAttribute("src",Editor.magnifyImage);g.setAttribute("title",mxResources.get("search"));g.className="geAdaptiveAsset";g.style.position="relative";g.style.cursor="pointer";g.style.opacity="0.5";g.style.height="16px";g.style.left="-20px";g.style.top="4px";g.style.background="url('"+this.editorUi.editor.transparentImage+-"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),q=mxUtils.button(mxResources.get("moreResults"),function(){G()});q.style.display="none";q.style.lineHeight="normal";q.style.fontSize="12px";q.style.padding="6px 12px 6px 12px";q.style.marginTop="4px";q.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(q);f.appendChild(m);var k="",u=!1,w=!1,z=0,C={},E=12,D=mxUtils.bind(this,function(){u=!1;this.currentSearch=null;for(var J=f.firstChild;null!=-J;){var L=J.nextSibling;J!=h&&J!=m&&J.parentNode.removeChild(J);J=L}});mxEvent.addListener(g,"click",function(){g.getAttribute("src")!=Editor.magnifyImage&&b();d.focus()});var G=mxUtils.bind(this,function(){E=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=d.value){if(null!=m.parentNode&&(k!=d.value&&(D(),k=d.value,C={},w=!1,z=0),!u&&!w)){q.setAttribute("disabled","true");q.style.display="";q.style.cursor="wait";q.innerHTML=mxResources.get("loading")+-"...";u=!0;var J={};this.currentSearch=J;try{this.searchEntries(k,E,z,mxUtils.bind(this,function(L,Q,N,U){if(this.currentSearch==J){L=null!=L?L:[];u=!1;z++;this.insertSearchHint(f,k,E,z,L,Q,N,U);0==L.length&&1==z&&(k="");null!=m.parentNode&&m.parentNode.removeChild(m);for(Q=0;Q<L.length;Q++)mxUtils.bind(this,function(Y){try{var P=Y();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(Y,!1)&&(P.style.opacity=this.closedLibraryOpacity);null==C[P.innerHTML]?(C[P.innerHTML]=+"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),q=mxUtils.button(mxResources.get("moreResults"),function(){G()});q.style.display="none";q.style.lineHeight="normal";q.style.fontSize="12px";q.style.padding="6px 12px 6px 12px";q.style.marginTop="4px";q.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(q);f.appendChild(m);var k="",u=!1,w=!1,z=0,C={},E=12,D=mxUtils.bind(this,function(){u=!1;this.currentSearch=null;for(var I=f.firstChild;null!=+I;){var L=I.nextSibling;I!=h&&I!=m&&I.parentNode.removeChild(I);I=L}});mxEvent.addListener(g,"click",function(){g.getAttribute("src")!=Editor.magnifyImage&&b();d.focus()});var G=mxUtils.bind(this,function(){E=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=d.value){if(null!=m.parentNode&&(k!=d.value&&(D(),k=d.value,C={},w=!1,z=0),!u&&!w)){q.setAttribute("disabled","true");q.style.display="";q.style.cursor="wait";q.innerHTML=mxResources.get("loading")++"...";u=!0;var I={};this.currentSearch=I;try{this.searchEntries(k,E,z,mxUtils.bind(this,function(L,Q,N,U){if(this.currentSearch==I){L=null!=L?L:[];u=!1;z++;this.insertSearchHint(f,k,E,z,L,Q,N,U);0==L.length&&1==z&&(k="");null!=m.parentNode&&m.parentNode.removeChild(m);for(Q=0;Q<L.length;Q++)mxUtils.bind(this,function(Y){try{var P=Y();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(Y,!1)&&(P.style.opacity=this.closedLibraryOpacity);null==C[P.innerHTML]?(C[P.innerHTML]=null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(P)):null!=Y.parentLibraries&&(C[P.innerHTML]=C[P.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(P,null,null,mxUtils.bind(this,function(T){var K=C[P.innerHTML];mxEvent.isPopupTrigger(T)&&this.showPopupMenuForEntry(P,K,T)}));mxEvent.disableContextMenu(P)}catch(T){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(T.stack)):console.error(T))}})(L[Q]);N?(q.removeAttribute("disabled"),-q.innerHTML=mxResources.get("moreResults")):(q.innerHTML=mxResources.get("reset"),q.style.display="none",w=!0);q.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){q.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},q.style.display="none",w=!1,d.focus()});this.searchShapes=function(J){d.value=J;G()};mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(J){13==J.keyCode?(G(),mxEvent.consume(J)):27==J.keyCode&&b()}));+q.innerHTML=mxResources.get("moreResults")):(q.innerHTML=mxResources.get("reset"),q.style.display="none",w=!0);q.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){q.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},q.style.display="none",w=!1,d.focus()});this.searchShapes=function(I){d.value=I;G()};mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(I){13==I.keyCode?(G(),mxEvent.consume(I)):27==I.keyCode&&b()}));a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==d.value?(g.setAttribute("src",Editor.magnifyImage),g.setAttribute("title",mxResources.get("search"))):(g.setAttribute("src",Editor.crossImage),g.setAttribute("title",mxResources.get("reset")));""==d.value?(w=!0,q.style.display="none"):d.value!=k?(q.style.display="none",w=!1):u||(q.style.display=w?"none":"")}),0)});mxEvent.addListener(d,"keyup",a);mxEvent.addListener(d,"paste",a);mxEvent.addListener(d,"cut",a);mxEvent.addListener(d,-"mousedown",function(J){J.stopPropagation&&J.stopPropagation();J.cancelBubble=!0});mxEvent.addListener(d,"selectstart",function(J){J.stopPropagation&&J.stopPropagation();J.cancelBubble=!0});a=document.createElement("div");a.appendChild(f);this.appendChild(a);this.palettes.search=[e,a]};+"mousedown",function(I){I.stopPropagation&&I.stopPropagation();I.cancelBubble=!0});mxEvent.addListener(d,"selectstart",function(I){I.stopPropagation&&I.stopPropagation();I.cancelBubble=!0});a=document.createElement("div");a.appendChild(f);this.appendChild(a);this.palettes.search=[e,a]};Sidebar.prototype.insertSearchHint=function(a,b,e,f,h,d,g,m){0==h.length&&1==f&&(e=document.createElement("div"),e.className="geTitle",e.style.cssText="background-color:transparent;border-color:transparent;padding:6px 0px 0px 0px !important;margin:4px 8px 4px 8px;text-align:center;cursor:default !important;font-size:11px;font-weight:normal;",mxUtils.write(e,mxResources.get("noResultsFor",[b])),a.appendChild(e))};Sidebar.prototype.addGeneralPalette=function(a){this.setCurrentSearchEntryLibrary("general","general");var b=this.editorUi.editor.graph,e=this,f=parseInt(this.initialDefaultVertexStyle.fontSize);f=isNaN(f)?"":"fontSize="+Math.min(16,f)+";";var h=b.appendFontSize("edgeLabel;resizable=0;html=1;",b.edgeFontSize),d=new mxCell("List Item",new mxGeometry(0,0,80,30),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;"+f);d.vertex=!0;b=[this.createVertexTemplateEntry("rounded=0;whiteSpace=wrap;html=1;",120,60,"","Rectangle",null,null,"rect rectangle box"),this.createVertexTemplateEntry("rounded=1;whiteSpace=wrap;html=1;",120,60,"","Rounded Rectangle",null,null,"rounded rect rectangle box"),this.createVertexTemplateEntry(b.appendFontSize("text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",b.vertexFontSize),60,30,"Text","Text",null,null,"text textbox textarea label"),this.createVertexTemplateEntry("text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;",@@ -2454,17 +2454,17 @@ a.height))/100,this.graph.view.scaleAndTranslate(k,(b-a.width*k)/2/k-a.x,(e-a.hek.style.overflow=null!=w?"visible":"hidden";k.style.left=(null!=u?u:this.thumbBorder)+"px";k.style.top=k.style.left;k.style.width=b+"px";k.style.height=e+"px";k.style.visibility="";k.style.minWidth="";k.style.minHeight="";this.disablePointerEvents(k);f.appendChild(k);this.sidebarTitles&&null!=h&&0!=g&&(f.style.height=this.thumbHeight+0+this.sidebarTitleSize+8+"px",b=document.createElement("div"),b.style.color=Editor.isDarkMode()?"#A0A0A0":"#303030",b.style.fontSize=this.sidebarTitleSize+"px",b.style.textAlign="center",b.style.whiteSpace="nowrap",b.style.overflow="hidden",b.style.textOverflow="ellipsis",mxClient.IS_IE&&(b.style.height=this.sidebarTitleSize+12+"px"),b.style.paddingTop="4px",mxUtils.write(b,h),f.appendChild(b));return a};Sidebar.prototype.createSection=function(a){return mxUtils.bind(this,function(){var b=document.createElement("div");b.setAttribute("title",a);b.style.textOverflow="ellipsis";b.style.whiteSpace="nowrap";b.style.textAlign="center";b.style.overflow="hidden";b.style.width="100%";b.style.padding="14px 0";mxUtils.write(b,a);return b})};-Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var E=document.createElement("a");E.className="geItem";E.style.overflow="hidden";var D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";E.style.padding=this.thumbPadding+"px";mxEvent.addListener(E,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,h,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),+Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var E=document.createElement("a");E.className="geItem";E.style.overflow="hidden";var D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";E.style.padding=this.thumbPadding+"px";mxEvent.addListener(E,"click",function(I){mxEvent.consume(I)});var G=new mxRectangle(0,0,h,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),null!=w?(E.style.backgroundImage="url("+w+")",E.style.backgroundRepeat="no-repeat",E.style.backgroundPosition="center",E.style.backgroundSize="24px 24px"):this.createThumb(D,k,u,E,b,e,f,h,d),1<a.length||a[0].vertex?(f=this.createDragSource(E,this.createDropHandler(a,!0,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q,z),f.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):-null!=a[0]&&a[0].edge&&(f=this.createDragSource(E,this.createDropHandler(a,!1,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(J){mxEvent.isMouseEvent(J)&&this.showTooltip(E,a,G.width,G.height,b,e)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};+null!=a[0]&&a[0].edge&&(f=this.createDragSource(E,this.createDropHandler(a,!1,g,G,z,C),this.createDragPreview(h,d),a,G,z),this.addClickHandler(E,f,a,q)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(I){mxEvent.isMouseEvent(I)&&this.showTooltip(E,a,G.width,G.height,b,e)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};Sidebar.prototype.createDropHandler=function(a,b,e,f,h,d){e=null!=e?e:!0;return mxUtils.bind(this,function(g,m,q,k,u,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&g.isEnabled()){a=g.getImportableCells(a);if(0<a.length){g.stopEditing();w=null==q||mxEvent.isAltDown(m)?!1:g.isValidDropTarget(q,a,m);var z=null;null==q||w||(q=null);if(!g.isCellLocked(q||-g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(q,a,m)){var C=g.view.scale,E=g.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,J=g.cloneCells(a);g.splitEdge(q,J,null,k-f.width/2,u-f.height/2,D,G);z=J}else if(0<a.length&&(z=g.importCells(a,k,u,q),g.model.isVertex(d)&&1==z.length&&g.model.isVertex(z[0]))){var L=g.insertEdge(g.model.getParent(d),null,"",d,z[0],g.createCurrentEdgeStyle());g.applyNewEdgeStyle(d,[L]);z.push(L);g.connectionHandler.insertBeforeSource&&+g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(q,a,m)){var C=g.view.scale,E=g.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,I=g.cloneCells(a);g.splitEdge(q,I,null,k-f.width/2,u-f.height/2,D,G);z=I}else if(0<a.length&&(z=g.importCells(a,k,u,q),g.model.isVertex(d)&&1==z.length&&g.model.isVertex(z[0]))){var L=g.insertEdge(g.model.getParent(d),null,"",d,z[0],g.createCurrentEdgeStyle());g.applyNewEdgeStyle(d,[L]);z.push(L);g.connectionHandler.insertBeforeSource&&g.insertEdgeBeforeCell(L,d)}if(null!=g.layoutManager){var Q=g.layoutManager.getLayout(q);if(null!=Q){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var N=0;N<z.length;N++)Q.moveCell(z[N],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(N=0;N<z.length;N++)g.model.isVertex(z[N])&&g.isAutoSizeCell(z[N])&&g.updateCellSize(z[N])}catch(U){this.editorUi.handleError(U)}finally{g.model.endUpdate()}null!=z&&0<z.length&&(g.scrollCellToVisible(z[0]),g.setSelectionCells(z));(h||g.editAfterInsert&&null!=m&&mxEvent.isMouseEvent(m)&&null!=z&&1==z.length)&&window.setTimeout(function(){g.startEditing(z[0])},0)}}mxEvent.consume(m)}})};Sidebar.prototype.createDragPreview=function(a,b){var e=document.createElement("div");e.className="geDragPreview";e.style.width=a+"px";e.style.height=b+"px";return e};-Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,q=m.model.isEdge(a)||null!=d?d:g;q=this.getDropAndConnectGeometry(a,b[q],e,b);var k=[];if(null!=q){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),z=m.getCellGeometry(b[f]),C=m.model.getParent(a),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var J=k.origin;D=J.x;-G=J.y}var L=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),Q=m.getCellAt((q.x+D+m.view.translate.x)*m.view.scale,(q.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(K,V,Z){return!m.isContainer(K.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(J=k.origin,C=Q,L=!0,m.model.isEdge(a)||(q.x-=J.x-D,q.y-=J.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))q.x+=D,q.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,q.x-(L?D:0),q.y-(L?+Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,q=m.model.isEdge(a)||null!=d?d:g;q=this.getDropAndConnectGeometry(a,b[q],e,b);var k=[];if(null!=q){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),z=m.getCellGeometry(b[f]),C=m.model.getParent(a),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var I=k.origin;D=I.x;+G=I.y}var L=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),Q=m.getCellAt((q.x+D+m.view.translate.x)*m.view.scale,(q.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(K,V,Z){return!m.isContainer(K.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(I=k.origin,C=Q,L=!0,m.model.isEdge(a)||(q.x-=I.x-D,q.y-=I.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))q.x+=D,q.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,q.x-(L?D:0),q.y-(L?G:0),L?C:null);if(m.model.isEdge(a))m.model.setTerminal(a,b[f],e==mxConstants.DIRECTION_NORTH),null!=g&&null!=d&&(m.model.remove(b[g]),m.updateShapes(b[g],[a]));else if(m.model.isEdge(b[f])&&null==d){m.model.setTerminal(b[f],a,!0);var N=m.getCellGeometry(b[f]),U=null!=N?N.getTerminalPoint(!0):null;N.points=null;if(null!=U)for(e=0;e<b.length;e++)if(m.model.isEdge(b[e])&&e!=f){var Y=m.getCellGeometry(b[e]),P=null!=Y?Y.getTerminalPoint(!0):null;null!=P&&P.x==U.x&&P.y==U.y&&m.model.setTerminal(b[e],a,-!0)}if(null!=N.getTerminalPoint(!1))N.setTerminalPoint(q.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var T=m.view.getState(C);J=T.cell!=m.view.currentRoot?T.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=q.x-Math.round(z.x),G=q.y-Math.round(z.y),q.x=Math.round(z.x),q.y=Math.round(z.y),m.model.setGeometry(b[f],q),m.cellsMoved(b,D,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=g?m.model.setTerminal(b[g],a,!0):b.push(m.insertEdge(null,+!0)}if(null!=N.getTerminalPoint(!1))N.setTerminalPoint(q.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var T=m.view.getState(C);I=T.cell!=m.view.currentRoot?T.origin:new mxPoint(0,0);m.cellsMoved(b,I.x,I.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=q.x-Math.round(z.x),G=q.y-Math.round(z.y),q.x=Math.round(z.x),q.y=Math.round(z.y),m.model.setGeometry(b[f],q),m.cellsMoved(b,D,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=g?m.model.setTerminal(b[g],a,!0):b.push(m.insertEdge(null,null,"",a,b[f],m.createCurrentEdgeStyle())));null!=h&&mxEvent.isShiftDown(h)||m.fireEvent(new mxEventObject("cellsInserted","cells",b))}catch(K){this.editorUi.handleError(K)}finally{m.model.endUpdate()}m.editAfterInsert&&null!=h&&mxEvent.isMouseEvent(h)&&null!=u&&window.setTimeout(function(){m.startEditing(u)},0)}null!=g&&1<k.length&&k.splice(g,1);return k};Sidebar.prototype.getDropAndConnectGeometry=function(a,b,e,f){var h=this.editorUi.editor.graph,d=h.view,g=1<f.length,m=h.view.getState(a),q=h.getCellGeometry(a);f=h.getCellGeometry(b);null!=m&&null!=q&&null!=f&&(f=f.clone(),h.model.isEdge(a)?(q=m.absolutePoints,b=q[0],h=q[q.length-1],e==mxConstants.DIRECTION_NORTH?(f.x=b.x/d.scale-d.translate.x-f.width/2,f.y=b.y/d.scale-d.translate.y-f.height/2):(f.x=h.x/d.scale-d.translate.x-f.width/2,f.y=h.y/d.scale-d.translate.y-f.height/2)):(q.relative&&(q=q.clone(),q.x=(m.x-d.translate.x)/d.scale,q.y=(m.y-d.translate.y)/d.scale),d=h.defaultEdgeLength,h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=f.getTerminalPoint(!1)?(b=f.getTerminalPoint(!0),h=f.getTerminalPoint(!1),d=h.x-b.x,b=h.y-b.y,d=Math.sqrt(d*d+b*b),f.x=q.getCenterX(),f.y=q.getCenterY(),f.width=1,f.height=1,e==mxConstants.DIRECTION_NORTH?(f.height=d,f.y=q.y-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1)):e==mxConstants.DIRECTION_EAST?(f.width=d,f.x=q.x+q.width,f.setTerminalPoint(new mxPoint(f.x+@@ -2476,7 +2476,7 @@ Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(ma,Ba){var Cq.editor.graph,u=null,w=null,z=this;d=0;for(var C=this.livePreview,E=0;E<f.length&&C;E++)d+=k.model.getDescendants(f[E]).length,C=d<k.graphHandler.maxLivePreview;for(E=0;E<f.length&&(null==w&&k.model.isVertex(f[E])?w=E:null==u&&k.model.isEdge(f[E])&&null==k.model.getTerminal(f[E],!0)&&(u=E),null==w||null==u);E++);var D=this.isDropStyleEnabled(f,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(ma,Ba,Ca,Ja,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=N&&O==V){var Da=ma.isCellSelected(N.cell)?ma.getSelectionCells():[N.cell];ma.updateShapes(ma.model.isEdge(N.cell)?f[0]:f[w],Da,!0);ma.setSelectionCells(Da)}else null!=f&&null!=O&&null!=L&&O!=V?(Da=ma.model.isEdge(L.cell)||null==u?w:u,ma.setSelectionCells(this.dropAndConnect(L.cell,f,sa,Da,Ba,w,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(ma.view.getState(ma.getSelectionCell()))}),e,0,0,k.autoscroll,!0,!0);C&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),G.createPreviewElement=mxUtils.bind(this,function(ma){var Ba=document.createElement("a");Ba.className="geItem";Ba.style.overflow="visible";ma=ma.view.scale;Ba.style.width=ma*Math.max(1,h.width)+"px";Ba.style.height=ma*Math.max(1,h.height)+"px";mxUtils.setOpacity(Ba,50);var Ca=k.cloneCells(f);this.graph.pasteCellStyles(k.includeDescendants(Ca),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);z.createThumb(Ca,ma*Math.max(1,h.width),ma*Math.max(1,h.height),Ba,null,null,null,null,null,k.shapeBackgroundColor,-0,ma);return Ba}));var J=G.mouseDown;G.mouseDown=function(ma){mxEvent.isPopupTrigger(ma)||mxEvent.isMultiTouchEvent(ma)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),J.apply(this,arguments))};var L=null,Q=null,N=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),P=g(this.triangleRight,mxResources.get("connect")),T=g(this.triangleDown,mxResources.get("connect")),K=g(this.triangleLeft,mxResources.get("connect")),V=g(this.refreshTarget,mxResources.get("replace")),Z=null,ia=g(this.roundDrop),+0,ma);return Ba}));var I=G.mouseDown;G.mouseDown=function(ma){mxEvent.isPopupTrigger(ma)||mxEvent.isMultiTouchEvent(ma)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),I.apply(this,arguments))};var L=null,Q=null,N=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),P=g(this.triangleRight,mxResources.get("connect")),T=g(this.triangleDown,mxResources.get("connect")),K=g(this.triangleLeft,mxResources.get("connect")),V=g(this.refreshTarget,mxResources.get("replace")),Z=null,ia=g(this.roundDrop),oa=g(this.roundDrop),sa=mxConstants.DIRECTION_NORTH,O=null,X=G.createPreviewElement;G.createPreviewElement=function(ma){var Ba=X.apply(this,arguments);mxClient.IS_SVG&&(Ba.style.pointerEvents="none");this.previewElementWidth=Ba.style.width;this.previewElementHeight=Ba.style.height;return Ba};var ba=G.dragEnter;G.dragEnter=function(ma,Ba){null!=q.hoverIcons&&q.hoverIcons.setDisplay("none");ba.apply(this,arguments)};var da=G.dragExit;G.dragExit=function(ma,Ba){null!=q.hoverIcons&&q.hoverIcons.setDisplay("");da.apply(this,arguments)};G.dragOver=function(ma,Ba){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){q.hideShapePicker();var Ca=ma.view;if(null!=N&&O==V)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ja=ma.model.isEdge(L.cell)||null!=w?w:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Ja],sa,f),Da=ma.model.isEdge(L.cell)?null:ma.getCellGeometry(L.cell),Ga=ma.getCellGeometry(f[Ja]),ta=ma.model.getParent(L.cell),La=Ca.translate.x*Ca.scale,Xa=Ca.translate.y*Ca.scale;null!=Da&&!Da.relative&&ma.model.isVertex(ta)&&ta!=Ca.currentRoot&&(Xa=Ca.getState(ta),La=Xa.x,Xa=Xa.y);Da=Ga.x;Ga=Ga.y;ma.model.isEdge(f[Ja])&&(Ga=Da=0);this.previewElement.style.left=(Ia.x-Da)*Ca.scale+La+"px";this.previewElement.style.top=(Ia.y-Ga)*Ca.scale+Xa+"px";1==f.length&&(this.previewElement.style.width=Ia.width*Ca.scale+"px",this.previewElement.style.height=@@ -2515,7 +2515,7 @@ null)}),200)}),0)):(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),wiSidebar.prototype.addImagePalette=function(a,b,e,f,h,d,g){for(var m=[],q=0;q<h.length;q++)mxUtils.bind(this,function(k,u,w){if(null==w&&(null==e||"img/lib/clip_art/"!=e.substring(0,17))){w=k.lastIndexOf("/");var z=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=z?z:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+e+k+f,this.defaultImageWidth,this.defaultImageHeight,"",u,null!=u,null,this.filterTags(w)))})(h[q],null!=d?d[q]:null,null!=g?g[h[q]]:null);this.addPaletteFunctions(a,b,!1,m)};Sidebar.prototype.getTagsForStencil=function(a,b,e){a=a.split(".");for(var f=1;f<a.length;f++)a[f]=a[f].replace(/_/g," ");a.push(b.replace(/_/g," "));null!=e&&a.push(e);return a.slice(1,a.length)};Sidebar.prototype.addStencilPalette=function(a,b,e,f,h,d,g,m,q,k){g=null!=g?g:1;if(this.addStencilsToIndex){var u=[];if(null!=q)for(k=0;k<q.length;k++)u.push(q[k]);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(w,z,C,E,D){if(null==h||0>mxUtils.indexOf(h,z)){C=this.getTagsForStencil(w,z);var G=null!=m?m[z]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+w+z.toLowerCase()+f,Math.round(E*g),Math.round(D*g),"",z.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),-!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==f&&(f="");null!=d&&d.call(this,w);if(null!=q)for(var z=0;z<q.length;z++)q[z](w);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,J){(null==h||0>mxUtils.indexOf(h,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+f,Math.round(G*g),Math.round(J*g),"",E.replace(/_/g," "),!0))}),!0)}))};+!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==f&&(f="");null!=d&&d.call(this,w);if(null!=q)for(var z=0;z<q.length;z++)q[z](w);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,I){(null==h||0>mxUtils.indexOf(h,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+f,Math.round(G*g),Math.round(I*g),"",E.replace(/_/g," "),!0))}),!0)}))};Sidebar.prototype.destroy=function(){null!=this.graph&&(null!=this.graph.container&&null!=this.graph.container.parentNode&&this.graph.container.parentNode.removeChild(this.graph.container),this.graph.destroy(),this.graph=null);null!=this.escapeListener&&(this.editorUi.editor.graph.removeListener(this.escapeListener),this.escapeListener=null);null!=this.pointerUpHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerup":"mouseup",this.pointerUpHandler),this.pointerUpHandler=null);null!=this.pointerDownHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerdown":"mousedown",this.pointerDownHandler),this.pointerDownHandler=null);null!=this.pointerMoveHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.pointerMoveHandler),this.pointerMoveHandler=null);null!=this.pointerOutHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerout":"mouseout",this.pointerOutHandler),this.pointerOutHandler=null)};(function(){var a=[["nbsp","160"],["shy","173"]],b=mxUtils.parseXml;mxUtils.parseXml=function(f){for(var h=0;h<a.length;h++)f=f.replace(new RegExp("&"+a[h][0]+";","g"),"&#"+a[h][1]+";");return b(f)};var e=mxUtils.getSizeForString;mxUtils.getSizeForString=function(f,h,d,g){return e(Graph.sanitizeHtml(f),h,d,g)}})();Date.prototype.toISOString||function(){function a(b){b=String(b);1===b.length&&(b="0"+b);return b}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});@@ -2548,8 +2548,8 @@ X&&(O.lastLabelValue=X,O.lastSanitizedLabelValue=Graph.sanitizeHtml(X),z.innerHTda;da=this.graph.view.translate;for(var H=this.graph.view.scale,ea=this.graph.getPageLayout(),ra=0;ra<ea.width;ra++)X.push(new mxRectangle(((ea.x+ra)*ca+da.x)*H,(ea.y*ba+da.y)*H,ca*H,ba*H));for(ra=1;ra<ea.height;ra++)X.push(new mxRectangle((ea.x*ca+da.x)*H,((ea.y+ra)*ba+da.y)*H,ca*H,ba*H));O=X.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,X){return null==O.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(O){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var E=this.graphHandler.getCells;this.graphHandler.getCells=function(O){for(var X=E.apply(this,arguments),ba=new mxDictionary,da=[],ca=0;ca<X.length;ca++){var H=this.graph.isTableCell(O)&&this.graph.isTableCell(X[ca])&&this.graph.isCellSelected(X[ca])?this.graph.model.getParent(X[ca]):this.graph.isTableRow(O)&&this.graph.isTableRow(X[ca])&&this.graph.isCellSelected(X[ca])?X[ca]:this.graph.getCompositeParent(X[ca]);null==H||ba.get(H)||(ba.put(H,!0),da.push(H))}return da};var D=this.graphHandler.start;this.graphHandler.start=function(O,X,ba,da){var ca=!1;this.graph.isTableCell(O)&&(this.graph.isCellSelected(O)?ca=!0:O=this.graph.model.getParent(O));ca||this.graph.isTableRow(O)&&this.graph.isCellSelected(O)||(O=this.graph.getCompositeParent(O));D.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(O,X){X=this.graph.getCompositeParent(X);-return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,X,ba,da,ca,H){var ea=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=da&&this.graph.applyNewEdgeStyle(da,[ea]);return ea};var G=new mxRubberband(this);this.getRubberband=function(){return G};var J=(new Date).getTime(),L=0,Q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;Q.apply(this,arguments);O!=this.currentState?-(J=(new Date).getTime(),L=0):L=(new Date).getTime()-J};var N=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(O){return mxEvent.isShiftDown(O.getEvent())&&mxEvent.isAltDown(O.getEvent())?!1:null!=this.currentState&&O.getState()==this.currentState&&2E3<L||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&N.apply(this,arguments)};var U=this.isToggleEvent;this.isToggleEvent=function(O){return U.apply(this,+return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,X,ba,da,ca,H){var ea=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=da&&this.graph.applyNewEdgeStyle(da,[ea]);return ea};var G=new mxRubberband(this);this.getRubberband=function(){return G};var I=(new Date).getTime(),L=0,Q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;Q.apply(this,arguments);O!=this.currentState?+(I=(new Date).getTime(),L=0):L=(new Date).getTime()-I};var N=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(O){return mxEvent.isShiftDown(O.getEvent())&&mxEvent.isAltDown(O.getEvent())?!1:null!=this.currentState&&O.getState()==this.currentState&&2E3<L||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&N.apply(this,arguments)};var U=this.isToggleEvent;this.isToggleEvent=function(O){return U.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(O)};var Y=G.isForceRubberbandEvent;G.isForceRubberbandEvent=function(O){return Y.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(O.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==O.getState()&&mxEvent.isTouchEvent(O.getEvent())};var P=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(P=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=P)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(O){return mxEvent.isMouseEvent(O.getEvent())};var T=this.click;this.click=function(O){var X=null==O.state&&null!=O.sourceState&&this.isCellLocked(this.getLayerForCell(O.sourceState.cell));if(this.isEnabled()&&!X||O.isConsumed())return T.apply(this,arguments);var ba=X?O.sourceState.cell:O.getCell();if(null!=ba){var da=this.getClickableLinkForCell(ba);null!=da?this.isCustomLink(da)?this.customLinkClicked(da,ba):this.openLink(da):X&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};var K=this.tooltipHandler.show;this.tooltipHandler.show=function(){K.apply(this,arguments);if(null!=this.div)for(var O=this.div.getElementsByTagName("a"),X=0;X<O.length;X++)null!=O[X].getAttribute("href")&&null==O[X].getAttribute("target")&&O[X].setAttribute("target",@@ -2584,16 +2584,16 @@ Graph.arrayBufferToString=function(a){var b="";a=new Uint8Array(a);for(var e=a.bGraph.arrayBufferIndexOfString=function(a,b,e){var f=b.charCodeAt(0),h=1,d=-1;for(e=e||0;e<a.byteLength;e++)if(a[e]==f){d=e;break}for(e=d+1;-1<d&&e<a.byteLength&&e<d+b.length-1;e++){if(a[e]!=b.charCodeAt(h))return Graph.arrayBufferIndexOfString(a,b,d+1);h++}return h==b.length-1?d:-1};Graph.compress=function(a,b){if(null==a||0==a.length||"undefined"===typeof pako)return a;a=b?pako.deflate(encodeURIComponent(a)):pako.deflateRaw(encodeURIComponent(a));return btoa(Graph.arrayBufferToString(new Uint8Array(a)))};Graph.decompress=function(a,b,e){if(null==a||0==a.length||"undefined"===typeof pako)return a;a=Graph.stringToArrayBuffer(atob(a));b=decodeURIComponent(b?pako.inflate(a,{to:"string"}):pako.inflateRaw(a,{to:"string"}));return e?b:Graph.zapGremlins(b)};Graph.fadeNodes=function(a,b,e,f,h){h=null!=h?h:1E3;Graph.setTransitionForNodes(a,null);Graph.setOpacityForNodes(a,b);window.setTimeout(function(){Graph.setTransitionForNodes(a,"all "+h+"ms ease-in-out");Graph.setOpacityForNodes(a,e);window.setTimeout(function(){Graph.setTransitionForNodes(a,null);null!=f&&f()},h)},0)};-Graph.exploreFromCell=function(a,b,e){pageSize=null!=e&&null!=e.pageSize?e.pageSize:8;minSize=null!=e&&null!=e.minSize?e.minSize:180;(function(f,h){function d(u,w){if(u.getModel().isVertex(w)){var z=u.container.scrollWidth/2,C=u.container.scrollHeight/2;u.rootCell=w.referenceCell||w;u.getModel().beginUpdate();try{for(var E=w.referenceCell||w,D=f.model.getCell(E.sourceCellId),G=f.getEdges(D,null,!0,!0,!1,!0),J=[],L=0;L<G.length;L++)null!=G[L].getTerminal(!0)&&null!=G[L].getTerminal(!1)&&f.isCellVisible(G[L])&&-!f.isEdgeIgnored(G[L])&&f.isCellVisible(G[L].getTerminal(!0))&&f.isCellVisible(G[L].getTerminal(!1))&&f.isCellVisible(f.getLayerForCell(G[L]))&&J.push(G[L]);J=G=J;if(null!=w.startIndex||0<pageSize&&G.length>pageSize){var Q=w.startIndex||0;J=G.slice(Math.max(0,Q),Math.min(G.length,Q+pageSize))}J=f.getOpposites(J,D).concat(J);var N=u.cloneCells(J);for(L=0;L<J.length;L++)if(N[L].sourceCellId=J[L].id,u.model.isEdge(N[L]))for(N[L].geometry.x=0,N[L].geometry.y=0,N[L].geometry.points=null,N[L].setStyle(N[L].getStyle()++Graph.exploreFromCell=function(a,b,e){pageSize=null!=e&&null!=e.pageSize?e.pageSize:8;minSize=null!=e&&null!=e.minSize?e.minSize:180;(function(f,h){function d(u,w){if(u.getModel().isVertex(w)){var z=u.container.scrollWidth/2,C=u.container.scrollHeight/2;u.rootCell=w.referenceCell||w;u.getModel().beginUpdate();try{for(var E=w.referenceCell||w,D=f.model.getCell(E.sourceCellId),G=f.getEdges(D,null,!0,!0,!1,!0),I=[],L=0;L<G.length;L++)null!=G[L].getTerminal(!0)&&null!=G[L].getTerminal(!1)&&f.isCellVisible(G[L])&&+!f.isEdgeIgnored(G[L])&&f.isCellVisible(G[L].getTerminal(!0))&&f.isCellVisible(G[L].getTerminal(!1))&&f.isCellVisible(f.getLayerForCell(G[L]))&&I.push(G[L]);I=G=I;if(null!=w.startIndex||0<pageSize&&G.length>pageSize){var Q=w.startIndex||0;I=G.slice(Math.max(0,Q),Math.min(G.length,Q+pageSize))}I=f.getOpposites(I,D).concat(I);var N=u.cloneCells(I);for(L=0;L<I.length;L++)if(N[L].sourceCellId=I[L].id,u.model.isEdge(N[L]))for(N[L].geometry.x=0,N[L].geometry.y=0,N[L].geometry.points=null,N[L].setStyle(N[L].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffc0;textOpacity=100;"),N[L].setTerminal(E,null==N[L].getTerminal(!0)),D=0;D<N[L].getChildCount();D++){var U=N[L].getChildAt(D);null!=U.geometry&&U.geometry.relative&&(U.setStyle(U.getStyle()+";labelBackgroundColor=#ffffffc0;textOpacity=100;"),U.geometry.offset=new mxPoint(0,0),U.geometry.y=0,U.geometry.x=.5>U.geometry.x?-.8:.5<U.geometry.x?.8:0)}if(0<w.startIndex){var Y=u.createVertex(null,null,mxResources.get("previousPage")+" ("+Math.ceil((w.startIndex||0)/pageSize)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");Y.referenceCell=E;Y.startIndex=Math.max(0,(w.startIndex||0)-pageSize);N.splice(0,0,Y)}if(G.length>(w.startIndex||0)+pageSize){var P=u.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((w.startIndex||0)/pageSize)+2)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");P.referenceCell=E;P.startIndex=(w.startIndex||0)+pageSize;N.splice(0,0,P)}for(var T in u.getModel().cells){var K=u.getModel().getCell(T);K!=u.rootCell&&!u.getModel().isAncestor(u.rootCell,K)&&u.getModel().isVertex(K)&&u.removeCells([K])}u.addCells(N);var V=u.getModel().getGeometry(u.rootCell);null!=V&&(V=V.clone(),V.x=z-V.width/2,V.y=C-V.height/3,u.getModel().setGeometry(u.rootCell,V));w=[];for(T in u.getModel().cells)K=u.getModel().getCell(T),K!=u.rootCell&&u.getModel().isVertex(K)&&u.getModel().getParent(K)==u.getDefaultParent()&&(w.push(K),V=u.getModel().getGeometry(K),null!=V&&(V.x=z-V.width/2,V.y=C-V.height/2));var Z=w.length,ia=2*Math.PI/Z,oa=Math.max(minSize,Math.min(u.container.scrollWidth/2.5-80,u.container.scrollHeight/2.5-80));for(z=0;z<Z;z++)V=u.getModel().getGeometry(w[z]),null!=V&&(V=V.clone(),V.x+=oa*Math.sin(z*ia),V.y+=oa*Math.cos(z*ia),u.getModel().setGeometry(w[z],V))}finally{u.getModel().endUpdate()}}}var g=document.createElement("div");g.style.position="absolute";g.style.display="block";g.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";g.style.width="100%";g.style.height="100%";g.style.left="0px";g.style.top="0px";g.style.zIndex=2;var m=document.createElement("img");m.setAttribute("src",Editor.closeBlackImage);m.style.position="absolute";m.style.cursor="pointer";m.style.right="10px";m.style.top="10px";g.appendChild(m);var q=document.createElement("div");q.style.position="absolute";q.style.cursor="pointer";q.style.right="38px";q.style.top="14px";q.style.textAlign="right";q.style.verticalAlign=-"top";mxUtils.write(q,mxResources.get("close"));g.appendChild(q);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var w=new Graph(u);w.keepEdgesInBackground=!0;w.isCellResizable=function(){return!1};w.isCellRotatable=function(){return!1};w.getCursorForCell=function(J){return this.model.isVertex(J)?"pointer":null};w.getFoldingImage=function(){return null};var z=function(){mxEvent.removeListener(document,-"keydown",k);u.parentNode.removeChild(u);f.scrollCellToVisible(h)};mxEvent.addListener(m,"click",z);mxEvent.addListener(q,"click",z);w.setEnabled(!1);var C=w.click;w.click=function(J){var L=J.getCell(),Q=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(Q).length?d(w,L):C.apply(this,arguments)};z=w.container.scrollWidth/2;var E=w.container.scrollHeight/3;w.model.beginUpdate();var D=w.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;-D.geometry.y=E-D.geometry.height/2;w.model.endUpdate();var G=!1;w.getModel().addListener(mxEvent.CHANGE,function(J,L){G||(J=L.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,w.labelsVisible=!1,G=!0,mxEffects.animateChanges(w,J,function(){var Q=new mxParallelEdgeLayout(w);Q.spacing=60;var N=Q.layout;Q.layout=function(U){Q.spacing=Math.min(60,Math.max(30,60-5*U.length));N.apply(this,arguments)};Q.execute(w.getDefaultParent());mxText.prototype.enableBoundingBox=!0;w.labelsVisible=!0;+"top";mxUtils.write(q,mxResources.get("close"));g.appendChild(q);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var w=new Graph(u);w.keepEdgesInBackground=!0;w.isCellResizable=function(){return!1};w.isCellRotatable=function(){return!1};w.getCursorForCell=function(I){return this.model.isVertex(I)?"pointer":null};w.getFoldingImage=function(){return null};var z=function(){mxEvent.removeListener(document,+"keydown",k);u.parentNode.removeChild(u);f.scrollCellToVisible(h)};mxEvent.addListener(m,"click",z);mxEvent.addListener(q,"click",z);w.setEnabled(!1);var C=w.click;w.click=function(I){var L=I.getCell(),Q=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(Q).length?d(w,L):C.apply(this,arguments)};z=w.container.scrollWidth/2;var E=w.container.scrollHeight/3;w.model.beginUpdate();var D=w.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;+D.geometry.y=E-D.geometry.height/2;w.model.endUpdate();var G=!1;w.getModel().addListener(mxEvent.CHANGE,function(I,L){G||(I=L.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,w.labelsVisible=!1,G=!0,mxEffects.animateChanges(w,I,function(){var Q=new mxParallelEdgeLayout(w);Q.spacing=60;var N=Q.layout;Q.layout=function(U){Q.spacing=Math.min(60,Math.max(30,60-5*U.length));N.apply(this,arguments)};Q.execute(w.getDefaultParent());mxText.prototype.enableBoundingBox=!0;w.labelsVisible=!0;w.tooltipHandler.hide();w.refresh();G=!1}))});d(w,D)}else mxUtils.error("Browser is not supported!",200,!1)})(g)})(a,b)};Graph.removeKeys=function(a,b){for(var e in a)b(e)&&delete a[e]};Graph.setTransitionForNodes=function(a,b){for(var e=0;e<a.length;e++)mxUtils.setPrefixedStyle(a[e].style,"transition",b)};Graph.setOpacityForNodes=function(a,b){for(var e=0;e<a.length;e++)a[e].style.opacity=b};Graph.removePasteFormatting=function(a,b){for(;null!=a;){null!=a.firstChild&&Graph.removePasteFormatting(a.firstChild,!0);var e=a.nextSibling;if(a.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=a.style){"#000000"==a.style.color&&(a.style.color="");if("SPAN"==a.nodeName&&"Apple-tab-span"==a.className){var f=Graph.createTabNode(4);a.parentNode.replaceChild(f,a);a=f}if("P"==a.nodeName&&"p1"==a.className){for(;null!=a.firstChild;)a.parentNode.insertBefore(a.firstChild,a);null!=e&&"P"==e.nodeName&&"p1"==e.className&&a.parentNode.insertBefore(a.ownerDocument.createElement("br"),a);a.parentNode.removeChild(a)}!b&&null!=a.innerHTML&&0<=a.innerHTML.indexOf("\t")&&(f=Graph.createTabNode(4),a.innerHTML=a.innerHTML.replace(/\t/g,f.outerHTML))}a=e}};Graph.createTabNode=function(a){var b="\t";if(null!=a)for(b="";0<a;)b+=" ",a--;a=document.createElement("span");a.style.whiteSpace="pre";a.appendChild(document.createTextNode(b));return a};Graph.sanitizeHtml=function(a,b){return Graph.domPurify(a,!1)};@@ -2622,7 +2622,7 @@ g){var k={},u;for(u in g){var w=g[u];null!=w&&(k[u]=!0,null==m[u]&&q?m[u]=w:m[u](!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g))for(m=0;m<this.model.getChildCount(g);m++){var q=this.model.getChildAt(g,m);if(this.isCellEditable(q)){g=q;break}}return g};Graph.prototype.copyStyle=function(g){return this.getCellStyle(g,!1)};Graph.prototype.pasteStyle=function(g,m,q,k){null!=g&&(k||(q=null!=q?q:Graph.cellStyles,Graph.removeKeys(g,function(u){return 0>mxUtils.indexOf(q,u)})),this.updateCellStyles(g,m))};Graph.prototype.copyCellStyles=function(g,m,q,k,u,w,z){var C=!1,E=!1;if(0<g.length)for(var D=0;D<g.length&&(C=this.getModel().isVertex(g[D])||C,!(E=this.getModel().isEdge(g[D])||E)||!C);D++);else E=C=!0;C=C&&!w;E=E&&!z;for(D=0;D<m.length;D++)if(g=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=q[D]&&"none"!=q[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||g)&&(null==q[D]?delete k[m[D]]:k[m[D]]=q[D]),E||g)null==q[D]?delete u[m[D]]:u[m[D]]=q[D]};Graph.prototype.includeDescendants=function(g){for(var m=[],q=0;q<g.length;q++)m=m.concat(this.model.getDescendants(g[q]));return m};Graph.prototype.pasteCellStyles=function(g,m,q,k,u){m=null!=m?m:this.currentVertexStyle;q=null!=q?q:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<g.length;w++){var z=g[w],C=this.model.getStyle(z),E=!1;null!=z.style&&(pairs=z.style.split(";"),E=E||0<=mxUtils.indexOf(pairs,"text"));if(E)var D=Graph.textStyles;else if(D=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):-[],J=0;J<G.length;J++){var L=G[J],Q=L.indexOf("=");if(0<=Q){var N=L.substring(0,Q),U=mxUtils.indexOf(D,N);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,N))for(var P=0;P<Y.length;P++){var T=mxUtils.indexOf(D,Y[P]);0<=T&&D.splice(T,1)}}}}var K=this.model.isEdge(z);E=K?q:m;for(J=0;J<D.length;J++){N=D[J];var V=E[N];null!=V&&("edgeStyle"!=N||u)&&(K||!K&&0>mxUtils.indexOf(Graph.edgeStyles,N))&&(C=mxUtils.setStyle(C,N,V),"fontFamily"==+[],I=0;I<G.length;I++){var L=G[I],Q=L.indexOf("=");if(0<=Q){var N=L.substring(0,Q),U=mxUtils.indexOf(D,N);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,N))for(var P=0;P<Y.length;P++){var T=mxUtils.indexOf(D,Y[P]);0<=T&&D.splice(T,1)}}}}var K=this.model.isEdge(z);E=K?q:m;for(I=0;I<D.length;I++){N=D[I];var V=E[N];null!=V&&("edgeStyle"!=N||u)&&(K||!K&&0>mxUtils.indexOf(Graph.edgeStyles,N))&&(C=mxUtils.setStyle(C,N,V),"fontFamily"==N&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),K&&"rounded"==N&&"1"==V&&null==E.curved&&(C=mxUtils.setStyle(C,"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(z,C)}}finally{this.model.endUpdate()}return g};Graph.prototype.updateCellStyles=function(g,m){this.model.beginUpdate();try{for(var q=0;q<m.length;q++)if(this.model.isVertex(m[q])||this.model.isEdge(m[q])){var k=this.getCellStyle(m[q],!1),u=k[mxConstants.STYLE_PERIMETER],w=!1;for(C in g){var z=g[C];if(k[C]!=z){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=z){w=!0;var C="participant"}this.setCellStyles(C,z,[m[q]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[q]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(g,m,q,k,u,w){this.useCssTransforms&&(g=g/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(g,m,q,k,u,w){k=null!=k?k:!0;u=null!=u?u:!0;null==q&&(q=this.getCurrentRoot(),null==q&&(q=this.getModel().getRoot()));if(null!=q)for(var z=this.model.getChildCount(q)-1;0<=@@ -2664,10 +2664,10 @@ Graph.prototype.isSplitTarget=function(a,b,e){return!this.model.isEdge(b[0])&&!mGraph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(a)&&(this.model.isEdge(a)&&this.edgeLabelsMovable||this.model.isVertex(a)&&(this.vertexLabelsMovable||"1"==mxUtils.getValue(b,"labelMovable","0")))};Graph.prototype.setGridSize=function(a){this.gridSize=a;this.fireEvent(new mxEventObject("gridSizeChanged"))};Graph.prototype.setDefaultParent=function(a){this.defaultParent=a;this.fireEvent(new mxEventObject("defaultParentChanged"))};Graph.prototype.getClickableLinkForCell=function(a){do{var b=this.getLinkForCell(a);if(null!=b)return b;a=this.model.getParent(a)}while(null!=a);return null};Graph.prototype.getGlobalVariable=function(a){var b=null;"date"==a?b=(new Date).toLocaleDateString():"time"==a?b=(new Date).toLocaleTimeString():"timestamp"==a?b=(new Date).toLocaleString():"date{"==a.substring(0,5)&&(a=a.substring(5,a.length-1),b=this.formatDate(new Date,a));return b};Graph.prototype.formatDate=function(a,b,e){null==this.dateFormatCache&&(this.dateFormatCache={i18n:{dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",-shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var f=this.dateFormatCache,h=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,g=function(J,L){J=String(J);for(L=L||2;J.length<L;)J="0"+J;return J};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||+shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var f=this.dateFormatCache,h=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,g=function(I,L){I=String(I);for(L=L||2;I.length<L;)I="0"+I;return I};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(f.masks[b]||b||f.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),e=!0);var m=e?"getUTC":"get",q=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),w=a[m+"FullYear"](),z=a[m+"Hours"](),C=a[m+"Minutes"](),E=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var D=e?0:a.getTimezoneOffset(),G={d:q,dd:g(q),ddd:f.i18n.dayNames[k],dddd:f.i18n.dayNames[k+7],m:u+1,mm:g(u+1),mmm:f.i18n.monthNames[u],mmmm:f.i18n.monthNames[u+-12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:g(z%12||12),H:z,HH:g(z),M:C,MM:g(C),s:E,ss:g(E),l:g(m,3),L:g(99<m?Math.round(m/10):m),t:12>z?"a":"p",tt:12>z?"am":"pm",T:12>z?"A":"P",TT:12>z?"AM":"PM",Z:e?"UTC":(String(a).match(h)||[""]).pop().replace(d,""),o:(0<D?"-":"+")+g(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<q%10?0:(10!=q%100-q%10)*q%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(J){return J in G?G[J]:J.slice(1,-J.length-1)})};Graph.prototype.getLayerForCell=function(a){for(;null!=a&&!this.model.isLayer(a);)a=this.model.getParent(a);return a};Graph.prototype.getLayerForCells=function(a){var b=null;if(0<a.length){b=this.getLayerForCell(a[0]);for(var e=1;e<a.length;e++)if(!this.model.isAncestor(b,a[e])){b=null;break}}return b};+12],yy:String(w).slice(2),yyyy:w,h:z%12||12,hh:g(z%12||12),H:z,HH:g(z),M:C,MM:g(C),s:E,ss:g(E),l:g(m,3),L:g(99<m?Math.round(m/10):m),t:12>z?"a":"p",tt:12>z?"am":"pm",T:12>z?"A":"P",TT:12>z?"AM":"PM",Z:e?"UTC":(String(a).match(h)||[""]).pop().replace(d,""),o:(0<D?"-":"+")+g(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<q%10?0:(10!=q%100-q%10)*q%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(I){return I in G?G[I]:I.slice(1,+I.length-1)})};Graph.prototype.getLayerForCell=function(a){for(;null!=a&&!this.model.isLayer(a);)a=this.model.getParent(a);return a};Graph.prototype.getLayerForCells=function(a){var b=null;if(0<a.length){b=this.getLayerForCell(a[0]);for(var e=1;e<a.length;e++)if(!this.model.isAncestor(b,a[e])){b=null;break}}return b};Graph.prototype.createLayersDialog=function(a,b){var e=document.createElement("div");e.style.position="absolute";for(var f=this.getModel(),h=f.getChildCount(f.root),d=0;d<h;d++)mxUtils.bind(this,function(g){function m(){f.isVisible(g)?(u.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(u.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var q=this.convertValueToString(g)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow="hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(f.isVisible(g)?"hideIt":"show",[q]));var u=document.createElement("img");u.setAttribute("draggable","false");u.setAttribute("align","absmiddle");u.setAttribute("border","0");u.style.position="relative";u.style.width="16px";u.style.padding="0px 6px 0 4px";b&&(u.style.filter="invert(100%)",u.style.top="-2px");k.appendChild(u);mxUtils.write(k,q);e.appendChild(k);mxEvent.addListener(k,"click",function(){f.setVisible(g,!f.isVisible(g));m();null!=a&&a(g)});m()})(f.getChildAt(f.root,d));return e};@@ -2685,11 +2685,11 @@ Graph.prototype.selectCellsForConnectVertex=function(a,b,e){2==a.length&&this.moGraph.prototype.insertEdgeBeforeCell=function(a,b){for(var e=b;null!=e.parent&&null!=e.geometry&&e.geometry.relative&&e.parent!=a.parent;)e=this.model.getParent(e);null!=e&&null!=e.parent&&e.parent==a.parent&&(b=e.parent.getIndex(e),this.model.add(e.parent,a,b))};Graph.prototype.connectVertex=function(a,b,e,f,h,d,g,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var q=this.isCloneConnectSource(a),k=q?a:this.getCompositeParent(a),u=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(u.x+=k.geometry.width/2,u.y-=e):b==mxConstants.DIRECTION_SOUTH?(u.x+=k.geometry.width/2,u.y+=k.geometry.height+e):(u.x=b==mxConstants.DIRECTION_WEST?u.x-e:u.x+(k.geometry.width+e),u.y+=k.geometry.height/2);var w=this.view.getState(this.model.getParent(a));e=this.view.scale;var z=this.view.translate;k=z.x*e;z=z.y*e;null!=w&&this.model.isVertex(w.cell)&&(k=w.x,z=w.y);this.model.isVertex(a.parent)&&a.geometry.relative&&(u.x+=a.parent.geometry.x,u.y+=a.parent.geometry.y);d=d?null:(new mxRectangle(k+u.x*e,z+u.y*e)).grow(40*e);d=null!=d?-this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,E=null;if(null!=d){d=d.reverse();for(var D=0;D<d.length;D++)if(!this.isCellLocked(d[D])&&!this.model.isEdge(d[D])&&d[D]!=a)if(!this.model.isAncestor(a,d[D])&&this.isContainer(d[D])&&(null==C||d[D]==this.model.getParent(a)))C=d[D];else if(null==E&&this.isCellConnectable(d[D])&&!this.model.isAncestor(d[D],a)&&!this.isSwimlane(d[D])){var G=this.view.getState(d[D]);null==w||null==G||mxUtils.intersects(w,G)||(E=d[D])}}var J=-!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||h;J&&("1"!=urlParams.sketch||h)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var L=[],Q=E;E=C;h=mxUtils.bind(this,function(N){if(null==g||null!=N||null==E&&q){this.model.beginUpdate();try{if(null==Q&&J){var U=this.getAbsoluteParent(null!=N?N:a);U=q?a:this.getCompositeParent(U);Q=null!=N?N:this.duplicateCells([U],-!1)[0];null!=N&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(Q);null!=Y&&(null!=N&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=Y.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=Y.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-Y.width/2:u.x+Y.width/2),Y.x=u.x-Y.width/2,Y.y=u.y-Y.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),E=null):J&&!q&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var P=mxEvent.isControlDown(f)&&-mxEvent.isShiftDown(f)&&J||null==E&&q?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=P&&(L.push(P),this.applyNewEdgeStyle(a,[P],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(P,a));if(null==E&&null!=Q&&null!=a.parent&&q&&b==mxConstants.DIRECTION_WEST){var T=a.parent.getIndex(a);this.model.add(a.parent,Q,T)}null==E&&null!=Q&&L.push(Q);null==Q&&null!=P&&P.geometry.setTerminalPoint(u,!1);null!=P&&this.fireEvent(new mxEventObject("cellsInserted",-"cells",[P]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=Q||!J||null==E&&q)return h(Q);g(k+u.x*e,z+u.y*e,h)};+this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,E=null;if(null!=d){d=d.reverse();for(var D=0;D<d.length;D++)if(!this.isCellLocked(d[D])&&!this.model.isEdge(d[D])&&d[D]!=a)if(!this.model.isAncestor(a,d[D])&&this.isContainer(d[D])&&(null==C||d[D]==this.model.getParent(a)))C=d[D];else if(null==E&&this.isCellConnectable(d[D])&&!this.model.isAncestor(d[D],a)&&!this.isSwimlane(d[D])){var G=this.view.getState(d[D]);null==w||null==G||mxUtils.intersects(w,G)||(E=d[D])}}var I=+!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||h;I&&("1"!=urlParams.sketch||h)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var L=[],Q=E;E=C;h=mxUtils.bind(this,function(N){if(null==g||null!=N||null==E&&q){this.model.beginUpdate();try{if(null==Q&&I){var U=this.getAbsoluteParent(null!=N?N:a);U=q?a:this.getCompositeParent(U);Q=null!=N?N:this.duplicateCells([U],+!1)[0];null!=N&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(Q);null!=Y&&(null!=N&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=Y.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=Y.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-Y.width/2:u.x+Y.width/2),Y.x=u.x-Y.width/2,Y.y=u.y-Y.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),E=null):I&&!q&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var P=mxEvent.isControlDown(f)&&+mxEvent.isShiftDown(f)&&I||null==E&&q?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=P&&(L.push(P),this.applyNewEdgeStyle(a,[P],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(P,a));if(null==E&&null!=Q&&null!=a.parent&&q&&b==mxConstants.DIRECTION_WEST){var T=a.parent.getIndex(a);this.model.add(a.parent,Q,T)}null==E&&null!=Q&&L.push(Q);null==Q&&null!=P&&P.geometry.setTerminalPoint(u,!1);null!=P&&this.fireEvent(new mxEventObject("cellsInserted",+"cells",[P]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=Q||!I||null==E&&q)return h(Q);g(k+u.x*e,z+u.y*e,h)};Graph.prototype.getIndexableText=function(a){a=null!=a?a:this.model.getDescendants(this.model.root);for(var b=document.createElement("div"),e=[],f,h=0;h<a.length;h++)if(f=a[h],this.model.isVertex(f)||this.model.isEdge(f))this.isHtmlLabel(f)?(b.innerHTML=Graph.sanitizeHtml(this.getLabel(f)),f=mxUtils.extractTextWithWhitespace([b])):f=this.getLabel(f),f=mxUtils.trim(f.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<f.length&&e.push(f);return e.join(" ")};Graph.prototype.convertValueToString=function(a){var b=this.model.getValue(a);if(null!=b&&"object"==typeof b){var e=null;if(this.isReplacePlaceholders(a)&&null!=a.getAttribute("placeholder")){b=a.getAttribute("placeholder");for(var f=a;null==e&&null!=f;)null!=f.value&&"object"==typeof f.value&&(e=f.hasAttribute(b)?null!=f.getAttribute(b)?f.getAttribute(b):"":null),f=this.model.getParent(f)}else e=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(e=b.getAttribute("label_"+Graph.diagramLanguage)),null==e&&(e=b.getAttribute("label")||"");return e||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(a){return null!=a&&null!=a.text&&null!=a.text.node?a.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(a,b){return null!=a.value&&"object"==typeof a.value?(a=a.value.getAttribute("link"),b||(a=mxUtils.removeJavascriptProtocol(a)),a):null};@@ -2776,22 +2776,22 @@ TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=0,k.width,k.height),h.setGeometry(d[q],k))}return m};TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),e=this.graph.getCellGeometry(a),f=this.graph.getCellStyle(a),h="1"==mxUtils.getValue(f,"resizeLastRow","0"),d="1"==mxUtils.getValue(f,"resizeLast","0");f="1"==mxUtils.getValue(f,"fixedRows","0");var g=this.graph.getModel(),m=0;g.beginUpdate();try{for(var q=e.height-b.y-b.height,k=e.width-b.x-b.width,u=g.getChildCells(a,!0),w=0;w<u.length;w++)g.setVisible(u[w],!0);var z=this.getSize(u,!1);if(0<q&&0<k&&0<u.length&&0<z){if(h){var C=this.graph.getCellGeometry(u[u.length-1]);null!=C&&(C=C.clone(),C.height=q-z+C.height,g.setGeometry(u[u.length-1],C))}var E=d?null:this.getRowLayout(u[0],k),D=[],G=b.y;for(w=0;w<u.length;w++)C=this.graph.getCellGeometry(u[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=h||f?G+C.height:G+C.height/z*q,C.height=Math.round(G)-C.y,g.setGeometry(u[w],C)),m=Math.max(m,this.layoutRow(u[w],E,C.height,k,D));f&&q<z&&(e=e.clone(),e.height=G+b.height,g.setGeometry(a,-e));d&&k<m+Graph.minTableColumnWidth&&(e=e.clone(),e.width=m+b.width+b.x+Graph.minTableColumnWidth,g.setGeometry(a,e));this.graph.visitTableCells(a,mxUtils.bind(this,function(J){g.setVisible(J.cell,J.actual.cell==J.cell);if(J.actual.cell!=J.cell){if(J.actual.row==J.row){var L=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo;J.actual.geo.width+=L.width}J.actual.col==J.col&&(L=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo,J.actual.geo.height+=L.height)}}))}else for(w=0;w<u.length;w++)g.setVisible(u[w],+e));d&&k<m+Graph.minTableColumnWidth&&(e=e.clone(),e.width=m+b.width+b.x+Graph.minTableColumnWidth,g.setGeometry(a,e));this.graph.visitTableCells(a,mxUtils.bind(this,function(I){g.setVisible(I.cell,I.actual.cell==I.cell);if(I.actual.cell!=I.cell){if(I.actual.row==I.row){var L=null!=I.geo.alternateBounds?I.geo.alternateBounds:I.geo;I.actual.geo.width+=L.width}I.actual.col==I.col&&(L=null!=I.geo.alternateBounds?I.geo.alternateBounds:I.geo,I.actual.geo.height+=L.height)}}))}else for(w=0;w<u.length;w++)g.setVisible(u[w],!1)}finally{g.endUpdate()}}};(function(){var a=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){a.apply(this,arguments);this.validEdges=[]};var b=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(w,z){z=null!=z?z:!0;var C=this.getState(w);null!=C&&z&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&!C.invalid&&this.updateLineJumps(C)&&this.graph.cellRenderer.redraw(C,!1,this.isRendering());C=b.apply(this,arguments);null!=C&&z&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(C);return C};mxShape.prototype.isFlowAnimationEnabled=function(){return null!=this.state&&this.state.view.graph.enableFlowAnimation&&this.state.view.graph.model.isEdge(this.state.cell)&&"1"==mxUtils.getValue(this.state.style,"flowAnimation","0")};mxShape.prototype.getFlowAnimationPath=function(){var w=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=w)for(var z=0;z<w.length;z++)if("hidden"!=w[z].getAttribute("visibility"))return w[z];return null};mxShape.prototype.addFlowAnimationToShape=function(){null!=this.state&&this.state.view.graph.addFlowAnimationToNode(this.getFlowAnimationPath(),this.state.style,this.state.view.scale,this.state.view.graph.addFlowAnimationStyle())};var e=mxShape.prototype.paint;mxShape.prototype.paint=function(w){e.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var f=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(w){w=f.apply(this,arguments);null!=this.state&&(w.adaptiveColors=this.state.view.graph.getAdaptiveColors());return w};var h=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(w,z){return h.apply(this,arguments)||null!=w.routedPoints&&null!=z.routedPoints&&!mxUtils.equalPoints(z.routedPoints,w.routedPoints)};var d=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(w){d.apply(this,arguments);this.graph.model.isEdge(w.cell)&&1!=w.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(w)};mxGraphView.prototype.updateLineJumps=function(w){var z=w.absolutePoints;if(Graph.lineJumpsEnabled){var C=null!=w.routedPoints,E=null;if(null!=z&&null!=this.validEdges&&"none"!==mxUtils.getValue(w.style,"jumpStyle","none")){var D=function(oa,sa,O){var X=new mxPoint(sa,O);X.type=oa;E.push(X);X=null!=w.routedPoints?w.routedPoints[E.length-1]:null;return null==X||X.type!=oa||X.x!=sa||X.y!=O},G=.5*this.scale;-C=!1;E=[];for(var J=0;J<z.length-1;J++){for(var L=z[J+1],Q=z[J],N=[],U=z[J+2];J<z.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,U.x,U.y,L.x,L.y)<1*this.scale*this.scale;)L=U,J++,U=z[J+2];C=D(0,Q.x,Q.y)||C;for(var Y=0;Y<this.validEdges.length;Y++){var P=this.validEdges[Y],T=P.absolutePoints;if(null!=T&&mxUtils.intersects(w,P)&&"1"!=P.style.noJump){var K=null;for(P=0;P<T.length-1;P++){var V=T[P+1],Z=T[P];for(U=T[P+2];P<T.length-2&&mxUtils.ptSegDistSq(Z.x,Z.y,U.x,U.y,V.x,V.y)<1*this.scale*this.scale;)V=U,P++,+C=!1;E=[];for(var I=0;I<z.length-1;I++){for(var L=z[I+1],Q=z[I],N=[],U=z[I+2];I<z.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,U.x,U.y,L.x,L.y)<1*this.scale*this.scale;)L=U,I++,U=z[I+2];C=D(0,Q.x,Q.y)||C;for(var Y=0;Y<this.validEdges.length;Y++){var P=this.validEdges[Y],T=P.absolutePoints;if(null!=T&&mxUtils.intersects(w,P)&&"1"!=P.style.noJump){var K=null;for(P=0;P<T.length-1;P++){var V=T[P+1],Z=T[P];for(U=T[P+2];P<T.length-2&&mxUtils.ptSegDistSq(Z.x,Z.y,U.x,U.y,V.x,V.y)<1*this.scale*this.scale;)V=U,P++,U=T[P+2];var ia=mxUtils.intersection(Q.x,Q.y,L.x,L.y,Z.x,Z.y,V.x,V.y);if(null!=ia&&(Math.abs(ia.x-Q.x)>G||Math.abs(ia.y-Q.y)>G)&&(Math.abs(ia.x-L.x)>G||Math.abs(ia.y-L.y)>G)&&(null==K||mxUtils.ptLineDist(Q.x,Q.y,L.x,L.y,K.x,K.y)>G||mxUtils.ptLineDist(Q.x,Q.y,L.x,L.y,Z.x,Z.y)>G)&&(null==U||mxUtils.ptLineDist(Q.x,Q.y,L.x,L.y,U.x,U.y)>G||mxUtils.ptLineDist(Q.x,Q.y,L.x,L.y,V.x,V.y)>G)){U=ia.x-Q.x;K=ia.y-Q.y;ia={distSq:U*U+K*K,x:ia.x,y:ia.y};for(U=0;U<N.length;U++)if(N[U].distSq>ia.distSq){N.splice(U,0,ia);ia=null;break}null==ia||0!=N.length&&N[N.length-1].x===ia.x&&N[N.length-1].y===ia.y||N.push(ia)}K=Z}}}for(P=0;P<N.length;P++)C=D(1,N[P].x,N[P].y)||C}ia=z[z.length-1];C=D(0,ia.x,ia.y)||C}w.routedPoints=E;return C}return!1};var g=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(w,z,C){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)g.apply(this,-arguments);else{var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,D=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),J=!0,L=null,Q=null,N=[],U=null;w.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var P=this.state.routedPoints[Y],T=new mxPoint(P.x/this.scale,P.y/this.scale);0==Y?T=z[0]:Y==this.state.routedPoints.length-1&&(T=z[z.length-1]);var K=!1;if(null!=-L&&1==P.type){var V=this.state.routedPoints[Y+1];P=V.x/this.scale-T.x;V=V.y/this.scale-T.y;P=P*P+V*V;null==U&&(U=new mxPoint(T.x-L.x,T.y-L.y),Q=Math.sqrt(U.x*U.x+U.y*U.y),0<Q?(U.x=U.x*D/Q,U.y=U.y*D/Q):U=null);P>D*D&&0<Q&&(P=L.x-T.x,V=L.y-T.y,P=P*P+V*V,P>D*D&&(K=new mxPoint(T.x-U.x,T.y-U.y),P=new mxPoint(T.x+U.x,T.y+U.y),N.push(K),this.addPoints(w,N,C,E,!1,null,J),N=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,J=!1,"sharp"==G?(w.lineTo(K.x-U.y*N,K.y+U.x*N),w.lineTo(P.x-U.y*N,P.y+-U.x*N),w.lineTo(P.x,P.y)):"line"==G?(w.moveTo(K.x+U.y*N,K.y-U.x*N),w.lineTo(K.x-U.y*N,K.y+U.x*N),w.moveTo(P.x-U.y*N,P.y+U.x*N),w.lineTo(P.x+U.y*N,P.y-U.x*N),w.moveTo(P.x,P.y)):"arc"==G?(N*=1.3,w.curveTo(K.x-U.y*N,K.y+U.x*N,P.x-U.y*N,P.y+U.x*N,P.x,P.y)):(w.moveTo(P.x,P.y),J=!0),N=[P],K=!0))}else U=null;K||(N.push(T),L=T)}this.addPoints(w,N,C,E,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(w,z,C,E){return null!=z&&"centerPerimeter"==-z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var q=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,z,C,E){if(null==z||null==w||"1"!=z.style.snapToPoint&&"1"!=w.style.snapToPoint)q.apply(this,arguments);else{z=this.getTerminalPort(w,z,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),J=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),-z.getCenterY());if(0!=J){var Q=Math.cos(-J),N=Math.sin(-J);D=mxUtils.getRotatedPoint(D,Q,N,L)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==J&&G,Q);0!=J&&(Q=Math.cos(J),N=Math.sin(J),D=mxUtils.getRotatedPoint(D,Q,N,L));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,z,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(w,z,-C,E,D){if(null!=z&&null!=w){w=this.graph.getAllConnectionConstraints(z);E=C=null;if(null!=w)for(var G=0;G<w.length;G++){var J=this.graph.getConnectionPoint(z,w[G]);if(null!=J){var L=(J.x-D.x)*(J.x-D.x)+(J.y-D.y)*(J.y-D.y);if(null==E||L<E)C=J,E=L}}null!=C&&(D=C)}return D};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,z,C){var E=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&null!=C.state&&(E=C.state.view.graph.replacePlaceholders(C.state.cell,+arguments);else{var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,D=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),I=!0,L=null,Q=null,N=[],U=null;w.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var P=this.state.routedPoints[Y],T=new mxPoint(P.x/this.scale,P.y/this.scale);0==Y?T=z[0]:Y==this.state.routedPoints.length-1&&(T=z[z.length-1]);var K=!1;if(null!=+L&&1==P.type){var V=this.state.routedPoints[Y+1];P=V.x/this.scale-T.x;V=V.y/this.scale-T.y;P=P*P+V*V;null==U&&(U=new mxPoint(T.x-L.x,T.y-L.y),Q=Math.sqrt(U.x*U.x+U.y*U.y),0<Q?(U.x=U.x*D/Q,U.y=U.y*D/Q):U=null);P>D*D&&0<Q&&(P=L.x-T.x,V=L.y-T.y,P=P*P+V*V,P>D*D&&(K=new mxPoint(T.x-U.x,T.y-U.y),P=new mxPoint(T.x+U.x,T.y+U.y),N.push(K),this.addPoints(w,N,C,E,!1,null,I),N=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,I=!1,"sharp"==G?(w.lineTo(K.x-U.y*N,K.y+U.x*N),w.lineTo(P.x-U.y*N,P.y++U.x*N),w.lineTo(P.x,P.y)):"line"==G?(w.moveTo(K.x+U.y*N,K.y-U.x*N),w.lineTo(K.x-U.y*N,K.y+U.x*N),w.moveTo(P.x-U.y*N,P.y+U.x*N),w.lineTo(P.x+U.y*N,P.y-U.x*N),w.moveTo(P.x,P.y)):"arc"==G?(N*=1.3,w.curveTo(K.x-U.y*N,K.y+U.x*N,P.x-U.y*N,P.y+U.x*N,P.x,P.y)):(w.moveTo(P.x,P.y),I=!0),N=[P],K=!0))}else U=null;K||(N.push(T),L=T)}this.addPoints(w,N,C,E,!1,null,I);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(w,z,C,E){return null!=z&&"centerPerimeter"==+z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var q=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,z,C,E){if(null==z||null==w||"1"!=z.style.snapToPoint&&"1"!=w.style.snapToPoint)q.apply(this,arguments);else{z=this.getTerminalPort(w,z,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),I=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),+z.getCenterY());if(0!=I){var Q=Math.cos(-I),N=Math.sin(-I);D=mxUtils.getRotatedPoint(D,Q,N,L)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==I&&G,Q);0!=I&&(Q=Math.cos(I),N=Math.sin(I),D=mxUtils.getRotatedPoint(D,Q,N,L));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,z,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(w,z,+C,E,D){if(null!=z&&null!=w){w=this.graph.getAllConnectionConstraints(z);E=C=null;if(null!=w)for(var G=0;G<w.length;G++){var I=this.graph.getConnectionPoint(z,w[G]);if(null!=I){var L=(I.x-D.x)*(I.x-D.x)+(I.y-D.y)*(I.y-D.y);if(null==E||L<E)C=I,E=L}}null!=C&&(D=C)}return D};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,z,C){var E=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&null!=C.state&&(E=C.state.view.graph.replacePlaceholders(C.state.cell,E));return E};var u=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(w){if(null!=w.style&&"undefined"!==typeof pako){var z=mxUtils.getValue(w.style,mxConstants.STYLE_SHAPE,null);if(null!=z&&"string"===typeof z&&"stencil("==z.substring(0,8))try{var C=z.substring(8,z.length-1),E=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(E.documentElement))}catch(D){null!=window.console&&console.log("Error in shape: "+D)}}return u.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(a){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[a]};mxStencilRegistry.setFileLoaded=function(a){mxStencilRegistry.filesLoaded[a]=!0};mxStencilRegistry.getStencil=function(a){var b=mxStencilRegistry.stencils[a];if(null==b&&null==mxCellRenderer.defaultShapes[a]&&mxStencilRegistry.dynamicLoading){var e=mxStencilRegistry.getBasenameForStencil(a);if(null!=e){b=mxStencilRegistry.libraries[e];if(null!=b){if(null==mxStencilRegistry.packages[e]){for(var f=0;f<b.length;f++){var h=b[f];if(!mxStencilRegistry.isFileLoaded(h))if(mxStencilRegistry.setFileLoaded(h),".xml"==h.toLowerCase().substring(h.length-4,h.length))mxStencilRegistry.loadStencilSet(h,@@ -2871,7 +2871,7 @@ return p};Graph.prototype.parseBackgroundImage=function(p){var A=null;null!=p&&0this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;M=null!=M?M:!0;R=null!=R?R:!0;W=null!=W?W:!0;ja=null!=ja?ja:!1;var Qa="page"==Na?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Na?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Ka=this.backgroundImage,Ua=this.view.translate,Wa=this.view.scale;"diagram"==Na&&null!=Ka&&null!=Ka.width&&null!=Ka.height&&(Qa=mxRectangle.fromRectangle(Qa),Qa.add(new mxRectangle((Ua.x+Ka.x)*Wa,(Ua.y+Ka.y)*Wa,Ka.width*Wa,Ka.height*Wa)));if(null==Qa)throw Error(mxResources.get("drawingEmpty"));F=A/Wa;var mb=Math.max(1,Math.ceil(Qa.width*F)+2*B)+(ja&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ja&&0==B?5:0);ja=M?-.5:0;var vb=mxUtils.getLightDarkColor(p),jb=Graph.createSvgNode(ja,ja,mb,ub,vb),nb=jb.ownerDocument;if(null!=p){var db=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"rect");db.setAttribute("fill",vb.light);db.style.fill=vb.cssText;db.setAttribute("width","100%");db.setAttribute("height","100%");db.setAttribute("x","0");db.setAttribute("y","0");jb.appendChild(db)}var qb=mxUtils.createElementNs(nb,mxConstants.NS_SVG,"g");jb.appendChild(qb);var bb=this.createSvgCanvas(qb);bb.foOffset=M?-.5:0;bb.textOffset=M?-.5:0;bb.imageOffset=M?-.5:0;bb.translate(Math.floor(B/A-Qa.x/Wa),Math.floor(B/A-Qa.y/Wa));bb.idPrefix="drawio-svg-"+Editor.guid();var wb=document.createElement("div"),rb=bb.getAlternateText;bb.getAlternateText=function(Sa,sb,$a,kb,ob,Za,xb,c,l,t,n,r,v){if(null!=Za&&0<this.state.fontSize)try{mxUtils.isNode(Za)?-Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var x=Math.ceil(2*kb/this.state.fontSize),I=[],y=0,aa=0;(0==x||y<x)&&aa<Za.length;){var S=Za.charCodeAt(aa);if(10==S||13==S){if(0<y)break}else I.push(Za.charAt(aa)),255>S&&y++;aa++}I.length<Za.length&&1<Za.length-I.length&&(Za=mxUtils.trim(I.join(""))+"...");return Za}catch(Fa){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(p=Wa/A,ja=new mxRectangle((Ka.x++Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var x=Math.ceil(2*kb/this.state.fontSize),J=[],y=0,aa=0;(0==x||y<x)&&aa<Za.length;){var S=Za.charCodeAt(aa);if(10==S||13==S){if(0<y)break}else J.push(Za.charAt(aa)),255>S&&y++;aa++}J.length<Za.length&&1<Za.length-J.length&&(Za=mxUtils.trim(J.join(""))+"...");return Za}catch(Fa){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(p=Wa/A,ja=new mxRectangle((Ka.x+Ua.x)*p,(Ka.y+Ua.y)*p,Ka.width*p,Ka.height*p),mxUtils.intersects(Qa,ja)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=W;ha=null!=ha?ha:this.createSvgImageExport();var tb=ha.getLinkForCellState;ha.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};ha.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=ha.drawCellState,lb=null,hb=mxUtils.bind(this,function(){if(null==lb){lb="ge-flow-animation-"+Editor.guid();var Sa=null!=nb.createElementNS?nb.createElementNS(mxConstants.NS_SVG,"style"):nb.createElement("style");Sa.innerHTML=this.createFlowAnimationCss(lb);nb.getElementsByTagName("defs")[0].appendChild(Sa)}return lb});ha.drawCellState=function(Sa,sb){for(var $a=Sa.view.graph,kb=null!=ua?ua.get(Sa.cell):$a.isCellSelected(Sa.cell),ob=$a.model.getParent(Sa.cell);!(R&&null==ua||kb)&&null!=ob;)kb=null!=ua?ua.get(ob):$a.isCellSelected(ob),ob=$a.model.getParent(ob);if(null!=Sa.shape)try{var Za=Sa.shape.isFlowAnimationEnabled,xb=Sa.shape.addFlowAnimationToShape;Sa.shape.isFlowAnimationEnabled=function(){return Va&&$a.model.isEdge(Sa.cell)&&"1"==mxUtils.getValue(Sa.style,"flowAnimation","0")};Sa.shape.addFlowAnimationToShape=function(){$a.addFlowAnimationToNode(this.getFlowAnimationPath(),Sa.style,A,hb())};if(R&&null==ua||kb)$a.view.redrawEnumerationState(Sa),yb.apply(this,arguments),this.doDrawShape(Sa.secondLabel,@@ -2903,7 +2903,7 @@ this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!return""!=p};mxCellEditor.prototype.insertTab=function(p){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);p=Graph.createTabNode(p);B.insertNode(p);B.setStartAfter(p);B.setEndAfter(p);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(p,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),M=null!=A&&mxEvent.isShiftDown(A);if(M||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(W){M||F||window.getSelection().containsNode(W,!0)?(W.removeAttribute("align"),W.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(p)}F||document.execCommand("justify"+p.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var p=window.getSelection();if(p.getRangeAt&&p.rangeCount){for(var A=[],B=0,F=p.rangeCount;B<F;++B)A.push(p.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(p){try{if(p)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=p.length;A<B;++A)sel.addRange(p[A])}else document.selection&&p.select&&p.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=-function(p){null!=p.text&&(p.text.replaceLinefeeds="0"!=mxUtils.getValue(p.style,"nl2Br","1"));G.apply(this,arguments)};var J=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(p,A){this.isKeepFocusEvent(p)||!mxEvent.isAltDown(p.getEvent())?J.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(p){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;+function(p){null!=p.text&&(p.text.replaceLinefeeds="0"!=mxUtils.getValue(p.style,"nl2Br","1"));G.apply(this,arguments)};var I=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(p,A){this.isKeepFocusEvent(p)||!mxEvent.isAltDown(p.getEvent())?I.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(p){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(p,A){p=this.graph.getStartEditingCell(p,A);L.apply(this,arguments);var B=this.graph.view.getState(p);this.textarea.className=null!=B&&1==B.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(p)};mxCellEditor.prototype.toggleViewMode=function(){var p=this.graph.view.getState(this.editingCell);if(null!=p){var A=null!=p&&"0"!=mxUtils.getValue(p.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);ha=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<ha.length&&"\n"==ha.charAt(ha.length-1)&&(ha=ha.substring(0,ha.length-1));ha=Graph.sanitizeHtml(A?ha.replace(/\n/g,"<br/>"):ha,!0);this.textarea.className="mxCellEditor geContentEditable";fa=mxUtils.getValue(p.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);A=mxUtils.getValue(p.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(p.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),M=(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,W=[];(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&W.push("underline");@@ -3020,8 +3020,8 @@ Format.processMenuIcon=function(a,b){var e=a.getElementsByTagName("img");0<e.lenFormat.prototype.init=function(){var a=this.editorUi,b=a.editor,e=b.graph;this.update=mxUtils.bind(this,function(f,h){this.refresh()});e.getSelectionModel().addListener(mxEvent.CHANGE,this.update);e.getModel().addListener(mxEvent.CHANGE,this.update);e.addListener(mxEvent.EDITING_STARTED,this.update);e.addListener(mxEvent.EDITING_STOPPED,this.update);e.getView().addListener("unitChanged",this.update);b.addListener("autosaveChanged",this.update);e.addListener(mxEvent.ROOT,this.update);a.addListener("styleChanged",this.update);a.addListener("lockedChanged",this.update);this.refresh()};Format.prototype.clear=function(){this.container.innerText="";if(null!=this.panels)for(var a=0;a<this.panels.length;a++)this.panels[a].destroy();this.panels=[]};Format.prototype.refresh=function(){null!=this.pendingRefresh&&(window.clearTimeout(this.pendingRefresh),this.pendingRefresh=null);this.pendingRefresh=window.setTimeout(mxUtils.bind(this,function(){this.immediateRefresh()}))};Format.prototype.immediateRefresh=function(){if("0px"!=this.container.style.width){this.clear();var a=this.editorUi,b=a.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.cursor="default";var f=document.createElement("div");f.className="geFormatSection";f.style.textAlign="center";f.style.fontWeight="bold";f.style.paddingTop="8px";f.style.fontSize="13px";f.style.borderWidth="0px 0px 1px 1px";f.style.borderStyle="solid";f.style.display="inline-block";-f.style.height="25px";f.style.overflow="hidden";f.style.width="100%";this.container.appendChild(e);mxEvent.addListener(f,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()}));var h=a.getSelectionState(),d=h.containsLabel,g=null,m=null,q=mxUtils.bind(this,function(C,E,D,G){var J=mxUtils.bind(this,function(L){g!=C&&(d?this.labelIndex=D:b.isSelectionEmpty()?this.diagramIndex=D:this.currentIndex=D,null!=g&&(g.style.backgroundColor=Format.inactiveTabBackgroundColor,-g.style.borderBottomWidth="1px"),g=C,g.style.backgroundColor="",g.style.borderBottomWidth="0px",m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(C,"click",J);mxEvent.addListener(C,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(L){L.preventDefault()}));(G&&null==g||D==(d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex))&&J()}),k=0;if(b.isSelectionEmpty()){mxUtils.write(f,mxResources.get("diagram"));f.style.borderLeftWidth=+f.style.height="25px";f.style.overflow="hidden";f.style.width="100%";this.container.appendChild(e);mxEvent.addListener(f,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()}));var h=a.getSelectionState(),d=h.containsLabel,g=null,m=null,q=mxUtils.bind(this,function(C,E,D,G){var I=mxUtils.bind(this,function(L){g!=C&&(d?this.labelIndex=D:b.isSelectionEmpty()?this.diagramIndex=D:this.currentIndex=D,null!=g&&(g.style.backgroundColor=Format.inactiveTabBackgroundColor,+g.style.borderBottomWidth="1px"),g=C,g.style.backgroundColor="",g.style.borderBottomWidth="0px",m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(C,"click",I);mxEvent.addListener(C,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(L){L.preventDefault()}));(G&&null==g||D==(d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex))&&I()}),k=0;if(b.isSelectionEmpty()){mxUtils.write(f,mxResources.get("diagram"));f.style.borderLeftWidth="0px";e.appendChild(f);h=e.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,h));this.container.appendChild(h);if(null!=Editor.styles){h.style.display="none";f.style.width=this.showCloseButton?"106px":"50%";f.style.cursor="pointer";f.style.backgroundColor=Format.inactiveTabBackgroundColor;var u=f.cloneNode(!1);u.style.borderLeftWidth="1px";u.style.borderRightWidth="1px";u.style.backgroundColor=Format.inactiveTabBackgroundColor;q(f,h,k++);var w=e.cloneNode(!1);w.style.display="none";mxUtils.write(u,mxResources.get("style"));e.appendChild(u);this.panels.push(new DiagramStylePanel(this,a,w));this.container.appendChild(w);q(u,w,k++)}this.showCloseButton&&(u=f.cloneNode(!1),u.style.borderLeftWidth="1px",u.style.borderRightWidth="1px",u.style.borderBottomWidth="1px",u.style.backgroundColor=Format.inactiveTabBackgroundColor,u.style.position="absolute",u.style.display="flex",u.style.right="0px",u.style.top="0px",u.style.width="25px",u.style.padding="0px",u.style.height="33px",u.style.alignItems="center",u.style.justifyContent="center",q=document.createElement("img"),q.className="geAdaptiveAsset",q.setAttribute("border","0"),q.setAttribute("src",Editor.crossImage),q.setAttribute("title",mxResources.get("hide")),q.style.width="16px",q.style.height="16px",q.style.opacity=.5,u.appendChild(q),mxEvent.addListener(q,"click",function(){a.actions.get("format").funct()}),e.appendChild(u))}else if(b.isEditing())mxUtils.write(f,mxResources.get("text")),e.appendChild(f),f.style.borderLeftStyle="none",this.panels.push(new TextFormatPanel(this,@@ -3029,8 +3029,8 @@ a,e));else{f.style.backgroundColor=Format.inactiveTabBackgroundColor;f.style.bor"none",this.panels.push(new StyleFormatPanel(this,a,w)),this.container.appendChild(w),q(f,w,k++));mxUtils.write(u,mxResources.get("text"));e.appendChild(u);f=e.cloneNode(!1);f.style.display="none";this.panels.push(new TextFormatPanel(this,a,f));this.container.appendChild(f);mxUtils.write(z,mxResources.get("arrange"));e.appendChild(z);e=e.cloneNode(!1);e.style.display="none";this.panels.push(new ArrangePanel(this,a,e));this.container.appendChild(e);0<h.cells.length?q(u,f,k+1):u.style.display="none";q(z,e,k++,!0)}}};BaseFormatPanel=function(a,b,e){this.format=a;this.editorUi=b;this.container=e;this.listeners=[]};BaseFormatPanel.prototype.buttonBackgroundColor="transparent";BaseFormatPanel.prototype.installInputHandler=function(a,b,e,f,h,d,g,m,q){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,u=k.editor.graph;f=null!=f?f:1;h=null!=h?h:999;var w=null,z=!1,C=null,E=mxUtils.bind(this,function(D){var G=m?parseFloat(a.value):parseInt(a.value);q&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(h,Math.max(f,isNaN(G)?e:G));if(u.cellEditor.isContentEditing()&&g)z||(z=!0,null!=w&&(u.cellEditor.restoreSelection(w),-w=null),g(G),a.value=(q?this.inUnit(G):G)+d,z=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var J=k.getSelectionState().cells;u.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var L=0;L<J.length;L++)0==u.model.getChildCount(J[L])&&u.autoSizeCell(J[L],!1);k.fireEvent(new mxEventObject("styleChanged",-"keys",[b],"values",[G],"cells",J))}finally{u.getModel().endUpdate()}}a.value=(q?this.inUnit(G):G)+d}mxEvent.consume(D)});g&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};+w=null),g(G),a.value=(q?this.inUnit(G):G)+d,z=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var I=k.getSelectionState().cells;u.setCellStyles(b,G,I);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(I,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var L=0;L<I.length;L++)0==u.model.getChildCount(I[L])&&u.autoSizeCell(I[L],!1);k.fireEvent(new mxEventObject("styleChanged",+"keys",[b],"values",[G],"cells",I))}finally{u.getModel().endUpdate()}}a.value=(q?this.inUnit(G):G)+d}mxEvent.consume(D)});g&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";a.style.padding="12px 0px 8px 14px";return a};BaseFormatPanel.prototype.createTitle=function(a){var b=document.createElement("div");b.style.padding="0px 0px 6px 0px";b.style.whiteSpace="nowrap";b.style.overflow="hidden";b.style.width="200px";b.style.fontWeight="bold";mxUtils.write(b,a);return b};BaseFormatPanel.prototype.addAction=function(a,b){var e=this.editorUi.actions.get(b);b=null;null!=e&&e.isEnabled()&&(b=mxUtils.button(e.label,mxUtils.bind(this,function(f){try{e.funct(f,f)}catch(h){this.editorUi.handleError(h)}})),b.setAttribute("title",e.label+(null!=e.shortcut?" ("+e.shortcut+")":"")),b.style.marginBottom="2px",b.style.width="210px",a.appendChild(b));return b};BaseFormatPanel.prototype.addActions=function(a,b){for(var e=null,f=null,h=0,d=0;d<b.length;d++){var g=this.addAction(a,b[d]);null!=g&&(h++,0==mxUtils.mod(h,2)&&(f.style.marginRight="2px",f.style.width="104px",g.style.width="104px",e.parentNode.removeChild(e)),e=mxUtils.br(a),f=g)}return h};@@ -3043,11 +3043,11 @@ m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtiBaseFormatPanel.prototype.createCellOption=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;f=null!=f?"null"==f?null:f:1;h=null!=h?"null"==h?null:h:0;var w=null!=q?u.getCommonStyle(q):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,e)!=h},function(z){m&&u.stopEditing();if(null!=g)g.funct();else{u.getModel().beginUpdate();try{var C=null!=q?q:k.getSelectionState().cells;z=z?f:h;u.setCellStyles(b,z,C);null!=d&&d(C,z);k.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[z],"cells",C))}finally{u.getModel().endUpdate()}}},{install:function(z){this.listener=function(){z(mxUtils.getValue(w,b,e)!=h)};u.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){u.getModel().removeListener(this.listener)}})};BaseFormatPanel.prototype.createColorOption=function(a,b,e,f,h,d,g,m,q,k){function u(P,T){"default"!=P||T||(P=m);"default"!=P&&q&&(P=mxUtils.getLightDarkColor(P),P=k()?P.dark:P.light);return P}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var z=this.editorUi.editor.graph,C=document.createElement("div");C.style.padding="3px 0px 3px 0px";C.style.whiteSpace="nowrap";C.style.overflow="hidden";C.style.width="200px";C.style.height="18px";var E=document.createElement("input");E.setAttribute("type","checkbox");-E.style.margin="1px 6px 0px 0px";E.style.verticalAlign="top";g||C.appendChild(E);var D=document.createElement("span");D.style.verticalAlign="top";mxUtils.write(D,a);C.appendChild(D);var G=b(),J=!1,L=null,Q=null,N=document.createElement("input");N.setAttribute("type","color");N.style.position="relative";N.style.visibility="hidden";N.style.top="10px";N.style.width="0px";N.style.height="0px";N.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(L=document.createElement("img"),L.src=-Editor.colorDropperImage,L.className="geColorDropper geAdaptiveAsset",L.style.position="relative",L.style.right="-20px",L.style.top="-1px",L.style.width="auto",L.style.height="14px",mxEvent.addListener(L,"click",function(P){N.value=u(G);N.click();mxEvent.consume(P)}));var U=null,Y=function(P,T){J||(J=!0,null!=d&&d(P),T||(null!=U&&(z.cellEditor.restoreSelection(U),U=null),e(P)),G=b(),P=mxUtils.getLightDarkColor("default"!=G?G:m),T=document.createElement("div"),T.style.width="21px",T.style.height="12px",+E.style.margin="1px 6px 0px 0px";E.style.verticalAlign="top";g||C.appendChild(E);var D=document.createElement("span");D.style.verticalAlign="top";mxUtils.write(D,a);C.appendChild(D);var G=b(),I=!1,L=null,Q=null,N=document.createElement("input");N.setAttribute("type","color");N.style.position="relative";N.style.visibility="hidden";N.style.top="10px";N.style.width="0px";N.style.height="0px";N.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(L=document.createElement("img"),L.src=+Editor.colorDropperImage,L.className="geColorDropper geAdaptiveAsset",L.style.position="relative",L.style.right="-20px",L.style.top="-1px",L.style.width="auto",L.style.height="14px",mxEvent.addListener(L,"click",function(P){N.value=u(G);N.click();mxEvent.consume(P)}));var U=null,Y=function(P,T){I||(I=!0,null!=d&&d(P),T||(null!=U&&(z.cellEditor.restoreSelection(U),U=null),e(P)),G=b(),P=mxUtils.getLightDarkColor("default"!=G?G:m),T=document.createElement("div"),T.style.width="21px",T.style.height="12px",T.style.margin="2px 18px 2px 3px",T.style.borderWidth="1px",T.style.borderStyle="solid",T.style.backgroundColor=P.cssText,Q.innerText="",Q.appendChild(T),!q&&mxUtils.isLightDarkColor(G)&&P.light!=P.dark?T.style.background="linear-gradient(to right bottom, "+P.cssText+" 50%, "+mxUtils.invertLightDarkColor(P).cssText+" 50.3%)":q&&w&&(T.style.backgroundColor=k()?P.dark:P.light),null!=L?(T.style.width="21px",T.style.margin="2px 18px 2px 3px",T.appendChild(L)):(T.style.width="36px",T.style.margin="3px"),null!=G&&G!=mxConstants.NONE&&1<G.length&&"string"===typeof G&&(P="#"==G.charAt(0)?G.substring(1).toUpperCase():G,P=ColorDialog.prototype.colorNames[P],null!=P?Q.setAttribute("title",P):"default"==G?Q.setAttribute("title",mxResources.get("useBlackAndWhite")):Q.setAttribute("title",G)),null==G||G==mxConstants.NONE||z.isSpecialColor(G)?(E.removeAttribute("checked"),E.defaultChecked=!1,E.checked=!1):(E.setAttribute("checked","checked"),E.defaultChecked=!0,E.checked=!0),Q.style.display=E.checked||g?"":-"none",J=!1)};C.appendChild(N);mxEvent.addListener(N,"change",function(){var P=N.value;if(!q){var T=mxUtils.getLightDarkColor(G);k()?T.dark=P:T.light=P;P="light-dark("+T.light+", "+T.dark+")"}Y(P)});Q=mxUtils.button("",mxUtils.bind(this,function(P){var T=m;q&&k()&&mxUtils.isLightDarkColor(T)&&(T=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(K){Y(K)},"default"==f?"default":null,T,q);mxEvent.consume(P)}));Q.style.position="absolute";Q.style.marginTop="-3px";Q.style.left=+"none",I=!1)};C.appendChild(N);mxEvent.addListener(N,"change",function(){var P=N.value;if(!q){var T=mxUtils.getLightDarkColor(G);k()?T.dark=P:T.light=P;P="light-dark("+T.light+", "+T.dark+")"}Y(P)});Q=mxUtils.button("",mxUtils.bind(this,function(P){var T=m;q&&k()&&mxUtils.isLightDarkColor(T)&&(T=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(K){Y(K)},"default"==f?"default":null,T,q);mxEvent.consume(P)}));Q.style.position="absolute";Q.style.marginTop="-3px";Q.style.left="178px";Q.style.height="22px";Q.className="geColorBtn";Q.style.display=E.checked||g?"":"none";C.appendChild(Q);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&Q.setAttribute("title",a);g||(mxEvent.addListener(C,"click",function(P){P=mxEvent.getSource(P);if(P==E||"INPUT"!=P.nodeName)P!=E&&(E.checked=!E.checked),E.checked||null==G||G==mxConstants.NONE||f==mxConstants.NONE||(f=u(G)),Y(E.checked?f:mxConstants.NONE)}),mxEvent.addGestureListeners(E,mxUtils.bind(this,function(P){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(P){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})));Y(G,!0);null!=h&&h.install(function(){Y(G,!0)},this.listeners.push(h));return C};BaseFormatPanel.prototype.createCellColorOption=function(a,b,e,f,h,d){var g=this.editorUi,m=g.editor.graph;return this.createColorOption(a,function(){var q=m.getCellStyle(m.getSelectionCell(),!1);return null!=q?q[b]:null},function(q){m.getModel().beginUpdate();try{var k=g.getSelectionState().cells;m.setCellStyles(b,q,k);null!=h&&h(q);g.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[q],"cells",k))}finally{m.getModel().endUpdate()}},e||mxConstants.NONE,{install:function(q){this.listener=@@ -3093,12 +3093,12 @@ k=this.addUnitInput(g,this.getUnit(),16,52,function(){E.apply(this,arguments)},t")");u.style.position="relative";u.style.cursor="pointer";u.style.marginTop="-3px";u.style.border="0px";u.style.left="42px";mxUtils.setOpacity(u,50);mxEvent.addListener(u,"mouseenter",function(){mxUtils.setOpacity(u,100)});mxEvent.addListener(u,"mouseleave",function(){mxUtils.setOpacity(u,50)});mxEvent.addListener(u,"click",function(){e.actions.get("autosize").funct()});g.appendChild(u);d.row?(q.style.visibility="hidden",q.nextSibling.style.visibility="hidden"):this.addLabel(g,mxResources.get("width"),87,64);this.addLabel(g,mxResources.get("height"),16,64);mxUtils.br(g);m=document.createElement("div");m.style.paddingTop="8px";m.style.paddingRight="20px";m.style.whiteSpace="nowrap";m.style.textAlign="right";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.style.width="210px";m.appendChild(w);d.cell||d.row?u.style.visibility="hidden":g.appendChild(m);var z=w.getElementsByTagName("input")[0];this.addKeyHandler(q,Y);this.addKeyHandler(k,Y);var C=this.addGeometryHandler(q,function(K,V,Z){V=Math.max(1,b.fromUnit(V));if(f.isTableCell(Z))return f.setTableColumnWidth(Z,V-K.width,!0),!0;0<K.width&&(z.checked&&(K.height=Math.round(K.height*V*100/K.width)/100),K.width=V)});var E=this.addGeometryHandler(k,function(K,V,Z){V=Math.max(1,b.fromUnit(V));f.isTableCell(Z)&&(Z=h.getParent(Z));if(f.isTableRow(Z))return f.setTableRowHeight(Z,V-K.height),!0;0<K.height&&(z.checked&&(K.width=Math.round(K.width*V*100/K.height)/100),K.height=V)});(d.resizable||-d.row||d.cell)&&a.appendChild(g);var D=this.createPanel();D.style.paddingBottom="30px";m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("position"));D.appendChild(m);var G=this.addUnitInput(D,this.getUnit(),87,52,function(){P.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),J=this.addUnitInput(D,this.getUnit(),16,52,function(){T.apply(this,arguments)},this.getUnitStep(),+d.row||d.cell)&&a.appendChild(g);var D=this.createPanel();D.style.paddingBottom="30px";m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("position"));D.appendChild(m);var G=this.addUnitInput(D,this.getUnit(),87,52,function(){P.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),I=this.addUnitInput(D,this.getUnit(),16,52,function(){T.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(D);w=!0;var L=null,Q=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var N=f.getCellGeometry(d.vertices[0]);if(null!=N&&N.relative){mxUtils.br(D);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));D.appendChild(m);L=this.addGenericInput(D," %",87,52,function(){return Math.round(1E3*N.x)/10},function(K){K=parseFloat(K);if(!isNaN(K)){h.beginUpdate();try{N=N.clone(),N.x=parseFloat(K)/100,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}}});if(h.isEdge(h.getParent(d.vertices[0]))){w=!1;var U=null;Q=this.addUnitInput(D,this.getUnit(),16,52,function(){U.apply(this,arguments)});U=this.addGeometryHandler(Q,function(K,V){K.y=b.fromUnit(V)})}else Q=this.addGenericInput(D," %",16,52,function(){return Math.round(1E3*N.y)/10},function(K){K=parseFloat(K);if(!isNaN(K)){h.beginUpdate();try{N=N.clone(),N.y=parseFloat(K)/100,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}}});mxUtils.br(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(w?"left":"line"),87,64).style.marginTop="8px";this.addLabel(D,mxResources.get(w?"top":"orthogonal"),16,64).style.marginTop="8px";var Y=mxUtils.bind(this,function(K,V,Z){d=e.getSelectionState();if(d.containsLabel||d.vertices.length!=f.getSelectionCount()||null==d.width||null==d.height)g.style.display="none";else{g.style.display="";if(Z||document.activeElement!=q)q.value=this.inUnit(d.width)+" "+this.getUnit();-if(Z||document.activeElement!=k)k.value=this.inUnit(d.height)+" "+this.getUnit()}if(d.vertices.length==f.getSelectionCount()&&0<d.vertices.length&&null!=d.x&&null!=d.y){K=f.getCellGeometry(d.vertices[0]);D.style.display="";if(Z||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(Z||document.activeElement!=J)J.value=this.inUnit(d.y)+" "+this.getUnit();null!=K&&K.relative&&(null==L||!Z&&document.activeElement==L||(L.value=Math.round(1E3*K.x)/10+" %"),null==Q||!Z&&document.activeElement==-Q||(h.isEdge(h.getParent(d.vertices[0]))?Q.value=this.inUnit(K.y)+" "+this.getUnit():Q.value=Math.round(1E3*K.y)/10+" %"))}else D.style.display="none"});this.listeners.push({destroy:function(){h.removeListener(Y)}});h.addListener(mxEvent.CHANGE,Y);this.addKeyHandler(G,Y);this.addKeyHandler(J,Y);Y();var P=this.addGeometryHandler(G,function(K,V){V=b.fromUnit(V);K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.x=V):K.x=V});var T=this.addGeometryHandler(J,function(K,V){V=b.fromUnit(V);+if(Z||document.activeElement!=k)k.value=this.inUnit(d.height)+" "+this.getUnit()}if(d.vertices.length==f.getSelectionCount()&&0<d.vertices.length&&null!=d.x&&null!=d.y){K=f.getCellGeometry(d.vertices[0]);D.style.display="";if(Z||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(Z||document.activeElement!=I)I.value=this.inUnit(d.y)+" "+this.getUnit();null!=K&&K.relative&&(null==L||!Z&&document.activeElement==L||(L.value=Math.round(1E3*K.x)/10+" %"),null==Q||!Z&&document.activeElement==+Q||(h.isEdge(h.getParent(d.vertices[0]))?Q.value=this.inUnit(K.y)+" "+this.getUnit():Q.value=Math.round(1E3*K.y)/10+" %"))}else D.style.display="none"});this.listeners.push({destroy:function(){h.removeListener(Y)}});h.addListener(mxEvent.CHANGE,Y);this.addKeyHandler(G,Y);this.addKeyHandler(I,Y);Y();var P=this.addGeometryHandler(G,function(K,V){V=b.fromUnit(V);K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.x=V):K.x=V});var T=this.addGeometryHandler(I,function(K,V){V=b.fromUnit(V);K.relative?(K.offset=null!=K.offset?K.offset:new mxPoint,K.offset.y=V):K.y=V});d.movable&&(0==d.edges.length&&1==d.vertices.length&&h.isEdge(h.getParent(d.vertices[0]))&&(N=f.getCellGeometry(d.vertices[0]),null!=N&&N.relative&&(m=mxUtils.button(mxResources.get("center"),mxUtils.bind(this,function(K){h.beginUpdate();try{N=N.clone(),N.x=0,N.y=0,N.offset=new mxPoint,h.setGeometry(d.vertices[0],N)}finally{h.endUpdate()}})),m.setAttribute("title",mxResources.get("center")),m.style.width="134px",m.style.left="89px",m.style.position="absolute",mxUtils.br(D),mxUtils.br(D),D.appendChild(m))),a.appendChild(D))};ArrangePanel.prototype.addGeometryHandler=function(a,b){function e(m){if(""!=a.value){var q=parseFloat(a.value);if(isNaN(q))a.value=d+" "+g.getUnit();else if(q!=d){h.getModel().beginUpdate();try{for(var k=f.getSelectionState().cells,u=0;u<k.length;u++)if(h.getModel().isVertex(k[u])){var w=h.getCellGeometry(k[u]);if(null!=w&&(w=w.clone(),!b(w,q,k[u]))){var z=h.view.getState(k[u]);null!=z&&h.isRecursiveVertexResize(z)&&h.resizeChildCells(k[u],w);h.getModel().setGeometry(k[u],w);h.constrainChildCells(k[u])}}}finally{h.getModel().endUpdate()}d=@@ -3107,11 +3107,11 @@ ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=e.getSelectionState(),d=this.createPanel(),g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";g.style.fontWeight="bold";mxUtils.write(g,mxResources.get("width"));d.appendChild(g);var m=this.addUnitInput(d,"pt",12,44,function(){q.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,D);var q=mxUtils.bind(this,function(N){var U=parseInt(m.value);U=Math.min(999,Math.max(1,isNaN(U)?1:U));if(U!=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var Y=e.getSelectionState().cells;f.setCellStyles("width",U,Y);e.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[U],"cells",Y))}m.value=U+" pt";mxEvent.consume(N)});mxEvent.addListener(m,"blur",q);mxEvent.addListener(m,"change",q);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";g=document.createElement("div");g.style.position=-"absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("linestart"));k.appendChild(g);var u=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){J.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);+"absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("linestart"));k.appendChild(g);var u=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){I.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);this.addKeyHandler(u,D);this.addKeyHandler(w,D);var z=this.createPanel();z.style.paddingBottom="30px";g=document.createElement("div");g.style.position="absolute";g.style.width="70px";g.style.marginTop="0px";mxUtils.write(g,mxResources.get("lineend"));z.appendChild(g);var C=this.addUnitInput(z,this.getUnit(),87,52,function(){L.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),E=this.addUnitInput(z,this.getUnit(),16,52,function(){Q.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(z);this.addLabel(z,mxResources.get("left"),87,64);this.addLabel(z,mxResources.get("top"),16,64);a.appendChild(z);this.addKeyHandler(C,D);this.addKeyHandler(E,D);var D=mxUtils.bind(this,function(N,U,Y){h=e.getSelectionState();N=h.cells[0];if("link"==h.style.shape||"flexArrow"==h.style.shape){if(d.style.display="",Y||document.activeElement!=m)Y=mxUtils.getValue(h.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth),m.value=Y+" pt"}else d.style.display="none";1==h.cells.length&&f.model.isEdge(N)?(Y=f.model.getGeometry(N),null!=Y&&null!=Y.sourcePoint&&null==f.model.getTerminal(N,!0)?(u.value=this.inUnit(Y.sourcePoint.x)+" "+this.getUnit(),w.value=this.inUnit(Y.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=Y&&null!=Y.targetPoint&&null==f.model.getTerminal(N,!1)?(C.value=this.inUnit(Y.targetPoint.x)+" "+this.getUnit(),E.value=this.inUnit(Y.targetPoint.y)+" "+this.getUnit()):z.style.display="none"):(k.style.display="none",z.style.display=-"none")});var G=this.addEdgeGeometryHandler(u,function(N,U){N.sourcePoint.x=b.fromUnit(U)});var J=this.addEdgeGeometryHandler(w,function(N,U){N.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(N,U){N.targetPoint.x=b.fromUnit(U)});var Q=this.addEdgeGeometryHandler(E,function(N,U){N.targetPoint.y=b.fromUnit(U)});f.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){f.getModel().removeListener(D)}});D()};+"none")});var G=this.addEdgeGeometryHandler(u,function(N,U){N.sourcePoint.x=b.fromUnit(U)});var I=this.addEdgeGeometryHandler(w,function(N,U){N.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(N,U){N.targetPoint.x=b.fromUnit(U)});var Q=this.addEdgeGeometryHandler(E,function(N,U){N.targetPoint.y=b.fromUnit(U)});f.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){f.getModel().removeListener(D)}});D()};TextFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(TextFormatPanel,BaseFormatPanel);TextFormatPanel.prototype.init=function(){this.container.style.borderBottom="none";this.addFont(this.container);this.container.appendChild(this.addFontOps(this.createPanel()))};TextFormatPanel.prototype.addFontOps=function(a){a.style.paddingTop="8px";a.style.paddingBottom="6px";0==this.addActions(a,["removeFormat"])&&(a.style.display="none");return a};TextFormatPanel.prototype.addFont=function(a){function b(p){p=null!=p?p.fontSize:null;return null!=p&&"px"==p.substring(p.length-2)?parseFloat(p):mxConstants.DEFAULT_FONTSIZE}function e(p,A){if(null!=p&&""!=p.textContent){p.style.lineHeight="";var B=mxUtils.getCurrentStyle(p);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?p.style.lineHeight=A+"%":""==p.getAttribute("style")&&p.removeAttribute("style")}}function f(p,A){A?p.classList.add("geActiveItem"):p.classList.remove("geActiveItem")}var h=this.editorUi,d=h.editor.graph,g=h.getSelectionState(),m=this.createTitle(mxResources.get("font"));m.style.paddingLeft="14px";m.style.paddingTop="10px";m.style.paddingBottom="6px";a.appendChild(m);m=this.createPanel();m.style.paddingTop="2px";m.style.paddingBottom="2px";m.style.position="relative";m.style.marginLeft="-2px";m.style.borderWidth="0px";m.className="geToolbarContainer";if(d.cellEditor.isContentEditing()){var q=m.cloneNode(),k=this.editorUi.toolbar.addMenu(mxResources.get("style"),mxResources.get("style"),@@ -3120,12 +3120,12 @@ this.editorUi.toolbar.addMenu("Helvetica",mxResources.get("fontFamily"),!0,"font"underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);w[0].setAttribute("title",mxResources.get("bold")+" ("+this.editorUi.actions.get("bold").shortcut+")");w[1].setAttribute("title",mxResources.get("italic")+" ("+this.editorUi.actions.get("italic").shortcut+")");w[2].setAttribute("title",mxResources.get("underline")+" ("+this.editorUi.actions.get("underline").shortcut+")");var z=this.editorUi.toolbar.addItems(["vertical"],k,!0,[Editor.verticalTextImage])[0];a.appendChild(k);this.styleButtons(w);this.styleButtons([z]);var C=m.cloneNode(!1);C.style.height="31px";C.style.paddingTop="2px";C.style.marginLeft="-3px";C.style.paddingBottom="0px";var E=function(p){return function(){return p()}},D=this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_LEFT])),C),G=this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],-[mxConstants.ALIGN_CENTER])),C),J=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);this.styleButtons([D,G,J]);if(d.cellEditor.isContentEditing()){var L=+[mxConstants.ALIGN_CENTER])),C),I=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(p){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,p);h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",g.cells))}:E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);this.styleButtons([D,G,I]);if(d.cellEditor.isContentEditing()){var L=this.editorUi.toolbar.addButton(Editor.strikethroughImage,mxResources.get("strikethrough"),function(){document.execCommand("strikeThrough",!1,null)},k);this.styleButtons([L])}var Q=this.editorUi.toolbar.addButton(Editor.alignTopImage,mxResources.get("top"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),N=this.editorUi.toolbar.addButton(Editor.alignMiddleImage,mxResources.get("middle"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),C),U=this.editorUi.toolbar.addButton(Editor.alignBottomImage,mxResources.get("bottom"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),C);this.styleButtons([Q,N,U]);a.appendChild(C);var Y,P,T,K,V;if(d.cellEditor.isContentEditing()){Q.style.display="none";N.style.display="none";U.style.display="none";z.style.display="none";var Z=this.editorUi.toolbar.addButton(Editor.alignJustifyImage,mxResources.get("block"),function(){1==Z.style.opacity&&document.execCommand("justifyfull",!1,null)},C);Z.style.marginRight="9px";this.styleButtons([Z,Y=this.editorUi.toolbar.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C),P=this.editorUi.toolbar.addButton(Editor.superscriptImage,mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},C)]);Y.style.marginLeft="10px";E=C.cloneNode(!1);E.style.paddingTop="4px";C=[this.editorUi.toolbar.addButton(Editor.orderedListImage,mxResources.get("numberedList"),function(){document.execCommand("insertorderedlist",!1,null)},E),this.editorUi.toolbar.addButton(Editor.unorderedListImage,mxResources.get("bulletedList"),function(){document.execCommand("insertunorderedlist",!1,null)},E),this.editorUi.toolbar.addButton(Editor.indentImage,mxResources.get("increaseIndent"),function(){document.execCommand("indent",!1,null)},E),this.editorUi.toolbar.addButton(Editor.outdentImage,-mxResources.get("decreaseIndent"),function(){document.execCommand("outdent",!1,null)},E),this.editorUi.toolbar.addButton(Editor.removeFormatImage,mxResources.get("removeFormat"),function(){document.execCommand("removeformat",!1,null)},E),this.editorUi.toolbar.addButton(Editor.codeImage,mxResources.get("html"),function(){d.cellEditor.toggleViewMode()},E)];this.styleButtons(C);C[C.length-2].style.marginLeft="10px";a.appendChild(E)}else w[2].style.marginRight="12px",J.style.marginRight="12px";C=m.cloneNode(!1);+mxResources.get("decreaseIndent"),function(){document.execCommand("outdent",!1,null)},E),this.editorUi.toolbar.addButton(Editor.removeFormatImage,mxResources.get("removeFormat"),function(){document.execCommand("removeformat",!1,null)},E),this.editorUi.toolbar.addButton(Editor.codeImage,mxResources.get("html"),function(){d.cellEditor.toggleViewMode()},E)];this.styleButtons(C);C[C.length-2].style.marginLeft="10px";a.appendChild(E)}else w[2].style.marginRight="12px",I.style.marginRight="12px";C=m.cloneNode(!1);C.removeAttribute("class");C.style.marginLeft="0px";C.style.paddingTop="8px";C.style.paddingBottom="4px";C.style.fontWeight="normal";mxUtils.write(C,mxResources.get("position"));var ia=document.createElement("select");ia.style.position="absolute";ia.style.left="126px";ia.style.width="98px";ia.style.borderWidth="1px";ia.style.borderStyle="solid";ia.style.marginTop="-3px";var oa="topLeft top topRight left center right bottomLeft bottom bottomRight".split(" "),sa={topLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM],top:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_BOTTOM],topRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM],left:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE],center:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE],right:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE],bottomLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP],bottom:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP],bottomRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP]};for(E=0;E<oa.length;E++){var O=document.createElement("option");O.setAttribute("value",oa[E]);mxUtils.write(O,@@ -3156,7 +3156,7 @@ this.editorUi.pickColor(A,function(B){var F=null==K||null!=p&&mxEvent.isShiftDowmxResources.get("spacing"));h.showDialog(p.container,300,80,!0,!0);p.init()}},m),this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=T&&T.setAttribute("align","left")},m),this.editorUi.toolbar.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=T&&T.setAttribute("align","center")},m),this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=T&&T.setAttribute("align","right")},m)];this.styleButtons(C);C[2].style.marginRight="10px";q.appendChild(m);a.appendChild(q);var Xa=q}else a.appendChild(q),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(E=0;3>E;E++)(function(p){mxEvent.addListener(w[p],"click",function(){f(w[p],""==w[p].style.backgroundImage)})})(E);var Ya=mxUtils.bind(this,function(p,A,B){g=h.getSelectionState();p=mxUtils.getValue(g.style,mxConstants.STYLE_FONTSTYLE,0);f(w[0],(p&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);f(w[1],(p&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(w[2],(p&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);u.firstChild.nodeValue=mxUtils.getValue(g.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont);f(z,"0"==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=ca)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ca.value=isNaN(p)?"":p+" "+Editor.fontSizeUnit;p=mxUtils.getValue(g.style,-mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,p==mxConstants.ALIGN_LEFT);f(G,p==mxConstants.ALIGN_CENTER);f(J,p==mxConstants.ALIGN_RIGHT);p=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(Q,p==mxConstants.ALIGN_TOP);f(N,p==mxConstants.ALIGN_MIDDLE);f(U,p==mxConstants.ALIGN_BOTTOM);p=mxUtils.getValue(g.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);+mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,p==mxConstants.ALIGN_LEFT);f(G,p==mxConstants.ALIGN_CENTER);f(I,p==mxConstants.ALIGN_RIGHT);p=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(Q,p==mxConstants.ALIGN_TOP);f(N,p==mxConstants.ALIGN_MIDDLE);f(U,p==mxConstants.ALIGN_BOTTOM);p=mxUtils.getValue(g.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);ia.value=p==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":p==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":p==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":p==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":p==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":p==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":p==mxConstants.ALIGN_LEFT?"left":p==mxConstants.ALIGN_RIGHT?"right":"center";p=mxUtils.getValue(g.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);p==mxConstants.TEXT_DIRECTION_RTL?X.value="rightToLeft":p==mxConstants.TEXT_DIRECTION_LTR?X.value="leftToRight":p!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?p==mxConstants.TEXT_DIRECTION_VERTICAL_LR?X.value="vertical-leftToRight":p==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(X.value="vertical-rightToLeft"):X.value="automatic";if(B||document.activeElement!=Ja)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Ja.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ca)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Ca.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ga)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ga.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Da)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Da.value=isNaN(p)?"":this.inUnit(p)+@@ -3166,8 +3166,8 @@ Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,fHa.childNodes[0],Ha.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.parentNode}return null},M=mxUtils.getCurrentStyle(p),R=p==d.cellEditor.textarea||""==p.style.lineHeight?null:p.style.lineHeight,W=p==d.cellEditor.textarea||""==p.style.fontSize?null:b(M);if(window.getSelection)for(var ha=p.getElementsByTagName("*"),fa=window.getSelection(),ja=0;ja<ha.length&&(!fa.containsNode(ha[ja],!0)||(null==W&&""!=ha[ja].style.fontSize&&(W=parseFloat(ha[ja].style.fontSize)),null==R&&""!=ha[ja].style.lineHeight&&(R=ha[ja].style.lineHeight),null==W||null==R));ja++);null==W&&(W=b(M));if(null==R)for(ha=p;null!=ha&&ha!=d.cellEditor.textarea.parentNode;){if(null!=ha.style&&""!=ha.style.lineHeight){R=ha.style.lineHeight;break}ha=ha.parentNode}if(null!=M){f(w[0],"bold"==M.fontWeight||400<M.fontWeight||B("B")||B("STRONG"));f(w[1],"italic"==M.fontStyle||B("I")||B("EM"));f(w[2],"underline"==M.textDecorationLine||B("U"));f(L,"line-through"==M.textDecorationLine||B("STRIKE"));f(P,B("SUP"));f(Y,B("SUB"));var va=F(p);if(null!=va){B=function(ya,Ha){Na.push({name:ya,dispName:Ha,type:"string",getValue:function(){return Ma[ya]},valueChanged:function(wa,ua){var Va=va.style,Qa=wa;parseInt(Qa)==Qa&&(Qa+="px",null!=ua&&(ua.value=Qa));Va[ya]=Qa;""==wa&&null!=ua&&(ua.value=Ma[ya])}})};var Ma=mxUtils.getCurrentStyle(va),Na=[];B("paddingTop","Padding Top");B("paddingRight","Padding Right");B("paddingLeft","Padding Left");-B("paddingBottom","Padding Bottom");B("marginTop","Margin Top");B("marginRight","Margin Right");B("marginLeft","Margin Left");B("marginBottom","Margin Bottom");B=this.createPanel();this.addProperties(B,Na,g,!0);null!=ib?ib.parentNode.replaceChild(B,ib):a.appendChild(B);ib=B}d.cellEditor.isTableSelected()?(f(Z,A(M.textAlign,"justify")),f(D,A(M.textAlign,"left")),f(G,A(M.textAlign,"center")),f(J,A(M.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),-A(M.textAlign,"justify")?(f(Z,A(M.textAlign,"justify")),f(D,!1),f(G,!1),f(J,!1)):(f(Z,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(J,B==mxConstants.ALIGN_RIGHT)));T=d.getParentByName(p,"TABLE",d.cellEditor.textarea);V=null==T?null:d.getParentByName(p,"TR",T);K=null==T?null:d.getParentByNames(p,["TD","TH"],T);Xa.style.display=null!=T?"":"none";document.activeElement!=ca&&(ca.value=isNaN(W)?"":W+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?La.value=R.replace("%",+B("paddingBottom","Padding Bottom");B("marginTop","Margin Top");B("marginRight","Margin Right");B("marginLeft","Margin Left");B("marginBottom","Margin Bottom");B=this.createPanel();this.addProperties(B,Na,g,!0);null!=ib?ib.parentNode.replaceChild(B,ib):a.appendChild(B);ib=B}d.cellEditor.isTableSelected()?(f(Z,A(M.textAlign,"justify")),f(D,A(M.textAlign,"left")),f(G,A(M.textAlign,"center")),f(I,A(M.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),+A(M.textAlign,"justify")?(f(Z,A(M.textAlign,"justify")),f(D,!1),f(G,!1),f(I,!1)):(f(Z,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(I,B==mxConstants.ALIGN_RIGHT)));T=d.getParentByName(p,"TABLE",d.cellEditor.textarea);V=null==T?null:d.getParentByName(p,"TR",T);K=null==T?null:d.getParentByNames(p,["TD","TH"],T);Xa.style.display=null!=T?"":"none";document.activeElement!=ca&&(ca.value=isNaN(W)?"":W+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?La.value=R.replace("%"," %"):(A=parseFloat(R),isNaN(A)?La.value="120 %":La.value=Math.round(100*A)+" %"));null!=ra&&(qa=d.getTextColor(p,!0),ra(qa,!0));null!=H&&(ea=d.getTextColor(p,!1),H(ea,!0));null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(M.fontFamily))}}eb=!1}),0))});(mxClient.IS_FF||mxClient.IS_EDGE||mxClient.IS_IE||mxClient.IS_IE11)&&mxEvent.addListener(d.cellEditor.textarea,"DOMSubtreeModified",m);mxEvent.addListener(d.cellEditor.textarea,"input",m);mxEvent.addListener(d.cellEditor.textarea,"touchend",m);mxEvent.addListener(d.cellEditor.textarea,"mouseup",m);mxEvent.addListener(d.cellEditor.textarea,"keyup",m);this.listeners.push({destroy:function(){}});m()}return a};StyleFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(StyleFormatPanel,BaseFormatPanel);StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(!a.containsLabel&&0<a.cells.length){a.containsImage&&1==a.vertices.length&&"image"==a.style.shape&&null!=a.style.image&&"data:image/svg+xml;"==String(a.style.image).substring(0,19)&&this.container.appendChild(this.addSvgStyles(this.createPanel()));a.fill&&this.container.appendChild(this.addFill(this.createPanel()));this.container.appendChild(this.addStroke(this.createPanel()));this.container.appendChild(this.addLineJumps(this.createPanel()));@@ -3175,8 +3175,8 @@ var b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPAStyleFormatPanel.prototype.getCssRules=function(a){var b=document.implementation.createHTMLDocument(""),e=document.createElement("style");mxUtils.setTextContent(e,a);b.body.appendChild(e);return e.sheet.cssRules};StyleFormatPanel.prototype.addSvgStyles=function(a){var b=this.editorUi.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";a.style.fontWeight="bold";a.style.display="none";try{var e=b.style.editableCssRules;if(null!=e){var f=new RegExp(e),h=b.style.image.substring(b.style.image.indexOf(",")+1),d=window.atob?decodeURIComponent(escape(atob(h))):Base64.decode(h,!0),g=mxUtils.parseXml(d);if(null!=g){var m="light"==g.documentElement.style.colorScheme||"0"==mxUtils.getValue(b.style,"darkMode",null),q=""==g.documentElement.style.colorScheme,k=g.getElementsByTagName("style");for(b=0;b<k.length;b++){var u=this.getCssRules(mxUtils.getTextContent(k[b]));for(e=0;e<u.length;e++)this.addSvgRule(a,u[e],g,k[b],u,e,f,m,q)}}}}catch(w){}return a};StyleFormatPanel.prototype.getColorSchemeFromCss=function(a){return(a=a.match(/color-scheme\s*:\s*([^;]+)/i))?a[1].trim():null};-StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(w,z,C,E){var D=mxUtils.trim(w.style.getPropertyValue(z));if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){h[d].style.setProperty(z,J==mxConstants.NONE?-"transparent":mxUtils.getLightDarkColor(J).cssText);J="";q&&mxUtils.isLightDarkColor(h[d].style[z])&&(e.documentElement.style.colorScheme="light dark");for(var L=0;L<h.length;L++)J+=h[L].cssText+" ";f.textContent=J;J=mxUtils.getXml(e.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,E);a.appendChild(w);+StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m,q){var k=this.editorUi,u=k.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(w,z,C,E){var D=mxUtils.trim(w.style.getPropertyValue(z));if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(I){h[d].style.setProperty(z,I==mxConstants.NONE?+"transparent":mxUtils.getLightDarkColor(I).cssText);I="";q&&mxUtils.isLightDarkColor(h[d].style[z])&&(e.documentElement.style.colorScheme="light dark");for(var L=0;L<h.length;L++)I+=h[L].cssText+" ";f.textContent=I;I=mxUtils.getXml(e.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(I))):Base64.encode(I,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(I){},destroy:function(){}},null,null,null,E);a.appendChild(w);a.style.display=""}}),g(b,"fill",mxResources.get("fill"),m),g(b,"stroke",mxResources.get("line"),m),g(b,"stop-color",mxResources.get("gradient"),m))};StyleFormatPanel.prototype.addEditOps=function(a){var b=this.editorUi.getSelectionState();if(1==b.cells.length){var e=document.createElement("select");e.style.width="210px";e.style.textAlign="center";e.style.marginBottom="2px";var f="edit copyAsText editLink editShape editImage editData copyData pasteData editConnectionPoints editGeometry editTooltip editStyle".split(" "),h=null;if(null!=this.editorUi.sidebar){var d=this.editorUi.sidebar.getKeyStyle(b.cells[0].style);h=this.editorUi.sidebar.getLibsForStyle(d);null!=h||this.editorUi.sidebar.isSearchIndexLoaded()||null==b.style.shape||"mxgraph."!=String(b.style.shape).substring(0,8)||(h=[])}null!=h&&f.push("openLibrary");for(d=0;d<f.length;d++){var g=this.editorUi.actions.get(f[d]);if(null==g||g.enabled){var m=document.createElement("option");m.setAttribute("value",f[d]);var q=mxResources.get(f[d]);mxUtils.write(m,q+("edit"==f[d]?"":"..."));null!=g&&null!=g.shortcut&&(q+=" ("+g.shortcut+")");m.setAttribute("title",q);e.appendChild(m)}}1<e.children.length&&@@ -3186,11 +3186,12 @@ StyleFormatPanel.prototype.addFill=function(a){function b(){g.innerHTML="";C=1;f"22px";d.style.marginTop="-3px";d.style.borderWidth="1px";d.style.borderStyle="solid";d.style.boxSizing="border-box";var g=d.cloneNode(!1);mxEvent.addListener(d,"click",function(D){mxEvent.consume(D)});mxEvent.addListener(g,"click",function(D){mxEvent.consume(D)});var m=this.createCellColorOption(mxResources.get("gradient"),mxConstants.STYLE_GRADIENTCOLOR,"default",function(D){d.style.display=null==D||D==mxConstants.NONE?"none":""},function(D){f.updateCellStyles({gradientColor:D},f.getSelectionCells())},f.getDefaultColor(h.style,mxConstants.STYLE_GRADIENTCOLOR,f.shapeForegroundColor,f.shapeBackgroundColor));m.style.fontWeight="bold";var q="image"==h.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),q,"default",null,mxUtils.bind(this,function(D){f.setCellStyles(q,D,h.cells)}),f.getDefaultColor(h.style,q,f.shapeBackgroundColor,f.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(h.style,q,null);m.style.display=null!=u&&u!=mxConstants.NONE&&h.fill&&"image"!=h.style.shape?"":"none";var w=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_RADIAL];for(u=0;u<w.length;u++){var z=document.createElement("option");z.setAttribute("value",w[u]);mxUtils.write(z,mxResources.get(w[u]));d.appendChild(z)}m.appendChild(d);var C;b();h.gradient&&k.appendChild(g);var E=mxUtils.bind(this,function(){h=e.getSelectionState();var D=mxUtils.getValue(h.style,-mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(h.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=h.fill?"":"none";D=mxUtils.getValue(h.style,q,null);if(h.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=h.style.shape){if("1"==h.style.sketch){if(2!=C){g.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var J=document.createElement("option");J.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(J,-Editor.roughFillStyles[D].dispName);g.appendChild(J)}g.value="auto"}}else 1!=C&&b();g.value=G;g.value||(G="auto",g.value=G);g.style.display="1"==h.style.sketch||"none"==d.style.display?"":"none";m.style.display=!h.gradient||h.containsImage||"1"==h.style.sketch&&"solid"!=G&&"auto"!=G?"none":""}else g.style.display="none",m.style.display="none"});f.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){f.getModel().removeListener(E)}});E();mxEvent.addListener(d,"change",function(D){f.setCellStyles(mxConstants.STYLE_GRADIENT_DIRECTION,+mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(h.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=h.fill?"":"none";D=mxUtils.getValue(h.style,q,null);if(h.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=h.style.shape){if("1"==h.style.sketch){if(2!=C){g.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var I=document.createElement("option");I.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(I,+Editor.roughFillStyles[D].dispName);g.appendChild(I)}g.value="auto"}}else 1!=C&&b();g.value=G;g.value||(G="auto",g.value=G);g.style.display="1"==h.style.sketch||"none"==d.style.display?"":"none";m.style.display=!h.gradient||h.containsImage||"1"==h.style.sketch&&"solid"!=G&&"auto"!=G?"none":""}else g.style.display="none",m.style.display="none"});f.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){f.getModel().removeListener(E)}});E();mxEvent.addListener(d,"change",function(D){f.setCellStyles(mxConstants.STYLE_GRADIENT_DIRECTION,d.value,h.cells);e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_GRADIENT_DIRECTION],"values",[d.value],"cells",h.cells));mxEvent.consume(D)});mxEvent.addListener(g,"change",function(D){f.setCellStyles("fillStyle",g.value,h.cells);e.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[g.value],"cells",h.cells));mxEvent.consume(D)});a.appendChild(k);a.appendChild(m);k=this.getCustomColors();for(u=0;u<k.length;u++)a.appendChild(this.createCellColorOption(k[u].title,-k[u].key,k[u].defaultValue));return a};StyleFormatPanel.prototype.getCustomColors=function(){var a=[];this.editorUi.getSelectionState().swimlane&&a.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return a};-StyleFormatPanel.prototype.addStroke=function(a){function b(H){var ea=f.fromUnit(parseFloat(J.value));ea=Math.min(999,Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));J.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}function e(H){var ea=f.fromUnit(parseFloat(L.value));ea=Math.min(999,+k[u].key,k[u].defaultValue));k=mxUtils.bind(this,function(D,G){if(null!=D){D=D.split(",");for(var I=0;I<D.length;I++){var L=D[I].replace(/([a-z])([A-Z])/g,"$1 $2");a.appendChild(this.createCellColorOption(L.charAt(0).toUpperCase()+L.substring(1),D[I],"default",null,null,G))}}});k(h.style.fillColorStyles,f.shapeBackgroundColor);k(h.style.strokeColorStyles,f.shapeForegroundColor);return a};+StyleFormatPanel.prototype.getCustomColors=function(){var a=[];this.editorUi.getSelectionState().swimlane&&a.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return a};+StyleFormatPanel.prototype.addStroke=function(a){function b(H){var ea=f.fromUnit(parseFloat(I.value));ea=Math.min(999,Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));I.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}function e(H){var ea=f.fromUnit(parseFloat(L.value));ea=Math.min(999,Math.max(0,isNaN(ea)?1:ea));ea!=mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ea,g.cells),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ea],"cells",g.cells)));L.value=f.inUnit(ea)+" "+f.getUnit();mxEvent.consume(H)}var f=this,h=this.editorUi,d=h.editor.graph,g=h.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="4px";a.style.whiteSpace="normal";var m=document.createElement("div");m.style.fontWeight="bold";g.stroke||(m.style.display="none");var q=document.createElement("select");q.style.position="absolute";q.style.height="22px";q.style.marginTop="-3px";q.style.textAlign="center";q.style.boxSizing="border-box";q.style.left="90px";q.style.width="83px";q.style.borderWidth="1px";q.style.borderStyle="solid";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var w=document.createElement("option");w.setAttribute("value",k[u]);mxUtils.write(w,mxResources.get(k[u]));q.appendChild(w)}mxEvent.addListener(q,"change",function(H){d.getModel().beginUpdate();try{var ea=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ra=["0","0"];"rounded"==q.value?ra=["1","0"]:"curved"==q.value&&(ra=["0","1"]);for(var qa=0;qa<ea.length;qa++)d.setCellStyles(ea[qa],ra[qa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",ra,"cells",g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(H)});mxEvent.addListener(q,"click",function(H){mxEvent.consume(H)});var z="image"==g.style.shape?mxConstants.STYLE_IMAGE_BORDER:@@ -3203,9 +3204,9 @@ mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],"",null,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],"",null,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));Format.processMenuIcon(this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],"",null,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"))}));w=this.editorUi.toolbar.addMenuFunctionInContainer(D,null,mxResources.get("pattern"),!1,mxUtils.bind(this,function(H){E(H,33,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(H,33,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(H,33,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(H,33,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(H,33,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+-" (1)");E(H,33,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(H,33,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")}));k=C.cloneNode(!1);var J=document.createElement("input");J.style.position="absolute";J.style.textAlign="right";J.style.marginTop="2px";J.style.width="52px";J.style.height="22px";J.style.left="146px";J.style.borderWidth=-"1px";J.style.borderStyle="solid";J.style.boxSizing="border-box";J.setAttribute("title",mxResources.get("linewidth"));C.appendChild(J);var L=J.cloneNode(!0);D.appendChild(L);var Q=this.createStepper(J,b,this.getUnitStep(),9,null,null,this.isFloatUnit());Q.style.display=J.style.display;Q.style.top="2px";Q.style.left="198px";C.appendChild(Q);Q=this.createStepper(L,e,this.getUnitStep(),9,null,null,this.isFloatUnit());Q.style.display=L.style.display;L.style.position="absolute";Q.style.top="2px";Q.style.left=-"198px";D.appendChild(Q);mxEvent.addListener(J,"blur",b);mxEvent.addListener(J,"change",b);mxEvent.addListener(L,"blur",e);mxEvent.addListener(L,"change",e);var N=this.editorUi.toolbar.addMenuFunctionInContainer(k,null,mxResources.get("waypoints"),!1,mxUtils.bind(this,function(H){"arrow"!=g.style.shape&&(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,null,!0,Format.straightImage.src)).setAttribute("title",+" (1)");E(H,33,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(H,33,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")}));k=C.cloneNode(!1);var I=document.createElement("input");I.style.position="absolute";I.style.textAlign="right";I.style.marginTop="2px";I.style.width="52px";I.style.height="22px";I.style.left="146px";I.style.borderWidth=+"1px";I.style.borderStyle="solid";I.style.boxSizing="border-box";I.setAttribute("title",mxResources.get("linewidth"));C.appendChild(I);var L=I.cloneNode(!0);D.appendChild(L);var Q=this.createStepper(I,b,this.getUnitStep(),9,null,null,this.isFloatUnit());Q.style.display=I.style.display;Q.style.top="2px";Q.style.left="198px";C.appendChild(Q);Q=this.createStepper(L,e,this.getUnitStep(),9,null,null,this.isFloatUnit());Q.style.display=L.style.display;L.style.position="absolute";Q.style.top="2px";Q.style.left=+"198px";D.appendChild(Q);mxEvent.addListener(I,"blur",b);mxEvent.addListener(I,"change",b);mxEvent.addListener(L,"blur",e);mxEvent.addListener(L,"change",e);var N=this.editorUi.toolbar.addMenuFunctionInContainer(k,null,mxResources.get("waypoints"),!1,mxUtils.bind(this,function(H){"arrow"!=g.style.shape&&(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,null,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],null,null,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],null,null,!0,Format.horizontalElbowImage.src)).setAttribute("title",mxResources.get("vertical")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,null,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("horizontal")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],null,null,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),@@ -3242,7 +3243,7 @@ Q.appendChild(P);var T=document.createElement("div");T.style.width="30px";T.styl"0px";w.style.marginBottom="12px";w.style.marginTop="2px";w.style.fontWeight="normal";mxUtils.write(w,mxResources.get("lineend"));u.appendChild(w);var K=this.addUnitInput(u,this.getUnit(),98,52,function(){da.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),V=this.addUnitInput(u,this.getUnit(),30,52,function(){ba.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);Q=document.createElement("div");Q.style.height="8px";u.appendChild(Q);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("linestart"));u.appendChild(w);var Z=this.addUnitInput(u,this.getUnit(),98,52,function(){X.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),ia=this.addUnitInput(u,this.getUnit(),30,52,function(){O.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);this.addLabel(u,mxResources.get("spacing"),98,64).style.fontSize="11px";this.addLabel(u,mxResources.get("size"),30,64).style.fontSize="11px";mxUtils.br(u);m=m.cloneNode(!1);m.style.fontWeight="normal";m.style.position="relative";m.style.paddingLeft="16px";m.style.marginBottom="2px";m.style.marginTop="6px";m.style.borderWidth="0px";m.style.paddingBottom="18px";w=document.createElement("div");w.style.position="absolute";w.style.marginLeft="3px";w.style.marginBottom="12px";w.style.marginTop="1px";w.style.fontWeight="normal";w.style.width="120px";mxUtils.write(w,mxResources.get("perimeter"));m.appendChild(w);var oa=this.addUnitInput(m,this.getUnit(),30,52,function(){ca.apply(this,-arguments)},this.getUnitStep(),null,null,this.isFloatUnit());g.edges.length==g.cells.length?(a.appendChild(k),a.appendChild(u)):g.vertices.length==g.cells.length&&a.appendChild(m);var sa=mxUtils.bind(this,function(H,ea,ra){function qa(Pa,ma,Ba,Ca){Ba=Ba.getElementsByTagName("div")[0];null!=Ba&&h.updateCssForMarker(Ba,Ca,g.style.shape,Pa,ma);return Ba}g=h.getSelectionState();if(ra||document.activeElement!=J)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),J.value=isNaN(H)?"":+arguments)},this.getUnitStep(),null,null,this.isFloatUnit());g.edges.length==g.cells.length?(a.appendChild(k),a.appendChild(u)):g.vertices.length==g.cells.length&&a.appendChild(m);var sa=mxUtils.bind(this,function(H,ea,ra){function qa(Pa,ma,Ba,Ca){Ba=Ba.getElementsByTagName("div")[0];null!=Ba&&h.updateCssForMarker(Ba,Ca,g.style.shape,Pa,ma);return Ba}g=h.getSelectionState();if(ra||document.activeElement!=I)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),I.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=L)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),L.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();q.style.visibility="connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?"":"hidden";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?q.value="curved":"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,null)&&(q.value="rounded");P.style.borderBottom="1px solid currentcolor";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_DASHED,null)&&(H=mxUtils.getValue(g.style,mxConstants.STYLE_DASH_PATTERN,""),ea=String(H).split(" "),2<=ea.length?(H=parseInt(ea[0])+parseInt(ea[1]),ea=parseInt(ea[0])/H*100,P.style.borderBottom="1px solid transparent",P.style.backgroundImage="linear-gradient(to right, currentcolor "+ea+"%, transparent 0%)",P.style.backgroundPosition="bottom left",P.style.backgroundSize=H+"px 1px",P.style.backgroundRepeat="repeat-x"):P.style.borderBottom="1px dashed currentcolor");T.style.backgroundImage=P.style.backgroundImage;T.style.backgroundPosition=P.style.backgroundPosition;T.style.backgroundSize=P.style.backgroundSize;T.style.backgroundRepeat=P.style.backgroundRepeat;T.style.borderBottom=P.style.borderBottom;H=N.getElementsByTagName("div")[0];null!=H&&(H.style.backgroundPosition="center center",H.style.backgroundRepeat="no-repeat",H.className="geAdaptiveAsset",H.style.height="",ea=mxUtils.getValue(g.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(g.style,mxConstants.STYLE_NOEDGESTYLE,@@ -3252,7 +3253,7 @@ H.style.height="",H.style.backgroundImage="link"==g.style.shape?"url("+Format.limxConstants.STYLE_STARTARROW,null),mxUtils.getValue(g.style,"startFill","1"),U,"start");qa(mxUtils.getValue(g.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(g.style,"endFill","1"),Y,"end");mxUtils.setOpacity(N,"arrow"==g.style.shape?30:100);"connector"!=g.style.shape&&"flexArrow"!=g.style.shape&&"filledEdge"!=g.style.shape&&"wire"!=g.style.shape?(mxUtils.setOpacity(U,30),mxUtils.setOpacity(Y,30)):(mxUtils.setOpacity(U,100),mxUtils.setOpacity(Y,100));if(ra||document.activeElement!=ia)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)),ia.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=Z)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),Z.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=V)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),V.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=Z)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),K.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(ra||document.activeElement!=oa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_PERIMETER_SPACING,0)),oa.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit()});var O=this.installInputHandler(ia,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var X=this.installInputHandler(Z,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,-0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ba=this.installInputHandler(V,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var da=this.installInputHandler(K,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ca=this.installInputHandler(oa,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(J,sa);this.addKeyHandler(ia,+0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ba=this.installInputHandler(V,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var da=this.installInputHandler(K,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ca=this.installInputHandler(oa,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(I,sa);this.addKeyHandler(ia,sa);this.addKeyHandler(Z,sa);this.addKeyHandler(V,sa);this.addKeyHandler(K,sa);this.addKeyHandler(oa,sa);d.getModel().addListener(mxEvent.CHANGE,sa);this.listeners.push({destroy:function(){d.getModel().removeListener(sa)}});sa();return a};StyleFormatPanel.prototype.addLineJumps=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();if(Graph.lineJumpsEnabled&&0<f.edges.length&&0==f.vertices.length&&f.lineJumps){a.style.padding="2px 0px 24px 14px";var h=document.createElement("div");h.style.position="absolute";h.style.maxWidth="78px";h.style.overflow="hidden";h.style.textOverflow="ellipsis";mxUtils.write(h,mxResources.get("lineJumps"));a.appendChild(h);var d=document.createElement("select");d.style.position="absolute";d.style.height="21px";d.style.marginTop="-2px";d.style.boxSizing="border-box";d.style.textAlign="center";d.style.right="84px";d.style.width="64px";d.style.borderWidth="1px";d.style.borderStyle="solid";h=["none","arc","gap","sharp","line"];for(var g=0;g<h.length;g++){var m=document.createElement("option");m.setAttribute("value",h[g]);mxUtils.write(m,mxResources.get(h[g]));d.appendChild(m)}mxEvent.addListener(d,"change",function(w){e.getModel().beginUpdate();try{e.setCellStyles("jumpStyle",d.value,@@ -3282,10 +3283,10 @@ try{var oa=ia.insertVertex(ia.getDefaultParent(),null,"Shape",14,8,70,36,"strokeg(oa,K);if(!q){var O=new ChangePageSetup(b,null!=K?K.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=K&&null!=K.gridColor?K.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(Z,mxUtils.bind(this,function(ia){Z.style.opacity=.5}),null,mxUtils.bind(this,function(ia){Z.style.opacity=1})),mxEvent.addListener(Z,"mouseenter",mxUtils.bind(this,function(ia){var oa=e.getCellStyle;ia=e.background;var sa=e.view.gridColor;q||(e.background=null!=K?K.background:null,e.view.gridColor=null!=K&&null!=K.gridColor?K.gridColor:h);e.getCellStyle=function(O,X){X=null!=X?X:!0;var ba=mxUtils.clone(oa.apply(this,arguments)),da=e.stylesheet.getDefaultVertexStyle(),ca=P;f.isEdge(O)&&(da=e.stylesheet.getDefaultEdgeStyle(),ca=T);m(ba,d,da);k(Y,ba,O,K);k(ca,ba,O,K);X&&(ba=this.postProcessCellStyle(O,ba));return ba};e.refresh();e.getCellStyle=oa;e.background=ia;e.view.gridColor=sa;Z.style.border="2px solid blue";Z.style.margin="0px 1px"})),mxEvent.addListener(Z,"mouseleave",mxUtils.bind(this,function(ia){Z.style.border="1px solid gray";Z.style.margin="1px 2px";e.refresh()})),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[V]=Z));w.appendChild(Z)}),C=Math.ceil(Editor.styles.length/10);this.format.currentStylePage=null!=this.format.currentStylePage?this.format.currentStylePage:0;var E=[],D=mxUtils.bind(this,function(){0<E.length&&(E[this.format.currentStylePage].style.background="#84d7ff");for(var Y=10*this.format.currentStylePage;Y<Math.min(10*(this.format.currentStylePage+-1),Editor.styles.length);Y++){var P=Editor.styles[Y];z(P.commonStyle,P.vertexStyle,P.edgeStyle,P.graph,Y)}}),G=mxUtils.bind(this,function(Y){0<=Y&&Y<C&&(E[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=Y,D())});if(1<C){var J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.position="relative";J.style.textAlign="center";J.style.paddingTop="4px";J.style.width="210px";for(var L=0;L<C;L++){var Q=document.createElement("div");Q.style.display=-"inline-block";Q.style.width="6px";Q.style.height="6px";Q.style.marginLeft="4px";Q.style.marginRight="3px";Q.style.borderRadius="3px";Q.style.cursor="pointer";Q.style.background="transparent";Q.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Y,P){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){G(Y)}))})(L,Q);J.appendChild(Q);E.push(Q)}a.appendChild(J);D();if(15>C){L=function(Y){mxEvent.addListener(Y,"mouseenter",function(){Y.style.opacity="1"});mxEvent.addListener(Y,"mouseleave",+1),Editor.styles.length);Y++){var P=Editor.styles[Y];z(P.commonStyle,P.vertexStyle,P.edgeStyle,P.graph,Y)}}),G=mxUtils.bind(this,function(Y){0<=Y&&Y<C&&(E[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=Y,D())});if(1<C){var I=document.createElement("div");I.style.whiteSpace="nowrap";I.style.position="relative";I.style.textAlign="center";I.style.paddingTop="4px";I.style.width="210px";for(var L=0;L<C;L++){var Q=document.createElement("div");Q.style.display=+"inline-block";Q.style.width="6px";Q.style.height="6px";Q.style.marginLeft="4px";Q.style.marginRight="3px";Q.style.borderRadius="3px";Q.style.cursor="pointer";Q.style.background="transparent";Q.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Y,P){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){G(Y)}))})(L,Q);I.appendChild(Q);E.push(Q)}a.appendChild(I);D();if(15>C){L=function(Y){mxEvent.addListener(Y,"mouseenter",function(){Y.style.opacity="1"});mxEvent.addListener(Y,"mouseleave",function(){Y.style.opacity="0.5"})};var N=document.createElement("div");N.className="geAdaptiveAsset";N.style.position="absolute";N.style.left="0px";N.style.top="0px";N.style.bottom="0px";N.style.width="24px";N.style.height="24px";N.style.margin="0px";N.style.cursor="pointer";N.style.opacity="0.5";N.style.backgroundRepeat="no-repeat";N.style.backgroundPosition="center center";N.style.backgroundSize="24px 24px";N.style.backgroundImage="url("+Editor.previousImage+")";var U=N.cloneNode(!1);U.style.backgroundImage=-"url("+Editor.nextImage+")";U.style.left="";U.style.right="2px";J.appendChild(N);J.appendChild(U);mxEvent.addListener(N,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage-1,C))}));mxEvent.addListener(U,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,C))}));L(N);L(U)}}else D();return a};DiagramFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramFormatPanel,BaseFormatPanel);+"url("+Editor.nextImage+")";U.style.left="";U.style.right="2px";I.appendChild(N);I.appendChild(U);mxEvent.addListener(N,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage-1,C))}));mxEvent.addListener(U,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,C))}));L(N);L(U)}}else D();return a};DiagramFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramFormatPanel,BaseFormatPanel);DiagramFormatPanel.showPageView=!0;DiagramFormatPanel.prototype.showBackgroundImageOption=!0;DiagramFormatPanel.prototype.init=function(){var a=this.editorUi.editor.graph;this.container.appendChild(this.addView(this.createPanel()));a.isEnabled()&&(this.container.appendChild(this.addOptions(this.createPanel())),this.container.appendChild(this.addPaperSize(this.createPanel())),this.container.appendChild(this.addStyleOps(this.createPanel())))};DiagramFormatPanel.prototype.addView=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("view")));this.addGridOption(a);DiagramFormatPanel.showPageView&&a.appendChild(this.createOption(mxResources.get("pageView"),function(){return e.pageVisible},function(d){b.actions.get("pageView").funct()},{install:function(d){this.listener=function(){d(e.pageVisible)};b.addListener("pageViewChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}));if(e.isEnabled()){if(this.showBackgroundImageOption){var f=this.createOption(mxResources.get("background"),function(){return null!=e.backgroundImage},function(d){d||(d=new ChangePageSetup(b,null,null),d.ignoreColor=!0,e.model.execute(d))},{install:function(d){this.listener=function(){d(null!=e.backgroundImage)};b.addListener("backgroundImageChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}),h=f.getElementsByTagName("input")[0];null!=h&&(h.style.visibility=null!=e.backgroundImage?@@ -3303,20 +3304,20 @@ null,null,q,!0,m);q.style.padding="6px 0 0 0";q.appendChild(d);q.appendChild(g);DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("paperSize")));var f=PageSetupDialog.addPageFormatPanel(a,"formatpanel",e.pageFormat,function(d){if(null==e.pageFormat||e.pageFormat.width!=d.width||e.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,e.model.execute(d)});this.addKeyHandler(f.widthInput,function(){f.set(e.pageFormat)});this.addKeyHandler(f.heightInput,function(){f.set(e.pageFormat)});var h=function(){f.set(e.pageFormat)};b.addListener("pageFormatChanged",h);this.listeners.push({destroy:function(){b.removeListener(h)}});e.getModel().addListener(mxEvent.CHANGE,h);this.listeners.push({destroy:function(){e.getModel().removeListener(h)}});return a};DiagramFormatPanel.prototype.addStyleOps=function(a){this.addActions(a,["editData"]);this.addActions(a,["clearDefaultStyle"]);return a};DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function h(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function g(){mxActor.call(this)}function m(){mxCylinder.call(this)}function q(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function w(){mxShape.call(this)}-function z(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function J(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxActor.call(this)}function N(){mxActor.call(this)}function U(){mxActor.call(this)}function Y(){mxActor.call(this)}function P(){mxActor.call(this)}function T(c,l){this.canvas=c;this.canvas.setLineJoin("round");+function z(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function I(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxActor.call(this)}function N(){mxActor.call(this)}function U(){mxActor.call(this)}function Y(){mxActor.call(this)}function P(){mxActor.call(this)}function T(c,l){this.canvas=c;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.defaultVariation=l;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,T.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,T.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,T.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,T.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,T.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,T.prototype.arcTo)}function K(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function Z(){mxActor.call(this)}function ia(){mxActor.call(this)}function oa(){mxActor.call(this)}function sa(){mxRectangleShape.call(this)}function O(){mxRectangleShape.call(this)}function X(){mxCylinder.call(this)}function ba(){mxShape.call(this)}function da(){mxShape.call(this)}function ca(){mxEllipse.call(this)}function H(){mxShape.call(this)}function ea(){mxShape.call(this)}function ra(){mxRectangleShape.call(this)}function qa(){mxShape.call(this)}function Pa(){mxShape.call(this)}function ma(){mxShape.call(this)}function Ba(){mxShape.call(this)}function Ca(){mxShape.call(this)}function Ja(){mxCylinder.call(this)}function Ia(){mxCylinder.call(this)}function Da(){mxRectangleShape.call(this)}function Ga(){mxDoubleEllipse.call(this)}function ta(){mxDoubleEllipse.call(this)}function La(){mxArrowConnector.call(this);this.spacing=0}function Xa(){mxArrowConnector.call(this);this.spacing=0}function Ya(){mxActor.call(this)}function cb(){mxRectangleShape.call(this)}function fb(){mxActor.call(this)}function pb(){mxActor.call(this)}function gb(){mxActor.call(this)}function ab(){mxActor.call(this)}function ib(){mxActor.call(this)}function eb(){mxActor.call(this)}function p(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function M(){mxEllipse.call(this)}function R(){mxEllipse.call(this)}function W(){mxEllipse.call(this)}function ha(){mxRhombus.call(this)}function fa(){mxEllipse.call(this)}function ja(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function ya(){mxActor.call(this)}function Ha(){mxActor.call(this)}function wa(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=-!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Va(c,l,t,n,r,v,x,I,y,aa){x+=y;var S=n.clone();n.x-=r*(2*x+y);n.y-=v*(2*x+y);r*=x+y;v*=x+y;return function(){c.ellipse(S.x-r-x,S.y-v-x,2*x,2*x);aa?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,this.strokewidth),null==c?c=+!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Va(c,l,t,n,r,v,x,J,y,aa){x+=y;var S=n.clone();n.x-=r*(2*x+y);n.y-=v*(2*x+y);r*=x+y;v*=x+y;return function(){c.ellipse(S.x-r-x,S.y-v-x,2*x,2*x);aa?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,this.strokewidth),null==c?c=t:c.add(t))}this.bounds=null!=c?c:new mxRectangle};a.prototype.paintVertexShape=function(c,l,t,n,r){this.paintTableLine(c,this.line,0,0)};a.prototype.paintTableLine=function(c,l,t,n){if(null!=l){var r=null;c.begin();for(var v=0;v<l.length;v++){var x=l[v];null!=x&&(null==r?c.moveTo(x.x+t,x.y+n):null!=r&&c.lineTo(x.x+t,x.y+n));r=x}c.end();c.stroke()}};a.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var t=null,n=0;n<this.line.length&&!l;n++){var r=this.line[n];null!=r&&null!=t&&(l=mxUtils.rectangleIntersectsSegment(c,t,r));t=r}return l};mxCellRenderer.registerShape("tableLine",a);mxUtils.extend(b,mxSwimlane);b.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};b.prototype.paintVertexShape=function(c,l,t,n,r){var v=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):-!1,x=this.isHorizontal(),I=this.getTitleSize();0==I||this.outline?va.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));v||this.outline||!(x&&I<r||!x&&I<n)||this.paintForeground(c,l,t,n,r)};b.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.state){var v=this.flipH,x=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var I=v;v=x;x=I}c.rotate(-this.getShapeRotation(),+!1,x=this.isHorizontal(),J=this.getTitleSize();0==J||this.outline?va.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));v||this.outline||!(x&&J<r||!x&&J<n)||this.paintForeground(c,l,t,n,r)};b.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.state){var v=this.flipH,x=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var J=v;v=x;x=J}c.rotate(-this.getShapeRotation(),v,x,l+n/2,t+r/2);s=this.scale;l=this.bounds.x/s;t=this.bounds.y/s;n=this.bounds.width/s;r=this.bounds.height/s;this.paintTableForeground(c,l,t,n,r)}};b.prototype.paintTableForeground=function(c,l,t,n,r){n=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(r=0;r<n.length;r++)a.prototype.paintTableLine(c,n[r],l,t)};b.prototype.configurePointerEvents=function(c){0==this.getTitleSize()?c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",b);mxUtils.extend(e,b);e.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",e);mxUtils.extend(f,mxCylinder);f.prototype.size=20;f.prototype.darkOpacity=0;f.prototype.darkOpacity2=0;f.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,-parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(v,r);c.lineTo(0,r-v);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-v,0),c.lineTo(n,v),c.lineTo(v,-v),c.close(),c.fill()),0!=I&&(c.setFillAlpha(Math.abs(I)),c.setFillColor(0>I?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(v,v),c.lineTo(v,r),c.lineTo(0,r-v),c.close(),c.fill()),c.begin(),c.moveTo(v,r),c.lineTo(v,v),c.lineTo(0,0),c.moveTo(v,v),c.lineTo(n,v),c.end(),c.stroke())};f.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",+parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),J=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(v,r);c.lineTo(0,r-v);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-v,0),c.lineTo(n,v),c.lineTo(v,+v),c.close(),c.fill()),0!=J&&(c.setFillAlpha(Math.abs(J)),c.setFillColor(0>J?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(v,v),c.lineTo(v,r),c.lineTo(0,r-v),c.close(),c.fill()),c.begin(),c.moveTo(v,r),c.lineTo(v,v),c.lineTo(0,0),c.moveTo(v,v),c.lineTo(n,v),c.end(),c.stroke())};f.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",f);var Qa=Math.tan(mxUtils.toRadians(30)),Ka=(.5-Qa)/2;mxCellRenderer.registerShape("isoRectangle",g);mxUtils.extend(h,mxConnector);h.prototype.paintEdgeShape=function(c,l){var t=this.createMarker(c,l,!0),n=this.createMarker(c,l,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=t&&t();null!=n&&n()};mxCellRenderer.registerShape("wire",h);mxUtils.extend(d,mxCylinder);d.prototype.size=6;d.prototype.paintVertexShape=function(c,l,t,n,r){c.setFillColor(this.stroke);var v=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(n-v),t+.5*(r-v),v,v);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};mxCellRenderer.registerShape("waypoint",d);mxUtils.extend(g,mxActor);g.prototype.size=20;g.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/Qa);c.translate((n-l)/2,(r-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*Ka);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-Ka)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",g);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(n,r/(.5+Qa));v?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-Ka)*l),c.lineTo(l,.25*l),c.moveTo(.5*@@ -3328,14 +3329,14 @@ c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.bew);mxUtils.extend(z,mxShape);z.prototype.size=15;z.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),c.moveTo(0,v),c.arcTo(.5*n,v,0,0,1,.5*n,0),c.arcTo(.5*n,v,0,0,1,n,v),c.lineTo(n,r-v),c.arcTo(.5*n,v,0,0,1,.5*n,r),c.arcTo(.5*n,v,0,0,1,0,r-v),c.close(),c.fillAndStroke(),c.setShadow(!1),c.begin(),c.moveTo(n,v),c.arcTo(.5*n,v,0,0,1,.5*n,2*v),c.arcTo(.5*n,v,0,0,1,0,v),c.stroke())};mxCellRenderer.registerShape("cylinder2",z);mxUtils.extend(C,mxCylinder);C.prototype.size=15;C.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"lid",!0);c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),x?(c.moveTo(0,v),c.arcTo(.5*n,v,0,0,1,.5*n,0),c.arcTo(.5*n,v,0,0,1,n,v)):(c.moveTo(0,0),c.arcTo(.5*n,v,0,0,0,.5*n,v),c.arcTo(.5*n,v,0,0,0,n,0)),c.lineTo(n,r-v),c.arcTo(.5*n,v,0,0,1,.5*n,r),c.arcTo(.5*n,v,0,0,1,0,r-v),c.close(),c.fillAndStroke(),c.setShadow(!1),x&&(c.begin(),c.moveTo(n,v),c.arcTo(.5*n,v,0,0,1,.5*n,2*v),c.arcTo(.5*n,v,0,0,1,0,v),c.stroke()))};mxCellRenderer.registerShape("cylinder3",C);mxUtils.extend(E,mxActor);E.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n/2,.5*r,n,0);c.quadTo(.5*n,r/2,n,r);c.quadTo(n/2,.5*r,0,r);c.quadTo(.5*n,r/2,0,0);c.end()};mxCellRenderer.registerShape("switch",E);mxUtils.extend(D,-mxCylinder);D.prototype.tabWidth=60;D.prototype.tabHeight=20;D.prototype.tabPosition="right";D.prototype.arcSize=.1;D.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var v=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),x=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,-"absoluteArcSize",!1),y=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));I||(y*=Math.min(n,r));y=Math.min(y,.5*n,.5*(r-t));l=Math.max(l,y);l=Math.min(n-y,l);x||(y=0);c.begin();"left"==v?(c.moveTo(Math.max(y,0),t),c.lineTo(Math.max(y,0),0),c.lineTo(l,0),c.lineTo(l,t)):(c.moveTo(n-l,t),c.lineTo(n-l,0),c.lineTo(n-Math.max(y,0),0),c.lineTo(n-Math.max(y,0),t));x?(c.moveTo(0,y+t),c.arcTo(y,y,0,0,1,y,t),c.lineTo(n-y,t),c.arcTo(y,y,0,0,1,n,y+t),c.lineTo(n,r-y),c.arcTo(y,y,0,0,1,n-y,r),c.lineTo(y,+mxCylinder);D.prototype.tabWidth=60;D.prototype.tabHeight=20;D.prototype.tabPosition="right";D.prototype.arcSize=.1;D.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var v=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),x=mxUtils.getValue(this.style,"rounded",!1),J=mxUtils.getValue(this.style,+"absoluteArcSize",!1),y=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));J||(y*=Math.min(n,r));y=Math.min(y,.5*n,.5*(r-t));l=Math.max(l,y);l=Math.min(n-y,l);x||(y=0);c.begin();"left"==v?(c.moveTo(Math.max(y,0),t),c.lineTo(Math.max(y,0),0),c.lineTo(l,0),c.lineTo(l,t)):(c.moveTo(n-l,t),c.lineTo(n-l,0),c.lineTo(n-Math.max(y,0),0),c.lineTo(n-Math.max(y,0),t));x?(c.moveTo(0,y+t),c.arcTo(y,y,0,0,1,y,t),c.lineTo(n-y,t),c.arcTo(y,y,0,0,1,n,y+t),c.lineTo(n,r-y),c.arcTo(y,y,0,0,1,n-y,r),c.lineTo(y,r),c.arcTo(y,y,0,0,1,0,r-y)):(c.moveTo(0,t),c.lineTo(n,t),c.lineTo(n,r),c.lineTo(0,r));c.close();c.fillAndStroke();c.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(c.begin(),c.moveTo(n-30,t+20),c.lineTo(n-20,t+10),c.lineTo(n-10,t+20),c.close(),c.stroke())};mxCellRenderer.registerShape("folder",D);D.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),v=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));r||(v*=Math.min(c.width,c.height));v=Math.min(v,.5*c.width,.5*(c.height-l));n||(v=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(v,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,v,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};mxUtils.extend(G,mxCylinder);G.prototype.arcSize=.1;G.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);var v=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));t=mxUtils.getValue(this.style,"umlStateConnection",null);x||(l*=Math.min(n,r));l=Math.min(l,.5*n,.5*r);v||(l=0);v=0;null!=t&&(v=10);c.begin();c.moveTo(v,l);c.arcTo(l,l,0,0,1,v+l,0);c.lineTo(n-l,0);c.arcTo(l,l,0,0,1,n,l);c.lineTo(n,r-l);c.arcTo(l,l,0,0,1,n-l,r);c.lineTo(v+l,r);c.arcTo(l,l,0,0,1,v,r-l);c.close();c.fillAndStroke();c.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(c.roundrect(n-40,r-20,10,10,3,3),c.stroke(),c.roundrect(n-20,r-20,10,10,3,3),c.stroke(),c.begin(),c.moveTo(n-30,r-15),c.lineTo(n-20,r-15),-c.stroke());"connPointRefEntry"==t?(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke()):"connPointRefExit"==t&&(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke(),c.begin(),c.moveTo(5,.5*r-5),c.lineTo(15,.5*r+5),c.moveTo(15,.5*r-5),c.lineTo(5,.5*r+5),c.stroke())};G.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",G);mxUtils.extend(J,-mxActor);J.prototype.size=30;J.prototype.isRoundable=function(){return!0};J.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("card",J);mxUtils.extend(L,mxActor);L.prototype.size=+c.stroke());"connPointRefEntry"==t?(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke()):"connPointRefExit"==t&&(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke(),c.begin(),c.moveTo(5,.5*r-5),c.lineTo(15,.5*r+5),c.moveTo(15,.5*r-5),c.lineTo(5,.5*r+5),c.stroke())};G.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",G);mxUtils.extend(I,+mxActor);I.prototype.size=30;I.prototype.isRoundable=function(){return!0};I.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("card",I);mxUtils.extend(L,mxActor);L.prototype.size=.4;L.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,l/2);c.quadTo(n/4,1.4*l,n/2,l/2);c.quadTo(3*n/4,l*(1-1.4),n,l/2);c.lineTo(n,r-l/2);c.quadTo(3*n/4,r-1.4*l,n/2,r-l/2);c.quadTo(n/4,r-l*(1-1.4),0,r-l/2);c.lineTo(0,l/2);c.close();c.end()};L.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",this.size),t=c.width,n=c.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return l*=n,new mxRectangle(c.x,c.y+l,t,n-2*l);l*=t;return new mxRectangle(c.x+l,c.y,t-2*l,n)}return c};mxCellRenderer.registerShape("tape",L);mxUtils.extend(Q,mxActor);Q.prototype.size=.3;Q.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*c.height):null};Q.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,0);c.lineTo(n,0);c.lineTo(n,r-l/2);c.quadTo(3*n/4,r-1.4*l,n/2,r-l/2);c.quadTo(n/4,r-l*(1-1.4),0,r-l/2);c.lineTo(0,l/2);c.close();c.end()};mxCellRenderer.registerShape("document",Q);var Ua=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(c,l,t,n){var r=mxUtils.getValue(this.style,"size");return null!=r?n*Math.max(0,Math.min(1,r)):Ua.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=@@ -3348,7 +3349,7 @@ l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.minY.prototype.size=.5;Y.prototype.redrawPath=function(c,l,t,n,r){c.setFillColor(null);l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(n,0),new mxPoint(l,0),new mxPoint(l,r/2),new mxPoint(0,r/2),new mxPoint(l,r/2),new mxPoint(l,r),new mxPoint(n,r)],this.isRounded,t,!1);c.end()};mxCellRenderer.registerShape("curlyBracket",Y);mxUtils.extend(P,mxActor);P.prototype.redrawPath=function(c,l,t,n,r){c.setStrokeWidth(1);c.setFillColor(this.stroke);l=n/5;c.rect(0,0,l,r);c.fillAndStroke();c.rect(2*l,0,l,r);c.fillAndStroke();c.rect(4*l,0,l,r);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",P);T.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};T.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};T.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};T.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};T.prototype.arcTo=function(c,l,t,n,r,v,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=x};T.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var t=function(S){return"number"===-typeof S?S?0>S?-1:1:S===S?0:NaN:NaN},n=Math.abs(c-this.lastX),r=Math.abs(l-this.lastY),v=Math.sqrt(n*n+r*r);if(2>v){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var x=Math.round(v/10),I=this.defaultVariation;5>x&&(x=5,I/=3);var y=t(c-this.lastX)*n/x;t=t(l-this.lastY)*r/x;n/=v;r/=v;for(v=0;v<x;v++){var aa=(Math.random()-.5)*I;this.originalLineTo.call(this.canvas,y*v+this.lastX-aa*r,t*v+this.lastY-aa*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,+typeof S?S?0>S?-1:1:S===S?0:NaN:NaN},n=Math.abs(c-this.lastX),r=Math.abs(l-this.lastY),v=Math.sqrt(n*n+r*r);if(2>v){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var x=Math.round(v/10),J=this.defaultVariation;5>x&&(x=5,J/=3);var y=t(c-this.lastX)*n/x;t=t(l-this.lastY)*r/x;n/=v;r/=v;for(v=0;v<x;v++){var aa=(Math.random()-.5)*J;this.originalLineTo.call(this.canvas,y*v+this.lastX-aa*r,t*v+this.lastY-aa*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l};T.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var Wa=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){Wa.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var mb=mxShape.prototype.afterPaint;mxShape.prototype.afterPaint=function(c){mb.apply(this,arguments);null!=c.handJiggle&&(c.handJiggle.destroy(),delete c.handJiggle)};mxShape.prototype.createComicCanvas=function(c){return new T(c,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(c){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(c)};var ub=mxRectangleShape.prototype.isHtmlAllowed;mxRectangleShape.prototype.isHtmlAllowed=function(){return!this.outline&&(null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")&&"0"==mxUtils.getValue(this.style,"sketch","1"==urlParams.rough?"1":"0"))&&ub.apply(this,arguments)};var vb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(c,l,t,n,r){if(null==c.handJiggle||c.handJiggle.constructor!=T)vb.apply(this,arguments);else{var v=!0;null!=this.style&&(v="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(v||null!=@@ -3358,14 +3359,14 @@ v,t),c.lineTo(l+n-v,t),c.quadTo(l+n,t,l+n,t+v),c.lineTo(l+n,t+r-v),c.quadTo(l+n,function(c,l,t,n,r){var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),x=parseFloat(mxUtils.getValue(this.style,"size",this.size));x=v?Math.max(0,Math.min(n,x)):n*Math.max(0,Math.min(1,x));this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,x=Math.max(x,Math.min(n*v,r*v)));x=Math.round(x);c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.moveTo(l+n-x,t);c.lineTo(l+n-x,t+r);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",K);mxCellRenderer.registerShape("process2",K);mxUtils.extend(V,mxRectangleShape);V.prototype.paintBackground=function(c,l,t,n,r){c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};V.prototype.paintForeground=function(c,l,t,n,r){};mxCellRenderer.registerShape("transparent",V);mxUtils.extend(Z,mxHexagon);Z.prototype.size=30;Z.prototype.position=.5;Z.prototype.position2=.5;Z.prototype.base=20;Z.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};Z.prototype.isRoundable=function(){return!0};Z.prototype.redrawPath=function(c,l,t,n,r){l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var v=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),x=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",-this.position2)))),I=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-t),new mxPoint(Math.min(n,v+I),r-t),new mxPoint(x,r),new mxPoint(Math.max(0,v),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",Z);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(c,l,t,+this.position2)))),J=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-t),new mxPoint(Math.min(n,v+J),r-t),new mxPoint(x,r),new mxPoint(Math.max(0,v),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",Z);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(0,r),new mxPoint(l,r/2)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("step",ia);mxUtils.extend(oa,mxHexagon);oa.prototype.size=.25;oa.prototype.fixedSize=20;oa.prototype.isRoundable=function(){return!0};oa.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.5*r),new mxPoint(n-l,r),new mxPoint(l,r),new mxPoint(0,.5*r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("hexagon",oa);mxUtils.extend(sa,mxRectangleShape);sa.prototype.isHtmlAllowed=function(){return!1};sa.prototype.paintForeground=function(c,l,t,n,r){var v=Math.min(n/5,r/5)+1;c.begin();c.moveTo(l+n/2,t+v);c.lineTo(l+n/2,t+r-v);c.moveTo(l+v,t+r/2);c.lineTo(l+n-v,t+r/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",sa);var jb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};mxRhombus.prototype.paintVertexShape=function(c,l,t,n,r){jb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var v=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&(c.setShadow(!1),jb.apply(this,[c,l,t,n,r]))}};mxUtils.extend(O,mxRectangleShape);O.prototype.isHtmlAllowed=function(){return!1};O.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};O.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var v=-Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);v=0;do{var x=mxCellRenderer.defaultShapes[this.style["symbol"+v]];if(null!=x){var I=this.style["symbol"+v+"Align"],y=this.style["symbol"+v+"VerticalAlign"],aa=this.style["symbol"+v+"Width"],S=this.style["symbol"+v+"Height"],Fa=this.style["symbol"+v+"Spacing"]||0,Ra=this.style["symbol"+v+"VSpacing"]||Fa,-Oa=this.style["symbol"+v+"ArcSpacing"];null!=Oa&&(Oa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Fa+=Oa,Ra+=Oa);Oa=l;var ka=t;Oa=I==mxConstants.ALIGN_CENTER?Oa+(n-aa)/2:I==mxConstants.ALIGN_RIGHT?Oa+(n-aa-Fa):Oa+Fa;ka=y==mxConstants.ALIGN_MIDDLE?ka+(r-S)/2:y==mxConstants.ALIGN_BOTTOM?ka+(r-S-Ra):ka+Ra;c.save();I=new x;I.style=this.style;x.prototype.paintVertexShape.call(I,c,Oa,ka,aa,S);c.restore()}v++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",+Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);v=0;do{var x=mxCellRenderer.defaultShapes[this.style["symbol"+v]];if(null!=x){var J=this.style["symbol"+v+"Align"],y=this.style["symbol"+v+"VerticalAlign"],aa=this.style["symbol"+v+"Width"],S=this.style["symbol"+v+"Height"],Fa=this.style["symbol"+v+"Spacing"]||0,Ra=this.style["symbol"+v+"VSpacing"]||Fa,+Oa=this.style["symbol"+v+"ArcSpacing"];null!=Oa&&(Oa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Fa+=Oa,Ra+=Oa);Oa=l;var ka=t;Oa=J==mxConstants.ALIGN_CENTER?Oa+(n-aa)/2:J==mxConstants.ALIGN_RIGHT?Oa+(n-aa-Fa):Oa+Fa;ka=y==mxConstants.ALIGN_MIDDLE?ka+(r-S)/2:y==mxConstants.ALIGN_BOTTOM?ka+(r-S-Ra):ka+Ra;c.save();J=new x;J.style=this.style;x.prototype.paintVertexShape.call(J,c,Oa,ka,aa,S);c.restore()}v++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",O);mxUtils.extend(X,mxCylinder);X.prototype.redrawPath=function(c,l,t,n,r,v){v?(c.moveTo(0,0),c.lineTo(n/2,r/2),c.lineTo(n,0),c.end()):(c.moveTo(0,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(0,r),c.close())};mxCellRenderer.registerShape("message",X);mxUtils.extend(ba,mxShape);ba.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.ellipse(n/4,0,n/2,r/4);c.fillAndStroke();c.begin();c.moveTo(n/2,r/4);c.lineTo(n/2,2*r/3);c.moveTo(n/2,r/3);c.lineTo(0,r/3);c.moveTo(n/2,r/3);c.lineTo(n,r/3);c.moveTo(n/2,2*r/3);c.lineTo(0,r);c.moveTo(n/2,2*r/3);c.lineTo(n,r);c.end();c.stroke()};mxCellRenderer.registerShape("umlActor",ba);mxUtils.extend(da,mxShape);da.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};da.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,r/4);c.lineTo(0,3*r/4);c.end();c.stroke();c.begin();c.moveTo(0,r/2);c.lineTo(n/6,r/2);c.end();c.stroke();c.ellipse(n/6,0,5*n/6,r);c.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",da);mxUtils.extend(ca,mxEllipse);ca.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/8,t+r);c.lineTo(l+7*n/8,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("umlEntity",ca);mxUtils.extend(H,mxShape);H.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(n,0);c.lineTo(0,r);c.moveTo(0,0);c.lineTo(n,r);c.end();c.stroke()};mxCellRenderer.registerShape("umlDestroy",H);mxUtils.extend(ea,mxShape);@@ -3373,28 +3374,28 @@ ea.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/40;ra.prototype.isHtmlAllowed=function(){return!1};ra.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};ra.prototype.paintBackground=function(c,l,t,n,r){var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"participant");null==x||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l,t,n,v):(x=this.state.view.graph.cellRenderer.getShape(x),null!=x&&x!=ra&&(x=new x,x.apply(this.state),c.save(),x.paintVertexShape(c,l,t,n,v),c.restore()));v<r&&(c.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),c.begin(),c.moveTo(l+n/2,t+v),c.lineTo(l+n/2,t+r),c.end(),c.stroke())};ra.prototype.paintForeground=function(c,l,t,n,r){var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,c,l,t,n,Math.min(r,v))};mxCellRenderer.registerShape("umlLifeline",ra);mxUtils.extend(qa,mxShape);qa.prototype.width=60;qa.prototype.height=30;qa.prototype.corner=10;qa.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};qa.prototype.getLabelMargins=-function(c){return new mxRectangle(0,0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};qa.prototype.paintBackground=function(c,l,t,n,r){var v=this.corner,x=Math.min(n,Math.max(v,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),I=Math.min(r,Math.max(1.5*v,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),y=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,-mxConstants.NONE);y!=mxConstants.NONE&&(c.setFillColor(y),c.rect(l,t,n,r),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,t,n,r),c.setGradient(this.fill,this.gradient,l,t,n,r,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;c.begin();c.moveTo(l,t);c.lineTo(l+x,t);c.lineTo(l+x,t+Math.max(0,I-1.5*v));c.lineTo(l+Math.max(0,x-v),t+I);c.lineTo(l,t+I);c.close();c.fillAndStroke();this.configurePointerEvents(c);-c.begin();c.moveTo(l+x,t);c.lineTo(l+n,t);c.lineTo(l+n,t+r);c.lineTo(l,t+r);c.lineTo(l,t+I);c.stroke()};mxCellRenderer.registerShape("umlFrame",qa);mxPerimeter.CenterPerimeter=function(c,l,t,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,l,t,n){n=ra.prototype.size;null!=l&&(n=mxUtils.getValue(l.style,"size",n)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*+function(c){return new mxRectangle(0,0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};qa.prototype.paintBackground=function(c,l,t,n,r){var v=this.corner,x=Math.min(n,Math.max(v,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),J=Math.min(r,Math.max(1.5*v,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),y=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,+mxConstants.NONE);y!=mxConstants.NONE&&(c.setFillColor(y),c.rect(l,t,n,r),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,t,n,r),c.setGradient(this.fill,this.gradient,l,t,n,r,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;c.begin();c.moveTo(l,t);c.lineTo(l+x,t);c.lineTo(l+x,t+Math.max(0,J-1.5*v));c.lineTo(l+Math.max(0,x-v),t+J);c.lineTo(l,t+J);c.close();c.fillAndStroke();this.configurePointerEvents(c);+c.begin();c.moveTo(l+x,t);c.lineTo(l+n,t);c.lineTo(l+n,t+r);c.lineTo(l,t+r);c.lineTo(l,t+J);c.stroke()};mxCellRenderer.registerShape("umlFrame",qa);mxPerimeter.CenterPerimeter=function(c,l,t,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,l,t,n){n=ra.prototype.size;null!=l&&(n=mxUtils.getValue(l.style,"size",n)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;t.x<c.getCenterX()&&(l=-1*(l+1));return new mxPoint(c.getCenterX()+l,Math.min(c.y+c.height,Math.max(c.y+n,t.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(c,l,t,n){n=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(c,l,t,n){n=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;null!=l.style.backboneSize&&(n+=parseFloat(l.style.backboneSize)*l.view.scale/2-1);if("south"==l.style[mxConstants.STYLE_DIRECTION]||"north"==l.style[mxConstants.STYLE_DIRECTION])return t.x<c.getCenterX()&&(n=-1*(n+1)),new mxPoint(c.getCenterX()+n,Math.min(c.y+c.height,Math.max(c.y,t.y)));t.y<c.getCenterY()&&(n=-1*(n+1));return new mxPoint(Math.min(c.x+c.width,Math.max(c.x,t.x)),c.getCenterY()+n)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(c,l,t,n){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(c,new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(l.style,"size",Z.prototype.size))*l.view.scale))),l.style),l,t,n)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?N.prototype.fixedSize:N.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));-r&&(v*=l.view.scale);var x=c.x,I=c.y,y=c.width,aa=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+y,I+r),new mxPoint(x+y,I+aa),new mxPoint(x,I+aa-r),new mxPoint(x,I)]):(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+-y,I),new mxPoint(x+y-r,I+aa),new mxPoint(x,I+aa),new mxPoint(x+r,I)]);aa=c.getCenterX();c=c.getCenterY();c=new mxPoint(aa,c);n&&(t.x<x||t.x>x+y?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?U.prototype.fixedSize:U.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);-var x=c.x,I=c.y,y=c.width,aa=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+y-r,I),new mxPoint(x+y,I+aa),new mxPoint(x,I+aa),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+y,I),new mxPoint(x+y-r,I+-aa),new mxPoint(x+r,I+aa),new mxPoint(x,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I+r),new mxPoint(x+y,I),new mxPoint(x+y,I+aa),new mxPoint(x,I+aa-r),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+y,I+r),new mxPoint(x+y,I+aa-r),new mxPoint(x,I+aa),new mxPoint(x,I)]);aa=c.getCenterX();c=c.getCenterY();c=new mxPoint(aa,c);n&&(t.x<x||t.x>x+y?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,-c,t)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?ia.prototype.fixedSize:ia.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,y=c.width,aa=c.height,S=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?-(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+y-r,I),new mxPoint(x+y,c),new mxPoint(x+y-r,I+aa),new mxPoint(x,I+aa),new mxPoint(x+r,c),new mxPoint(x,I)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+y,I),new mxPoint(x+y-r,c),new mxPoint(x+y,I+aa),new mxPoint(x+r,I+aa),new mxPoint(x,c),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,-Math.min(1,v)),I=[new mxPoint(x,I+r),new mxPoint(S,I),new mxPoint(x+y,I+r),new mxPoint(x+y,I+aa),new mxPoint(S,I+aa-r),new mxPoint(x,I+aa),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(S,I+r),new mxPoint(x+y,I),new mxPoint(x+y,I+aa-r),new mxPoint(S,I+aa),new mxPoint(x,I+aa-r),new mxPoint(x,I)]);S=new mxPoint(S,c);n&&(t.x<x||t.x>x+y?S.y=t.y:S.x=t.x);return mxUtils.getPerimeterPoint(I,S,t)};mxStyleRegistry.putValue("stepPerimeter",-mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?oa.prototype.fixedSize:oa.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,y=c.width,aa=c.height,S=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,-Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),I=[new mxPoint(S,I),new mxPoint(x+y,I+r),new mxPoint(x+y,I+aa-r),new mxPoint(S,I+aa),new mxPoint(x,I+aa-r),new mxPoint(x,I+r),new mxPoint(S,I)]):(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+y-r,I),new mxPoint(x+y,c),new mxPoint(x+y-r,I+aa),new mxPoint(x+r,I+aa),new mxPoint(x,c),new mxPoint(x+r,I)]);S=new mxPoint(S,c);n&&(t.x<x||t.x>x+y?S.y=t.y:S.x=t.x);return mxUtils.getPerimeterPoint(I,S,t)};mxStyleRegistry.putValue("hexagonPerimeter2",+r&&(v*=l.view.scale);var x=c.x,J=c.y,y=c.width,aa=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+aa),new mxPoint(x,J+aa-r),new mxPoint(x,J)]):(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x++y,J),new mxPoint(x+y-r,J+aa),new mxPoint(x,J+aa),new mxPoint(x+r,J)]);aa=c.getCenterX();c=c.getCenterY();c=new mxPoint(aa,c);n&&(t.x<x||t.x>x+y?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(J,c,t)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?U.prototype.fixedSize:U.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);+var x=c.x,J=c.y,y=c.width,aa=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+y-r,J),new mxPoint(x+y,J+aa),new mxPoint(x,J+aa),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J),new mxPoint(x+y-r,J++aa),new mxPoint(x+r,J+aa),new mxPoint(x,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(x+y,J),new mxPoint(x+y,J+aa),new mxPoint(x,J+aa-r),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+aa-r),new mxPoint(x,J+aa),new mxPoint(x,J)]);aa=c.getCenterX();c=c.getCenterY();c=new mxPoint(aa,c);n&&(t.x<x||t.x>x+y?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(J,+c,t)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?ia.prototype.fixedSize:ia.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=c.y,y=c.width,aa=c.height,S=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?+(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y-r,J),new mxPoint(x+y,c),new mxPoint(x+y-r,J+aa),new mxPoint(x,J+aa),new mxPoint(x+r,c),new mxPoint(x,J)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+y,J),new mxPoint(x+y-r,c),new mxPoint(x+y,J+aa),new mxPoint(x+r,J+aa),new mxPoint(x,c),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,+Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(S,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+aa),new mxPoint(S,J+aa-r),new mxPoint(x,J+aa),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(S,J+r),new mxPoint(x+y,J),new mxPoint(x+y,J+aa-r),new mxPoint(S,J+aa),new mxPoint(x,J+aa-r),new mxPoint(x,J)]);S=new mxPoint(S,c);n&&(t.x<x||t.x>x+y?S.y=t.y:S.x=t.x);return mxUtils.getPerimeterPoint(J,S,t)};mxStyleRegistry.putValue("stepPerimeter",+mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?oa.prototype.fixedSize:oa.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=c.y,y=c.width,aa=c.height,S=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,+Math.min(aa,v)):aa*Math.max(0,Math.min(1,v)),J=[new mxPoint(S,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+aa-r),new mxPoint(S,J+aa),new mxPoint(x,J+aa-r),new mxPoint(x,J+r),new mxPoint(S,J)]):(r=r?Math.max(0,Math.min(y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+y-r,J),new mxPoint(x+y,c),new mxPoint(x+y-r,J+aa),new mxPoint(x+r,J+aa),new mxPoint(x,c),new mxPoint(x+r,J)]);S=new mxPoint(S,c);n&&(t.x<x||t.x>x+y?S.y=t.y:S.x=t.x);return mxUtils.getPerimeterPoint(J,S,t)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(Pa,mxShape);Pa.prototype.size=10;Pa.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size));c.translate(l,t);c.ellipse((n-v)/2,0,v,v);c.fillAndStroke();c.begin();c.moveTo(n/2,v);c.lineTo(n/2,r);c.end();c.stroke()};mxCellRenderer.registerShape("lollipop",Pa);mxUtils.extend(ma,mxShape);ma.prototype.size=10;ma.prototype.inset=2;ma.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size)),x=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.begin();c.moveTo(n/2,v+x);c.lineTo(n/2,r);c.end();c.stroke();c.begin();c.moveTo((n-v)/2-x,v/2);c.quadTo((n-v)/2-x,v+x,n/2,v+x);c.quadTo((n+v)/2+x,v+x,(n+v)/2+x,v/2);c.end();c.stroke()};mxCellRenderer.registerShape("requires",ma);mxUtils.extend(Ba,mxShape);Ba.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.end();c.stroke()};mxCellRenderer.registerShape("requiredInterface",Ba);mxUtils.extend(Ca,mxShape);Ca.prototype.inset=2;Ca.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.ellipse(0,v,n-2*v,r-2*v);c.fillAndStroke();c.begin();c.moveTo(n/2,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n/2,r);c.end();c.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",Ca);mxUtils.extend(Ja,mxCylinder);Ja.prototype.jettyWidth=-20;Ja.prototype.jettyHeight=10;Ja.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=Math.min(l,r-l),y=Math.min(I+2*l,r-l);v?(c.moveTo(t,I),c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,y),c.lineTo(x,y),c.lineTo(x,y+l),c.lineTo(t,y+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,y+l),c.lineTo(0,y+l),c.lineTo(0,-y),c.lineTo(t,y),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("module",Ja);mxUtils.extend(Ia,mxCylinder);Ia.prototype.jettyWidth=32;Ia.prototype.jettyHeight=12;Ia.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=.3*r-l/2,y=.7*r-l/2;v?(c.moveTo(t,I),c.lineTo(x,I),c.lineTo(x,-I+l),c.lineTo(t,I+l),c.moveTo(t,y),c.lineTo(x,y),c.lineTo(x,y+l),c.lineTo(t,y+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,y+l),c.lineTo(0,y+l),c.lineTo(0,y),c.lineTo(t,y),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("component",Ia);mxUtils.extend(Da,mxRectangleShape);Da.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,x=r/2,I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/-2;c.begin();this.addPoints(c,[new mxPoint(l+v,t),new mxPoint(l+n,t+x),new mxPoint(l+v,t+r),new mxPoint(l,t+x)],this.isRounded,I,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Da);mxUtils.extend(Ga,mxDoubleEllipse);Ga.prototype.outerStroke=!0;Ga.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.min(4,Math.min(n/5,r/5));0<n&&0<r&&(c.ellipse(l+v,t+v,n-2*v,r-2*v),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&+20;Ja.prototype.jettyHeight=10;Ja.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var J=Math.min(l,r-l),y=Math.min(J+2*l,r-l);v?(c.moveTo(t,J),c.lineTo(x,J),c.lineTo(x,J+l),c.lineTo(t,J+l),c.moveTo(t,y),c.lineTo(x,y),c.lineTo(x,y+l),c.lineTo(t,y+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,y+l),c.lineTo(0,y+l),c.lineTo(0,+y),c.lineTo(t,y),c.lineTo(t,J+l),c.lineTo(0,J+l),c.lineTo(0,J),c.lineTo(t,J),c.close());c.end()};mxCellRenderer.registerShape("module",Ja);mxUtils.extend(Ia,mxCylinder);Ia.prototype.jettyWidth=32;Ia.prototype.jettyHeight=12;Ia.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var J=.3*r-l/2,y=.7*r-l/2;v?(c.moveTo(t,J),c.lineTo(x,J),c.lineTo(x,+J+l),c.lineTo(t,J+l),c.moveTo(t,y),c.lineTo(x,y),c.lineTo(x,y+l),c.lineTo(t,y+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,y+l),c.lineTo(0,y+l),c.lineTo(0,y),c.lineTo(t,y),c.lineTo(t,J+l),c.lineTo(0,J+l),c.lineTo(0,J),c.lineTo(t,J),c.close());c.end()};mxCellRenderer.registerShape("component",Ia);mxUtils.extend(Da,mxRectangleShape);Da.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,x=r/2,J=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/+2;c.begin();this.addPoints(c,[new mxPoint(l+v,t),new mxPoint(l+n,t+x),new mxPoint(l+v,t+r),new mxPoint(l,t+x)],this.isRounded,J,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Da);mxUtils.extend(Ga,mxDoubleEllipse);Ga.prototype.outerStroke=!0;Ga.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.min(4,Math.min(n/5,r/5));0<n&&0<r&&(c.ellipse(l+v,t+v,n-2*v,r-2*v),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&(c.ellipse(l,t,n,r),c.stroke())};mxCellRenderer.registerShape("endState",Ga);mxUtils.extend(ta,Ga);ta.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",ta);mxUtils.extend(La,mxArrowConnector);La.prototype.defaultWidth=4;La.prototype.isOpenEnded=function(){return!0};La.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};La.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",La);mxUtils.extend(Xa,mxArrowConnector);Xa.prototype.defaultWidth=10;Xa.prototype.defaultArrowWidth=20;Xa.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Xa.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Xa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",Xa);mxUtils.extend(Ya,mxActor);Ya.prototype.size=30;Ya.prototype.isRoundable=function(){return!0};Ya.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r),new mxPoint(0,l),new mxPoint(n,0),new mxPoint(n,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("manualInput",@@ -3411,10 +3412,10 @@ l,t,n,r){l=Math.min(n/2,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size"l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-l),new mxPoint(n/2,r),new mxPoint(0,r-l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",F);mxUtils.extend(M,mxEllipse);M.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/2,t+r);c.lineTo(l+n,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("tapeData",M);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);c.end();c.stroke();c.begin();c.moveTo(l+n/2,t);c.lineTo(l+n/2,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("orEllipse",R);mxUtils.extend(W,mxEllipse);W.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l+.145*n,t+.145*r);c.lineTo(l+.855*n,t+.855*r);c.end();c.stroke();c.begin();c.moveTo(l+.855*n,t+.145*r);c.lineTo(l+.145*n,t+.855*r);c.end();c.stroke()};mxCellRenderer.registerShape("sumEllipse",W);mxUtils.extend(ha,mxRhombus);ha.prototype.paintVertexShape=function(c,l,t,n,r){mxRhombus.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);-c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",ha);mxUtils.extend(fa,mxEllipse);fa.prototype.paintVertexShape=function(c,l,t,n,r){c.begin();c.moveTo(l,t);c.lineTo(l+n,t);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke();c.begin();c.moveTo(l,t+r);c.lineTo(l+n,t+r);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",fa);mxUtils.extend(ja,mxEllipse);ja.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,x=10+2*v,I=t+r-x/2;c.begin();-c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,I);c.lineTo(l+v+x,I-x/2);c.moveTo(l+v,I);c.lineTo(l+v+x,I+x/2);c.moveTo(l+v,I);c.lineTo(l+n-v,I);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-v,I);c.lineTo(l+n-x-v,I-x/2);c.moveTo(l+n-v,I);c.lineTo(l+n-x-v,I+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ja);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=function(c,l,t,n,r){this.outline||c.setStrokeColor(null);if(null!=this.style){var v=c.pointerEvents,-x=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||x||(c.pointerEvents=!1);var I="1"==mxUtils.getValue(this.style,"top","1"),y="1"==mxUtils.getValue(this.style,"left","1"),aa="1"==mxUtils.getValue(this.style,"right","1"),S="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||I||aa||S||y?(c.rect(l,t,n,r),c.fill(),c.pointerEvents=v,c.setStrokeColor(this.stroke),c.setLineCap("square"),c.begin(),c.moveTo(l,-t),this.outline||I?c.lineTo(l+n,t):c.moveTo(l+n,t),this.outline||aa?c.lineTo(l+n,t+r):c.moveTo(l+n,t+r),this.outline||S?c.lineTo(l,t+r):c.moveTo(l,t+r),(this.outline||y)&&c.lineTo(l,t),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",va);mxUtils.extend(Ma,mxEllipse);Ma.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==mxUtils.getValue(this.style,+c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",ha);mxUtils.extend(fa,mxEllipse);fa.prototype.paintVertexShape=function(c,l,t,n,r){c.begin();c.moveTo(l,t);c.lineTo(l+n,t);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke();c.begin();c.moveTo(l,t+r);c.lineTo(l+n,t+r);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",fa);mxUtils.extend(ja,mxEllipse);ja.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,x=10+2*v,J=t+r-x/2;c.begin();+c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,J);c.lineTo(l+v+x,J-x/2);c.moveTo(l+v,J);c.lineTo(l+v+x,J+x/2);c.moveTo(l+v,J);c.lineTo(l+n-v,J);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-v,J);c.lineTo(l+n-x-v,J-x/2);c.moveTo(l+n-v,J);c.lineTo(l+n-x-v,J+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ja);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=function(c,l,t,n,r){this.outline||c.setStrokeColor(null);if(null!=this.style){var v=c.pointerEvents,+x=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||x||(c.pointerEvents=!1);var J="1"==mxUtils.getValue(this.style,"top","1"),y="1"==mxUtils.getValue(this.style,"left","1"),aa="1"==mxUtils.getValue(this.style,"right","1"),S="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||J||aa||S||y?(c.rect(l,t,n,r),c.fill(),c.pointerEvents=v,c.setStrokeColor(this.stroke),c.setLineCap("square"),c.begin(),c.moveTo(l,+t),this.outline||J?c.lineTo(l+n,t):c.moveTo(l+n,t),this.outline||aa?c.lineTo(l+n,t+r):c.moveTo(l+n,t+r),this.outline||S?c.lineTo(l,t+r):c.moveTo(l,t+r),(this.outline||y)&&c.lineTo(l,t),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",va);mxUtils.extend(Ma,mxEllipse);Ma.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==mxUtils.getValue(this.style,"line")?(c.moveTo(l+n/2,t),c.lineTo(l+n/2,t+r)):(c.moveTo(l,t+r/2),c.lineTo(l+n,t+r/2));c.end();c.stroke()};mxCellRenderer.registerShape("lineEllipse",Ma);mxUtils.extend(Na,mxActor);Na.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/2);c.moveTo(0,0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(0,r);c.close();c.end()};mxCellRenderer.registerShape("delay",Na);mxUtils.extend(ya,mxActor);ya.prototype.size=.2;ya.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,n);var v=Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(r-v)/2;t=l+v;var x=(n-v)/2;v=x+v;c.moveTo(0,l);c.lineTo(x,l);c.lineTo(x,0);c.lineTo(v,0);c.lineTo(v,l);c.lineTo(n,l);c.lineTo(n,t);c.lineTo(v,t);c.lineTo(v,r);c.lineTo(x,r);c.lineTo(x,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("cross",ya);mxUtils.extend(Ha,mxActor);Ha.prototype.size=.25;Ha.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/2);t=Math.min(n-l,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*n);c.moveTo(0,r/2);c.lineTo(t,0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(t,r);c.close();c.end()};mxCellRenderer.registerShape("display",Ha);mxUtils.extend(wa,mxActor);wa.prototype.cst={RECT2:"mxgraph.basic.rect"};wa.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",@@ -3422,12 +3423,12 @@ dispName:"Fold"}]},{name:"size",dispName:"Corner Size",type:"float",defVal:10},{type:"color",defVal:"none"},{name:"gradientDirection2",dispName:"Inside Gradient Direction",type:"enum",defVal:"south",enumList:[{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"north",dispName:"North"},{val:"east",dispName:"East"}]},{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"right",dispName:"Right",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left ",type:"bool",defVal:!0},{name:"topLeftStyle",dispName:"Top Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"topRightStyle",dispName:"Top Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomRightStyle",dispName:"Bottom Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomLeftStyle",dispName:"Bottom Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},-{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];wa.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};wa.prototype.strictDrawShape=function(c,l,t,n,r,v){var x=v&&v.rectStyle?v.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),I=v&&v.absoluteCornerSize?v.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),y=v&&v.size?v.size:Math.max(0,Math.min(n,+{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];wa.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};wa.prototype.strictDrawShape=function(c,l,t,n,r,v){var x=v&&v.rectStyle?v.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),J=v&&v.absoluteCornerSize?v.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),y=v&&v.size?v.size:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),aa=v&&v.rectOutline?v.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),S=v&&v.indent?v.indent:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),Fa=v&&v.dashed?v.dashed:mxUtils.getValue(this.style,"dashed",!1),Ra=v&&v.dashPattern?v.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),Oa=v&&v.relIndent?v.relIndent:Math.max(0,Math.min(50,S)),ka=v&&v.top?v.top:mxUtils.getValue(this.style,"top",!0),pa=v&&v.right?v.right:mxUtils.getValue(this.style,"right",!0),na=v&&v.bottom?v.bottom:mxUtils.getValue(this.style,"bottom",!0),la=v&&v.left?v.left:mxUtils.getValue(this.style,"left",!0),xa=v&&v.topLeftStyle?v.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),za=v&&v.topRightStyle?v.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),Aa=v&&v.bottomRightStyle?v.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),Ea=v&&v.bottomLeftStyle?v.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),Bb=v&&v.fillColor?v.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");v&&v.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var Cb=v&&v.strokeWidth?v.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),zb=v&&v.fillColor2?v.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),Ab=v&&v.gradientColor2?v.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Db=v&&v.gradientDirection2?-v.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Eb=v&&v.opacity?v.opacity:mxUtils.getValue(this.style,"opacity","100"),Fb=Math.max(0,Math.min(50,y));v=wa.prototype;c.setDashed(Fa);Ra&&""!=Ra&&c.setDashPattern(Ra);c.setStrokeWidth(Cb);y=Math.min(.5*r,.5*n,y);I||(y=Fb*Math.min(n,r)/100);y=Math.min(y,.5*Math.min(n,r));I||(S=Math.min(Oa*Math.min(n,r)/100));S=Math.min(S,.5*Math.min(n,r)-y);(ka||pa||na||la)&&"frame"!=aa&&(c.begin(),ka?v.moveNW(c,l,t,n,r,x,xa,y,la):c.moveTo(0,-0),ka&&v.paintNW(c,l,t,n,r,x,xa,y,la),v.paintTop(c,l,t,n,r,x,za,y,pa),pa&&v.paintNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),na&&v.paintSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),la&&v.paintSW(c,l,t,n,r,x,Ea,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Fa=I=Eb,"none"==zb&&(I=0),"none"==Ab&&(Fa=0),c.setGradient(zb,Ab,0,0,n,r,Db,I,Fa),c.begin(),ka?v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la):c.moveTo(S,0),v.paintLeftInner(c,l,+v.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Eb=v&&v.opacity?v.opacity:mxUtils.getValue(this.style,"opacity","100"),Fb=Math.max(0,Math.min(50,y));v=wa.prototype;c.setDashed(Fa);Ra&&""!=Ra&&c.setDashPattern(Ra);c.setStrokeWidth(Cb);y=Math.min(.5*r,.5*n,y);J||(y=Fb*Math.min(n,r)/100);y=Math.min(y,.5*Math.min(n,r));J||(S=Math.min(Oa*Math.min(n,r)/100));S=Math.min(S,.5*Math.min(n,r)-y);(ka||pa||na||la)&&"frame"!=aa&&(c.begin(),ka?v.moveNW(c,l,t,n,r,x,xa,y,la):c.moveTo(0,+0),ka&&v.paintNW(c,l,t,n,r,x,xa,y,la),v.paintTop(c,l,t,n,r,x,za,y,pa),pa&&v.paintNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),na&&v.paintSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),la&&v.paintSW(c,l,t,n,r,x,Ea,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Fa=J=Eb,"none"==zb&&(J=0),"none"==Ab&&(Fa=0),c.setGradient(zb,Ab,0,0,n,r,Db,J,Fa),c.begin(),ka?v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la):c.moveTo(S,0),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la),la&&na&&v.paintSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na),na&&pa&&v.paintSEInner(c,l,t,n,r,x,Aa,y,S),v.paintRightInner(c,l,t,n,r,x,za,y,S,ka,pa),pa&&ka&&v.paintNEInner(c,l,t,n,r,x,za,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,la,ka),ka&&la&&v.paintNWInner(c,l,t,n,r,x,xa,y,S),c.fill(),"none"==Bb&&(c.begin(),v.paintFolds(c,l,t,n,r,x,xa,za,Aa,Ea,y,ka,pa,na,la),c.stroke()));ka||pa||na||!la?ka||pa||!na||la?!ka&&!pa&&na&&la?"frame"!=aa?(c.begin(),v.moveSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),v.paintSW(c,l,t,n,r,x,Ea,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==aa&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),v.paintSW(c,l,t,n,r,x,Ea,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na),c.close(),c.fillAndStroke()):ka||!pa||na||la?!ka&&pa&&!na&&la?"frame"!=aa?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==aa&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la)),c.stroke(),c.begin(),v.moveNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),"double"==aa&&(v.moveSEInner(c,l,t,n,r,x,Aa,y,S,na),v.paintRightInner(c,@@ -3451,51 +3452,51 @@ Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),v.paintSW(c,l,t,n,r,x,Ea,y,na),v.pai"frame"!=aa?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,la),v.paintTop(c,l,t,n,r,x,za,y,pa),"double"==aa&&(v.moveNEInner(c,l,t,n,r,x,za,y,S,pa),v.paintTopInner(c,l,t,n,r,x,xa,y,S,la,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,la),v.paintTop(c,l,t,n,r,x,za,y,pa),v.lineNEInner(c,l,t,n,r,x,za,y,S,pa),v.paintTopInner(c,l,t,n,r,x,xa,y,S,la,ka),c.close(),c.fillAndStroke()):"frame"!=aa?(c.begin(),v.moveNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),"double"==aa&&(v.moveSEInner(c,l,t,n,r,x,Aa,y,S,na),v.paintRightInner(c,l,t,n,r,x,za,y,S,ka,pa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,za,y,ka),v.paintRight(c,l,t,n,r,x,Aa,y,na),v.lineSEInner(c,l,t,n,r,x,Aa,y,S,na),v.paintRightInner(c,l,t,n,r,x,za,y,S,ka,pa),c.close(),c.fillAndStroke()):"frame"!=aa?(c.begin(),v.moveSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),"double"==aa&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,la),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Aa,y,pa),v.paintBottom(c,l,t,n,r,x,Ea,y,la),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,la),v.paintBottomInner(c,l,t,n,r,x,Aa,y,S,pa,na),c.close(),c.fillAndStroke()):"frame"!=aa?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==aa&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,na),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,la),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,na,la),c.close(),c.fillAndStroke());-c.begin();v.paintFolds(c,l,t,n,r,x,xa,za,Aa,Ea,y,ka,pa,na,la);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(0,0):c.moveTo(0,I)};wa.prototype.moveNE=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(n,0):c.moveTo(n-I,0)};wa.prototype.moveSE=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(n,r):c.moveTo(n,r-I)};wa.prototype.moveSW=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==-x&&"square"==v||!y?c.moveTo(0,r):c.moveTo(I,r)};wa.prototype.paintNW=function(c,l,t,n,r,v,x,I,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,I,0)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(I,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(n,0):c.lineTo(n-I,0)};-wa.prototype.paintNE=function(c,l,t,n,r,v,x,I,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,n,I)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n,I);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(n,r):c.lineTo(n,r-I)};wa.prototype.paintLeft=function(c,l,t,n,r,v,x,-I,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(0,0):c.lineTo(0,I)};wa.prototype.paintSE=function(c,l,t,n,r,v,x,I,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,n-I,r)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-I,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,v,x,I,y){"square"==x||"default"==x&&"square"==-v||!y?c.lineTo(0,r):c.lineTo(I,r)};wa.prototype.paintSW=function(c,l,t,n,r,v,x,I,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,0,r-I)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(0,r-I);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,v,x,I,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*y,I-.5*y,0,0,0,y,.5*y+-I);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+y,I+y,0,0,1,y,y+I);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(y,.5*y+I);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(y+I,y+I),c.lineTo(y,y+I)};wa.prototype.paintTopInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(0,y):aa&&!S?c.lineTo(y,0):aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(I+.5*y,y):c.lineTo(I+y,y):c.lineTo(0,-y):c.lineTo(0,0)};wa.prototype.paintNEInner=function(c,l,t,n,r,v,x,I,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*y,I-.5*y,0,0,0,n-I-.5*y,y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+y,I+y,0,0,1,n-I-y,y);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-I-.5*y,y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-I-y,I+y),c.lineTo(n-I-y,y)};wa.prototype.paintRightInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(n-y,0):aa&&!S?c.lineTo(n,y):aa?"square"==-x||"default"==x&&"square"==v?c.lineTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,I+.5*y):c.lineTo(n-y,I+y):c.lineTo(n-y,0):c.lineTo(n,0)};wa.prototype.paintLeftInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(y,r):aa&&!S?c.lineTo(0,r-y):aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,r-I-.5*y):c.lineTo(y,r-I-y):c.lineTo(y,r):c.lineTo(0,-r)};wa.prototype.paintSEInner=function(c,l,t,n,r,v,x,I,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*y,I-.5*y,0,0,0,n-y,r-I-.5*y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+y,I+y,0,0,1,n-y,r-I-y);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-y,r-I-.5*y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-I-y,r-I-y),c.lineTo(n-y,r-I-y)};wa.prototype.paintBottomInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(n,r-y):aa&&!S?c.lineTo(n-y,r):"square"==-x||"default"==x&&"square"==v||!aa?c.lineTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-I-.5*y,r-y):c.lineTo(n-I-y,r-y):c.lineTo(n,r)};wa.prototype.paintSWInner=function(c,l,t,n,r,v,x,I,y,aa){if(!aa)c.lineTo(y,r);else if("square"==x||"default"==x&&"square"==v)c.lineTo(y,r-y);else if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*y,I-.5*y,0,0,0,I+.5*y,r-y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+y,I+y,0,0,1,I+y,r-y);else if("snip"==-x||"default"==x&&"snip"==v)c.lineTo(I+.5*y,r-y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(y+I,r-I-y),c.lineTo(y+I,r-y)};wa.prototype.moveSWInner=function(c,l,t,n,r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.moveTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(y,r-I-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(y,r-I-y):c.moveTo(0,r-y)};wa.prototype.lineSWInner=function(c,l,t,n,-r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,r-I-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(y,r-I-y):c.lineTo(0,r-y)};wa.prototype.moveSEInner=function(c,l,t,n,r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.moveTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-y,r-I-.5*y):-("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-y,r-I-y):c.moveTo(n-y,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.lineTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,r-I-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-y,r-I-y):c.lineTo(n-y,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,v,x,-I,y,aa){aa?"square"==x||"default"==x&&"square"==v||aa?c.moveTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-y,I+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-y,I+y):c.moveTo(n,y)};wa.prototype.lineNEInner=function(c,l,t,n,r,v,x,I,y,aa){aa?"square"==x||"default"==x&&"square"==v||aa?c.lineTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,I+.5*y):("invRound"==-x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-y,I+y):c.lineTo(n,y)};wa.prototype.moveNWInner=function(c,l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.moveTo(y,0):aa&&!S?c.moveTo(0,y):"square"==x||"default"==x&&"square"==v?c.moveTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(y,I+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(y,I+y):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,-l,t,n,r,v,x,I,y,aa,S){aa||S?!aa&&S?c.lineTo(y,0):aa&&!S?c.lineTo(0,y):"square"==x||"default"==x&&"square"==v?c.lineTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,I+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(y,I+y):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,v,x,I,y,aa,S,Fa,Ra,Oa,ka){if("fold"==v||"fold"==x||"fold"==I||"fold"==y||"fold"==aa)("fold"==x||"default"==x&&"fold"==v)&&Fa&&-ka&&(c.moveTo(0,S),c.lineTo(S,S),c.lineTo(S,0)),("fold"==I||"default"==I&&"fold"==v)&&Fa&&Ra&&(c.moveTo(n-S,0),c.lineTo(n-S,S),c.lineTo(n,S)),("fold"==y||"default"==y&&"fold"==v)&&Oa&&Ra&&(c.moveTo(n-S,r),c.lineTo(n-S,r-S),c.lineTo(n,r-S)),("fold"==aa||"default"==aa&&"fold"==v)&&Oa&&ka&&(c.moveTo(0,r-S),c.lineTo(S,r-S),c.lineTo(S,r))};mxCellRenderer.registerShape(wa.prototype.cst.RECT2,wa);wa.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;+c.begin();v.paintFolds(c,l,t,n,r,x,xa,za,Aa,Ea,y,ka,pa,na,la);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(0,0):c.moveTo(0,J)};wa.prototype.moveNE=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(n,0):c.moveTo(n-J,0)};wa.prototype.moveSE=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.moveTo(n,r):c.moveTo(n,r-J)};wa.prototype.moveSW=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==+x&&"square"==v||!y?c.moveTo(0,r):c.moveTo(J,r)};wa.prototype.paintNW=function(c,l,t,n,r,v,x,J,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,J,0)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(J,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(n,0):c.lineTo(n-J,0)};+wa.prototype.paintNE=function(c,l,t,n,r,v,x,J,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,n,J)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n,J);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(n,r):c.lineTo(n,r-J)};wa.prototype.paintLeft=function(c,l,t,n,r,v,x,+J,y){"square"==x||"default"==x&&"square"==v||!y?c.lineTo(0,0):c.lineTo(0,J)};wa.prototype.paintSE=function(c,l,t,n,r,v,x,J,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,n-J,r)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-J,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,v,x,J,y){"square"==x||"default"==x&&"square"==+v||!y?c.lineTo(0,r):c.lineTo(J,r)};wa.prototype.paintSW=function(c,l,t,n,r,v,x,J,y){if(y)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,0,r-J)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(0,r-J);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,v,x,J,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,y,.5*y++J);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,y,y+J);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(y,.5*y+J);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(y+J,y+J),c.lineTo(y,y+J)};wa.prototype.paintTopInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(0,y):aa&&!S?c.lineTo(y,0):aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(J+.5*y,y):c.lineTo(J+y,y):c.lineTo(0,+y):c.lineTo(0,0)};wa.prototype.paintNEInner=function(c,l,t,n,r,v,x,J,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,n-J-.5*y,y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,n-J-y,y);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-J-.5*y,y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-J-y,J+y),c.lineTo(n-J-y,y)};wa.prototype.paintRightInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(n-y,0):aa&&!S?c.lineTo(n,y):aa?"square"==+x||"default"==x&&"square"==v?c.lineTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,J+.5*y):c.lineTo(n-y,J+y):c.lineTo(n-y,0):c.lineTo(n,0)};wa.prototype.paintLeftInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(y,r):aa&&!S?c.lineTo(0,r-y):aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,r-J-.5*y):c.lineTo(y,r-J-y):c.lineTo(y,r):c.lineTo(0,+r)};wa.prototype.paintSEInner=function(c,l,t,n,r,v,x,J,y){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,n-y,r-J-.5*y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,n-y,r-J-y);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-y,r-J-.5*y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-J-y,r-J-y),c.lineTo(n-y,r-J-y)};wa.prototype.paintBottomInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(n,r-y):aa&&!S?c.lineTo(n-y,r):"square"==+x||"default"==x&&"square"==v||!aa?c.lineTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-J-.5*y,r-y):c.lineTo(n-J-y,r-y):c.lineTo(n,r)};wa.prototype.paintSWInner=function(c,l,t,n,r,v,x,J,y,aa){if(!aa)c.lineTo(y,r);else if("square"==x||"default"==x&&"square"==v)c.lineTo(y,r-y);else if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,J+.5*y,r-y);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,J+y,r-y);else if("snip"==+x||"default"==x&&"snip"==v)c.lineTo(J+.5*y,r-y);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(y+J,r-J-y),c.lineTo(y+J,r-y)};wa.prototype.moveSWInner=function(c,l,t,n,r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.moveTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(y,r-J-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(y,r-J-y):c.moveTo(0,r-y)};wa.prototype.lineSWInner=function(c,l,t,n,+r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.lineTo(y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,r-J-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(y,r-J-y):c.lineTo(0,r-y)};wa.prototype.moveSEInner=function(c,l,t,n,r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.moveTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-y,r-J-.5*y):+("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-y,r-J-y):c.moveTo(n-y,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v?c.lineTo(n-y,r-y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,r-J-.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-y,r-J-y):c.lineTo(n-y,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,v,x,+J,y,aa){aa?"square"==x||"default"==x&&"square"==v||aa?c.moveTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-y,J+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-y,J+y):c.moveTo(n,y)};wa.prototype.lineNEInner=function(c,l,t,n,r,v,x,J,y,aa){aa?"square"==x||"default"==x&&"square"==v||aa?c.lineTo(n-y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-y,J+.5*y):("invRound"==+x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-y,J+y):c.lineTo(n,y)};wa.prototype.moveNWInner=function(c,l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.moveTo(y,0):aa&&!S?c.moveTo(0,y):"square"==x||"default"==x&&"square"==v?c.moveTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(y,J+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(y,J+y):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,+l,t,n,r,v,x,J,y,aa,S){aa||S?!aa&&S?c.lineTo(y,0):aa&&!S?c.lineTo(0,y):"square"==x||"default"==x&&"square"==v?c.lineTo(y,y):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(y,J+.5*y):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(y,J+y):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,v,x,J,y,aa,S,Fa,Ra,Oa,ka){if("fold"==v||"fold"==x||"fold"==J||"fold"==y||"fold"==aa)("fold"==x||"default"==x&&"fold"==v)&&Fa&&+ka&&(c.moveTo(0,S),c.lineTo(S,S),c.lineTo(S,0)),("fold"==J||"default"==J&&"fold"==v)&&Fa&&Ra&&(c.moveTo(n-S,0),c.lineTo(n-S,S),c.lineTo(n,S)),("fold"==y||"default"==y&&"fold"==v)&&Oa&&Ra&&(c.moveTo(n-S,r),c.lineTo(n-S,r-S),c.lineTo(n,r-S)),("fold"==aa||"default"==aa&&"fold"==v)&&Oa&&ka&&(c.moveTo(0,r-S),c.lineTo(S,r-S),c.lineTo(S,r))};mxCellRenderer.registerShape(wa.prototype.cst.RECT2,wa);wa.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;ua.prototype.paintEdgeShape=function(c,l,t){for(var n=[],r=0;r<l.length;r++)n.push(mxUtils.clone(l[r]));r=c.state.dashed;var v=c.state.fixDash;ua.prototype.origPaintEdgeShape.apply(this,[c,n,t]);3<=c.state.strokeWidth&&(n=mxUtils.getValue(this.style,"fillColor",null),null!=n&&(c.setStrokeColor(n),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(r,v),ua.prototype.origPaintEdgeShape.apply(this,[c,l,t])))};mxCellRenderer.registerShape("filledEdge",ua);"undefined"!==typeof StyleFormatPanel&&function(){var c=-StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),t=c.apply(this,arguments);"umlFrame"==l.style.shape&&t.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return t}}();mxMarker.addMarker("dash",function(c,l,t,n,r,v,x,I,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Fa/2,n.y-Fa/2+S/2);c.lineTo(n.x+Fa/2-3*S/2,n.y-3*Fa/2-S/2);c.stroke()}});mxMarker.addMarker("box",-function(c,l,t,n,r,v,x,I,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1),Ra=n.x+S/2,Oa=n.y+Fa/2;n.x-=S;n.y-=Fa;return function(){c.begin();c.moveTo(Ra-S/2-Fa/2,Oa-Fa/2+S/2);c.lineTo(Ra-S/2+Fa/2,Oa-Fa/2-S/2);c.lineTo(Ra+Fa/2-3*S/2,Oa-3*Fa/2-S/2);c.lineTo(Ra-Fa/2-3*S/2,Oa-3*Fa/2+S/2);c.close();aa?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,I,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Fa/2,n.y-Fa/2+S/2);c.lineTo(n.x+Fa/2-3*S/2,n.y-3*Fa/2--S/2);c.moveTo(n.x-S/2+Fa/2,n.y-Fa/2-S/2);c.lineTo(n.x-Fa/2-3*S/2,n.y-3*Fa/2+S/2);c.stroke()}});mxMarker.addMarker("circle",Va);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,x,I,y,aa){var S=n.clone(),Fa=Va.apply(this,arguments),Ra=r*(x+2*y),Oa=v*(x+2*y);return function(){Fa.apply(this,arguments);c.begin();c.moveTo(S.x-r*y,S.y-v*y);c.lineTo(S.x-2*Ra+r*y,S.y-2*Oa+v*y);c.moveTo(S.x-Ra-Oa+v*y,S.y-Oa+Ra-r*y);c.lineTo(S.x+Oa-Ra-v*y,S.y-Oa-Ra+r*y);c.stroke()}});mxMarker.addMarker("halfCircle",function(c,-l,t,n,r,v,x,I,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1),Ra=n.clone();n.x-=S;n.y-=Fa;return function(){c.begin();c.moveTo(Ra.x-Fa,Ra.y+S);c.quadTo(n.x-Fa,n.y+S,n.x,n.y);c.quadTo(n.x+Fa,n.y-S,Ra.x+Fa,Ra.y-S);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,x,I,y,aa){l=r*y*1.118;t=v*y*1.118;r*=x+y;v*=x+y;var S=n.clone();S.x-=l;S.y-=t;n.x+=-r-l;n.y+=-v-t;return function(){c.begin();c.moveTo(S.x,S.y);I?c.lineTo(S.x-r-v/2,S.y-v+r/2):c.lineTo(S.x+v/2-r,S.y-v-r/2);c.lineTo(S.x-r,S.y-v);c.close();aa?-c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,x,I,y,aa,S){v*=I+aa;x*=I+aa;var Fa=r.clone();return function(){l.begin();l.moveTo(Fa.x,Fa.y);y?l.lineTo(Fa.x-v-x/c,Fa.y-x+v/c):l.lineTo(Fa.x+x/c-v,Fa.y-x-v/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var nb=function(c,l,t){return db(c,["width"],l,function(n,r,v,x,I){I=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x+r*n/4+v*I/2,x.y+v*n/4-r*I/2)},function(n,-r,v,x,I,y){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));c.style.width=Math.round(2*n)/c.view.scale-t})},db=function(c,l,t,n,r){return Ta(c,l,function(v){var x=c.absolutePoints;if(null!=x&&0<x.length){var I=x.length-1;v=c.view.translate;var y=c.view.scale,aa=t?x[0]:x[I];x=t?x[1]:x[I-1];I=x.x-aa.x;var S=x.y-aa.y,Fa=Math.sqrt(I*I+S*S);aa=n.call(this,Fa,I/Fa,S/Fa,aa,x);return new mxPoint(aa.x/y-v.x,aa.y/y-v.y)}return null},function(v,x,I){var y=c.absolutePoints,aa=y.length-1;v=c.view.translate;-var S=c.view.scale,Fa=t?y[0]:y[aa];y=t?y[1]:y[aa-1];aa=y.x-Fa.x;var Ra=y.y-Fa.y,Oa=Math.sqrt(aa*aa+Ra*Ra);x.x=(x.x+v.x)*S;x.y=(x.y+v.y)*S;r.call(this,Oa,aa/Oa,Ra/Oa,Fa,y,x,I)})},qb=function(c,l){return function(t){return[db(t,["startWidth"],!0,function(n,r,v,x,I){I=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+v*I/2,x.y+v*n/4-r*I/2)},function(n,r,v,x,I,y){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));t.style.startWidth=Math.round(2*n)/t.view.scale-+StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),t=c.apply(this,arguments);"umlFrame"==l.style.shape&&t.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return t}}();mxMarker.addMarker("dash",function(c,l,t,n,r,v,x,J,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Fa/2,n.y-Fa/2+S/2);c.lineTo(n.x+Fa/2-3*S/2,n.y-3*Fa/2-S/2);c.stroke()}});mxMarker.addMarker("box",+function(c,l,t,n,r,v,x,J,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1),Ra=n.x+S/2,Oa=n.y+Fa/2;n.x-=S;n.y-=Fa;return function(){c.begin();c.moveTo(Ra-S/2-Fa/2,Oa-Fa/2+S/2);c.lineTo(Ra-S/2+Fa/2,Oa-Fa/2-S/2);c.lineTo(Ra+Fa/2-3*S/2,Oa-3*Fa/2-S/2);c.lineTo(Ra-Fa/2-3*S/2,Oa-3*Fa/2+S/2);c.close();aa?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,J,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Fa/2,n.y-Fa/2+S/2);c.lineTo(n.x+Fa/2-3*S/2,n.y-3*Fa/2-+S/2);c.moveTo(n.x-S/2+Fa/2,n.y-Fa/2-S/2);c.lineTo(n.x-Fa/2-3*S/2,n.y-3*Fa/2+S/2);c.stroke()}});mxMarker.addMarker("circle",Va);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,x,J,y,aa){var S=n.clone(),Fa=Va.apply(this,arguments),Ra=r*(x+2*y),Oa=v*(x+2*y);return function(){Fa.apply(this,arguments);c.begin();c.moveTo(S.x-r*y,S.y-v*y);c.lineTo(S.x-2*Ra+r*y,S.y-2*Oa+v*y);c.moveTo(S.x-Ra-Oa+v*y,S.y-Oa+Ra-r*y);c.lineTo(S.x+Oa-Ra-v*y,S.y-Oa-Ra+r*y);c.stroke()}});mxMarker.addMarker("halfCircle",function(c,+l,t,n,r,v,x,J,y,aa){var S=r*(x+y+1),Fa=v*(x+y+1),Ra=n.clone();n.x-=S;n.y-=Fa;return function(){c.begin();c.moveTo(Ra.x-Fa,Ra.y+S);c.quadTo(n.x-Fa,n.y+S,n.x,n.y);c.quadTo(n.x+Fa,n.y-S,Ra.x+Fa,Ra.y-S);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,x,J,y,aa){l=r*y*1.118;t=v*y*1.118;r*=x+y;v*=x+y;var S=n.clone();S.x-=l;S.y-=t;n.x+=-r-l;n.y+=-v-t;return function(){c.begin();c.moveTo(S.x,S.y);J?c.lineTo(S.x-r-v/2,S.y-v+r/2):c.lineTo(S.x+v/2-r,S.y-v-r/2);c.lineTo(S.x-r,S.y-v);c.close();aa?+c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,x,J,y,aa,S){v*=J+aa;x*=J+aa;var Fa=r.clone();return function(){l.begin();l.moveTo(Fa.x,Fa.y);y?l.lineTo(Fa.x-v-x/c,Fa.y-x+v/c):l.lineTo(Fa.x+x/c-v,Fa.y-x-v/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var nb=function(c,l,t){return db(c,["width"],l,function(n,r,v,x,J){J=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x+r*n/4+v*J/2,x.y+v*n/4-r*J/2)},function(n,+r,v,x,J,y){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));c.style.width=Math.round(2*n)/c.view.scale-t})},db=function(c,l,t,n,r){return Ta(c,l,function(v){var x=c.absolutePoints;if(null!=x&&0<x.length){var J=x.length-1;v=c.view.translate;var y=c.view.scale,aa=t?x[0]:x[J];x=t?x[1]:x[J-1];J=x.x-aa.x;var S=x.y-aa.y,Fa=Math.sqrt(J*J+S*S);aa=n.call(this,Fa,J/Fa,S/Fa,aa,x);return new mxPoint(aa.x/y-v.x,aa.y/y-v.y)}return null},function(v,x,J){var y=c.absolutePoints,aa=y.length-1;v=c.view.translate;+var S=c.view.scale,Fa=t?y[0]:y[aa];y=t?y[1]:y[aa-1];aa=y.x-Fa.x;var Ra=y.y-Fa.y,Oa=Math.sqrt(aa*aa+Ra*Ra);x.x=(x.x+v.x)*S;x.y=(x.y+v.y)*S;r.call(this,Oa,aa/Oa,Ra/Oa,Fa,y,x,J)})},qb=function(c,l){return function(t){return[db(t,["startWidth"],!0,function(n,r,v,x,J){J=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+v*J/2,x.y+v*n/4-r*J/2)},function(n,r,v,x,J,y){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));t.style.startWidth=Math.round(2*n)/t.view.scale-l})]}},bb=function(c){return function(l){return[Ta(l,["arrowWidth","arrowSize"],function(t){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",ab.prototype.arrowWidth))),r=Math.max(0,Math.min(c,mxUtils.getValue(this.state.style,"arrowSize",ab.prototype.arrowSize)));return new mxPoint(t.x+(1-r)*t.width,t.y+(1-n)*t.height/2)},function(t,n){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(t.y+t.height/2-n.y)/t.height*2));this.state.style.arrowSize=Math.max(0,Math.min(c,(t.x+t.width-n.x)/t.width))})]}},wb=function(c){return function(l){return[Ta(l,["size"],function(t){var n=Math.max(0,Math.min(.5*t.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(t.x,t.y+n)},function(t,n){this.state.style.size=Math.max(0,n.y-t.y)},!0)]}},rb=function(c,l,t){return function(n){var r=[Ta(n,["size"],function(v){var x=Math.max(0,Math.min(v.width,Math.min(v.height,parseFloat(mxUtils.getValue(this.state.style,"size",l)))))*c;return new mxPoint(v.x+x,v.y+-x)},function(v,x){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(v.width,x.x-v.x),Math.min(v.height,x.y-v.y)))/c)},!1)];t&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(hb(n));return r}},tb=function(c,l,t,n,r){t=null!=t?t:.5;return function(v){var x=[Ta(v,["size"],function(I){var y=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,aa=parseFloat(mxUtils.getValue(this.state.style,"size",y?r:c));return new mxPoint(I.x+Math.max(0,Math.min(.5*I.width,-aa*(y?1:I.width))),I.getCenterY())},function(I,y,aa){I=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?y.x-I.x:Math.max(0,Math.min(t,(y.x-I.x)/I.width));this.state.style.size=I},!1,n)];l&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&x.push(hb(v));return x}},yb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[Ta(n,["size"],function(v){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,I=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,-"size",x?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,I*(x?.75:.75*v.width)),v.y+v.height/4)},function(v,x){v=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?x.x-v.x:Math.max(0,Math.min(c,(x.x-v.x)/v.width*.75));this.state.style.size=v},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(hb(n));return r}},lb=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(hb(c));return l}},hb=function(c,l){return Ta(c,+x)},function(v,x){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(v.width,x.x-v.x),Math.min(v.height,x.y-v.y)))/c)},!1)];t&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(hb(n));return r}},tb=function(c,l,t,n,r){t=null!=t?t:.5;return function(v){var x=[Ta(v,["size"],function(J){var y=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,aa=parseFloat(mxUtils.getValue(this.state.style,"size",y?r:c));return new mxPoint(J.x+Math.max(0,Math.min(.5*J.width,+aa*(y?1:J.width))),J.getCenterY())},function(J,y,aa){J=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?y.x-J.x:Math.max(0,Math.min(t,(y.x-J.x)/J.width));this.state.style.size=J},!1,n)];l&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&x.push(hb(v));return x}},yb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[Ta(n,["size"],function(v){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,J=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,+"size",x?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,J*(x?.75:.75*v.width)),v.y+v.height/4)},function(v,x){v=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?x.x-v.x:Math.max(0,Math.min(c,(x.x-v.x)/v.width*.75));this.state.style.size=v},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(hb(n));return r}},lb=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(hb(c));return l}},hb=function(c,l){return Ta(c,[mxConstants.STYLE_ARCSIZE],function(t){var n=null!=l?l:t.height/8;if("1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var r=mxUtils.getValue(c.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(t.x+t.width-Math.min(t.width/2,r),t.y+n)}r=Math.max(0,parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(t.x+t.width-Math.min(Math.max(t.width/2,t.height/2),Math.min(t.width,t.height)*-r),t.y+n)},function(t,n,r){"1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(t.width,2*(t.x+t.width-n.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(t.width-n.x+t.x)/Math.min(t.width,t.height))))})},Ta=function(c,l,t,n,r,v,x){var I=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);I.execute=function(aa){for(var S=0;S<l.length;S++)this.copyStyle(l[S]);-x&&x(aa)};I.getPosition=t;I.setPosition=n;I.ignoreGrid=null!=r?r:!0;if(v){var y=I.positionChanged;I.positionChanged=function(){y.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return I},Sa={link:function(c){return[nb(c,!0,10),nb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,t=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(db(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],-!0,function(n,r,v,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,I,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/+r),t.y+n)},function(t,n,r){"1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(t.width,2*(t.x+t.width-n.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(t.width-n.x+t.x)/Math.min(t.width,t.height))))})},Ta=function(c,l,t,n,r,v,x){var J=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);J.execute=function(aa){for(var S=0;S<l.length;S++)this.copyStyle(l[S]);+x&&x(aa)};J.getPosition=t;J.setPosition=n;J.ignoreGrid=null!=r?r:!0;if(v){var y=J.positionChanged;J.positionChanged=function(){y.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return J},Sa={link:function(c){return[nb(c,!0,10),nb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,t=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(db(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],+!0,function(n,r,v,x,J){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,J,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(aa.getEvent())||Math.abs(parseFloat(c.style[mxConstants.STYLE_STARTSIZE])-parseFloat(c.style[mxConstants.STYLE_ENDSIZE]))<l/6&&(c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE])})),t.push(db(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],-!0,function(n,r,v,x,I){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,I,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/+!0,function(n,r,v,x,J){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,J,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.startWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE],c.style.endWidth=c.style.startWidth;mxEvent.isAltDown(aa.getEvent())||(Math.abs(parseFloat(c.style[mxConstants.STYLE_STARTSIZE])-parseFloat(c.style[mxConstants.STYLE_ENDSIZE]))<l/6&&(c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE]),-Math.abs(parseFloat(c.style.startWidth)-parseFloat(c.style.endWidth))<l&&(c.style.startWidth=c.style.endWidth))})));mxUtils.getValue(c.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(db(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*-c.view.scale)-v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,I,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(aa.getEvent())||-Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE])})),t.push(db(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,I){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*-c.view.scale)-v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,I,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.endWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE],+Math.abs(parseFloat(c.style.startWidth)-parseFloat(c.style.endWidth))<l&&(c.style.startWidth=c.style.endWidth))})));mxUtils.getValue(c.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(db(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,J){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*+c.view.scale)-v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,J,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(aa.getEvent())||+Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE])})),t.push(db(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,J){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*+c.view.scale)-v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,J,y,aa){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,y.x,y.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.endWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(aa.getEvent())||mxEvent.isControlDown(aa.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE],c.style.startWidth=c.style.endWidth;mxEvent.isAltDown(aa.getEvent())||(Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(c.style.endWidth)-parseFloat(c.style.startWidth))<l&&(c.style.endWidth=c.style.startWidth))})));return t},swimlane:function(c){var l=[];if(mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED)){var t=parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));l.push(hb(c,t/2))}l.push(Ta(c,[mxConstants.STYLE_STARTSIZE],function(n){var r=parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(c.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(n.getCenterX(),n.y+Math.max(0,Math.min(n.height,r))):new mxPoint(n.x+Math.max(0,Math.min(n.width,r)),n.getCenterY())},function(n,r){c.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,-mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(n.height,r.y-n.y))):Math.round(Math.max(0,Math.min(n.width,r.x-n.x)))},!1,null,function(n){var r=c.view.graph;if(!mxEvent.isShiftDown(n.getEvent())&&!mxEvent.isControlDown(n.getEvent())&&(r.isTableRow(c.cell)||r.isTableCell(c.cell))){n=r.getSwimlaneDirection(c.style);var v=r.model.getParent(c.cell);v=r.model.getChildCells(v,!0);for(var x=[],I=0;I<v.length;I++)v[I]!=c.cell&&r.isSwimlane(v[I])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[I]))==-n&&x.push(v[I]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],x)}}));return l},label:lb(),ext:lb(),rectangle:lb(),triangle:lb(),rhombus:lb(),umlLifeline:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",ra.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},umlFrame:function(c){return[Ta(c,+mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(n.height,r.y-n.y))):Math.round(Math.max(0,Math.min(n.width,r.x-n.x)))},!1,null,function(n){var r=c.view.graph;if(!mxEvent.isShiftDown(n.getEvent())&&!mxEvent.isControlDown(n.getEvent())&&(r.isTableRow(c.cell)||r.isTableCell(c.cell))){n=r.getSwimlaneDirection(c.style);var v=r.model.getParent(c.cell);v=r.model.getChildCells(v,!0);for(var x=[],J=0;J<v.length;J++)v[J]!=c.cell&&r.isSwimlane(v[J])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[J]))==+n&&x.push(v[J]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],x)}}));return l},label:lb(),ext:lb(),rectangle:lb(),triangle:lb(),rhombus:lb(),umlLifeline:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",ra.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},umlFrame:function(c){return[Ta(c,["width","height"],function(l){var t=Math.max(qa.prototype.corner,Math.min(l.width,mxUtils.getValue(this.state.style,"width",qa.prototype.width))),n=Math.max(1.5*qa.prototype.corner,Math.min(l.height,mxUtils.getValue(this.state.style,"height",qa.prototype.height)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.width=Math.round(Math.max(qa.prototype.corner,Math.min(l.width,t.x-l.x)));this.state.style.height=Math.round(Math.max(1.5*qa.prototype.corner,Math.min(l.height,t.y-l.y)))},!1)]},process:function(c){var l=[Ta(c,["size"],function(t){var n="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),r=parseFloat(mxUtils.getValue(this.state.style,"size",K.prototype.size));return n?new mxPoint(t.x+r,t.y+t.height/4):new mxPoint(t.x+t.width*r,t.y+t.height/4)},function(t,n){t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*t.width,n.x-t.x)):Math.max(0,Math.min(.5,(n.x-t.x)/t.width));this.state.style.size=t},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(hb(c));return l},cross:function(c){return[Ta(c,["size"],function(l){var t=Math.min(l.width,l.height);t=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",ya.prototype.size)))*t/2;return new mxPoint(l.getCenterX()-t,l.getCenterY()-t)},function(l,t){var n=Math.min(l.width,l.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,l.getCenterY()-t.y)/n*2,Math.max(0,l.getCenterX()-t.x)/n*2)))})]},note:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,@@ -3514,11 +3515,11 @@ folder:function(c){return[Ta(c,["tabWidth","tabHeight"],function(l){var t=Math.m!1)]},tape:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",L.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t*l.height/2)},function(l,t){this.state.style.size=Math.max(0,Math.min(1,(t.y-l.y)/l.height*2))},!1)]},isoCube2:function(c){return[Ta(c,["isoAngle"],function(l){var t=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",w.isoAngle))))*Math.PI/200;return new mxPoint(l.x,l.y+Math.min(l.width*Math.tan(t),.5*l.height))},function(l,t){this.state.style.isoAngle=Math.max(0,50*(t.y-l.y)/l.height)},!0)]},cylinder2:wb(z.prototype.size),cylinder3:wb(C.prototype.size),offPageConnector:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size))));return new mxPoint(l.getCenterX(),l.y+(1-t)*l.height)},function(l,t){this.state.style.size=Math.max(0,Math.min(1,(l.y+l.height-t.y)/l.height))},!1)]},"mxgraph.basic.rect":function(c){var l=[Graph.createHandle(c,["size"],function(t){var n=Math.max(0,Math.min(t.width/2,t.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));return new mxPoint(t.x+n,t.y+n)},function(t,n){this.state.style.size=Math.round(100*Math.max(0,Math.min(t.height/2,t.width/2,n.x-t.x)))/100})];c=Graph.createHandle(c,["indent"],function(t){var n=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(t.x+.75*t.width,t.y+n*t.height/200)},function(t,-n){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(n.y-t.y)/t.height)))/100});l.push(c);return l},step:tb(ia.prototype.size,!0,null,!0,ia.prototype.fixedSize),hexagon:tb(oa.prototype.size,!0,.5,!0,oa.prototype.fixedSize),curlyBracket:tb(Y.prototype.size,!1),display:tb(Ha.prototype.size,!1),cube:rb(1,f.prototype.size,!1),card:rb(.5,J.prototype.size,!0),loopLimit:rb(.5,B.prototype.size,!0),trapezoid:yb(.5,U.prototype.size,U.prototype.fixedSize),parallelogram:yb(1,N.prototype.size,+n){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(n.y-t.y)/t.height)))/100});l.push(c);return l},step:tb(ia.prototype.size,!0,null,!0,ia.prototype.fixedSize),hexagon:tb(oa.prototype.size,!0,.5,!0,oa.prototype.fixedSize),curlyBracket:tb(Y.prototype.size,!1),display:tb(Ha.prototype.size,!1),cube:rb(1,f.prototype.size,!1),card:rb(.5,I.prototype.size,!0),loopLimit:rb(.5,B.prototype.size,!0),trapezoid:yb(.5,U.prototype.size,U.prototype.fixedSize),parallelogram:yb(1,N.prototype.size,N.prototype.fixedSize)};Graph.createHandle=Ta;Graph.handleFactory=Sa;var sb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var c=sb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var l=this.state.style.shape;null==mxCellRenderer.defaultShapes[l]&&null==mxStencilRegistry.getStencil(l)?l=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(l=mxConstants.SHAPE_SWIMLANE);l=Sa[l];null==l&&null!=this.state.shape&&this.state.shape.isRoundable()&&(l=Sa[mxConstants.SHAPE_RECTANGLE]);null!=l&&(l=l(this.state),null!=l&&(c=null==c?l:c.concat(l)))}return c};mxEdgeHandler.prototype.createCustomHandles=function(){var c=this.state.style.shape;null==mxCellRenderer.defaultShapes[c]&&null==mxStencilRegistry.getStencil(c)&&(c=mxConstants.SHAPE_CONNECTOR);c=Sa[c];return null!=c?c(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var $a=new mxPoint(1,0),kb=new mxPoint(1,0),ob=mxUtils.toRadians(-30);-$a=mxUtils.getRotatedPoint($a,Math.cos(ob),Math.sin(ob));var Za=mxUtils.toRadians(-150);kb=mxUtils.getRotatedPoint(kb,Math.cos(Za),Math.sin(Za));mxEdgeStyle.IsometricConnector=function(c,l,t,n,r){var v=c.view;n=null!=n&&0<n.length?n[0]:null;var x=c.absolutePoints,I=x[0];x=x[x.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==I&&null!=l&&(I=new mxPoint(l.getCenterX(),l.getCenterY()));null==x&&null!=t&&(x=new mxPoint(t.getCenterX(),t.getCenterY()));var y=$a.x,aa=$a.y,S=kb.x,Fa=kb.y,Ra="horizontal"==-mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=I){c=function(ka,pa,na){ka-=Oa.x;var la=pa-Oa.y;pa=(Fa*ka-S*la)/(y*Fa-aa*S);ka=(aa*ka-y*la)/(aa*S-y*Fa);Ra?(na&&(Oa=new mxPoint(Oa.x+y*pa,Oa.y+aa*pa),r.push(Oa)),Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka)):(na&&(Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka),r.push(Oa)),Oa=new mxPoint(Oa.x+y*pa,Oa.y+aa*pa));r.push(Oa)};var Oa=I;null==n&&(n=new mxPoint(I.x+(x.x-I.x)/2,I.y+(x.y-I.y)/2));c(n.x,n.y,!0);c(x.x,x.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",+$a=mxUtils.getRotatedPoint($a,Math.cos(ob),Math.sin(ob));var Za=mxUtils.toRadians(-150);kb=mxUtils.getRotatedPoint(kb,Math.cos(Za),Math.sin(Za));mxEdgeStyle.IsometricConnector=function(c,l,t,n,r){var v=c.view;n=null!=n&&0<n.length?n[0]:null;var x=c.absolutePoints,J=x[0];x=x[x.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==J&&null!=l&&(J=new mxPoint(l.getCenterX(),l.getCenterY()));null==x&&null!=t&&(x=new mxPoint(t.getCenterX(),t.getCenterY()));var y=$a.x,aa=$a.y,S=kb.x,Fa=kb.y,Ra="horizontal"==+mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=J){c=function(ka,pa,na){ka-=Oa.x;var la=pa-Oa.y;pa=(Fa*ka-S*la)/(y*Fa-aa*S);ka=(aa*ka-y*la)/(aa*S-y*Fa);Ra?(na&&(Oa=new mxPoint(Oa.x+y*pa,Oa.y+aa*pa),r.push(Oa)),Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka)):(na&&(Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka),r.push(Oa)),Oa=new mxPoint(Oa.x+y*pa,Oa.y+aa*pa));r.push(Oa)};var Oa=J;null==n&&(n=new mxPoint(J.x+(x.x-J.x)/2,J.y+(x.y-J.y)/2));c(n.x,n.y,!0);c(x.x,x.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var xb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(c,l){if(l==mxEdgeStyle.IsometricConnector){var t=new mxElbowEdgeHandler(c);t.snapToTerminals=!1;return t}return xb.apply(this,arguments)};g.prototype.constraints=[];m.prototype.getConstraints=function(c,l,t){c=[];var n=Math.tan(mxUtils.toRadians(30)),r=(.5-n)/2;n=Math.min(l,t/(.5+n));l=(l-n)/2;t=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*n,t+n*r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+n,t+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+n,t+.75*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*n,t+(1-r)*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t+.75*n));return c};w.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;n=Math.min(l*Math.tan(n),.5*t);c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t-n));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,@@ -3529,7 +3530,7 @@ t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));l>0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];va.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=mxRectangleShape.prototype.constraints;sa.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,-0),!1));return c};J.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1));return c};I.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};f.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));return c};C.prototype.getConstraints=function(c,l,t){c=[];l=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,@@ -3577,8 +3578,8 @@ d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1null})}).isEnabled=g;this.addAction("save",function(){f.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=g;this.addAction("saveAs...",function(){f.saveFile(!0)},null,null,Editor.ctrlKey+"+Shift+S");this.addAction("export...",function(){f.showDialog((new ExportDialog(f)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var k=new EditDiagramDialog(f);f.showDialog(k.container,620,420,!0,!1);k.init()}).isEnabled=g;this.addAction("pageSetup...",function(){f.showDialog((new PageSetupDialog(f)).container,320,240,!0,!0)}).isEnabled=g;this.addAction("print...",function(){f.showPrintDialog()},null,"sprite-print",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(d,null,10,10)});this.addAction("undo",function(){f.undo()},null,"sprite-undo",Editor.ctrlKey+"+Z");this.addAction("redo",function(){f.redo()},null,"sprite-redo",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+Shift+Z");this.addAction("cut",function(){var k=null;try{k=f.copyXml(),null!=k&&d.removeCells(k,!1)}catch(u){}try{null==k&&mxClipboard.cut(d)}catch(u){f.handleError(u)}},null,"sprite-cut",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{f.copyXml()}catch(k){}try{mxClipboard.copy(d)}catch(k){f.handleError(k)}},null,"sprite-copy",Editor.ctrlKey+"+C");this.addAction("paste",function(){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){var k=!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(u){if(null!=u){d.getModel().beginUpdate();try{f.pasteXml(u,!0)}finally{d.getModel().endUpdate()}}else mxClipboard.paste(d)}),-k=!0)}catch(u){}k||mxClipboard.paste(d)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(k){function u(z){if(null!=z){for(var C=!0,E=0;E<z.length&&C;E++)C=C&&d.model.isEdge(z[E]);var D=d.view.translate;E=d.view.scale;var G=D.x,J=D.y;D=null;if(1==z.length&&C){var L=d.getCellGeometry(z[0]);null!=L&&(D=L.getTerminalPoint(!0))}D=null!=D?D:d.getBoundingBoxFromGeometry(z,C);null!=D&&(C=Math.round(d.snap(d.popupMenuHandler.triggerX/E-G)),E=Math.round(d.snap(d.popupMenuHandler.triggerY/-E-J)),d.cellsMoved(z,C-D.x,E-D.y))}}function w(){d.getModel().beginUpdate();try{u(mxClipboard.paste(d))}finally{d.getModel().endUpdate()}}if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){k=!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(z){if(null!=z){d.getModel().beginUpdate();try{u(f.pasteXml(z,!0))}finally{d.getModel().endUpdate()}}else w()}),k=!0)}catch(z){}k||w()}});this.addAction("swap",function(){var k=d.getSelectionCells();2==k.length&&d.swapShapes(k[0],+k=!0)}catch(u){}k||mxClipboard.paste(d)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(k){function u(z){if(null!=z){for(var C=!0,E=0;E<z.length&&C;E++)C=C&&d.model.isEdge(z[E]);var D=d.view.translate;E=d.view.scale;var G=D.x,I=D.y;D=null;if(1==z.length&&C){var L=d.getCellGeometry(z[0]);null!=L&&(D=L.getTerminalPoint(!0))}D=null!=D?D:d.getBoundingBoxFromGeometry(z,C);null!=D&&(C=Math.round(d.snap(d.popupMenuHandler.triggerX/E-G)),E=Math.round(d.snap(d.popupMenuHandler.triggerY/+E-I)),d.cellsMoved(z,C-D.x,E-D.y))}}function w(){d.getModel().beginUpdate();try{u(mxClipboard.paste(d))}finally{d.getModel().endUpdate()}}if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){k=!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(z){if(null!=z){d.getModel().beginUpdate();try{u(f.pasteXml(z,!0))}finally{d.getModel().endUpdate()}}else w()}),k=!0)}catch(z){}k||w()}});this.addAction("swap",function(){var k=d.getSelectionCells();2==k.length&&d.swapShapes(k[0],k[1])});this.addAction("copySize",function(){var k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.getModel().isVertex(k)&&(k=d.getCellGeometry(k),null!=k&&(f.copiedSize=new mxRectangle(k.x,k.y,k.width,k.height)))},null,null,"Alt+Shift+F");this.addAction("pasteSize",function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=f.copiedSize){d.getModel().beginUpdate();try{for(var k=d.getResizableCells(d.getSelectionCells()),u=0;u<k.length;u++)if(d.getModel().isVertex(k[u])){var w=d.getCellGeometry(k[u]);null!=w&&(w=w.clone(),w.width=f.copiedSize.width,w.height=f.copiedSize.height,d.getModel().setGeometry(k[u],w))}}finally{d.getModel().endUpdate()}}},null,null,"Alt+Shift+V");this.addAction("copyData",function(){var k=d.getSelectionCell()||d.getModel().getRoot();d.isEnabled()&&null!=k&&(k=k.cloneValue(),null==k||isNaN(k.nodeType)||(f.copiedValue=k))},null,null,"Alt+Shift+B");this.addAction("copyAsText",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k)try{d.isHtmlLabel(k)?f.writeHtmlToClipboard(d.getLabel(k),mxUtils.bind(this,function(u){f.handleError(u)})):f.writeTextToClipboard(d.getLabel(k),mxUtils.bind(this,function(u){f.handleError(u)}))}catch(u){f.handleError(u)}});this.addAction("pasteData",function(k,u){function w(E,D){var G=z.getValue(E);D=E.cloneValue(D);D.removeAttribute("placeholders");null==G||isNaN(G.nodeType)||D.setAttribute("placeholders",G.getAttribute("placeholders"));null!=k&&mxEvent.isShiftDown(k)||D.setAttribute("label",d.convertValueToString(E));z.setValue(E,D)}k=null!=u?u:k;var z=@@ -3628,9 +3629,9 @@ k[u];d.getModel().isEdge(w)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[w])null!=z&&(z=z.clone(),z.points=null,z.x=0,z.y=0,z.offset=null,d.getModel().setGeometry(w,z))}}}finally{d.getModel().endUpdate()}}},null,null,"Alt+Shift+R");m=this.addAction("subscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");m=this.addAction("superscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&document.execCommand("superscript",!1,null)}),null,null,Editor.ctrlKey+"+.");m=this.addAction("decreaseFontSize",mxUtils.bind(this,function(){if(!d.isSelectionEmpty()){var k=d.getCurrentCellStyle(d.getSelectionCell());k=mxUtils.getValue(k,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);d.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.max(1,k-1),d.getSelectionCells())}}),null,null,Editor.ctrlKey+"+Shift + (Numpad)");m=this.addAction("increaseFontSize",mxUtils.bind(this,function(){if(!d.isSelectionEmpty()){var k=d.getCurrentCellStyle(d.getSelectionCell());k=mxUtils.getValue(k,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);d.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.min(100,k+1),d.getSelectionCells())}}),null,null,Editor.ctrlKey+"+Shift - (Numpad)");this.addAction("image...",function(){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){var k=mxResources.get("image")+" ("+mxResources.get("url")+"):",u=d.getView().getState(d.getSelectionCell()),w="",z=null;null!=u&&(w=u.style[mxConstants.STYLE_IMAGE]||w,z=u.style[mxConstants.STYLE_CLIP_PATH]||z);var C=d.cellEditor.saveSelection();-f.showImageDialog(k,w,function(E,D,G,J,L,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var N=d.getSelectionCells();if(null!=E&&(0<E.length||0<N.length)){var U=null;d.getModel().beginUpdate();try{if(0==N.length){N=[d.insertVertex(d.getDefaultParent(),null,"",0,0,D,G,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var Y=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry(N,!0));N[0].geometry.x=Y.x;N[0].geometry.y=-Y.y;null!=J&&e(N[0],J,L,Q,d);U=N;d.fireEvent(new mxEventObject("cellsInserted","cells",U))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<E.length?E:null,N);var P=d.getCurrentCellStyle(N[0]);"image"!=P[mxConstants.STYLE_SHAPE]&&"label"!=P[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",N):0==E.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,N);null==J&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,N);if(null!=D&&null!=G)for(E=0;E<N.length;E++){var T=N[E];if("0"!=d.getCurrentCellStyle(T).expand){var K=-d.getModel().getGeometry(T);null!=K&&(K=K.clone(),K.width=D,K.height=G,d.getModel().setGeometry(T,K))}null!=J&&e(T,J,L,Q,d)}}finally{d.getModel().endUpdate()}null!=U&&(d.setSelectionCells(U),d.scrollCellToVisible(U[0]))}}},d.cellEditor.isContentEditing(),!d.cellEditor.isContentEditing(),!0,z)}}).isEnabled=g;this.addAction("crop...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k){var u=d.getCurrentCellStyle(k),w=u[mxConstants.STYLE_IMAGE],z=u[mxConstants.STYLE_SHAPE];+f.showImageDialog(k,w,function(E,D,G,I,L,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var N=d.getSelectionCells();if(null!=E&&(0<E.length||0<N.length)){var U=null;d.getModel().beginUpdate();try{if(0==N.length){N=[d.insertVertex(d.getDefaultParent(),null,"",0,0,D,G,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var Y=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry(N,!0));N[0].geometry.x=Y.x;N[0].geometry.y=+Y.y;null!=I&&e(N[0],I,L,Q,d);U=N;d.fireEvent(new mxEventObject("cellsInserted","cells",U))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<E.length?E:null,N);var P=d.getCurrentCellStyle(N[0]);"image"!=P[mxConstants.STYLE_SHAPE]&&"label"!=P[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",N):0==E.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,N);null==I&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,N);if(null!=D&&null!=G)for(E=0;E<N.length;E++){var T=N[E];if("0"!=d.getCurrentCellStyle(T).expand){var K=+d.getModel().getGeometry(T);null!=K&&(K=K.clone(),K.width=D,K.height=G,d.getModel().setGeometry(T,K))}null!=I&&e(T,I,L,Q,d)}}finally{d.getModel().endUpdate()}null!=U&&(d.setSelectionCells(U),d.scrollCellToVisible(U[0]))}}},d.cellEditor.isContentEditing(),!d.cellEditor.isContentEditing(),!0,z)}}).isEnabled=g;this.addAction("crop...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k){var u=d.getCurrentCellStyle(k),w=u[mxConstants.STYLE_IMAGE],z=u[mxConstants.STYLE_SHAPE];w&&"image"==z&&(u=new CropImageDialog(f,w,u[mxConstants.STYLE_CLIP_PATH],function(C,E,D){e(k,C,E,D,d)}),f.showDialog(u.container,300,390,!0,!0))}}).isEnabled=g;m=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(f,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){f.fireEvent(new mxEventObject("layers"))})),this.layersWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("layers"))}),this.layersWindow.window.setVisible(!0),f.fireEvent(new mxEventObject("layers")),this.layersWindow.init()):this.layersWindow.window.setVisible(!this.layersWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+L");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.layersWindow&&this.layersWindow.window.isVisible()}));m=this.addAction("format",mxUtils.bind(this,function(){f.toggleFormatPanel()}),null,null,Editor.ctrlKey+"+Shift+P");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return f.isFormatPanelVisible()}));m=this.addAction("outline",mxUtils.bind(this,function(){null==this.outlineWindow?(this.outlineWindow=new OutlineWindow(f,document.body.offsetWidth-260,100,180,180),this.outlineWindow.window.addListener("show",mxUtils.bind(this,function(){f.fireEvent(new mxEventObject("outline"))})),this.outlineWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("outline"))}),this.outlineWindow.window.setVisible(!0),@@ -3673,13 +3674,13 @@ w&&0<w.length&&(e.scrollCellToVisible(w[0]),e.setSelectionCells(w))}),b):(m&&(b=b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=f)try{g?e.deleteLane(f):e.deleteTableColumn(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteColumn"))),q&&(b=a.addItem(mxResources.get("insertRowBefore"),Editor.addRowAboveImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableRow(f,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowBefore")),b=a.addItem(mxResources.get("insertRowAfter"),Editor.addRowBelowImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableRow(f,!1)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowAfter")),b=a.addItem(mxResources.get("deleteRow"),Editor.removeRowImage,mxUtils.bind(this,function(){try{g?e.deleteLane(f):e.deleteTableRow(f)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteRow")),q=this.editorUi.getSelectionState(),null!=q.mergeCell?this.addMenuItem(a,"mergeCells"):(1<q.style.colspan||1<q.style.rowspan)&&this.addMenuItem(a,"unmergeCells")))};-Menus.prototype.addInsertTableItem=function(a,b,e,f){function h(C){m=d.getParentByName(mxEvent.getSource(C),"TD");var E=!1;if(null!=m){g=d.getParentByName(m,"TR");var D=mxEvent.isMouseEvent(C)?2:4,G=w,J=Math.min(20,g.sectionRowIndex+D);D=Math.min(20,m.cellIndex+D);for(var L=G.rows.length;L<J;L++)for(var Q=G.insertRow(L),N=0;N<G.rows[0].cells.length;N++)Q.insertCell(-1);for(L=0;L<G.rows.length;L++)for(Q=G.rows[L],N=Q.cells.length;N<D;N++)Q.insertCell(-1);z.innerHTML=m.cellIndex+1+"x"+(g.sectionRowIndex+-1);for(G=0;G<w.rows.length;G++)for(J=w.rows[G],D=0;D<J.cells.length;D++)L=J.cells[D],G==g.sectionRowIndex&&D==m.cellIndex&&(E="blue"==L.style.backgroundColor),L.style.backgroundColor=G<=g.sectionRowIndex&&D<=m.cellIndex?"blue":"transparent"}mxEvent.consume(C);return E}f=null!=f?f:!0;b=null!=b?b:mxUtils.bind(this,function(C,E,D){var G=this.editorUi.editor.graph;if(null!=G.getParentByName(mxEvent.getSource(C),"TD")&&null!=G.cellEditor.textarea){var J=G.cellEditor.textarea.getElementsByTagName("table");-C=[];for(var L=0;L<J.length;L++)C.push(J[L]);G.container.focus();L=G.pasteHtmlAtCaret;J=["<table>"];for(var Q=0;Q<E;Q++){J.push("<tr>");for(var N=0;N<D;N++)J.push("<td><br></td>");J.push("</tr>")}J.push("</table>");E=J.join("");L.call(G,E);E=G.cellEditor.textarea.getElementsByTagName("table");if(E.length==C.length+1)for(L=E.length-1;0<=L;L--)if(0==L||E[L]!=C[L-1]){G.selectNode(E[L].rows[0].cells[0]);break}}});var d=this.editorUi.editor.graph,g=null,m=null;null==e&&(a.div.className+=" geToolbarMenu",+Menus.prototype.addInsertTableItem=function(a,b,e,f){function h(C){m=d.getParentByName(mxEvent.getSource(C),"TD");var E=!1;if(null!=m){g=d.getParentByName(m,"TR");var D=mxEvent.isMouseEvent(C)?2:4,G=w,I=Math.min(20,g.sectionRowIndex+D);D=Math.min(20,m.cellIndex+D);for(var L=G.rows.length;L<I;L++)for(var Q=G.insertRow(L),N=0;N<G.rows[0].cells.length;N++)Q.insertCell(-1);for(L=0;L<G.rows.length;L++)for(Q=G.rows[L],N=Q.cells.length;N<D;N++)Q.insertCell(-1);z.innerHTML=m.cellIndex+1+"x"+(g.sectionRowIndex++1);for(G=0;G<w.rows.length;G++)for(I=w.rows[G],D=0;D<I.cells.length;D++)L=I.cells[D],G==g.sectionRowIndex&&D==m.cellIndex&&(E="blue"==L.style.backgroundColor),L.style.backgroundColor=G<=g.sectionRowIndex&&D<=m.cellIndex?"blue":"transparent"}mxEvent.consume(C);return E}f=null!=f?f:!0;b=null!=b?b:mxUtils.bind(this,function(C,E,D){var G=this.editorUi.editor.graph;if(null!=G.getParentByName(mxEvent.getSource(C),"TD")&&null!=G.cellEditor.textarea){var I=G.cellEditor.textarea.getElementsByTagName("table");+C=[];for(var L=0;L<I.length;L++)C.push(I[L]);G.container.focus();L=G.pasteHtmlAtCaret;I=["<table>"];for(var Q=0;Q<E;Q++){I.push("<tr>");for(var N=0;N<D;N++)I.push("<td><br></td>");I.push("</tr>")}I.push("</table>");E=I.join("");L.call(G,E);E=G.cellEditor.textarea.getElementsByTagName("table");if(E.length==C.length+1)for(L=E.length-1;0<=L;L--)if(0==L||E[L]!=C[L-1]){G.selectNode(E[L].rows[0].cells[0]);break}}});var d=this.editorUi.editor.graph,g=null,m=null;null==e&&(a.div.className+=" geToolbarMenu",a.labels=!1);a=a.addItem("",null,null,e,null,null,null,!0);a.firstChild.style.fontSize=Menus.prototype.defaultFontSize+"px";e=a.getElementsByTagName("td");1<e.length&&(e[1].style.display="none",e[2].style.display="none");a.firstChild.innerText="";var q=document.createElement("input");q.setAttribute("id","geTitleOption");q.setAttribute("type","checkbox");q.style.verticalAlign="middle";e=document.createElement("label");mxUtils.write(e,mxResources.get("title"));e.setAttribute("for","geTitleOption");e.style.verticalAlign="middle";mxEvent.addGestureListeners(e,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(q,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));var k=document.createElement("input");k.setAttribute("id","geContainerOption");k.setAttribute("type","checkbox");k.style.verticalAlign="middle";var u=document.createElement("label");mxUtils.write(u,mxResources.get("container"));u.setAttribute("for","geContainerOption");u.style.verticalAlign="middle";mxEvent.addGestureListeners(u,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));f&&(a.firstChild.appendChild(q),a.firstChild.appendChild(e),mxUtils.br(a.firstChild),a.firstChild.appendChild(k),a.firstChild.appendChild(u),mxUtils.br(a.firstChild));var w=function(C,E){var D=document.createElement("table");D.className="geInsertTablePicker";D.setAttribute("border","1");D.style.borderCollapse=-"collapse";D.style.borderStyle="solid";D.style.marginBottom="4px";D.style.marginTop="8px";D.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var J=D.insertRow(G),L=0;L<E;L++)J.insertCell(-1);return D}(5,5);a.firstChild.appendChild(w);var z=document.createElement("div");z.style.textAlign="center";z.style.padding="4px";z.style.width="100%";z.innerHTML="1x1";a.firstChild.appendChild(z);mxEvent.addGestureListeners(w,null,null,mxUtils.bind(this,function(C){var E=h(C);null!=m&&null!=g&&E&&(b(C,g.sectionRowIndex++"collapse";D.style.borderStyle="solid";D.style.marginBottom="4px";D.style.marginTop="8px";D.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var I=D.insertRow(G),L=0;L<E;L++)I.insertCell(-1);return D}(5,5);a.firstChild.appendChild(w);var z=document.createElement("div");z.style.textAlign="center";z.style.padding="4px";z.style.width="100%";z.innerHTML="1x1";a.firstChild.appendChild(z);mxEvent.addGestureListeners(w,null,null,mxUtils.bind(this,function(C){var E=h(C);null!=m&&null!=g&&E&&(b(C,g.sectionRowIndex+1,m.cellIndex+1,q.checked,k.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(w,"mouseover",h)};Menus.prototype.edgeStyleChange=function(a,b,e,f,h,d,g,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var q=this.editorUi.editor.graph;q.stopEditing(!1);q.getModel().beginUpdate();try{for(var k=q.getSelectionCells(),u=[],w=0;w<k.length;w++){var z=k[w];if(q.getModel().isEdge(z)){if(g){var C=q.getCellGeometry(z);null!=C&&(C=C.clone(),C.points=null,q.getModel().setGeometry(z,C))}for(var E=0;E<e.length;E++)q.setCellStyles(e[E],f[E],[z]);u.push(z)}}this.editorUi.fireEvent(new mxEventObject("styleChanged","cells",u,"keys",e,"values",f,"force",0==k.length))}finally{q.getModel().endUpdate()}}),d,h))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};@@ -3689,7 +3690,7 @@ f.autoSizeCell(h[d],!1);null!=e&&e();this.editorUi.fireEvent(new mxEventObject("Menus.prototype.promptChange=function(a,b,e,f,h,d,g,m,q,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,w=f,z=u.getView().getState(u.getSelectionCell());null!=z&&(w=z.style[h]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(E){if(null!=E&&0<E.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(h,E)}finally{u.getModel().endUpdate()}}null!=m&&m(E)}}),mxResources.get("enterValue")+(0<e.length?" "+e:""),null,null,null,null,function(){null!=m&&null!=k&&m(null)});this.editorUi.showDialog(w.container,300,80,!0,!0);w.init()}),d,q,g)};Menus.prototype.pickColor=function(a,b,e,f,h,d){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var g=this.editorUi.editor.graph;if(null!=b&&g.cellEditor.isContentEditing()){var m=g.getSelectedEditingElement();null!=m&&null!=g.cellEditor.textarea&&(m=g.getTextColor(m,"forecolor"==b),this.editorUi.pickColor(m,mxUtils.bind(this,function(k){null!=g.cellEditor.textarea&&(Graph.setTextColor(g.cellEditor.textarea,k,"forecolor"==b),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",-["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[g.cellEditor.getEditingCell()])))}),f,h,d))}else{var q=g.getView().getState(g.getSelectionCell());m=mxConstants.NONE;null!=q&&(m=q.style[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)}}))};+["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[g.cellEditor.getEditingCell()])))}),f,h,d))}else{var q=g.getCellStyle(g.getSelectionCell(),!1);m=mxConstants.NONE;null!=q&&(m=q[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)}}))};Menus.prototype.toggleStyle=function(a,b){var e=this.editorUi.editor.graph;b=e.toggleCellStyles(a,b);this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[a],"values",[b],"cells",e.getSelectionCells()))};Menus.prototype.addMenuItem=function(a,b,e,f,h,d){var g=this.editorUi.actions.get(b);return null!=g&&(a.showDisabled||g.isEnabled())&&g.visible?(b=a.addItem(d||g.label,null,mxUtils.bind(this,function(m){try{g.funct(f,m)}catch(q){this.editorUi.handleError(q)}}),e,h,g.isEnabled()),g.toggleAction&&g.isSelected()&&a.addCheckmark(b,Editor.checkmarkImage),this.addShortcut(b,g,a.hideShortcuts),b):null};Menus.prototype.addShortcut=function(a,b,e){null!=b.shortcut&&(e?a.setAttribute("title",b.shortcut):(a=a.firstChild.nextSibling.nextSibling,e=document.createElement("span"),e.style.color="gray",mxUtils.write(e,b.shortcut),a.appendChild(e)))};Menus.prototype.addMenuItems=function(a,b,e,f,h){for(var d=0;d<b.length;d++)"-"==b[d]?a.addSeparator(e):this.addMenuItem(a,b[d],e,f,null!=h?h[d]:null)};@@ -3752,15 +3753,15 @@ Toolbar.prototype.addClickHandler=function(a,b){null!=b&&(mxEvent.addListener(a,Toolbar.prototype.createButton=function(a){var b=document.createElement("a");b.className="geButton";var e=document.createElement("div");null!=a&&"data:"==a.substring(0,5)&&(e.className="geAdaptiveAsset",e.style.backgroundImage="url("+a+")",e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="18px",e.style.width="22px",e.style.height="20px");b.appendChild(e);return b};Toolbar.prototype.createLabel=function(a,b){b=document.createElement("a");b.className="geLabel";mxUtils.write(b,a);return b};Toolbar.prototype.addMenuHandler=function(a,b,e,f){if(null!=e){var h=this.editorUi.editor.graph,d=null,g=!0;mxEvent.addListener(a,"click",mxUtils.bind(this,function(m){if(g&&(null==a.enabled||a.enabled)){h.popupMenuHandler.hideMenu();d=new mxPopupMenu(e);d.smartSeparators=!0;d.div.className+=" geToolbarMenu";d.showDisabled=f;d.labels=b;d.autoExpand=!0;!b&&d.div.scrollHeight>d.div.clientHeight&&(d.div.style.width="40px");d.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(d,-arguments);this.editorUi.resetCurrentMenu();d.destroy()});var q=mxUtils.getOffset(a);d.popup(q.x,q.y+a.offsetHeight,null,m);this.editorUi.setCurrentMenu(d,a)}g=!0;mxEvent.consume(m)}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(m){g=null==d||null==d.div||null==d.div.parentNode;m.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(E,D,G){if(null==E)return[G,G,G];var J=Math.floor(E),-L=G*(1-D);E=G*(1-D*(J%2?E-J:1-(E-J)));switch(J){case 6:case 0:return[G,E,L];case 1:return[E,G,L];case 2:return[L,G,E];case 3:return[L,E,G];case 4:return[E,L,G];case 5:return[G,L,E]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var e=document.createElement("div");e.style.border="1px solid light-dark(black, white)";e.style.backgroundImage="url("+this.hsImage++arguments);this.editorUi.resetCurrentMenu();d.destroy()});var q=mxUtils.getOffset(a);d.popup(q.x,q.y+a.offsetHeight,null,m);this.editorUi.setCurrentMenu(d,a)}g=!0;mxEvent.consume(m)}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(m){g=null==d||null==d.div||null==d.div.parentNode;m.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(E,D,G){if(null==E)return[G,G,G];var I=Math.floor(E),+L=G*(1-D);E=G*(1-D*(I%2?E-I:1-(E-I)));switch(I){case 6:case 0:return[G,E,L];case 1:return[E,G,L];case 2:return[L,G,E];case 3:return[L,E,G];case 4:return[E,L,G];case 5:return[G,L,E]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var e=document.createElement("div");e.style.border="1px solid light-dark(black, white)";e.style.backgroundImage="url("+this.hsImage+")";e.style.position="absolute";e.style.overflow="hidden";e.style.cursor="crosshair";e.style.width="181px";e.style.height="101px";e.style.left="6px";e.style.top="4px";var f=document.createElement("div");f.style.background="url("+this.crossImage+")";f.style.pointerEvents="none";f.style.position="absolute";f.style.width="15px";f.style.height="15px";f.style.left="-8px";f.style.top="-8px";var h=[0,0,1];e.appendChild(f);b.appendChild(e);sliderBox=document.createElement("div");sliderBox.style.position="absolute";sliderBox.style.cursor="pointer";sliderBox.style.width="38px";sliderBox.style.height="110px";sliderBox.style.left="199px";sliderBox.style.top="4px";var d=document.createElement("div");d.style.border="1px solid light-dark(black, white)";d.style.pointerEvents="none";d.style.overflow="hidden";d.style.position="absolute";d.style.width="16px";d.style.height="101px";d.style.left="9px";d.style.top="0px";var g=!1,m=!1,q=mxUtils.bind(this,function(E){var D=Math.round(100*(1-h[1]));f.style.left=-Math.round(h[0]/6*180)-8+"px";f.style.top=D-8+"px";D=d.childNodes;for(var G=a(h[0],h[1],1),J=0;J<D.length;J++)D[J].style.backgroundColor="rgb("+G[0]*(1-J/D.length)*255+", "+G[1]*(1-J/D.length)*255+", "+G[2]*(1-J/D.length)*255+")";C.style.top=Math.round(100*(1-h[2]))-4+"px";D=a(h[0],h[1],h[2]);D="#"+("0"+Math.round(255*D[0]).toString(16)).slice(-2)+("0"+Math.round(255*D[1]).toString(16)).slice(-2)+("0"+Math.round(255*D[2]).toString(16)).slice(-2);1!=E&&this.fireEvent(new mxEventObject("change","color",+Math.round(h[0]/6*180)-8+"px";f.style.top=D-8+"px";D=d.childNodes;for(var G=a(h[0],h[1],1),I=0;I<D.length;I++)D[I].style.backgroundColor="rgb("+G[0]*(1-I/D.length)*255+", "+G[1]*(1-I/D.length)*255+", "+G[2]*(1-I/D.length)*255+")";C.style.top=Math.round(100*(1-h[2]))-4+"px";D=a(h[0],h[1],h[2]);D="#"+("0"+Math.round(255*D[0]).toString(16)).slice(-2)+("0"+Math.round(255*D[1]).toString(16)).slice(-2)+("0"+Math.round(255*D[2]).toString(16)).slice(-2);1!=E&&this.fireEvent(new mxEventObject("change","color",mxUtils.rgba2hex(D)))}),k=mxUtils.bind(this,function(E){0==h[2]&&(h[2]=1);g=!0;w(E)}),u=mxUtils.bind(this,function(E){m=!0;w(E)}),w=mxUtils.bind(this,function(E){if(g){var D=e.getBoundingClientRect(),G=mxEvent.getClientX(E)-D.left;E=mxEvent.getClientY(E)-D.top;f.style.left=G-8+"px";f.style.top=E-8+"px";G*=6/180;E=1-E/100;D=void 0;0>G&&(G=0);6<G&&(G=6);0>E&&(E=0);1<E&&(E=1);0>D&&(D=0);1<D&&(D=1);G=a(null==G?h[0]:h[0]=G,null==E?h[1]:h[1]=E,null==D?h[2]:h[2]=D);this.fromString("#"+("0"+Math.floor(255*G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(D=sliderBox.getBoundingClientRect(),E=mxEvent.getClientY(E)-D.top,h[2]=Math.max(Math.min(1,1-E/100),0),q())}),z=mxUtils.bind(this,function(){g=m=!1});mxEvent.addGestureListeners(e,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,w,z);mxEvent.addListener(b,"mouseleave",z);for(k=0;101>k;k+=4)u=document.createElement("div"),u.style.height="4px",u.style.pointerEvents="none",d.appendChild(u);b.appendChild(d);var C=document.createElement("div");C.style.background="url("+this.arrowImage+")";C.style.position="absolute";C.style.pointerEvents="none";C.style.width="7px";C.style.height="11px";C.style.left="2px";C.style.top="-3px";sliderBox.appendChild(C);sliderBox.appendChild(d);b.appendChild(sliderBox);this.fromString=function(E,D){D=null!=D?D:!1;if(null==E||""==E||mxUtils.isVarColor(E)||E==mxConstants.NONE)E="#ffffff",D=!0;var G=mxUtils.parseColor(E);-E=G.r/255;var J=G.g/255,L=G.b/255,Q=Math.min(Math.min(E,J),L);G=Math.max(Math.max(E,J),L);var N=G-Q;0===N?E=[null,0,G]:(E=E===Q?3+(L-J)/N:J===Q?5+(E-L)/N:1+(J-E)/N,E=[6===E?0:E,N/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];q(D)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";+E=G.r/255;var I=G.g/255,L=G.b/255,Q=Math.min(Math.min(E,I),L);G=Math.max(Math.max(E,I),L);var N=G-Q;0===N?E=[null,0,G]:(E=E===Q?3+(L-I)/N:I===Q?5+(E-L)/N:1+(I-E)/N,E=[6===E?0:E,N/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];q(D)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";ColorPicker.prototype.crossImage="data:image/gif;base64,R0lGODlhDwAPAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAPAA8AAAIklB8Qx53b4otSUWcvyiz4/4AeQJbmKY4p1HHapBlwPL/uVRsFADs=";ColorPicker.prototype.arrowImage="data:image/gif;base64,R0lGODlhBwALAKECAAAAAP///6g8eKg8eCH5BAEKAAIALAAAAAAHAAsAAAITTIQYcLnsgGxvijrxqdQq6DRJAQA7";var ColorDialog=function(a,b,e,f,h,d,g){function m(ca){return mxUtils.color2hex("#"+ca).substring(1).toUpperCase()}function q(){Z.src="none"==V.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ca){V.style.display=ca||"none"==V.style.display?"flex":"none";q()}function u(ca){""==ca.value&&null!=L&&N?ca.style.background=ca==P?L.dark:L.light:""==ca.value||ca.value==mxConstants.NONE||mxUtils.isVarColor(ca.value)?ca.style.background="transparent":ca.style.background="#"+ca.value;ca.style.color="transparent"==ca.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(ca.style.background)?"#ffffff":"#000000"}function w(){u(U);u(P)}function z(ca){ca?g&&null!=L?(U.value=L.light.substring(1).toUpperCase(),ca=!1):(U.value="",P.value="",T.value="automatic",U.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),P.setAttribute("title",mxResources.get("useBlackAndWhite")),U.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==U.value&&null!=L&&(U.value=L.light.substring(1).toUpperCase()),@@ -3768,7 +3769,7 @@ U.removeAttribute("placeholder"),U.removeAttribute("title"),""==P.value&&null!=Lz(!1),ca!=P||U.value==mxConstants.NONE&&P.value==mxConstants.NONE||(T.value="custom"),ca==U&&"automatic"==T.value&&(U.value==mxConstants.NONE?P.value=mxConstants.NONE:mxUtils.isVarColor(U.value)?P.value=U.value:P.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+ca.value)).substring(1).toUpperCase()),w()):ia.click()}function E(){var ca=U.value,H=P.value;if(N&&null!=L||(/(^#?[a-zA-Z0-9]*$)/.test(ca)||mxUtils.isVarColor(ca))&&(/(^#?[a-zA-Z0-9]*$)/.test(H)||mxUtils.isVarColor(H))){if(N)ca="default";else if(""==ca&&(ca=mxConstants.NONE),""==H&&(H=mxConstants.NONE),ca==mxConstants.NONE||mxUtils.isVarColor(ca)||"#"==ca.charAt(0)||(ca="#"+m(ca)),H==mxConstants.NONE||mxUtils.isVarColor(H)||"#"==H.charAt(0)||(H="#"+m(H)),ca!=mxConstants.NONE&&H!=mxConstants.NONE||ColorDialog.addRecentColor(mxConstants.NONE,12),"automatic"!=T.value&&H!=mxConstants.NONE?ca==mxConstants.NONE?ColorDialog.addRecentColor(H.substring(1),12):ColorDialog.addRecentColor("light-dark("+ca+","+H+")",12):ca!=mxConstants.NONE&&ColorDialog.addRecentColor(ca.substring(1),12),"none"!=ca||"none"!=H)ca=ca==mxConstants.NONE?"transparent":ca,H=H==mxConstants.NONE?"transparent":H,g||"automatic"==T.value||(ca="light-dark("+ca+","+H+")");oa(ca);a.hideDialog()}else a.handleError({message:mxResources.get("invalidInput")})}function D(){mxClient.IS_TOUCH||(O.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?O.select():document.execCommand("selectAll",!1,null))}function G(){var ca=ba(0==ColorDialog.recentColors.length?-["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ca.style.marginBottom="8px";return ca}function J(ca){13==ca.keyCode&&(C(mxEvent.getSource(ca)),E())}var L=null!=d?mxUtils.getLightDarkColor(d,null,null,g):null,Q=a.editor.graph;this.editorUi=a;var N=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||mxUtils.isVarColor(b)||mxUtils.isHexColor(b)||mxUtils.isRgbColor(b)||mxUtils.isLightDarkColor(b)||(b=mxUtils.color2hex(b));var U=document.createElement("input");U.style.textOverflow="ellipsis";U.style.margin=+["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ca.style.marginBottom="8px";return ca}function I(ca){13==ca.keyCode&&(C(mxEvent.getSource(ca)),E())}var L=null!=d?mxUtils.getLightDarkColor(d,null,null,g):null,Q=a.editor.graph;this.editorUi=a;var N=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||mxUtils.isVarColor(b)||mxUtils.isHexColor(b)||mxUtils.isRgbColor(b)||mxUtils.isLightDarkColor(b)||(b=mxUtils.color2hex(b));var U=document.createElement("input");U.style.textOverflow="ellipsis";U.style.margin="0 0 0 4px";U.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var Y=document.createElement("div");Y.style.display="flex";Y.style.alignItems="center";d.appendChild(Y);var P=document.createElement("input");P.style.textOverflow="ellipsis";P.style.margin="0 4px";P.style.maxWidth="60px";P.style.width="100%";var T=document.createElement("select");T.style.textOverflow="ellipsis";T.style.width="100%";var K=document.createElement("option");K.setAttribute("value","automatic");mxUtils.write(K,mxResources.get("automatic"));T.appendChild(K);K=document.createElement("option");K.setAttribute("value","custom");mxUtils.write(K,mxResources.get("userDefined"));T.appendChild(K);T.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var V=document.createElement("div");V.style.padding="0 6px 0 6px";K=document.createElement("img");K.setAttribute("title",mxResources.get("dark"));K.className="geAdaptiveAsset";K.src=Editor.thinDarkImage;K.style.width="20px";V.appendChild(K);mxEvent.addListener(K,"click",function(){P.focus()});V.appendChild(P);V.appendChild(T);V.style.display="flex";V.style.alignItems="center";K=document.createElement("div");K.style.display="flex";K.style.alignItems="center";K.style.userSelect="none";K.style.cursor="pointer";K.style.padding="2px 0 2px 0";var Z=document.createElement("img");Z.setAttribute("title",mxResources.get("dark"));Z.className="geAdaptiveAsset";Z.style.marginLeft="-2px";K.appendChild(Z);mxUtils.write(K,mxResources.get("advanced"));q();mxEvent.addListener(K,"click",@@ -3785,16 +3786,16 @@ E));var da=document.createElement("input");da.setAttribute("type","color");da.st"relative";K.style.verticalAlign="middle";K.style.marginTop="-2px";K.style.width="auto";K.style.height="14px";Q.appendChild(K);Y.appendChild(Q);e.appendChild(d);mxEvent.addListener(da,"change",function(){sa.fromString(da.value)});g||e.appendChild(V);G();d=ba(this.presetColors);d.style.marginBottom="8px";d=ba(this.defaultColors);d.style.marginBottom="16px";e.appendChild(X);d=document.createElement("div");d.style.display="flex";d.style.whiteSpace="nowrap";d.style.alignItems="center";d.style.justifyContent="end";a.isOffline()||d.appendChild(a.createHelpIcon("https://github.com/jgraph/drawio/discussions/4713"));Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=f&&f()});Y.className="geBtn";a.editor.cancelFirst&&d.appendChild(Y);Q=mxUtils.button(mxResources.get("apply"),E);Q.className="geBtn gePrimaryBtn";d.appendChild(Q);a.editor.cancelFirst||d.appendChild(Y);null!=b&&("default"==b?ia.click():(Y=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==Y.light?U.value=mxConstants.NONE:mxUtils.isVarColor(Y.light)?U.value=Y.light:(mxUtils.isRgbColor(Y.light)?Y.light=mxUtils.rgba2hex(Y.light):mxUtils.isHexColor(Y.light)||(Y.light="#"+m(Y.light)),U.value=Y.light.substring(1).toUpperCase()),b==mxConstants.NONE||"transparent"==Y.dark?P.value=mxConstants.NONE:mxUtils.isVarColor(Y.dark)?P.value=Y.dark:(mxUtils.isRgbColor(Y.dark)?Y.dark=mxUtils.rgba2hex(Y.dark):mxUtils.isHexColor(Y.dark)||(Y.dark="#"+m(Y.dark)),P.value=Y.dark.substring(1).toUpperCase()),sa.fromString(O.value,-!0),w()));g||!ColorDialog.collapsed||"automatic"!=T.value||Editor.isDarkMode()||(V.style.display="none",q());e.appendChild(d);this.picker=sa;this.colorInput=U;mxEvent.addListener(U,"keypress",J);mxEvent.addListener(P,"keypress",J);mxEvent.addListener(e,"keydown",function(ca){27==ca.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(ca))});this.container=e};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");+!0),w()));g||!ColorDialog.collapsed||"automatic"!=T.value||Editor.isDarkMode()||(V.style.display="none",q());e.appendChild(d);this.picker=sa;this.colorInput=U;mxEvent.addListener(U,"keypress",I);mxEvent.addListener(P,"keypress",I);mxEvent.addListener(e,"keydown",function(ca){27==ca.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(ca))});this.container=e};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");ColorDialog.prototype.colorNames={};ColorDialog.prototype.defaultColors="none FFFFFF E6E6E6 CCCCCC B3B3B3 999999 808080 666666 4D4D4D 333333 1A1A1A 000000 FFCCCC FFE6CC FFFFCC E6FFCC CCFFCC CCFFE6 CCFFFF CCE5FF CCCCFF E5CCFF FFCCFF FFCCE6 FF9999 FFCC99 FFFF99 CCFF99 99FF99 99FFCC 99FFFF 99CCFF 9999FF CC99FF FF99FF FF99CC FF6666 FFB366 FFFF66 B3FF66 66FF66 66FFB3 66FFFF 66B2FF 6666FF B266FF FF66FF FF66B3 FF3333 FF9933 FFFF33 99FF33 33FF33 33FF99 33FFFF 3399FF 3333FF 9933FF FF33FF FF3399 FF0000 FF8000 FFFF00 80FF00 00FF00 00FF80 00FFFF 007FFF 0000FF 7F00FF FF00FF FF0080 CC0000 CC6600 CCCC00 66CC00 00CC00 00CC66 00CCCC 0066CC 0000CC 6600CC CC00CC CC0066 990000 994C00 999900 4D9900 009900 00994D 009999 004C99 000099 4C0099 990099 99004D 660000 663300 666600 336600 006600 006633 006666 003366 000066 330066 660066 660033 330000 331A00 333300 1A3300 003300 00331A 003333 001933 000033 190033 330033 33001A".split(" ");ColorDialog.prototype.createApplyFunction=function(){return ColorDialog.createApplyFunction(this.editorUi,this.currentColorKey)};ColorDialog.createApplyFunction=function(a,b){return function(e){var f=a.editor.graph;f.getModel().beginUpdate();try{f.setCellStyles(b,e),a.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[e],"cells",f.getSelectionCells()))}finally{f.getModel().endUpdate()}}};ColorDialog.recentColors=[];ColorDialog.addRecentColor=function(a,b){null!=a&&(mxUtils.remove(a,ColorDialog.recentColors),ColorDialog.recentColors.splice(0,0,a),ColorDialog.recentColors.length>=b&&ColorDialog.recentColors.pop())};ColorDialog.resetRecentColors=function(){ColorDialog.recentColors=[]};ColorDialog.collapsed=!0;var AboutDialog=function(a){var b=document.createElement("div");b.setAttribute("align","center");var e=document.createElement("h3");mxUtils.write(e,mxResources.get("about")+" GraphEditor");b.appendChild(e);e=document.createElement("img");e.style.border="0px";e.setAttribute("width","176");e.setAttribute("width","151");e.setAttribute("src",IMAGE_PATH+"/logo.png");b.appendChild(e);mxUtils.br(b);mxUtils.write(b,"Powered by mxGraph "+mxClient.VERSION);mxUtils.br(b);e=document.createElement("a");e.setAttribute("href","http://www.jgraph.com/");e.setAttribute("target","_blank");mxUtils.write(e,"www.jgraph.com");b.appendChild(e);mxUtils.br(b);mxUtils.br(b);e=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});e.className="geBtn gePrimaryBtn";b.appendChild(e);this.container=b},TextareaDialog=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C,E){k=null!=k?k:!1;g=document.createElement("div");g.style.position="absolute";g.style.top="20px";g.style.bottom="20px";g.style.left="20px";g.style.right="20px";m=document.createElement("div");-m.style.position="absolute";m.style.left="0px";m.style.right="0px";var D=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";D.style.top="20px";D.style.bottom="64px";G.style.bottom="0px";G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);g.appendChild(m);g.appendChild(D);g.appendChild(G);null!=E&&m.appendChild(E);var J=document.createElement("textarea");u?J.setAttribute("wrap","off"):J.style.wordBreak="break-all";-J.setAttribute("spellcheck","false");J.setAttribute("autocorrect","off");J.setAttribute("autocomplete","off");J.setAttribute("autocapitalize","off");mxUtils.write(J,e||"");J.style.resize="none";J.style.outline="none";J.style.position="absolute";J.style.boxSizing="border-box";J.style.top="0px";J.style.left="0px";J.style.height="100%";J.style.width="100%";this.textarea=J;this.init=function(){J.focus();J.scrollTop=0};D.appendChild(J);null==z||a.isOffline()||G.appendChild(a.createHelpIcon(z));if(null!=-C)for(b=0;b<C.length;b++)(function(Q,N,U){Q=mxUtils.button(Q,function(Y){N(Y,J)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=h&&h()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=q&&q(G,J);if(null!=f){var L=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();f(J.value)});L.setAttribute("title",-"Ctrl+Enter");L.className="geBtn gePrimaryBtn";G.appendChild(L);mxEvent.addListener(J,"keydown",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&L.click()})}a.editor.cancelFirst||G.appendChild(d);this.container=g},EditDiagramDialog=function(a){var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.setAttribute("wrap","off");e.setAttribute("spellcheck","false");e.setAttribute("autocorrect","off");e.setAttribute("autocomplete","off");e.setAttribute("autocapitalize",+m.style.position="absolute";m.style.left="0px";m.style.right="0px";var D=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";D.style.top="20px";D.style.bottom="64px";G.style.bottom="0px";G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);g.appendChild(m);g.appendChild(D);g.appendChild(G);null!=E&&m.appendChild(E);var I=document.createElement("textarea");u?I.setAttribute("wrap","off"):I.style.wordBreak="break-all";+I.setAttribute("spellcheck","false");I.setAttribute("autocorrect","off");I.setAttribute("autocomplete","off");I.setAttribute("autocapitalize","off");mxUtils.write(I,e||"");I.style.resize="none";I.style.outline="none";I.style.position="absolute";I.style.boxSizing="border-box";I.style.top="0px";I.style.left="0px";I.style.height="100%";I.style.width="100%";this.textarea=I;this.init=function(){I.focus();I.scrollTop=0};D.appendChild(I);null==z||a.isOffline()||G.appendChild(a.createHelpIcon(z));if(null!=+C)for(b=0;b<C.length;b++)(function(Q,N,U){Q=mxUtils.button(Q,function(Y){N(Y,I)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=h&&h()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=q&&q(G,I);if(null!=f){var L=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();f(I.value)});L.setAttribute("title",+"Ctrl+Enter");L.className="geBtn gePrimaryBtn";G.appendChild(L);mxEvent.addListener(I,"keydown",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&L.click()})}a.editor.cancelFirst||G.appendChild(d);this.container=g},EditDiagramDialog=function(a){var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.setAttribute("wrap","off");e.setAttribute("spellcheck","false");e.setAttribute("autocorrect","off");e.setAttribute("autocomplete","off");e.setAttribute("autocapitalize","off");e.style.overflow="auto";e.style.resize="none";e.style.width="600px";e.style.height="360px";e.style.marginBottom="16px";var f=a.getDiagramSnapshot();e.value=mxUtils.getPrettyXml(f.node);b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(m){m.stopPropagation();m.preventDefault()},!1),e.addEventListener("drop",function(m){m.stopPropagation();m.preventDefault();if(0<m.dataTransfer.files.length){m=m.dataTransfer.files[0];var q=new FileReader;q.onload=function(k){e.value=k.target.result};q.readAsText(m)}else e.value=a.extractGraphModelFromEvent(m)},!1));var h=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});h.className="geBtn";a.editor.cancelFirst&&b.appendChild(h);var d=document.createElement("select");d.style.textOverflow="ellipsis";d.style.width="196px";d.className="geBtn";if(a.editor.graph.isEnabled()){var g=document.createElement("option");g.setAttribute("value","apply");mxUtils.write(g,mxResources.get("apply",null,"Update Existing Drawing"));d.appendChild(g)}a.editor.graph.isEnabled()&&(g=document.createElement("option"),g.setAttribute("value","insert"),mxUtils.write(g,mxResources.get("insert")),d.appendChild(g));g=document.createElement("option");g.setAttribute("value","new");mxUtils.write(g,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&d.appendChild(g);b.appendChild(d);g=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(e.value)),q=null;@@ -3808,11 +3809,11 @@ k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(kk=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("zoom")+" (%):");h.appendChild(k);var z=document.createElement("input");z.setAttribute("type","number");z.setAttribute("value","100");z.style.width="180px";k=document.createElement("td");k.appendChild(z);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("width")+":");h.appendChild(k);var C=document.createElement("input");C.setAttribute("value",g);C.style.width="180px";k=document.createElement("td");k.appendChild(C);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");h.appendChild(k);var E=document.createElement("input");E.setAttribute("value",m);E.style.width="180px";k=document.createElement("td");k.appendChild(E);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");h.appendChild(k);var D=document.createElement("select");D.style.width="180px";k=document.createElement("option");k.setAttribute("value","100");mxUtils.write(k,"100dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","200");mxUtils.write(k,"200dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","300");mxUtils.write(k,"300dpi");D.appendChild(k);k=document.createElement("option");-k.setAttribute("value","400");mxUtils.write(k,"400dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));D.appendChild(k);var G=document.createElement("input");G.style.width="180px";G.style.display="none";G.setAttribute("value","100");G.setAttribute("type","number");G.setAttribute("min","50");G.setAttribute("step","50");var J=!1;mxEvent.addListener(D,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display=-"",G.focus()):(G.value=this.value,J||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var P=parseInt(G.value);isNaN(P)||0>=P?G.style.backgroundColor="red":(G.style.backgroundColor="",J||(z.value=P))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");h.appendChild(k);var L=document.createElement("input");+k.setAttribute("value","400");mxUtils.write(k,"400dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));D.appendChild(k);var G=document.createElement("input");G.style.width="180px";G.style.display="none";G.setAttribute("value","100");G.setAttribute("type","number");G.setAttribute("min","50");G.setAttribute("step","50");var I=!1;mxEvent.addListener(D,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display=+"",G.focus()):(G.value=this.value,I||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var P=parseInt(G.value);isNaN(P)||0>=P?G.style.backgroundColor="red":(G.style.backgroundColor="",I||(z.value=P))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");h.appendChild(k);var L=document.createElement("input");L.setAttribute("type","checkbox");L.checked=null==f.background||f.background==mxConstants.NONE;k=document.createElement("td");k.appendChild(L);mxUtils.write(k,mxResources.get("transparent"));h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");h.appendChild(k);var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.checked=!1;k=document.createElement("td");k.appendChild(Q);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");h.appendChild(k);var N=document.createElement("input");N.setAttribute("type","number");N.setAttribute("value",ExportDialog.lastBorderValue);N.style.width="180px";k=document.createElement("td");k.appendChild(N);h.appendChild(k);q.appendChild(h);d.appendChild(q);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(z,"change",-function(){J=!0;var P=Math.max(0,parseFloat(z.value)||100)/100;z.value=parseFloat((100*P).toFixed(2));0<g?(C.value=Math.floor(g*P),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(C,"change",function(){var P=parseInt(C.value)/g;0<P?(z.value=parseFloat((100*P).toFixed(2)),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(E,"change",function(){var P=parseInt(E.value)/m;0<P?(z.value=parseFloat((100*P).toFixed(2)),C.value=Math.floor(g*+function(){I=!0;var P=Math.max(0,parseFloat(z.value)||100)/100;z.value=parseFloat((100*P).toFixed(2));0<g?(C.value=Math.floor(g*P),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(C,"change",function(){var P=parseInt(C.value)/g;0<P?(z.value=parseFloat((100*P).toFixed(2)),E.value=Math.floor(m*P)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(E,"change",function(){var P=parseInt(E.value)/m;0<P?(z.value=parseFloat((100*P).toFixed(2)),C.value=Math.floor(g*P)):(z.value="100",C.value=g,E.value=m);e()});h=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var U=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(z.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var P=u.value,T=w.value,K=Math.max(0,parseFloat(z.value)||100)/100,V=Math.max(0,parseInt(N.value)),Z=f.background,ia=Math.max(1,parseInt(G.value));if(("svg"==T||"png"==T||"pdf"==T)&&L.checked)Z=null;else if(null==Z||Z==mxConstants.NONE)Z="#ffffff";ExportDialog.lastBorderValue=V;ExportDialog.exportFile(a,P,T,Z,K,V,ia,Q.checked)}}));U.className="geBtn gePrimaryBtn";var Y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});Y.className="geBtn";a.editor.cancelFirst?(k.appendChild(Y),k.appendChild(U)):(k.appendChild(U),k.appendChild(Y));h.appendChild(k);q.appendChild(h);d.appendChild(q);this.container=d};ExportDialog.lastBorderValue=0;ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;@@ -3822,7 +3823,7 @@ ExportDialog.saveLocalFile=function(a,b,e,f){b.length<MAX_REQUEST_SIZE?(a.hideDivar EditDataDialog=function(a,b){function e(){0<N.value.length?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")}var f=document.createElement("div"),h=a.editor.graph,d=h.getModel().getValue(b);if(!mxUtils.isNode(d)){var g=mxUtils.createXmlDocument().createElement("object");g.setAttribute("label",d||"");d=g}var m={};try{var q=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=q&&(m=JSON.parse(q))}catch(P){}var k=new mxForm("properties");k.table.style.width="100%";var u=d.attributes,w=[],z=[],C=0,E=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,D=function(P,T){var K=document.createElement("div");K.style.position="relative";K.style.paddingRight="20px";K.style.boxSizing="border-box";K.style.width="100%";var V=document.createElement("a"),Z=mxUtils.createImage(Dialog.prototype.closeImage);Z.style.height="9px";Z.style.fontSize="9px";Z.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";V.className="geButton";V.setAttribute("title",mxResources.get("delete"));V.style.position="absolute";V.style.top="4px";V.style.right="0px";V.style.margin="0px";V.style.width="9px";V.style.height="9px";V.style.cursor="pointer";V.appendChild(Z);T=function(ia){return function(){for(var oa=0,sa=0;sa<w.length;sa++){if(w[sa]==ia){z[sa]=null;k.table.deleteRow(oa+(null!=E?1:0));break}null!=z[sa]&&oa++}}}(T);mxEvent.addListener(V,"click",T);T=P.parentNode;K.appendChild(P);K.appendChild(V);T.appendChild(K)};g=function(P,T,K){w[P]=T;z[P]=k.addTextarea(w[C]+-":",K,2);z[P].style.width="100%";0<K.indexOf("\n")&&z[P].setAttribute("rows","2");D(z[P],T);null!=m[T]&&0==m[T].editable&&z[P].setAttribute("disabled","disabled")};q=[];for(var G=h.getModel().getParent(b)==h.getModel().getRoot(),J=h.getCellStyle(b),L=0;L<u.length;L++)("label"!=u[L].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[L].nodeName&&q.push({name:u[L].nodeName,value:u[L].nodeValue});q.sort(function(P,T){return"label"==P.name?1:"label"==T.name?-1:P.name<T.name?-1:P.name>+":",K,2);z[P].style.width="100%";0<K.indexOf("\n")&&z[P].setAttribute("rows","2");D(z[P],T);null!=m[T]&&0==m[T].editable&&z[P].setAttribute("disabled","disabled")};q=[];for(var G=h.getModel().getParent(b)==h.getModel().getRoot(),I=h.getCellStyle(b),L=0;L<u.length;L++)("label"!=u[L].nodeName||"1"==I.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[L].nodeName&&q.push({name:u[L].nodeName,value:u[L].nodeValue});q.sort(function(P,T){return"label"==P.name?1:"label"==T.name?-1:P.name<T.name?-1:P.name>T.name?1:0});if(null!=E){u=document.createElement("div");u.style.width="100%";u.style.fontSize="11px";u.style.textAlign="center";mxUtils.write(u,E);var Q=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(P){P=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(T){if(null!=T&&0<T.length&&T!=E)if(h.model.isRoot(b)){var K=a.getPageById(E);if(null!=K)if(null==a.getPageById(T)){var V=a.getPageIndex(K);0<=V&&(a.removePage(K),K.node.setAttribute("id",T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),a.insertPage(K,V))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(T)?(h.getModel().cellRemoved(b),b.setId(T),E=T,Q.innerHTML=mxUtils.htmlEntities(T),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[T])})}),mxResources.get("id"));a.showDialog(P.container,300,80,!0,!0);P.init()})}for(L=0;L<q.length;L++)g(C,q[L].name,q[L].value),C++;q=document.createElement("div");q.style.position="absolute";q.style.top="30px";q.style.left="30px";q.style.right="30px";q.style.bottom="80px";q.style.overflowY="auto";q.appendChild(k.table);g=document.createElement("div");g.style.display="flex";g.style.alignItems="center";g.style.boxSizing="border-box";g.style.paddingRight="160px";g.style.whiteSpace="nowrap";g.style.marginTop="6px";g.style.width="100%";var N=document.createElement("input");N.setAttribute("placeholder",mxResources.get("enterPropertyName"));N.setAttribute("type",@@ -3831,7 +3832,7 @@ q.style.position="absolute";q.style.top="30px";q.style.left="30px";q.style.rightU.style.position="absolute";U.style.overflow="hidden";U.style.width="144px";U.style.right="0px";U.className="geBtn";g.appendChild(U);q=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});q.setAttribute("title","Escape");q.className="geBtn";g=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(P){var T=h.getDataForCells([b],!0);P=new EmbedDialog(a,JSON.stringify(T,null,2),null,null,function(){console.log(T);a.alert("Written to Console (Dev Tools)")},mxResources.get("export"),null,"Console","data.json");a.showDialog(P.container,450,240,!0,!0);P.init()}));g.setAttribute("title",mxResources.get("export"));g.className="geBtn";var Y=mxUtils.button(mxResources.get("apply"),function(){try{a.hideDialog.apply(a,arguments);d=d.cloneNode(!0);for(var P=!1,T=0;T<w.length;T++)null==z[T]?d.removeAttribute(w[T]):(d.setAttribute(w[T],z[T].value),P=P||"placeholder"==w[T]&&"1"==d.getAttribute("placeholders"));P&&d.removeAttribute("label");h.getModel().setValue(b,d)}catch(K){mxUtils.alert(K)}});Y.setAttribute("title","Ctrl+Enter");Y.className="geBtn gePrimaryBtn";mxEvent.addListener(f,"keydown",function(P){13==P.keyCode&&mxEvent.isControlDown(P)&&Y.click()});mxEvent.addListener(N,"keyup",e);mxEvent.addListener(N,"change",e);u=document.createElement("div");u.style.cssText="position:absolute;left:30px;right:30px;text-align:right;bottom:30px;height:40px;";if(a.editor.graph.getModel().isVertex(b)||a.editor.graph.getModel().isEdge(b))G=document.createElement("span"),-G.style.marginRight="10px",J=document.createElement("input"),J.setAttribute("type","checkbox"),J.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(J.setAttribute("checked","checked"),J.defaultChecked=!0),mxEvent.addListener(J,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):d.setAttribute("placeholders","1")}),G.appendChild(J),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),+G.style.marginRight="10px",I=document.createElement("input"),I.setAttribute("type","checkbox"),I.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(I.setAttribute("checked","checked"),I.defaultChecked=!0),mxEvent.addListener(I,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):d.setAttribute("placeholders","1")}),G.appendChild(I),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),u.appendChild(G);a.editor.cancelFirst&&u.appendChild(q);u.appendChild(g);u.appendChild(Y);a.editor.cancelFirst||u.appendChild(q);f.appendChild(u);this.container=f};EditDataDialog.getDisplayIdForCell=function(a,b){var e=null;null!=a.editor.graph.getModel().getParent(b)&&(e=b.getId());return e};EditDataDialog.placeholderHelpLink=null;var LinkDialog=function(a,b,e,f){var h=document.createElement("div");mxUtils.write(h,mxResources.get("editLink")+":");var d=document.createElement("div");d.className="geTitle";d.style.backgroundColor="transparent";d.style.borderColor="transparent";d.style.whiteSpace="nowrap";d.style.textOverflow="clip";d.style.cursor="default";d.style.paddingRight="20px";var g=document.createElement("input");g.setAttribute("value",b);g.setAttribute("placeholder","http://www.example.com/");g.setAttribute("type","text");g.style.marginTop="6px";g.style.width="400px";g.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";g.style.backgroundRepeat="no-repeat";g.style.backgroundPosition="100% 50%";g.style.paddingRight="14px";b=document.createElement("div");b.setAttribute("title",mxResources.get("reset"));b.style.position="relative";b.style.left="-16px";b.style.width="12px";b.style.height="14px";b.style.cursor="pointer";b.style.display="inline-block";b.style.top="3px";b.style.background="url("+IMAGE_PATH+"/transparent.gif)";@@ -3848,13 +3849,13 @@ q.removeSelectionCells(q.getModel().getDescendants(oa));mxEvent.consume(H)}});X."block",ia.style.textAlign="right",ia.style.whiteSpace="nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<Z&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toBack")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="▼",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,Z-1);mxEvent.consume(H)})),0<=Z&&Z<C-1&&(X=document.createElement("a"),X.setAttribute("title",mxResources.get("toFront")),X.className="geButton",X.style.cssFloat="none",X.innerHTML="▲",X.style.width="14px",X.style.height="14px",X.style.fontSize="14px",X.style.margin="0px",X.style.marginTop="-1px",ia.appendChild(X),mxEvent.addListener(X,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,Z+1);mxEvent.consume(H)})),O.appendChild(ia);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&(O.setAttribute("draggable","true"),O.style.cursor="move")}mxEvent.addListener(O,"dblclick",function(H){var ea=mxEvent.getSource(H).nodeName;"INPUT"!=ea&&"IMG"!=ea&&"true"!=ba.contentEditable&&(m(oa),mxEvent.consume(H))});q.getDefaultParent()==oa&&(O.classList.add("geActivePage"),O.style.fontWeight=q.isEnabled()?"bold":"",E=oa);mxEvent.addListener(O,"click",function(H){q.isEnabled()&&"true"!=ba.contentEditable&&(q.setDefaultParent(sa),q.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&q.setSelectionCells(oa.children),-mxEvent.consume(H))});u.appendChild(O)}q.isEnabled()?(J.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(J.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=q.model.getChildCount(q.model.root);u.innerText="";N.clear();for(var K=C-1;0<=K;K--)mxUtils.bind(this,function(Z){T(K,q.convertValueToString(Z)||mxResources.get("background"),Z,Z)})(q.model.getChildAt(q.model.root,-K));var V=q.convertValueToString(E)||mxResources.get("background");J.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));q.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(T){if(q.isEnabled()&&null!=T){var K=N.get(T);if(null!=K){var V=K.getElementsByTagName("span");if(null!=V&&0<V.length){var Z=V[0],ia=mxUtils.getTextContent(Z);Z.style.textOverflow="";Z.style.cursor="text";Z.contentEditable="true";Z.focus();document.execCommand("selectAll",+mxEvent.consume(H))});u.appendChild(O)}q.isEnabled()?(I.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(I.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=q.model.getChildCount(q.model.root);u.innerText="";N.clear();for(var K=C-1;0<=K;K--)mxUtils.bind(this,function(Z){T(K,q.convertValueToString(Z)||mxResources.get("background"),Z,Z)})(q.model.getChildAt(q.model.root,+K));var V=q.convertValueToString(E)||mxResources.get("background");I.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));q.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(T){if(q.isEnabled()&&null!=T){var K=N.get(T);if(null!=K){var V=K.getElementsByTagName("span");if(null!=V&&0<V.length){var Z=V[0],ia=mxUtils.getTextContent(Z);Z.style.textOverflow="";Z.style.cursor="text";Z.contentEditable="true";Z.focus();document.execCommand("selectAll",!1,null);K.removeAttribute("draggable");K.style.cursor="";var oa=function(sa){if("true"==Z.contentEditable){Z.contentEditable="false";var O=mxUtils.getTextContent(Z);sa&&O!=ia?(O=mxUtils.getTextContent(Z),0<O.length?q.cellLabelChanged(T,O):q.cellLabelChanged(T,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(Z,"keydown",function(sa){if(13==sa.keyCode||27==sa.keyCode)oa(13==sa.keyCode),mxEvent.consume(sa)});mxEvent.addListener(Z,"blur",function(sa){oa(!0);mxEvent.consume(sa)})}}}}var q=a.editor.graph,k=document.createElement("div");k.style.userSelect="none";k.style.height="100%";k.style.marginBottom="10px";k.style.overflow="auto";var u=document.createElement("div");u.style.position="absolute";u.style.overflow="auto";u.style.left="0px";u.style.right="0px";u.style.top="0px";u.style.bottom=parseInt("26px")+7+"px";k.appendChild(u);var w=null,z=null;mxEvent.addListener(k,"dragover",function(T){T.dataTransfer.dropEffect="move";z=0;T.stopPropagation();T.preventDefault()});mxEvent.addListener(k,"drop",function(T){T.stopPropagation();T.preventDefault()});var C=null,E=null,D=document.createElement("div");D.className="geToolbarContainer";D.style.position="absolute";D.style.bottom="0px";D.style.left="0px";D.style.right="0px";D.style.height="26px";D.style.overflow="hidden";D.style.padding="3px 4px 4px 4px";D.style.borderWidth="1px 0px 0px 0px";D.style.borderStyle="solid";D.style.display="block";D.style.whiteSpace="nowrap";var G=document.createElement("a");G.className="geToolbarButton geAdaptiveAsset geToggleItem";-G.style.width="16px";G.style.height="18px";G.style.backgroundPosition="center center";G.style.backgroundRepeat="no-repeat";G.style.backgroundSize="20px";G.style.margin="0 2px";G.style.display="inline-block";G.style.cursor="pointer";var J=G.cloneNode(!1);J.style.backgroundImage="url("+Editor.trashImage+")";J.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(J,"click",function(T){if(q.isEnabled()){q.model.beginUpdate();try{var K=q.model.root.getIndex(E);q.removeCells([E],!1);-0==q.model.getChildCount(q.model.root)?(q.model.add(q.model.root,new mxCell),q.setDefaultParent(null)):0<K&&K<=q.model.getChildCount(q.model.root)?q.setDefaultParent(q.model.getChildAt(q.model.root,K-1)):q.setDefaultParent(null)}finally{q.model.endUpdate()}}mxEvent.consume(T)});q.isEnabled()||J.classList.add("mxDisabled");D.appendChild(J);var L=G.cloneNode();L.style.backgroundImage="url("+Editor.layersImage+")";L.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(L,+G.style.width="16px";G.style.height="18px";G.style.backgroundPosition="center center";G.style.backgroundRepeat="no-repeat";G.style.backgroundSize="20px";G.style.margin="0 2px";G.style.display="inline-block";G.style.cursor="pointer";var I=G.cloneNode(!1);I.style.backgroundImage="url("+Editor.trashImage+")";I.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(I,"click",function(T){if(q.isEnabled()){q.model.beginUpdate();try{var K=q.model.root.getIndex(E);q.removeCells([E],!1);+0==q.model.getChildCount(q.model.root)?(q.model.add(q.model.root,new mxCell),q.setDefaultParent(null)):0<K&&K<=q.model.getChildCount(q.model.root)?q.setDefaultParent(q.model.getChildAt(q.model.root,K-1)):q.setDefaultParent(null)}finally{q.model.endUpdate()}}mxEvent.consume(T)});q.isEnabled()||I.classList.add("mxDisabled");D.appendChild(I);var L=G.cloneNode();L.style.backgroundImage="url("+Editor.layersImage+")";L.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(L,"click",function(T){if(q.isEnabled()&&!q.isSelectionEmpty()){var K=mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(V,Z){for(var ia=q.getLayerForCells(q.getSelectionCells()),oa=C-1;0<=oa;oa--)mxUtils.bind(this,function(sa){var O="1"==mxUtils.getValue(q.getCurrentCellStyle(sa),"locked","0"),X=V.addItem(q.convertValueToString(sa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||q.moveCells(q.getSelectionCells(),0,0,!1,sa)}),Z,null,null,!O);O?V.addCheckmark(X,Editor.lockedImage):sa==ia&&V.addCheckmark(X,Editor.checkmarkImage)})(q.model.getChildAt(q.model.root,oa))}),K.x,K.y+L.offsetHeight,T)}});D.appendChild(L);var Q=G.cloneNode(!1);Q.style.backgroundImage="url("+Editor.editImage+")";Q.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(Q,"click",function(T){q.isEnabled()&&a.showDataDialog(E);mxEvent.consume(T)});q.isEnabled()||Q.classList.add("mxDisabled");D.appendChild(Q);var N=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,"click",function(T){if(q.isEnabled()){T=null;q.model.beginUpdate();try{T=q.cloneCell(E),q.cellLabelChanged(T,mxResources.get("untitledLayer")),T.setVisible(!0),T=q.addCell(T,q.model.root),q.setDefaultParent(T)}finally{q.model.endUpdate()}null==T||q.isCellLocked(T)||q.selectAll(T)}});q.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",@@ -12539,10 +12540,10 @@ mxResources.get("find")+" (Enter)");m.style.float="none";m.style.width="120px";m"8px";T.style.overflow="hidden";T.style.textOverflow="ellipsis";T.className="geBtn gePrimaryBtn";T.setAttribute("disabled","disabled");E.appendChild(T);mxUtils.br(E);E.appendChild(N);N=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));N.setAttribute("title",mxResources.get("close"));N.style.float="none";N.style.width="120px";N.style.marginTop="6px";N.style.marginLeft="8px";N.style.overflow="hidden";N.style.textOverflow="ellipsis";N.className="geBtn";E.appendChild(N);mxUtils.br(E);E.appendChild(u)}else N.style.width="90px",m.style.width="90px";mxEvent.addListener(C,"keyup",function(k){if(91==k.keyCode||93==k.keyCode||17==k.keyCode)mxEvent.consume(k);else if(27==k.keyCode)K.funct();else if(P!=C.value.toLowerCase()||13==k.keyCode)try{C.style.backgroundColor=J()?"":"light-dark(#ffcfcf, #ff0000)"}catch(v){C.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(z,"keydown",function(k){70==k.keyCode&&b.keyHandler.isControlDown(k)&&!mxEvent.isShiftDown(k)&&(K.funct(),mxEvent.consume(k))});this.window=new mxWindow(mxResources.get("find")+(y?"/"+mxResources.get("replace"):""),z,g,l,d,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(C.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null),-null!=b.pages&&1<b.pages.length?U.removeAttribute("disabled"):(U.checked=!1,U.setAttribute("disabled","disabled"))):L.container.focus()}));b.installResizeHandler(this,!1)},FreehandWindow=function(b,g,l,d,q,y){var x=b.editor.graph,D=document.createElement("div");D.style.textAlign="center";D.style.userSelect="none";D.style.overflow="hidden";D.style.height="100%";if(y){var J=function(){var f=x.freehand.getStrokeColor(!0);null!=f&&f!=mxConstants.NONE&&1<f.length&&"string"===typeof f&&("default"==f?f=-mxResources.get("useBlackAndWhite"):(f="#"==f.charAt(0)?f.substring(1).toUpperCase():f,f=ColorDialog.prototype.colorNames[f]),null!=f&&P.setAttribute("title",f))},K=document.createElement("input");K.setAttribute("id","geFreehandBrush");K.setAttribute("type","checkbox");K.checked=x.freehand.isPerfectFreehandMode();K.style.margin="10px 5px 0px 10px";K.style.float="left";D.appendChild(K);x.freehand.setPerfectFreehandMode(K.checked);var L=document.createElement("label");L.setAttribute("for","geFreehandBrush");-L.style.float="left";L.style.marginTop="10px";D.appendChild(L);mxUtils.write(L,mxResources.get("brush"));D.appendChild(L);var P=document.createElement("tempDiv");P.style.display="block";P.style.width="100%";P.style.height="100%";P.style.borderRadius="2px";P.style.boxSizing="border-box";P.style.border="1px solid black";P.style.backgroundColor=x.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){P.style.backgroundColor=x.freehand.getStrokeColor()});J();L=mxUtils.button("",mxUtils.bind(this,-function(f){b.pickColor(x.freehand.getStrokeColor(!0),function(p){x.freehand.setStrokeColor(p);P.style.backgroundColor=x.freehand.getStrokeColor();J()},"default");mxEvent.consume(f)}));L.style.position="absolute";L.style.boxSizing="border-box";L.style.padding="2px";L.style.top="8px";L.style.right="8px";L.style.width="28px";L.style.height="18px";L.className="geColorBtn";L.innerText="";L.appendChild(P);D.appendChild(L);L=document.createElement("img");L.setAttribute("title",mxResources.get("settings"));+null!=b.pages&&1<b.pages.length?U.removeAttribute("disabled"):(U.checked=!1,U.setAttribute("disabled","disabled"))):L.container.focus()}));b.installResizeHandler(this,!1);this.focus=function(){C.focus()}},FreehandWindow=function(b,g,l,d,q,y){var x=b.editor.graph,D=document.createElement("div");D.style.textAlign="center";D.style.userSelect="none";D.style.overflow="hidden";D.style.height="100%";if(y){var J=function(){var f=x.freehand.getStrokeColor(!0);null!=f&&f!=mxConstants.NONE&&1<f.length&&"string"===+typeof f&&("default"==f?f=mxResources.get("useBlackAndWhite"):(f="#"==f.charAt(0)?f.substring(1).toUpperCase():f,f=ColorDialog.prototype.colorNames[f]),null!=f&&P.setAttribute("title",f))},K=document.createElement("input");K.setAttribute("id","geFreehandBrush");K.setAttribute("type","checkbox");K.checked=x.freehand.isPerfectFreehandMode();K.style.margin="10px 5px 0px 10px";K.style.float="left";D.appendChild(K);x.freehand.setPerfectFreehandMode(K.checked);var L=document.createElement("label");L.setAttribute("for",+"geFreehandBrush");L.style.float="left";L.style.marginTop="10px";D.appendChild(L);mxUtils.write(L,mxResources.get("brush"));D.appendChild(L);var P=document.createElement("tempDiv");P.style.display="block";P.style.width="100%";P.style.height="100%";P.style.borderRadius="2px";P.style.boxSizing="border-box";P.style.border="1px solid black";P.style.backgroundColor=x.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){P.style.backgroundColor=x.freehand.getStrokeColor()});J();L=mxUtils.button("",+mxUtils.bind(this,function(f){b.pickColor(x.freehand.getStrokeColor(!0),function(p){x.freehand.setStrokeColor(p);P.style.backgroundColor=x.freehand.getStrokeColor();J()},"default");mxEvent.consume(f)}));L.style.position="absolute";L.style.boxSizing="border-box";L.style.padding="2px";L.style.top="8px";L.style.right="8px";L.style.width="28px";L.style.height="18px";L.className="geColorBtn";L.innerText="";L.appendChild(P);D.appendChild(L);L=document.createElement("img");L.setAttribute("title",mxResources.get("settings"));L.setAttribute("src",Editor.gearImage);L.className="geToolbarButton geAdaptiveAsset";L.style.position="absolute";L.style.boxSizing="border-box";L.style.padding="2px";L.style.top="8px";L.style.right="38px";L.style.width="18px";L.style.height="18px";L.style.opacity="0.6";D.appendChild(L);mxEvent.addListener(L,"click",mxUtils.bind(this,function(f){f=x.freehand.getSmoothing();b.prompt(mxResources.get("smoothing")+" (1-20)",f,function(p){!isNaN(p)&&0<p&&20>=p&&x.freehand.setSmoothing(parseInt(p))})}));mxUtils.br(D);var c=document.createElement("input");c.setAttribute("type","range");c.setAttribute("min","2");c.setAttribute("max","30");c.setAttribute("value",x.freehand.getBrushSize());c.style.width="90%";c.style.visibility="hidden";D.appendChild(c);mxUtils.br(D);L=function(){x.freehand.setPerfectFreehandMode(K.checked);c.style.visibility=K.checked?"visible":"hidden"};mxEvent.addListener(K,"change",L);L();mxEvent.addListener(c,"change",function(){x.freehand.setBrushSize(parseInt(this.value))})}var e=mxUtils.button(mxResources.get("startDrawing"),function(){x.freehand.isDrawing()?x.freehand.stopDrawing():x.freehand.startDrawing()});e.setAttribute("title",mxResources.get("startDrawing")+" (X)");e.style.margin=y?"5px 0 0 0":"10px 0 0 0";e.style.width="90%";e.style.boxSizing="border-box";e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.textAlign="center";e.className="geBtn gePrimaryBtn";D.appendChild(e);this.window=new mxWindow(mxResources.get("freehand"),D,g,l,d,q,!0,!0);this.window.destroyOnClose=@@ -13015,7 +13016,7 @@ this.page.viewState.backgroundImage=k}null!=this.format&&(this.page.viewState.panull!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(k=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var H=document.createElement("canvas"),T=new Image;T.onload=function(){try{H.getContext("2d").drawImage(T,0,0);var k=H.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(v){}};T.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(k){}Editor.prototype.useCanvasForExport=!1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(g,l,d){d.ui=g.ui;return l};b.afterDecode=function(g,l,d){d.previousColor=d.color;d.previousImage=d.image;d.previousFormat=d.format;d.previousAdaptiveColors=d.adaptiveColors;null!=d.foldingEnabled&&(d.foldingEnabled=!d.foldingEnabled);null!=d.mathEnabled&&(d.mathEnabled=!d.mathEnabled);null!=d.shadowVisible&&(d.shadowVisible=!d.shadowVisible);return d};mxCodecRegistry.register(b)})();-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(g,l,d){d.ui=g.ui;return l};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.1.0";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(g,l,d){d.ui=g.ui;return l};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.1.1";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};@@ -13993,66 +13994,66 @@ mxResources.get("exportOptionsDisabled"))});d.actions.addAction("keyboardShortcud.openLink("https://www.youtube.com/watch?v=Z0D96ZikMkc")});x=d.actions.addAction("tags",mxUtils.bind(this,function(){null==this.tagsWindow?(this.tagsWindow=new TagsWindow(d,document.body.offsetWidth-400,60,212,200),this.tagsWindow.window.addListener("show",mxUtils.bind(this,function(){d.fireEvent(new mxEventObject("tags"))})),this.tagsWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("tags"))):this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+K");x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));null==Editor.gptApiKey||null==Editor.gptModel||null==Editor.gptUrl||d.isOffline()||EditorUi.isElectronApp||(x=d.actions.addAction("chatWindowTitle",mxUtils.bind(this,function(){null==this.chatWindow?(this.chatWindow=new ChatWindow(d,220,document.body.offsetHeight-380,250,320),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){d.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!this.chatWindow.window.isVisible())})),x.setToggleAction(!0),x.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.chatWindow&&this.chatWindow.window.isVisible()})));-x=d.actions.addAction("findReplace",mxUtils.bind(this,function(m,u){var A=(m=q.isEnabled()&&(null==u||!mxEvent.isShiftDown(u)))?"findReplace":"find";u=A+"Window";if(null==this[u]){var B="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,H=m?B?330:300:240;this[u]=new FindWindow(d,document.body.offsetWidth-(H+20),100,H,m?B?304:288:170,m);this[u].window.addListener("show",function(){d.fireEvent(new mxEventObject(A))});this[u].window.addListener("hide",function(){d.fireEvent(new mxEventObject(A))});-this[u].window.setVisible(!0)}else this[u].window.setVisible(!this[u].window.isVisible())}),null,null,Editor.ctrlKey+"+F");x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){var m=q.isEnabled()?"findReplaceWindow":"findWindow";return null!=this[m]&&this[m].window.isVisible()}));d.actions.put("exportVsdx",new Action(mxResources.get("formatVsdx")+" (beta)...",function(){var m=null==d.pages||1>=d.pages.length;if(m)d.exportVisio();else{var u=document.createElement("div");u.style.whiteSpace=-"nowrap";var A=document.createElement("h3");mxUtils.write(A,mxResources.get("formatVsdx"));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";u.appendChild(A);var B=d.addCheckbox(u,mxResources.get("allPages"),!m,m);B.style.marginBottom="16px";m=new CustomDialog(d,u,mxUtils.bind(this,function(){d.exportVisio(!B.checked)}),null,mxResources.get("export"));d.showDialog(m.container,300,130,!0,!0)}}));isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&d.actions.addAction("configuration...",-function(){var m=document.createElement("input");m.setAttribute("type","checkbox");m.style.marginRight="8px";m.checked=mxSettings.getShowStartScreen();m.defaultChecked=m.checked;if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var u=document.createElement("span");u.style.display="flex";u.style.alignItems="center";u.style["float"]="right";u.style.cursor="pointer";u.style.userSelect="none";u.style.marginTop="-3px";u.appendChild(m);-mxUtils.write(u,mxResources.get("showStartScreen"));mxEvent.addListener(u,"click",function(B){mxEvent.getSource(B)!=m&&(m.checked=!m.checked)});header=u}u=[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(B){d.handleError(B)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var A=d.actions.get("plugins");null==A||"sketch"!=-Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||u.push([mxResources.get("plugins"),A.funct])}EditorUi.isElectronApp||u.push([mxResources.get("link"),function(B,H){if(0<H.value.length)try{var T=JSON.parse(H.value),k=window.location.protocol+"//"+window.location.host+"/"+d.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(T)),v=new EmbedDialog(d,k);d.showDialog(v.container,450,240,!0);v.init()}catch(G){d.handleError(G)}else d.handleError({message:mxResources.get("invalidInput")})}]);-"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&u.push([mxResources.get("preferences"),function(){d.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(B){d.handleError(B)}})}]])}]);d.showLocalStorageDialog(mxResources.get("configuration")+-":",Editor.configurationKey,u,m.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=m.parentNode&&(mxSettings.setShowStartScreen(m.checked),mxSettings.save())})});if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu(mxUtils.bind(this,function(m,u){var A=mxLanguage;null==urlParams.lang&&isLocalStorage&&(A=mxSettings.settings.language);var B=mxUtils.bind(this,function(T){var k=""==T?mxResources.get("automatic"):mxLanguageMap[T],v=null;""!=k&&(v=m.addItem(k,-null,mxUtils.bind(this,function(){d.setAndPersistLanguage(T);d.alert(mxResources.get("restartForChangeRequired"))}),u),(T==A||""==T&&null==A)&&m.addCheckmark(v,Editor.checkmarkImage));return v});B("");m.addSeparator(u);for(var H in mxLanguageMap)B(H)})));var J=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(m){var u=J.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=u&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var A=this.get("dynamicAppearance");-if(null!=A){var B=u.addMenu("",A.funct);B.setAttribute("title",mxResources.get("appearance"));B.className="geToolbarButton geAdaptiveAsset";B.style.backgroundPosition="center center";B.style.backgroundRepeat="no-repeat";B.style.backgroundSize="100% 100%";B.style.display="inline-block";B.style.cursor="pointer";B.style.zIndex="1";B.style.position="absolute";B.style.height="18px";B.style.width="18px";"atlas"==Editor.currentTheme?(B.style.filter="invert(100%)",B.style.right="11px",B.style.top="10px"):-(B.style.right="10px",B.style.top="5px");document.body.appendChild(B);u.langIcon=B;A=mxUtils.bind(this,function(){var H=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;B.style.display="atlas"==Editor.currentTheme||"min"==Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";B.style.backgroundImage="simple"==Editor.currentTheme?750>H?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+-(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",A);this.editorUi.addListener("darkModeChanged",A);mxEvent.addListener(window,"resize",A);A()}}return u}}d.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];d.actions.addAction("runLayout",function(){d.showCustomLayoutDialog(JSON.stringify(d.customLayoutConfig,-null,2))});d.actions.put("adaptiveColors",new Action("adaptiveColors",function(m){null==d.adaptiveColorsWindow&&(d.adaptiveColorsWindow=new AdaptiveColorsWindow(d,document.body.offsetWidth-520,80,200,160));d.adaptiveColorsWindow.window.setVisible(!0)}));x=this.get("viewZoom");var K=x.funct;x.funct=mxUtils.bind(this,function(m,u){K.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(m,["-","outline","fullscreen"],u)});x=this.get("layout");var L=x.funct;-x.funct=function(m,u){L.apply(this,arguments);m.addItem(mxResources.get("orgChart"),null,function(){var A=null,B=20,H=20,T=function(){"undefined"!==typeof mxOrgChartLayout&&null!=A&&d.tryAndHandle(mxUtils.bind(this,function(){var W=d.editor.graph,V=new mxOrgChartLayout(W,A,B,H),X=W.getDefaultParent();1<W.model.getChildCount(W.getSelectionCell())&&(X=W.getSelectionCell());V.execute(X)}))},k=document.createElement("div"),v=document.createElement("div");v.style.marginTop="6px";v.style.display="inline-block";-v.style.width="180px";mxUtils.write(v,mxResources.get("orgChartType")+": ");k.appendChild(v);var G=document.createElement("select");G.style.width="160px";G.style.boxSizing="border-box";v=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var I=0;I<v.length;I++){var M=document.createElement("option");mxUtils.write(M,v[I]);-M.value=I;2==I&&M.setAttribute("selected","selected");G.appendChild(M)}mxEvent.addListener(G,"change",function(){A=G.value});k.appendChild(G);v=document.createElement("div");v.style.marginTop="6px";v.style.display="inline-block";v.style.width="180px";mxUtils.write(v,mxResources.get("parentChildSpacing")+": ");k.appendChild(v);var R=document.createElement("input");R.type="number";R.value=B;R.style.width="160px";R.style.boxSizing="border-box";k.appendChild(R);mxEvent.addListener(R,"change",function(){B=-R.value});v=document.createElement("div");v.style.marginTop="6px";v.style.display="inline-block";v.style.width="180px";mxUtils.write(v,mxResources.get("siblingSpacing")+": ");k.appendChild(v);var Q=document.createElement("input");Q.type="number";Q.value=H;Q.style.width="160px";Q.style.boxSizing="border-box";k.appendChild(Q);mxEvent.addListener(Q,"change",function(){H=Q.value});v=mxUtils.button(mxResources.get("custom")+"...",function(){var W=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(G.value),-parentChildSpacing:parseInt(R.value),siblingSpacing:parseInt(Q.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(W,null,2))});v.className="geBtn";k=new CustomDialog(d,k,function(){null==A&&(A=2);d.loadOrgChartLayouts(T)},null,null,null,v);d.showDialog(k.container,355,140,!0,!0)},u,null,y());m.addSeparator(u);m.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var A=new mxParallelEdgeLayout(q);A.checkOverlap=!0;d.prompt(mxResources.get("spacing"),-A.spacing,mxUtils.bind(this,function(B){d.tryAndHandle(mxUtils.bind(this,function(){A.spacing=B;d.executeLayout(function(){A.execute(q.getDefaultParent(),q.isSelectionEmpty()?null:q.getSelectionCells())},!1)}))}))}))}),u);m.addSeparator(u);d.menus.addMenuItem(m,"runLayout",u,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(m,u){if(!mxClient.IS_CHROMEAPP&&d.isOffline())this.addMenuItems(m,["keyboardShortcuts","-","about"],u);else{var A=m.addItem("Search:",-null,null,u,null,null,!1);A.style.cursor="default";var B=document.createElement("input");B.setAttribute("type","text");B.setAttribute("size","25");B.style.borderWidth="1px";B.style.marginLeft="8px";mxEvent.addListener(B,"keydown",mxUtils.bind(this,function(H){var T=mxUtils.trim(B.value);13==H.keyCode&&0<T.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(T)),B.value="",EditorUi.logEvent({category:"SEARCH-HELP",-action:"search",label:T}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==H.keyCode&&(B.value="")}));A.firstChild.nextSibling.appendChild(B);mxEvent.addGestureListeners(B,function(H){document.activeElement!=B&&B.focus();mxEvent.consume(H)},function(H){mxEvent.consume(H)},function(H){mxEvent.consume(H)});window.setTimeout(function(){B.focus()},0);EditorUi.isElectronApp?(d.actions.addAction("website...",function(){d.openLink("https://www.drawio.com")}),d.actions.addAction("check4Updates",-function(){d.checkForUpdates()}),d.actions.put("desktopZoomIn",new Action(mxResources.get("zoomIn"),function(){d.desktopZoomIn()})),d.actions.put("desktopZoomOut",new Action(mxResources.get("zoomOut"),function(){d.desktopZoomOut()})),d.actions.put("desktopResetZoom",new Action(mxResources.get("actualSize"),function(){d.desktopResetZoom()})),this.addMenuItems(m,"- keyboardShortcuts quickStart website support -".split(" "),u),"1"!=urlParams.disableUpdate&&this.addMenuItems(m,["check4Updates","-"],u),-this.addMenuItems(m,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),u)):this.addMenuItems(m,"- keyboardShortcuts quickStart support - about".split(" "),u)}"1"==urlParams.test&&(m.addSeparator(u),this.addSubmenu("testDevelop",m,u))})));d.actions.addAction("languageCode...",function(){var m=new FilenameDialog(d,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(u){null!=u&&(Graph.diagramLanguage=0<u.length?u:null,Graph.translateDiagram=!0,q.refresh())}),-mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");d.showDialog(m.container,340,80,!0,!0);m.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(m,u){this.addMenuItems(m,["languageCode","-"],u);u=m.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;q.refresh()},u);Graph.translateDiagram||m.addCheckmark(u,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");-mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");mxResources.parse("testPerformance=Performance");-d.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!q.isSelectionEmpty()){var m=q.cloneCells(q.getSelectionCells()),u=q.getBoundingBoxFromGeometry(m,!0);m=q.moveCells(m,-u.x,-u.y);d.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+u.width+", "+u.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(q.encodeCells(m)))+"'),")}}));d.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function m(k){return null==k||null==k.boundingBox||!isNaN(k.boundingBox.x)&&-!isNaN(k.boundingBox.y)&&!isNaN(k.boundingBox.width)&&!isNaN(k.boundingBox.height)}var u=q.getGraphBounds(),A=q.view.translate,B=q.view.scale;q.insertVertex(q.getDefaultParent(),null,"",u.x/B-A.x,u.y/B-A.y,u.width/B,u.height/B,"fillColor=none;strokeColor=red;");var H=0,T=0;q.view.states.visit(function(k,v){k=!0;m(v.shape)||(console.log("invalid shape",v.cell.id,v.shape),k=!1);m(v.text)||(console.log("invalid text",v.cell.id,v.text),k=!1);k||H++;T++});console.log("states checked",T,"invalid",H)}));-d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var m=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";m=new TextareaDialog(d,"Paste Data:",m,function(u){if(0<u.length)try{var A=function(v){function G(ba){if(null==Y[ba]){if(Y[ba]=!0,null!=R[ba]){for(;0<R[ba].length;){var ea=R[ba].pop();G(ea)}delete R[ba]}}else mxLog.debug(I+": Visited: "+ba)}var I=v.parentNode.id,M=v.childNodes;v={};for(var R={},Q=null,W={},V=0;V<M.length;V++){var X=-M[V];if(null!=X.id&&0<X.id.length)if(null==v[X.id]){v[X.id]=X.id;var Z=X.getAttribute("parent");null==Z?null!=Q?mxLog.debug(I+": Multiple roots: "+X.id):Q=X.id:(null==R[Z]&&(R[Z]=[]),R[Z].push(X.id))}else W[X.id]=X.id}M=Object.keys(W);0<M.length?(M=I+": "+M.length+" Duplicates: "+M.join(", "),mxLog.debug(M+" (see console)")):mxLog.debug(I+": Checked");var Y={};null==Q?mxLog.debug(I+": No root"):(G(Q),Object.keys(Y).length!=Object.keys(v).length&&(mxLog.debug(I+": Invalid tree: (see console)"),console.log(I+-": Invalid tree",R)))};"<"!=u.charAt(0)&&(u=Graph.decompress(u),mxLog.debug("See console for uncompressed XML"),console.log("xml",u));var B=mxUtils.parseXml(u),H=d.getPagesForNode(B.documentElement,"mxGraphModel");if(null!=H&&0<H.length)try{var T=d.getHashValueForPages(H);mxLog.debug("Checksum: ",T)}catch(v){mxLog.debug("Error: ",v.message)}else mxLog.debug("No pages found for checksum");var k=B.getElementsByTagName("root");for(u=0;u<k.length;u++)A(k[u]);mxLog.show()}catch(v){d.handleError(v),null!=-window.console&&console.error(v)}});d.showDialog(m.container,620,460,!0,!0);m.init()}));var P=null;d.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=d.pages){var m=new TextareaDialog(d,"Diff/Sync:","",function(u){var A=d.getCurrentFile();if(0<u.length&&null!=A)try{var B=JSON.parse(u);A.patch([B],null,!0,!0);d.hideDialog()}catch(H){d.handleError(H)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(u,A){P=d.getPagesForXml(d.getFileData(!0));m.textarea.value=-"Snapshot updated "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(P)}],["Diff",function(u,A){try{m.textarea.value=JSON.stringify(d.diffPages(P,d.pages),null,2)}catch(B){d.handleError(B)}}]]);null==P?(P=d.getPagesForXml(d.getFileData(!0)),m.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(P)):m.textarea.value=JSON.stringify(d.diffPages(P,d.pages),null,2);d.showDialog(m.container,620,460,!0,!0);m.init()}else d.alert("No pages")}));-d.actions.addAction("testChecksum",mxUtils.bind(this,function(){var m=d.getCurrentFile();null!=d.pages&&null!=m?d.spinner.spin(document.body,mxResources.get("loading"))&&m.getLatestVersion(function(u){d.spinner.stop();var A=d.getHashValueForPages(d.pages),B=m.getCurrentRevisionId(),H=d.getHashValueForPages(u.getShadowPages()),T=u.getDescriptorChecksum(u.getDescriptor()),k=u.getCurrentRevisionId();console.log("Local File",[m],"modified",m.isModified(),"checksum",A);console.log("Remote File",[u],"rev",-k==B,"desc",T==H,"checksum",H);d.alert("Checksums "+(H==A?"match":"no not match"))},function(u){console.log("Error getLatestVersion",u);d.handleError(u)}):console.log("Checksum: no file or pages")}));d.actions.addAction("testCheckPages",mxUtils.bind(this,function(){var m=d.getCurrentFile();console.log("editorUi",d,"file",m);if(null!=m&&m.isRealtime()){console.log("Checksum ownPages",d.getHashValueForPages(m.ownPages));console.log("Checksum theirPages",d.getHashValueForPages(m.theirPages));console.log("diff ownPages/theirPages",-d.diffPages(m.ownPages,m.theirPages));var u=m.getShadowPages();null!=u&&(console.log("Checksum shadowPages",d.getHashValueForPages(u)),console.log("diff shadowPages/ownPages",d.diffPages(u,m.ownPages)),console.log("diff ownPages/shadowPages",d.diffPages(m.ownPages,u)),console.log("diff theirPages/shadowPages",d.diffPages(m.theirPages,u)));null!=m.sync&&null!=m.sync.snapshot&&(console.log("Checksum snapshot",d.getHashValueForPages(m.sync.snapshot)),console.log("diff ownPages/snapshot",d.diffPages(m.ownPages,-m.sync.snapshot)),console.log("diff theirPages/snapshot",d.diffPages(m.theirPages,m.sync.snapshot)),null!=d.pages&&console.log("diff snapshot/actualPages",d.diffPages(m.sync.snapshot,d.pages)));null!=d.pages&&(console.log("diff ownPages/actualPages",d.diffPages(m.ownPages,d.pages)),console.log("diff theirPages/actualPages",d.diffPages(m.theirPages,d.pages)))}null!=m&&console.log("Shadow pages",[d.getXmlForPages(m.getShadowPages())]);null!=d.pages&&console.log("Checksum actualPages",d.getHashValueForPages(d.pages))}));-d.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",d);var m=d.getCurrentFile();null!=m&&m.isRealtime()&&null!=m.shadowPages&&(console.log("patching actualPages to shadowPages",m.patch([d.diffPages(m.shadowPages,d.pages)])),m.ownPages=d.clonePages(d.pages),m.theirPages=d.clonePages(d.pages),m.shadowPages=d.clonePages(d.pages),null!=m.sync&&(m.sync.snapshot=d.clonePages(d.pages)))}));d.actions.addAction("testOptimize",mxUtils.bind(this,function(){q.model.beginUpdate();-try{var m=q.model.cells,u=0,A=[],B=[],H;for(H in m){var T=m[H],k=q.getCurrentCellStyle(T)[mxConstants.STYLE_IMAGE];null!=k&&"data:"==k.substring(0,5)&&(null==A[k]&&(A[k]=(A[k]||0)+1,u++),B.push(T))}q.setCellStyles(mxConstants.STYLE_IMAGE,null,B);console.log("Removed",u,"image(s) from",B.length,"cell(s): ",[B,A])}finally{q.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,q.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var m=-new mxImageExport,u=q.getGraphBounds(),A=q.view.scale,B=mxUtils.createXmlDocument(),H=B.createElement("output");B.appendChild(H);B=new mxXmlCanvas2D(H);B.translate(Math.floor((1-u.x)/A),Math.floor((1-u.y)/A));B.scale(1/A);var T=0,k=B.save;B.save=function(){T++;k.apply(this,arguments)};var v=B.restore;B.restore=function(){T--;v.apply(this,arguments)};var G=m.drawShape;m.drawShape=function(I){mxLog.debug("entering shape",I,T);G.apply(this,arguments);mxLog.debug("leaving shape",I,T)};m.drawState(q.getView().getState(q.model.root),-B);mxLog.show();mxLog.debug(mxUtils.getXml(H));mxLog.debug("stateCounter",T)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-2});var c=null,e=null,f=null,p=null,n=null,t=null,z=null,E=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=c?(q.view.revalidate=c,c=null):(c=q.view.revalidate,q.view.revalidate=function(){var m=Date.now(),u=c.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",-[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=e?(d.selectPage=e,e=null):(e=d.selectPage,d.selectPage=function(){var m=Date.now(),u=e.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=f?(d.diffPages=f,f=null):(f=d.diffPages,d.diffPages=function(){var m=Date.now(),u=f.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-m+" ms","args",arguments);-return u});null!=p?(d.patchPages=p,p=null):(p=d.patchPages,d.patchPages=function(){var m=Date.now(),u=p.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=n?(d.clonePages=n,n=null):(n=d.clonePages,d.clonePages=function(){var m=Date.now(),u=n.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=z?(d.getHashValueForPages=z,-z=null):(z=d.getHashValueForPages,d.getHashValueForPages=function(){var m=Date.now(),u=z.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=E?(d.resolveCrossReferences=E,E=null):(E=d.resolveCrossReferences,d.resolveCrossReferences=function(){var m=Date.now(),u=E.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-m+" ms","args",arguments);return u});-null!=t?(d.getFileData=t,t=null):(t=d.getFileData,d.getFileData=function(){var m=Date.now(),u=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",[this],"time",Date.now()-m+" ms","args",arguments);return u});EditorUi.debug("[Performance]",null!=c?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(m,u){this.addMenuItems(m,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),-u);var A=m.addItem(mxResources.get("testPerformance"),null,function(){d.actions.get("testPerformance").funct()},u);null!=c&&m.addCheckmark(A,Editor.checkmarkImage);this.addMenuItems(m,["-","testShowConsole"],u)})))}d.actions.put("shapes",new Action(mxResources.get("moreShapes")+"...",function(m){mxClient.IS_CHROMEAPP||!d.isOffline()?d.showDialog((new MoreShapesDialog(d,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):d.showDialog((new MoreShapesDialog(d,!1)).container,360,isLocalStorage?-mxClient.IS_IOS?300:280:260,!0,!0)}));d.actions.put("createShape",new Action(mxResources.get("shape")+"...",function(m){q.isEnabled()&&(m=new mxCell("",new mxGeometry(0,0,120,120),d.defaultCustomShapeStyle),m.vertex=!0,m=new EditShapeDialog(d,m,mxResources.get("editShape")+":",630,400),d.showDialog(m.container,640,480,!0,!1),m.init())})).isEnabled=y;d.actions.put("embedHtml",new Action(mxResources.get("html")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(m){d.showHtmlDialog(mxResources.get("create"),-"https://www.drawio.com/doc/faq/embed-html-options",m,function(u,A,B,H,T,k,v,G,I,M,R,Q){d.createHtml(u,A,B,H,T,k,v,G,I,M,R,mxUtils.bind(this,function(W,V){var X=new EmbedDialog(d,"\x3c!-- "+d.editor.appName+" diagram --\x3e\n"+W+"\n"+V+"\n",null,null,function(){var Z=window.open(),Y=Z.document;if(null!=Y){"CSS1Compat"===document.compatMode&&Y.writeln("<!DOCTYPE html>");Y.writeln("<html>");Y.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');-Y.writeln("<body>");Y.writeln(W);var ba=mxClient.IS_IE||mxClient.IS_EDGE||null!=document.documentMode;ba&&Y.writeln(V);Y.writeln("</body>");Y.writeln("</html>");Y.close();if(!ba){var ea=Z.document.createElement("div");ea.marginLeft="26px";ea.marginTop="26px";mxUtils.write(ea,mxResources.get("updatingDocument"));ba=Z.document.createElement("img");ba.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ba.style.marginLeft="6px";ea.appendChild(ba);Z.document.body.insertBefore(ea,-Z.document.body.firstChild);window.setTimeout(function(){var ca=document.createElement("script");ca.type="text/javascript";ca.src=/<script.*?src="(.*?)"/.exec(V)[1];Y.body.appendChild(ca);ea.parentNode.removeChild(ea)},20)}}else d.handleError({message:mxResources.get("errorUpdatingPreview")})});d.showDialog(X.container,450,240,!0,!0);X.init()}),Q)})})}));d.actions.put("liveImage",new Action("Live image...",function(){var m=d.getCurrentFile();null!=m&&d.getPublicUrl(m,function(u){null!=u?(u=new EmbedDialog(d,-'<img src="'+(m.constructor!=DriveFile?u:"https://drive.google.com/uc?id="+m.getId())+'"/>'),d.showDialog(u.container,450,240,!0,!0),u.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})}));d.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){d.showEmbedImageDialog(function(m,u,A,B,H,T){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedImage(m,u,A,B,H,T,function(k){d.spinner.stop();k=new EmbedDialog(d,k);d.showDialog(k.container,450,-240,!0,!0);k.init()},function(k){d.spinner.stop();d.handleError(k)})},mxResources.get("image"),mxResources.get("retina"),d.isExportToCanvas())}));d.actions.put("embedSvg",new Action(mxResources.get("formatSvg")+"...",function(){d.showEmbedImageDialog(function(m,u,A,B,H,T){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedSvg(m,u,A,B,H,T,function(k){d.spinner.stop();k=new EmbedDialog(d,k);d.showDialog(k.container,450,240,!0,!0);k.init()},function(k){d.spinner.stop();d.handleError(k)})},-mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/doc/faq/embed-svg.html")}));d.actions.put("embedIframe",new Action(mxResources.get("iframe")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(m){var u=q.getGraphBounds();d.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,u.height/q.view.scale))+2,null,null,null,m,d.getCurrentFile(),function(A,B,H,T,k,v,G,I,M,R,Q,W){var V=[];M&&V.push("tags=%7B%7D");A=new EmbedDialog(d,'<iframe frameborder="0" style="width:'+-G+";height:"+I+';" src="'+d.createLink(A,B,!0,T,k,v,"public"==R?m:null,null,V,null,H,Q,W)+'"'+(Q?' allowtransparency="true"':"")+"></iframe>");d.showDialog(A.container,450,240,!0,!0);A.init()},!0,!0)})}));d.actions.put("embedNotion",new Action(mxResources.get("notion")+"...",function(){var m=document.createElement("div");m.style.position="absolute";m.style.bottom="30px";m.style.textAlign="center";m.style.width="100%";m.style.left="0px";var u=document.createElement("a");u.setAttribute("href","javascript:void(0);");-u.setAttribute("target","_blank");u.style.cursor="pointer";mxUtils.write(u,mxResources.get("getNotionChromeExtension"));m.appendChild(u);mxUtils.setPrefixedStyle(u.style,"transition","all 1s ease");mxUtils.setOpacity(u,0);window.setTimeout(function(){mxUtils.setOpacity(u,100)},300);mxEvent.addListener(u,"click",function(A){d.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(A)});d.getPublicUrl(d.getCurrentFile(),function(A){d.showPublishLinkDialog(mxResources.get("notion"),-null,null,!0,"https://www.drawio.com/blog/drawio-notion",m,A,d.getCurrentFile(),function(B,H,T,k,v,G,I,M,R,Q,W,V){I=["border=0"];R&&I.push("tags=%7B%7D");B=new EmbedDialog(d,d.createLink(B,H,!0,k,v,G,"public"==Q?A:null,null,I,null,T,null,V));d.showDialog(B.container,450,240,!0,!0);B.init()},null,!0)})}));d.actions.put("publishLink",new Action(mxResources.get("link")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(m){d.showPublishLinkDialog(null,null,null,null,null,null,m,d.getCurrentFile(),-function(u,A,B,H,T,k,v,G,I,M,R,Q){v=[];H&&I&&v.push("tags=%7B%7D");u=new EmbedDialog(d,d.createLink(u,A,!0,H,T,k,"public"==M?m:null,null,v,null,B,null,Q));d.showDialog(u.container,450,240,!0,!0);u.init()},null,!0)})}));d.actions.addAction("microsoftOffice...",function(){d.openLink("https://office.draw.io")});d.actions.addAction("googleDocs...",function(){d.openLink("http://docsaddon.draw.io")});d.actions.addAction("googleSlides...",function(){d.openLink("https://slidesaddon.draw.io")});d.actions.addAction("googleSheets...",-function(){d.openLink("https://sheetsaddon.draw.io")});d.actions.addAction("googleSites...",function(){d.getPublicUrl(d.getCurrentFile(),function(m){m=new GoogleSitesDialog(d,m);d.showDialog(m.container,420,256,!0,!0);m.init()})});if(isLocalStorage||mxClient.IS_CHROMEAPP)x=d.actions.addAction("scratchpad",function(){d.toggleScratchpad()}),x.setToggleAction(!0),x.setSelectedCallback(function(){return null!=d.scratchpad}),"0"!=urlParams.plugins&&d.actions.addAction("plugins...",function(){d.showDialog((new PluginsDialog(d)).container,-380,240,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&(x=d.actions.addAction("highContrast",function(){d.setAndPersistHighContrast(!d.isHighContrast())}),x.setToggleAction(!0),x.setSelectedCallback(function(){return d.isHighContrast()}));x=d.actions.addAction("search",function(){if(null!=d.sidebar){var m=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",!m);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!m,mxSettings.save())}});x.label=-mxResources.get("searchShapes");x.setToggleAction(!0);x.setSelectedCallback(function(){return null!=d.sidebar&&d.sidebar.isEntryVisible("search")});d.actions.get("clearDefaultStyle").funct=function(m){q.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("saveAs").setEnabled(!1),d.actions.get("save").funct=function(m){q.isEditing()&&q.stopEditing();var u="0"!=urlParams.pages||null!=d.pages&&1<d.pages.length?d.getFileData(!0):mxUtils.getXml(d.editor.getGraphXml());-if("json"==urlParams.proto){var A=d.createLoadMessage("save");A.xml=u;!0!==m||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(A.exit=!0);u=JSON.stringify(A)}(window.opener||window.parent).postMessage(u,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(d.editor.modified=!1,d.editor.setStatus(""));m=d.getCurrentFile();null==m||m.constructor==EmbedFile||m.constructor==LocalFile&&null==m.mode||d.saveFile()},d.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?d.sendEmbeddedSvgExport():+x=d.actions.addAction("findReplace",mxUtils.bind(this,function(m,u){var A=(m=q.isEnabled()&&(null==u||!mxEvent.isShiftDown(u)))?"findReplace":"find";u=A+"Window";if(null==this[u]){var B="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,H=m?B?330:300:240;this[u]=new FindWindow(d,document.body.offsetWidth-(H+20),100,H,m?B?304:288:170,m);this[u].window.addListener("show",function(){d.fireEvent(new mxEventObject(A))});this[u].window.addListener("hide",function(){d.fireEvent(new mxEventObject(A))})}this[u].window.setVisible(!0);+this[u].focus()}),null,null,Editor.ctrlKey+"+F");d.actions.put("exportVsdx",new Action(mxResources.get("formatVsdx")+" (beta)...",function(){var m=null==d.pages||1>=d.pages.length;if(m)d.exportVisio();else{var u=document.createElement("div");u.style.whiteSpace="nowrap";var A=document.createElement("h3");mxUtils.write(A,mxResources.get("formatVsdx"));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";u.appendChild(A);var B=d.addCheckbox(u,mxResources.get("allPages"),!m,+m);B.style.marginBottom="16px";m=new CustomDialog(d,u,mxUtils.bind(this,function(){d.exportVisio(!B.checked)}),null,mxResources.get("export"));d.showDialog(m.container,300,130,!0,!0)}}));isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&d.actions.addAction("configuration...",function(){var m=document.createElement("input");m.setAttribute("type","checkbox");m.style.marginRight="8px";m.checked=mxSettings.getShowStartScreen();m.defaultChecked=m.checked;if(Editor.isSettingsEnabled()&&("sketch"==+Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var u=document.createElement("span");u.style.display="flex";u.style.alignItems="center";u.style["float"]="right";u.style.cursor="pointer";u.style.userSelect="none";u.style.marginTop="-3px";u.appendChild(m);mxUtils.write(u,mxResources.get("showStartScreen"));mxEvent.addListener(u,"click",function(B){mxEvent.getSource(B)!=m&&(m.checked=!m.checked)});header=u}u=[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),+function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(B){d.handleError(B)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var A=d.actions.get("plugins");null==A||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||u.push([mxResources.get("plugins"),A.funct])}EditorUi.isElectronApp||u.push([mxResources.get("link"),function(B,H){if(0<H.value.length)try{var T=+JSON.parse(H.value),k=window.location.protocol+"//"+window.location.host+"/"+d.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(T)),v=new EmbedDialog(d,k);d.showDialog(v.container,450,240,!0);v.init()}catch(G){d.handleError(G)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&u.push([mxResources.get("preferences"),function(){d.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),+function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(B){d.handleError(B)}})}]])}]);d.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,u,m.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=m.parentNode&&(mxSettings.setShowStartScreen(m.checked),mxSettings.save())})});+if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu(mxUtils.bind(this,function(m,u){var A=mxLanguage;null==urlParams.lang&&isLocalStorage&&(A=mxSettings.settings.language);var B=mxUtils.bind(this,function(T){var k=""==T?mxResources.get("automatic"):mxLanguageMap[T],v=null;""!=k&&(v=m.addItem(k,null,mxUtils.bind(this,function(){d.setAndPersistLanguage(T);d.alert(mxResources.get("restartForChangeRequired"))}),u),(T==A||""==T&&null==A)&&m.addCheckmark(v,Editor.checkmarkImage));return v});+B("");m.addSeparator(u);for(var H in mxLanguageMap)B(H)})));var J=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(m){var u=J.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=u&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var A=this.get("dynamicAppearance");if(null!=A){var B=u.addMenu("",A.funct);B.setAttribute("title",mxResources.get("appearance"));B.className="geToolbarButton geAdaptiveAsset";B.style.backgroundPosition="center center";+B.style.backgroundRepeat="no-repeat";B.style.backgroundSize="100% 100%";B.style.display="inline-block";B.style.cursor="pointer";B.style.zIndex="1";B.style.position="absolute";B.style.height="18px";B.style.width="18px";"atlas"==Editor.currentTheme?(B.style.filter="invert(100%)",B.style.right="11px",B.style.top="10px"):(B.style.right="10px",B.style.top="5px");document.body.appendChild(B);u.langIcon=B;A=mxUtils.bind(this,function(){var H=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;+B.style.display="atlas"==Editor.currentTheme||"min"==Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";B.style.backgroundImage="simple"==Editor.currentTheme?750>H?"url("+Editor.thinDoubleArrowRightImage+")":"url("+(Editor.isDarkMode()?Editor.thinDarkImage:Editor.thinLightImage)+")":"url("+(Editor.isDarkMode()?Editor.darkModeImage:Editor.lightModeImage)+")"});this.editorUi.addListener("currentThemeChanged",A);this.editorUi.addListener("darkModeChanged",A);mxEvent.addListener(window,"resize",+A);A()}}return u}}d.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];d.actions.addAction("runLayout",function(){d.showCustomLayoutDialog(JSON.stringify(d.customLayoutConfig,null,2))});d.actions.put("adaptiveColors",new Action("adaptiveColors",function(m){null==d.adaptiveColorsWindow&&(d.adaptiveColorsWindow=new AdaptiveColorsWindow(d,document.body.offsetWidth-520,80,200,160));+d.adaptiveColorsWindow.window.setVisible(!0)}));x=this.get("viewZoom");var K=x.funct;x.funct=mxUtils.bind(this,function(m,u){K.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(m,["-","outline","fullscreen"],u)});x=this.get("layout");var L=x.funct;x.funct=function(m,u){L.apply(this,arguments);m.addItem(mxResources.get("orgChart"),null,function(){var A=null,B=20,H=20,T=function(){"undefined"!==typeof mxOrgChartLayout&&null!=A&&d.tryAndHandle(mxUtils.bind(this,+function(){var W=d.editor.graph,V=new mxOrgChartLayout(W,A,B,H),X=W.getDefaultParent();1<W.model.getChildCount(W.getSelectionCell())&&(X=W.getSelectionCell());V.execute(X)}))},k=document.createElement("div"),v=document.createElement("div");v.style.marginTop="6px";v.style.display="inline-block";v.style.width="180px";mxUtils.write(v,mxResources.get("orgChartType")+": ");k.appendChild(v);var G=document.createElement("select");G.style.width="160px";G.style.boxSizing="border-box";v=[mxResources.get("linear"),+mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var I=0;I<v.length;I++){var M=document.createElement("option");mxUtils.write(M,v[I]);M.value=I;2==I&&M.setAttribute("selected","selected");G.appendChild(M)}mxEvent.addListener(G,"change",function(){A=G.value});k.appendChild(G);v=document.createElement("div");v.style.marginTop="6px";v.style.display=+"inline-block";v.style.width="180px";mxUtils.write(v,mxResources.get("parentChildSpacing")+": ");k.appendChild(v);var R=document.createElement("input");R.type="number";R.value=B;R.style.width="160px";R.style.boxSizing="border-box";k.appendChild(R);mxEvent.addListener(R,"change",function(){B=R.value});v=document.createElement("div");v.style.marginTop="6px";v.style.display="inline-block";v.style.width="180px";mxUtils.write(v,mxResources.get("siblingSpacing")+": ");k.appendChild(v);var Q=document.createElement("input");+Q.type="number";Q.value=H;Q.style.width="160px";Q.style.boxSizing="border-box";k.appendChild(Q);mxEvent.addListener(Q,"change",function(){H=Q.value});v=mxUtils.button(mxResources.get("custom")+"...",function(){var W=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(G.value),parentChildSpacing:parseInt(R.value),siblingSpacing:parseInt(Q.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(W,null,2))});v.className="geBtn";k=new CustomDialog(d,k,function(){null==A&&(A=2);d.loadOrgChartLayouts(T)},+null,null,null,v);d.showDialog(k.container,355,140,!0,!0)},u,null,y());m.addSeparator(u);m.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var A=new mxParallelEdgeLayout(q);A.checkOverlap=!0;d.prompt(mxResources.get("spacing"),A.spacing,mxUtils.bind(this,function(B){d.tryAndHandle(mxUtils.bind(this,function(){A.spacing=B;d.executeLayout(function(){A.execute(q.getDefaultParent(),q.isSelectionEmpty()?null:q.getSelectionCells())},!1)}))}))}))}),+u);m.addSeparator(u);d.menus.addMenuItem(m,"runLayout",u,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(m,u){if(!mxClient.IS_CHROMEAPP&&d.isOffline())this.addMenuItems(m,["keyboardShortcuts","-","about"],u);else{var A=m.addItem("Search:",null,null,u,null,null,!1);A.style.cursor="default";var B=document.createElement("input");B.setAttribute("type","text");B.setAttribute("size","25");B.style.borderWidth="1px";B.style.marginLeft="8px";mxEvent.addListener(B,+"keydown",mxUtils.bind(this,function(H){var T=mxUtils.trim(B.value);13==H.keyCode&&0<T.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(T)),B.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:T}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==H.keyCode&&(B.value="")}));A.firstChild.nextSibling.appendChild(B);mxEvent.addGestureListeners(B,+function(H){document.activeElement!=B&&B.focus();mxEvent.consume(H)},function(H){mxEvent.consume(H)},function(H){mxEvent.consume(H)});window.setTimeout(function(){B.focus()},0);EditorUi.isElectronApp?(d.actions.addAction("website...",function(){d.openLink("https://www.drawio.com")}),d.actions.addAction("check4Updates",function(){d.checkForUpdates()}),d.actions.put("desktopZoomIn",new Action(mxResources.get("zoomIn"),function(){d.desktopZoomIn()})),d.actions.put("desktopZoomOut",new Action(mxResources.get("zoomOut"),+function(){d.desktopZoomOut()})),d.actions.put("desktopResetZoom",new Action(mxResources.get("actualSize"),function(){d.desktopResetZoom()})),this.addMenuItems(m,"- keyboardShortcuts quickStart website support -".split(" "),u),"1"!=urlParams.disableUpdate&&this.addMenuItems(m,["check4Updates","-"],u),this.addMenuItems(m,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),u)):this.addMenuItems(m,"- keyboardShortcuts quickStart support - about".split(" "),u)}"1"==urlParams.test&&+(m.addSeparator(u),this.addSubmenu("testDevelop",m,u))})));d.actions.addAction("languageCode...",function(){var m=new FilenameDialog(d,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(u){null!=u&&(Graph.diagramLanguage=0<u.length?u:null,Graph.translateDiagram=!0,q.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");d.showDialog(m.container,340,80,!0,!0);m.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(m,+u){this.addMenuItems(m,["languageCode","-"],u);u=m.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;q.refresh()},u);Graph.translateDiagram||m.addCheckmark(u,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");+mxResources.parse("testCheckPages=Check Pages");mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");mxResources.parse("testPerformance=Performance");d.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!q.isSelectionEmpty()){var m=q.cloneCells(q.getSelectionCells()),u=q.getBoundingBoxFromGeometry(m,+!0);m=q.moveCells(m,-u.x,-u.y);d.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+u.width+", "+u.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(q.encodeCells(m)))+"'),")}}));d.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function m(k){return null==k||null==k.boundingBox||!isNaN(k.boundingBox.x)&&!isNaN(k.boundingBox.y)&&!isNaN(k.boundingBox.width)&&!isNaN(k.boundingBox.height)}var u=q.getGraphBounds(),A=q.view.translate,B=q.view.scale;q.insertVertex(q.getDefaultParent(),+null,"",u.x/B-A.x,u.y/B-A.y,u.width/B,u.height/B,"fillColor=none;strokeColor=red;");var H=0,T=0;q.view.states.visit(function(k,v){k=!0;m(v.shape)||(console.log("invalid shape",v.cell.id,v.shape),k=!1);m(v.text)||(console.log("invalid text",v.cell.id,v.text),k=!1);k||H++;T++});console.log("states checked",T,"invalid",H)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var m=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";m=new TextareaDialog(d,+"Paste Data:",m,function(u){if(0<u.length)try{var A=function(v){function G(ba){if(null==Y[ba]){if(Y[ba]=!0,null!=R[ba]){for(;0<R[ba].length;){var ea=R[ba].pop();G(ea)}delete R[ba]}}else mxLog.debug(I+": Visited: "+ba)}var I=v.parentNode.id,M=v.childNodes;v={};for(var R={},Q=null,W={},V=0;V<M.length;V++){var X=M[V];if(null!=X.id&&0<X.id.length)if(null==v[X.id]){v[X.id]=X.id;var Z=X.getAttribute("parent");null==Z?null!=Q?mxLog.debug(I+": Multiple roots: "+X.id):Q=X.id:(null==R[Z]&&(R[Z]=[]),R[Z].push(X.id))}else W[X.id]=+X.id}M=Object.keys(W);0<M.length?(M=I+": "+M.length+" Duplicates: "+M.join(", "),mxLog.debug(M+" (see console)")):mxLog.debug(I+": Checked");var Y={};null==Q?mxLog.debug(I+": No root"):(G(Q),Object.keys(Y).length!=Object.keys(v).length&&(mxLog.debug(I+": Invalid tree: (see console)"),console.log(I+": Invalid tree",R)))};"<"!=u.charAt(0)&&(u=Graph.decompress(u),mxLog.debug("See console for uncompressed XML"),console.log("xml",u));var B=mxUtils.parseXml(u),H=d.getPagesForNode(B.documentElement,"mxGraphModel");+if(null!=H&&0<H.length)try{var T=d.getHashValueForPages(H);mxLog.debug("Checksum: ",T)}catch(v){mxLog.debug("Error: ",v.message)}else mxLog.debug("No pages found for checksum");var k=B.getElementsByTagName("root");for(u=0;u<k.length;u++)A(k[u]);mxLog.show()}catch(v){d.handleError(v),null!=window.console&&console.error(v)}});d.showDialog(m.container,620,460,!0,!0);m.init()}));var P=null;d.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=d.pages){var m=new TextareaDialog(d,"Diff/Sync:",+"",function(u){var A=d.getCurrentFile();if(0<u.length&&null!=A)try{var B=JSON.parse(u);A.patch([B],null,!0,!0);d.hideDialog()}catch(H){d.handleError(H)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(u,A){P=d.getPagesForXml(d.getFileData(!0));m.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(P)}],["Diff",function(u,A){try{m.textarea.value=JSON.stringify(d.diffPages(P,d.pages),null,2)}catch(B){d.handleError(B)}}]]);null==P?+(P=d.getPagesForXml(d.getFileData(!0)),m.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(P)):m.textarea.value=JSON.stringify(d.diffPages(P,d.pages),null,2);d.showDialog(m.container,620,460,!0,!0);m.init()}else d.alert("No pages")}));d.actions.addAction("testChecksum",mxUtils.bind(this,function(){var m=d.getCurrentFile();null!=d.pages&&null!=m?d.spinner.spin(document.body,mxResources.get("loading"))&&m.getLatestVersion(function(u){d.spinner.stop();+var A=d.getHashValueForPages(d.pages),B=m.getCurrentRevisionId(),H=d.getHashValueForPages(u.getShadowPages()),T=u.getDescriptorChecksum(u.getDescriptor()),k=u.getCurrentRevisionId();console.log("Local File",[m],"modified",m.isModified(),"checksum",A);console.log("Remote File",[u],"rev",k==B,"desc",T==H,"checksum",H);d.alert("Checksums "+(H==A?"match":"no not match"))},function(u){console.log("Error getLatestVersion",u);d.handleError(u)}):console.log("Checksum: no file or pages")}));d.actions.addAction("testCheckPages",+mxUtils.bind(this,function(){var m=d.getCurrentFile();console.log("editorUi",d,"file",m);if(null!=m&&m.isRealtime()){console.log("Checksum ownPages",d.getHashValueForPages(m.ownPages));console.log("Checksum theirPages",d.getHashValueForPages(m.theirPages));console.log("diff ownPages/theirPages",d.diffPages(m.ownPages,m.theirPages));var u=m.getShadowPages();null!=u&&(console.log("Checksum shadowPages",d.getHashValueForPages(u)),console.log("diff shadowPages/ownPages",d.diffPages(u,m.ownPages)),console.log("diff ownPages/shadowPages",+d.diffPages(m.ownPages,u)),console.log("diff theirPages/shadowPages",d.diffPages(m.theirPages,u)));null!=m.sync&&null!=m.sync.snapshot&&(console.log("Checksum snapshot",d.getHashValueForPages(m.sync.snapshot)),console.log("diff ownPages/snapshot",d.diffPages(m.ownPages,m.sync.snapshot)),console.log("diff theirPages/snapshot",d.diffPages(m.theirPages,m.sync.snapshot)),null!=d.pages&&console.log("diff snapshot/actualPages",d.diffPages(m.sync.snapshot,d.pages)));null!=d.pages&&(console.log("diff ownPages/actualPages",+d.diffPages(m.ownPages,d.pages)),console.log("diff theirPages/actualPages",d.diffPages(m.theirPages,d.pages)))}null!=m&&console.log("Shadow pages",[d.getXmlForPages(m.getShadowPages())]);null!=d.pages&&console.log("Checksum actualPages",d.getHashValueForPages(d.pages))}));d.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",d);var m=d.getCurrentFile();null!=m&&m.isRealtime()&&null!=m.shadowPages&&(console.log("patching actualPages to shadowPages",m.patch([d.diffPages(m.shadowPages,+d.pages)])),m.ownPages=d.clonePages(d.pages),m.theirPages=d.clonePages(d.pages),m.shadowPages=d.clonePages(d.pages),null!=m.sync&&(m.sync.snapshot=d.clonePages(d.pages)))}));d.actions.addAction("testOptimize",mxUtils.bind(this,function(){q.model.beginUpdate();try{var m=q.model.cells,u=0,A=[],B=[],H;for(H in m){var T=m[H],k=q.getCurrentCellStyle(T)[mxConstants.STYLE_IMAGE];null!=k&&"data:"==k.substring(0,5)&&(null==A[k]&&(A[k]=(A[k]||0)+1,u++),B.push(T))}q.setCellStyles(mxConstants.STYLE_IMAGE,null,+B);console.log("Removed",u,"image(s) from",B.length,"cell(s): ",[B,A])}finally{q.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,q.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var m=new mxImageExport,u=q.getGraphBounds(),A=q.view.scale,B=mxUtils.createXmlDocument(),H=B.createElement("output");B.appendChild(H);B=new mxXmlCanvas2D(H);B.translate(Math.floor((1-u.x)/A),Math.floor((1-u.y)/A));B.scale(1/A);var T=+0,k=B.save;B.save=function(){T++;k.apply(this,arguments)};var v=B.restore;B.restore=function(){T--;v.apply(this,arguments)};var G=m.drawShape;m.drawShape=function(I){mxLog.debug("entering shape",I,T);G.apply(this,arguments);mxLog.debug("leaving shape",I,T)};m.drawState(q.getView().getState(q.model.root),B);mxLog.show();mxLog.debug(mxUtils.getXml(H));mxLog.debug("stateCounter",T)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=+mxPopupMenu.prototype.zIndex-2});var c=null,e=null,f=null,p=null,n=null,t=null,z=null,E=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=c?(q.view.revalidate=c,c=null):(c=q.view.revalidate,q.view.revalidate=function(){var m=Date.now(),u=c.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=e?(d.selectPage=e,e=null):(e=d.selectPage,d.selectPage=function(){var m=Date.now(),u=e.apply(this,+arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=f?(d.diffPages=f,f=null):(f=d.diffPages,d.diffPages=function(){var m=Date.now(),u=f.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=p?(d.patchPages=p,p=null):(p=d.patchPages,d.patchPages=function(){var m=Date.now(),u=p.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",+[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=n?(d.clonePages=n,n=null):(n=d.clonePages,d.clonePages=function(){var m=Date.now(),u=n.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=z?(d.getHashValueForPages=z,z=null):(z=d.getHashValueForPages,d.getHashValueForPages=function(){var m=Date.now(),u=z.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],+"time",Date.now()-m+" ms","args",arguments);return u});null!=E?(d.resolveCrossReferences=E,E=null):(E=d.resolveCrossReferences,d.resolveCrossReferences=function(){var m=Date.now(),u=E.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-m+" ms","args",arguments);return u});null!=t?(d.getFileData=t,t=null):(t=d.getFileData,d.getFileData=function(){var m=Date.now(),u=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",+[this],"time",Date.now()-m+" ms","args",arguments);return u});EditorUi.debug("[Performance]",null!=c?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(m,u){this.addMenuItems(m,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),u);var A=m.addItem(mxResources.get("testPerformance"),null,function(){d.actions.get("testPerformance").funct()},u);null!=c&&m.addCheckmark(A,+Editor.checkmarkImage);this.addMenuItems(m,["-","testShowConsole"],u)})))}d.actions.put("shapes",new Action(mxResources.get("moreShapes")+"...",function(m){mxClient.IS_CHROMEAPP||!d.isOffline()?d.showDialog((new MoreShapesDialog(d,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):d.showDialog((new MoreShapesDialog(d,!1)).container,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)}));d.actions.put("createShape",new Action(mxResources.get("shape")+"...",function(m){q.isEnabled()&&+(m=new mxCell("",new mxGeometry(0,0,120,120),d.defaultCustomShapeStyle),m.vertex=!0,m=new EditShapeDialog(d,m,mxResources.get("editShape")+":",630,400),d.showDialog(m.container,640,480,!0,!1),m.init())})).isEnabled=y;d.actions.put("embedHtml",new Action(mxResources.get("html")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(m){d.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",m,function(u,A,B,H,T,k,v,G,I,M,R,Q){d.createHtml(u,A,B,H,T,k,v,G,+I,M,R,mxUtils.bind(this,function(W,V){var X=new EmbedDialog(d,"\x3c!-- "+d.editor.appName+" diagram --\x3e\n"+W+"\n"+V+"\n",null,null,function(){var Z=window.open(),Y=Z.document;if(null!=Y){"CSS1Compat"===document.compatMode&&Y.writeln("<!DOCTYPE html>");Y.writeln("<html>");Y.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Y.writeln("<body>");Y.writeln(W);var ba=mxClient.IS_IE||mxClient.IS_EDGE||null!=document.documentMode;ba&&Y.writeln(V);+Y.writeln("</body>");Y.writeln("</html>");Y.close();if(!ba){var ea=Z.document.createElement("div");ea.marginLeft="26px";ea.marginTop="26px";mxUtils.write(ea,mxResources.get("updatingDocument"));ba=Z.document.createElement("img");ba.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ba.style.marginLeft="6px";ea.appendChild(ba);Z.document.body.insertBefore(ea,Z.document.body.firstChild);window.setTimeout(function(){var ca=document.createElement("script");+ca.type="text/javascript";ca.src=/<script.*?src="(.*?)"/.exec(V)[1];Y.body.appendChild(ca);ea.parentNode.removeChild(ea)},20)}}else d.handleError({message:mxResources.get("errorUpdatingPreview")})});d.showDialog(X.container,450,240,!0,!0);X.init()}),Q)})})}));d.actions.put("liveImage",new Action("Live image...",function(){var m=d.getCurrentFile();null!=m&&d.getPublicUrl(m,function(u){null!=u?(u=new EmbedDialog(d,'<img src="'+(m.constructor!=DriveFile?u:"https://drive.google.com/uc?id="+m.getId())++'"/>'),d.showDialog(u.container,450,240,!0,!0),u.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})}));d.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){d.showEmbedImageDialog(function(m,u,A,B,H,T){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedImage(m,u,A,B,H,T,function(k){d.spinner.stop();k=new EmbedDialog(d,k);d.showDialog(k.container,450,240,!0,!0);k.init()},function(k){d.spinner.stop();d.handleError(k)})},mxResources.get("image"),+mxResources.get("retina"),d.isExportToCanvas())}));d.actions.put("embedSvg",new Action(mxResources.get("formatSvg")+"...",function(){d.showEmbedImageDialog(function(m,u,A,B,H,T){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedSvg(m,u,A,B,H,T,function(k){d.spinner.stop();k=new EmbedDialog(d,k);d.showDialog(k.container,450,240,!0,!0);k.init()},function(k){d.spinner.stop();d.handleError(k)})},mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/doc/faq/embed-svg.html")}));+d.actions.put("embedIframe",new Action(mxResources.get("iframe")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(m){var u=q.getGraphBounds();d.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,u.height/q.view.scale))+2,null,null,null,m,d.getCurrentFile(),function(A,B,H,T,k,v,G,I,M,R,Q,W){var V=[];M&&V.push("tags=%7B%7D");A=new EmbedDialog(d,'<iframe frameborder="0" style="width:'+G+";height:"+I+';" src="'+d.createLink(A,B,!0,T,k,v,"public"==R?m:null,null,V,+null,H,Q,W)+'"'+(Q?' allowtransparency="true"':"")+"></iframe>");d.showDialog(A.container,450,240,!0,!0);A.init()},!0,!0)})}));d.actions.put("embedNotion",new Action(mxResources.get("notion")+"...",function(){var m=document.createElement("div");m.style.position="absolute";m.style.bottom="30px";m.style.textAlign="center";m.style.width="100%";m.style.left="0px";var u=document.createElement("a");u.setAttribute("href","javascript:void(0);");u.setAttribute("target","_blank");u.style.cursor="pointer";mxUtils.write(u,+mxResources.get("getNotionChromeExtension"));m.appendChild(u);mxUtils.setPrefixedStyle(u.style,"transition","all 1s ease");mxUtils.setOpacity(u,0);window.setTimeout(function(){mxUtils.setOpacity(u,100)},300);mxEvent.addListener(u,"click",function(A){d.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(A)});d.getPublicUrl(d.getCurrentFile(),function(A){d.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",+m,A,d.getCurrentFile(),function(B,H,T,k,v,G,I,M,R,Q,W,V){I=["border=0"];R&&I.push("tags=%7B%7D");B=new EmbedDialog(d,d.createLink(B,H,!0,k,v,G,"public"==Q?A:null,null,I,null,T,null,V));d.showDialog(B.container,450,240,!0,!0);B.init()},null,!0)})}));d.actions.put("publishLink",new Action(mxResources.get("link")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(m){d.showPublishLinkDialog(null,null,null,null,null,null,m,d.getCurrentFile(),function(u,A,B,H,T,k,v,G,I,M,R,Q){v=[];H&&I&&v.push("tags=%7B%7D");+u=new EmbedDialog(d,d.createLink(u,A,!0,H,T,k,"public"==M?m:null,null,v,null,B,null,Q));d.showDialog(u.container,450,240,!0,!0);u.init()},null,!0)})}));d.actions.addAction("microsoftOffice...",function(){d.openLink("https://office.draw.io")});d.actions.addAction("googleDocs...",function(){d.openLink("http://docsaddon.draw.io")});d.actions.addAction("googleSlides...",function(){d.openLink("https://slidesaddon.draw.io")});d.actions.addAction("googleSheets...",function(){d.openLink("https://sheetsaddon.draw.io")});+d.actions.addAction("googleSites...",function(){d.getPublicUrl(d.getCurrentFile(),function(m){m=new GoogleSitesDialog(d,m);d.showDialog(m.container,420,256,!0,!0);m.init()})});if(isLocalStorage||mxClient.IS_CHROMEAPP)x=d.actions.addAction("scratchpad",function(){d.toggleScratchpad()}),x.setToggleAction(!0),x.setSelectedCallback(function(){return null!=d.scratchpad}),"0"!=urlParams.plugins&&d.actions.addAction("plugins...",function(){d.showDialog((new PluginsDialog(d)).container,380,240,!0,!1)});window.matchMedia&&+null!=document.getElementById("high-contrast-stylesheet")&&(x=d.actions.addAction("highContrast",function(){d.setAndPersistHighContrast(!d.isHighContrast())}),x.setToggleAction(!0),x.setSelectedCallback(function(){return d.isHighContrast()}));x=d.actions.addAction("search",function(){if(null!=d.sidebar){var m=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",!m);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!m,mxSettings.save())}});x.label=mxResources.get("searchShapes");+x.setToggleAction(!0);x.setSelectedCallback(function(){return null!=d.sidebar&&d.sidebar.isEntryVisible("search")});d.actions.get("clearDefaultStyle").funct=function(m){q.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("saveAs").setEnabled(!1),d.actions.get("save").funct=function(m){q.isEditing()&&q.stopEditing();var u="0"!=urlParams.pages||null!=d.pages&&1<d.pages.length?d.getFileData(!0):mxUtils.getXml(d.editor.getGraphXml());if("json"==+urlParams.proto){var A=d.createLoadMessage("save");A.xml=u;!0!==m||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(A.exit=!0);u=JSON.stringify(A)}(window.opener||window.parent).postMessage(u,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(d.editor.modified=!1,d.editor.setStatus(""));m=d.getCurrentFile();null==m||m.constructor==EmbedFile||m.constructor==LocalFile&&null==m.mode||d.saveFile()},d.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?d.sendEmbeddedSvgExport():d.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),d.actions.addAction("exit",function(){if("1"==urlParams.embedInline)d.sendEmbeddedSvgExport();else{var m=function(){d.editor.modified=!1;var u="json"==urlParams.proto?JSON.stringify({event:"exit",modified:d.editor.modified}):"";(window.opener||window.parent).postMessage(u,"*")};d.editor.modified?d.confirm(mxResources.get("allChangesLost"),null,m,mxResources.get("cancel"),mxResources.get("discardChanges")):m()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(m,u){d.isExportToCanvas()?(this.addMenuItems(m,["exportPng"],u),d.jpgSupported&&this.addMenuItems(m,["exportJpg"],u),d.webpSupported&&this.addMenuItems(m,["exportWebp"],u)):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(m,["exportPng","exportJpg"],u);this.addMenuItems(m,["exportSvg","-"],u);d.isOffline()||d.printPdfExport?this.addMenuItems(m,["exportPdf"],u):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(m,["exportPdf"],u);!d.vsdxExportEnabled()||mxClient.IS_IE||"undefined"===typeof VsdxExport&&d.isOffline()||this.addMenuItems(m,["exportVsdx"],u);this.addMenuItems(m,["-","exportHtml","exportXml","exportUrl"],u);d.isOffline()||(m.addSeparator(u),this.addMenuItem(m,"export",u).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||@@ -14340,339 +14341,338 @@ A.x,m.y-A.y)).grow(20)));u.consume()}}),mouseUp:mxUtils.bind(this,function(m,u){mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;DrawioUser=function(b,g,l,d,q){this.id=b;this.email=g;this.displayName=l;this.pictureUrl=d;this.locale=q};DrawioComment=function(b,g,l,d,q,y,x){this.file=b;this.id=g;this.content=l;this.modifiedDate=d;this.createdDate=q;this.isResolved=y;this.user=x;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,g,l,d,q){g()};DrawioComment.prototype.editComment=function(b,g,l){g()};DrawioComment.prototype.deleteComment=function(b,g){b()};Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];LucidImporter={};-(function(){function g(w){if(w&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[w])w=F[w];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D<F.length;D++){var u=F[D];w=w.replace(u.searchVal,u.replVal)}LucidImporter.hasExtImgs=!0}}return w}function y(w){mb="";try{if(w){var F=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(F=LucidImporter.advImpConfig.fontMapping[w]);if(F){for(var D in F)mb+=D+"="+F[D]+";";return F.fontFamily?"font-family: "+F.fontFamily:-""}if("Liberation Sans"!=w)return mb="fontFamily="+w+";","font-family: "+w+";"}}catch(u){}return""}function z(w){return Math.round(10*w)/10}function B(w,F,D){function u(ma,La){var ya="",za=ma.t,Qb=ma.l||{v:za&&"ul"==za.v?"auto":"decimal"};if(null==za||0!=Ma&&Ma==za.v&&Ja==Qb.v)null==za&&(Ma&&(ya+=O(!0),Ma=!1),ya+='<div style="',Ca.push("div"));else{Ma&&(ya+=O(!0));Ma=za.v;Ja=Qb.v;"ul"==za.v?(ya+="<ul ",Ca.push("ul")):(ya+="<ol ",Ca.push("ol"));ya+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';-if("hl"==za.v)ya+="upper-roman";else switch(Qb.v){case "auto":ya+="disc";break;case "inv":ya+="circle";break;case "disc":ya+="circle";break;case "trib":ya+="square";break;case "square":ya+="square";break;case "dash":ya+="square";break;case "heart":ya+="disc";break;default:ya+="decimal"}ya+='">'}if(null!=za){ya+='<li style="text-align:'+(ma.a?ma.a.v:D.TextAlign||"center")+";";if(null!=La){if(La.c)var ha=La.c.v;if(La.s)var xb=La.s.v}try{var Wa=ba[ka],rc=ra[Aa];La=ka;if(Wa&&rc&&Wa.s<rc.e)for(var wc=-Wa.s;null!=Wa&&Wa.s==wc;)"s"==Wa.n?xb=Wa.v:"c"==Wa.n&&(ha=Wa.v),Wa=ba[++La]}catch(Gb){console.log(Gb)}ha=V(ha);null!=ha&&(ha=ha.substring(0,7),ya+="color:"+ha+";");xb&&(ya+="font-size:"+z(.75*xb)+"px;");ya+='">';Ca.push("li");ya+='<span style="';Ca.push("span")}Ma||(xb=ha=ma.a?ma.a.v:D.TextAlign||"center","left"==ha?xb="flex-start":"right"==ha&&(xb="flex-end"),ya+="display: flex; justify-content: "+xb+"; text-align: "+ha+"; align-items: baseline; font-size: 0; line-height: 1.25;");ma.il&&(ya+="margin-left: "+-Math.max(0,z(.75*ma.il.v-(Ma?28:0)))+"px;");ma.ir&&(ya+="margin-right: "+z(.75*ma.ir.v)+"px;");ma.mt&&(ya+="margin-top: "+z(.75*ma.mt.v)+"px;");ma.mb&&(ya+="margin-bottom: "+z(.75*ma.mb.v)+"px;");ya+='margin-top: -2px;">';Ma||(ya+="<span>",Ca.push("span"));return ya}function e(ma){if(mxUtils.isEmptyObject(ma))return"";var La="",ya=0;if(ma.lk){var za=ma.lk;null!=za.v&&0<za.v.length&&(La+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}La+='<span style="';Ba.push("span");ya++;La+="font-size:"+(ma.s&&-ma.s.v?z(.75*ma.s.v):"13")+"px;";ma.c&&(za=V(ma.c.v),null!=za&&(za=za.substring(0,7),La+="color:"+za+";"));if(ma.b&&ma.b.v||ma.fc&&ma.fc.v&&0==ma.fc.v.indexOf("Bold"))La+="font-weight: bold;";ma.i&&ma.i.v&&(La+="font-style: italic;");ma.ac&&ma.ac.v&&(La+="text-transform: uppercase;");za=null;ma.f?za=ma.f.v:D.Font&&(za=D.Font);La+=y(za);za=[];ma.u&&ma.u.v&&za.push("underline");ma.k&&ma.k.v&&za.push("line-through");0<za.length&&(La+="text-decoration: "+za.join(" ")+";");La+='">';Oa.push(ya);return La}-function O(ma){var La="";do{var ya=Ca.pop();if(!ma&&Ma&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}La+="</"+ya+">"}while(0<Ca.length);return La}function r(ma,La,ya,za){ma=ma?ma.substring(La,ya):"";Ma&&(ma=ma.trim());0==Ba.length&&0<ma.length&&(ma=e({dummy:1})+ma);ma=ma.replace(/</g,"<").replace(/>/g,">");do for(La=Oa.pop(),ya=0;ya<La;ya++){var Qb=Ba.pop();ma+="</"+Qb+">"}while(za&&0<Ba.length);return ma}var p={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},aa={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,-k:!0,f:!0,ac:!0};F.sort(function(ma,La){return ma.s-La.s});var ba=F.filter(function(ma){return aa[ma.n]});ba[0]&&0!=ba[0].s&&ba.unshift({s:0,n:"dummy",v:"",e:ba[0].s});F=F.filter(function(ma){return p[ma.n]});for(var W=[0],wa=0;0<(wa=w.indexOf("\n",wa));)wa++,W.push(wa);for(var ka=wa=0;ka<F.length;ka++){if(F[ka].s>W[wa])F.splice(ka,0,{s:W[wa],n:"a",v:D.TextAlign||"center"});else{for(var pa=0;ka+pa<F.length&&F[ka+pa].s==W[wa];)pa++;1<pa&&(ka+=pa-1)}wa++}null!=W[wa]&&F.push({s:W[wa],n:"a",v:D.TextAlign||-"center"});W="";var ra=ba.slice();ra.sort(function(ma,La){return ma.e-La.e});var Aa=ka=0;wa=0;pa={};for(var na={},Ba=[],Oa=[],Ca=[],ua=!1,Ma=!1,Ja,Ka=0,l=0,Ha=w.length,cb=!0;wa<F.length||cb;){cb=!1;if(wa<F.length){var Ea=F[wa],Qa=F[wa].s;ua&&(na={},W+=r(w,Ka,Ha,!0),l=Ka=Ha,W+=O());for(;null!=Ea&&Ea.s==Qa;)na[Ea.n]=Ea,Ea=F[++wa];Ha=null!=Ea?Ea.s:w.length;W+=u(na,pa);ua&&(W+=e(pa));ua=!0}for(;ka>=Aa&&(ka<ba.length||Aa<ra.length);)if(Ea=ba[ka],Qa=ra[Aa],Ea&&Qa&&Ea.s<Qa.e){if(Ea.s>=Ha)break;Ka=Ea.s;0<-Ka-l&&(W+=e(pa)+r(w,l,Ka),l=Ka);for(;null!=Ea&&Ea.s==Ka;)pa[Ea.n]=Ea,Ea=ba[++ka];W+=e(pa)}else if(Qa){if(Qa.e>Ha)break;l=Qa.e;do delete pa[Qa.n],Qa=ra[++Aa];while(null!=Qa&&Qa.e==l);W+=r(w,Ka,l);Ka=l;0!=Oa.length||null!=Ea&&Ea.s==l||(ba.splice(ka,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ha,n:"dummy",v:""}))}else break}W+=r(null,null,null,!0);ua&&(l!=Ha&&(W+=e({dummy:1})+r(w,l,Ha)),W+=O(!0));return W}function m(w,F){G=!1;var D=null!=w.Text&&w.Text.t?w.Text:null!=w.Value&&w.Value.t?w.Value:-null!=w.Lane_0&&w.Lane_0.t?w.Lane_0:null;null==D&&null!=w.State?w.State.t&&(D=w.State):null==D&&null!=w.Note?w.Note.t&&(D=w.Note):null==D&&null!=w.Title?w.Title.t&&(D=w.Title):w.t&&(D=w);null==D&&null!=w.TextAreas?null!=w.TextAreas.Text&&null!=w.TextAreas.Text.Value&&w.TextAreas.Text.Value.t&&(D=w.TextAreas.Text.Value):null==D&&null!=w.t0&&w.t0.t&&(D=w.t0);if(null!=D){if(null!=D.t){var u=D.t;u=u.replace(/\u2028/g,"\n");D=D.m;try{/ /.test(u)&&(LucidImporter.hasUnknownShapes=!0);for(var e=0;e<D.length;e++)if(0<-D[e].s||null!=D[e].e&&D[e].e<u.length||"t"==D[e].n||"ac"==D[e].n||"lk"==D[e].n){G=!0;break}if(G=G||F)return B(u,D,w)}catch(O){console.log(O)}u=u.replace(/</g,"<");return u=u.replace(/>/g,">")}if(null!=D.Value&&null!=D.Value.t)return D.Value.t=D.Value.t.replace(/</g,"<"),D.Value.t=D.Value.t.replace(/>/g,">"),D.Value.t}return""}function h(w){return null!=w.Action?w.Action:w}function b(w){if(null!=w.Text){if(null!=w.Text.m)return w.Text.m}else if(null!=w.TextAreas){if(null!=w.TextAreas.Text&&-null!=w.TextAreas.Text.Value&&null!=w.TextAreas.Text.Value.m)return w.TextAreas.Text.Value.m}else{if(null!=w.m)return w.m;if(null!=w.Title){if(null!=w.Title.m)return w.Title.m}else if(null!=w.State){if(null!=w.State.m)return w.State.m}else if(null!=w.Note&&null!=w.Note.m)return w.Note.m}return null}function a(w,F){w="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+mb:f(w)+k(w)+q(w)+t(w)+C(w)+I(w)+Q(w)+K(w)+L(w))+S(w)+R(w)+Zb(mxConstants.STYLE_ALIGN,w.TextAlign,"center");mb=-"";return w}function c(w,F,D,u,e,O){O=null==O?!1:O;var r="",p=!1,aa=!1;if(null!=w)if(O){O=w.split(";");w="";for(var ba=0;ba<O.length;ba++)"fillColor=none"==O[ba]?aa=!0:"strokeColor=none"==O[ba]?p=!0:""!=O[ba]&&(w+=O[ba]+";")}else""!=w&&";"!=w.charAt(w.length-1)&&(r=";");r+=(Yc(w,"whiteSpace")?"":"whiteSpace=wrap;")+(e?(Yc(w,"overflow")?"":"overflow=block;blockSpacing=1;")+(Yc(w,"html")?"":"html=1;")+"fontSize=13;"+mb:d(mxConstants.STYLE_FONTSIZE,w,F,D,u)+d(mxConstants.STYLE_FONTFAMILY,w,F,D,u)+d(mxConstants.STYLE_FONTCOLOR,-w,F,D,u)+d(mxConstants.STYLE_FONTSTYLE,w,F,D,u)+d(mxConstants.STYLE_ALIGN,w,F,D,u)+d(mxConstants.STYLE_SPACING_LEFT,w,F,D,u)+d(mxConstants.STYLE_SPACING_RIGHT,w,F,D,u)+d(mxConstants.STYLE_SPACING_TOP,w,F,D,u)+d(mxConstants.STYLE_SPACING_BOTTOM,w,F,D,u))+d(mxConstants.STYLE_ALIGN+"Global",w,F,D,u)+d(mxConstants.STYLE_SPACING,w,F,D,u)+d(mxConstants.STYLE_VERTICAL_ALIGN,w,F,D,u)+d(mxConstants.STYLE_STROKECOLOR,w,F,D,u)+d(mxConstants.STYLE_OPACITY,w,F,D,u)+d(mxConstants.STYLE_ROUNDED,w,F,D,u)+d(mxConstants.STYLE_ROTATION,-w,F,D,u)+d(mxConstants.STYLE_FLIPH,w,F,D,u)+d(mxConstants.STYLE_FLIPV,w,F,D,u)+d(mxConstants.STYLE_SHADOW,w,F,D,u)+d(mxConstants.STYLE_FILLCOLOR,w,F,D,u)+d(mxConstants.STYLE_DASHED,w,F,D,u)+d(mxConstants.STYLE_STROKEWIDTH,w,F,D,u)+d(mxConstants.STYLE_IMAGE,w,F,D,u)+d(mxConstants.STYLE_POINTER_EVENTS,w,F,D,u);aa&&!Yc(r,mxConstants.STYLE_FILLCOLOR)&&(r+="fillColor=none;");p&&!Yc(r,mxConstants.STYLE_STROKECOLOR)&&(r+="strokeColor=none;");mb="";return r}function d(w,F,D,u,e){if(!Yc(F,w))switch(w){case mxConstants.STYLE_FONTSIZE:return f(D);-case mxConstants.STYLE_FONTFAMILY:return k(D);case mxConstants.STYLE_FONTCOLOR:return q(D);case mxConstants.STYLE_FONTSTYLE:return t(D);case mxConstants.STYLE_ALIGN:return C(D);case mxConstants.STYLE_ALIGN+"Global":return Zb(mxConstants.STYLE_ALIGN,D.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return I(D);case mxConstants.STYLE_SPACING_RIGHT:return Q(D);case mxConstants.STYLE_SPACING_TOP:return K(D);case mxConstants.STYLE_SPACING_BOTTOM:return L(D);case mxConstants.STYLE_SPACING:return S(D);-case mxConstants.STYLE_VERTICAL_ALIGN:return R(D);case mxConstants.STYLE_STROKECOLOR:return H(D,u);case mxConstants.STYLE_OPACITY:return M(D,u,e);case mxConstants.STYLE_ROUNDED:return w=!e.edge&&!e.style.includes("rounded")&&null!=D.Rounding&&0<D.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+z(.75*D.Rounding)+";":"",w;case mxConstants.STYLE_ROTATION:return T(D,u,e);case mxConstants.STYLE_FLIPH:return w=D.FlipX?"flipH=1;":"",w;case mxConstants.STYLE_FLIPV:return w=D.FlipY?"flipV=1;":"",w;case mxConstants.STYLE_SHADOW:return ca(D);-case mxConstants.STYLE_FILLCOLOR:return Y(D,u);case mxConstants.STYLE_DASHED:return sa(D);case mxConstants.STYLE_STROKEWIDTH:return oa(D);case mxConstants.STYLE_IMAGE:return Ra(D,u);case mxConstants.STYLE_POINTER_EVENTS:return D.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function f(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("s"==D.n&&D.v)return"fontSize="+z(.75*D.v)+";";F++}return"fontSize=13;"}function k(w){var F=b(w);if(null!=F)for(var D=-0;D<F.length;D++)if("f"==F[D].n&&F[D].v){var u=F[D].v;break}!u&&w.Font&&(u=w.Font);y(u);return mb}function n(w){return"ext"==w.tp?w.url:"ml"==w.tp?"mailto:"+w.eml:"pg"==w.tp?"data:page/id,"+(LucidImporter.pageIdsMap[w.id]||0):"c"==w.tp?"data:confluence/id,"+w.ccid:null}function q(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("c"==D.n&&null!=D.v)return w=V(D.v).substring(0,7),"#000000"==w&&(w="default"),mxConstants.STYLE_FONTCOLOR+"="+w+";";F++}return""}function t(w){return A(b(w))}function A(w){if(null!=-w){var F=0,D=!1;if(null!=w)for(var u=0;!D&&u<w.length;){var e=w[u];"b"==e.n?null!=e.v&&e.v&&(D=!0,F+=1):"fc"==e.n&&"Bold"==e.v&&(D=!0,F+=1);u++}D=!1;if(null!=w)for(u=0;!D&&u<w.length;)e=w[u],"i"==e.n&&null!=e.v&&e.v&&(D=!0,F+=2),u++;D=!1;if(null!=w)for(u=0;!D&&u<w.length;)e=w[u],"u"==e.n&&null!=e.v&&e.v&&(D=!0,F+=4),u++;if(0<F)return"fontStyle="+F+";"}return""}function C(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("a"==D.n&&null!=D.v)return"align="+D.v+";";F++}return""}function I(w){w=-b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if(null!=D.v&&"il"==D.n)return"spacingLeft="+z(.75*D.v)+";";F++}return""}function Q(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("ir"==D.n&&null!=D.v)return"spacingRight="+z(.75*D.v)+";";F++}return""}function K(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mt"==D.n&&null!=D.v)return"spacingTop="+z(.75*D.v)+";";F++}return""}function L(w){w=b(w);if(null!=w)for(var F=0;F<w.length;){var D=w[F];if("mb"==D.n&&null!=D.v)return"spacingBottom="+-z(.75*D.v)+";";F++}return""}function S(w){return"number"===typeof w.InsetMargin?"spacing="+Math.max(0,z(.75*w.InsetMargin))+";":""}function R(w){return null!=w.Text_VAlign&&"string"===typeof w.Text_VAlign?"verticalAlign="+w.Text_VAlign+";":null!=w.Title_VAlign&&"string"===typeof w.Title_VAlign?"verticalAlign="+w.Title_VAlign+";":Zb(mxConstants.STYLE_VERTICAL_ALIGN,w.TextVAlign,"middle")}function H(w,F){return 0==w.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Zb(mxConstants.STYLE_STROKECOLOR,P(w.LineColor),-"#000000")}function N(w){return null!=w?mxConstants.STYLE_FILLCOLOR+"="+P(w)+";":""}function J(w){return null!=w?"swimlaneFillColor="+P(w)+";":""}function M(w,F,D){F="";if("string"===typeof w.LineColor&&(w.LineColor=V(w.LineColor),7<w.LineColor.length)){var u="0x"+w.LineColor.substring(w.LineColor.length-2,w.LineColor.length);D.style.includes("strokeOpacity")||(F+="strokeOpacity="+Math.round(parseInt(u)/2.55)+";")}"string"===typeof w.FillColor&&(w.FillColor=V(w.FillColor),7<w.FillColor.length&&(w=-"0x"+w.FillColor.substring(w.FillColor.length-2,w.FillColor.length),D.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(w)/2.55)+";")));return F}function T(w,F,D){var u="";if(null!=w.Rotation){w=mxUtils.toDegree(parseFloat(w.Rotation));var e=!0;0!=w&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==w||270==w)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(w+=90,D.geometry.rotate90(),D.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(wf,-F.Class)?(w-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(xf,F.Class)&&(w+=180);0!=w&&(u+="rotation="+w+";");e||(u+="horizontal=0;")}return u}function ca(w){return null!=w.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function V(w){if(w){if("object"===typeof w)try{w=w.cs[0].c}catch(F){console.log(F),w="#ffffff"}"rgb"==w.substring(0,3)?w="#"+w.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=w.charAt(0)&&(w="#"+w)}return w}function P(w){return(w=V(w))?-w.substring(0,7):null}function ea(w,F){return(w=V(w))&&7<w.length?F+"="+Math.round(parseInt("0x"+w.substr(7))/2.55)+";":""}function Y(w,F){if(null!=w.FillColor)if("object"===typeof w.FillColor){if(null!=w.FillColor.cs&&1<w.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,P(w.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,P(w.FillColor.cs[1].c))}else return"string"===typeof w.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,P(w.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");-return""}function sa(w){return"dotted"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":-"dashed32"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==w.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=w.StrokeStyle&&"dashed"==w.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function oa(w){return null!=w.LineWidth?Zb(mxConstants.STYLE_STROKEWIDTH,z(.75*parseFloat(w.LineWidth)),"1"):""}function Ra(w,F,D){var u="";w.FillColor&&w.FillColor.url?(D=w.FillColor.url,"fill"==w.FillColor.pos&&(u="imageAspect=0;")):"ImageSearchBlock2"==F.Class?D=w.URL:"UserImage2Block"==-F.Class&&null!=w.ImageFillProps&&null!=w.ImageFillProps.url&&(D=w.ImageFillProps.url);return null!=D?"image="+g(D)+";"+u:""}function la(w,F,D){null!=F.Link&&0<F.Link.length&&D.setAttributeForCell(w,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&D.setAttributeForCell(w,"Notes",F.NoteHint.t);var u=[],e=D.convertValueToString(w),O=!1;if(null!=e){for(var r=0;match=yf.exec(e);){var p=match[0];O=!0;if(2<p.length){var aa=p.substring(2,p.length-2);"documentName"==aa?aa="filename":"pageName"==aa?aa=-"page":"totalPages"==aa?aa="pagecount":"page"==aa?aa="pagenumber":"date:"==aa.substring(0,5)?aa="date{"+aa.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==aa.substring(0,16)?aa=aa.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==aa.substring(0,9)&&(aa="date{"+aa.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");aa="%"+aa+"%";u.push(e.substring(r,match.index)+-(null!=aa?aa:p));r=match.index+p.length}}O&&(u.push(e.substring(r)),D.setAttributeForCell(w,"label",u.join("")),D.setAttributeForCell(w,"placeholders","1"))}for(var ba in F)if(F.hasOwnProperty(ba)&&ba.toString().startsWith("ShapeData_"))try{var W=F[ba],wa=mxUtils.trim(W.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Sa(w,wa,W.Value,D)}catch(ka){window.console&&console.log("Ignored "+ba+":",ka)}}function Sa(w,F,D,u){for(var e=F,O=0;null!=u.getAttributeForCell(w,e);)O++,e=F+-"_"+O;u.setAttributeForCell(w,e,null!=D?D:"")}function Xa(w,F,D,u,e,O){var r=h(F);if(null!=r){var p=Pd[r.Class];null!=p?(w.style+=p,";"!=w.style.charAt(w.style.length-1)&&(w.style+=";")):w.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);p=null!=r.Properties?r.Properties:r;if(null!=p&&(w.value=O?"":m(p),w.style+=c(w.style,p,r,w,G,!0),w.style.includes("strokeColor")||(w.style+=H(p,r)),la(w,p,D),p.Title&&p.Title.t&&p.Text&&p.Text.t&&"ExtShape"!=r.Class.substr(0,-8)&&(D=w.geometry,D=new mxCell(m(p.Title),new mxGeometry(0,D.height,D.width,10),"strokeColor=none;fillColor=none;"),D.vertex=!0,w.insert(D),D.style+=a(p.Title,G)),w.edge)){w.style=null!=p.Rounding&&"diagonal"!=p.Shape?w.style+("rounded=1;arcSize="+p.Rounding+";"):w.style+"rounded=0;";if(D="curve"==p.Shape)w.style+="curved=1;";else if("diagonal"!=p.Shape)if(null!=p.ElbowPoints&&0<p.ElbowPoints.length)for(w.geometry.points=[],r=0;r<p.ElbowPoints.length;r++)w.geometry.points.push(new mxPoint(Math.round(.75*-p.ElbowPoints[r].x+xc),Math.round(.75*p.ElbowPoints[r].y+yc)));else if("elbow"==p.Shape||null!=p.Endpoint1.Block&&null!=p.Endpoint2.Block)w.style+="edgeStyle=orthogonalEdgeStyle;";if(p.LineJumps||LucidImporter.globalProps.LineJumps)w.style+="jumpStyle=arc;";null!=p.Endpoint1.Style&&(O=Fe[p.Endpoint1.Style],null!=O?(O=O.replace(/xyz/g,"start"),w.style+="startArrow="+O+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint1.Style)));null!=p.Endpoint2.Style&&-(O=Fe[p.Endpoint2.Style],null!=O?(O=O.replace(/xyz/g,"end"),w.style+="endArrow="+O+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+p.Endpoint2.Style)));O=null!=p.ElbowControlPoints&&0<p.ElbowControlPoints.length?p.ElbowControlPoints:p.Joints;if(D&&null!=p.BezierJoints&&0<p.BezierJoints.length){O=[];D=p.BezierJoints[p.BezierJoints.length-1];D.p.x=p.Endpoint2.x;D.p.y=p.Endpoint2.y;for(r=0;r<p.BezierJoints.length;r++)D=p.BezierJoints[r],O.push({x:D.p.x+-D.nt.x*D.lcps*.75,y:D.p.y+D.nt.y*D.lcps*.75}),O.push({x:D.p.x+D.nt.x*D.rcps*.75,y:D.p.y+D.nt.y*D.rcps*.75});O=O.slice(1,O.length-1)}else D&&(O=[],O.push({x:p.Endpoint1.x+(.1>p.Endpoint1.LinkX?-250:.9<p.Endpoint1.LinkX?250:0),y:p.Endpoint1.y+(.1>p.Endpoint1.LinkY?-250:.9<p.Endpoint1.LinkY?250:0)}),O.push({x:p.Endpoint2.x+(.1>p.Endpoint2.LinkX?-250:.9<p.Endpoint2.LinkX?250:0),y:p.Endpoint2.y+(.1>p.Endpoint2.LinkY?-250:.9<p.Endpoint2.LinkY?250:0)}));if(null!=O)for(w.geometry.points=[],r=0;r<O.length;r++)D=-O[r].p?O[r].p:O[r],w.geometry.points.push(new mxPoint(Math.round(.75*D.x+xc),Math.round(.75*D.y+yc)));D=!1;if((null==w.geometry.points||0==w.geometry.points.length)&&null!=p.Endpoint1.Block&&p.Endpoint1.Block==p.Endpoint2.Block&&null!=u&&null!=e){D=new mxPoint(Math.round(u.geometry.x+u.geometry.width*p.Endpoint1.LinkX),Math.round(u.geometry.y+u.geometry.height*p.Endpoint1.LinkY));O=new mxPoint(Math.round(e.geometry.x+e.geometry.width*p.Endpoint2.LinkX),Math.round(e.geometry.y+e.geometry.height*p.Endpoint2.LinkY));-xc=D.x==O.x?Math.abs(D.x-u.geometry.x)<u.geometry.width/2?-20:20:0;yc=D.y==O.y?Math.abs(D.y-u.geometry.y)<u.geometry.height/2?-20:20:0;var aa=new mxPoint(D.x+xc,D.y+yc),ba=new mxPoint(O.x+xc,O.y+yc);aa.generated=!0;ba.generated=!0;w.geometry.points=[aa,ba];D=D.x==O.x}null!=u&&u.geometry.isRotated||(aa=Ge(w,p.Endpoint1,!0,D,null,u));null!=u&&null!=aa&&(null==u.stylePoints&&(u.stylePoints=[]),u.stylePoints.push(aa),LucidImporter.stylePointsSet.add(u));null!=e&&e.geometry.isRotated||(ba=Ge(w,p.Endpoint2,-!1,D,null,e));null!=e&&null!=ba&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(ba),LucidImporter.stylePointsSet.add(e))}}null!=F.id&&(w.style+=";lucidId="+F.id+";");w.lucidchartObject=F}function sc(w,F){var D=h(w).Properties,u=D.BoundingBox;null==w.Class||"AWS"!==w.Class.substring(0,3)&&"Amazon"!==w.Class.substring(0,6)||w.Class.includes("AWS19")||(u.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*u.x+xc),Math.round(.75*u.y+yc),Math.round(.75*u.w),Math.round(.75*u.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");-v.vertex=!0;Xa(v,w,F);v.zOrder=D.ZOrder;He(v,D);D.Hidden&&(v.visible=!1);return v}function yb(w,F,D,u){var e=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");e.geometry.relative=!0;e.edge=!0;Xa(e,w,F,D,u,!0);var O=h(w).Properties,r=null!=O?O.TextAreas:w.TextAreas;if(null!=r){for(var p=0;void 0!==r["t"+p];){var aa=r["t"+p];null!=aa&&(e=Qd(aa,e,w,D,u,F));p++}for(p=0;void 0!==r["m"+p]||1>p;)aa=r["m"+p],null!=aa&&(e=Qd(aa,e,w,D,u,F)),p++;null!=r.Text&&(e=Qd(r.Text,e,w,D,u,F));r=null!=-O?O.TextAreas:w.TextAreas;null!=r.Message&&(e=Qd(r.Message,e,w,D,u,F))}w.Hidden&&(e.visible=!1);return e}function Qd(w,F,D,u,e,O){var r=2*(parseFloat(w.Location)-.5);isNaN(r)&&null!=w.Text&&null!=w.Text.Location&&(r=2*(parseFloat(w.Text.Location)-.5));O=m(w);var p=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var aa=he;var ba=D;if(G)ba=mb;else{var W="13",wa="";if(null!=w&&null!=w.Value&&null!=w.Value.m){wa=A(w.Value.m);for(var ka=0;ka<w.Value.m.length;ka++)if("s"==w.Value.m[ka].n&&w.Value.m[ka].v)W=-z(.75*parseFloat(w.Value.m[ka].v));else if("c"==w.Value.m[ka].n){var pa=V(w.Value.m[ka].v);null!=pa&&(pa=pa.substring(0,7));"#000000"==pa&&(pa="default");wa+="fontColor="+pa+";"}wa+=k(ba);mb=""}ba=wa+";fontSize="+W+";"}p=new p(O,r,aa+ba);p.geometry.relative=!0;p.vertex=!0;if(w.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=u&&null!=e){var ra=u.geometry,Aa=e.geometry;var na=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*-D.Endpoint1.LinkY-(Aa.y+Aa.height*D.Endpoint2.LinkY))}else na=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Oa=mxUtils.getSizeForString(O.replace(/\n/g,"<br>"));p.geometry.offset=0==na||na<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*w.Side*(Oa.width/2+5+na),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*w.Side*(Oa.height/2+5+Ba))}catch(Ca){console.log(Ca)}p.lucidchartObject=w;F.insert(p);return F}function Zb(w,F,D,u){null!=F&&null!=u&&(F=u(F));-return null!=F&&F!=D?w+"="+F+";":""}function Ge(w,F,D,u,e,O){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=O&&O.style&&-1<O.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=O&&O.style&&-1<O.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),w.style+=(u?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function Ie(w,-F,D,u,e){try{var O=function(na,Ba){if(null!=na)if(Array.isArray(na))for(var Oa=0;Oa<na.length;Oa++)O(na[Oa].p?na[Oa].p:na[Oa],Ba);else Ba=Ba?.75:1,p=Math.min(p,na.x*Ba),aa=Math.min(aa,na.y*Ba),ba=Math.max(ba,(na.x+(na.width?na.width:0))*Ba),W=Math.max(W,(na.y+(na.height?na.height:0))*Ba)};null!=w.Action&&null!=w.Action.Properties&&(w=w.Action.Properties);var r=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");r.vertex=!0;r.zOrder=w.ZOrder;var p=Infinity,aa=Infinity,ba=-Infinity,-W=-Infinity,wa=w.Members;e=[];for(var ka in wa){var pa=F[ka];null!=pa?e.push(pa):null!=u[ka]&&(e.push(u[ka]),D[ka]=r)}e.sort(function(na,Ba){na=na.zOrder||na.ZOrder;Ba=Ba.zOrder||Ba.ZOrder;return null!=na&&null!=Ba?na>Ba?1:na<Ba?-1:0:0});for(D=F=0;D<e.length;D++)if(pa=e[D],pa.vertex)O(pa.geometry),pa.parent=r,r.insert(pa,F++);else{var ra=null!=pa.Action&&pa.Action.Properties?pa.Action.Properties:pa;O(ra.Endpoint1,!0);O(ra.Endpoint2,!0);O(ra.ElbowPoints,!0);O(ra.ElbowControlPoints,!0);O(ra.BezierJoints,-!0);O(ra.Joints,!0)}r.geometry.x=p;r.geometry.y=aa;r.geometry.width=ba-p;r.geometry.height=W-aa;if(null!=r.children)for(D=0;D<r.children.length;D++){var Aa=r.children[D].geometry;Aa.x-=p;Aa.y-=aa}w.IsState?(r.lucidLayerInfo={name:w.Name,visible:!w.Hidden,locked:w.Restrictions.b&&w.Restrictions.p&&w.Restrictions.c},r.style+="container=1;collapsible=0;recursiveResize=0;"):w.Hidden&&(r.visible=!1);r.lucidchartObject=w;return r}catch(na){console.log(na)}}function zf(w,F,D){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=-new Set;w.getModel().beginUpdate();try{var u=function(Ca,ua){function Ma(Qa,ma,La){null==Qa||Qa.generated||(Qa.x-=ma,Qa.y-=La)}var Ja=null!=ua.Endpoint1.Block?O[ua.Endpoint1.Block]:null,Ka=null!=ua.Endpoint2.Block?O[ua.Endpoint2.Block]:null,l=yb(Ca,w,Ja,Ka);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ja&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*-ua.Endpoint1.y)),!0);null==Ka&&null!=ua.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint2.x),Math.round(.75*ua.Endpoint2.y)),!1);Ca=r[Ca.id];if(null!=Ca){for(var Ha=l.geometry,cb=ua=0,Ea=Ca;null!=Ea&&null!=Ea.geometry;)ua+=Ea.geometry.x,cb+=Ea.geometry.y,Ea=Ea.parent;Ma(Ha.sourcePoint,ua,cb);Ma(Ha.targetPoint,ua,cb);Ma(Ha.offset,ua,cb);Ha=Ha.points;if(null!=Ha)for(Ea=0;Ea<Ha.length;Ea++)Ma(Ha[Ea],ua,cb)}e.push(w.addCell(l,Ca,null,Ja,Ka))},e=[],O={},r={},p={},aa=[];null!=-F.Lines&&(p=F.Lines);if(null!=F.Blocks){Object.assign(p,F.Blocks);for(var ba in F.Blocks){var W=F.Blocks[ba];W.id=ba;var wa=!1;null!=Pd[W.Class]&&"mxCompositeShape"==Pd[W.Class]&&(O[W.id]=Je(W,e,w),aa.push(W),wa=!0);wa||(O[W.id]=sc(W,w),aa.push(W))}if(null!=F.Generators)for(ba in F.Generators)"OrgChart2018"==F.Generators[ba].ClassName?(LucidImporter.hasUnknownShapes=!0,Ke(ba,F.Generators[ba],F.Data,w,O)):LucidImporter.hasUnknownShapes=!0}else{for(var ka=0;ka<F.Objects.length;ka++)W=F.Objects[ka],-p[W.id]=W,null!=W.Action&&"mxCompositeShape"==Pd[W.Action.Class]?O[W.id]=Je(W,e,w):W.IsBlock&&null!=W.Action&&null!=W.Action.Properties?O[W.id]=sc(W,w):W.IsGenerator&&W.GeneratorData&&W.GeneratorData.p&&("OrgChart2018"==W.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Ke(W.GeneratorData.id,W.GeneratorData.p,W.GeneratorData.gs,w,O)):LucidImporter.hasUnknownShapes=!0),aa.push(W);for(ka=0;ka<F.Objects.length;ka++)if(W=F.Objects[ka],W.IsGroup){var pa=Ie(W,O,r,p,w);pa&&(O[W.id]=pa,aa.push(W))}}if(null!=-F.Groups)try{for(ba in F.Groups)if(W=F.Groups[ba],W.id=ba,pa=Ie(W,O,r,p,w))O[W.id]=pa,aa.push(W)}catch(Ca){console.log(Ca)}if(null!=F.Lines)for(ba in F.Lines)W=F.Lines[ba],W.id=ba,aa.push(W);aa.sort(function(Ca,ua){Ca=h(Ca);ua=h(ua);Ca=null!=Ca.Properties?Ca.Properties.ZOrder:Ca.ZOrder;ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;return null!=Ca&&null!=ua?Ca>ua?1:Ca<ua?-1:0:0});for(ka=0;ka<aa.length;ka++){W=aa[ka];var ra=O[W.id];if(null!=ra){if(null==ra.parent)if(ra.lucidLayerInfo){var Aa=-new mxCell;w.addCell(Aa,w.model.root);Aa.setVisible(ra.lucidLayerInfo.visible);ra.lucidLayerInfo.locked&&Aa.setStyle("locked=1;");Aa.setValue(ra.lucidLayerInfo.name);delete ra.lucidLayerInfo;w.addCell(ra,Aa)}else e.push(w.addCell(ra))}else W.IsLine&&null!=W.Action&&null!=W.Action.Properties?u(W,W.Action.Properties):null!=W.StrokeStyle&&u(W,W)}LucidImporter.stylePointsSet.forEach(function(Ca){Ca.style="points=["+Ca.stylePoints.join(",")+"];"+Ca.style;delete Ca.stylePoints});try{var na=w.getModel().cells;-w.view.validate();for(var Ba in na){var Oa=na[Ba];null!=Oa&&(Af(w,Oa),Bf(w,Oa),Cf(w,Oa),"1"==urlParams.lucidchartObject&&null!=Oa.lucidchartObject&&Sa(Oa,"lucidchartObject",JSON.stringify(Oa.lucidchartObject,null,2),w),delete Oa.lucidchartObject,delete Oa.zOrder)}}catch(Ca){console.log(Ca)}D||w.setSelectionCells(e)}finally{w.getModel().endUpdate()}}function Cf(w,F){if(w.model.contains(F)&&F.edge){var D=w.view.getState(F);if(null!=D&&null!=F.children){var u=mxRectangle.fromRectangle(D.paintBounds);-u.grow(5);for(var e=0;e<F.children.length;e++){var O=w.view.getState(F.children[e]);null==O||mxUtils.contains(u,O.paintBounds.x,O.paintBounds.y)||(O.cell.geometry.offset=new mxPoint(0,0))}}w=F.lucidchartObject;null!=w&&"elbow"==w.Shape&&null==w.ElbowControlPoints&&null==w.ElbowPoints&&null!=D.style.exitX&&null!=D.style.exitY&&null!=D.style.entryX&&null!=D.style.entryY&&(F.style=mxUtils.setStyle(F.style,"exitX",Math.round(20*D.style.exitX)/20),F.style=mxUtils.setStyle(F.style,"exitY",Math.round(20*-D.style.exitY)/20),F.style=mxUtils.setStyle(F.style,"entryX",Math.round(20*D.style.entryX)/20),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*D.style.entryY)/20))}}function Bf(w,F){if(w.model.contains(F)&&null!=F.style&&""!=F.style){w=F.style.split(";");for(var D={},u=[],e=w.length-1;0<=e;e--){var O=w[e].split("=");if(2!=O.length||null==D[O[0]])D[O[0]]=O[1],""!=w[e]&&u.push(w[e])}F.style=u.reverse().join(";")+";"}}function Af(w,F){if(w.model.contains(F)&&null!=F.children&&null!=F.geometry&&-F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var D=null,u=0;u<F.children.length;u++)if(F.children[u].vertex){var e=F.children[u].geometry;if(null!=e&&0==e.x&&0==e.y&&e.width==F.geometry.width&&e.height==F.geometry.height){if(null!=D)return;D=F.children[u]}}F=D;if(null!=F&&(D=F.parent,""==w.convertValueToString(D))){if(null!=F.edges)for(u=0;u<F.edges.length;u++)F.edges[u].source==F&&F.edges[u].setTerminal(F.parent,!0),F.edges[u].target==F&&F.edges[u].setTerminal(F.parent,!1);if(null!=-F.children&&0<F.children.length)for(e=F.children.slice(),u=0;u<e.length;u++)D.insert(e[u]);w.cellLabelChanged(D,w.convertValueToString(F));D.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var w=new Graph;w.setExtendParents(!1);w.setExtendParentsOnAdd(!1);w.setConstrainChildren(!1);w.setHtmlLabels(!0);w.getModel().maintainEdgeParent=!1;return w}function Rd(w,F,D,u,e,O,r,p){this.nurbsValues=[1,3,0,0,100*(w+D),100-100*(1-(F+u)),-0,1,100*(e+r),100-100*(1-(O+p)),0,1]}function Le(w,F){try{for(var D=[],u=F.BoundingBox.w,e=F.BoundingBox.h,O=0;O<F.Shapes.length;O++){var r=F.Shapes[O],p=r.FillColor,aa=r.StrokeColor,ba=r.LineWidth,W=r.Points,wa=r.Lines,ka=['<shape strokewidth="inherit"><foreground>'];ka.push("<path>");for(var pa=null,ra=0;ra<wa.length;ra++){var Aa=wa[ra];if(pa!=Aa.p1){var na=W[Aa.p1].x,Ba=W[Aa.p1].y;na=100*na/u;Ba=100*Ba/e;na=Math.round(100*na)/100;Ba=Math.round(100*Ba)/100;ka.push('<move x="'+na+'" y="'+Ba+'"/>')}if(null!=-Aa.n1){var Oa=W[Aa.p2].x,Ca=W[Aa.p2].y,ua=u,Ma=e,Ja=new Rd(W[Aa.p1].x/u,W[Aa.p1].y/e,Aa.n1.x/u,Aa.n1.y/e,W[Aa.p2].x/u,W[Aa.p2].y/e,Aa.n2.x/u,Aa.n2.y/e);if(2<=Ja.getSize()){Ja.getX(0);Ja.getY(0);Ja.getX(1);Ja.getY(1);Oa=Math.round(100*Oa/ua*100)/100;Ca=Math.round(100*Ca/Ma*100)/100;ua=[];Ma=[];for(var Ka=[],l=Ja.getSize(),Ha=0;Ha<l-1;Ha+=3)ua.push(new mxPoint(Ja.getX(Ha),Ja.getY(Ha))),Ma.push(new mxPoint(Ja.getX(Ha+1),Ja.getY(Ha+1))),Ha<l-2?Ka.push(new mxPoint(Ja.getX(Ha+2),Ja.getY(Ha+2))):Ka.push(new mxPoint(Oa,-Ca));var cb="";for(Ha=0;Ha<ua.length;Ha++)cb+='<curve x1="'+ua[Ha].x+'" y1="'+ua[Ha].y+'" x2="'+Ma[Ha].x+'" y2="'+Ma[Ha].y+'" x3="'+Ka[Ha].x+'" y3="'+Ka[Ha].y+'"/>';var Ea=cb}else Ea=void 0;ka.push(Ea)}else na=W[Aa.p2].x,Ba=W[Aa.p2].y,na=100*na/u,Ba=100*Ba/e,na=Math.round(100*na)/100,Ba=Math.round(100*Ba)/100,ka.push('<line x="'+na+'" y="'+Ba+'"/>');pa=Aa.p2}ka.push("</path>");ka.push("<fillstroke/>");ka.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ka.join(""))+")",-FillColor:p,LineColor:aa,LineWidth:ba})}LucidImporter.stencilsMap[w]={text:F.Text,w:u,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,stencils:D}}catch(Qa){console.log("Stencil parsing error:",Qa)}}function tc(w,F,D,u,e,O,r,p){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");w.vertex=!0;r.insert(w);O=[w];D=D.clone();p.insertEdge(D,!1);w.insertEdge(D,!0);O.push(D);u.push(e.addCell(D,null,null,null,null))}function gb(w,F,D,u,e,O,r,p,aa){w=new mxCell("",new mxGeometry(w,F,0,0),"strokeColor=none;fillColor=none;");-w.vertex=!0;aa.insert(w);D=new mxCell("",new mxGeometry(D,u,0,0),"strokeColor=none;fillColor=none;");D.vertex=!0;aa.insert(D);p=[D];e=e.clone();w.insertEdge(e,!0);D.insertEdge(e,!1);p.push(e);O.push(r.addCell(e,null,null,null,null))}function Ta(w,F,D,u,e,O){u.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";u.style+=c(u.style,e,O,u);F=m(e);u.vertex=!0;w=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+-"=mxgraph.gcp2."+w+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");w.style+=c(w.style,e,O,w,G);w.geometry.relative=!0;w.geometry.offset=new mxPoint(5,-12);w.vertex=!0;u.insert(w)}function Ya(w,F,D,u,e,O,r,p){e="transparent"!=w?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";O.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";O.style+=c(O.style,-r,p,O);O.value=m(r);O.vertex=!0;w=new mxCell(null,new mxGeometry(.5,0,.7*u*F,.7*u*D),e+w+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");w.geometry.relative=!0;w.geometry.offset=new mxPoint(-F*u*.35,10+(1-D)*u*.35);w.vertex=!0;w.style+=c(w.style,r,p,w,G);O.insert(w)}function Yc(w,F){return null!=w&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),w.includes(";"+F+"=")||w.substring(0,F.length+1)==F+"=")?!0:!1}function Sd(w,F){function D(u){u=Math.round(parseInt("0x"+-u)*F).toString(16);return 1==u.length?"0"+u:u}return"#"+D(w.substr(1,2))+D(w.substr(3,2))+D(w.substr(5,2))}function Je(w,F,D){var u=h(w),e=u.Properties,O=e.BoundingBox,r=Math.round(.75*O.w),p=Math.round(.75*O.h),aa=Math.round(.75*O.x+xc),ba=Math.round(.75*O.y+yc);null==w.Class||"GCPInputDatabase"!==w.Class&&"GCPInputRecord"!==w.Class&&"GCPInputPayment"!==w.Class&&"GCPInputGateway"!==w.Class&&"GCPInputLocalCompute"!==w.Class&&"GCPInputBeacon"!==w.Class&&"GCPInputStorage"!==w.Class&&"GCPInputList"!==-w.Class&&"GCPInputStream"!==w.Class&&"GCPInputMobileDevices"!==w.Class&&"GCPInputCircuitBoard"!==w.Class&&"GCPInputLive"!==w.Class&&"GCPInputUsers"!==w.Class&&"GCPInputLaptop"!==w.Class&&"GCPInputApplication"!==w.Class&&"GCPInputLightbulb"!==w.Class&&"GCPInputGame"!==w.Class&&"GCPInputDesktop"!==w.Class&&"GCPInputDesktopAndMobile"!==w.Class&&"GCPInputWebcam"!==w.Class&&"GCPInputSpeaker"!==w.Class&&"GCPInputRetail"!==w.Class&&"GCPInputReport"!==w.Class&&"GCPInputPhone"!==w.Class&&"GCPInputBlank"!==-w.Class||(p+=20);v=new mxCell("",new mxGeometry(aa,ba,r,p),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var W=null!=w.Class?w.Class:null!=u?u.Class:null;switch(W){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ka=null,pa=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"<br>"),null,null,Math.abs(r-.125*p)):{width:0,height:0};wa?(ka=new mxCell("",new mxGeometry(r-.125*-p,0,.125*p,p),"shape=curlyBracket;rounded=1;"),pa=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;")):(ka=new mxCell("",new mxGeometry(0,0,.125*p,p),"shape=curlyBracket;rounded=1;flipH=1;"),pa=new mxCell("",new mxGeometry(.125*p-Aa.height,Aa.width,r-.125*p,p),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);ka.vertex=!0;v.insert(ka);ka.style+=c(ka.style,e,u,ka);pa.vertex=!0;pa.value=ra;v.insert(pa);-pa.style+=c(pa.style,e,u,pa,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var na="MainText",Ba=null,Oa="HeaderFill_",Ca="BodyFill_",ua=25,Ma=25,Ja=0;if(null!=e.Lanes)Ja=e.Lanes.length;else if(null!=e.PrimaryLane){var Ka=function(hb){if(hb)32>hb?hb=32:208<hb&&(hb=208);else return 0;return.75*hb};Ja=e.PrimaryLane.length;-for(var l=p=r=0;l<Ja;l++)r+=e.PrimaryLane[l];for(l=0;l<e.SecondaryLane.length;l++)p+=e.SecondaryLane[l];ua=Ka(e.PrimaryPoolTitleHeight);Ma=Ka(e.PrimaryLaneTitleHeight);r*=.75;p=.75*p+ua+Ma;v.geometry.width=r;v.geometry.height=p;na="poolPrimaryTitleKey";Oa="PrimaryLaneHeaderFill_";Ca="CellFill_0,";Ba=e.PrimaryLaneTextAreaIds;if(null==Ba)for(Ba=[],l=0;l<Ja;l++)Ba.push("Primary_"+l)}if(0==e.IsPrimaryLaneVertical){e.Rotation=-1.5707963267948966;var Ha=v.geometry.x,cb=v.geometry.y}var Ea=0!=e.Rotation,-Qa=0<W.indexOf("Pool"),ma=0==W.indexOf("BPMN"),La=null!=e[na];v.style=(Qa?"swimlane;startSize="+ua+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Ea?"horizontalStack=0;":"");v.style+=c(v.style,e,u,v);La&&(v.value=m(e[na]),v.style+=(G?"overflow=block;blockSpacing=1;fontSize=13;"+mb:f(e[na])+q(e[na])+k(e[na])+t(e[na])+C(e[na],v)+I(e[na])+Q(e[na])+K(e[na])+L(e[na]))+S(e[na])+-R(e[na]));for(var ya=0,za=[],Qb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Ma+";dropTarget=0;rounded=0;"+(Ea?"horizontal=0;":"")+(ma?"swimlaneLine=0;fillColor=none;":""),ha=e.Rotation=0;ha<Ja;ha++){if(null==Ba){var xb=parseFloat(e.Lanes[ha].p);l=parseInt(e.Lanes[ha].tid)||ha;var Wa="Lane_"+l}else xb=.75*e.PrimaryLane[ha]/r,l=ha,Wa=Ba[ha];var rc=r*ya,wc=Qa?ua:0;za.push(new mxCell("",Ea?new mxGeometry(wc,rc,p-wc,r*xb):new mxGeometry(rc,wc,r*xb,p--wc),Qb));za[ha].vertex=!0;v.insert(za[ha]);za[ha].value=m(e[Wa]);za[ha].style+=c(za[ha].style,e,u,za[ha],G)+(G?"fontSize=13;":f(e[Wa])+q(e[Wa])+t(e[Wa])+C(e[Wa],za[ha])+I(e[Wa])+Q(e[Wa])+K(e[Wa])+L(e[Wa]))+S(e[Wa])+R(e[Wa])+N(e[Oa+l])+J(e[Ca+l]);ya+=xb}null!=Ha&&(v.geometry.x=Ha,v.geometry.y=cb);break;case "UMLMultidimensionalSwimlane":var Gb=0,Rb=0,Lb=null,$b=null;if(null!=e.Rows&&null!=e.Columns){Gb=e.Rows.length;Rb=e.Columns.length;var Za=.75*e.TitleHeight||25,qb=.75*e.TitleWidth||25}else if(null!=-e.PrimaryLane&&null!=e.SecondaryLane){Gb=e.SecondaryLane.length;Rb=e.PrimaryLane.length;qb=.75*e.SecondaryLaneTitleHeight||25;Za=.75*e.PrimaryLaneTitleHeight||25;for(l=p=r=0;l<Gb;l++)p+=e.SecondaryLane[l];for(l=0;l<Rb;l++)r+=e.PrimaryLane[l];r=.75*r+qb;p=.75*p+Za;v.geometry.width=r;v.geometry.height=p;Lb=e.SecondaryLaneTextAreaIds;$b=e.PrimaryLaneTextAreaIds}v.style="group;";var Oc=new mxCell("",new mxGeometry(0,Za,r,p-Za),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");-Oc.vertex=!0;var Gc=new mxCell("",new mxGeometry(qb,0,r-qb,p),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Gc.vertex=!0;v.insert(Oc);v.insert(Gc);ba=0;var Hc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+qb+";";for(ha=0;ha<Gb;ha++){if(null==Lb){var Td=.75*parseInt(e.Rows[ha].height);l=parseInt(e.Rows[ha].id)||ha;var Sb="Row_"+l}else Td=-.75*e.SecondaryLane[ha],Sb=Lb[ha];var Ic=new mxCell("",new mxGeometry(0,ba,r,Td),Hc);ba+=Td;Ic.vertex=!0;Oc.insert(Ic);Ic.value=m(e[Sb]);Ic.style+=c(Ic.style,e,u,Ic,G)+(G?"fontSize=13;":f(e[Sb])+q(e[Sb])+t(e[Sb])+C(e[Sb],Ic)+I(e[Sb])+Q(e[Sb])+K(e[Sb])+L(e[Sb]))+S(e[Sb])+R(e[Sb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Za+";";for(ha=aa=0;ha<Rb;ha++){if(null==$b){var Zc=.75*parseInt(e.Columns[ha].width);l=parseInt(e.Columns[ha].id)||-ha;var Tb="Column_"+l}else Zc=.75*e.PrimaryLane[ha],Tb=$b[ha];var Jc=new mxCell("",new mxGeometry(aa,0,Zc,p),Ef);aa+=Zc;Jc.vertex=!0;Gc.insert(Jc);Jc.value=m(e[Tb]);Jc.style+=c(Jc.style,e,u,Jc,G)+(G?"fontSize=13;":f(e[Tb])+q(e[Tb])+t(e[Tb])+C(e[Tb],Jc)+I(e[Tb])+Q(e[Tb])+K(e[Tb])+L(e[Tb]))+S(e[Tb])+R(e[Tb])}break;case "UMLStateBlock":if(0==e.Composite)v.style="rounded=1;arcSize=20",v.value=m(e.State,!0),v.style+=c(v.style,e,u,v,G);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0;";-v.value=m(e.State,!0);v.style+=c(v.style,e,u,v,G);v.style+=Y(e,u).replace("fillColor","swimlaneFillColor");var zb=new mxCell("",new mxGeometry(0,25,r,p-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");zb.value=m(e.Action,!0);zb.style+=c(zb.style,e,u,zb,G);zb.vertex=!0;v.insert(zb)}break;case "GSDFDProcessBlock":var ie=Math.round(.75*e.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+ie;v.value=m(e.Number,!0);v.style+=c(v.style,e,u,v,-G);v.style+=Y(e,u).replace("fillColor","swimlaneFillColor");zb=new mxCell("",new mxGeometry(0,ie,r,p-ie),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");zb.value=m(e.Text,!0);zb.style+=c(zb.style,e,u,zb,G);zb.vertex=!0;v.insert(zb);break;case "AndroidDevice":if(null!=e.AndroidDeviceName){var nb=T(e,u,v);v.style="fillColor=#000000;strokeColor=#000000;";var zc=null,$c=null,ad=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Tablet"==-e.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",zc=new mxCell("",new mxGeometry(.112,.077,.77*r,.85*p),nb),e.KeyboardShown&&($c=new mxCell("",new mxGeometry(.112,.727,.77*r,.2*p),"shape=mxgraph.android.keyboard;"+nb)),e.FullScreen||(ad=new mxCell("",new mxGeometry(.112,.077,.77*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+nb));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&-"Phone"==e.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",zc=new mxCell("",new mxGeometry(.04,.092,.92*r,.816*p),nb),e.KeyboardShown&&($c=new mxCell("",new mxGeometry(.04,.708,.92*r,.2*p),"shape=mxgraph.android.keyboard;"+nb)),e.FullScreen||(ad=new mxCell("",new mxGeometry(.04,.092,.92*r,.03*p),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*p+";"+nb));zc.vertex=!0;zc.geometry.relative=!0;v.insert(zc);"Dark"==e.Scheme?zc.style+="fillColor=#111111;":-"Light"==e.Scheme&&(zc.style+="fillColor=#ffffff;");null!=$c&&($c.vertex=!0,$c.geometry.relative=!0,v.insert($c));null!=ad&&(ad.vertex=!0,ad.geometry.relative=!0,v.insert(ad))}v.style+=c(v.style,e,u,v);break;case "AndroidAlertDialog":var ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);var Pa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Pa.vertex=!0;v.insert(Pa);var rd=new mxCell("",new mxGeometry(0,-30,r,p-30),"strokeColor=none;fillColor=none;verticalAlign=top;");rd.vertex=!0;v.insert(rd);var jb=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);var kb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");kb.vertex=!0;v.insert(kb);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);rd.value=m(e.DialogText);rd.style+=a(e.DialogText,G);jb.value=m(e.Button_0);jb.style+=a(e.Button_0,G);kb.value=m(e.Button_1);kb.style+=a(e.Button_1,G);"Dark"==-e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",jb.style+="strokeColor=#353535;",kb.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",jb.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=#E2E2E2;");v.style+=c(v.style,e,u,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,-G);Pa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Pa.vertex=!0;v.insert(Pa);jb=new mxCell("",new mxGeometry(0,p-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=m(e.Button_0);jb.style+=a(e.Button_0,G);kb=new mxCell("",new mxGeometry(.5*r,p-25,.5*r,25),"fillColor=none;");kb.vertex=!0;v.insert(kb);kb.value=m(e.Button_1);kb.style+=a(e.Button_1,G);var bd=new mxCell("",new mxGeometry(.5*r-4,41,8,4),"shape=triangle;direction=north;");bd.vertex=!0;v.insert(bd);-var cd=new mxCell("",new mxGeometry(.25*r-4,41,8,4),"shape=triangle;direction=north;");cd.vertex=!0;v.insert(cd);var dd=new mxCell("",new mxGeometry(.75*r-4,41,8,4),"shape=triangle;direction=north;");dd.vertex=!0;v.insert(dd);var sd=new mxCell("",new mxGeometry(.375*r,50,.2*r,15),"strokeColor=none;fillColor=none;");sd.vertex=!0;v.insert(sd);sd.value=m(e.Label_1);sd.style+=a(e.Label_1,G);var td=new mxCell("",new mxGeometry(.125*r,50,.2*r,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);-td.value=m(e.Label_0);td.style+=a(e.Label_0,G);var ed=null;"AndroidDateDialog"==w.Class&&(ed=new mxCell("",new mxGeometry(.625*r,50,.2*r,15),"strokeColor=none;fillColor=none;"),ed.vertex=!0,v.insert(ed),ed.value=m(e.Label_2),ed.style+=a(e.Label_2,G));var Ab=new mxCell("",new mxGeometry(.43*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Bb=new mxCell("",new mxGeometry(.18*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Bb.vertex=!0;v.insert(Bb);var Me=new mxCell("",-new mxGeometry(.68*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var ud=new mxCell("",new mxGeometry(.375*r,65,.2*r,15),"strokeColor=none;fillColor=none;");ud.vertex=!0;v.insert(ud);ud.value=m(e.Label_4);ud.style+=a(e.Label_4,G);var fd=null;"AndroidTimeDialog"==w.Class&&(fd=new mxCell("",new mxGeometry(.3*r,65,.1*r,15),"strokeColor=none;fillColor=none;"),fd.vertex=!0,v.insert(fd),fd.value=m(e.Label_Colon),fd.style+=a(e.Label_Colon,G));var vd=new mxCell("",new mxGeometry(.125*-r,65,.2*r,15),"strokeColor=none;fillColor=none;");vd.vertex=!0;v.insert(vd);vd.value=m(e.Label_3);vd.style+=a(e.Label_3,G);var wd=new mxCell("",new mxGeometry(.625*r,65,.2*r,15),"strokeColor=none;fillColor=none;");wd.vertex=!0;v.insert(wd);wd.value=m(e.Label_5);wd.style+=a(e.Label_5,G);var Ne=new mxCell("",new mxGeometry(.43*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.18*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Oe.vertex=-!0;v.insert(Oe);var Pe=new mxCell("",new mxGeometry(.68*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Pe.vertex=!0;v.insert(Pe);var xd=new mxCell("",new mxGeometry(.375*r,80,.2*r,15),"strokeColor=none;fillColor=none;");xd.vertex=!0;v.insert(xd);xd.value=m(e.Label_7);xd.style+=a(e.Label_7,G);var yd=new mxCell("",new mxGeometry(.125*r,80,.2*r,15),"strokeColor=none;fillColor=none;");yd.vertex=!0;v.insert(yd);yd.value=m(e.Label_6);yd.style+=a(e.Label_6,G);var zd=new mxCell("",new mxGeometry(.625*-r,80,.2*r,15),"strokeColor=none;fillColor=none;");zd.vertex=!0;v.insert(zd);zd.value=m(e.Label_8);zd.style+=a(e.Label_8,G);var gd=new mxCell("",new mxGeometry(.5*r-4,99,8,4),"shape=triangle;direction=south;");gd.vertex=!0;v.insert(gd);var hd=new mxCell("",new mxGeometry(.25*r-4,99,8,4),"shape=triangle;direction=south;");hd.vertex=!0;v.insert(hd);var id=new mxCell("",new mxGeometry(.75*r-4,99,8,4),"shape=triangle;direction=south;");id.vertex=!0;v.insert(id);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",-jb.style+="strokeColor=#353535;",kb.style+="strokeColor=#353535;",bd.style+="strokeColor=none;fillColor=#7E7E7E;",cd.style+="strokeColor=none;fillColor=#7E7E7E;",dd.style+="strokeColor=none;fillColor=#7E7E7E;",gd.style+="strokeColor=none;fillColor=#7E7E7E;",hd.style+="strokeColor=none;fillColor=#7E7E7E;",id.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",jb.style+="strokeColor=#E2E2E2;",kb.style+="strokeColor=#E2E2E2;",bd.style+="strokeColor=none;fillColor=#939393;",-cd.style+="strokeColor=none;fillColor=#939393;",dd.style+="strokeColor=none;fillColor=#939393;",gd.style+="strokeColor=none;fillColor=#939393;",hd.style+="strokeColor=none;fillColor=#939393;",id.style+="strokeColor=none;fillColor=#939393;");v.style+=c(v.style,e,u,v);break;case "AndroidListItems":var Cb=p,Ac=0;if(e.ShowHeader){Ac=8;var Pc=new mxCell("",new mxGeometry(0,0,r,Ac),"strokeColor=none;fillColor=none;");Pc.vertex=!0;v.insert(Pc);Pc.value=m(e.Header);Pc.style+=a(e.Header,G);Cb-=Ac;var Qe=new mxCell("",-new mxGeometry(0,Ac-2,r,4),"shape=line;strokeColor=#999999;");Qe.vertex=!0;v.insert(Qe)}var bc=parseInt(e.Items);0<bc&&(Cb/=bc);var X=[];Pa=[];for(l=0;l<bc;l++)X[l]=new mxCell("",new mxGeometry(0,Ac+l*Cb,r,Cb),"strokeColor=none;fillColor=none;"),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["Item_"+l]),X[l].style+=a(e["Item_"+l],G),0<l&&(Pa[l]=new mxCell("",new mxGeometry(0,Ac+l*Cb-2,r,4),"shape=line;"),Pa[l].vertex=!0,v.insert(Pa[l]),Pa[l].style="Dark"==e.Scheme?Pa[l].style+"strokeColor=#ffffff;":-Pa[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=c(v.style,e,u,v);break;case "AndroidTabs":var cc=parseInt(e.Tabs),Hb=r;0<cc&&(Hb/=cc);var Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor=none;fillColor=none;"),Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=a(e["Tab_"+l],G),0<l&&(Pa[l]=new mxCell("",new mxGeometry(l*Hb-2,-.2*p,4,.6*p),"shape=line;direction=north;"),Pa[l].vertex=!0,v.insert(Pa[l]),Pa[l].style="Dark"==e.Scheme?Pa[l].style+"strokeColor=#484848;":Pa[l].style+"strokeColor=#CCCCCC;");var Re=new mxCell("",new mxGeometry(e.Selected*Hb+2,p-3,Hb-4,3),"strokeColor=none;fillColor=#33B5E5;");Re.vertex=!0;v.insert(Re);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=c(v.style,e,u,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(aa),-Math.round(ba+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var Ad=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;fillColor=#33B5E5;");Ad.vertex=!0;v.insert(Ad);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=c(v.style,e,u,v);break;case "AndroidImageBlock":v.style="Dark"==e.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":-v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";v.style+=c(v.style,e,u,v);break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=m(e.Label);v.style+=a(e.Label,G);v.style+=c(v.style,e,u,v,G);break;case "AndroidActionBar":v.style+="strokeColor=none;";-switch(e.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(e.HighlightShow){var Bc=null;Bc=e.HighlightTop?new mxCell("",new mxGeometry(0,0,r,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,p-2,r,2),"strokeColor=none;");Bc.vertex=!0;v.insert(Bc);switch(e.HighlightColor){case "Blue":Bc.style+="fillColor=#33B5E5;";break;case "Dark Gray":Bc.style+=-"fillColor=#B0B0B0;";break;case "White":Bc.style+="fillColor=#ffffff;"}}if(e.VlignShow){var jd=new mxCell("",new mxGeometry(20,5,2,p-10),"shape=line;direction=north;");jd.vertex=!0;v.insert(jd);switch(e.VlignColor){case "Blue":jd.style+="strokeColor=#244C5A;";break;case "White":jd.style+="strokeColor=#ffffff;"}}v.style+=c(v.style,e,u,v);break;case "AndroidButton":v.value=m(e.Label);v.style+=a(e.Label,G)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":-v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=c(v.style,e,u,v);break;case "AndroidTextBox":v.value=m(e.Label);v.style+=a(e.Label,G);var Bd=new mxCell("",new mxGeometry(2,p-6,r-4,4),"shape=partialRectangle;top=0;fillColor=none;");Bd.vertex=!0;v.insert(Bd);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Bd.style=e.TextFocused?Bd.style+"strokeColor=#33B5E5;":Bd.style+"strokeColor=#A9A9A9;";v.style+=c(v.style,e,u,v);-break;case "AndroidRadioButton":var Qc=null;e.Checked&&(Qc=new mxCell("",new mxGeometry(.15*r,.15*p,.7*r,.7*p),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Qc.vertex=!0,v.insert(Qc));"Dark"==e.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",e.Checked?(Qc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&-(Qc.style+="strokeColor=#999999;"));v.style+=c(v.style,e,u,v);break;case "AndroidCheckBox":var je=null;e.Checked&&(je=new mxCell("",new mxGeometry(.25*r,.05*-p,r,.8*p),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),je.vertex=!0,v.insert(je));v.style="Dark"==e.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=c(v.style,e,u,v);break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?-v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=c(v.style,e,u,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";v.style+=c(v.style,e,u,v);break;case "iOSSegmentedControl":cc=parseInt(e.Tabs);Hb=r;v.style+="strokeColor=none;fillColor=none;";-0<cc&&(Hb/=cc);Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor="+e.FillColor+";"),Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=a(e["Tab_"+l],G),Ua[l].style=e.Selected==l?Ua[l].style+Y(e,u):Ua[l].style+"fillColor=none;";v.style+=c(v.style,e,u,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";v.style+=c(v.style,e,u,v);break;case "iOSProgressBar":v=-new mxCell("",new mxGeometry(Math.round(aa),Math.round(ba+.25*p),Math.round(r),Math.round(.5*p)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;Ad=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*p)),"strokeColor=none;"+Y(e,u));Ad.vertex=!0;v.insert(Ad);v.style+=c(v.style,e,u,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=c(v.style,e,u,v);break;case "iOSStatusBar":v.style+=-"shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var Da=new mxCell(m(e.Text),new mxGeometry(.35*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.Text,G);var Db=new mxCell(m(e.Carrier),new mxGeometry(.09*r,0,.2*r,p),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.Carrier,G);v.style+=c(v.style,e,u,v);break;case "iOSSearchBar":v.value=m(e.Search);v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v,G)+a(e.Search,G);var Ia=new mxCell("",-new mxGeometry(.3*r,.3*p,.4*p,.4*p),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");Ia.vertex=!0;v.insert(Ia);break;case "iOSNavBar":v.value=m(e.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+a(e.Title,G);v.style+=c(v.style,e,u,v,G);Da=new mxCell(m(e.LeftText),new mxGeometry(.03*r,0,.3*r,p),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.LeftText,G);Db=new mxCell(m(e.RightText),new mxGeometry(.65*r,0,.3*-r,p),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.RightText,G);Ia=new mxCell("",new mxGeometry(.02*r,.2*p,.3*p,.5*p),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Ia.vertex=!0;v.insert(Ia);break;case "iOSTabs":cc=parseInt(e.Tabs);Hb=r;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=c(v.style,e,u,v);0<cc&&(Hb/=cc);Ua=[];Pa=[];for(l=0;l<cc;l++)Ua[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,p),"strokeColor=none;"),-Ua[l].vertex=!0,v.insert(Ua[l]),Ua[l].value=m(e["Tab_"+l]),Ua[l].style+=G?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+mb:f(e["Tab_"+l])+k(e["Tab_"+l])+q(e["Tab_"+l])+t(e["Tab_"+l])+C(e["Tab_"+l])+I(e["Tab_"+l])+Q(e["Tab_"+l])+K(e["Tab_"+l])+L(e["Tab_"+l])+S(e["Tab_"+l]),Ua[l].style+="verticalAlign=bottom;",Ua[l].style=e.Selected==l?Ua[l].style+"fillColor=#BBBBBB;":Ua[l].style+"fillColor=none;";break;case "iOSDatePicker":var dc=new mxCell("",new mxGeometry(0,0,.5*r,.2*p),"strokeColor=none;fillColor=none;");-dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);var ec=new mxCell("",new mxGeometry(.5*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);var fc=new mxCell("",new mxGeometry(.65*r,0,.15*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);var gc=new mxCell("",new mxGeometry(0,.2*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=-!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);var hc=new mxCell("",new mxGeometry(.5*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);var ic=new mxCell("",new mxGeometry(.65*r,.2*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);var rb=new mxCell("",new mxGeometry(0,.4*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=-!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);var sb=new mxCell("",new mxGeometry(.5*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);var jc=new mxCell("",new mxGeometry(.65*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);var tb=new mxCell("",new mxGeometry(.8*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=-!0;v.insert(tb);tb.value=m(e.Option43);tb.style+=a(e.Option43,G);var ub=new mxCell("",new mxGeometry(0,.6*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);var kc=new mxCell("",new mxGeometry(.5*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);var lc=new mxCell("",new mxGeometry(.65*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=-!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);var mc=new mxCell("",new mxGeometry(.8*r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option44);mc.style+=a(e.Option44,G);var vb=new mxCell("",new mxGeometry(0,.8*p,.5*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);var nc=new mxCell("",new mxGeometry(.5*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=-!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);var oc=new mxCell("",new mxGeometry(.65*r,.8*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=c(v.style,e,u,-v);break;case "iOSTimePicker":dc=new mxCell("",new mxGeometry(0,0,.25*r,.2*p),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);ec=new mxCell("",new mxGeometry(.25*r,0,.3*r,.2*p),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);gc=new mxCell("",new mxGeometry(0,.2*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,-G);hc=new mxCell("",new mxGeometry(.25*r,.2*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);rb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);sb=new mxCell("",new mxGeometry(.25*r,.4*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);tb=new mxCell("",-new mxGeometry(.7*r,.4*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option33);tb.style+=a(e.Option33,G);ub=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);kc=new mxCell("",new mxGeometry(.25*r,.6*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);mc=new mxCell("",new mxGeometry(.7*-r,.6*p,.15*r,.2*p),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option34);mc.style+=a(e.Option34,G);vb=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);nc=new mxCell("",new mxGeometry(.25*r,.8*p,.3*r,.2*p),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),-"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);break;case "iOSCountdownPicker":fc=new mxCell("",new mxGeometry(.45*r,0,.2*r,.2*p),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);ic=new mxCell("",new mxGeometry(.45*r,.2*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");-ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);rb=new mxCell("",new mxGeometry(0,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option13);rb.style+=a(e.Option13,G);sb=new mxCell("",new mxGeometry(.2*r,.4*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option23);sb.style+=a(e.Option23,G);jc=new mxCell("",new mxGeometry(.45*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");jc.vertex=-!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);tb=new mxCell("",new mxGeometry(.6*r,.4*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option43);tb.style+=a(e.Option43,G);ub=new mxCell("",new mxGeometry(0,.6*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option14);ub.style+=a(e.Option14,G);lc=new mxCell("",new mxGeometry(.45*r,.6*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);-lc.value=m(e.Option34);lc.style+=a(e.Option34,G);vb=new mxCell("",new mxGeometry(0,.8*p,.25*r,.2*p),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=m(e.Option15);vb.style+=a(e.Option15,G);oc=new mxCell("",new mxGeometry(.45*r,.8*p,.2*r,.2*p),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*p-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,-.6*p-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);break;case "iOSBasicCell":v.value=m(e.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*e.SeparatorInset+";";v.style+=(G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text))+R(e.text);v.style+=c(v.style,e,u,v,G);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*-r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);var ab=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,-.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.75*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=-G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=c(v.style,e,u,v,G);var db=new mxCell("",new mxGeometry(0,.4*p,r,.6*p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*e.SeparatorInset+";");db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");-Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");-ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.75*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+q(e.subtext)+t(e.subtext);v.style+=c(v.style,-e,u,v,G);db=null;switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);db=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*-r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);db=new mxCell("",new mxGeometry(.45*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);db=new mxCell("",new mxGeometry(.52*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");-break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");Ia.vertex=!0;v.insert(Ia);db=new mxCell("",new mxGeometry(.55*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:db=new mxCell("",new mxGeometry(.65*r,0,.3*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;")}db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+-q(e.text)+t(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=c(v.style,e,u,v);var Ub=new mxCell("",new mxGeometry(0,0,.25*r,p),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ub.vertex=!0;v.insert(Ub);Ub.value=m(e.subtext);Ub.style+=G?"html=1;fontSize=13;"+mb:f(e.subtext)+k(e.subtext)+q(e.subtext)+t(e.subtext);db=new mxCell("",new mxGeometry(.25*r,0,.5*r,p),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");-db.vertex=!0;v.insert(db);db.value=m(e.text);db.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);break;case "DetailDisclosure":Ia=new mxCell("",new mxGeometry(.91*r,.35*p,.15*p,.3*p),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ia.vertex=!0;v.insert(Ia);ab=new mxCell("",new mxGeometry(.79*-r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "DetailIndicator":ab=new mxCell("",new mxGeometry(.87*r,.25*p,.5*p,.5*p),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ab.vertex=!0;v.insert(ab);break;case "CheckMark":Ia=new mxCell("",new mxGeometry(.89*r,.37*p,.4*p,.26*p),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ia.vertex=!0,v.insert(Ia)}break;case "iOSTableGroupedSectionBreak":v.style+=-"shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";Da=new mxCell("",new mxGeometry(0,0,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Da.vertex=!0;v.insert(Da);Da.value=m(e.text);Da.style+=G?"html=1;fontSize=13;"+mb:f(e.text)+k(e.text)+q(e.text)+t(e.text);Db=new mxCell("",new mxGeometry(0,.6*p,r,.4*p),"fillColor=none;strokeColor=none;spacing=10;align=left;");Db.vertex=!0;v.insert(Db);Db.value=m(e["bottom-text"]);Db.style+=G?"html=1;fontSize=13;"+mb:f(e["bottom-text"])+-k(e["bottom-text"])+q(e["bottom-text"])+t(e["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=m(e.text);v.style+=G?"fontSize=13;":f(e.text)+q(e.text)+t(e.text);v.style+=c(v.style,e,u,v,G);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var x=new mxCell("",new mxGeometry(0,0,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");x.vertex=!0;v.insert(x);x.style+=H(e,u)+Y(e,u)+M(e,u,x)+ca(e)+-oa(e);var E=new mxCell("",new mxGeometry(.1*r,.1*p,.9*r,.9*p),"rounded=1;arcSize=3;part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=H(e,u)+Y(e,u)+M(e,u,E)+ca(e)+oa(e)+a(e,G);e.Future&&(x.style+="dashed=1;fixDash=1;",E.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",e.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=m(e.Text),v.style+=H(e,u)+Y(e,u)+M(e,u,v)+ca(e)+oa(e)+a(e,G);v.style+=c(v.style,e,u,v,G);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":x=-null;switch(w.Class){case "SMHome":x=new mxCell("",new mxGeometry(.5*r-.4*p,.1*p,.8*p,.8*p),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":x=new mxCell("",new mxGeometry(.5*r-.4*p,.19*p,.8*p,.62*p),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":x=new mxCell("",new mxGeometry(.5*r-.4*p,.1*p,.8*p,.8*p),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");-break;case "SMSettings":x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":x=new mxCell("",new mxGeometry(.5*r-.35*p,.2*p,.7*p,.6*p),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":x=new mxCell("",new mxGeometry(.5*r-.3*p,.25*p,.6*p,.5*p),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");-break;case "SMVideo":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMAudio":x=new mxCell("",new mxGeometry(.5*r-.3*p,.2*p,.6*p,.6*p),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":x=new mxCell("",new mxGeometry(.5*r-.4*p,.15*p,.8*p,.7*p),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");-break;case "SMChart":var Z=Y(e,u);Z=""==Z?"#ffffff;":Z.replace("fillColor=","");x=new mxCell("",new mxGeometry(.5*r-.35*p,.15*p,.7*p,.7*p),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+Z);break;case "SMCloud":x=new mxCell("",new mxGeometry(.5*r-.4*p,.27*p,.8*p,.46*p),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":x=new mxCell("",new mxGeometry(.5*r-.25*p,.15*p,.5*p,.7*p),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");-break;case "SMForm":x=new mxCell("",new mxGeometry(.5*r-.4*p,.15*p,.8*p,.7*p),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":x=new mxCell("",new mxGeometry(.5*r-.4*p,.2*p,.8*p,.6*p),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}x.vertex=-!0;v.insert(x);x.value=m(e.Text);x.style+=a(e,G);v.style+=c(v.style,e,u,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.9*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(0,.1*p,.9*r,.9*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=c(E.style,e,u,E,G);break;case "UMLConstraintBlock":var Cc=new mxCell("",new mxGeometry(0,0,.25*p,p),"shape=curlyBracket;rounded=1;");-Cc.vertex=!0;v.insert(Cc);var Dc=new mxCell("",new mxGeometry(r-.25*p,0,.25*p,p),"shape=curlyBracket;rounded=1;flipH=1;");Dc.vertex=!0;v.insert(Dc);pa=new mxCell("",new mxGeometry(.25*p,0,r-.5*p,p),"strokeColor=none;fillColor=none;");pa.vertex=!0;pa.value=m(e);v.insert(pa);v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);Cc.style+=M(e,u,Cc);Dc.style+=M(e,u,Dc);pa.style+=q(e,pa);Cc.style+=c(Cc.style,e,u,Cc);Dc.style+=c(Dc.style,e,u,Dc);pa.style+=c(pa.style,e,u,pa,G);break;case "UMLTextBlock":v.value=-m(e.Text);v.style+="strokeColor=none;"+a(e.Text,G);v.style+=c(v.style,e,u,v,G);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":nb=T(e,u,v);e.Rotatio=null;var Vb=c(v.style,e,u,v,G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+nb;var Ud=.8*r,Ff=r-Ud,Rc=new mxCell("",new mxGeometry(.2,0,Ud,p),"shape=ellipse;"+Vb);Rc.vertex=!0;Rc.geometry.relative=!0;v.insert(Rc);Pa=new mxCell("",new mxGeometry(0,-.5,Ff,1),"line;"+Vb);Pa.geometry.relative=!0;Pa.vertex=!0;v.insert(Pa);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=m(e);v.style="html=1;dropTarget=0;"+c(v.style,e,u,v,G);var ob=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");ob.geometry.relative=!0;ob.geometry.offset=new mxPoint(-20,5);ob.vertex=!0;v.insert(ob);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":nb=T(e,u,v);e.Rotatio=null;Vb=c(v.style,e,u,v,G);--1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+nb;var Se=.225*r,Te=.1*r;Ud=r-Se-Te;Rc=new mxCell("",new mxGeometry(.225,0,Ud,p),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Vb);Rc.vertex=!0;Rc.geometry.relative=!0;v.insert(Rc);Ab=new mxCell("",new mxGeometry(0,.5,Se,1),"line;"+Vb);Ab.geometry.relative=!0;Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(.9,.5,Te,1),"line;"+Vb);Bb.geometry.relative=-!0;Bb.vertex=!0;v.insert(Bb);break;case "BPMNActivity":v.value=m(e.Text);switch(e.bpmnActivityType){case 1:v.style+=a(e.Text,G);break;case 2:v.style+="shape=ext;double=1;"+a(e.Text,G);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+a(e.Text,G);break;case 4:v.style+="shape=ext;strokeWidth=2;"+a(e.Text,G)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:x=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 2:x=new mxCell("",new mxGeometry(0,-0,19,12),"shape=message;");x.geometry.offset=new mxPoint(4,7);break;case 3:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");x.geometry.offset=new mxPoint(4,5);break;case 4:x=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");x.geometry.offset=new mxPoint(4,7);break;case 5:x=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");x.geometry.offset=new mxPoint(4,7);break;case 6:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");-x.geometry.offset=new mxPoint(4,5);break;case 7:x=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),x.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Sc=Y(e,u);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");Sc=Sc.replace("fillColor","strokeColor");""==Z&&(Z="fillColor=#000000;");""==Sc&&(Sc="strokeColor=#ffffff;");x.style+=Sc+Z+"part=1;"}else x.style+=Y(e,u)+H(e,u)+"part=1;";x.geometry.relative=!0;x.vertex=!0;v.insert(x)}var Cd=0;0!=e.bpmnActivityMarker1&&Cd++;-0!=e.bpmnActivityMarker2&&Cd++;var Eb=0;1==Cd?Eb=-7.5:2==Cd&&(Eb=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");-x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Eb,-17);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");x.style+=Z;break;case 6:x=new mxCell("",-new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Eb,-18),x.style+=Y(e,u)+H(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}2==Cd&&(Eb=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 2:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");x.geometry.offset=new mxPoint(Eb,--20);x.style+=Y(e,u)+H(e,u);break;case 3:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 4:x=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");x.geometry.offset=new mxPoint(Eb,-20);x.style+=Y(e,u)+H(e,u);break;case 5:x=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");x.geometry.offset=new mxPoint(Eb,-17);Z=H(e,-u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");x.style+=Z;break;case 6:x=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),x.geometry.offset=new mxPoint(Eb,-18),x.style+=Y(e,u)+H(e,u)}x.geometry.relative=!0;x.vertex=!0;v.insert(x)}v.style+=c(v.style,e,u,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+=-"outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(e.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(e.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;"}v.style+=c(v.style,e,u,v,G);break;case "BPMNChoreography":try{var ja=P(e.FillColor),ke=Sd(ja,.75),Kc=f(e.Name).match(/\d+/),eb=Math.max(mxUtils.getSizeForString(e.Name.t,Kc?Kc[0]:"13",null,r-10).height,24);ja="swimlaneFillColor="+ke+";";v.value=-m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+eb+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Name,G);v.style+=c(v.style,e,u,v,G);var Wb=eb;Kc=f(e.TaskName).match(/\d+/);var pc=e.TaskHeight?.75*e.TaskHeight:Math.max(mxUtils.getSizeForString(e.TaskName.t,Kc?Kc[0]:"13",null,r-10).height+15,24),Ec=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");-Ec.value=m(e.TaskName);Ec.vertex=!0;v.insert(Ec);Ec.style+=a(e.TaskName,G);Ec.style+=c(Ec.style,e,u,Ec,G);Wb+=pc;X=[];for(l=0;l<e.Fields;l++){var Vd=e["Participant"+(l+1)];Kc=f(Vd).match(/\d+/);pc=Math.max(mxUtils.getSizeForString(Vd.t,Kc?Kc[0]:"13",null,r-10).height,24);X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Wb+=pc;X[l].vertex=!0;v.insert(X[l]);X[l].style+=a(Vd,G);X[l].style+=c(X[l].style,e,u,X[l],G);-X[l].value=m(Vd)}}catch(hb){console.log(hb)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=m(e.Text);v.style=0==e.bpmnConversationType?v.style+oa(e):v.style+"strokeWidth=2;";e.bpmnIsSubConversation&&(x=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),x.geometry.offset=new mxPoint(-6,-17),x.style+=Y(e,u)+H(e,u),x.geometry.relative=!0,x.vertex=!0,v.insert(x));v.style+=c(v.style,e,u,v,G);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";-switch(e.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;"}v.style+=c(v.style,e,u,v);-v.value=m(e.Text);v.style+=a(e,G);break;case "BPMNData":v.style+="shape=note;size=14;";switch(e.bpmnDataType){case 0:v.value=m(e.Text);e.Text&&!e.Text.t&&(e.Text.t=" ");break;case 1:x=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");x.geometry.offset=new mxPoint(-6,-15);x.style+=Y(e,u)+H(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);break;case 2:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");x.geometry.offset=new mxPoint(3,-3);x.style+=Y(e,u)+H(e,u);x.geometry.relative=!0;x.vertex=!0;v.insert(x);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;");Da.geometry.offset=new mxPoint(0,14);Da.geometry.relative=!0;Da.vertex=!0;v.insert(Da);Da.value=m(e.Text);Da.style+=a(e,G);break;case 3:x=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),x.geometry.offset=new mxPoint(3,3),x.style+=H(e,u),x.geometry.relative=-!0,x.vertex=!0,v.insert(x),Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),x.style+=Z,Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;"),Da.geometry.offset=new mxPoint(0,14),Da.geometry.relative=!0,Da.vertex=!0,v.insert(Da),Da.value=m(e.Text),Da.style+=a(e,G)}v.style+=c(v.style,e,u,v);break;case "BPMNBlackPool":v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,p),"fillColor=#000000;strokeColor=none;opacity=30;");-x.vertex=!0;v.insert(x);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,.95*r,.95*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.05*r,.05*p,.95*r,.95*p),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=c(E.style,e,u,E,G);break;case "GSDFDDataStoreBlock":v.value=m(e.Text);v.style+="shape=partialRectangle;right=0;"+a(e.Text,G);-v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,.2*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Number);x.style+=a(e.Number,G);x.style+=c(x.style,e,u,x,G);break;case "OrgBlock":var Ue="";for(Fa in e.Active)"Photo"!=Fa&&e.Active[Fa]&&(Ue+=m(e[Fa],!0));if(e.Active.Photo){var le=.4*r;v.style+="spacingLeft="+le+";imageWidth="+(le-4)+";imageHeight="+(le-4)+";imageAlign=left;imageVerticalAlign=top;image="+g(e.Photo)}v.value=Ue;v.style+=c(v.style,e,u,v,!0);break;case "DefaultTableBlock":try{Gb=-e.RowHeights.length;Rb=e.ColWidths.length;var Wd=[],Dd=[];for(l=0;l<Gb;l++)Wd[l]=.75*e.RowHeights[l];for(ha=0;ha<Rb;ha++)Dd[ha]=.75*e.ColWidths[ha];v.style="group;dropTarget=0;pointerEvents=0;";var me=e.BandedColor1,ne=e.BandedColor2,Gf=e.BandedRows,Ve=e.BandedCols,Xd=e.HideH,Hf=e.HideV,We=e.TextVAlign,Xe=e.FillColor,Ye=e.StrokeStyle;delete e.StrokeStyle;var If=ea(Xe,"fillOpacity"),Ze=e.LineColor,Jf=ea(Ze,"strokeOpacity");ba=0;var Ed={};for(l=0;l<Gb;l++){aa=0;p=Wd[l];for(ha=0;ha<Rb;ha++){var Mb=l+-","+ha;if(Ed[Mb])aa+=Dd[ha];else{var lb=e["CellFill_"+Mb],oe=e["NoBand_"+Mb],Yd=e["CellSize_"+Mb],qc=e["Cell_"+Mb],$e=e["Cell_"+Mb+"_VAlign"],Kf=e["Cell_"+Mb+"_TRotation"],Lf=e["CellBorderWidthH_"+Mb],Mf=e["CellBorderColorH_"+Mb],Nf=e["CellBorderStrokeStyleH_"+Mb],Of=e["CellBorderWidthV_"+Mb],Pf=e["CellBorderColorV_"+Mb],Qf=e["CellBorderStrokeStyleV_"+Mb],af=Xd?Pf:Mf,bf=ea(af,"strokeOpacity"),cf=Xd?Of:Lf,Tc=Xd?Qf:Nf;lb=Gf&&!oe?0==l%2?me:Ve&&!oe?0==ha%2?me:ne:ne:Ve&&!oe?0==ha%2?me:ne:lb;var Rf=ea(lb,-"fillOpacity")||If;r=Dd[ha];var df=p;Zc=r;for(var Nb=l+1;Nb<l+Yd.h;Nb++)if(null!=Wd[Nb]){df+=Wd[Nb];Ed[Nb+","+ha]=!0;for(var Uc=ha+1;Uc<ha+Yd.w;Uc++)Ed[Nb+","+Uc]=!0}for(Nb=ha+1;Nb<ha+Yd.w;Nb++)if(null!=Dd[Nb])for(Zc+=Dd[Nb],Ed[l+","+Nb]=!0,Uc=l+1;Uc<l+Yd.h;Uc++)Ed[Uc+","+Nb]=!0;var qa=new mxCell("",new mxGeometry(aa,ba,Zc,df),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Xd?"top=0;bottom=0;":"")+Y({FillColor:lb||Xe})+Zb(mxConstants.STYLE_STROKECOLOR,P(af),-P(Ze))+(null!=cf?Zb(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(cf)),"1"):"")+(bf?bf:Jf)+Rf+"verticalAlign="+($e?$e:We?We:"middle")+";"+sa({StrokeStyle:Tc?Tc:Ye?Ye:"solid"})+(Kf?"horizontal=0;":""));qa.vertex=!0;qa.value=m(qc);qa.style+=c(qa.style,e,u,qa,G)+(G?"fontSize=13;":f(qc)+q(qc)+t(qc)+C(qc,qa)+I(qc)+Q(qc)+K(qc)+L(qc))+S(qc)+R(qc);v.insert(qa);aa+=r}}ba+=p}}catch(hb){console.log(hb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";-"VSMDedicatedProcessBlock"==w.Class?v.value=m(e.Text):"VSMProductionControlBlock"==w.Class&&(v.value=m(e.Resources));v.style+=c(v.style,e,u,v,G);"VSMDedicatedProcessBlock"==w.Class&&(x=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(4,-13),x.vertex=!0,v.insert(x),x.style+=c(x.style,e,u,x));Da=new mxCell("",new mxGeometry(0,0,r,15),"strokeColor=none;fillColor=none;part=1;");Da.vertex=!0;v.insert(Da);Da.value=-m(e.Title);Da.style+=a(e.Title,G);e.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);Da=new mxCell("",new mxGeometry(.1*r,.3*p,.8*r,.6*p),"part=1;");Da.vertex=!0;v.insert(Da);Da.value=m(e.Resource);Da.style+=a(e.Resource,G);Da.style+=c(Da.style,e,u,Da,G);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);Cb=p;bc=parseInt(e.Cells);ja=c("part=1;",e,u,v);0<bc&&(Cb/=bc);X=[];Pa=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),ja),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["cell_"+l]),X[l].style+=a(e["cell_"+l],G);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);Cb=p;bc=parseInt(e.Cells);ja=c("part=1;fillColor=none;",e,u,v);0<bc&&(Cb/=bc);X=[];Ub=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(.5*r,(l-1)*Cb,.5*r,Cb),"shape=partialRectangle;left=0;"+ja),X[l].vertex=!0,v.insert(X[l]),Ub[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),"strokeColor=none;fillColor=none;part=1;"),Ub[l].vertex=!0,v.insert(Ub[l]),Ub[l].value=-m(e["cell_"+l]),Ub[l].style+=a(e["cell_"+l],G);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=c(v.style,e,u,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.17*r,.2*p,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");x.vertex=!0;v.insert(x);-x.style+=c(x.style,e,u,x);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";ja="shape=card;size=18;flipH=1;part=1;";x=new mxCell("",new mxGeometry(.1*r,0,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ja);x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.05*r,.1*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ja);E.vertex=!0;v.insert(E);E.style+=c(E.style,-e,u,E);var U=new mxCell("",new mxGeometry(0,.2*p,.9*r,.8*p),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+ja);U.vertex=!0;v.insert(U);U.value=m(e.Text);U.style+=c(U.style,e,u,U,G);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=m(e.Title);v.style+=a(e.Title,G);var va=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");va.edge=!0;va.geometry.relative=-1;D.addCell(va,v,null,v,v);break;case "AWSRoundedRectangleContainerBlock2":case "AWSRoundedRectangleContainerBlock":v.style+="strokeColor=none;fillColor=none;";e.Spotfleet?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,35,40),-"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.Beanstalk?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),-E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.EC2?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),E.geometry.relative=-!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.Subnet?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),E.geometry.relative=!0,E.geometry.offset=-new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.VPC?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,-0),E.vertex=!0,v.insert(E)):e.AWS?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):-e.Corporate?(x=new mxCell("",new mxGeometry(0,0,r,p-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),x.geometry.offset=new mxPoint(0,20),x.geometry.relative=!0,x.vertex=!0,v.insert(x),x.value=m(e.Title),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):-(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=m(e.Title),v.style+=c(v.style,e,u,v,G));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=c(v.style,e,u,v,G);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";-v.value=m(e.Title);v.style+=c(v.style,e,u,v,G);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=c(v.style,e,u,v,G);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";qa=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");qa.vertex=!0;v.insert(qa);var Na=[qa];qa.style+=Y(e,u);va=new mxCell("",new mxGeometry(0,-0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;tc(.5*r,0,va,F,D,Na,v,qa);tc(.855*r,.145*p,va,F,D,Na,v,qa);tc(r,.5*p,va,F,D,Na,v,qa);tc(.855*r,.855*p,va,F,D,Na,v,qa);tc(.5*r,p,va,F,D,Na,v,qa);tc(.145*r,.855*p,va,F,D,Na,v,qa);tc(0,.5*p,va,F,D,Na,v,qa);tc(.145*r,.145*p,va,F,D,Na,v,qa);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";qa=new mxCell("",new mxGeometry(0,.5*p-10,r,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");-qa.vertex=!0;v.insert(qa);Na=[qa];va=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;Na=[qa];var Fd=r/e.NumTopNodes;for(l=0;l<e.NumTopNodes;l++)tc(.5*Fd+l*Fd,0,va,F,D,Na,v,qa);Fd=r/e.NumBottomNodes;for(l=0;l<e.NumBottomNodes;l++)tc(.5*Fd+l*Fd,p,va,F,D,Na,v,qa);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=m(e.Title);v.style+=c(v.style,e,u,v,G);-e.ToggleCharge&&(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);"EIMessageChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIDatatypeChannelBlock"==-w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIInvalidMessageChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(.45*-r,0)):"EIDeadLetterChannelBlock"==w.Class?(x=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),x.geometry.offset=-new mxPoint(.45*-r,0)):"EIGuaranteedDeliveryBlock"==w.Class&&(x=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),x.geometry.offset=new mxPoint(-10,-7));x.geometry.relative=!0;x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;gb(.15*r,.25*p,.85*r,.25*p,va,F,D,Na,v,qa);break;-case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.07*p,.21*r,.86*p),"fillColor=#FFFF33;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.26*r,.09*p,.2*r,.82*p),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");E.vertex=!0;v.insert(E);E.style+=c(E.style,e,u,E);U=new mxCell("",new mxGeometry(1,.5,.35*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");-U.geometry.relative=!0;U.geometry.offset=new mxPoint(.4*-r,-10);U.vertex=!0;v.insert(U);U.style+=c(U.style,e,u,U);fa=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;");fa.geometry.relative=!0;fa.edge=!0;x.insertEdge(fa,!0);E.insertEdge(fa,!1);fa.style+=H(e,u);F.push(D.addCell(fa,null,null,null,null));da=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;");-da.geometry.relative=!0;da.edge=!0;E.insertEdge(da,!0);U.insertEdge(da,!1);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);var Gd=-e.Messages,pe=(p-17)/Gd;E=[];va=[];for(l=0;l<Gd;l++){var Hd=pe*(l+1)-3;E[l]=new mxCell("",new mxGeometry(r-20,Hd,20,20),"part=1;");E[l].vertex=!0;v.insert(E[l]);switch(w.Class){case "EIMessageBlock":E[l].value=m(e["message_"+(l+1)]);E.style+=a(e["message_"+(l+1)],G);break;case "EICommandMessageBlock":E[l].value="C";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":E[l].value="D";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":E[l].value="E",E[l].style+=-"fontStyle=1;fontSize=13;"}E[l].style+=c(E[l].style,e,u,E[l]);va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");va[l].geometry.relative=!0;va[l].edge=!0;x.insertEdge(va[l],!1);E[l].insertEdge(va[l],!0);va[l].style+=c(va[l].style,e,u,va[l]);var Lc=[];Lc.push(new mxPoint(aa+8.5,ba+Hd+10));va[l].geometry.points=Lc;F.push(D.addCell(va[l],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.45*r,.25*p,.3*r,.5*p),"part=1;fillColor=#ffffff");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);va=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;");va.geometry.relative=!0;va.edge=!0;gb(0,.5*p,.4*r,.5*p,va,F,D,Na,v,qa);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);var fa=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;");fa.geometry.relative=!0;fa.edge=!0;gb(.05*r,.5*p,.85*r,.5*p,fa,F,D,Na,v,qa);var da=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;");da.geometry.relative=!0;da.edge=!0;gb(.05*r,.5*p,.85*-r,.15*p,da,F,D,Na,v,qa);var xa=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;");xa.geometry.relative=!0;xa.edge=!0;gb(.05*r,.5*p,.85*r,.85*p,xa,F,D,Na,v,qa);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);fa=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;");-fa.geometry.relative=!0;fa.edge=!0;fa.style+=H(e,u);gb(.05*r,.5*p,.95*r,.5*p,fa,F,D,Na,v,qa);da=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;");da.geometry.relative=!0;da.edge=!0;da.style+=H(e,u);gb(.3*r,.1*p,.3*r,.5*p,da,F,D,Na,v,qa);xa=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;");-xa.geometry.relative=!0;xa.edge=!0;xa.style+=H(e,u);gb(.7*r,.1*p,.7*r,.5*p,xa,F,D,Na,v,qa);var $a=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;");$a.geometry.relative=!0;$a.edge=!0;$a.style+=H(e,u);gb(.5*r,.5*p,.5*r,.9*p,$a,F,D,Na,v,qa);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,-e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.21*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);fa=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;");fa.geometry.relative=!0;fa.edge=!0;gb(.45*r,.33*p,.8*r,.33*p,fa,F,D,Na,v,qa);E=new mxCell("",new mxGeometry(.64*r,.55*p,.16*r,.24*p),"part=1;fillColor=#ffffff;");E.vertex=!0;v.insert(E);E.style+=c(E.style,-e,u,E);da=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;");da.geometry.relative=!0;da.edge=!0;gb(.55*r,.67*p,.2*r,.67*p,da,F,D,Na,v,qa);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.1*r,.15*p,.8*r,.7*p),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");x.vertex=!0;v.insert(x);-x.style+=c(x.style,e,u,x);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.04*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.2*r,.56*p,.2*r,.32*p),"part=1;");E.vertex=!0;v.insert(E);E.value="A";E.style+="fontStyle=1;fontSize=13;";x.style+=c(x.style,e,u,x);fa=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;");fa.geometry.relative=!0;fa.edge=!0;x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.style+=c(fa.style,e,u,fa);Lc=[];Lc.push(new mxPoint(aa+.13*r,ba+.72*p));fa.geometry.points=Lc;F.push(D.addCell(fa,null,null,null,null));U=new mxCell("",new mxGeometry(.6*r,.06*p,.18*r,.28*p),"ellipse;fillColor=#808080;part=1;");U.vertex=!0;v.insert(U);U.style+=H(e,u)+oa(e);U.style+=c(U.style,e,u,U);ta=new mxCell("",-new mxGeometry(.76*r,.56*p,.2*r,.32*p),"part=1;");ta.vertex=!0;v.insert(ta);ta.style+=H(e,u)+M(e,u,ta)+oa(e)+sa(e);ta.value="B";ta.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";ta.style+=c(ta.style,e,u,ta);da=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;");da.geometry.relative=!0;da.edge=!0;U.insertEdge(da,!1);ta.insertEdge(da,!0);da.style+=c(da.style,e,u,da);var ef=[];ef.push(new mxPoint(aa+.69*r,ba+.72*-p));da.geometry.points=ef;F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);U.insertEdge(xa,!0);xa.style+=c(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("1",new mxGeometry(.2*-r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("2",new mxGeometry(.45*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");E.vertex=!0;v.insert(E);E.style+=c(E.style,e,u,E);U=new mxCell("3",new mxGeometry(.7*r,.4*p,.1*r,.19*p),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");U.vertex=!0;v.insert(U);U.style+=c(U.style,e,u,U);fa=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");-x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.geometry.points=[new mxPoint(aa+.375*r,ba+.15*p)];fa.geometry.relative=!0;fa.edge=!0;fa.style+=c(fa.style,e,u,fa);F.push(D.addCell(fa,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");E.insertEdge(da,!1);U.insertEdge(da,!0);da.geometry.points=[new mxPoint(aa+.675*r,ba+.15*p)];da.geometry.relative=!0;da.edge=!0;da.style+=c(da.style,e,u,da);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+=-"verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.3*r,.2*p,.4*r,.6*p),"shape=mxgraph.ios7.icons.clock;fillColor=#ffffff;flipH=1;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.38*r,.42*p,.24*r,.16*p),"part=1;fillColor=#aefe7d;");-x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=new mxCell("",new mxGeometry(.38*r,0,.24*r,.16*p),"part=1;");E.vertex=!0;v.insert(E);E.style+=c(E.style,e,u,E);U=new mxCell("",new mxGeometry(.76*r,.23*p,.24*r,.16*p),"");U.vertex=!0;v.insert(U);U.style=E.style;var ta=new mxCell("",new mxGeometry(.76*r,.61*p,.24*r,.16*p),"");ta.vertex=!0;v.insert(ta);ta.style=E.style;var Zd=new mxCell("",new mxGeometry(.38*r,.84*p,.24*r,.16*p),"");Zd.vertex=!0;v.insert(Zd);Zd.style=E.style;var $d=new mxCell("",new mxGeometry(0,-.61*p,.24*r,.16*p),"");$d.vertex=!0;v.insert($d);$d.style=E.style;var ae=new mxCell("",new mxGeometry(0,.23*p,.24*r,.16*p),"");ae.vertex=!0;v.insert(ae);ae.style=E.style;fa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(fa,!1);E.insertEdge(fa,!0);fa.edge=!0;fa.style+=c(fa.style,e,u,fa);F.push(D.addCell(fa,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(da,!1);U.insertEdge(da,!0);da.edge=!0;da.style+=c(da.style,e,u,da);-F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(xa,!1);ta.insertEdge(xa,!0);xa.edge=!0;xa.style+=c(xa.style,e,u,xa);F.push(D.addCell(xa,null,null,null,null));$a=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge($a,!1);Zd.insertEdge($a,!0);$a.edge=!0;$a.style+=c($a.style,e,u,$a);F.push(D.addCell($a,null,null,null,null));var Mc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Mc,-!1);$d.insertEdge(Mc,!0);Mc.edge=!0;Mc.style+=c(Mc.style,e,u,Mc);F.push(D.addCell(Mc,null,null,null,null));var Nc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");x.insertEdge(Nc,!1);ae.insertEdge(Nc,!0);Nc.edge=!0;Nc.style+=c(Nc.style,e,u,Nc);F.push(D.addCell(Nc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);fa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");-fa.geometry.relative=!0;fa.edge=!0;gb(.05*r,.5*p,.6*r,.25*p,fa,F,D,Na,v,qa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;gb(.05*r,.5*p,.6*r,.75*p,da,F,D,Na,v,qa);x=new mxCell("",new mxGeometry(.7*r,.1*p,.15*r,.32*p),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";-v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.25*r,.25*p,.5*r,.5*p),"shape=mxgraph.eip.control_bus;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);U=new mxCell("",-new mxGeometry(r-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");U.vertex=!0;v.insert(U);U.style+=c(U.style,e,u,U);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");xa.geometry.relative=!0;xa.edge=!0;x.insertEdge(xa,!1);U.insertEdge(xa,!0);xa.style+=c(xa.style,e,u,xa);xa.geometry.points=[new mxPoint(aa+8.5,ba+40)];F.push(D.addCell(xa,null,null,null,null));ta=new mxCell("",new mxGeometry(r--45,p-20,20,20),"part=1;");ta.vertex=!0;v.insert(ta);ta.value=m(e.message_0);ta.style+=a(e.message_0,G);ta.style+=c(ta.style,e,u,ta,G);$a=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");$a.geometry.relative=!0;$a.edge=!0;x.insertEdge($a,!1);ta.insertEdge($a,!0);$a.style+=c($a.style,e,u,$a);$a.geometry.points=[new mxPoint(aa+8.5,ba+p-10)];F.push(D.addCell($a,null,null,null,null));Gd=e.HistoryMessages;pe=(p-75)/Gd;E=[];-va=[];for(l=0;l<Gd;l++)Hd=pe*(l+1)+30,E[l]=new mxCell("",new mxGeometry(r-20,Hd,20,20),"part=1;"),E[l].vertex=!0,E[l].value=m(e["message_"+(l+1)]),E.style+=a(e["message_"+(l+1)],G),v.insert(E[l]),E[l].style+=c(E[l].style,e,u,E[l],G),va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),va[l].geometry.relative=!0,va[l].edge=!0,U.insertEdge(va[l],!1),E[l].insertEdge(va[l],!0),va[l].style+=c(va[l].style,e,u,va[l]),Lc=[],-Lc.push(new mxPoint(aa+r-30,ba+Hd+10)),va[l].geometry.points=Lc,F.push(D.addCell(va[l],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);v.value="$$"+e.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>e.DoorAngle&&(v.style+="flipV=1;");v.style+=c(v.style,e,u,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=c(v.style,e,u,-v,G);v.style=v.style.replace("rotation=180;","");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<e.DoorAngle&&(v.style+="flipV=1;");v.style+=c(v.style,e,u,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=new mxCell("",new mxGeometry(0,0,r,.25*p),"part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);E=[];var ff=.02*r,qe=(r-2*ff)/e.LightCount,gf=.8*qe;for(l=0;l<e.LightCount;l++)E[l]=new mxCell("",new mxGeometry(ff+-qe*l+(qe-gf)/2,.25*p,gf,.75*p),"ellipse;part=1;"),E[l].vertex=!0,v.insert(E[l]),E[l].style+=c(E[l].style,e,u,E[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=[];var hf=r/e.SinkCount;for(l=0;l<e.SinkCount;l++)x[l]=new mxCell("",new mxGeometry(hf*l,0,hf,p),"part=1;shape=mxgraph.floorplan.sink_2;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=c(x[l].style,e,u,x[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Fb=-.1*r/e.StallCount;x=new mxCell("",new mxGeometry(0,0,Fb,p),"fillColor=#000000;part=1;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);var Ob=(r-Fb)/e.StallCount,re=[],Id=[],Jd=[],Kd=[];Z=H(e,u);Z=""==Z?"#000000;":Z.replace("stokreColor=","");var se="part=1;fillColor="+Z;se+=c(se,e,u,v);var te=c("",e,u,v);for(l=0;l<e.StallCount;l++)re[l]=new mxCell("",new mxGeometry((l+1)*Ob,0,Fb,p),se),re[l].vertex=!0,v.insert(re[l]),Jd[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.05*(Ob-Fb),p-.92*(Ob-Fb),.9*(Ob--Fb),.92*(Ob-Fb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Jd[l].vertex=!0,v.insert(Jd[l]),Jd[l].style+=te,Id[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.2*(Ob-Fb),0,.6*(Ob-Fb),.8*(Ob-Fb)),"shape=mxgraph.floorplan.toilet;part=1;"),Id[l].vertex=!0,v.insert(Id[l]),Id[l].style+=te,Kd[l]=new mxCell("",new mxGeometry(Fb+l*Ob,.42*p,.15*(Ob-Fb),.12*(Ob-Fb)),"part=1;"),Kd[l].vertex=!0,v.insert(Kd[l]),Kd[l].style+=te;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var be="edgeStyle=none;endArrow=none;part=1;";-Z=H(e,u);Z=""==Z?"#000000;":Z.replace("strokeColor=","");var Vc="shape=triangle;part=1;fillColor="+Z;Vc+=c(Vc,e,u,v);fa=new mxCell("",new mxGeometry(0,0,0,0),be);fa.geometry.relative=!0;fa.edge=!0;gb(0,.5*p,.65*r,.5*p,fa,F,D,Na,v,qa);var ia=p/e.numLines;da=[];var Wc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),be),da[l].geometry.relative=!0,da[l].edge=!0,gb(.65*r,.5*p,.96*r,(l+.5)*ia,da[l],F,D,Na,v,qa),Wc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ia,.05*r,.6*ia),Vc),-Wc[l].vertex=!0,v.insert(Wc[l]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";be="edgeStyle=none;endArrow=none;part=1;";Z=H(e,u);Z=""==Z?"#000000;":Z.replace("strokeColor=","");Vc="shape=triangle;part=1;fillColor="+Z;Vc+=c(Vc,e,u,v);ia=p/e.numLines;da=[];Wc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),be),da[l].geometry.relative=!0,da[l].edge=!0,gb(0,(l+.5)*ia,.96*r,(l+.5)*ia,da[l],F,D,Na,v,qa),Wc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ia,.05*-r,.6*ia),Vc),Wc[l].vertex=!0,v.insert(Wc[l]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);switch(e.vesselType){case 1:v.style+="shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=c(v.style,e,u,v,G);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+=-"shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");v.style+=c(v.style,e,u,v,G);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";v.style+=c(v.style,e,u,v,G);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=m(e.Text);v.style+=-c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,.2*p,r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=ja;x.style+=c(x.style,e,u,x);ja="endSize=4;endArrow=block;endFill=1;";0==e.compressorType?(fa=new mxCell("",new mxGeometry(0,0,0,0),""),fa.geometry.relative=!0,fa.edge=!0,fa.style+=ja,fa.style+=c(fa.style,e,u,fa),gb(0,0,0,.2*p,fa,F,D,Na,v,qa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=-ja,da.style+=c(da.style,e,u,da),gb(r,.67*p,r,p,da,F,D,Na,v,qa)):(x.style+="flipH=1;",fa=new mxCell("",new mxGeometry(0,0,0,0),""),fa.geometry.relative=!0,fa.edge=!0,fa.style+=ja,fa.style+=c(fa.style,e,u,fa),gb(0,0,0,.33*p,fa,F,D,Na,v,qa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ja,da.style+=c(da.style,e,u,da),gb(r,.8*p,r,p,da,F,D,Na,v,qa));1==e.centerLineType&&(xa=new mxCell("",new mxGeometry(0,0,0,0),""),xa.geometry.relative=!0,xa.edge=!0,xa.style+=-ja,xa.style+=c(xa.style,e,u,xa),gb(.2*r,.5*p,.8*r,.5*p,xa,F,D,Na,v,qa));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(.2*r,.2*p,.6*r,.6*p),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");x.vertex=!0;v.insert(x);x.style+=c(x.style,e,u,x);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(w.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;"}v.style+=c(v.style,e,u,v);"PEIndicator2Block"==-w.Class||"PESharedIndicator2Block"==w.Class?(x=new mxCell("",new mxGeometry(0,0,r,.5*r),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=c(x.style,e,u,x,G),E=new mxCell("",new mxGeometry(0,.5*r,r,.5*r),"part=1;strokeColor=none;fillColor=none;")):(x=new mxCell("",new mxGeometry(0,0,r,.5*p),"part=1;strokeColor=none;fillColor=none;"),x.vertex=!0,v.insert(x),x.value=m(e.TopText),x.style+=a(e.TopText,G),x.style+=c(x.style,e,u,x,G),-E=new mxCell("",new mxGeometry(0,.5*p,r,.5*p),"part=1;strokeColor=none;fillColor=none;"));E.vertex=!0;v.insert(E);E.value=m(e.BotText);E.style+=a(e.BotText,G);E.style+=c(E.style,e,u,E,G);switch(e.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 ue=-!1;"PEPoweredValveBlock"==w.Class?1!=e.poweredHandOperated&&(ue=!0):1!=e.handOperated&&(ue=!0);if(ue){e=h(w).Properties;O=e.BoundingBox;var Sf=O.h;O.h="PEAngleValveBlock"==w.Class||"PEAngleGlobeValveBlock"==w.Class?.7*O.h:.6*O.h;v=new mxCell("",new mxGeometry(Math.round(.75*O.x+xc),Math.round(.75*(O.y+Sf-O.h)+yc),Math.round(.75*O.w),Math.round(.75*O.h)),"");v.vertex=!0;Xa(v,w,D)}if("PEPoweredValveBlock"==w.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",-v.style+=c(v.style,e,u,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",x=new mxCell("",new mxGeometry(.325*r,0,.35*r,.35*p),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),x.vertex=!0,v.insert(x),x.value=m(e.PoweredText),x.style+=(G?"":q(e.PoweredText)+t(e.PoweredText)+C(e.PoweredText)+I(e.PoweredText)+Q(e.PoweredText)+L(e.PoweredText)+S(e.PoweredText))+"fontSize=6;"+R(e.PoweredText),x.style+=c(x.style,e,u,x,G)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";-v.value=m(e.Text);switch(w.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==e.handOperated&&(v.style+="actuator=man;")}v.style+=c(v.style,e,u,v,G);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,-0,20,p-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-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==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):-new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=c(v.style,e,u,v);break;case "UI2WindowBlock":v.value=m(e.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(G?"fontSize=13;":f(e.Title)+q(e.Title)+t(e.Title));1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),-"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-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==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",-new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=c(v.style,e,u,v,G);break;case "UI2DialogBlock":v.value=m(e.Text);v.style+=a(e.Text,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=c(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");-E.geometry.relative=!0;E.geometry.offset=new mxPoint(-25,-10);E.vertex=!0;x.insert(E);1==e.vScroll&&(U=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-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==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),ta.geometry.relative=!0,ta.geometry.offset=new mxPoint(0,-20),ta.vertex=!0,v.insert(ta));v.style+=c(v.style,e,u,v);e.Text=null;break;case "UI2AccordionBlock":x=[];ia=25;for(l=0;l<=e.Panels-1;l++)x[l]=l<e.Selected-1?new mxCell("",new mxGeometry(0,-l*ia,r,ia),"part=1;fillColor=#000000;fillOpacity=25;"):l==e.Selected-1?new mxCell("",new mxGeometry(0,l*ia,r,ia),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,p-(e.Panels-e.Selected)*ia+(l-e.Selected)*ia,r,ia),"part=1;fillColor=#000000;fillOpacity=25;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Panel_"+(l+1)]),x[l].style+=a(e["Panel_"+(l+1)],G),0>x[l].style.indexOf(";align=")&&(x[l].style+="align=left;spacingLeft=5;");var Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&-(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ia-20-(e.Panels-e.Selected)*ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-e.Selected*ia-(e.Panels-e.Selected)*ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ia),E.vertex=!0,v.insert(E),v.style+=-"spacingRight=20;",E.style+=Va,E.style+=c(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ia),U.vertex=!0,v.insert(U),U.style+=Va,U.style+=c(U.style,e,u,U));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,-e.Selected*ia,r-20,p-e.Selected*ia-20-(e.Panels-e.Selected)*ia),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ia,r-20,p-e.Selected*ia-(e.Panels-e.Selected)*ia),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=c(v.style,e,u,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";-x=[];E=[];ia=25;var Ib=3,Ga=(r+Ib)/(e.Tabs+1),ib=new mxCell("",new mxGeometry(0,ia,r,p-ia),"part=1;");ib.vertex=!0;v.insert(ib);ib.style+=c(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ga,0,Ga-Ib,ia),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(10+l*Ga,0,Ga-Ib,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga-Ib,ia),"fillColor=#000000;fillOpacity=25;"),-E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=c(E[l].style,e,u,E[l]);Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p--ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ia),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=c(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,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+=Va,U.style+=c(U.style,e,u,U));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];ia=25;Ib=3;Ga=(r+Ib)/e.Tabs;ib=new mxCell("",new mxGeometry(0,ia,r,p-ia),"part=1;");ib.vertex=!0;v.insert(ib);ib.style+=c(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga-Ib,ia),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",-new mxGeometry(l*Ga,0,Ga-Ib,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga-Ib,ia),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=c(E[l].style,e,u,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==-e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p-ia),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ia),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=c(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(0,-1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,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+=Va,U.style+=c(U.style,e,u,U));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";x=[];E=[];Ib=3;ia=25+Ib;Ga=80;Ac=10;ib=new mxCell("",new mxGeometry(Ga,0,r-Ga,p),"part=1;");ib.vertex=-!0;v.insert(ib);ib.style+=c(ib.style,e,u,ib);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,Ac+l*ia,Ga,ia-Ib),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=c(E[l].style,e,u,E[l],G)):(x[l]=new mxCell("",new mxGeometry(0,Ac+l*ia,Ga,ia-Ib),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga,ia-Ib),"fillColor=#000000;fillOpacity=25;"),-E[l].vertex=!0,x[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=c(E[l].style,e,u,E[l]);Va=H(e,u);Va=Va.replace("strokeColor","fillColor2");""==Va&&(Va="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,p-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,p),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),-E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Va,E.style+=c(E.style,e,u,E));1==e.hScroll&&(U=1==e.vScroll?new mxCell("",new mxGeometry(Ga,1,r-20-Ga,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ga,1,r-Ga,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+=Va,U.style+=c(U.style,e,u,U));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";ia=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ia+.5*ia-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=c(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&-(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=c(E[l].style,e,u,E[l]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";Ga=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ga,.5*p-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),-x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=c(x[l].style,e,u,x[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=c(E[l].style,e,u,E[l]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";-ia=p/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(0,l*ia+.5*ia-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=c(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2.5,-2.5,5,5),"ellipse;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=c(E[l].style,e,u,E[l]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";Ga=r/e.Options;x=[];E=[];for(l=0;l<e.Options;l++)x[l]=new mxCell("",new mxGeometry(l*Ga,.5*p-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Option_"+(l+1)]),x[l].style+=a(e["Option_"+(l+1)],G),x[l].style+=-c(x[l].style,e,u,x[l],G),null!=e.Selected&&e.Selected==l+1&&(Z=H(e,u),Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),E[l].vertex=!0,x[l].insert(E[l]),E[l].style+=Z,E[l].style+=c(E[l].style,e,u,E[l]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=m(e.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+=-"shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";v.style+=c(v.style,e,u,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";x=new mxCell("",new mxGeometry(0,0,.6*r,p),"part=1;");x.vertex=!0;v.insert(x);x.value=m(e.Date);x.style+=a(e.Date,G);v.style+=c(v.style,e,u,v);Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");-E=new mxCell("",new mxGeometry(.75*r,0,.25*r,p),"part=1;shape=mxgraph.gmdl.calendar;");E.vertex=!0;v.insert(E);E.style+=Z;E.style+=c(E.style,e,u,E);break;case "UI2SearchBlock":v.value=m(e.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+a(e.Search,G);v.style+=c(v.style,e,u,v,G);break;case "UI2NumericStepperBlock":Z=H(e,u);Z=Z.replace("strokeColor","fillColor");""==Z&&(Z="fillColor=#000000;");v.value=m(e.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+-Z+a(e.Number,G);v.style+=c(v.style,e,u,v,G);break;case "UI2TableBlock":try{lb=P(e.FillColor);var Ld=P(e.LineColor);Tc="";var ce=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Md='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Ld+';">',uc=e.Data.split("\n");var jf=e.AltRow&&"default"!=e.AltRow?"none"==e.AltRow?lb:P(e.AltRow):Sd(lb,.95);Pc=e.Header&&"default"!=e.Header?"none"==e.Header?jf:P(e.Header):Sd(lb,.8);if("full"==e.GridLines)Tc="border: 1px solid "+-Ld,ce=19;else if("row"==e.GridLines)Tc="border-bottom: 1px solid "+Ld,ce=19;else if("default"==e.GridLines||"column"==e.GridLines)Tc="border-right: 1px solid "+Ld;uc=uc.filter(function(hb){return hb});/^\{[^}]*\}$/.test(uc[uc.length-1])&&uc.pop();Gc=uc[0].split(",").length;var kf="";for(ha=0;ha<Gc-1;ha++)kf+=" , ";for(l=uc.length;l<Math.ceil(p/20);l++)uc.push(kf);for(l=0;l<uc.length;l++){Md+='<tr style="height: '+ce+"px;background:"+(0==l?Pc:l%2?lb:jf)+'">';var lf=uc[l].split(",");for(ha=0;ha<lf.length;ha++){var Nd=-e["Cell_"+l+"_"+ha],Tf=Nd&&Nd.m&&Nd.m[0]&&"c"==Nd.m[0].n?P(Nd.m[0].v):Ld;Md+='<td style="height: '+ce+"px;color:"+Tf+";"+Tc+'">'+mxUtils.htmlEntities(lf[ha])+"</td>"}Md+="</tr>"}Md+="</table>";v.value=Md}catch(hb){console.log(hb)}break;case "UI2ButtonBarBlock":v.style+=c(v.style,e,u,v);x=[];E=[];Ga=r/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),""),E[l].vertex=!0,v.insert(E[l])):(x[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"strokeColor=none;"),-x[l].vertex=!0,v.insert(x[l]),x[l].style+=x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ga,p),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=c(E[l].style,e,u,E[l],G);break;case "UI2VerticalButtonBarBlock":v.style+=c(v.style,e,u,v);x=[];E=[];ia=p/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,l*ia,r,ia),""),E[l].vertex=!0,v.insert(E[l])):-(x[l]=new mxCell("",new mxGeometry(0,l*ia,r,ia),"strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].style+=c(x[l].style,e,u,x[l]),E[l]=new mxCell("",new mxGeometry(0,0,r,ia),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,x[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=c(E[l].style,e,u,E[l],G);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=[];E=[];Ga=r/e.Links;for(l=0;l<e.Links;l++)0!=-l?(E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),E[l].style+=c(E[l].style,e,u,E[l])):E[l]=new mxCell("",new mxGeometry(l*Ga,0,Ga,p),"fillColor=none;strokeColor=none;"),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Link_"+(l+1)]),E[l].style+=a(e["Link_"+(l+1)],G);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,e,u,v);x=[];E=[];Ga=r/e.Links;for(l=0;l<e.Links;l++)x[l]=new mxCell("",new mxGeometry(l*-Ga,0,Ga,p),"fillColor=none;strokeColor=none;"),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["Link_"+(l+1)]),x[l].style+=a(e["Link_"+(l+1)],G);for(l=1;l<e.Links;l++)E[l]=new mxCell("",new mxGeometry(l/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),E[l].geometry.relative=!0,E[l].geometry.offset=new mxPoint(-3,-5),E[l].vertex=!0,v.insert(E[l]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=c(v.style,e,u,v);x=[];Ga=r/(e.Buttons+1);for(l=0;l<=e.Buttons-1;l++)x[l]=l!=e.Selected--1?new mxCell("",new mxGeometry(0,0,Ga,p),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,Ga,p),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),x[l].geometry.relative=!0,x[l].geometry.offset=new mxPoint(l*Ga,0),x[l].vertex=!0,v.insert(x[l]),x[l].value=m(e["MenuItem_"+(l+1)]),x[l].style+=a(e["MenuItem_"+(l+1)],G);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+a(e.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";-break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+a(e.Text_prev);v.value=m(e.Text_prev)+" ";for(l=0;l<e.Links;l++)v.value+=m(e["Link_"+(l+1)])+" ";v.value+=m(e.Text_next);break;case "UI2ContextMenuBlock":v.style+=c(v.style,e,u,v);X=[];ob=[];var kd=[];ia=p/e.Lines;ja=null;for(l=0;l<e.Lines;l++)null!=e["Item_"+(l+1)]&&(null==ja&&(ja=""+f(e["Item_"+(l+1)])+q(e["Item_"+(l+1)])+t(e["Item_"+(l+1)])),X[l]=new mxCell("",new mxGeometry(0,l*p/e.Lines,r,ia),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja,X[l].value=m(e["Item_"+(l+1)])),null!=e.Icons[l+1]&&null!=X[l]&&("dot"==e.Icons[l+1]?(ob[l]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),ob[l].geometry.offset=new mxPoint(6,-4)):"check"==e.Icons[l+1]&&(ob[l]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),ob[l].geometry.offset=new mxPoint(6.5,-4)),null!=ob[l]&&(ob[l].geometry.relative=!0,ob[l].vertex=!0,X[l].insert(ob[l]),Z=H(e,u),-Z=Z.replace("strokeColor","fillColor"),""==Z&&(Z="fillColor=#000000;"),ob[l].style+=Z)),null!=e["Shortcut_"+(l+1)]&&(null==ja&&(ja=""+f(e["Shortcut_"+(l+1)])+q(e["Shortcut_"+(l+1)])+t(e["Shortcut_"+(l+1)])),kd[l]=new mxCell("",new mxGeometry(.6*r,l*p/e.Lines,.4*r,ia),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),kd[l].vertex=!0,v.insert(kd[l]),kd[l].style+=ja,kd[l].value=m(e["Shortcut_"+(l+1)])),null!=e.Dividers[l+1]&&(X[l]=new mxCell("",new mxGeometry(.05*r,l*p/e.Lines,.9*-r,ia),"shape=line;strokeWidth=1;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=H(e,u));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*e.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=m(e.Tip||e.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+e.RoundCorners+";"+a(e.Tip||e.Text,G);v.style+=c(v.style,e,u,v,G);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=-m(e.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+a(e.Txt,G);v.style+=c(v.style,e,u,v,G);break;case "UI2AlertBlock":v.value=m(e.Txt);v.style+=a(e.Txt,G);v.style+=c(v.style,e,u,v,G);x=new mxCell("",new mxGeometry(0,0,r,30),"part=1;resizeHeight=0;");x.vertex=!0;v.insert(x);x.value=m(e.Title);x.style+=a(e.Title,G);x.style+=c(x.style,e,u,x,G);E=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");E.geometry.relative=!0;E.geometry.offset=-new mxPoint(-25,-10);E.vertex=!0;x.insert(E);var Uf=45*e.Buttons+(10*e.Buttons-1);U=[];for(l=0;l<e.Buttons;l++)U[l]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),U[l].geometry.relative=!0,U[l].geometry.offset=new mxPoint(.5*-Uf+55*l,-40),U[l].vertex=!0,v.insert(U[l]),U[l].value=m(e["Button_"+(l+1)]),U[l].style+=a(e["Button_"+(l+1)],G),U[l].style+=c(U[l].style,e,u,U[l],G);break;case "UMLClassBlock":if(0==e.Simple){ja=Y(e,u);eb=Math.round(.75*e.TitleHeight)||25;ja=ja.replace("fillColor",-"swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+eb+";"+a(e.Title,G);v.style+=c(v.style,e,u,v,G);X=[];var ve=[],wb=eb/p;Wb=eb;for(l=0;l<=e.Attributes;l++)0<l&&(ve[l]=new mxCell("",new mxGeometry(0,Wb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),-Wb+=8,ve[l].vertex=!0,v.insert(ve[l])),ia=0,0==e.Attributes?ia=l=1:l<e.Attributes?(ia=e["Text"+(l+1)+"Percent"],wb+=ia):ia=1-wb,pc=Math.round((p-eb)*ia)+(e.ExtraHeightSet&&1==l?.75*e.ExtraHeight:0),X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;whiteSpace=wrap;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=-ja+M(e,u,X[l])+a(e["Text"+(l+1)],G),X[l].value=m(e["Text"+(l+1)])}else v.value=m(e.Title),v.style+="align=center;",v.style+=a(e.Title,G),v.style+=c(v.style,e,u,v,G);break;case "ERDEntityBlock":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ja+"startSize="+-eb+";"+a(e.Name,G);v.style+=c(v.style,e,u,v,G);e.ShadedHeader?(ja=P(e.FillColor),ke=Sd(ja,.85),v.style+="fillColor="+ke+";"):v.style+=Y(e,u);X=[];wb=eb/p;Wb=eb;for(l=0;l<e.Fields;l++)ia=0,pc=.75*e["Field"+(l+1)+"_h"],X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),X[l].style+=-ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;opacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]);break;case "ERDEntityBlock2":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+eb+";"+a(e.Name,G);v.style=e.ShadedHeader?-v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.style+=c(v.style,e,u,v,G);X=[];var Fa=[];wb=eb;var Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),Fa[l].vertex=!0,v.insert(Fa[l]),Fa[l].style+=ja+a(e["Key"+(l+1)],-G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Key"+(l+1)]),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=-ja+a(e["Field"+(l+1)],G),v.style+=c(v.style,e,u,v),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),wb+=.75*e["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ja+"startSize="+eb+-";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.value=m(e.Name);v.style+=c(v.style,e,u,v,G);X=[];Fa=[];wb=eb;Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Field"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),Fa[l].vertex=!0,v.insert(Fa[l]),-Fa[l].style+=ja+a(e["Field"+(l+1)],G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Field"+(l+1)]),Fa[l].style+=c(Fa[l].style,e,u,Fa[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Type"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Type"+(l+1)]),X[l].style+=c(X[l].style,e,u,X[l],G),wb+=.75*e["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":ja=Y(e,u);eb=.75*e.Name_h;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+-ja+"startSize="+eb+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+Y(e,u);v.value=m(e.Name);v.style+=c(v.style,e,u,v,G);X=[];Fa=[];var Kb=[];wb=eb;Jb=30;var de=40;null!=e.Column1&&(Jb=.75*e.Column1);null!=e.Column2&&(de=.75*e.Column2);for(l=0;l<e.Fields;l++)ia=0,Fa[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),-Fa[l].vertex=!0,v.insert(Fa[l]),Fa[l].style+=ja+a(e["Key"+(l+1)],G),Fa[l].style=1==e.AltRows&&0!=l%2?Fa[l].style+"fillColor=#000000;fillOpacity=5;":Fa[l].style+("fillColor=none;"+M(e,u,Fa[l])),Fa[l].value=m(e["Key"+(l+1)]),Fa[l].style+=c(Fa[l].style,e,u,Fa[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb-de,.75*e["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),-X[l].vertex=!0,v.insert(X[l]),X[l].style+=ja+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+M(e,u,X[l])),X[l].value=m(e["Field"+(l+1)]),X[l].style+=c(X[l].style,e,u,X[l],G),Kb[l]=new mxCell("",new mxGeometry(r-de,wb,de,.75*e["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),-Kb[l].vertex=!0,v.insert(Kb[l]),Kb[l].style+=ja+a(e["Type"+(l+1)],G),Kb[l].style=1==e.AltRows&&0!=l%2?Kb[l].style+"fillColor=#000000;fillOpacity=5;":Kb[l].style+("fillColor=none;"+M(e,u,Kb[l])),Kb[l].value=m(e["Type"+(l+1)]),Kb[l].style+=c(Kb[l].style,e,u,Kb[l],G),wb+=.75*e["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Ta("application_system",r,p,v,e,u);break;case "GCPServiceCardAuthorizationBlock":Ta("internal_payment_authorization",r,p,v,e,u);break;case "GCPServiceCardBlankBlock":Ta("blank",-r,p,v,e,u);break;case "GCPServiceCardReallyBlankBlock":Ta("blank",r,p,v,e,u);break;case "GCPServiceCardBucketBlock":Ta("bucket",r,p,v,e,u);break;case "GCPServiceCardCDNInterconnectBlock":Ta("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardCloudDNSBlock":Ta("blank",r,p,v,e,u);break;case "GCPServiceCardClusterBlock":Ta("cluster",r,p,v,e,u);break;case "GCPServiceCardDiskSnapshotBlock":Ta("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardEdgePopBlock":Ta("google_network_edge_cache",-r,p,v,e,u);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Ta("frontend_platform_services",r,p,v,e,u);break;case "GCPServiceCardGatewayBlock":Ta("gateway",r,p,v,e,u);break;case "GCPServiceCardGoogleNetworkBlock":Ta("google_network_edge_cache",r,p,v,e,u);break;case "GCPServiceCardImageServicesBlock":Ta("image_services",r,p,v,e,u);break;case "GCPServiceCardLoadBalancerBlock":Ta("network_load_balancer",r,p,v,e,u);break;case "GCPServiceCardLocalComputeBlock":Ta("dedicated_game_server",r,p,v,-e,u);break;case "GCPServiceCardLocalStorageBlock":Ta("persistent_disk_snapshot",r,p,v,e,u);break;case "GCPServiceCardLogsAPIBlock":Ta("logs_api",r,p,v,e,u);break;case "GCPServiceCardMemcacheBlock":Ta("memcache",r,p,v,e,u);break;case "GCPServiceCardNATBlock":Ta("nat",r,p,v,e,u);break;case "GCPServiceCardPaymentFormBlock":Ta("external_payment_form",r,p,v,e,u);break;case "GCPServiceCardPushNotificationsBlock":Ta("push_notification_service",r,p,v,e,u);break;case "GCPServiceCardScheduledTasksBlock":Ta("scheduled_tasks",-r,p,v,e,u);break;case "GCPServiceCardServiceDiscoveryBlock":Ta("service_discovery",r,p,v,e,u);break;case "GCPServiceCardSquidProxyBlock":Ta("squid_proxy",r,p,v,e,u);break;case "GCPServiceCardTaskQueuesBlock":Ta("task_queues",r,p,v,e,u);break;case "GCPServiceCardVirtualFileSystemBlock":Ta("virtual_file_system",r,p,v,e,u);break;case "GCPServiceCardVPNGatewayBlock":Ta("gateway",r,p,v,e,u);break;case "GCPInputDatabase":Ya("database",1,.9,r,p,v,e,u);break;case "GCPInputRecord":Ya("record",1,.66,r,p,v,-e,u);break;case "GCPInputPayment":Ya("payment",1,.8,r,p,v,e,u);break;case "GCPInputGateway":Ya("gateway_icon",1,.44,r,p,v,e,u);break;case "GCPInputLocalCompute":Ya("compute_engine_icon",1,.89,r,p,v,e,u);break;case "GCPInputBeacon":Ya("beacon",.73,1,r,p,v,e,u);break;case "GCPInputStorage":Ya("storage",1,.8,r,p,v,e,u);break;case "GCPInputList":Ya("list",.89,1,r,p,v,e,u);break;case "GCPInputStream":Ya("stream",1,.82,r,p,v,e,u);break;case "GCPInputMobileDevices":Ya("mobile_devices",1,.73,r,p,v,e,u);break;-case "GCPInputCircuitBoard":Ya("circuit_board",1,.9,r,p,v,e,u);break;case "GCPInputLive":Ya("live",.74,1,r,p,v,e,u);break;case "GCPInputUsers":Ya("users",1,.63,r,p,v,e,u);break;case "GCPInputLaptop":Ya("laptop",1,.66,r,p,v,e,u);break;case "GCPInputApplication":Ya("application",1,.8,r,p,v,e,u);break;case "GCPInputLightbulb":Ya("lightbulb",.7,1,r,p,v,e,u);break;case "GCPInputGame":Ya("game",1,.54,r,p,v,e,u);break;case "GCPInputDesktop":Ya("desktop",1,.9,r,p,v,e,u);break;case "GCPInputDesktopAndMobile":Ya("desktop_and_mobile",-1,.66,r,p,v,e,u);break;case "GCPInputWebcam":Ya("webcam",.5,1,r,p,v,e,u);break;case "GCPInputSpeaker":Ya("speaker",.7,1,r,p,v,e,u);break;case "GCPInputRetail":Ya("retail",1,.89,r,p,v,e,u);break;case "GCPInputReport":Ya("report",1,1,r,p,v,e,u);break;case "GCPInputPhone":Ya("phone",.64,1,r,p,v,e,u);break;case "GCPInputBlank":Ya("transparent",1,1,r,p,v,e,u);break;case "PresentationFrameBlock":0==e.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=a(e.Text),v.value=m(e.Text),v.style+=c(v.style,-e,u,v,G));break;case "SVGPathBlock2":try{var Vf=e.LineWidth,Wf=e.LineColor,mf=e.FillColor,nf=e.DrawData.Data,ee='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',we=null;for(l=0;l<nf.length;l++){var vc=nf[l],Xf=vc.a,Yf=("prop"==vc.w||null==vc.w?Vf:vc.w)/Math.min(r,p)*.75;Sc="prop"==vc.s||null==vc.s?Wf:vc.s;Z="prop"==vc.f||null==vc.f?mf:vc.f;"object"==typeof Z&&(null!=Z.url&&(we="shape=image;image="+g(Z.url)+";"),Z=Array.isArray(Z.cs)?Z.cs[0].c:mf);ee+='<path d="'+Xf+'" fill="'+Z+'" stroke="'+-Sc+'" stroke-width="'+Yf+'"/>'}ee+="</svg>";v.style=we?we:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(ee):Base64.encode(ee,!0))+";"}catch(hb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var of=0==W.indexOf("Bracket")?"size=0;arcSize=50;":"",pf=c(v.style,e,u,v,G);nb=T(e,u,v);v.style="group;"+nb;var xe=Math.min(.14*(nb?r:p),100),ye=-new mxCell("",new mxGeometry(0,0,xe,p),"shape=curlyBracket;rounded=1;"+of+pf);ye.vertex=!0;ye.geometry.relative=!0;var ze=new mxCell("",new mxGeometry(1-xe/r,0,xe,p),"shape=curlyBracket;rounded=1;flipH=1;"+of+pf);ze.vertex=!0;ze.geometry.relative=!0;v.insert(ye);v.insert(ze);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=c(v.style,e,u,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+=-"verticalAlign=middle;");var ld=new mxCell("",new mxGeometry(0,0,8,p),"shape=partialRectangle;right=0;fillColor=none;");ld.geometry.relative=!0;ld.vertex=!0;ld.style+=c(ld.style,e,u,v,G);v.insert(ld);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{nb=T(e,u,v);v.style="group;"+nb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$",-Le(e.Stencil.id,e.Stencil));var Pb=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Pb.x/Pb.w,$f=-Pb.y/Pb.h;for(l=0;l<Pb.stencils.length;l++){var pb=Pb.stencils[l];qa=new mxCell("",new mxGeometry(Zf,$f,r,p),"shape="+pb.shapeStencil+";");var ag=pb.FillColor,bg=pb.LineColor,cg=pb.LineWidth;"prop"==pb.FillColor&&(pb.FillColor=e.FillColor);null==pb.FillColor&&(pb.FillColor="#ffffff00");"prop"==pb.LineColor&&(pb.LineColor=e.LineColor);null==pb.LineColor&&(pb.LineColor="#ffffff00");"prop"==pb.LineWidth&&(pb.LineWidth=-e.LineWidth);qa.style+=c(qa.style,pb,u,qa,G);pb.FillColor=ag;pb.LineColor=bg;pb.LineWidth=cg;Z=e.FillColor;var dg=e.LineColor,eg=e.LineWidth;e.FillColor=null;e.LineColor=null;e.LineWidth=null;qa.style+=c(qa.style,e,u,qa,G);e.FillColor=Z;e.LineColor=dg;e.LineWidth=eg;qa.vertex=!0;qa.geometry.relative=!0;v.insert(qa)}var Xb=0;for(nb=e.Rotation;e["t"+Xb];){var qf=e["t"+Xb],rf=m(qf);if(rf){ra=new mxCell(rf,new mxGeometry(0,0,r,p),"strokeColor=none;fillColor=none;overflow=visible;");e.Rotation=0;ra.style+=-c(ra.style,qf,u,ra,G);ra.style+=c(ra.style,e,u,ra,G);e.Rotation=nb;if(null!=Pb.text&&null!=Pb.text["t"+Xb]){var fb=Pb.text["t"+Xb];fb.Rotation=nb+(fb.rotation?fb.rotation:0)+(e["t"+Xb+"_TRotation"]?e["t"+Xb+"_TRotation"]:0)+(e["t"+Xb+"_TAngle"]?e["t"+Xb+"_TAngle"]:0);ra.style+=c(ra.style,fb,u,ra,G);var Yb=ra.geometry;fb.w&&(Yb.width*=fb.w/Pb.w);fb.h&&(Yb.height*=fb.h/Pb.h);fb.x&&(Yb.x=fb.x/Pb.w);fb.y&&(Yb.y=fb.y/Pb.h);fb.fw&&(Yb.width*=.75*fb.fw/r);fb.fh&&(Yb.height*=.75*fb.fh/p);fb.fx&&(Yb.x=(0<-fb.fx?1:0)+.75*fb.fx/r);fb.fy&&(Yb.y=(0<fb.fy?1:0)+.75*fb.fy/p)}ra.vertex=!0;ra.geometry.relative=!0;v.insert(ra)}Xb++}}if(e.FillColor&&e.FillColor.url){var Od=new mxCell("",new mxGeometry(0,0,r,p),"shape=image;html=1;");Od.style+=Ra({},{},e.FillColor.url);Od.vertex=!0;Od.geometry.relative=!0;v.insert(Od)}}catch(hb){console.log("Freehand error",hb)}break;case "RightArrowBlock":var Ae=e.Head*p/r;v.style="shape=singleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+Ae;v.value=m(e);v.style+=c(v.style,-e,u,v,G);break;case "DoubleArrowBlock":Ae=e.Head*p/r;v.style="shape=doubleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+Ae;v.value=m(e);v.style+=c(v.style,e,u,v,G);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(W){case "VPCSubnet2017":var md="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var nd=30;var od=35;break;case "VirtualPrivateCloudContainer2017":md=-"shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";nd=52;od=36;break;case "ElasticBeanStalkContainer2017":md="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";nd=30;od=41;break;case "EC2InstanceContents2017":md="shape=mxgraph.aws3.instance;fillColor=#F58536;";nd=40;od=41;break;case "AWSCloudContainer2017":md="shape=mxgraph.aws3.cloud;fillColor=#F58536;";nd=52;od=36;break;case "CorporateDataCenterContainer2017":md="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",nd=-30,od=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";v.value=m(e);v.style+=c(v.style,e,u,v,G);v.geometry.y+=20;v.geometry.height-=20;ob=new mxCell("",new mxGeometry(20,-20,nd,od),md);ob.vertex=!0;v.insert(ob);break;case "FlexiblePolygonBlock":var Xc=['<shape strokewidth="inherit"><foreground>'];Xc.push("<path>");for(ha=0;ha<e.Vertices.length;ha++)Pa=e.Vertices[ha],0==ha?Xc.push('<move x="'+100*Pa.x+'" y="'+100*Pa.y+'"/>'):Xc.push('<line x="'+100*Pa.x+'" y="'+100*Pa.y+'"/>');Xc.push("</path>");-Xc.push("<fillstroke/>");Xc.push("</foreground></shape>");v.style="shape=stencil("+Graph.compress(Xc.join(""))+");";v.value=m(e);v.style+=c(v.style,e,u,v,G);break;case "InfographicsBlock":var sf=e.ShapeData_1.Value,Be=e.ShapeData_2.Value-sf,Ce=e.ShapeData_3.Value-sf,fe=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;lb=e["ShapeData_"+Xb].Value;lb="=fillColor()"==lb?e.FillColor:lb;var pd=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+-fe+";strokeColor=none;fillColor="+P(pd)+";"+ea(pd,"fillOpacity");v.style+=c(v.style,e,u,v,G);var bb=new mxCell("",new mxGeometry(0,0,r,p),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Ce/Be+";arcWidth="+fe/r*2+";strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity"));bb.style+=c(bb.style,e,u,bb,G);bb.vertex=!0;bb.geometry.relative=1;v.insert(bb);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var tf=Ce/Be/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+-tf+";arcWidth="+2*fe/r+";strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=c(v.style,e,u,v,G);bb=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-tf)+";arcWidth="+2*fe/r+";strokeColor=none;flipH=1;fillColor="+P(pd)+";"+ea(pd,"fillOpacity"));e.Rotation+=Math.PI;bb.style+=c(bb.style,e,u,bb,G);bb.vertex=!0;bb.geometry.relative=1;v.insert(bb);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+-P(pd)+";"+ea(pd,"fillOpacity"),v.style+=c(v.style,e,u,v,G),bb=new mxCell("",new mxGeometry(0,0,r*Ce/Be,p),"strokeColor=none;fillColor="+P(lb)+";"+ea(lb,"fillOpacity")),bb.style+=c(bb.style,e,u,bb,G),bb.vertex=!0,bb.geometry.relative=1,v.insert(bb)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var ge=e.Text.m,De=!1,Ee=!1;for(l=0;l<ge.length;l++){var qd=ge[l];De||"mt"!=qd.n?Ee||"il"!=qd.n||(qd.v=17+(qd.v||0),Ee=!0):(qd.v=17+(qd.v||0),De=!0)}De||-ge.push({s:0,n:"mt",v:17});Ee||ge.push({s:0,n:"il",v:17})}v.value=m(e);v.style+=c(v.style,e,u,v,G);break;case "PersonRoleBlock":try{ja=Y(e,u);eb=p/2;ja=ja.replace("fillColor","swimlaneFillColor");""==ja&&(ja="swimlaneFillColor=#ffffff;");v.value=m(e.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ja+"startSize="+eb+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Role,G);v.style+=c(v.style,-e,u,v,G);var Fc=new mxCell("",new mxGeometry(0,p/2,r,p/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Fc.value=m(e.Name);Fc.vertex=!0;v.insert(Fc);Fc.style+=a(e.Name,G);Fc.style+=c(Fc.style,e,u,Fc,G)}catch(hb){console.log(hb)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var uf=v.geometry,vf=new mxCell(m(e.Title),new mxGeometry(0,uf.height+4,uf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");-vf.vertex=!0;v.insert(vf);v.style+=a(e.Title,G)}catch(hb){console.log(hb)}He(v,e);la(v,e,D);e.Hidden&&(v.visible=!1);return v}function He(w,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&w.value){var u=w.geometry.width,e=w.geometry.height,O=u,r=e,p=0,aa=0;if(-90==D||-270==D){O=e;r=u;var ba=(e-u)/2;p=-ba/u;aa=ba/e}D+=mxUtils.toDegree(F.Rotation);var W=w.style.split(";").filter(function(ka){return 0>ka.indexOf("fillColor=")&&-0>ka.indexOf("strokeColor=")&&0>ka.indexOf("rotation=")}).join(";"),wa=new mxCell(w.value,new mxGeometry(p,aa,O,r),W+"fillColor=none;strokeColor=none;rotation="+D+";");w.value=null;wa.geometry.relative=!0;wa.vertex=!0;w.insert(wa)}}catch(ka){console.log(ka)}}function Ke(w,F,D,u,e){function O(Lb,$b){var Za="";try{for(var qb=0;qb<Lb.text.length;qb++){var Oc=Lb.text[qb];if(Oc[0]=="t_"+$b){for(var Gc in Oc[1]){var Hc=Oc[1][Gc];if(Hc)switch(Gc){case "font":Za+=y(Hc);break;case "bold":Za+="font-weight: bold;";-break;case "italic":Za+="font-style: italic;";break;case "underline":Za+="text-decoration: underline;";break;case "size":Za+="font-size:"+z(.75*Hc)+"px;";break;case "color":Za+="color:"+V(Hc).substring(0,7)+";";break;case "fill":Za+="background-color:"+V(Hc).substring(0,7)+";";break;case "align":Za+="text-align:"+Hc+";"}}break}}}catch(Td){}return Za}try{var r=function(Lb,$b,Za){Lb=Aa+Lb;ra[Lb]=$b;$b="";for(var qb=0;qb<W.length;qb++)$b+='<div style="'+na[qb]+'">'+(Za[W[qb]]||" ")+"</div>";qb=-mxUtils.getSizeForString($b);Za=g(Za.Image||Za["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Za=new mxCell($b,new mxGeometry(0,0,qb.width+Ba,qb.height+Oa),ua+(Ca?Za:""));Za.vertex=!0;e[Lb]=Za;u.addCell(Za,ba)},p=F.OrgChartBlockType,aa=F.Location,ba=new mxCell("",new mxGeometry(.75*aa.x,.75*aa.y,200,100),"group");ba.vertex=!0;u.addCell(ba);var W=F.FieldNames,wa=F.LayoutSettings,ka=F.BlockItemDefaultStyle||-{props:{}},pa=F.EdgeItemDefaultStyle,ra={},Aa=(w||Date.now())+"_";4==p&&(ka.props.LineWidth=0);var na=[],Ba=25,Oa=40,Ca=!0,ua=c("",ka.props,{},ba,!0);0==p?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Oa+=54):1==p||2==p?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=p&&(Ca=!1);for(w=0;w<W.length;w++)na.push(O(ka,W[w]));if(D.Items)for(var Ma=D.Items.n,Ja=0;Ja<Ma.length;Ja++){var Ka=Ma[Ja];-r(Ka.pk,Ka.ie[0]?Ka.ie[0].nf:null,Ka.f)}else{var l=F.ContractMap.derivative;if(null==l){var Ha=F.ContractMap.c.People;var cb=Ha.id;cb=cb.substr(0,cb.lastIndexOf("_"));for(w=0;w<W.length;w++)W[w]=Ha.f[W[w]]||W[w]}else for(Ja=0;Ja<l.length;Ja++)if("ForeignKeyGraph"==l[Ja].type)cb=l[Ja].c[0].id,cb=cb.substr(0,cb.lastIndexOf("_"));else if("MappedGraph"==l[Ja].type)for(w=0;w<W.length;w++)W[w]=l[Ja].nfs[W[w]]||W[w];var Ea;for(Ea in D){Ka=D[Ea].Collections;for(var Qa in Ka)if(Qa==cb)Ma=Ka[Qa].Items;else if(Ka[Qa].Properties.ForeignKeys&&-Ka[Qa].Properties.ForeignKeys[0]){var ma=Ka[Qa].Properties.ForeignKeys[0].SourceFields[0];var La=Ka[Qa].Properties.Schema.PrimaryKey[0]}if(Ma)break}F={};for(var ya in Ma){Ka=Ma[ya];var za=Ka[La],Qb=Ka[ma];za==Qb?(F[za]=za+Date.now(),za=F[za],Ka[La]=za,r(za,Qb,Ka)):r(za,F[Qb]||Qb,Ka)}}for(Ea in ra){var ha=ra[Ea];if(null!=ha){var xb=e[Aa+ha],Wa=e[Ea];if(null!=xb&&null!=Wa){var rc=new mxCell("",new mxGeometry(0,0,100,100),"");rc.geometry.relative=!0;rc.edge=!0;null!=pa&&null!=pa.props&&Xa(rc,pa.props,-u,null,null,!0);u.addCell(rc,ba,null,xb,Wa)}}}var wc=.75*wa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(u,0,wc,.75*wa.NodeSpacing.NeighborSeparation)).execute(ba);for(Ja=wa=r=0;ba.children&&Ja<ba.children.length;Ja++){var Gb=ba.children[Ja].geometry;r=Math.max(r,Gb.x+Gb.width);wa=Math.max(wa,Gb.y+Gb.height)}var Rb=ba.geometry;Rb.y-=wc;Rb.width=r;Rb.height=wa}catch(Lb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Lb)}}var xc=0,yc=0,he="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",-G=!1,mb="",wf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],xf=["fpDoor"],Fe={None:"none;",Arrow:"block;xyzFill=1;","Hollow Arrow":"block;xyzFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;xyzSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;xyzSize=10;","CFN ERD Many Arrow":"ERmany;xyzSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;xyzSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;xyzSize=10;","CFN ERD One Arrow":"ERone;xyzSize=16;",+(function(){function r(f){if(f&&null!=LucidImporter.imgSrcRepl){var n=LucidImporter.imgSrcRepl.attMap;if(n[f])f=n[f];else{n=LucidImporter.imgSrcRepl.imgRepl;for(var l=0;l<n.length;l++){var e=n[l];f=f.replace(e.searchVal,e.replVal)}LucidImporter.hasExtImgs=!0}}return f}function w(f){ab="";try{if(f){var n=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(n=LucidImporter.advImpConfig.fontMapping[f]);if(n){for(var l in n)ab+=l+"="+n[l]+";";return n.fontFamily?"font-family: "+n.fontFamily:+""}if("Liberation Sans"!=f)return ab="fontFamily="+f+";","font-family: "+f+";"}}catch(e){}return""}function x(f){return Math.round(10*f)/10}function z(f,n,l){function e(R,sa){var da="",ea=R.t,Db=R.l||{v:ea&&"ul"==ea.v?"auto":"decimal"};if(null==ea||0!=ua&&ua==ea.v&&pa==Db.v)null==ea&&(ua&&(da+=y(!0),ua=!1),da+='<div style="',ia.push("div"));else{ua&&(da+=y(!0));ua=ea.v;pa=Db.v;"ul"==ea.v?(da+="<ul ",ia.push("ul")):(da+="<ol ",ia.push("ol"));da+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';+if("hl"==ea.v)da+="upper-roman";else switch(Db.v){case "auto":da+="disc";break;case "inv":da+="circle";break;case "disc":da+="circle";break;case "trib":da+="square";break;case "square":da+="square";break;case "dash":da+="square";break;case "heart":da+="disc";break;default:da+="decimal"}da+='">'}if(null!=ea){da+='<li style="text-align:'+(R.a?R.a.v:l.TextAlign||"center")+";";if(null!=sa){if(sa.c)var M=sa.c.v;if(sa.s)var lb=sa.s.v}try{var Ea=I[Q],fc=W[fa];sa=Q;if(Ea&&fc&&Ea.s<fc.e)for(var lc=Ea.s;null!=+Ea&&Ea.s==lc;)"s"==Ea.n?lb=Ea.v:"c"==Ea.n&&(M=Ea.v),Ea=I[++sa]}catch(tb){console.log(tb)}M=gc(M);null!=M&&(M=M.substring(0,7),da+="color:"+M+";");lb&&(da+="font-size:"+x(.75*lb)+"px;");da+='">';ia.push("li");da+='<span style="';ia.push("span")}ua||(lb=M=R.a?R.a.v:l.TextAlign||"center","left"==M?lb="flex-start":"right"==M&&(lb="flex-end"),da+="display: flex; justify-content: "+lb+"; text-align: "+M+"; align-items: baseline; font-size: 0; line-height: 1.25;");R.il&&(da+="margin-left: "+Math.max(0,x(.75*+R.il.v-(ua?28:0)))+"px;");R.ir&&(da+="margin-right: "+x(.75*R.ir.v)+"px;");R.mt&&(da+="margin-top: "+x(.75*R.mt.v)+"px;");R.mb&&(da+="margin-bottom: "+x(.75*R.mb.v)+"px;");da+='margin-top: -2px;">';ua||(da+="<span>",ia.push("span"));return da}function a(R){if(mxUtils.isEmptyObject(R))return"";var sa="",da=0;if(R.lk){var ea=R.lk;null!=ea.v&&0<ea.v.length&&(sa+='<a href="'+E(ea.v[0])+'">',ha.push("a"),da++)}sa+='<span style="';ha.push("span");da++;sa+="font-size:"+(R.s&&R.s.v?x(.75*R.s.v):"13")+"px;";+R.c&&(ea=gc(R.c.v),null!=ea&&(ea=ea.substring(0,7),sa+="color:"+ea+";"));if(R.b&&R.b.v||R.fc&&R.fc.v&&0==R.fc.v.indexOf("Bold"))sa+="font-weight: bold;";R.i&&R.i.v&&(sa+="font-style: italic;");R.ac&&R.ac.v&&(sa+="text-transform: uppercase;");ea=null;R.f?ea=R.f.v:l.Font&&(ea=l.Font);sa+=w(ea);ea=[];R.u&&R.u.v&&ea.push("underline");R.k&&R.k.v&&ea.push("line-through");0<ea.length&&(sa+="text-decoration: "+ea.join(" ")+";");sa+='">';wa.push(da);return sa}function y(R){var sa="";do{var da=ia.pop();if(!R&&+ua&&("ul"==da||"ol"==da)){ia.push(da);break}sa+="</"+da+">"}while(0<ia.length);return sa}function d(R,sa,da,ea){R=R?R.substring(sa,da):"";ua&&(R=R.trim());0==ha.length&&0<R.length&&(R=a({dummy:1})+R);R=R.replace(/</g,"<").replace(/>/g,">");do for(sa=wa.pop(),da=0;da<sa;da++){var Db=ha.pop();R+="</"+Db+">"}while(ea&&0<ha.length);return R}var c={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},H={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,f:!0,ac:!0};n.sort(function(R,sa){return R.s-sa.s});var I=n.filter(function(R){return H[R.n]});+I[0]&&0!=I[0].s&&I.unshift({s:0,n:"dummy",v:"",e:I[0].s});n=n.filter(function(R){return c[R.n]});for(var C=[0],ba=0;0<(ba=f.indexOf("\n",ba));)ba++,C.push(ba);for(var Q=ba=0;Q<n.length;Q++){if(n[Q].s>C[ba])n.splice(Q,0,{s:C[ba],n:"a",v:l.TextAlign||"center"});else{for(var T=0;Q+T<n.length&&n[Q+T].s==C[ba];)T++;1<T&&(Q+=T-1)}ba++}null!=C[ba]&&n.push({s:C[ba],n:"a",v:l.TextAlign||"center"});C="";var W=I.slice();W.sort(function(R,sa){return R.e-sa.e});var fa=Q=0;ba=0;T={};for(var S={},ha=[],wa=[],ia=+[],Z=!1,ua=!1,pa,ra=0,b=0,na=f.length,Na=!0;ba<n.length||Na;){Na=!1;if(ba<n.length){var ka=n[ba],za=n[ba].s;Z&&(S={},C+=d(f,ra,na,!0),b=ra=na,C+=y());for(;null!=ka&&ka.s==za;)S[ka.n]=ka,ka=n[++ba];na=null!=ka?ka.s:f.length;C+=e(S,T);Z&&(C+=a(T));Z=!0}for(;Q>=fa&&(Q<I.length||fa<W.length);)if(ka=I[Q],za=W[fa],ka&&za&&ka.s<za.e){if(ka.s>=na)break;ra=ka.s;0<ra-b&&(C+=a(T)+d(f,b,ra),b=ra);for(;null!=ka&&ka.s==ra;)T[ka.n]=ka,ka=I[++Q];C+=a(T)}else if(za){if(za.e>na)break;b=za.e;do delete T[za.n],za=W[++fa];+while(null!=za&&za.e==b);C+=d(f,ra,b);ra=b;0!=wa.length||null!=ka&&ka.s==b||(I.splice(Q,0,{s:b,n:"dummy",v:""}),W.splice(fa,0,{e:ka?ka.s:na,n:"dummy",v:""}))}else break}C+=d(null,null,null,!0);Z&&(b!=na&&(C+=a({dummy:1})+d(f,b,na)),C+=y(!0));return C}function k(f,n){q=!1;var l=null!=f.Text&&f.Text.t?f.Text:null!=f.Value&&f.Value.t?f.Value:null!=f.Lane_0&&f.Lane_0.t?f.Lane_0:null;null==l&&null!=f.State?f.State.t&&(l=f.State):null==l&&null!=f.Note?f.Note.t&&(l=f.Note):null==l&&null!=f.Title?f.Title.t&&+(l=f.Title):f.t&&(l=f);null==l&&null!=f.TextAreas?null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&f.TextAreas.Text.Value.t&&(l=f.TextAreas.Text.Value):null==l&&null!=f.t0&&f.t0.t&&(l=f.t0);if(null!=l){if(null!=l.t){var e=l.t;e=e.replace(/\u2028/g,"\n");l=l.m;try{/ /.test(e)&&(LucidImporter.hasUnknownShapes=!0);for(var a=0;a<l.length;a++)if(0<l[a].s||null!=l[a].e&&l[a].e<e.length||"t"==l[a].n||"ac"==l[a].n||"lk"==l[a].n){q=!0;break}if(q=q||n)return z(e,l,f)}catch(y){console.log(y)}e=e.replace(/</g,+"<");return e=e.replace(/>/g,">")}if(null!=l.Value&&null!=l.Value.t)return l.Value.t=l.Value.t.replace(/</g,"<"),l.Value.t=l.Value.t.replace(/>/g,">"),l.Value.t}return""}function t(f){return null!=f.Action?f.Action:f}function u(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;if(null!=f.Title){if(null!=f.Title.m)return f.Title.m}else if(null!=+f.State){if(null!=f.State.m)return f.State.m}else if(null!=f.Note&&null!=f.Note.m)return f.Note.m}return null}function p(f,n){f="whiteSpace=wrap;"+(n?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+ab:A(f)+N(f)+L(f)+X(f)+xa(f)+Ka(f)+Va(f)+Fa(f)+Ca(f))+Ga(f)+qa(f)+Nb(mxConstants.STYLE_ALIGN,f.TextAlign,"center");ab="";return f}function h(f,n,l,e,a,y){y=null==y?!1:y;var d="",c=!1,H=!1;if(null!=f)if(y){y=f.split(";");f="";for(var I=0;I<y.length;I++)"fillColor=none"==y[I]?H=!0:"strokeColor=none"==+y[I]?c=!0:""!=y[I]&&(f+=y[I]+";")}else""!=f&&";"!=f.charAt(f.length-1)&&(d=";");d+=(Pc(f,"whiteSpace")?"":"whiteSpace=wrap;")+(a?(Pc(f,"overflow")?"":"overflow=block;blockSpacing=1;")+(Pc(f,"html")?"":"html=1;")+"fontSize=13;"+ab:D(mxConstants.STYLE_FONTSIZE,f,n,l,e)+D(mxConstants.STYLE_FONTFAMILY,f,n,l,e)+D(mxConstants.STYLE_FONTCOLOR,f,n,l,e)+D(mxConstants.STYLE_FONTSTYLE,f,n,l,e)+D(mxConstants.STYLE_ALIGN,f,n,l,e)+D(mxConstants.STYLE_SPACING_LEFT,f,n,l,e)+D(mxConstants.STYLE_SPACING_RIGHT,f,n,+l,e)+D(mxConstants.STYLE_SPACING_TOP,f,n,l,e)+D(mxConstants.STYLE_SPACING_BOTTOM,f,n,l,e))+D(mxConstants.STYLE_ALIGN+"Global",f,n,l,e)+D(mxConstants.STYLE_SPACING,f,n,l,e)+D(mxConstants.STYLE_VERTICAL_ALIGN,f,n,l,e)+D(mxConstants.STYLE_STROKECOLOR,f,n,l,e)+D(mxConstants.STYLE_OPACITY,f,n,l,e)+D(mxConstants.STYLE_ROUNDED,f,n,l,e)+D(mxConstants.STYLE_ROTATION,f,n,l,e)+D(mxConstants.STYLE_FLIPH,f,n,l,e)+D(mxConstants.STYLE_FLIPV,f,n,l,e)+D(mxConstants.STYLE_SHADOW,f,n,l,e)+D(mxConstants.STYLE_FILLCOLOR,+f,n,l,e)+D(mxConstants.STYLE_DASHED,f,n,l,e)+D(mxConstants.STYLE_STROKEWIDTH,f,n,l,e)+D(mxConstants.STYLE_IMAGE,f,n,l,e)+D(mxConstants.STYLE_POINTER_EVENTS,f,n,l,e);H&&!Pc(d,mxConstants.STYLE_FILLCOLOR)&&(d+="fillColor=none;");c&&!Pc(d,mxConstants.STYLE_STROKECOLOR)&&(d+="strokeColor=none;");ab="";return d}function D(f,n,l,e,a){if(!Pc(n,f))switch(f){case mxConstants.STYLE_FONTSIZE:return A(l);case mxConstants.STYLE_FONTFAMILY:return N(l);case mxConstants.STYLE_FONTCOLOR:return L(l);case mxConstants.STYLE_FONTSTYLE:return X(l);+case mxConstants.STYLE_ALIGN:return xa(l);case mxConstants.STYLE_ALIGN+"Global":return Nb(mxConstants.STYLE_ALIGN,l.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return Ka(l);case mxConstants.STYLE_SPACING_RIGHT:return Va(l);case mxConstants.STYLE_SPACING_TOP:return Fa(l);case mxConstants.STYLE_SPACING_BOTTOM:return Ca(l);case mxConstants.STYLE_SPACING:return Ga(l);case mxConstants.STYLE_VERTICAL_ALIGN:return qa(l);case mxConstants.STYLE_STROKECOLOR:return U(l,e);case mxConstants.STYLE_OPACITY:return Xa(l,+e,a);case mxConstants.STYLE_ROUNDED:return f=!a.edge&&!a.style.includes("rounded")&&null!=l.Rounding&&0<l.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+x(.75*l.Rounding)+";":"",f;case mxConstants.STYLE_ROTATION:return mc(l,e,a);case mxConstants.STYLE_FLIPH:return f=l.FlipX?"flipH=1;":"",f;case mxConstants.STYLE_FLIPV:return f=l.FlipY?"flipV=1;":"",f;case mxConstants.STYLE_SHADOW:return Eb(l);case mxConstants.STYLE_FILLCOLOR:return ta(l,e);case mxConstants.STYLE_DASHED:return be(l);case mxConstants.STYLE_STROKEWIDTH:return Ec(l);+case mxConstants.STYLE_IMAGE:return Ae(l,e);case mxConstants.STYLE_POINTER_EVENTS:return l.Magnetize?"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;":""}return""}function A(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("s"==l.n&&l.v)return"fontSize="+x(.75*l.v)+";";n++}return"fontSize=13;"}function N(f){var n=u(f);if(null!=n)for(var l=0;l<n.length;l++)if("f"==n[l].n&&n[l].v){var e=n[l].v;break}!e&&f.Font&&(e=f.Font);w(e);return ab}function E(f){return"ext"==f.tp?f.url:+"ml"==f.tp?"mailto:"+f.eml:"pg"==f.tp?"data:page/id,"+(LucidImporter.pageIdsMap[f.id]||0):"c"==f.tp?"data:confluence/id,"+f.ccid:null}function L(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("c"==l.n&&null!=l.v)return f=gc(l.v).substring(0,7),"#000000"==f&&(f="default"),mxConstants.STYLE_FONTCOLOR+"="+f+";";n++}return""}function X(f){return Oa(u(f))}function Oa(f){if(null!=f){var n=0,l=!1;if(null!=f)for(var e=0;!l&&e<f.length;){var a=f[e];"b"==a.n?null!=a.v&&a.v&&(l=!0,n+=1):"fc"==a.n&&+"Bold"==a.v&&(l=!0,n+=1);e++}l=!1;if(null!=f)for(e=0;!l&&e<f.length;)a=f[e],"i"==a.n&&null!=a.v&&a.v&&(l=!0,n+=2),e++;l=!1;if(null!=f)for(e=0;!l&&e<f.length;)a=f[e],"u"==a.n&&null!=a.v&&a.v&&(l=!0,n+=4),e++;if(0<n)return"fontStyle="+n+";"}return""}function xa(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("a"==l.n&&null!=l.v)return"align="+l.v+";";n++}return""}function Ka(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if(null!=l.v&&"il"==l.n)return"spacingLeft="+x(.75*l.v)++";";n++}return""}function Va(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("ir"==l.n&&null!=l.v)return"spacingRight="+x(.75*l.v)+";";n++}return""}function Fa(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("mt"==l.n&&null!=l.v)return"spacingTop="+x(.75*l.v)+";";n++}return""}function Ca(f){f=u(f);if(null!=f)for(var n=0;n<f.length;){var l=f[n];if("mb"==l.n&&null!=l.v)return"spacingBottom="+x(.75*l.v)+";";n++}return""}function Ga(f){return"number"===typeof f.InsetMargin?"spacing="++Math.max(0,x(.75*f.InsetMargin))+";":""}function qa(f){return null!=f.Text_VAlign&&"string"===typeof f.Text_VAlign?"verticalAlign="+f.Text_VAlign+";":null!=f.Title_VAlign&&"string"===typeof f.Title_VAlign?"verticalAlign="+f.Title_VAlign+";":Nb(mxConstants.STYLE_VERTICAL_ALIGN,f.TextVAlign,"middle")}function U(f,n){return 0==f.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Nb(mxConstants.STYLE_STROKECOLOR,Pa(f.LineColor),"#000000")}function Gd(f){return null!=f?mxConstants.STYLE_FILLCOLOR+"="+Pa(f)++";":""}function Hd(f){return null!=f?"swimlaneFillColor="+Pa(f)+";":""}function Xa(f,n,l){n="";if("string"===typeof f.LineColor&&(f.LineColor=gc(f.LineColor),7<f.LineColor.length)){var e="0x"+f.LineColor.substring(f.LineColor.length-2,f.LineColor.length);l.style.includes("strokeOpacity")||(n+="strokeOpacity="+Math.round(parseInt(e)/2.55)+";")}"string"===typeof f.FillColor&&(f.FillColor=gc(f.FillColor),7<f.FillColor.length&&(f="0x"+f.FillColor.substring(f.FillColor.length-2,f.FillColor.length),l.style.includes("fillOpacity")||+(n+="fillOpacity="+Math.round(parseInt(f)/2.55)+";")));return n}function mc(f,n,l){var e="";if(null!=f.Rotation){f=mxUtils.toDegree(parseFloat(f.Rotation));var a=!0;0!=f&&n.Class&&("UMLSwimLaneBlockV2"==n.Class||(0<=n.Class.indexOf("Rotated")||-90==f||270==f)&&(0<=n.Class.indexOf("Pool")||0<=n.Class.indexOf("SwimLane")))?(f+=90,l.geometry.rotate90(),l.geometry.isRotated=!0,a=!1):0<=mxUtils.indexOf(vf,n.Class)?(f-=90,l.geometry.rotate90()):0<=mxUtils.indexOf(wf,n.Class)&&(f+=180);0!=f&&(e+="rotation="++f+";");a||(e+="horizontal=0;")}return e}function Eb(f){return null!=f.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function gc(f){if(f){if("object"===typeof f)try{f=f.cs[0].c}catch(n){console.log(n),f="#ffffff"}"rgb"==f.substring(0,3)?f="#"+f.match(/\d+/g).map(function(n){n=parseInt(n).toString(16);return(1==n.length?"0":"")+n}).join(""):"#"!=f.charAt(0)&&(f="#"+f)}return f}function Pa(f){return(f=gc(f))?f.substring(0,7):null}function hc(f,n){return(f=gc(f))&&7<f.length?n+"="+Math.round(parseInt("0x"++f.substr(7))/2.55)+";":""}function ta(f,n){if(null!=f.FillColor)if("object"===typeof f.FillColor){if(null!=f.FillColor.cs&&1<f.FillColor.cs.length)return Nb(mxConstants.STYLE_FILLCOLOR,Pa(f.FillColor.cs[0].c))+Nb(mxConstants.STYLE_GRADIENTCOLOR,Pa(f.FillColor.cs[1].c))}else return"string"===typeof f.FillColor?Nb(mxConstants.STYLE_FILLCOLOR,Pa(f.FillColor),"#FFFFFF"):Nb(mxConstants.STYLE_FILLCOLOR,"none");return""}function be(f){return"dotted"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==+f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":"dashed32"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==f.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":+null!=f.StrokeStyle&&"dashed"==f.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function Ec(f){return null!=f.LineWidth?Nb(mxConstants.STYLE_STROKEWIDTH,x(.75*parseFloat(f.LineWidth)),"1"):""}function Ae(f,n,l){var e="";f.FillColor&&f.FillColor.url?(l=f.FillColor.url,"fill"==f.FillColor.pos&&(e="imageAspect=0;")):"ImageSearchBlock2"==n.Class?l=f.URL:"UserImage2Block"==n.Class&&null!=f.ImageFillProps&&null!=f.ImageFillProps.url&&(l=f.ImageFillProps.url);return null!=l?"image="+r(l)+";"+e:""}function Be(f,+n,l){null!=n.Link&&0<n.Link.length&&l.setAttributeForCell(f,"link",E(n.Link[0]));null!=n.NoteHint&&n.NoteHint.t&&l.setAttributeForCell(f,"Notes",n.NoteHint.t);var e=[],a=l.convertValueToString(f),y=!1;if(null!=a){for(var d=0;match=xf.exec(a);){var c=match[0];y=!0;if(2<c.length){var H=c.substring(2,c.length-2);"documentName"==H?H="filename":"pageName"==H?H="page":"totalPages"==H?H="pagecount":"page"==H?H="pagenumber":"date:"==H.substring(0,5)?H="date{"+H.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,+"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==H.substring(0,16)?H=H.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==H.substring(0,9)&&(H="date{"+H.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");H="%"+H+"%";e.push(a.substring(d,match.index)+(null!=H?H:c));d=match.index+c.length}}y&&(e.push(a.substring(d)),l.setAttributeForCell(f,"label",e.join("")),l.setAttributeForCell(f,"placeholders","1"))}for(var I in n)if(n.hasOwnProperty(I)&&+I.toString().startsWith("ShapeData_"))try{var C=n[I],ba=mxUtils.trim(C.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Ce(f,ba,C.Value,l)}catch(Q){window.console&&console.log("Ignored "+I+":",Q)}}function Ce(f,n,l,e){for(var a=n,y=0;null!=e.getAttributeForCell(f,a);)y++,a=n+"_"+y;e.setAttributeForCell(f,a,null!=l?l:"")}function Id(f,n,l,e,a,y){var d=t(n);if(null!=d){var c=Jd[d.Class];null!=c?(f.style+=c,";"!=f.style.charAt(f.style.length-1)&&(f.style+=";")):f.edge||(console.log("No mapping found for: "++d.Class),LucidImporter.hasUnknownShapes=!0);c=null!=d.Properties?d.Properties:d;if(null!=c&&(f.value=y?"":k(c),f.style+=h(f.style,c,d,f,q,!0),f.style.includes("strokeColor")||(f.style+=U(c,d)),Be(f,c,l),c.Title&&c.Title.t&&c.Text&&c.Text.t&&"ExtShape"!=d.Class.substr(0,8)&&(l=f.geometry,l=new mxCell(k(c.Title),new mxGeometry(0,l.height,l.width,10),"strokeColor=none;fillColor=none;"),l.vertex=!0,f.insert(l),l.style+=p(c.Title,q)),f.edge)){f.style=null!=c.Rounding&&"diagonal"!=c.Shape?f.style+("rounded=1;arcSize="++c.Rounding+";"):f.style+"rounded=0;";if(l="curve"==c.Shape)f.style+="curved=1;";else if("diagonal"!=c.Shape)if(null!=c.ElbowPoints&&0<c.ElbowPoints.length)for(f.geometry.points=[],d=0;d<c.ElbowPoints.length;d++)f.geometry.points.push(new mxPoint(Math.round(.75*c.ElbowPoints[d].x+nc),Math.round(.75*c.ElbowPoints[d].y+oc)));else if("elbow"==c.Shape||null!=c.Endpoint1.Block&&null!=c.Endpoint2.Block)f.style+="edgeStyle=orthogonalEdgeStyle;";if(c.LineJumps||LucidImporter.globalProps.LineJumps)f.style+=+"jumpStyle=arc;";null!=c.Endpoint1.Style&&(y=De[c.Endpoint1.Style],null!=y?(y=y.replace(/xyz/g,"start"),f.style+="startArrow="+y+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+c.Endpoint1.Style)));null!=c.Endpoint2.Style&&(y=De[c.Endpoint2.Style],null!=y?(y=y.replace(/xyz/g,"end"),f.style+="endArrow="+y+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+c.Endpoint2.Style)));y=null!=c.ElbowControlPoints&&0<+c.ElbowControlPoints.length?c.ElbowControlPoints:c.Joints;if(l&&null!=c.BezierJoints&&0<c.BezierJoints.length){y=[];l=c.BezierJoints[c.BezierJoints.length-1];l.p.x=c.Endpoint2.x;l.p.y=c.Endpoint2.y;for(d=0;d<c.BezierJoints.length;d++)l=c.BezierJoints[d],y.push({x:l.p.x+l.nt.x*l.lcps*.75,y:l.p.y+l.nt.y*l.lcps*.75}),y.push({x:l.p.x+l.nt.x*l.rcps*.75,y:l.p.y+l.nt.y*l.rcps*.75});y=y.slice(1,y.length-1)}else l&&(y=[],y.push({x:c.Endpoint1.x+(.1>c.Endpoint1.LinkX?-250:.9<c.Endpoint1.LinkX?250:0),y:c.Endpoint1.y++(.1>c.Endpoint1.LinkY?-250:.9<c.Endpoint1.LinkY?250:0)}),y.push({x:c.Endpoint2.x+(.1>c.Endpoint2.LinkX?-250:.9<c.Endpoint2.LinkX?250:0),y:c.Endpoint2.y+(.1>c.Endpoint2.LinkY?-250:.9<c.Endpoint2.LinkY?250:0)}));if(null!=y)for(f.geometry.points=[],d=0;d<y.length;d++)l=y[d].p?y[d].p:y[d],f.geometry.points.push(new mxPoint(Math.round(.75*l.x+nc),Math.round(.75*l.y+oc)));l=!1;if((null==f.geometry.points||0==f.geometry.points.length)&&null!=c.Endpoint1.Block&&c.Endpoint1.Block==c.Endpoint2.Block&&null!=+e&&null!=a){l=new mxPoint(Math.round(e.geometry.x+e.geometry.width*c.Endpoint1.LinkX),Math.round(e.geometry.y+e.geometry.height*c.Endpoint1.LinkY));y=new mxPoint(Math.round(a.geometry.x+a.geometry.width*c.Endpoint2.LinkX),Math.round(a.geometry.y+a.geometry.height*c.Endpoint2.LinkY));nc=l.x==y.x?Math.abs(l.x-e.geometry.x)<e.geometry.width/2?-20:20:0;oc=l.y==y.y?Math.abs(l.y-e.geometry.y)<e.geometry.height/2?-20:20:0;var H=new mxPoint(l.x+nc,l.y+oc),I=new mxPoint(y.x+nc,y.y+oc);H.generated=!0;I.generated=+!0;f.geometry.points=[H,I];l=l.x==y.x}null!=e&&e.geometry.isRotated||(H=Ee(f,c.Endpoint1,!0,l,null,e));null!=e&&null!=H&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(H),LucidImporter.stylePointsSet.add(e));null!=a&&a.geometry.isRotated||(I=Ee(f,c.Endpoint2,!1,l,null,a));null!=a&&null!=I&&(null==a.stylePoints&&(a.stylePoints=[]),a.stylePoints.push(I),LucidImporter.stylePointsSet.add(a))}}null!=n.id&&(f.style+=";lucidId="+n.id+";");f.lucidchartObject=n}function Fe(f,n){var l=t(f).Properties,+e=l.BoundingBox;null==f.Class||"AWS"!==f.Class.substring(0,3)&&"Amazon"!==f.Class.substring(0,6)||f.Class.includes("AWS19")||(e.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*e.x+nc),Math.round(.75*e.y+oc),Math.round(.75*e.w),Math.round(.75*e.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;Id(v,f,n);v.zOrder=l.ZOrder;Ge(v,l);l.Hidden&&(v.visible=!1);return v}function yf(f,n,l,e){var a=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");a.geometry.relative=+!0;a.edge=!0;Id(a,f,n,l,e,!0);var y=t(f).Properties,d=null!=y?y.TextAreas:f.TextAreas;if(null!=d){for(var c=0;void 0!==d["t"+c];){var H=d["t"+c];null!=H&&(a=Kd(H,a,f,l,e,n));c++}for(c=0;void 0!==d["m"+c]||1>c;)H=d["m"+c],null!=H&&(a=Kd(H,a,f,l,e,n)),c++;null!=d.Text&&(a=Kd(d.Text,a,f,l,e,n));d=null!=y?y.TextAreas:f.TextAreas;null!=d.Message&&(a=Kd(d.Message,a,f,l,e,n))}f.Hidden&&(a.visible=!1);return a}function Kd(f,n,l,e,a,y){var d=2*(parseFloat(f.Location)-.5);isNaN(d)&&null!=f.Text&&null!=f.Text.Location&&+(d=2*(parseFloat(f.Text.Location)-.5));y=k(f);var c=mxCell;d=new mxGeometry(isNaN(d)?0:d,0,0,0);var H=ce;var I=l;if(q)I=ab;else{var C="13",ba="";if(null!=f&&null!=f.Value&&null!=f.Value.m){ba=Oa(f.Value.m);for(var Q=0;Q<f.Value.m.length;Q++)if("s"==f.Value.m[Q].n&&f.Value.m[Q].v)C=x(.75*parseFloat(f.Value.m[Q].v));else if("c"==f.Value.m[Q].n){var T=gc(f.Value.m[Q].v);null!=T&&(T=T.substring(0,7));"#000000"==T&&(T="default");ba+="fontColor="+T+";"}ba+=N(I);ab=""}I=ba+";fontSize="+C+";"}c=new c(y,d,+H+I);c.geometry.relative=!0;c.vertex=!0;if(f.Side)try{l.Action&&l.Action.Properties&&(l=l.Action.Properties);if(null!=e&&null!=a){var W=e.geometry,fa=a.geometry;var S=Math.abs(W.x+W.width*l.Endpoint1.LinkX-(fa.x+fa.width*l.Endpoint2.LinkX));var ha=Math.abs(W.y+W.height*l.Endpoint1.LinkY-(fa.y+fa.height*l.Endpoint2.LinkY))}else S=Math.abs(l.Endpoint1.x-l.Endpoint2.x),ha=Math.abs(l.Endpoint1.y-l.Endpoint2.y);var wa=mxUtils.getSizeForString(y.replace(/\n/g,"<br>"));c.geometry.offset=0==S||S<ha?new mxPoint(Math.sign(l.Endpoint1.y-+l.Endpoint2.y)*f.Side*(wa.width/2+5+S),0):new mxPoint(0,Math.sign(l.Endpoint2.x-l.Endpoint1.x)*f.Side*(wa.height/2+5+ha))}catch(ia){console.log(ia)}c.lucidchartObject=f;n.insert(c);return n}function Nb(f,n,l,e){null!=n&&null!=e&&(n=e(n));return null!=n&&n!=l?f+"="+n+";":""}function Ee(f,n,l,e,a,y){if(null!=n&&null!=n.LinkX&&null!=n.LinkY&&(n.LinkX=Math.round(1E3*n.LinkX)/1E3,n.LinkY=Math.round(1E3*n.LinkY)/1E3,null!=y&&y.style&&-1<y.style.indexOf("flipH=1")&&(n.LinkX=1-n.LinkX),null!=y&&y.style&&+-1<y.style.indexOf("flipV=1")&&(n.LinkY=1-n.LinkY),f.style+=(e?"":(l?"exitX":"entryX")+"="+n.LinkX+";")+(a?"":(l?"exitY":"entryY")+"="+n.LinkY+";")+(l?"exitPerimeter":"entryPerimeter")+"=0;",n.Inside))return"["+n.LinkX+","+n.LinkY+",0]"}function He(f,n,l,e,a){try{var y=function(S,ha){if(null!=S)if(Array.isArray(S))for(var wa=0;wa<S.length;wa++)y(S[wa].p?S[wa].p:S[wa],ha);else ha=ha?.75:1,c=Math.min(c,S.x*ha),H=Math.min(H,S.y*ha),I=Math.max(I,(S.x+(S.width?S.width:0))*ha),C=Math.max(C,(S.y+(S.height?+S.height:0))*ha)};null!=f.Action&&null!=f.Action.Properties&&(f=f.Action.Properties);var d=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");d.vertex=!0;d.zOrder=f.ZOrder;var c=Infinity,H=Infinity,I=-Infinity,C=-Infinity,ba=f.Members;a=[];for(var Q in ba){var T=n[Q];null!=T?a.push(T):null!=e[Q]&&(a.push(e[Q]),l[Q]=d)}a.sort(function(S,ha){S=S.zOrder||S.ZOrder;ha=ha.zOrder||ha.ZOrder;return null!=S&&null!=ha?S>ha?1:S<ha?-1:0:0});for(l=n=0;l<a.length;l++)if(T=a[l],T.vertex)y(T.geometry),+T.parent=d,d.insert(T,n++);else{var W=null!=T.Action&&T.Action.Properties?T.Action.Properties:T;y(W.Endpoint1,!0);y(W.Endpoint2,!0);y(W.ElbowPoints,!0);y(W.ElbowControlPoints,!0);y(W.BezierJoints,!0);y(W.Joints,!0)}d.geometry.x=c;d.geometry.y=H;d.geometry.width=I-c;d.geometry.height=C-H;if(null!=d.children)for(l=0;l<d.children.length;l++){var fa=d.children[l].geometry;fa.x-=c;fa.y-=H}f.IsState?(d.lucidLayerInfo={name:f.Name,visible:!f.Hidden,locked:f.Restrictions.b&&f.Restrictions.p&&f.Restrictions.c},+d.style+="container=1;collapsible=0;recursiveResize=0;"):f.Hidden&&(d.visible=!1);d.lucidchartObject=f;return d}catch(S){console.log(S)}}function zf(f,n,l){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;f.getModel().beginUpdate();try{var e=function(ia,Z){function ua(za,R,sa){null==za||za.generated||(za.x-=R,za.y-=sa)}var pa=null!=Z.Endpoint1.Block?y[Z.Endpoint1.Block]:null,ra=null!=Z.Endpoint2.Block?y[Z.Endpoint2.Block]:null,b=yf(ia,f,pa,ra);if(Z.Endpoint1&&Z.Endpoint1.Line||Z.Endpoint2&&+Z.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==pa&&null!=Z.Endpoint1&&b.geometry.setTerminalPoint(new mxPoint(Math.round(.75*Z.Endpoint1.x),Math.round(.75*Z.Endpoint1.y)),!0);null==ra&&null!=Z.Endpoint2&&b.geometry.setTerminalPoint(new mxPoint(Math.round(.75*Z.Endpoint2.x),Math.round(.75*Z.Endpoint2.y)),!1);ia=d[ia.id];if(null!=ia){for(var na=b.geometry,Na=Z=0,ka=ia;null!=ka&&null!=ka.geometry;)Z+=ka.geometry.x,Na+=ka.geometry.y,ka=ka.parent;ua(na.sourcePoint,+Z,Na);ua(na.targetPoint,Z,Na);ua(na.offset,Z,Na);na=na.points;if(null!=na)for(ka=0;ka<na.length;ka++)ua(na[ka],Z,Na)}a.push(f.addCell(b,ia,null,pa,ra))},a=[],y={},d={},c={},H=[];null!=n.Lines&&(c=n.Lines);if(null!=n.Blocks){Object.assign(c,n.Blocks);for(var I in n.Blocks){var C=n.Blocks[I];C.id=I;var ba=!1;null!=Jd[C.Class]&&"mxCompositeShape"==Jd[C.Class]&&(y[C.id]=Ie(C,a,f),H.push(C),ba=!0);ba||(y[C.id]=Fe(C,f),H.push(C))}if(null!=n.Generators)for(I in n.Generators)"OrgChart2018"==n.Generators[I].ClassName?+(LucidImporter.hasUnknownShapes=!0,Je(I,n.Generators[I],n.Data,f,y)):LucidImporter.hasUnknownShapes=!0}else{for(var Q=0;Q<n.Objects.length;Q++)C=n.Objects[Q],c[C.id]=C,null!=C.Action&&"mxCompositeShape"==Jd[C.Action.Class]?y[C.id]=Ie(C,a,f):C.IsBlock&&null!=C.Action&&null!=C.Action.Properties?y[C.id]=Fe(C,f):C.IsGenerator&&C.GeneratorData&&C.GeneratorData.p&&("OrgChart2018"==C.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Je(C.GeneratorData.id,C.GeneratorData.p,C.GeneratorData.gs,f,+y)):LucidImporter.hasUnknownShapes=!0),H.push(C);for(Q=0;Q<n.Objects.length;Q++)if(C=n.Objects[Q],C.IsGroup){var T=He(C,y,d,c,f);T&&(y[C.id]=T,H.push(C))}}if(null!=n.Groups)try{for(I in n.Groups)if(C=n.Groups[I],C.id=I,T=He(C,y,d,c,f))y[C.id]=T,H.push(C)}catch(ia){console.log(ia)}if(null!=n.Lines)for(I in n.Lines)C=n.Lines[I],C.id=I,H.push(C);H.sort(function(ia,Z){ia=t(ia);Z=t(Z);ia=null!=ia.Properties?ia.Properties.ZOrder:ia.ZOrder;Z=null!=Z.Properties?Z.Properties.ZOrder:Z.ZOrder;return null!=ia&&+null!=Z?ia>Z?1:ia<Z?-1:0:0});for(Q=0;Q<H.length;Q++){C=H[Q];var W=y[C.id];if(null!=W){if(null==W.parent)if(W.lucidLayerInfo){var fa=new mxCell;f.addCell(fa,f.model.root);fa.setVisible(W.lucidLayerInfo.visible);W.lucidLayerInfo.locked&&fa.setStyle("locked=1;");fa.setValue(W.lucidLayerInfo.name);delete W.lucidLayerInfo;f.addCell(W,fa)}else a.push(f.addCell(W))}else C.IsLine&&null!=C.Action&&null!=C.Action.Properties?e(C,C.Action.Properties):null!=C.StrokeStyle&&e(C,C)}LucidImporter.stylePointsSet.forEach(function(ia){ia.style=+"points=["+ia.stylePoints.join(",")+"];"+ia.style;delete ia.stylePoints});try{var S=f.getModel().cells;f.view.validate();for(var ha in S){var wa=S[ha];null!=wa&&(Af(f,wa),Bf(f,wa),Cf(f,wa),"1"==urlParams.lucidchartObject&&null!=wa.lucidchartObject&&Ce(wa,"lucidchartObject",JSON.stringify(wa.lucidchartObject,null,2),f),delete wa.lucidchartObject,delete wa.zOrder)}}catch(ia){console.log(ia)}l||f.setSelectionCells(a)}finally{f.getModel().endUpdate()}}function Cf(f,n){if(f.model.contains(n)&&n.edge){var l=+f.view.getState(n);if(null!=l&&null!=n.children){var e=mxRectangle.fromRectangle(l.paintBounds);e.grow(5);for(var a=0;a<n.children.length;a++){var y=f.view.getState(n.children[a]);null==y||mxUtils.contains(e,y.paintBounds.x,y.paintBounds.y)||(y.cell.geometry.offset=new mxPoint(0,0))}}f=n.lucidchartObject;null!=f&&"elbow"==f.Shape&&null==f.ElbowControlPoints&&null==f.ElbowPoints&&null!=l.style.exitX&&null!=l.style.exitY&&null!=l.style.entryX&&null!=l.style.entryY&&(n.style=mxUtils.setStyle(n.style,+"exitX",Math.round(20*l.style.exitX)/20),n.style=mxUtils.setStyle(n.style,"exitY",Math.round(20*l.style.exitY)/20),n.style=mxUtils.setStyle(n.style,"entryX",Math.round(20*l.style.entryX)/20),n.style=mxUtils.setStyle(n.style,"entryY",Math.round(20*l.style.entryY)/20))}}function Bf(f,n){if(f.model.contains(n)&&null!=n.style&&""!=n.style){f=n.style.split(";");for(var l={},e=[],a=f.length-1;0<=a;a--){var y=f[a].split("=");if(2!=y.length||null==l[y[0]])l[y[0]]=y[1],""!=f[a]&&e.push(f[a])}n.style=e.reverse().join(";")++";"}}function Af(f,n){if(f.model.contains(n)&&null!=n.children&&null!=n.geometry&&n.vertex&&"group;dropTarget=0;pointerEvents=0;"==n.style){for(var l=null,e=0;e<n.children.length;e++)if(n.children[e].vertex){var a=n.children[e].geometry;if(null!=a&&0==a.x&&0==a.y&&a.width==n.geometry.width&&a.height==n.geometry.height){if(null!=l)return;l=n.children[e]}}n=l;if(null!=n&&(l=n.parent,""==f.convertValueToString(l))){if(null!=n.edges)for(e=0;e<n.edges.length;e++)n.edges[e].source==n&&n.edges[e].setTerminal(n.parent,+!0),n.edges[e].target==n&&n.edges[e].setTerminal(n.parent,!1);if(null!=n.children&&0<n.children.length)for(a=n.children.slice(),e=0;e<a.length;e++)l.insert(a[e]);f.cellLabelChanged(l,f.convertValueToString(n));l.style=mxUtils.setStyle(mxUtils.setStyle(n.style,"container","1"),"collapsible","0");n.removeFromParent()}}}function Df(){var f=new Graph;f.setExtendParents(!1);f.setExtendParentsOnAdd(!1);f.setConstrainChildren(!1);f.setHtmlLabels(!0);f.getModel().maintainEdgeParent=!1;return f}function Ld(f,+n,l,e,a,y,d,c){this.nurbsValues=[1,3,0,0,100*(f+l),100-100*(1-(n+e)),0,1,100*(a+d),100-100*(1-(y+c)),0,1]}function Ke(f,n){try{for(var l=[],e=n.BoundingBox.w,a=n.BoundingBox.h,y=0;y<n.Shapes.length;y++){var d=n.Shapes[y],c=d.FillColor,H=d.StrokeColor,I=d.LineWidth,C=d.Points,ba=d.Lines,Q=['<shape strokewidth="inherit"><foreground>'];Q.push("<path>");for(var T=null,W=0;W<ba.length;W++){var fa=ba[W];if(T!=fa.p1){var S=C[fa.p1].x,ha=C[fa.p1].y;S=100*S/e;ha=100*ha/a;S=Math.round(100*S)/100;ha=Math.round(100*+ha)/100;Q.push('<move x="'+S+'" y="'+ha+'"/>')}if(null!=fa.n1){var wa=C[fa.p2].x,ia=C[fa.p2].y,Z=e,ua=a,pa=new Ld(C[fa.p1].x/e,C[fa.p1].y/a,fa.n1.x/e,fa.n1.y/a,C[fa.p2].x/e,C[fa.p2].y/a,fa.n2.x/e,fa.n2.y/a);if(2<=pa.getSize()){pa.getX(0);pa.getY(0);pa.getX(1);pa.getY(1);wa=Math.round(100*wa/Z*100)/100;ia=Math.round(100*ia/ua*100)/100;Z=[];ua=[];for(var ra=[],b=pa.getSize(),na=0;na<b-1;na+=3)Z.push(new mxPoint(pa.getX(na),pa.getY(na))),ua.push(new mxPoint(pa.getX(na+1),pa.getY(na+1))),na<b-2?ra.push(new mxPoint(pa.getX(na++2),pa.getY(na+2))):ra.push(new mxPoint(wa,ia));var Na="";for(na=0;na<Z.length;na++)Na+='<curve x1="'+Z[na].x+'" y1="'+Z[na].y+'" x2="'+ua[na].x+'" y2="'+ua[na].y+'" x3="'+ra[na].x+'" y3="'+ra[na].y+'"/>';var ka=Na}else ka=void 0;Q.push(ka)}else S=C[fa.p2].x,ha=C[fa.p2].y,S=100*S/e,ha=100*ha/a,S=Math.round(100*S)/100,ha=Math.round(100*ha)/100,Q.push('<line x="'+S+'" y="'+ha+'"/>');T=fa.p2}Q.push("</path>");Q.push("<fillstroke/>");Q.push("</foreground></shape>");l.push({shapeStencil:"stencil("+Graph.compress(Q.join(""))++")",FillColor:c,LineColor:H,LineWidth:I})}LucidImporter.stencilsMap[f]={text:n.Text,w:e,h:a,x:n.BoundingBox.x,y:n.BoundingBox.y,stencils:l}}catch(za){console.log("Stencil parsing error:",za)}}function ic(f,n,l,e,a,y,d,c){f=new mxCell("",new mxGeometry(f,n,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;d.insert(f);y=[f];l=l.clone();c.insertEdge(l,!1);f.insertEdge(l,!0);y.push(l);e.push(a.addCell(l,null,null,null,null))}function Ta(f,n,l,e,a,y,d,c,H){f=new mxCell("",new mxGeometry(f,n,0,0),"strokeColor=none;fillColor=none;");+f.vertex=!0;H.insert(f);l=new mxCell("",new mxGeometry(l,e,0,0),"strokeColor=none;fillColor=none;");l.vertex=!0;H.insert(l);c=[l];a=a.clone();f.insertEdge(a,!0);l.insertEdge(a,!1);c.push(a);y.push(d.addCell(a,null,null,null,null))}function Aa(f,n,l,e,a,y){e.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";e.style+=h(e.style,a,y,e);n=k(a);e.vertex=!0;f=new mxCell(n,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE++"=mxgraph.gcp2."+f+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");f.style+=h(f.style,a,y,f,q);f.geometry.relative=!0;f.geometry.offset=new mxPoint(5,-12);f.vertex=!0;e.insert(f)}function Ha(f,n,l,e,a,y,d,c){a="transparent"!=f?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";y.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";y.style+=h(y.style,+d,c,y);y.value=k(d);y.vertex=!0;f=new mxCell(null,new mxGeometry(.5,0,.7*e*n,.7*e*l),a+f+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");f.geometry.relative=!0;f.geometry.offset=new mxPoint(-n*e*.35,10+(1-l)*e*.35);f.vertex=!0;f.style+=h(f.style,d,c,f,q);y.insert(f)}function Pc(f,n){return null!=f&&null!=n&&(n==mxConstants.STYLE_ALIGN+"Global"&&(n=mxConstants.STYLE_ALIGN),f.includes(";"+n+"=")||f.substring(0,n.length+1)==n+"=")?!0:!1}function Md(f,n){function l(e){e=Math.round(parseInt("0x"++e)*n).toString(16);return 1==e.length?"0"+e:e}return"#"+l(f.substr(1,2))+l(f.substr(3,2))+l(f.substr(5,2))}function Ie(f,n,l){var e=t(f),a=e.Properties,y=a.BoundingBox,d=Math.round(.75*y.w),c=Math.round(.75*y.h),H=Math.round(.75*y.x+nc),I=Math.round(.75*y.y+oc);null==f.Class||"GCPInputDatabase"!==f.Class&&"GCPInputRecord"!==f.Class&&"GCPInputPayment"!==f.Class&&"GCPInputGateway"!==f.Class&&"GCPInputLocalCompute"!==f.Class&&"GCPInputBeacon"!==f.Class&&"GCPInputStorage"!==f.Class&&"GCPInputList"!==+f.Class&&"GCPInputStream"!==f.Class&&"GCPInputMobileDevices"!==f.Class&&"GCPInputCircuitBoard"!==f.Class&&"GCPInputLive"!==f.Class&&"GCPInputUsers"!==f.Class&&"GCPInputLaptop"!==f.Class&&"GCPInputApplication"!==f.Class&&"GCPInputLightbulb"!==f.Class&&"GCPInputGame"!==f.Class&&"GCPInputDesktop"!==f.Class&&"GCPInputDesktopAndMobile"!==f.Class&&"GCPInputWebcam"!==f.Class&&"GCPInputSpeaker"!==f.Class&&"GCPInputRetail"!==f.Class&&"GCPInputReport"!==f.Class&&"GCPInputPhone"!==f.Class&&"GCPInputBlank"!==+f.Class||(c+=20);v=new mxCell("",new mxGeometry(H,I,d,c),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=a.ZOrder;var C=null!=f.Class?f.Class:null!=e?e.Class:null;switch(C){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ba=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(ba=!0);var Q=null,T=null,W=k(a),fa=a.Rotation?mxUtils.getSizeForString(W.replace(/\n/g,"<br>"),null,null,Math.abs(d-.125*c)):{width:0,height:0};ba?(Q=new mxCell("",new mxGeometry(d-.125*c,0,+.125*c,c),"shape=curlyBracket;rounded=1;"),T=new mxCell("",new mxGeometry(fa.height,-2*fa.width,d-.125*c,c),"strokeColor=none;fillColor=none;")):(Q=new mxCell("",new mxGeometry(0,0,.125*c,c),"shape=curlyBracket;rounded=1;flipH=1;"),T=new mxCell("",new mxGeometry(.125*c-fa.height,fa.width,d-.125*c,c),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);Q.vertex=!0;v.insert(Q);Q.style+=h(Q.style,a,e,Q);T.vertex=!0;T.value=W;v.insert(T);T.style+=h(T.style,+a,e,T,q);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var S="MainText",ha=null,wa="HeaderFill_",ia="BodyFill_",Z=25,ua=25,pa=0;if(null!=a.Lanes)pa=a.Lanes.length;else if(null!=a.PrimaryLane){var ra=function(Ua){if(Ua)32>Ua?Ua=32:208<Ua&&(Ua=208);else return 0;return.75*Ua};pa=a.PrimaryLane.length;for(var b=c=d=0;b<pa;b++)d+=+a.PrimaryLane[b];for(b=0;b<a.SecondaryLane.length;b++)c+=a.SecondaryLane[b];Z=ra(a.PrimaryPoolTitleHeight);ua=ra(a.PrimaryLaneTitleHeight);d*=.75;c=.75*c+Z+ua;v.geometry.width=d;v.geometry.height=c;S="poolPrimaryTitleKey";wa="PrimaryLaneHeaderFill_";ia="CellFill_0,";ha=a.PrimaryLaneTextAreaIds;if(null==ha)for(ha=[],b=0;b<pa;b++)ha.push("Primary_"+b)}if(0==a.IsPrimaryLaneVertical){a.Rotation=-1.5707963267948966;var na=v.geometry.x,Na=v.geometry.y}var ka=0!=a.Rotation,za=0<C.indexOf("Pool"),R=0==C.indexOf("BPMN"),+sa=null!=a[S];v.style=(za?"swimlane;startSize="+Z+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(ka?"horizontalStack=0;":"");v.style+=h(v.style,a,e,v);sa&&(v.value=k(a[S]),v.style+=(q?"overflow=block;blockSpacing=1;fontSize=13;"+ab:A(a[S])+L(a[S])+N(a[S])+X(a[S])+xa(a[S],v)+Ka(a[S])+Va(a[S])+Fa(a[S])+Ca(a[S]))+Ga(a[S])+qa(a[S]));for(var da=0,ea=[],Db="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="++ua+";dropTarget=0;rounded=0;"+(ka?"horizontal=0;":"")+(R?"swimlaneLine=0;fillColor=none;":""),M=a.Rotation=0;M<pa;M++){if(null==ha){var lb=parseFloat(a.Lanes[M].p);b=parseInt(a.Lanes[M].tid)||M;var Ea="Lane_"+b}else lb=.75*a.PrimaryLane[M]/d,b=M,Ea=ha[M];var fc=d*da,lc=za?Z:0;ea.push(new mxCell("",ka?new mxGeometry(lc,fc,c-lc,d*lb):new mxGeometry(fc,lc,d*lb,c-lc),Db));ea[M].vertex=!0;v.insert(ea[M]);ea[M].value=k(a[Ea]);ea[M].style+=h(ea[M].style,a,e,ea[M],q)+(q?"fontSize=13;":A(a[Ea])+L(a[Ea])+X(a[Ea])++xa(a[Ea],ea[M])+Ka(a[Ea])+Va(a[Ea])+Fa(a[Ea])+Ca(a[Ea]))+Ga(a[Ea])+qa(a[Ea])+Gd(a[wa+b])+Hd(a[ia+b]);da+=lb}null!=na&&(v.geometry.x=na,v.geometry.y=Na);break;case "UMLMultidimensionalSwimlane":var tb=0,Fb=0,yb=null,Ob=null;if(null!=a.Rows&&null!=a.Columns){tb=a.Rows.length;Fb=a.Columns.length;var Ia=.75*a.TitleHeight||25,eb=.75*a.TitleWidth||25}else if(null!=a.PrimaryLane&&null!=a.SecondaryLane){tb=a.SecondaryLane.length;Fb=a.PrimaryLane.length;eb=.75*a.SecondaryLaneTitleHeight||25;Ia=.75*a.PrimaryLaneTitleHeight||+25;for(b=c=d=0;b<tb;b++)c+=a.SecondaryLane[b];for(b=0;b<Fb;b++)d+=a.PrimaryLane[b];d=.75*d+eb;c=.75*c+Ia;v.geometry.width=d;v.geometry.height=c;yb=a.SecondaryLaneTextAreaIds;Ob=a.PrimaryLaneTextAreaIds}v.style="group;";var Fc=new mxCell("",new mxGeometry(0,Ia,d,c-Ia),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Fc.vertex=!0;var wc=new mxCell("",new mxGeometry(eb,0,d-eb,c),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");+wc.vertex=!0;v.insert(Fc);v.insert(wc);I=0;var xc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+eb+";";for(M=0;M<tb;M++){if(null==yb){var Nd=.75*parseInt(a.Rows[M].height);b=parseInt(a.Rows[M].id)||M;var Gb="Row_"+b}else Nd=.75*a.SecondaryLane[M],Gb=yb[M];var yc=new mxCell("",new mxGeometry(0,I,d,Nd),xc);I+=Nd;yc.vertex=!0;Fc.insert(yc);yc.value=k(a[Gb]);yc.style+=h(yc.style,a,e,yc,q)+(q?"fontSize=13;":A(a[Gb])+L(a[Gb])++X(a[Gb])+xa(a[Gb],yc)+Ka(a[Gb])+Va(a[Gb])+Fa(a[Gb])+Ca(a[Gb]))+Ga(a[Gb])+qa(a[Gb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Ia+";";for(M=H=0;M<Fb;M++){if(null==Ob){var Qc=.75*parseInt(a.Columns[M].width);b=parseInt(a.Columns[M].id)||M;var Hb="Column_"+b}else Qc=.75*a.PrimaryLane[M],Hb=Ob[M];var zc=new mxCell("",new mxGeometry(H,0,Qc,c),Ef);H+=Qc;zc.vertex=!0;wc.insert(zc);zc.value=k(a[Hb]);zc.style+=h(zc.style,a,e,zc,q)+(q?+"fontSize=13;":A(a[Hb])+L(a[Hb])+X(a[Hb])+xa(a[Hb],zc)+Ka(a[Hb])+Va(a[Hb])+Fa(a[Hb])+Ca(a[Hb]))+Ga(a[Hb])+qa(a[Hb])}break;case "UMLStateBlock":if(0==a.Composite)v.style="rounded=1;arcSize=20",v.value=k(a.State,!0),v.style+=h(v.style,a,e,v,q);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0;";v.value=k(a.State,!0);v.style+=h(v.style,a,e,v,q);v.style+=ta(a,e).replace("fillColor",+"swimlaneFillColor");var mb=new mxCell("",new mxGeometry(0,25,d,c-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");mb.value=k(a.Action,!0);mb.style+=h(mb.style,a,e,mb,q);mb.vertex=!0;v.insert(mb)}break;case "GSDFDProcessBlock":var de=Math.round(.75*a.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+de;v.value=k(a.Number,!0);v.style+=h(v.style,a,e,v,q);v.style+=ta(a,e).replace("fillColor","swimlaneFillColor");mb=new mxCell("",new mxGeometry(0,+de,d,c-de),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");mb.value=k(a.Text,!0);mb.style+=h(mb.style,a,e,mb,q);mb.vertex=!0;v.insert(mb);break;case "AndroidDevice":if(null!=a.AndroidDeviceName){var bb=mc(a,e,v);v.style="fillColor=#000000;strokeColor=#000000;";var pc=null,Rc=null,Sc=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName||"custom"==a.AndroidDeviceName&&"Tablet"==a.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",pc=new mxCell("",new mxGeometry(.112,+.077,.77*d,.85*c),bb),a.KeyboardShown&&(Rc=new mxCell("",new mxGeometry(.112,.727,.77*d,.2*c),"shape=mxgraph.android.keyboard;"+bb)),a.FullScreen||(Sc=new mxCell("",new mxGeometry(.112,.077,.77*d,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*c+";"+bb));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName||"custom"==a.AndroidDeviceName&&"Phone"==a.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",pc=new mxCell("",+new mxGeometry(.04,.092,.92*d,.816*c),bb),a.KeyboardShown&&(Rc=new mxCell("",new mxGeometry(.04,.708,.92*d,.2*c),"shape=mxgraph.android.keyboard;"+bb)),a.FullScreen||(Sc=new mxCell("",new mxGeometry(.04,.092,.92*d,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*c+";"+bb));pc.vertex=!0;pc.geometry.relative=!0;v.insert(pc);"Dark"==a.Scheme?pc.style+="fillColor=#111111;":"Light"==a.Scheme&&(pc.style+="fillColor=#ffffff;");null!=Rc&&(Rc.vertex=+!0,Rc.geometry.relative=!0,v.insert(Rc));null!=Sc&&(Sc.vertex=!0,Sc.geometry.relative=!0,v.insert(Sc))}v.style+=h(v.style,a,e,v);break;case "AndroidAlertDialog":var Pb=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Pb.vertex=!0;v.insert(Pb);var ya=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");ya.vertex=!0;v.insert(ya);var id=new mxCell("",new mxGeometry(0,30,d,c-30),"strokeColor=none;fillColor=none;verticalAlign=top;");id.vertex=+!0;v.insert(id);var Ya=new mxCell("",new mxGeometry(0,c-25,.5*d,25),"fillColor=none;");Ya.vertex=!0;v.insert(Ya);var Za=new mxCell("",new mxGeometry(.5*d,c-25,.5*d,25),"fillColor=none;");Za.vertex=!0;v.insert(Za);Pb.value=k(a.DialogTitle);Pb.style+=p(a.DialogTitle,q);id.value=k(a.DialogText);id.style+=p(a.DialogText,q);Ya.value=k(a.Button_0);Ya.style+=p(a.Button_0,q);Za.value=k(a.Button_1);Za.style+=p(a.Button_1,q);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",Ya.style+=+"strokeColor=#353535;",Za.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",Ya.style+="strokeColor=#E2E2E2;",Za.style+="strokeColor=#E2E2E2;");v.style+=h(v.style,a,e,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":Pb=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Pb.vertex=!0;v.insert(Pb);Pb.value=k(a.DialogTitle);Pb.style+=p(a.DialogTitle,q);ya=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");+ya.vertex=!0;v.insert(ya);Ya=new mxCell("",new mxGeometry(0,c-25,.5*d,25),"fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=k(a.Button_0);Ya.style+=p(a.Button_0,q);Za=new mxCell("",new mxGeometry(.5*d,c-25,.5*d,25),"fillColor=none;");Za.vertex=!0;v.insert(Za);Za.value=k(a.Button_1);Za.style+=p(a.Button_1,q);var Tc=new mxCell("",new mxGeometry(.5*d-4,41,8,4),"shape=triangle;direction=north;");Tc.vertex=!0;v.insert(Tc);var Uc=new mxCell("",new mxGeometry(.25*d-4,41,8,4),"shape=triangle;direction=north;");+Uc.vertex=!0;v.insert(Uc);var Vc=new mxCell("",new mxGeometry(.75*d-4,41,8,4),"shape=triangle;direction=north;");Vc.vertex=!0;v.insert(Vc);var jd=new mxCell("",new mxGeometry(.375*d,50,.2*d,15),"strokeColor=none;fillColor=none;");jd.vertex=!0;v.insert(jd);jd.value=k(a.Label_1);jd.style+=p(a.Label_1,q);var kd=new mxCell("",new mxGeometry(.125*d,50,.2*d,15),"strokeColor=none;fillColor=none;");kd.vertex=!0;v.insert(kd);kd.value=k(a.Label_0);kd.style+=p(a.Label_0,q);var Wc=null;"AndroidDateDialog"==f.Class&&+(Wc=new mxCell("",new mxGeometry(.625*d,50,.2*d,15),"strokeColor=none;fillColor=none;"),Wc.vertex=!0,v.insert(Wc),Wc.value=k(a.Label_2),Wc.style+=p(a.Label_2,q));var nb=new mxCell("",new mxGeometry(.43*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");nb.vertex=!0;v.insert(nb);var ob=new mxCell("",new mxGeometry(.18*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");ob.vertex=!0;v.insert(ob);var Le=new mxCell("",new mxGeometry(.68*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");Le.vertex=!0;v.insert(Le);+var ld=new mxCell("",new mxGeometry(.375*d,65,.2*d,15),"strokeColor=none;fillColor=none;");ld.vertex=!0;v.insert(ld);ld.value=k(a.Label_4);ld.style+=p(a.Label_4,q);var Xc=null;"AndroidTimeDialog"==f.Class&&(Xc=new mxCell("",new mxGeometry(.3*d,65,.1*d,15),"strokeColor=none;fillColor=none;"),Xc.vertex=!0,v.insert(Xc),Xc.value=k(a.Label_Colon),Xc.style+=p(a.Label_Colon,q));var md=new mxCell("",new mxGeometry(.125*d,65,.2*d,15),"strokeColor=none;fillColor=none;");md.vertex=!0;v.insert(md);md.value=k(a.Label_3);+md.style+=p(a.Label_3,q);var nd=new mxCell("",new mxGeometry(.625*d,65,.2*d,15),"strokeColor=none;fillColor=none;");nd.vertex=!0;v.insert(nd);nd.value=k(a.Label_5);nd.style+=p(a.Label_5,q);var Me=new mxCell("",new mxGeometry(.43*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var Ne=new mxCell("",new mxGeometry(.18*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.68*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");+Oe.vertex=!0;v.insert(Oe);var od=new mxCell("",new mxGeometry(.375*d,80,.2*d,15),"strokeColor=none;fillColor=none;");od.vertex=!0;v.insert(od);od.value=k(a.Label_7);od.style+=p(a.Label_7,q);var pd=new mxCell("",new mxGeometry(.125*d,80,.2*d,15),"strokeColor=none;fillColor=none;");pd.vertex=!0;v.insert(pd);pd.value=k(a.Label_6);pd.style+=p(a.Label_6,q);var qd=new mxCell("",new mxGeometry(.625*d,80,.2*d,15),"strokeColor=none;fillColor=none;");qd.vertex=!0;v.insert(qd);qd.value=k(a.Label_8);qd.style+=+p(a.Label_8,q);var Yc=new mxCell("",new mxGeometry(.5*d-4,99,8,4),"shape=triangle;direction=south;");Yc.vertex=!0;v.insert(Yc);var Zc=new mxCell("",new mxGeometry(.25*d-4,99,8,4),"shape=triangle;direction=south;");Zc.vertex=!0;v.insert(Zc);var $c=new mxCell("",new mxGeometry(.75*d-4,99,8,4),"shape=triangle;direction=south;");$c.vertex=!0;v.insert($c);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",Ya.style+="strokeColor=#353535;",Za.style+="strokeColor=#353535;",Tc.style+=+"strokeColor=none;fillColor=#7E7E7E;",Uc.style+="strokeColor=none;fillColor=#7E7E7E;",Vc.style+="strokeColor=none;fillColor=#7E7E7E;",Yc.style+="strokeColor=none;fillColor=#7E7E7E;",Zc.style+="strokeColor=none;fillColor=#7E7E7E;",$c.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",Ya.style+="strokeColor=#E2E2E2;",Za.style+="strokeColor=#E2E2E2;",Tc.style+="strokeColor=none;fillColor=#939393;",Uc.style+="strokeColor=none;fillColor=#939393;",Vc.style+=+"strokeColor=none;fillColor=#939393;",Yc.style+="strokeColor=none;fillColor=#939393;",Zc.style+="strokeColor=none;fillColor=#939393;",$c.style+="strokeColor=none;fillColor=#939393;");v.style+=h(v.style,a,e,v);break;case "AndroidListItems":var pb=c,qc=0;if(a.ShowHeader){qc=8;var Gc=new mxCell("",new mxGeometry(0,0,d,qc),"strokeColor=none;fillColor=none;");Gc.vertex=!0;v.insert(Gc);Gc.value=k(a.Header);Gc.style+=p(a.Header,q);pb-=qc;var Pe=new mxCell("",new mxGeometry(0,qc-2,d,4),"shape=line;strokeColor=#999999;");+Pe.vertex=!0;v.insert(Pe)}var Qb=parseInt(a.Items);0<Qb&&(pb/=Qb);var F=[];ya=[];for(b=0;b<Qb;b++)F[b]=new mxCell("",new mxGeometry(0,qc+b*pb,d,pb),"strokeColor=none;fillColor=none;"),F[b].vertex=!0,v.insert(F[b]),F[b].value=k(a["Item_"+b]),F[b].style+=p(a["Item_"+b],q),0<b&&(ya[b]=new mxCell("",new mxGeometry(0,qc+b*pb-2,d,4),"shape=line;"),ya[b].vertex=!0,v.insert(ya[b]),ya[b].style="Dark"==a.Scheme?ya[b].style+"strokeColor=#ffffff;":ya[b].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?+v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=h(v.style,a,e,v);break;case "AndroidTabs":var Rb=parseInt(a.Tabs),ub=d;0<Rb&&(ub/=Rb);var Ba=[];ya=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor=none;fillColor=none;"),Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=p(a["Tab_"+b],q),0<b&&(ya[b]=new mxCell("",new mxGeometry(b*ub-2,.2*c,4,.6*c),"shape=line;direction=north;"),ya[b].vertex=!0,+v.insert(ya[b]),ya[b].style="Dark"==a.Scheme?ya[b].style+"strokeColor=#484848;":ya[b].style+"strokeColor=#CCCCCC;");var Qe=new mxCell("",new mxGeometry(a.Selected*ub+2,c-3,ub-4,3),"strokeColor=none;fillColor=#33B5E5;");Qe.vertex=!0;v.insert(Qe);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=h(v.style,a,e,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(H),Math.round(I+.25*c),Math.round(d),Math.round(.5*+c)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var rd=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*c)),"strokeColor=none;fillColor=#33B5E5;");rd.vertex=!0;v.insert(rd);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=h(v.style,a,e,v);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;";v.style+=h(v.style,a,e,v);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+=p(a.Label,q);v.style+=h(v.style,a,e,v,q);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 rc=null;rc=a.HighlightTop?new mxCell("",new mxGeometry(0,0,d,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,c-2,d,2),"strokeColor=none;");rc.vertex=!0;v.insert(rc);switch(a.HighlightColor){case "Blue":rc.style+="fillColor=#33B5E5;";break;case "Dark Gray":rc.style+=+"fillColor=#B0B0B0;";break;case "White":rc.style+="fillColor=#ffffff;"}}if(a.VlignShow){var ad=new mxCell("",new mxGeometry(20,5,2,c-10),"shape=line;direction=north;");ad.vertex=!0;v.insert(ad);switch(a.VlignColor){case "Blue":ad.style+="strokeColor=#244C5A;";break;case "White":ad.style+="strokeColor=#ffffff;"}}v.style+=h(v.style,a,e,v);break;case "AndroidButton":v.value=k(a.Label);v.style+=p(a.Label,q)+"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;";v.style+=h(v.style,a,e,v);break;case "AndroidTextBox":v.value=k(a.Label);v.style+=p(a.Label,q);var sd=new mxCell("",new mxGeometry(2,c-6,d-4,4),"shape=partialRectangle;top=0;fillColor=none;");sd.vertex=!0;v.insert(sd);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";sd.style=a.TextFocused?sd.style+"strokeColor=#33B5E5;":sd.style+"strokeColor=#A9A9A9;";v.style+=h(v.style,a,e,v);+break;case "AndroidRadioButton":var Hc=null;a.Checked&&(Hc=new mxCell("",new mxGeometry(.15*d,.15*c,.7*d,.7*c),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Hc.vertex=!0,v.insert(Hc));"Dark"==a.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",a.Checked?(Hc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",a.Checked&&+(Hc.style+="strokeColor=#999999;"));v.style+=h(v.style,a,e,v);break;case "AndroidCheckBox":var ee=null;a.Checked&&(ee=new mxCell("",new mxGeometry(.25*d,.05*-c,d,.8*c),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),ee.vertex=!0,v.insert(ee));v.style="Dark"==a.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=h(v.style,a,e,v);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;";v.style+=h(v.style,a,e,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";v.style+=h(v.style,a,e,v);break;case "iOSSegmentedControl":Rb=parseInt(a.Tabs);ub=d;v.style+="strokeColor=none;fillColor=none;";+0<Rb&&(ub/=Rb);Ba=[];ya=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor="+a.FillColor+";"),Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=p(a["Tab_"+b],q),Ba[b].style=a.Selected==b?Ba[b].style+ta(a,e):Ba[b].style+"fillColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";v.style+=h(v.style,a,e,v);break;case "iOSProgressBar":v=+new mxCell("",new mxGeometry(Math.round(H),Math.round(I+.25*c),Math.round(d),Math.round(.5*c)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;rd=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*c)),"strokeColor=none;"+ta(a,e));rd.vertex=!0;v.insert(rd);v.style+=h(v.style,a,e,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=h(v.style,a,e,v);break;case "iOSStatusBar":v.style+=+"shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var ja=new mxCell(k(a.Text),new mxGeometry(.35*d,0,.3*d,c),"strokeColor=none;fillColor=none;");ja.vertex=!0;v.insert(ja);ja.style+=p(a.Text,q);var qb=new mxCell(k(a.Carrier),new mxGeometry(.09*d,0,.2*d,c),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.style+=p(a.Carrier,q);v.style+=h(v.style,a,e,v);break;case "iOSSearchBar":v.value=k(a.Search);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v,q)+p(a.Search,q);var oa=new mxCell("",+new mxGeometry(.3*d,.3*c,.4*c,.4*c),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");oa.vertex=!0;v.insert(oa);break;case "iOSNavBar":v.value=k(a.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+p(a.Title,q);v.style+=h(v.style,a,e,v,q);ja=new mxCell(k(a.LeftText),new mxGeometry(.03*d,0,.3*d,c),"strokeColor=none;fillColor=none;");ja.vertex=!0;v.insert(ja);ja.style+=p(a.LeftText,q);qb=new mxCell(k(a.RightText),new mxGeometry(.65*d,0,.3*+d,c),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.style+=p(a.RightText,q);oa=new mxCell("",new mxGeometry(.02*d,.2*c,.3*c,.5*c),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");oa.vertex=!0;v.insert(oa);break;case "iOSTabs":Rb=parseInt(a.Tabs);ub=d;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=h(v.style,a,e,v);0<Rb&&(ub/=Rb);Ba=[];ya=[];for(b=0;b<Rb;b++)Ba[b]=new mxCell("",new mxGeometry(b*ub,0,ub,c),"strokeColor=none;"),+Ba[b].vertex=!0,v.insert(Ba[b]),Ba[b].value=k(a["Tab_"+b]),Ba[b].style+=q?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+ab:A(a["Tab_"+b])+N(a["Tab_"+b])+L(a["Tab_"+b])+X(a["Tab_"+b])+xa(a["Tab_"+b])+Ka(a["Tab_"+b])+Va(a["Tab_"+b])+Fa(a["Tab_"+b])+Ca(a["Tab_"+b])+Ga(a["Tab_"+b]),Ba[b].style+="verticalAlign=bottom;",Ba[b].style=a.Selected==b?Ba[b].style+"fillColor=#BBBBBB;":Ba[b].style+"fillColor=none;";break;case "iOSDatePicker":var Sb=new mxCell("",new mxGeometry(0,0,.5*d,.2*c),"strokeColor=none;fillColor=none;");+Sb.vertex=!0;v.insert(Sb);Sb.value=k(a.Option11);Sb.style+=p(a.Option11,q);var Tb=new mxCell("",new mxGeometry(.5*d,0,.15*d,.2*c),"strokeColor=none;fillColor=none;");Tb.vertex=!0;v.insert(Tb);Tb.value=k(a.Option21);Tb.style+=p(a.Option21,q);var Ub=new mxCell("",new mxGeometry(.65*d,0,.15*d,.2*c),"strokeColor=none;fillColor=none;");Ub.vertex=!0;v.insert(Ub);Ub.value=k(a.Option31);Ub.style+=p(a.Option31,q);var Vb=new mxCell("",new mxGeometry(0,.2*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");Vb.vertex=+!0;v.insert(Vb);Vb.value=k(a.Option12);Vb.style+=p(a.Option12,q);var Wb=new mxCell("",new mxGeometry(.5*d,.2*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Wb.vertex=!0;v.insert(Wb);Wb.value=k(a.Option22);Wb.style+=p(a.Option22,q);var Xb=new mxCell("",new mxGeometry(.65*d,.2*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Xb.vertex=!0;v.insert(Xb);Xb.value=k(a.Option32);Xb.style+=p(a.Option32,q);var fb=new mxCell("",new mxGeometry(0,.4*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=+!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);var gb=new mxCell("",new mxGeometry(.5*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);var Yb=new mxCell("",new mxGeometry(.65*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Yb.vertex=!0;v.insert(Yb);Yb.value=k(a.Option33);Yb.style+=p(a.Option33,q);var hb=new mxCell("",new mxGeometry(.8*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=+!0;v.insert(hb);hb.value=k(a.Option43);hb.style+=p(a.Option43,q);var ib=new mxCell("",new mxGeometry(0,.6*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);var Zb=new mxCell("",new mxGeometry(.5*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");Zb.vertex=!0;v.insert(Zb);Zb.value=k(a.Option24);Zb.style+=p(a.Option24,q);var $b=new mxCell("",new mxGeometry(.65*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");$b.vertex=+!0;v.insert($b);$b.value=k(a.Option34);$b.style+=p(a.Option34,q);var ac=new mxCell("",new mxGeometry(.8*d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");ac.vertex=!0;v.insert(ac);ac.value=k(a.Option44);ac.style+=p(a.Option44,q);var jb=new mxCell("",new mxGeometry(0,.8*c,.5*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);var bc=new mxCell("",new mxGeometry(.5*d,.8*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");bc.vertex=+!0;v.insert(bc);bc.value=k(a.Option25);bc.style+=p(a.Option25,q);var cc=new mxCell("",new mxGeometry(.65*d,.8*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");cc.vertex=!0;v.insert(cc);cc.value=k(a.Option35);cc.style+=p(a.Option35,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,+v);break;case "iOSTimePicker":Sb=new mxCell("",new mxGeometry(0,0,.25*d,.2*c),"strokeColor=none;fillColor=none;");Sb.vertex=!0;v.insert(Sb);Sb.value=k(a.Option11);Sb.style+=p(a.Option11,q);Tb=new mxCell("",new mxGeometry(.25*d,0,.3*d,.2*c),"strokeColor=none;fillColor=none;");Tb.vertex=!0;v.insert(Tb);Tb.value=k(a.Option21);Tb.style+=p(a.Option21,q);Vb=new mxCell("",new mxGeometry(0,.2*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");Vb.vertex=!0;v.insert(Vb);Vb.value=k(a.Option12);Vb.style+=p(a.Option12,+q);Wb=new mxCell("",new mxGeometry(.25*d,.2*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");Wb.vertex=!0;v.insert(Wb);Wb.value=k(a.Option22);Wb.style+=p(a.Option22,q);fb=new mxCell("",new mxGeometry(0,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);gb=new mxCell("",new mxGeometry(.25*d,.4*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);hb=new mxCell("",+new mxGeometry(.7*d,.4*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=!0;v.insert(hb);hb.value=k(a.Option33);hb.style+=p(a.Option33,q);ib=new mxCell("",new mxGeometry(0,.6*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);Zb=new mxCell("",new mxGeometry(.25*d,.6*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");Zb.vertex=!0;v.insert(Zb);Zb.value=k(a.Option24);Zb.style+=p(a.Option24,q);ac=new mxCell("",new mxGeometry(.7*+d,.6*c,.15*d,.2*c),"strokeColor=none;fillColor=none;");ac.vertex=!0;v.insert(ac);ac.value=k(a.Option34);ac.style+=p(a.Option34,q);jb=new mxCell("",new mxGeometry(0,.8*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);bc=new mxCell("",new mxGeometry(.25*d,.8*c,.3*d,.2*c),"strokeColor=none;fillColor=none;");bc.vertex=!0;v.insert(bc);bc.value=k(a.Option25);bc.style+=p(a.Option25,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),+"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSCountdownPicker":Ub=new mxCell("",new mxGeometry(.45*d,0,.2*d,.2*c),"strokeColor=none;fillColor=none;");Ub.vertex=!0;v.insert(Ub);Ub.value=k(a.Option31);Ub.style+=p(a.Option31,q);Xb=new mxCell("",new mxGeometry(.45*d,.2*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");+Xb.vertex=!0;v.insert(Xb);Xb.value=k(a.Option32);Xb.style+=p(a.Option32,q);fb=new mxCell("",new mxGeometry(0,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");fb.vertex=!0;v.insert(fb);fb.value=k(a.Option13);fb.style+=p(a.Option13,q);gb=new mxCell("",new mxGeometry(.2*d,.4*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=k(a.Option23);gb.style+=p(a.Option23,q);Yb=new mxCell("",new mxGeometry(.45*d,.4*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");Yb.vertex=+!0;v.insert(Yb);Yb.value=k(a.Option33);Yb.style+=p(a.Option33,q);hb=new mxCell("",new mxGeometry(.6*d,.4*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");hb.vertex=!0;v.insert(hb);hb.value=k(a.Option43);hb.style+=p(a.Option43,q);ib=new mxCell("",new mxGeometry(0,.6*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);ib.value=k(a.Option14);ib.style+=p(a.Option14,q);$b=new mxCell("",new mxGeometry(.45*d,.6*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");$b.vertex=!0;v.insert($b);+$b.value=k(a.Option34);$b.style+=p(a.Option34,q);jb=new mxCell("",new mxGeometry(0,.8*c,.25*d,.2*c),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=k(a.Option15);jb.style+=p(a.Option15,q);cc=new mxCell("",new mxGeometry(.45*d,.8*c,.2*d,.2*c),"strokeColor=none;fillColor=none;");cc.vertex=!0;v.insert(cc);cc.value=k(a.Option35);cc.style+=p(a.Option35,q);nb=new mxCell("",new mxGeometry(0,.4*c-2,d,4),"shape=line;strokeColor=#888888;");nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(0,+.6*c-2,d,4),"shape=line;strokeColor=#888888;");ob.vertex=!0;v.insert(ob);v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);break;case "iOSBasicCell":v.value=k(a.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*a.SeparatorInset+";";v.style+=(q?"fontSize=13;":A(a.text)+L(a.text)+X(a.text))+qa(a.text);v.style+=h(v.style,a,e,v,q);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*+d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);var La=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,+.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.75*a.SeparatorInset+";";v.value=k(a.subtext);v.style+=+q?"fontSize=13;":A(a.subtext)+L(a.subtext)+X(a.subtext);v.style+=h(v.style,a,e,v,q);var Qa=new mxCell("",new mxGeometry(0,.4*c,d,.6*c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.75*a.SeparatorInset+";");Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");+oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");+La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.75*a.SeparatorInset+";";v.value=k(a.subtext);v.style+=q?"fontSize=13;":A(a.subtext)+L(a.subtext)+X(a.subtext);v.style+=h(v.style,+a,e,v,q);Qa=null;switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);Qa=new mxCell("",new mxGeometry(.55*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*+d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);Qa=new mxCell("",new mxGeometry(.45*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);Qa=new mxCell("",new mxGeometry(.52*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");+break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");oa.vertex=!0;v.insert(oa);Qa=new mxCell("",new mxGeometry(.55*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:Qa=new mxCell("",new mxGeometry(.65*d,0,.3*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;")}Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)++L(a.text)+X(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=h(v.style,a,e,v);var Ib=new mxCell("",new mxGeometry(0,0,.25*d,c),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ib.vertex=!0;v.insert(Ib);Ib.value=k(a.subtext);Ib.style+=q?"html=1;fontSize=13;"+ab:A(a.subtext)+N(a.subtext)+L(a.subtext)+X(a.subtext);Qa=new mxCell("",new mxGeometry(.25*d,0,.5*d,c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");+Qa.vertex=!0;v.insert(Qa);Qa.value=k(a.text);Qa.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);break;case "DetailDisclosure":oa=new mxCell("",new mxGeometry(.91*d,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");oa.vertex=!0;v.insert(oa);La=new mxCell("",new mxGeometry(.79*+d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "DetailIndicator":La=new mxCell("",new mxGeometry(.87*d,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");La.vertex=!0;v.insert(La);break;case "CheckMark":oa=new mxCell("",new mxGeometry(.89*d,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),oa.vertex=!0,v.insert(oa)}break;case "iOSTableGroupedSectionBreak":v.style+=+"shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";ja=new mxCell("",new mxGeometry(0,0,d,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");ja.vertex=!0;v.insert(ja);ja.value=k(a.text);ja.style+=q?"html=1;fontSize=13;"+ab:A(a.text)+N(a.text)+L(a.text)+X(a.text);qb=new mxCell("",new mxGeometry(0,.6*c,d,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");qb.vertex=!0;v.insert(qb);qb.value=k(a["bottom-text"]);qb.style+=q?"html=1;fontSize=13;"+ab:A(a["bottom-text"])++N(a["bottom-text"])+L(a["bottom-text"])+X(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=k(a.text);v.style+=q?"fontSize=13;":A(a.text)+L(a.text)+X(a.text);v.style+=h(v.style,a,e,v,q);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var g=new mxCell("",new mxGeometry(0,0,.9*d,.9*c),"rounded=1;arcSize=3;part=1;");g.vertex=!0;v.insert(g);g.style+=U(a,e)+ta(a,e)+Xa(a,e,g)+Eb(a)++Ec(a);var m=new mxCell("",new mxGeometry(.1*d,.1*c,.9*d,.9*c),"rounded=1;arcSize=3;part=1;");m.vertex=!0;v.insert(m);m.value=k(a.Text);m.style+=U(a,e)+ta(a,e)+Xa(a,e,m)+Eb(a)+Ec(a)+p(a,q);a.Future&&(g.style+="dashed=1;fixDash=1;",m.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",a.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=k(a.Text),v.style+=U(a,e)+ta(a,e)+Xa(a,e,v)+Eb(a)+Ec(a)+p(a,q);v.style+=h(v.style,a,e,v,q);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":g=+null;switch(f.Class){case "SMHome":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.4*c,.19*c,.8*c,.62*c),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.3*c,.25*c,.6*c,.5*c),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");+break;case "SMVideo":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.3*c,.2*c,.6*c,.6*c),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":g=new mxCell("",new mxGeometry(.5*d-.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 G=ta(a,e);G=""==G?"#ffffff;":G.replace("fillColor=","");g=new mxCell("",new mxGeometry(.5*d-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+G);break;case "SMCloud":g=new mxCell("",new mxGeometry(.5*d-.4*c,.27*c,.8*c,.46*c),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":g=new mxCell("",new mxGeometry(.5*d-.25*c,.15*c,.5*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");+break;case "SMForm":g=new mxCell("",new mxGeometry(.5*d-.4*c,.15*c,.8*c,.7*c),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":g=new mxCell("",new mxGeometry(.5*d-.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":g=new mxCell("",new mxGeometry(.5*d-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}g.vertex=+!0;v.insert(g);g.value=k(a.Text);g.style+=p(a,q);v.style+=h(v.style,a,e,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";g=new mxCell("",new mxGeometry(.1*d,0,.9*d,.9*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(0,.1*c,.9*d,.9*c),"part=1;");m.vertex=!0;v.insert(m);m.value=k(a.Text);m.style+=p(a.Text,q);m.style+=h(m.style,a,e,m,q);break;case "UMLConstraintBlock":var sc=new mxCell("",new mxGeometry(0,0,.25*c,c),"shape=curlyBracket;rounded=1;");+sc.vertex=!0;v.insert(sc);var tc=new mxCell("",new mxGeometry(d-.25*c,0,.25*c,c),"shape=curlyBracket;rounded=1;flipH=1;");tc.vertex=!0;v.insert(tc);T=new mxCell("",new mxGeometry(.25*c,0,d-.5*c,c),"strokeColor=none;fillColor=none;");T.vertex=!0;T.value=k(a);v.insert(T);v.style="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);sc.style+=Xa(a,e,sc);tc.style+=Xa(a,e,tc);T.style+=L(a,T);sc.style+=h(sc.style,a,e,sc);tc.style+=h(tc.style,a,e,tc);T.style+=h(T.style,a,e,T,q);break;case "UMLTextBlock":v.value=+k(a.Text);v.style+="strokeColor=none;"+p(a.Text,q);v.style+=h(v.style,a,e,v,q);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":bb=mc(a,e,v);a.Rotatio=null;var Jb=h(v.style,a,e,v,q);-1==Jb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Jb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Jb);v.style="group;dropTarget=0;pointerEvents=0;"+bb;var Od=.8*d,Ff=d-Od,Ic=new mxCell("",new mxGeometry(.2,0,Od,c),"shape=ellipse;"+Jb);Ic.vertex=!0;Ic.geometry.relative=!0;v.insert(Ic);ya=new mxCell("",new mxGeometry(0,+.5,Ff,1),"line;"+Jb);ya.geometry.relative=!0;ya.vertex=!0;v.insert(ya);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=k(a);v.style="html=1;dropTarget=0;"+h(v.style,a,e,v,q);var cb=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");cb.geometry.relative=!0;cb.geometry.offset=new mxPoint(-20,5);cb.vertex=!0;v.insert(cb);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":bb=mc(a,e,v);a.Rotatio=null;Jb=h(v.style,a,e,v,+q);-1==Jb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Jb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Jb);v.style="group;dropTarget=0;pointerEvents=0;"+bb;var Re=.225*d,Se=.1*d;Od=d-Re-Se;Ic=new mxCell("",new mxGeometry(.225,0,Od,c),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Jb);Ic.vertex=!0;Ic.geometry.relative=!0;v.insert(Ic);nb=new mxCell("",new mxGeometry(0,.5,Re,1),"line;"+Jb);nb.geometry.relative=!0;nb.vertex=!0;v.insert(nb);ob=new mxCell("",new mxGeometry(.9,.5,Se,1),"line;"+Jb);ob.geometry.relative=+!0;ob.vertex=!0;v.insert(ob);break;case "BPMNActivity":v.value=k(a.Text);switch(a.bpmnActivityType){case 1:v.style+=p(a.Text,q);break;case 2:v.style+="shape=ext;double=1;"+p(a.Text,q);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+p(a.Text,q);break;case 4:v.style+="shape=ext;strokeWidth=2;"+p(a.Text,q)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:g=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");g.geometry.offset=new mxPoint(4,7);break;case 2:g=new mxCell("",new mxGeometry(0,+0,19,12),"shape=message;");g.geometry.offset=new mxPoint(4,7);break;case 3:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");g.geometry.offset=new mxPoint(4,5);break;case 4:g=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");g.geometry.offset=new mxPoint(4,7);break;case 5:g=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");g.geometry.offset=new mxPoint(4,7);break;case 6:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");+g.geometry.offset=new mxPoint(4,5);break;case 7:g=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),g.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Jc=ta(a,e);G=U(a,e);G=G.replace("strokeColor","fillColor");Jc=Jc.replace("fillColor","strokeColor");""==G&&(G="fillColor=#000000;");""==Jc&&(Jc="strokeColor=#ffffff;");g.style+=Jc+G+"part=1;"}else g.style+=ta(a,e)+U(a,e)+"part=1;";g.geometry.relative=!0;g.vertex=!0;v.insert(g)}var td=0;0!=a.bpmnActivityMarker1&&td++;+0!=a.bpmnActivityMarker2&&td++;var rb=0;1==td?rb=-7.5:2==td&&(rb=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 2:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 3:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");+g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 4:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 5:g=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");g.geometry.offset=new mxPoint(rb,-17);G=U(a,e);G=G.replace("strokeColor","fillColor");""==G&&(G="fillColor=#000000;");g.style+=G;break;case 6:g=new mxCell("",+new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),g.geometry.offset=new mxPoint(rb,-18),g.style+=ta(a,e)+U(a,e)}g.geometry.relative=!0;g.vertex=!0;v.insert(g)}2==td&&(rb=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 2:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");g.geometry.offset=new mxPoint(rb,+-20);g.style+=ta(a,e)+U(a,e);break;case 3:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 4:g=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");g.geometry.offset=new mxPoint(rb,-20);g.style+=ta(a,e)+U(a,e);break;case 5:g=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");g.geometry.offset=new mxPoint(rb,-17);+G=U(a,e);G=G.replace("strokeColor","fillColor");""==G&&(G="fillColor=#000000;");g.style+=G;break;case 6:g=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),g.geometry.offset=new mxPoint(rb,-18),g.style+=ta(a,e)+U(a,e)}g.geometry.relative=!0;g.vertex=!0;v.insert(g)}v.style+=h(v.style,a,e,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";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;"}v.style+=h(v.style,a,e,v,q);break;case "BPMNChoreography":try{var P=Pa(a.FillColor),fe=Md(P,.75),Ac=A(a.Name).match(/\d+/),Ra=Math.max(mxUtils.getSizeForString(a.Name.t,Ac?Ac[0]:"13",null,d-10).height,24);P="swimlaneFillColor="+fe+";";v.value=+k(a.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+P+"startSize="+Ra+";spacingLeft=3;spacingRight=3;fontStyle=0;"+p(a.Name,q);v.style+=h(v.style,a,e,v,q);var Kb=Ra;Ac=A(a.TaskName).match(/\d+/);var dc=a.TaskHeight?.75*a.TaskHeight:Math.max(mxUtils.getSizeForString(a.TaskName.t,Ac?Ac[0]:"13",null,d-10).height+15,24),uc=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");+uc.value=k(a.TaskName);uc.vertex=!0;v.insert(uc);uc.style+=p(a.TaskName,q);uc.style+=h(uc.style,a,e,uc,q);Kb+=dc;F=[];for(b=0;b<a.Fields;b++){var Pd=a["Participant"+(b+1)];Ac=A(Pd).match(/\d+/);dc=Math.max(mxUtils.getSizeForString(Pd.t,Ac?Ac[0]:"13",null,d-10).height,24);F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");Kb+=dc;F[b].vertex=!0;v.insert(F[b]);F[b].style+=p(Pd,q);F[b].style+=h(F[b].style,a,e,F[b],q);+F[b].value=k(Pd)}}catch(Ua){console.log(Ua)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=k(a.Text);v.style=0==a.bpmnConversationType?v.style+Ec(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(g=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),g.geometry.offset=new mxPoint(-6,-17),g.style+=ta(a,e)+U(a,e),g.geometry.relative=!0,g.vertex=!0,v.insert(g));v.style+=h(v.style,a,e,v,q);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";+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;"}v.style+=h(v.style,a,e,v);+v.value=k(a.Text);v.style+=p(a,q);break;case "BPMNData":v.style+="shape=note;size=14;";switch(a.bpmnDataType){case 0:v.value=k(a.Text);a.Text&&!a.Text.t&&(a.Text.t=" ");break;case 1:g=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");g.geometry.offset=new mxPoint(-6,-15);g.style+=ta(a,e)+U(a,e);g.geometry.relative=!0;g.vertex=!0;v.insert(g);break;case 2:g=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");g.geometry.offset=new mxPoint(3,+3);g.style+=ta(a,e)+U(a,e);g.geometry.relative=!0;g.vertex=!0;v.insert(g);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";ja=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;");ja.geometry.offset=new mxPoint(0,14);ja.geometry.relative=!0;ja.vertex=!0;v.insert(ja);ja.value=k(a.Text);ja.style+=p(a,q);break;case 3:g=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),g.geometry.offset=new mxPoint(3,3),g.style+=U(a,e),g.geometry.relative=+!0,g.vertex=!0,v.insert(g),G=U(a,e),G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),g.style+=G,ja=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;"),ja.geometry.offset=new mxPoint(0,14),ja.geometry.relative=!0,ja.vertex=!0,v.insert(ja),ja.value=k(a.Text),ja.style+=p(a,q)}v.style+=h(v.style,a,e,v);break;case "BPMNBlackPool":v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,d,c),"fillColor=#000000;strokeColor=none;opacity=30;");+g.vertex=!0;v.insert(g);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=new mxCell("",new mxGeometry(0,0,.95*d,.95*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.05*d,.05*c,.95*d,.95*c),"part=1;");m.vertex=!0;v.insert(m);m.value=k(a.Text);m.style+=p(a.Text,q);m.style+=h(m.style,a,e,m,q);break;case "GSDFDDataStoreBlock":v.value=k(a.Text);v.style+="shape=partialRectangle;right=0;"+p(a.Text,q);+v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,.2*d,c),"part=1;");g.vertex=!0;v.insert(g);g.value=k(a.Number);g.style+=p(a.Number,q);g.style+=h(g.style,a,e,g,q);break;case "OrgBlock":var Te="";for(la in a.Active)"Photo"!=la&&a.Active[la]&&(Te+=k(a[la],!0));if(a.Active.Photo){var ge=.4*d;v.style+="spacingLeft="+ge+";imageWidth="+(ge-4)+";imageHeight="+(ge-4)+";imageAlign=left;imageVerticalAlign=top;image="+r(a.Photo)}v.value=Te;v.style+=h(v.style,a,e,v,!0);break;case "DefaultTableBlock":try{tb=+a.RowHeights.length;Fb=a.ColWidths.length;var Qd=[],ud=[];for(b=0;b<tb;b++)Qd[b]=.75*a.RowHeights[b];for(M=0;M<Fb;M++)ud[M]=.75*a.ColWidths[M];v.style="group;dropTarget=0;pointerEvents=0;";var he=a.BandedColor1,ie=a.BandedColor2,Gf=a.BandedRows,Ue=a.BandedCols,Rd=a.HideH,Hf=a.HideV,Ve=a.TextVAlign,We=a.FillColor,Xe=a.StrokeStyle;delete a.StrokeStyle;var If=hc(We,"fillOpacity"),Ye=a.LineColor,Jf=hc(Ye,"strokeOpacity");I=0;var vd={};for(b=0;b<tb;b++){H=0;c=Qd[b];for(M=0;M<Fb;M++){var zb=b+","+M;if(vd[zb])H+=+ud[M];else{var $a=a["CellFill_"+zb],je=a["NoBand_"+zb],Sd=a["CellSize_"+zb],ec=a["Cell_"+zb],Ze=a["Cell_"+zb+"_VAlign"],Kf=a["Cell_"+zb+"_TRotation"],Lf=a["CellBorderWidthH_"+zb],Mf=a["CellBorderColorH_"+zb],Nf=a["CellBorderStrokeStyleH_"+zb],Of=a["CellBorderWidthV_"+zb],Pf=a["CellBorderColorV_"+zb],Qf=a["CellBorderStrokeStyleV_"+zb],$e=Rd?Pf:Mf,af=hc($e,"strokeOpacity"),bf=Rd?Of:Lf,Kc=Rd?Qf:Nf;$a=Gf&&!je?0==b%2?he:Ue&&!je?0==M%2?he:ie:ie:Ue&&!je?0==M%2?he:ie:$a;var Rf=hc($a,"fillOpacity")||If;d=+ud[M];var cf=c;Qc=d;for(var Ab=b+1;Ab<b+Sd.h;Ab++)if(null!=Qd[Ab]){cf+=Qd[Ab];vd[Ab+","+M]=!0;for(var Lc=M+1;Lc<M+Sd.w;Lc++)vd[Ab+","+Lc]=!0}for(Ab=M+1;Ab<M+Sd.w;Ab++)if(null!=ud[Ab])for(Qc+=ud[Ab],vd[b+","+Ab]=!0,Lc=b+1;Lc<b+Sd.h;Lc++)vd[Lc+","+Ab]=!0;var V=new mxCell("",new mxGeometry(H,I,Qc,cf),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Rd?"top=0;bottom=0;":"")+ta({FillColor:$a||We})+Nb(mxConstants.STYLE_STROKECOLOR,Pa($e),Pa(Ye))+(null!=bf?Nb(mxConstants.STYLE_STROKEWIDTH,+Math.round(.75*parseFloat(bf)),"1"):"")+(af?af:Jf)+Rf+"verticalAlign="+(Ze?Ze:Ve?Ve:"middle")+";"+be({StrokeStyle:Kc?Kc:Xe?Xe:"solid"})+(Kf?"horizontal=0;":""));V.vertex=!0;V.value=k(ec);V.style+=h(V.style,a,e,V,q)+(q?"fontSize=13;":A(ec)+L(ec)+X(ec)+xa(ec,V)+Ka(ec)+Va(ec)+Fa(ec)+Ca(ec))+Ga(ec)+qa(ec);v.insert(V);H+=d}}I+=c}}catch(Ua){console.log(Ua)}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(v.style,a,e,v,q);"VSMDedicatedProcessBlock"==f.Class&&(g=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),g.geometry.relative=!0,g.geometry.offset=new mxPoint(4,-13),g.vertex=!0,v.insert(g),g.style+=h(g.style,a,e,g));ja=new mxCell("",new mxGeometry(0,0,d,15),"strokeColor=none;fillColor=none;part=1;");ja.vertex=!0;v.insert(ja);ja.value=k(a.Title);ja.style+=p(a.Title,+q);a.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);ja=new mxCell("",new mxGeometry(.1*d,.3*c,.8*d,.6*c),"part=1;");ja.vertex=!0;v.insert(ja);ja.value=k(a.Resource);ja.style+=p(a.Resource,q);ja.style+=h(ja.style,a,e,ja,q);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.value=k(a.Text);v.style+=+h(v.style,a,e,v,q);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);pb=c;Qb=parseInt(a.Cells);P=h("part=1;",a,e,v);0<Qb&&(pb/=Qb);F=[];ya=[];for(b=1;b<=Qb;b++)F[b]=new mxCell("",new mxGeometry(0,(b-1)*pb,d,pb),P),F[b].vertex=!0,v.insert(F[b]),F[b].value=k(a["cell_"+b]),F[b].style+=p(a["cell_"+b],q);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";+v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);pb=c;Qb=parseInt(a.Cells);P=h("part=1;fillColor=none;",a,e,v);0<Qb&&(pb/=Qb);F=[];Ib=[];for(b=1;b<=Qb;b++)F[b]=new mxCell("",new mxGeometry(.5*d,(b-1)*pb,.5*d,pb),"shape=partialRectangle;left=0;"+P),F[b].vertex=!0,v.insert(F[b]),Ib[b]=new mxCell("",new mxGeometry(0,(b-1)*pb,d,pb),"strokeColor=none;fillColor=none;part=1;"),Ib[b].vertex=!0,v.insert(Ib[b]),Ib[b].value=+k(a["cell_"+b]),Ib[b].style+=p(a["cell_"+b],q);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=h(v.style,a,e,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.17*d,.2*c,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");g.vertex=!0;v.insert(g);+g.style+=h(g.style,a,e,g);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";P="shape=card;size=18;flipH=1;part=1;";g=new mxCell("",new mxGeometry(.1*d,0,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+P);g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.05*d,.1*c,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+P);m.vertex=!0;v.insert(m);m.style+=h(m.style,+a,e,m);var B=new mxCell("",new mxGeometry(0,.2*c,.9*d,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+P);B.vertex=!0;v.insert(B);B.value=k(a.Text);B.style+=h(B.style,a,e,B,q);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=k(a.Title);v.style+=p(a.Title,q);var aa=new mxCell("",new mxGeometry(0,0,d,c),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");aa.edge=!0;aa.geometry.relative=+1;l.addCell(aa,v,null,v,v);break;case "AWSRoundedRectangleContainerBlock2":case "AWSRoundedRectangleContainerBlock":v.style+="strokeColor=none;fillColor=none;";a.Spotfleet?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,35,40),+"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.Beanstalk?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),+m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.EC2?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),m.geometry.relative=+!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.Subnet?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),m.geometry.relative=!0,m.geometry.offset=+new mxPoint(30,0),m.vertex=!0,v.insert(m)):a.VPC?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,+0),m.vertex=!0,v.insert(m)):a.AWS?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):+a.Corporate?(g=new mxCell("",new mxGeometry(0,0,d,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),g.geometry.offset=new mxPoint(0,20),g.geometry.relative=!0,g.vertex=!0,v.insert(g),g.value=k(a.Title),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(30,0),m.vertex=!0,v.insert(m)):+(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=k(a.Title),v.style+=h(v.style,a,e,v,q));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";+v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";V=new mxCell("",new mxGeometry(.25*d,.25*c,.5*d,.5*c),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");V.vertex=!0;v.insert(V);var va=[V];V.style+=ta(a,e);aa=new mxCell("",new mxGeometry(0,0,+0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");aa.geometry.relative=!0;aa.edge=!0;ic(.5*d,0,aa,n,l,va,v,V);ic(.855*d,.145*c,aa,n,l,va,v,V);ic(d,.5*c,aa,n,l,va,v,V);ic(.855*d,.855*c,aa,n,l,va,v,V);ic(.5*d,c,aa,n,l,va,v,V);ic(.145*d,.855*c,aa,n,l,va,v,V);ic(0,.5*c,aa,n,l,va,v,V);ic(.145*d,.145*c,aa,n,l,va,v,V);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";V=new mxCell("",new mxGeometry(0,.5*c-10,d,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");+V.vertex=!0;v.insert(V);va=[V];aa=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");aa.geometry.relative=!0;aa.edge=!0;va=[V];var wd=d/a.NumTopNodes;for(b=0;b<a.NumTopNodes;b++)ic(.5*wd+b*wd,0,aa,n,l,va,v,V);wd=d/a.NumBottomNodes;for(b=0;b<a.NumBottomNodes;b++)ic(.5*wd+b*wd,c,aa,n,l,va,v,V);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=k(a.Title);v.style+=h(v.style,a,e,v,q);a.ToggleCharge&&+(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);"EIMessageChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIDatatypeChannelBlock"==+f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIInvalidMessageChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(.45*-d,0)):"EIDeadLetterChannelBlock"==f.Class?(g=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),g.geometry.offset=+new mxPoint(.45*-d,0)):"EIGuaranteedDeliveryBlock"==f.Class&&(g=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),g.geometry.offset=new mxPoint(-10,-7));g.geometry.relative=!0;g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);aa=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;");aa.geometry.relative=!0;aa.edge=!0;Ta(.15*d,.25*c,.85*d,.25*c,aa,n,l,va,v,V);break;case "EIChannelAdapterBlock":v.style+=+"verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,.07*c,.21*d,.86*c),"fillColor=#FFFF33;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.26*d,.09*c,.2*d,.82*c),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);B=new mxCell("",new mxGeometry(1,.5,.35*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");+B.geometry.relative=!0;B.geometry.offset=new mxPoint(.4*-d,-10);B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);K=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;");K.geometry.relative=!0;K.edge=!0;g.insertEdge(K,!0);m.insertEdge(K,!1);K.style+=U(a,e);n.push(l.addCell(K,null,null,null,null));J=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;");+J.geometry.relative=!0;J.edge=!0;m.insertEdge(J,!0);B.insertEdge(J,!1);n.push(l.addCell(J,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);var xd=a.Messages,+ke=(c-17)/xd;m=[];aa=[];for(b=0;b<xd;b++){var yd=ke*(b+1)-3;m[b]=new mxCell("",new mxGeometry(d-20,yd,20,20),"part=1;");m[b].vertex=!0;v.insert(m[b]);switch(f.Class){case "EIMessageBlock":m[b].value=k(a["message_"+(b+1)]);m.style+=p(a["message_"+(b+1)],q);break;case "EICommandMessageBlock":m[b].value="C";m[b].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":m[b].value="D";m[b].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":m[b].value="E",m[b].style+="fontStyle=1;fontSize=13;"}m[b].style+=+h(m[b].style,a,e,m[b]);aa[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");aa[b].geometry.relative=!0;aa[b].edge=!0;g.insertEdge(aa[b],!1);m[b].insertEdge(aa[b],!0);aa[b].style+=h(aa[b].style,a,e,aa[b]);var Bc=[];Bc.push(new mxPoint(H+8.5,I+yd+10));aa[b].geometry.points=Bc;n.push(l.addCell(aa[b],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=+k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.45*d,.25*c,.3*d,.5*c),"part=1;fillColor=#ffffff");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);aa=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;");aa.geometry.relative=!0;aa.edge=!0;Ta(0,.5*c,.4*d,.5*c,aa,n,l,va,v,V);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=+k(a.Text);v.style+=h(v.style,a,e,v,q);var K=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;");K.geometry.relative=!0;K.edge=!0;Ta(.05*d,.5*c,.85*d,.5*c,K,n,l,va,v,V);var J=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;");J.geometry.relative=!0;J.edge=!0;Ta(.05*d,.5*c,.85*d,.15*c,J,n,l,+va,v,V);var ca=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;");ca.geometry.relative=!0;ca.edge=!0;Ta(.05*d,.5*c,.85*d,.85*c,ca,n,l,va,v,V);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);K=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;");+K.geometry.relative=!0;K.edge=!0;K.style+=U(a,e);Ta(.05*d,.5*c,.95*d,.5*c,K,n,l,va,v,V);J=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;");J.geometry.relative=!0;J.edge=!0;J.style+=U(a,e);Ta(.3*d,.1*c,.3*d,.5*c,J,n,l,va,v,V);ca=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;");+ca.geometry.relative=!0;ca.edge=!0;ca.style+=U(a,e);Ta(.7*d,.1*c,.7*d,.5*c,ca,n,l,va,v,V);var Ja=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;");Ja.geometry.relative=!0;Ja.edge=!0;Ja.style+=U(a,e);Ta(.5*d,.5*c,.5*d,.9*c,Ja,n,l,va,v,V);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,+e,v,q);g=new mxCell("",new mxGeometry(.2*d,.21*c,.16*d,.24*c),"part=1;fillColor=#ffffff;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);K=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;");K.geometry.relative=!0;K.edge=!0;Ta(.45*d,.33*c,.8*d,.33*c,K,n,l,va,v,V);m=new mxCell("",new mxGeometry(.64*d,.55*c,.16*d,.24*c),"part=1;fillColor=#ffffff;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);+J=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;");J.geometry.relative=!0;J.edge=!0;Ta(.55*d,.67*c,.2*d,.67*c,J,n,l,va,v,V);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.1*d,.15*c,.8*d,.7*c),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");g.vertex=!0;v.insert(g);g.style+=+h(g.style,a,e,g);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.04*d,.06*c,.18*d,.28*c),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.2*d,.56*c,.2*d,.32*c),"part=1;");m.vertex=!0;v.insert(m);m.value="A";m.style+="fontStyle=1;fontSize=13;";g.style+=h(g.style,a,e,g);K=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;");K.geometry.relative=!0;K.edge=!0;g.insertEdge(K,!1);m.insertEdge(K,!0);K.style+=h(K.style,a,e,K);Bc=[];Bc.push(new mxPoint(H+.13*d,I+.72*c));K.geometry.points=Bc;n.push(l.addCell(K,null,null,null,null));B=new mxCell("",new mxGeometry(.6*d,.06*c,.18*d,.28*c),"ellipse;fillColor=#808080;part=1;");B.vertex=!0;v.insert(B);B.style+=U(a,e)+Ec(a);B.style+=h(B.style,a,e,B);Y=new mxCell("",new mxGeometry(.76*+d,.56*c,.2*d,.32*c),"part=1;");Y.vertex=!0;v.insert(Y);Y.style+=U(a,e)+Xa(a,e,Y)+Ec(a)+be(a);Y.value="B";Y.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";Y.style+=h(Y.style,a,e,Y);J=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;");J.geometry.relative=!0;J.edge=!0;B.insertEdge(J,!1);Y.insertEdge(J,!0);J.style+=h(J.style,a,e,J);var df=[];df.push(new mxPoint(H+.69*d,I+.72*c));J.geometry.points=df;n.push(l.addCell(J,+null,null,null,null));ca=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");ca.geometry.relative=!0;ca.edge=!0;g.insertEdge(ca,!1);B.insertEdge(ca,!0);ca.style+=h(ca.style,a,e,ca);n.push(l.addCell(ca,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("1",new mxGeometry(.2*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");+g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=new mxCell("2",new mxGeometry(.45*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);B=new mxCell("3",new mxGeometry(.7*d,.4*c,.1*d,.19*c),"fontStyle=1;fillColor=#ffffff;fontSize=13;part=1;");B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);K=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");g.insertEdge(K,!1);m.insertEdge(K,!0);K.geometry.points=+[new mxPoint(H+.375*d,I+.15*c)];K.geometry.relative=!0;K.edge=!0;K.style+=h(K.style,a,e,K);n.push(l.addCell(K,null,null,null,null));J=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");m.insertEdge(J,!1);B.insertEdge(J,!0);J.geometry.points=[new mxPoint(H+.675*d,I+.15*c)];J.geometry.relative=!0;J.edge=!0;J.style+=h(J.style,a,e,J);n.push(l.addCell(J,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";+v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.3*d,.2*c,.4*d,.6*c),"shape=mxgraph.ios7.icons.clock;fillColor=#ffffff;flipH=1;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.38*d,.42*c,.24*d,.16*c),"part=1;fillColor=#aefe7d;");g.vertex=!0;v.insert(g);g.style+=+h(g.style,a,e,g);m=new mxCell("",new mxGeometry(.38*d,0,.24*d,.16*c),"part=1;");m.vertex=!0;v.insert(m);m.style+=h(m.style,a,e,m);B=new mxCell("",new mxGeometry(.76*d,.23*c,.24*d,.16*c),"");B.vertex=!0;v.insert(B);B.style=m.style;var Y=new mxCell("",new mxGeometry(.76*d,.61*c,.24*d,.16*c),"");Y.vertex=!0;v.insert(Y);Y.style=m.style;var Td=new mxCell("",new mxGeometry(.38*d,.84*c,.24*d,.16*c),"");Td.vertex=!0;v.insert(Td);Td.style=m.style;var Ud=new mxCell("",new mxGeometry(0,.61*c,.24*d,.16*c),"");+Ud.vertex=!0;v.insert(Ud);Ud.style=m.style;var Vd=new mxCell("",new mxGeometry(0,.23*c,.24*d,.16*c),"");Vd.vertex=!0;v.insert(Vd);Vd.style=m.style;K=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(K,!1);m.insertEdge(K,!0);K.edge=!0;K.style+=h(K.style,a,e,K);n.push(l.addCell(K,null,null,null,null));J=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(J,!1);B.insertEdge(J,!0);J.edge=!0;J.style+=h(J.style,a,e,J);n.push(l.addCell(J,null,null,null,null));+ca=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(ca,!1);Y.insertEdge(ca,!0);ca.edge=!0;ca.style+=h(ca.style,a,e,ca);n.push(l.addCell(ca,null,null,null,null));Ja=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Ja,!1);Td.insertEdge(Ja,!0);Ja.edge=!0;Ja.style+=h(Ja.style,a,e,Ja);n.push(l.addCell(Ja,null,null,null,null));var Cc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Cc,!1);Ud.insertEdge(Cc,!0);Cc.edge=!0;Cc.style+=+h(Cc.style,a,e,Cc);n.push(l.addCell(Cc,null,null,null,null));var Dc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");g.insertEdge(Dc,!1);Vd.insertEdge(Dc,!0);Dc.edge=!0;Dc.style+=h(Dc.style,a,e,Dc);n.push(l.addCell(Dc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);K=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");+K.geometry.relative=!0;K.edge=!0;Ta(.05*d,.5*c,.6*d,.25*c,K,n,l,va,v,V);J=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");J.geometry.relative=!0;J.edge=!0;Ta(.05*d,.5*c,.6*d,.75*c,J,n,l,va,v,V);g=new mxCell("",new mxGeometry(.7*d,.1*c,.15*d,.32*c),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";+v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.25*d,.25*c,.5*d,.5*c),"shape=mxgraph.eip.control_bus;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);B=new mxCell("",+new mxGeometry(d-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");B.vertex=!0;v.insert(B);B.style+=h(B.style,a,e,B);ca=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");ca.geometry.relative=!0;ca.edge=!0;g.insertEdge(ca,!1);B.insertEdge(ca,!0);ca.style+=h(ca.style,a,e,ca);ca.geometry.points=[new mxPoint(H+8.5,I+40)];n.push(l.addCell(ca,null,null,null,null));Y=new mxCell("",new mxGeometry(d-45,+c-20,20,20),"part=1;");Y.vertex=!0;v.insert(Y);Y.value=k(a.message_0);Y.style+=p(a.message_0,q);Y.style+=h(Y.style,a,e,Y,q);Ja=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Ja.geometry.relative=!0;Ja.edge=!0;g.insertEdge(Ja,!1);Y.insertEdge(Ja,!0);Ja.style+=h(Ja.style,a,e,Ja);Ja.geometry.points=[new mxPoint(H+8.5,I+c-10)];n.push(l.addCell(Ja,null,null,null,null));xd=a.HistoryMessages;ke=(c-75)/xd;m=[];aa=[];for(b=+0;b<xd;b++)yd=ke*(b+1)+30,m[b]=new mxCell("",new mxGeometry(d-20,yd,20,20),"part=1;"),m[b].vertex=!0,m[b].value=k(a["message_"+(b+1)]),m.style+=p(a["message_"+(b+1)],q),v.insert(m[b]),m[b].style+=h(m[b].style,a,e,m[b],q),aa[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),aa[b].geometry.relative=!0,aa[b].edge=!0,B.insertEdge(aa[b],!1),m[b].insertEdge(aa[b],!0),aa[b].style+=h(aa[b].style,a,e,aa[b]),Bc=[],Bc.push(new mxPoint(H++d-30,I+yd+10)),aa[b].geometry.points=Bc,n.push(l.addCell(aa[b],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);v.value="$$"+a.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>a.DoorAngle&&(v.style+="flipV=1;");v.style+=h(v.style,a,e,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=k(a);v.style+=h(v.style,a,e,v,q);v.style=v.style.replace("rotation=180;",+"");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<a.DoorAngle&&(v.style+="flipV=1;");v.style+=h(v.style,a,e,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=new mxCell("",new mxGeometry(0,0,d,.25*c),"part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);m=[];var ef=.02*d,le=(d-2*ef)/a.LightCount,ff=.8*le;for(b=0;b<a.LightCount;b++)m[b]=new mxCell("",new mxGeometry(ef+le*b+(le-ff)/2,.25*c,ff,.75*c),"ellipse;part=1;"),+m[b].vertex=!0,v.insert(m[b]),m[b].style+=h(m[b].style,a,e,m[b]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];var gf=d/a.SinkCount;for(b=0;b<a.SinkCount;b++)g[b]=new mxCell("",new mxGeometry(gf*b,0,gf,c),"part=1;shape=mxgraph.floorplan.sink_2;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var sb=.1*d/a.StallCount;g=new mxCell("",new mxGeometry(0,+0,sb,c),"fillColor=#000000;part=1;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);var Bb=(d-sb)/a.StallCount,me=[],zd=[],Ad=[],Bd=[];G=U(a,e);G=""==G?"#000000;":G.replace("stokreColor=","");var ne="part=1;fillColor="+G;ne+=h(ne,a,e,v);var oe=h("",a,e,v);for(b=0;b<a.StallCount;b++)me[b]=new mxCell("",new mxGeometry((b+1)*Bb,0,sb,c),ne),me[b].vertex=!0,v.insert(me[b]),Ad[b]=new mxCell("",new mxGeometry(sb+b*Bb+.05*(Bb-sb),c-.92*(Bb-sb),.9*(Bb-sb),.92*(Bb-sb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),+Ad[b].vertex=!0,v.insert(Ad[b]),Ad[b].style+=oe,zd[b]=new mxCell("",new mxGeometry(sb+b*Bb+.2*(Bb-sb),0,.6*(Bb-sb),.8*(Bb-sb)),"shape=mxgraph.floorplan.toilet;part=1;"),zd[b].vertex=!0,v.insert(zd[b]),zd[b].style+=oe,Bd[b]=new mxCell("",new mxGeometry(sb+b*Bb,.42*c,.15*(Bb-sb),.12*(Bb-sb)),"part=1;"),Bd[b].vertex=!0,v.insert(Bd[b]),Bd[b].style+=oe;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Wd="edgeStyle=none;endArrow=none;part=1;";G=U(a,e);G=""==G?"#000000;":G.replace("strokeColor=",+"");var Mc="shape=triangle;part=1;fillColor="+G;Mc+=h(Mc,a,e,v);K=new mxCell("",new mxGeometry(0,0,0,0),Wd);K.geometry.relative=!0;K.edge=!0;Ta(0,.5*c,.65*d,.5*c,K,n,l,va,v,V);var O=c/a.numLines;J=[];var Nc=[];for(b=0;b<a.numLines;b++)J[b]=new mxCell("",new mxGeometry(0,0,0,0),Wd),J[b].geometry.relative=!0,J[b].edge=!0,Ta(.65*d,.5*c,.96*d,(b+.5)*O,J[b],n,l,va,v,V),Nc[b]=new mxCell("",new mxGeometry(.95*d,(b+.2)*O,.05*d,.6*O),Mc),Nc[b].vertex=!0,v.insert(Nc[b]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";+Wd="edgeStyle=none;endArrow=none;part=1;";G=U(a,e);G=""==G?"#000000;":G.replace("strokeColor=","");Mc="shape=triangle;part=1;fillColor="+G;Mc+=h(Mc,a,e,v);O=c/a.numLines;J=[];Nc=[];for(b=0;b<a.numLines;b++)J[b]=new mxCell("",new mxGeometry(0,0,0,0),Wd),J[b].geometry.relative=!0,J[b].edge=!0,Ta(0,(b+.5)*O,.96*d,(b+.5)*O,J[b],n,l,va,v,V),Nc[b]=new mxCell("",new mxGeometry(.95*d,(b+.2)*O,.05*d,.6*O),Mc),Nc[b].vertex=!0,v.insert(Nc[b]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";+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;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=h(v.style,a,e,v,q);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";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);");v.style+=h(v.style,+a,e,v,q);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";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;";v.style+=h(v.style,a,e,v,q);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=k(a.Text);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,.2*c,d,.6*c),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");+g.vertex=!0;v.insert(g);g.style+=P;g.style+=h(g.style,a,e,g);P="endSize=4;endArrow=block;endFill=1;";0==a.compressorType?(K=new mxCell("",new mxGeometry(0,0,0,0),""),K.geometry.relative=!0,K.edge=!0,K.style+=P,K.style+=h(K.style,a,e,K),Ta(0,0,0,.2*c,K,n,l,va,v,V),J=new mxCell("",new mxGeometry(0,0,0,0),""),J.geometry.relative=!0,J.edge=!0,J.style+=P,J.style+=h(J.style,a,e,J),Ta(d,.67*c,d,c,J,n,l,va,v,V)):(g.style+="flipH=1;",K=new mxCell("",new mxGeometry(0,0,0,0),""),K.geometry.relative=!0,K.edge=+!0,K.style+=P,K.style+=h(K.style,a,e,K),Ta(0,0,0,.33*c,K,n,l,va,v,V),J=new mxCell("",new mxGeometry(0,0,0,0),""),J.geometry.relative=!0,J.edge=!0,J.style+=P,J.style+=h(J.style,a,e,J),Ta(d,.8*c,d,c,J,n,l,va,v,V));1==a.centerLineType&&(ca=new mxCell("",new mxGeometry(0,0,0,0),""),ca.geometry.relative=!0,ca.edge=!0,ca.style+=P,ca.style+=h(ca.style,a,e,ca),Ta(.2*d,.5*c,.8*d,.5*c,ca,n,l,va,v,V));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=k(a.Text);+v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(.2*d,.2*c,.6*d,.6*c),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");g.vertex=!0;v.insert(g);g.style+=h(g.style,a,e,g);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":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;"}v.style+=h(v.style,a,e,v);"PEIndicator2Block"==f.Class||"PESharedIndicator2Block"==f.Class?(g=new mxCell("",+new mxGeometry(0,0,d,.5*d),"part=1;strokeColor=none;fillColor=none;"),g.vertex=!0,v.insert(g),g.value=k(a.TopText),g.style+=p(a.TopText,q),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,.5*d,d,.5*d),"part=1;strokeColor=none;fillColor=none;")):(g=new mxCell("",new mxGeometry(0,0,d,.5*c),"part=1;strokeColor=none;fillColor=none;"),g.vertex=!0,v.insert(g),g.value=k(a.TopText),g.style+=p(a.TopText,q),g.style+=h(g.style,a,e,g,q),m=new mxCell("",new mxGeometry(0,.5*c,d,.5*c),"part=1;strokeColor=none;fillColor=none;"));+m.vertex=!0;v.insert(m);m.value=k(a.BotText);m.style+=p(a.BotText,q);m.style+=h(m.style,a,e,m,q);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 pe=!1;"PEPoweredValveBlock"==f.Class?1!=a.poweredHandOperated&&(pe=!0):1!=+a.handOperated&&(pe=!0);if(pe){a=t(f).Properties;y=a.BoundingBox;var Sf=y.h;y.h="PEAngleValveBlock"==f.Class||"PEAngleGlobeValveBlock"==f.Class?.7*y.h:.6*y.h;v=new mxCell("",new mxGeometry(Math.round(.75*y.x+nc),Math.round(.75*(y.y+Sf-y.h)+oc),Math.round(.75*y.w),Math.round(.75*y.h)),"");v.vertex=!0;Id(v,f,l)}if("PEPoweredValveBlock"==f.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=h(v.style,a,e,v),1==a.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",+g=new mxCell("",new mxGeometry(.325*d,0,.35*d,.35*c),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),g.vertex=!0,v.insert(g),g.value=k(a.PoweredText),g.style+=(q?"":L(a.PoweredText)+X(a.PoweredText)+xa(a.PoweredText)+Ka(a.PoweredText)+Va(a.PoweredText)+Ca(a.PoweredText)+Ga(a.PoweredText))+"fontSize=6;"+qa(a.PoweredText),g.style+=h(g.style,a,e,g,q)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";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;")}v.style+=h(v.style,a,e,v,q);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,110),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),+Y.geometry.relative=!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v);break;case "UI2WindowBlock":v.value=k(a.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(q?"fontSize=13;":A(a.Title)+L(a.Title)+X(a.Title));1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,30),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Y.geometry.relative=+!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v,q);break;case "UI2DialogBlock":v.value=k(a.Text);v.style+=p(a.Text,q);g=new mxCell("",new mxGeometry(0,0,d,30),"part=1;resizeHeight=0;");g.vertex=!0;v.insert(g);g.value=k(a.Title);g.style+=p(a.Title,q);g.style+=h(g.style,a,e,g,q);m=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");m.geometry.relative=!0;m.geometry.offset=new mxPoint(-25,-10);m.vertex=+!0;g.insert(m);1==a.vScroll&&(B=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;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(-20,30),B.vertex=!0,v.insert(B),v.style+="spacingRight=20;");1==a.hScroll&&(Y=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),+"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Y.geometry.relative=!0,Y.geometry.offset=new mxPoint(0,-20),Y.vertex=!0,v.insert(Y));v.style+=h(v.style,a,e,v);a.Text=null;break;case "UI2AccordionBlock":g=[];O=25;for(b=0;b<=a.Panels-1;b++)g[b]=b<a.Selected-1?new mxCell("",new mxGeometry(0,b*O,d,O),"part=1;fillColor=#000000;fillOpacity=25;"):b==a.Selected-1?+new mxCell("",new mxGeometry(0,b*O,d,O),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,c-(a.Panels-a.Selected)*O+(b-a.Selected)*O,d,O),"part=1;fillColor=#000000;fillOpacity=25;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Panel_"+(b+1)]),g[b].style+=p(a["Panel_"+(b+1)],q),0>g[b].style.indexOf(";align=")&&(g[b].style+="align=left;spacingLeft=5;");var Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",new mxGeometry(1,+0,20,c-a.Selected*O-20-(a.Panels-a.Selected)*O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-a.Selected*O-(a.Panels-a.Selected)*O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,a.Selected*O),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Da,m.style+=h(m.style,a,e,m));1==a.hScroll&&(B=1==a.vScroll?+new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20-(a.Panels-a.Selected)*O),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));Y=1==a.vScroll?new mxCell("",new mxGeometry(0,a.Selected*O,d-20,c-a.Selected*O-20-(a.Panels-a.Selected)*O),"part=1;fillColor=none;strokeColor=none;"):+new mxCell("",new mxGeometry(0,a.Selected*O,d-20,c-a.Selected*O-(a.Panels-a.Selected)*O),"part=1;fillColor=none;strokeColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Content_1);Y.style+=p(a.Content_1,q);!q&&0>Y.style.indexOf(";align=")&&(Y.style+="align=left;spacingLeft=5;");v.style+=h(v.style,a,e,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];O=25;var vb=3,ma=(d+vb)/(a.Tabs+1),Wa=new mxCell("",new mxGeometry(0,O,d,c-O),"part=1;");Wa.vertex=!0;v.insert(Wa);+Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(10+b*ma,0,ma-vb,O),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(10+b*ma,0,ma-vb,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ma-vb,O),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=k(a["Tab_"+(b+1)]),m[b].style+=p(a["Tab_"+(b+1)],q),0>m[b].style.indexOf(";align=")&&+(m[b].style+="align=left;spacingLeft=2;"),m[b].style+=h(m[b].style,a,e,m[b]);Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),m.geometry.relative=!0,m.geometry.offset=+new mxPoint(-20,O),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Da,m.style+=h(m.style,a,e,m));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;+case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];O=25;vb=3;ma=(d+vb)/a.Tabs;Wa=new mxCell("",new mxGeometry(0,O,d,c-O),"part=1;");Wa.vertex=!0;v.insert(Wa);Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(b*ma,0,ma-vb,O),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(b*ma,0,ma-vb,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",+new mxGeometry(0,0,ma-vb,O),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=k(a["Tab_"+(b+1)]),m[b].style+=p(a["Tab_"+(b+1)],q),m[b].style+=h(m[b].style,a,e,m[b],q),0>m[b].style.indexOf(";align=")&&(m[b].style+="align=left;spacingLeft=2;");Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(m=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):+new mxCell("",new mxGeometry(1,0,20,c-O),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,O),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=Da,m.style+=h(m.style,a,e,m));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(0,1,d-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,d,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),+B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";g=[];m=[];vb=3;O=25+vb;ma=80;qc=10;Wa=new mxCell("",new mxGeometry(ma,0,d-ma,c),"part=1;");Wa.vertex=!0;v.insert(Wa);Wa.style+=h(Wa.style,a,e,Wa);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(0,qc+b*O,ma,O-vb),""),m[b].vertex=!0,v.insert(m[b]),m[b].value=k(a["Tab_"+(b++1)]),m[b].style+=p(a["Tab_"+(b+1)],q),m[b].style+=h(m[b].style,a,e,m[b],q)):(g[b]=new mxCell("",new mxGeometry(0,qc+b*O,ma,O-vb),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ma,O-vb),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].value=k(a["Tab_"+(b+1)]),m[b].style+=p(a["Tab_"+(b+1)],q)),0>m[b].style.indexOf(";align=")&&(m[b].style+="align=left;spacingLeft=2;"),m[b].style+=h(m[b].style,a,e,m[b]);+Da=U(a,e);Da=Da.replace("strokeColor","fillColor2");""==Da&&(Da="fillColor2=#000000;");1==a.vScroll&&(m=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;"),m.geometry.relative=!0,m.geometry.offset=new mxPoint(-20,0),m.vertex=!0,v.insert(m),v.style+="spacingRight=20;",m.style+=+Da,m.style+=h(m.style,a,e,m));1==a.hScroll&&(B=1==a.vScroll?new mxCell("",new mxGeometry(ma,1,d-20-ma,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(ma,1,d-ma,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),B.geometry.relative=!0,B.geometry.offset=new mxPoint(0,-20),B.vertex=!0,v.insert(B),B.style+=Da,B.style+=h(B.style,a,e,B));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";O=c/+a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(0,b*O+.5*O-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(G=U(a,e),G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,+6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=G,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";ma=d/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(b*ma,.5*c-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=+p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(G=U(a,e),G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=G,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";O=c/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(0,+b*O+.5*O-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected&&a.Selected==b+1&&(G=U(a,e),G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"ellipse;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=G,m[b].style+=+h(m[b].style,a,e,m[b]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";ma=d/a.Options;g=[];m=[];for(b=0;b<a.Options;b++)g[b]=new mxCell("",new mxGeometry(b*ma,.5*c-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Option_"+(b+1)]),g[b].style+=p(a["Option_"+(b+1)],q),g[b].style+=h(g[b].style,a,e,g[b],q),null!=a.Selected&&a.Selected==b+1&&(G=U(a,e),+G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),m[b]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),m[b].vertex=!0,g[b].insert(m[b]),m[b].style+=G,m[b].style+=h(m[b].style,a,e,m[b]));break;case "UI2SelectBlock":v.style+="shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666";v.value=k(a.Selected);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";+"UI2VSliderBlock"==f.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*a.ScrollVal+";";v.style+=h(v.style,a,e,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";g=new mxCell("",new mxGeometry(0,0,.6*d,c),"part=1;");g.vertex=!0;v.insert(g);g.value=k(a.Date);g.style+=p(a.Date,q);v.style+=h(v.style,a,e,v);G=U(a,e);G=G.replace("strokeColor","fillColor");""==G&&(G="fillColor=#000000;");m=new mxCell("",new mxGeometry(.75*d,0,.25*d,c),"part=1;shape=mxgraph.gmdl.calendar;");+m.vertex=!0;v.insert(m);m.style+=G;m.style+=h(m.style,a,e,m);break;case "UI2SearchBlock":v.value=k(a.Search);v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+p(a.Search,q);v.style+=h(v.style,a,e,v,q);break;case "UI2NumericStepperBlock":G=U(a,e);G=G.replace("strokeColor","fillColor");""==G&&(G="fillColor=#000000;");v.value=k(a.Number);v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"++G+p(a.Number,q);v.style+=h(v.style,a,e,v,q);break;case "UI2TableBlock":try{$a=Pa(a.FillColor);var Cd=Pa(a.LineColor);Kc="";var Xd=20;v.style="html=1;overflow=fill;verticalAlign=top;spacing=0;";var Dd='<table style="width:100%;height:100%;border-collapse: collapse;border: 1px solid '+Cd+';">',jc=a.Data.split("\n");var hf=a.AltRow&&"default"!=a.AltRow?"none"==a.AltRow?$a:Pa(a.AltRow):Md($a,.95);Gc=a.Header&&"default"!=a.Header?"none"==a.Header?hf:Pa(a.Header):Md($a,.8);if("full"==a.GridLines)Kc="border: 1px solid "++Cd,Xd=19;else if("row"==a.GridLines)Kc="border-bottom: 1px solid "+Cd,Xd=19;else if("default"==a.GridLines||"column"==a.GridLines)Kc="border-right: 1px solid "+Cd;jc=jc.filter(function(Ua){return Ua});/^\{[^}]*\}$/.test(jc[jc.length-1])&&jc.pop();wc=jc[0].split(",").length;var jf="";for(M=0;M<wc-1;M++)jf+=" , ";for(b=jc.length;b<Math.ceil(c/20);b++)jc.push(jf);for(b=0;b<jc.length;b++){Dd+='<tr style="height: '+Xd+"px;background:"+(0==b?Gc:b%2?$a:hf)+'">';var kf=jc[b].split(",");for(M=0;M<kf.length;M++){var Ed=+a["Cell_"+b+"_"+M],Tf=Ed&&Ed.m&&Ed.m[0]&&"c"==Ed.m[0].n?Pa(Ed.m[0].v):Cd;Dd+='<td style="height: '+Xd+"px;color:"+Tf+";"+Kc+'">'+mxUtils.htmlEntities(kf[M])+"</td>"}Dd+="</tr>"}Dd+="</table>";v.value=Dd}catch(Ua){console.log(Ua)}break;case "UI2ButtonBarBlock":v.style+=h(v.style,a,e,v);g=[];m=[];ma=d/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),""),m[b].vertex=!0,v.insert(m[b])):(g[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"strokeColor=none;"),+g[b].vertex=!0,v.insert(g[b]),g[b].style+=g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,ma,c),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=k(a["Button_"+(b+1)]),m[b].style+=p(a["Button_"+(b+1)],q),m[b].style+=h(m[b].style,a,e,m[b],q);break;case "UI2VerticalButtonBarBlock":v.style+=h(v.style,a,e,v);g=[];m=[];O=c/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(m[b]=new mxCell("",new mxGeometry(0,b*O,d,O),""),m[b].vertex=!0,v.insert(m[b])):+(g[b]=new mxCell("",new mxGeometry(0,b*O,d,O),"strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].style+=h(g[b].style,a,e,g[b]),m[b]=new mxCell("",new mxGeometry(0,0,d,O),"fillColor=#000000;fillOpacity=25;"),m[b].vertex=!0,g[b].insert(m[b])),m[b].value=k(a["Button_"+(b+1)]),m[b].style+=p(a["Button_"+(b+1)],q),m[b].style+=h(m[b].style,a,e,m[b],q);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];m=[];ma=d/a.Links;for(b=0;b<a.Links;b++)0!=b?+(m[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),m[b].style+=h(m[b].style,a,e,m[b])):m[b]=new mxCell("",new mxGeometry(b*ma,0,ma,c),"fillColor=none;strokeColor=none;"),m[b].vertex=!0,v.insert(m[b]),m[b].value=k(a["Link_"+(b+1)]),m[b].style+=p(a["Link_"+(b+1)],q);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=h(v.style,a,e,v);g=[];m=[];ma=d/a.Links;for(b=0;b<a.Links;b++)g[b]=new mxCell("",new mxGeometry(b*+ma,0,ma,c),"fillColor=none;strokeColor=none;"),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["Link_"+(b+1)]),g[b].style+=p(a["Link_"+(b+1)],q);for(b=1;b<a.Links;b++)m[b]=new mxCell("",new mxGeometry(b/a.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),m[b].geometry.relative=!0,m[b].geometry.offset=new mxPoint(-3,-5),m[b].vertex=!0,v.insert(m[b]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";v.style+=h(v.style,a,e,v);g=[];ma=d/(a.Buttons+1);for(b=0;b<=a.Buttons-1;b++)g[b]=b!=a.Selected-+1?new mxCell("",new mxGeometry(0,0,ma,c),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,ma,c),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),g[b].geometry.relative=!0,g[b].geometry.offset=new mxPoint(b*ma,0),g[b].vertex=!0,v.insert(g[b]),g[b].value=k(a["MenuItem_"+(b+1)]),g[b].style+=p(a["MenuItem_"+(b+1)],q);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+p(a.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";+break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+p(a.Text_prev);v.value=k(a.Text_prev)+" ";for(b=0;b<a.Links;b++)v.value+=k(a["Link_"+(b+1)])+" ";v.value+=k(a.Text_next);break;case "UI2ContextMenuBlock":v.style+=h(v.style,a,e,v);F=[];cb=[];var bd=[];O=c/a.Lines;P=null;for(b=0;b<a.Lines;b++)null!=a["Item_"+(b+1)]&&(null==P&&(P=""+A(a["Item_"+(b+1)])+L(a["Item_"+(b+1)])+X(a["Item_"+(b+1)])),F[b]=new mxCell("",new mxGeometry(0,b*c/a.Lines,d,O),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),+F[b].vertex=!0,v.insert(F[b]),F[b].style+=P,F[b].value=k(a["Item_"+(b+1)])),null!=a.Icons[b+1]&&null!=F[b]&&("dot"==a.Icons[b+1]?(cb[b]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),cb[b].geometry.offset=new mxPoint(6,-4)):"check"==a.Icons[b+1]&&(cb[b]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),cb[b].geometry.offset=new mxPoint(6.5,-4)),null!=cb[b]&&(cb[b].geometry.relative=!0,cb[b].vertex=!0,F[b].insert(cb[b]),G=U(a,e),+G=G.replace("strokeColor","fillColor"),""==G&&(G="fillColor=#000000;"),cb[b].style+=G)),null!=a["Shortcut_"+(b+1)]&&(null==P&&(P=""+A(a["Shortcut_"+(b+1)])+L(a["Shortcut_"+(b+1)])+X(a["Shortcut_"+(b+1)])),bd[b]=new mxCell("",new mxGeometry(.6*d,b*c/a.Lines,.4*d,O),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),bd[b].vertex=!0,v.insert(bd[b]),bd[b].style+=P,bd[b].value=k(a["Shortcut_"+(b+1)])),null!=a.Dividers[b+1]&&(F[b]=new mxCell("",new mxGeometry(.05*d,b*c/a.Lines,.9*d,O),+"shape=line;strokeWidth=1;"),F[b].vertex=!0,v.insert(F[b]),F[b].style+=U(a,e));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*a.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=k(a.Tip||a.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+a.RoundCorners+";"+p(a.Tip||a.Text,q);v.style+=h(v.style,a,e,v,q);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=+k(a.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+p(a.Txt,q);v.style+=h(v.style,a,e,v,q);break;case "UI2AlertBlock":v.value=k(a.Txt);v.style+=p(a.Txt,q);v.style+=h(v.style,a,e,v,q);g=new mxCell("",new mxGeometry(0,0,d,30),"part=1;resizeHeight=0;");g.vertex=!0;v.insert(g);g.value=k(a.Title);g.style+=p(a.Title,q);g.style+=h(g.style,a,e,g,q);m=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");m.geometry.relative=!0;m.geometry.offset=+new mxPoint(-25,-10);m.vertex=!0;g.insert(m);var Uf=45*a.Buttons+(10*a.Buttons-1);B=[];for(b=0;b<a.Buttons;b++)B[b]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),B[b].geometry.relative=!0,B[b].geometry.offset=new mxPoint(.5*-Uf+55*b,-40),B[b].vertex=!0,v.insert(B[b]),B[b].value=k(a["Button_"+(b+1)]),B[b].style+=p(a["Button_"+(b+1)],q),B[b].style+=h(B[b].style,a,e,B[b],q);break;case "UMLClassBlock":if(0==a.Simple){P=ta(a,e);Ra=Math.round(.75*a.TitleHeight)||25;P=P.replace("fillColor",+"swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+P+"startSize="+Ra+";"+p(a.Title,q);v.style+=h(v.style,a,e,v,q);F=[];var qe=[],kb=Ra/c;Kb=Ra;for(b=0;b<=a.Attributes;b++)0<b&&(qe[b]=new mxCell("",new mxGeometry(0,Kb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),+Kb+=8,qe[b].vertex=!0,v.insert(qe[b])),O=0,0==a.Attributes?O=b=1:b<a.Attributes?(O=a["Text"+(b+1)+"Percent"],kb+=O):O=1-kb,dc=Math.round((c-Ra)*O)+(a.ExtraHeightSet&&1==b?.75*a.ExtraHeight:0),F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;html=1;whiteSpace=wrap;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),Kb+=dc,F[b].vertex=!0,v.insert(F[b]),F[b].style+=+P+Xa(a,e,F[b])+p(a["Text"+(b+1)],q),F[b].value=k(a["Text"+(b+1)])}else v.value=k(a.Title),v.style+="align=center;",v.style+=p(a.Title,q),v.style+=h(v.style,a,e,v,q);break;case "ERDEntityBlock":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+P+"startSize="+Ra++";"+p(a.Name,q);v.style+=h(v.style,a,e,v,q);a.ShadedHeader?(P=Pa(a.FillColor),fe=Md(P,.85),v.style+="fillColor="+fe+";"):v.style+=ta(a,e);F=[];kb=Ra/c;Kb=Ra;for(b=0;b<a.Fields;b++)O=0,dc=.75*a["Field"+(b+1)+"_h"],F[b]=new mxCell("",new mxGeometry(0,Kb,d,dc),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),Kb+=dc,F[b].vertex=!0,v.insert(F[b]),F[b].style+=+P+p(a["Field"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;opacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]);break;case "ERDEntityBlock2":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+P+"startSize="+Ra+";"+p(a.Name,q);v.style=a.ShadedHeader?v.style++"fillColor=#e0e0e0;":v.style+ta(a,e);v.style+=h(v.style,a,e,v,q);F=[];var la=[];kb=Ra;var wb=30;null!=a.Column1&&(wb=.75*a.Column1);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Key"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),la[b].vertex=!0,v.insert(la[b]),la[b].style+=P+p(a["Key"+(b+1)],q),la[b].style=+1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Key"+(b+1)]),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb,.75*a["Field"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;whiteSpace=wrap;"),F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Field"++(b+1)],q),v.style+=h(v.style,a,e,v),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]),kb+=.75*a["Key"+(b+1)+"_h"];break;case "ERDEntityBlock3":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+P+"startSize="+Ra+";"+p(a.Name);v.style=+a.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ta(a,e);v.value=k(a.Name);v.style+=h(v.style,a,e,v,q);F=[];la=[];kb=Ra;wb=30;null!=a.Column1&&(wb=.75*a.Column1);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Field"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),la[b].vertex=!0,v.insert(la[b]),la[b].style+=+P+p(a["Field"+(b+1)],q),la[b].style=1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Field"+(b+1)]),la[b].style+=h(la[b].style,a,e,la[b],q),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb,.75*a["Type"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),+F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Type"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Type"+(b+1)]),F[b].style+=h(F[b].style,a,e,F[b],q),kb+=.75*a["Field"+(b+1)+"_h"];break;case "ERDEntityBlock4":P=ta(a,e);Ra=.75*a.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"++P+"startSize="+Ra+";"+p(a.Name);v.style=a.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ta(a,e);v.value=k(a.Name);v.style+=h(v.style,a,e,v,q);F=[];la=[];var xb=[];kb=Ra;wb=30;var Yd=40;null!=a.Column1&&(wb=.75*a.Column1);null!=a.Column2&&(Yd=.75*a.Column2);for(b=0;b<a.Fields;b++)O=0,la[b]=new mxCell("",new mxGeometry(0,kb,wb,.75*a["Key"+(b+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),+la[b].vertex=!0,v.insert(la[b]),la[b].style+=P+p(a["Key"+(b+1)],q),la[b].style=1==a.AltRows&&0!=b%2?la[b].style+"fillColor=#000000;fillOpacity=5;":la[b].style+("fillColor=none;"+Xa(a,e,la[b])),la[b].value=k(a["Key"+(b+1)]),la[b].style+=h(la[b].style,a,e,la[b],q),F[b]=new mxCell("",new mxGeometry(wb,kb,d-wb-Yd,.75*a["Field"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),+F[b].vertex=!0,v.insert(F[b]),F[b].style+=P+p(a["Field"+(b+1)],q),F[b].style=1==a.AltRows&&0!=b%2?F[b].style+"fillColor=#000000;fillOpacity=5;":F[b].style+("fillColor=none;"+Xa(a,e,F[b])),F[b].value=k(a["Field"+(b+1)]),F[b].style+=h(F[b].style,a,e,F[b],q),xb[b]=new mxCell("",new mxGeometry(d-Yd,kb,Yd,.75*a["Type"+(b+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;"),+xb[b].vertex=!0,v.insert(xb[b]),xb[b].style+=P+p(a["Type"+(b+1)],q),xb[b].style=1==a.AltRows&&0!=b%2?xb[b].style+"fillColor=#000000;fillOpacity=5;":xb[b].style+("fillColor=none;"+Xa(a,e,xb[b])),xb[b].value=k(a["Type"+(b+1)]),xb[b].style+=h(xb[b].style,a,e,xb[b],q),kb+=.75*a["Key"+(b+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Aa("application_system",d,c,v,a,e);break;case "GCPServiceCardAuthorizationBlock":Aa("internal_payment_authorization",d,c,v,a,e);break;case "GCPServiceCardBlankBlock":Aa("blank",+d,c,v,a,e);break;case "GCPServiceCardReallyBlankBlock":Aa("blank",d,c,v,a,e);break;case "GCPServiceCardBucketBlock":Aa("bucket",d,c,v,a,e);break;case "GCPServiceCardCDNInterconnectBlock":Aa("google_network_edge_cache",d,c,v,a,e);break;case "GCPServiceCardCloudDNSBlock":Aa("blank",d,c,v,a,e);break;case "GCPServiceCardClusterBlock":Aa("cluster",d,c,v,a,e);break;case "GCPServiceCardDiskSnapshotBlock":Aa("persistent_disk_snapshot",d,c,v,a,e);break;case "GCPServiceCardEdgePopBlock":Aa("google_network_edge_cache",+d,c,v,a,e);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Aa("frontend_platform_services",d,c,v,a,e);break;case "GCPServiceCardGatewayBlock":Aa("gateway",d,c,v,a,e);break;case "GCPServiceCardGoogleNetworkBlock":Aa("google_network_edge_cache",d,c,v,a,e);break;case "GCPServiceCardImageServicesBlock":Aa("image_services",d,c,v,a,e);break;case "GCPServiceCardLoadBalancerBlock":Aa("network_load_balancer",d,c,v,a,e);break;case "GCPServiceCardLocalComputeBlock":Aa("dedicated_game_server",d,c,v,+a,e);break;case "GCPServiceCardLocalStorageBlock":Aa("persistent_disk_snapshot",d,c,v,a,e);break;case "GCPServiceCardLogsAPIBlock":Aa("logs_api",d,c,v,a,e);break;case "GCPServiceCardMemcacheBlock":Aa("memcache",d,c,v,a,e);break;case "GCPServiceCardNATBlock":Aa("nat",d,c,v,a,e);break;case "GCPServiceCardPaymentFormBlock":Aa("external_payment_form",d,c,v,a,e);break;case "GCPServiceCardPushNotificationsBlock":Aa("push_notification_service",d,c,v,a,e);break;case "GCPServiceCardScheduledTasksBlock":Aa("scheduled_tasks",+d,c,v,a,e);break;case "GCPServiceCardServiceDiscoveryBlock":Aa("service_discovery",d,c,v,a,e);break;case "GCPServiceCardSquidProxyBlock":Aa("squid_proxy",d,c,v,a,e);break;case "GCPServiceCardTaskQueuesBlock":Aa("task_queues",d,c,v,a,e);break;case "GCPServiceCardVirtualFileSystemBlock":Aa("virtual_file_system",d,c,v,a,e);break;case "GCPServiceCardVPNGatewayBlock":Aa("gateway",d,c,v,a,e);break;case "GCPInputDatabase":Ha("database",1,.9,d,c,v,a,e);break;case "GCPInputRecord":Ha("record",1,.66,d,c,v,+a,e);break;case "GCPInputPayment":Ha("payment",1,.8,d,c,v,a,e);break;case "GCPInputGateway":Ha("gateway_icon",1,.44,d,c,v,a,e);break;case "GCPInputLocalCompute":Ha("compute_engine_icon",1,.89,d,c,v,a,e);break;case "GCPInputBeacon":Ha("beacon",.73,1,d,c,v,a,e);break;case "GCPInputStorage":Ha("storage",1,.8,d,c,v,a,e);break;case "GCPInputList":Ha("list",.89,1,d,c,v,a,e);break;case "GCPInputStream":Ha("stream",1,.82,d,c,v,a,e);break;case "GCPInputMobileDevices":Ha("mobile_devices",1,.73,d,c,v,a,e);break;+case "GCPInputCircuitBoard":Ha("circuit_board",1,.9,d,c,v,a,e);break;case "GCPInputLive":Ha("live",.74,1,d,c,v,a,e);break;case "GCPInputUsers":Ha("users",1,.63,d,c,v,a,e);break;case "GCPInputLaptop":Ha("laptop",1,.66,d,c,v,a,e);break;case "GCPInputApplication":Ha("application",1,.8,d,c,v,a,e);break;case "GCPInputLightbulb":Ha("lightbulb",.7,1,d,c,v,a,e);break;case "GCPInputGame":Ha("game",1,.54,d,c,v,a,e);break;case "GCPInputDesktop":Ha("desktop",1,.9,d,c,v,a,e);break;case "GCPInputDesktopAndMobile":Ha("desktop_and_mobile",+1,.66,d,c,v,a,e);break;case "GCPInputWebcam":Ha("webcam",.5,1,d,c,v,a,e);break;case "GCPInputSpeaker":Ha("speaker",.7,1,d,c,v,a,e);break;case "GCPInputRetail":Ha("retail",1,.89,d,c,v,a,e);break;case "GCPInputReport":Ha("report",1,1,d,c,v,a,e);break;case "GCPInputPhone":Ha("phone",.64,1,d,c,v,a,e);break;case "GCPInputBlank":Ha("transparent",1,1,d,c,v,a,e);break;case "PresentationFrameBlock":0==a.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=p(a.Text),v.value=k(a.Text),v.style+=h(v.style,+a,e,v,q));break;case "SVGPathBlock2":try{var Vf=a.LineWidth,Wf=a.LineColor,lf=a.FillColor,mf=a.DrawData.Data,Zd='<svg viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">',re=null;for(b=0;b<mf.length;b++){var kc=mf[b],Xf=kc.a,Yf=("prop"==kc.w||null==kc.w?Vf:kc.w)/Math.min(d,c)*.75;Jc="prop"==kc.s||null==kc.s?Wf:kc.s;G="prop"==kc.f||null==kc.f?lf:kc.f;"object"==typeof G&&(null!=G.url&&(re="shape=image;image="+r(G.url)+";"),G=Array.isArray(G.cs)?G.cs[0].c:lf);Zd+='<path d="'+Xf+'" fill="'+G+'" stroke="'++Jc+'" stroke-width="'+Yf+'"/>'}Zd+="</svg>";v.style=re?re:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(Zd):Base64.encode(Zd,!0))+";"}catch(Ua){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var nf=0==C.indexOf("Bracket")?"size=0;arcSize=50;":"",of=h(v.style,a,e,v,q);bb=mc(a,e,v);v.style="group;"+bb;var se=Math.min(.14*(bb?d:c),100),te=+new mxCell("",new mxGeometry(0,0,se,c),"shape=curlyBracket;rounded=1;"+nf+of);te.vertex=!0;te.geometry.relative=!0;var ue=new mxCell("",new mxGeometry(1-se/d,0,se,c),"shape=curlyBracket;rounded=1;flipH=1;"+nf+of);ue.vertex=!0;ue.geometry.relative=!0;v.insert(te);v.insert(ue);break;case "BPMNTextAnnotation":case "NoteBlock":a.InsetMargin=null;v.value=k(a.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=h(v.style,a,e,v,q);0>v.style.indexOf("verticalAlign")&&(v.style+=+"verticalAlign=middle;");var cd=new mxCell("",new mxGeometry(0,0,8,c),"shape=partialRectangle;right=0;fillColor=none;");cd.geometry.relative=!0;cd.vertex=!0;cd.style+=h(cd.style,a,e,v,q);v.insert(cd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{bb=mc(a,e,v);v.style="group;"+bb;if(null!=a.Stencil){null==a.Stencil.id&&(a.Stencil.id="$$tmpId$$",+Ke(a.Stencil.id,a.Stencil));var Cb=LucidImporter.stencilsMap[a.Stencil.id],Zf=-Cb.x/Cb.w,$f=-Cb.y/Cb.h;for(b=0;b<Cb.stencils.length;b++){var db=Cb.stencils[b];V=new mxCell("",new mxGeometry(Zf,$f,d,c),"shape="+db.shapeStencil+";");var ag=db.FillColor,bg=db.LineColor,cg=db.LineWidth;"prop"==db.FillColor&&(db.FillColor=a.FillColor);null==db.FillColor&&(db.FillColor="#ffffff00");"prop"==db.LineColor&&(db.LineColor=a.LineColor);null==db.LineColor&&(db.LineColor="#ffffff00");"prop"==db.LineWidth&&(db.LineWidth=+a.LineWidth);V.style+=h(V.style,db,e,V,q);db.FillColor=ag;db.LineColor=bg;db.LineWidth=cg;G=a.FillColor;var dg=a.LineColor,eg=a.LineWidth;a.FillColor=null;a.LineColor=null;a.LineWidth=null;V.style+=h(V.style,a,e,V,q);a.FillColor=G;a.LineColor=dg;a.LineWidth=eg;V.vertex=!0;V.geometry.relative=!0;v.insert(V)}var Lb=0;for(bb=a.Rotation;a["t"+Lb];){var pf=a["t"+Lb],qf=k(pf);if(qf){W=new mxCell(qf,new mxGeometry(0,0,d,c),"strokeColor=none;fillColor=none;overflow=visible;");a.Rotation=0;W.style+=h(W.style,+pf,e,W,q);W.style+=h(W.style,a,e,W,q);a.Rotation=bb;if(null!=Cb.text&&null!=Cb.text["t"+Lb]){var Sa=Cb.text["t"+Lb];Sa.Rotation=bb+(Sa.rotation?Sa.rotation:0)+(a["t"+Lb+"_TRotation"]?a["t"+Lb+"_TRotation"]:0)+(a["t"+Lb+"_TAngle"]?a["t"+Lb+"_TAngle"]:0);W.style+=h(W.style,Sa,e,W,q);var Mb=W.geometry;Sa.w&&(Mb.width*=Sa.w/Cb.w);Sa.h&&(Mb.height*=Sa.h/Cb.h);Sa.x&&(Mb.x=Sa.x/Cb.w);Sa.y&&(Mb.y=Sa.y/Cb.h);Sa.fw&&(Mb.width*=.75*Sa.fw/d);Sa.fh&&(Mb.height*=.75*Sa.fh/c);Sa.fx&&(Mb.x=(0<Sa.fx?1:0)+.75*Sa.fx/+d);Sa.fy&&(Mb.y=(0<Sa.fy?1:0)+.75*Sa.fy/c)}W.vertex=!0;W.geometry.relative=!0;v.insert(W)}Lb++}}if(a.FillColor&&a.FillColor.url){var Fd=new mxCell("",new mxGeometry(0,0,d,c),"shape=image;html=1;");Fd.style+=Ae({},{},a.FillColor.url);Fd.vertex=!0;Fd.geometry.relative=!0;v.insert(Fd)}}catch(Ua){console.log("Freehand error",Ua)}break;case "RightArrowBlock":var ve=a.Head*c/d;v.style="shape=singleArrow;arrowWidth="+(1-2*a.Notch)+";arrowSize="+ve;v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "DoubleArrowBlock":ve=+a.Head*c/d;v.style="shape=doubleArrow;arrowWidth="+(1-2*a.Notch)+";arrowSize="+ve;v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(C){case "VPCSubnet2017":var dd="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var ed=30;var fd=35;break;case "VirtualPrivateCloudContainer2017":dd="shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";+ed=52;fd=36;break;case "ElasticBeanStalkContainer2017":dd="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";ed=30;fd=41;break;case "EC2InstanceContents2017":dd="shape=mxgraph.aws3.instance;fillColor=#F58536;";ed=40;fd=41;break;case "AWSCloudContainer2017":dd="shape=mxgraph.aws3.cloud;fillColor=#F58536;";ed=52;fd=36;break;case "CorporateDataCenterContainer2017":dd="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",ed=30,fd=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";+v.value=k(a);v.style+=h(v.style,a,e,v,q);v.geometry.y+=20;v.geometry.height-=20;cb=new mxCell("",new mxGeometry(20,-20,ed,fd),dd);cb.vertex=!0;v.insert(cb);break;case "FlexiblePolygonBlock":var Oc=['<shape strokewidth="inherit"><foreground>'];Oc.push("<path>");for(M=0;M<a.Vertices.length;M++)ya=a.Vertices[M],0==M?Oc.push('<move x="'+100*ya.x+'" y="'+100*ya.y+'"/>'):Oc.push('<line x="'+100*ya.x+'" y="'+100*ya.y+'"/>');Oc.push("</path>");Oc.push("<fillstroke/>");Oc.push("</foreground></shape>");v.style=+"shape=stencil("+Graph.compress(Oc.join(""))+");";v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "InfographicsBlock":var rf=a.ShapeData_1.Value,we=a.ShapeData_2.Value-rf,xe=a.ShapeData_3.Value-rf,$d=a.ShapeData_4.Value*d/200;Lb="ProgressBar"==a.InternalStencilId?4:5;$a=a["ShapeData_"+Lb].Value;$a="=fillColor()"==$a?a.FillColor:$a;var gd=a["ShapeData_"+(Lb+1)].Value;switch(a.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+$d+";strokeColor=none;fillColor="+Pa(gd)++";"+hc(gd,"fillOpacity");v.style+=h(v.style,a,e,v,q);var Ma=new mxCell("",new mxGeometry(0,0,d,c),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+xe/we+";arcWidth="+$d/d*2+";strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity"));Ma.style+=h(Ma.style,a,e,Ma,q);Ma.vertex=!0;Ma.geometry.relative=1;v.insert(Ma);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var sf=xe/we/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+sf+";arcWidth="++2*$d/d+";strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity");a.Rotation-=Math.PI/2;v.style+=h(v.style,a,e,v,q);Ma=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-sf)+";arcWidth="+2*$d/d+";strokeColor=none;flipH=1;fillColor="+Pa(gd)+";"+hc(gd,"fillOpacity"));a.Rotation+=Math.PI;Ma.style+=h(Ma.style,a,e,Ma,q);Ma.vertex=!0;Ma.geometry.relative=1;v.insert(Ma);break;case "ProgressBar":v.style="strokeColor=none;fillColor="++Pa(gd)+";"+hc(gd,"fillOpacity"),v.style+=h(v.style,a,e,v,q),Ma=new mxCell("",new mxGeometry(0,0,d*xe/we,c),"strokeColor=none;fillColor="+Pa($a)+";"+hc($a,"fillOpacity")),Ma.style+=h(Ma.style,a,e,Ma,q),Ma.vertex=!0,Ma.geometry.relative=1,v.insert(Ma)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(a.Text&&a.Text.m){var ae=a.Text.m,ye=!1,ze=!1;for(b=0;b<ae.length;b++){var hd=ae[b];ye||"mt"!=hd.n?ze||"il"!=hd.n||(hd.v=17+(hd.v||0),ze=!0):(hd.v=17+(hd.v||0),ye=!0)}ye||+ae.push({s:0,n:"mt",v:17});ze||ae.push({s:0,n:"il",v:17})}v.value=k(a);v.style+=h(v.style,a,e,v,q);break;case "PersonRoleBlock":try{P=ta(a,e);Ra=c/2;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=k(a.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+P+"startSize="+Ra+";spacingLeft=3;spacingRight=3;fontStyle=0;"+p(a.Role,q);v.style+=h(v.style,a,e,+v,q);var vc=new mxCell("",new mxGeometry(0,c/2,d,c/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");vc.value=k(a.Name);vc.vertex=!0;v.insert(vc);vc.style+=p(a.Name,q);vc.style+=h(vc.style,a,e,vc,q)}catch(Ua){console.log(Ua)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(a.Title&&a.Title.t&&a.Text&&a.Text.t)try{var tf=v.geometry,uf=new mxCell(k(a.Title),new mxGeometry(0,tf.height+4,tf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");+uf.vertex=!0;v.insert(uf);v.style+=p(a.Title,q)}catch(Ua){console.log(Ua)}Ge(v,a);Be(v,a,l);a.Hidden&&(v.visible=!1);return v}function Ge(f,n){if(n.Text_TRotation||n.TextRotation)try{var l=mxUtils.toDegree(n.Text_TRotation||0)+mxUtils.toDegree(n.TextRotation||0);if(!isNaN(l)&&0!=l&&f.value){var e=f.geometry.width,a=f.geometry.height,y=e,d=a,c=0,H=0;if(-90==l||-270==l){y=a;d=e;var I=(a-e)/2;c=-I/e;H=I/a}l+=mxUtils.toDegree(n.Rotation);var C=f.style.split(";").filter(function(Q){return 0>Q.indexOf("fillColor=")&&+0>Q.indexOf("strokeColor=")&&0>Q.indexOf("rotation=")}).join(";"),ba=new mxCell(f.value,new mxGeometry(c,H,y,d),C+"fillColor=none;strokeColor=none;rotation="+l+";");f.value=null;ba.geometry.relative=!0;ba.vertex=!0;f.insert(ba)}}catch(Q){console.log(Q)}}function Je(f,n,l,e,a){function y(yb,Ob){var Ia="";try{for(var eb=0;eb<yb.text.length;eb++){var Fc=yb.text[eb];if(Fc[0]=="t_"+Ob){for(var wc in Fc[1]){var xc=Fc[1][wc];if(xc)switch(wc){case "font":Ia+=w(xc);break;case "bold":Ia+="font-weight: bold;";+break;case "italic":Ia+="font-style: italic;";break;case "underline":Ia+="text-decoration: underline;";break;case "size":Ia+="font-size:"+x(.75*xc)+"px;";break;case "color":Ia+="color:"+gc(xc).substring(0,7)+";";break;case "fill":Ia+="background-color:"+gc(xc).substring(0,7)+";";break;case "align":Ia+="text-align:"+xc+";"}}break}}}catch(Nd){}return Ia}try{var d=function(yb,Ob,Ia){yb=fa+yb;W[yb]=Ob;Ob="";for(var eb=0;eb<C.length;eb++)Ob+='<div style="'+S[eb]+'">'+(Ia[C[eb]]||" ")+"</div>";eb=+mxUtils.getSizeForString(Ob);Ia=r(Ia.Image||Ia["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Ia=new mxCell(Ob,new mxGeometry(0,0,eb.width+ha,eb.height+wa),Z+(ia?Ia:""));Ia.vertex=!0;a[yb]=Ia;e.addCell(Ia,I)},c=n.OrgChartBlockType,H=n.Location,I=new mxCell("",new mxGeometry(.75*H.x,.75*H.y,200,100),"group");I.vertex=!0;e.addCell(I);var C=n.FieldNames,ba=n.LayoutSettings,Q=n.BlockItemDefaultStyle||+{props:{}},T=n.EdgeItemDefaultStyle,W={},fa=(f||Date.now())+"_";4==c&&(Q.props.LineWidth=0);var S=[],ha=25,wa=40,ia=!0,Z=h("",Q.props,{},I,!0);0==c?(Z+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",wa+=54):1==c||2==c?(Z+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",ha+=54):3<=c&&(ia=!1);for(f=0;f<C.length;f++)S.push(y(Q,C[f]));if(l.Items)for(var ua=l.Items.n,pa=0;pa<ua.length;pa++){var ra=ua[pa];d(ra.pk,+ra.ie[0]?ra.ie[0].nf:null,ra.f)}else{var b=n.ContractMap.derivative;if(null==b){var na=n.ContractMap.c.People;var Na=na.id;Na=Na.substr(0,Na.lastIndexOf("_"));for(f=0;f<C.length;f++)C[f]=na.f[C[f]]||C[f]}else for(pa=0;pa<b.length;pa++)if("ForeignKeyGraph"==b[pa].type)Na=b[pa].c[0].id,Na=Na.substr(0,Na.lastIndexOf("_"));else if("MappedGraph"==b[pa].type)for(f=0;f<C.length;f++)C[f]=b[pa].nfs[C[f]]||C[f];var ka;for(ka in l){ra=l[ka].Collections;for(var za in ra)if(za==Na)ua=ra[za].Items;else if(ra[za].Properties.ForeignKeys&&+ra[za].Properties.ForeignKeys[0]){var R=ra[za].Properties.ForeignKeys[0].SourceFields[0];var sa=ra[za].Properties.Schema.PrimaryKey[0]}if(ua)break}n={};for(var da in ua){ra=ua[da];var ea=ra[sa],Db=ra[R];ea==Db?(n[ea]=ea+Date.now(),ea=n[ea],ra[sa]=ea,d(ea,Db,ra)):d(ea,n[Db]||Db,ra)}}for(ka in W){var M=W[ka];if(null!=M){var lb=a[fa+M],Ea=a[ka];if(null!=lb&&null!=Ea){var fc=new mxCell("",new mxGeometry(0,0,100,100),"");fc.geometry.relative=!0;fc.edge=!0;null!=T&&null!=T.props&&Id(fc,T.props,e,null,null,+!0);e.addCell(fc,I,null,lb,Ea)}}}var lc=.75*ba.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(e,0,lc,.75*ba.NodeSpacing.NeighborSeparation)).execute(I);for(pa=ba=d=0;I.children&&pa<I.children.length;pa++){var tb=I.children[pa].geometry;d=Math.max(d,tb.x+tb.width);ba=Math.max(ba,tb.y+tb.height)}var Fb=I.geometry;Fb.y-=lc;Fb.width=d;Fb.height=ba}catch(yb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(yb)}}var nc=0,oc=0,ce="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",+q=!1,ab="",vf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],wf=["fpDoor"],De={None:"none;",Arrow:"block;xyzFill=1;","Hollow Arrow":"block;xyzFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;xyzSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;xyzSize=10;","CFN ERD Many Arrow":"ERmany;xyzSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;xyzSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;xyzSize=10;","CFN ERD One Arrow":"ERone;xyzSize=16;",Generalization:"block;xyzFill=0;xyzSize=12;","Big Open Arrow":"open;xyzSize=10;",Asynch1:"openAsync;flipV=1;xyzSize=10;",Asynch2:"openAsync;xyzSize=10;",Aggregation:"diamond;xyzFill=0;xyzSize=16;",Composition:"diamond;xyzFill=1;xyzSize=16;",BlockEnd:"box;xyzFill=0;xyzSize=16;",Measure:"ERone;xyzSize=10;",CircleOpen:"oval;xyzFill=0;xyzSize=16;",CircleClosed:"oval;xyzFill=1;xyzSize=16;",BlockEndFill:"box;xyzFill=1;xyzSize=16;",Nesting:"circlePlus;xyzSize=7;xyzFill=0;","BPMN Conditional":"diamond;xyzFill=0;",-"BPMN Default":"dash;"},Pd={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ExtShapeBoxBlock:"",DefaultStickyNoteBlock:"shadow=1",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",+"BPMN Default":"dash;"},Jd={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ExtShapeBoxBlock:"",DefaultStickyNoteBlock:"shadow=1",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document;boundedLbl=1",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DatabaseBlock:"shape=cylinder3;size=4;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder3;direction=south;size=10;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"mxCompositeShape",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=cylinder3;boundedLbl=1;size=15;lid=0;direction=south;",MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"mxCompositeShape",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",DiamondContainerBlock:"shape=rhombus;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",RoundedRectangleContainerBlock:"rounded=1;absoluteArcSize=1;arcSize=24;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",CircleContainerBlock:"ellipse;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;",@@ -15386,655 +15386,98 @@ SMCalendar:"shape=mxgraph.sitemap.calendar;strokeColor=#000000;fillColor=#E6E6E6SMGame:"shape=mxgraph.sitemap.game;strokeColor=#000000;fillColor=#E6E6E6",SMJobs:"shape=mxgraph.sitemap.jobs;strokeColor=#000000;fillColor=#E6E6E6",SMLucid:"shape=mxgraph.sitemap.home;strokeColor=#000000;fillColor=#E6E6E6",SMNewspress:"shape=mxgraph.sitemap.news;strokeColor=#000000;fillColor=#E6E6E6",SMPhoto:"shape=mxgraph.sitemap.photo;strokeColor=#000000;fillColor=#E6E6E6",SMPortfolio:"shape=mxgraph.sitemap.portfolio;strokeColor=#000000;fillColor=#E6E6E6",SMPricing:"shape=mxgraph.sitemap.pricing;strokeColor=#000000;fillColor=#E6E6E6",SMProfile:"shape=mxgraph.sitemap.profile;strokeColor=#000000;fillColor=#E6E6E6",SMSlideshow:"shape=mxgraph.sitemap.slideshow;strokeColor=#000000;fillColor=#E6E6E6",SMUpload:"shape=mxgraph.sitemap.upload;strokeColor=#000000;fillColor=#E6E6E6",SVGPathBlock2:"mxCompositeShape",PresentationFrameBlock:"mxCompositeShape",TimelineBlock:"mxCompositeShape",TimelineMilestoneBlock:"mxCompositeShape",TimelineIntervalBlock:"mxCompositeShape",MinimalTextBlock:"strokeColor=none;fillColor=none",FreehandBlock:"mxCompositeShape",ExtShapeLaptopBlock:"strokeColor=none;shape=mxgraph.citrix.laptop_2;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeServerBlock:"strokeColor=none;shape=mxgraph.citrix.tower_server;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeCloudBlock:"strokeColor=none;shape=mxgraph.citrix.cloud;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeUserBlock:"strokeColor=none;shape=mxgraph.aws3d.end_user;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#073763",ExtShapeWorkstationLCDBlock:"strokeColor=none;shape=mxgraph.veeam.3d.workstation;verticalLabelPosition=bottom;verticalAlign=top",-InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},yf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Rd.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Rd.prototype.getX=function(w){return Math.round(100*this.nurbsValues[4*(w+1)])/100};Rd.prototype.getY=function(w){return Math.round(100*this.nurbsValues[4*(w+1)+1])/100};LucidImporter.importState=function(w,F,D){function u(p){null!=p.state&&EditorUi.debug("convertLucidChart addPages",-p);if(p.Properties){for(var aa in p.Properties)"Stencil-"==aa.substr(0,8)&&Le(aa.substr(8),p.Properties[aa]);LucidImporter.globalProps=p.Properties}for(var ba in p.Pages)aa=p.Pages[ba],aa.id=ba,aa.Data=p.Data,e.push(aa);e.sort(function(W,wa){return W.Properties.Order<wa.Properties.Order?-1:W.Properties.Order>wa.Properties.Order?1:0});for(p=0;p<e.length;p++)LucidImporter.pageIdsMap[e[p].id]=p}yc=xc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=F;LucidImporter.advImpConfig=D;LucidImporter.globalProps=-{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;F=['<?xml version="1.0" encoding="UTF-8"?>','<mxfile type="Lucidchart-Import" version="'+EditorUi.VERSION+'" host="'+mxUtils.htmlEntities(window.location.hostname)+'" agent="'+mxUtils.htmlEntities(navigator.appVersion)+'" modified="'+mxUtils.htmlEntities((new Date).toISOString())+'">'];D&&D.transparentEdgeLabels&&(he=he.replace("labelBackgroundColor=default;",-"labelBackgroundColor=none;"));var e=[];null!=w.state?u(JSON.parse(w.state)):null==w.Page&&null!=w.Pages?u(w):e.push(w);w=Df();D=new mxCodec;for(var O=0;O<e.length;O++){F.push("<diagram");null!=e[O].Properties&&null!=e[O].Properties.Title&&F.push(' name="'+mxUtils.htmlEntities(e[O].Properties.Title)+'"');F.push(' id="'+O+'"');zf(w,e[O],!0);var r=D.encode(w.getModel());null!=e[O].Properties&&(e[O].Properties.FillColor&&"#ffffff"!=e[O].Properties.FillColor&&r.setAttribute("background",P(e[O].Properties.FillColor)),-e[O].Properties.InfiniteCanvas?r.setAttribute("page",0):null!=e[O].Properties.Size&&(r.setAttribute("page",1),r.setAttribute("pageWidth",.75*e[O].Properties.Size.w),r.setAttribute("pageHeight",.75*e[O].Properties.Size.h)),null!=e[O].Properties.GridSpacing&&(r.setAttribute("grid",1),r.setAttribute("gridSize",.75*e[O].Properties.GridSpacing)));LucidImporter.hasMath&&r.setAttribute("math",1);w.getModel().clear();F.push(">"+Graph.compress(mxUtils.getXml(r))+"</diagram>")}F.push("</mxfile>");LucidImporter.imgSrcRepl=-null;return F.join("")}})();function VsdxExport(g){function y(H,N){var J={"[Content_Types].xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='png' ContentType='image/png'/><Default Extension='jpg' ContentType='image/jpeg'/><Default Extension='jpeg' ContentType='image/jpeg'/><Default Extension='svg' ContentType='image/svg+xml'/><Default Extension='bmp' ContentType='image/bmp'/><Default Extension='gif' ContentType='image/gif'/><Default Extension='emf' ContentType='image/x-emf' /><Default Extension='rels' ContentType='application/vnd.openxmlformats-package.relationships+xml' /><Default Extension='xml' ContentType='application/xml' /><Override PartName='/docProps/app.xml' ContentType='application/vnd.openxmlformats-officedocument.extended-properties+xml' /><Override PartName='/docProps/core.xml' ContentType='application/vnd.openxmlformats-package.core-properties+xml' /><Override PartName='/docProps/custom.xml' ContentType='application/vnd.openxmlformats-officedocument.custom-properties+xml' /><Override PartName='/visio/document.xml' ContentType='application/vnd.ms-visio.drawing.main+xml' /><Override PartName='/visio/masters/masters.xml' ContentType='application/vnd.ms-visio.masters+xml' /><Override PartName='/visio/masters/master1.xml' ContentType='application/vnd.ms-visio.master+xml'/><Override PartName='/visio/pages/page1.xml' ContentType='application/vnd.ms-visio.page+xml' /><Override PartName='/visio/pages/pages.xml' ContentType='application/vnd.ms-visio.pages+xml' /><Override PartName='/visio/windows.xml' ContentType='application/vnd.ms-visio.windows+xml' /></Types>",-"_rels/.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties' Target='docProps/core.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/document' Target='visio/document.xml' /><Relationship Id='rId3' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties' Target='docProps/custom.xml' /><Relationship Id='rId4' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties' Target='docProps/app.xml' /></Relationships>",-"docProps/app.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\'><Application>Microsoft Visio</Application><AppVersion>15.0000</AppVersion><Template /><Manager /><Company /><HyperlinkBase /></Properties>',"docProps/core.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><cp:coreProperties xmlns:cp='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:dcterms='http://purl.org/dc/terms/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><dc:title /><dc:subject /><dc:creator /><cp:keywords /><dc:description /><cp:category /><dc:language>en-US</dc:language></cp:coreProperties>",-"docProps/custom.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\' />',"visio/document.xml":"<?xml version='1.0' encoding='utf-8' ?><VisioDocument xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><DocumentSettings TopPage='0' DefaultTextStyle='3' DefaultLineStyle='3' DefaultFillStyle='3' DefaultGuideStyle='4'><GlueSettings>9</GlueSettings><SnapSettings>65847</SnapSettings><SnapExtensions>34</SnapExtensions><SnapAngles/><DynamicGridEnabled>1</DynamicGridEnabled><ProtectStyles>0</ProtectStyles><ProtectShapes>0</ProtectShapes><ProtectMasters>0</ProtectMasters><ProtectBkgnds>0</ProtectBkgnds></DocumentSettings><Colors><ColorEntry IX='24' RGB='#000000'/><ColorEntry IX='25' RGB='#FFFFFF'/><ColorEntry IX='26' RGB='#FF0000'/><ColorEntry IX='27' RGB='#00FF00'/><ColorEntry IX='28' RGB='#0000FF'/><ColorEntry IX='29' RGB='#FFFF00'/><ColorEntry IX='30' RGB='#FF00FF'/><ColorEntry IX='31' RGB='#00FFFF'/><ColorEntry IX='32' RGB='#800000'/><ColorEntry IX='33' RGB='#008000'/><ColorEntry IX='34' RGB='#000080'/><ColorEntry IX='35' RGB='#808000'/><ColorEntry IX='36' RGB='#800080'/><ColorEntry IX='37' RGB='#008080'/><ColorEntry IX='38' RGB='#C0C0C0'/><ColorEntry IX='39' RGB='#E6E6E6'/><ColorEntry IX='40' RGB='#CDCDCD'/><ColorEntry IX='41' RGB='#B3B3B3'/><ColorEntry IX='42' RGB='#9A9A9A'/><ColorEntry IX='43' RGB='#808080'/><ColorEntry IX='44' RGB='#666666'/><ColorEntry IX='45' RGB='#4D4D4D'/><ColorEntry IX='46' RGB='#333333'/><ColorEntry IX='47' RGB='#1A1A1A'/><ColorEntry IX='48' RGB='#7F7F7F'/><ColorEntry IX='49' RGB='#99004D'/><ColorEntry IX='50' RGB='#FF0080'/><ColorEntry IX='51' RGB='#CC0066'/></Colors><FaceNames><FaceName NameU='Calibri' UnicodeRanges='-536859905 -1073732485 9 0' CharSets='536871423 0' Panose='2 15 5 2 2 2 4 3 2 4' Flags='325'/></FaceNames><StyleSheets><StyleSheet ID='0' NameU='No Style' IsCustomNameU='1' Name='No Style' IsCustomName='1'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0.01041666666666667'/><Cell N='LineColor' V='0'/><Cell N='LinePattern' V='1'/><Cell N='Rounding' V='0'/><Cell N='EndArrowSize' V='2'/><Cell N='BeginArrow' V='0'/><Cell N='EndArrow' V='0'/><Cell N='LineCap' V='0'/><Cell N='BeginArrowSize' V='2'/><Cell N='LineColorTrans' V='0'/><Cell N='CompoundType' V='0'/><Cell N='FillForegnd' V='1'/><Cell N='FillBkgnd' V='0'/><Cell N='FillPattern' V='1'/><Cell N='ShdwForegnd' V='0'/><Cell N='ShdwPattern' V='0'/><Cell N='FillForegndTrans' V='0'/><Cell N='FillBkgndTrans' V='0'/><Cell N='ShdwForegndTrans' V='0'/><Cell N='ShapeShdwType' V='0'/><Cell N='ShapeShdwOffsetX' V='0'/><Cell N='ShapeShdwOffsetY' V='0'/><Cell N='ShapeShdwObliqueAngle' V='0'/><Cell N='ShapeShdwScaleFactor' V='1'/><Cell N='ShapeShdwBlur' V='0'/><Cell N='ShapeShdwShow' V='0'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='1'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5'/><Cell N='TextDirection' V='0'/><Cell N='TextBkgndTrans' V='0'/><Cell N='LockWidth' V='0'/><Cell N='LockHeight' V='0'/><Cell N='LockMoveX' V='0'/><Cell N='LockMoveY' V='0'/><Cell N='LockAspect' V='0'/><Cell N='LockDelete' V='0'/><Cell N='LockBegin' V='0'/><Cell N='LockEnd' V='0'/><Cell N='LockRotate' V='0'/><Cell N='LockCrop' V='0'/><Cell N='LockVtxEdit' V='0'/><Cell N='LockTextEdit' V='0'/><Cell N='LockFormat' V='0'/><Cell N='LockGroup' V='0'/><Cell N='LockCalcWH' V='0'/><Cell N='LockSelect' V='0'/><Cell N='LockCustProp' V='0'/><Cell N='LockFromGroupFormat' V='0'/><Cell N='LockThemeColors' V='0'/><Cell N='LockThemeEffects' V='0'/><Cell N='LockThemeConnectors' V='0'/><Cell N='LockThemeFonts' V='0'/><Cell N='LockThemeIndex' V='0'/><Cell N='LockReplace' V='0'/><Cell N='LockVariation' V='0'/><Cell N='NoObjHandles' V='0'/><Cell N='NonPrinting' V='0'/><Cell N='NoCtlHandles' V='0'/><Cell N='NoAlignBox' V='0'/><Cell N='UpdateAlignBox' V='0'/><Cell N='HideText' V='0'/><Cell N='DynFeedback' V='0'/><Cell N='GlueType' V='0'/><Cell N='WalkPreference' V='0'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0'/><Cell N='Comment' V=''/><Cell N='IsDropSource' V='0'/><Cell N='NoLiveDynamics' V='0'/><Cell N='LocalizeMerge' V='0'/><Cell N='NoProofing' V='0'/><Cell N='Calendar' V='0'/><Cell N='LangID' V='en-US'/><Cell N='ShapeKeywords' V=''/><Cell N='DropOnPageScale' V='1'/><Cell N='TheData' V='0' F='No Formula'/><Cell N='TheText' V='0' F='No Formula'/><Cell N='EventDblClick' V='0' F='No Formula'/><Cell N='EventXFMod' V='0' F='No Formula'/><Cell N='EventDrop' V='0' F='No Formula'/><Cell N='EventMultiDrop' V='0' F='No Formula'/><Cell N='HelpTopic' V=''/><Cell N='Copyright' V=''/><Cell N='LayerMember' V=''/><Cell N='XRulerDensity' V='32'/><Cell N='YRulerDensity' V='32'/><Cell N='XRulerOrigin' V='0'/><Cell N='YRulerOrigin' V='0'/><Cell N='XGridDensity' V='8'/><Cell N='YGridDensity' V='8'/><Cell N='XGridSpacing' V='0'/><Cell N='YGridSpacing' V='0'/><Cell N='XGridOrigin' V='0'/><Cell N='YGridOrigin' V='0'/><Cell N='Gamma' V='1'/><Cell N='Contrast' V='0.5'/><Cell N='Brightness' V='0.5'/><Cell N='Sharpen' V='0'/><Cell N='Blur' V='0'/><Cell N='Denoise' V='0'/><Cell N='Transparency' V='0'/><Cell N='SelectMode' V='1'/><Cell N='DisplayMode' V='2'/><Cell N='IsDropTarget' V='0'/><Cell N='IsSnapTarget' V='1'/><Cell N='IsTextEditTarget' V='1'/><Cell N='DontMoveChildren' V='0'/><Cell N='ShapePermeableX' V='0'/><Cell N='ShapePermeableY' V='0'/><Cell N='ShapePermeablePlace' V='0'/><Cell N='Relationships' V='0'/><Cell N='ShapeFixedCode' V='0'/><Cell N='ShapePlowCode' V='0'/><Cell N='ShapeRouteStyle' V='0'/><Cell N='ShapePlaceStyle' V='0'/><Cell N='ConFixedCode' V='0'/><Cell N='ConLineJumpCode' V='0'/><Cell N='ConLineJumpStyle' V='0'/><Cell N='ConLineJumpDirX' V='0'/><Cell N='ConLineJumpDirY' V='0'/><Cell N='ShapePlaceFlip' V='0'/><Cell N='ConLineRouteExt' V='0'/><Cell N='ShapeSplit' V='0'/><Cell N='ShapeSplittable' V='0'/><Cell N='DisplayLevel' V='0'/><Cell N='ResizePage' V='0'/><Cell N='EnableGrid' V='0'/><Cell N='DynamicsOff' V='0'/><Cell N='CtrlAsInput' V='0'/><Cell N='AvoidPageBreaks' V='0'/><Cell N='PlaceStyle' V='0'/><Cell N='RouteStyle' V='0'/><Cell N='PlaceDepth' V='0'/><Cell N='PlowCode' V='0'/><Cell N='LineJumpCode' V='1'/><Cell N='LineJumpStyle' V='0'/><Cell N='PageLineJumpDirX' V='0'/><Cell N='PageLineJumpDirY' V='0'/><Cell N='LineToNodeX' V='0.125'/><Cell N='LineToNodeY' V='0.125'/><Cell N='BlockSizeX' V='0.25'/><Cell N='BlockSizeY' V='0.25'/><Cell N='AvenueSizeX' V='0.375'/><Cell N='AvenueSizeY' V='0.375'/><Cell N='LineToLineX' V='0.125'/><Cell N='LineToLineY' V='0.125'/><Cell N='LineJumpFactorX' V='0.66666666666667'/><Cell N='LineJumpFactorY' V='0.66666666666667'/><Cell N='LineAdjustFrom' V='0'/><Cell N='LineAdjustTo' V='0'/><Cell N='PlaceFlip' V='0'/><Cell N='LineRouteExt' V='0'/><Cell N='PageShapeSplit' V='0'/><Cell N='PageLeftMargin' V='0.25'/><Cell N='PageRightMargin' V='0.25'/><Cell N='PageTopMargin' V='0.25'/><Cell N='PageBottomMargin' V='0.25'/><Cell N='ScaleX' V='1'/><Cell N='ScaleY' V='1'/><Cell N='PagesX' V='1'/><Cell N='PagesY' V='1'/><Cell N='CenterX' V='0'/><Cell N='CenterY' V='0'/><Cell N='OnPage' V='0'/><Cell N='PrintGrid' V='0'/><Cell N='PrintPageOrientation' V='1'/><Cell N='PaperKind' V='1'/><Cell N='PaperSource' V='7'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineGradientDir' V='0'/><Cell N='LineGradientAngle' V='1.5707963267949'/><Cell N='FillGradientDir' V='0'/><Cell N='FillGradientAngle' V='1.5707963267949'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='1'/><Cell N='UseGroupGradient' V='0'/><Cell N='BevelTopType' V='0'/><Cell N='BevelTopWidth' V='0'/><Cell N='BevelTopHeight' V='0'/><Cell N='BevelBottomType' V='0'/><Cell N='BevelBottomWidth' V='0'/><Cell N='BevelBottomHeight' V='0'/><Cell N='BevelDepthColor' V='1'/><Cell N='BevelDepthSize' V='0'/><Cell N='BevelContourColor' V='0'/><Cell N='BevelContourSize' V='0'/><Cell N='BevelMaterialType' V='0'/><Cell N='BevelLightingType' V='0'/><Cell N='BevelLightingAngle' V='0'/><Cell N='RotationXAngle' V='0'/><Cell N='RotationYAngle' V='0'/><Cell N='RotationZAngle' V='0'/><Cell N='RotationType' V='0'/><Cell N='Perspective' V='0'/><Cell N='DistanceFromGround' V='0'/><Cell N='KeepTextFlat' V='0'/><Cell N='ReflectionTrans' V='0'/><Cell N='ReflectionSize' V='0'/><Cell N='ReflectionDist' V='0'/><Cell N='ReflectionBlur' V='0'/><Cell N='GlowColor' V='1'/><Cell N='GlowColorTrans' V='0'/><Cell N='GlowSize' V='0'/><Cell N='SoftEdgesSize' V='0'/><Cell N='SketchSeed' V='0'/><Cell N='SketchEnabled' V='0'/><Cell N='SketchAmount' V='5'/><Cell N='SketchLineWeight' V='0.04166666666666666' U='PT'/><Cell N='SketchLineChange' V='0.14'/><Cell N='SketchFillChange' V='0.1'/><Cell N='ColorSchemeIndex' V='0'/><Cell N='EffectSchemeIndex' V='0'/><Cell N='ConnectorSchemeIndex' V='0'/><Cell N='FontSchemeIndex' V='0'/><Cell N='ThemeIndex' V='0'/><Cell N='VariationColorIndex' V='0'/><Cell N='VariationStyleIndex' V='0'/><Cell N='EmbellishmentIndex' V='0'/><Cell N='ReplaceLockShapeData' V='0'/><Cell N='ReplaceLockText' V='0'/><Cell N='ReplaceLockFormat' V='0'/><Cell N='ReplaceCopyCells' V='0' U='BOOL' F='No Formula'/><Cell N='PageWidth' V='0' F='No Formula'/><Cell N='PageHeight' V='0' F='No Formula'/><Cell N='ShdwOffsetX' V='0' F='No Formula'/><Cell N='ShdwOffsetY' V='0' F='No Formula'/><Cell N='PageScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingScale' V='0' U='IN_F' F='No Formula'/><Cell N='DrawingSizeType' V='0' F='No Formula'/><Cell N='DrawingScaleType' V='0' F='No Formula'/><Cell N='InhibitSnap' V='0' F='No Formula'/><Cell N='PageLockReplace' V='0' U='BOOL' F='No Formula'/><Cell N='PageLockDuplicate' V='0' U='BOOL' F='No Formula'/><Cell N='UIVisibility' V='0' F='No Formula'/><Cell N='ShdwType' V='0' F='No Formula'/><Cell N='ShdwObliqueAngle' V='0' F='No Formula'/><Cell N='ShdwScaleFactor' V='0' F='No Formula'/><Cell N='DrawingResizeType' V='0' F='No Formula'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Calibri'/><Cell N='Color' V='0'/><Cell N='Style' V='0'/><Cell N='Case' V='0'/><Cell N='Pos' V='0'/><Cell N='FontScale' V='1'/><Cell N='Size' V='0.1666666666666667'/><Cell N='DblUnderline' V='0'/><Cell N='Overline' V='0'/><Cell N='Strikethru' V='0'/><Cell N='DoubleStrikethrough' V='0'/><Cell N='Letterspace' V='0'/><Cell N='ColorTrans' V='0'/><Cell N='AsianFont' V='0'/><Cell N='ComplexScriptFont' V='0'/><Cell N='ComplexScriptSize' V='-1'/><Cell N='LangID' V='en-US'/></Row></Section><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0'/><Cell N='IndLeft' V='0'/><Cell N='IndRight' V='0'/><Cell N='SpLine' V='-1.2'/><Cell N='SpBefore' V='0'/><Cell N='SpAfter' V='0'/><Cell N='HorzAlign' V='1'/><Cell N='Bullet' V='0'/><Cell N='BulletStr' V=''/><Cell N='BulletFont' V='0'/><Cell N='BulletFontSize' V='-1'/><Cell N='TextPosAfterBullet' V='0'/><Cell N='Flags' V='0'/></Row></Section><Section N='Tabs'><Row IX='0'/></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='1'/><Cell N='GradientStopColorTrans' V='0'/><Cell N='GradientStopPosition' V='0'/></Row></Section></StyleSheet><StyleSheet ID='1' NameU='Text Only' IsCustomNameU='1' Name='Text Only' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='Themed' F='Inh'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LeftMargin' V='0'/><Cell N='RightMargin' V='0'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='0'/><Cell N='TextBkgnd' V='0'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='Themed' F='Inh'/><Cell N='FillGradientEnabled' V='Themed' F='Inh'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Section N='Paragraph'><Row IX='0'><Cell N='IndFirst' V='0' F='Inh'/><Cell N='IndLeft' V='0' F='Inh'/><Cell N='IndRight' V='0' F='Inh'/><Cell N='SpLine' V='-1.2' F='Inh'/><Cell N='SpBefore' V='0' F='Inh'/><Cell N='SpAfter' V='0' F='Inh'/><Cell N='HorzAlign' V='0'/><Cell N='Bullet' V='0' F='Inh'/><Cell N='BulletStr' V='' F='Inh'/><Cell N='BulletFont' V='0' F='Inh'/><Cell N='BulletFontSize' V='-1' F='Inh'/><Cell N='TextPosAfterBullet' V='0' F='Inh'/><Cell N='Flags' V='0' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='2' NameU='None' IsCustomNameU='1' Name='None' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='0'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='QuickStyleLineColor' V='100' F='Inh'/><Cell N='QuickStyleFillColor' V='100' F='Inh'/><Cell N='QuickStyleShadowColor' V='100' F='Inh'/><Cell N='QuickStyleFontColor' V='100' F='Inh'/><Cell N='QuickStyleLineMatrix' V='100' F='Inh'/><Cell N='QuickStyleFillMatrix' V='100' F='Inh'/><Cell N='QuickStyleEffectsMatrix' V='0' F='GUARD(0)'/><Cell N='QuickStyleFontMatrix' V='100' F='Inh'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='2'/></StyleSheet><StyleSheet ID='3' NameU='Normal' IsCustomNameU='1' Name='Normal' IsCustomName='1' LineStyle='6' FillStyle='6' TextStyle='6'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT'/><Cell N='RightMargin' V='0.05555555555555555' U='PT'/><Cell N='TopMargin' V='0.05555555555555555' U='PT'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/></StyleSheet><StyleSheet ID='4' NameU='Guide' IsCustomNameU='1' Name='Guide' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='0' U='PT'/><Cell N='LineColor' V='#7f7f7f'/><Cell N='LinePattern' V='23'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Cell N='FillForegnd' V='Themed' F='Inh'/><Cell N='FillBkgnd' V='Themed' F='Inh'/><Cell N='FillPattern' V='0'/><Cell N='ShdwForegnd' V='Themed' F='Inh'/><Cell N='ShdwPattern' V='Themed' F='Inh'/><Cell N='FillForegndTrans' V='Themed' F='Inh'/><Cell N='FillBkgndTrans' V='Themed' F='Inh'/><Cell N='ShdwForegndTrans' V='Themed' F='Inh'/><Cell N='ShapeShdwType' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetX' V='Themed' F='Inh'/><Cell N='ShapeShdwOffsetY' V='Themed' F='Inh'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='Inh'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='Inh'/><Cell N='ShapeShdwBlur' V='Themed' F='Inh'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='Inh'/><Cell N='LineGradientAngle' V='Themed' F='Inh'/><Cell N='FillGradientDir' V='Themed' F='Inh'/><Cell N='FillGradientAngle' V='Themed' F='Inh'/><Cell N='LineGradientEnabled' V='0'/><Cell N='FillGradientEnabled' V='0'/><Cell N='RotateGradientWithShape' V='Themed' F='Inh'/><Cell N='UseGroupGradient' V='Themed' F='Inh'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0'/><Cell N='BottomMargin' V='0'/><Cell N='VerticalAlign' V='2'/><Cell N='TextBkgnd' V='0' F='Inh'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='1'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='ShapePermeableX' V='1'/><Cell N='ShapePermeableY' V='1'/><Cell N='ShapePermeablePlace' V='1'/><Cell N='Relationships' V='0' F='Inh'/><Cell N='ShapeFixedCode' V='0' F='Inh'/><Cell N='ShapePlowCode' V='0' F='Inh'/><Cell N='ShapeRouteStyle' V='0' F='Inh'/><Cell N='ShapePlaceStyle' V='0' F='Inh'/><Cell N='ConFixedCode' V='0' F='Inh'/><Cell N='ConLineJumpCode' V='0' F='Inh'/><Cell N='ConLineJumpStyle' V='0' F='Inh'/><Cell N='ConLineJumpDirX' V='0' F='Inh'/><Cell N='ConLineJumpDirY' V='0' F='Inh'/><Cell N='ShapePlaceFlip' V='0' F='Inh'/><Cell N='ConLineRouteExt' V='0' F='Inh'/><Cell N='ShapeSplit' V='0' F='Inh'/><Cell N='ShapeSplittable' V='0' F='Inh'/><Cell N='DisplayLevel' V='0' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='4'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.125'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet><StyleSheet ID='6' NameU='Theme' IsCustomNameU='1' Name='Theme' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LineWeight' V='Themed' F='THEMEVAL()'/><Cell N='LineColor' V='Themed' F='THEMEVAL()'/><Cell N='LinePattern' V='Themed' F='THEMEVAL()'/><Cell N='Rounding' V='Themed' F='THEMEVAL()'/><Cell N='EndArrowSize' V='2' F='Inh'/><Cell N='BeginArrow' V='0' F='Inh'/><Cell N='EndArrow' V='0' F='Inh'/><Cell N='LineCap' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrowSize' V='2' F='Inh'/><Cell N='LineColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='CompoundType' V='Themed' F='THEMEVAL()'/><Cell N='FillForegnd' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgnd' V='Themed' F='THEMEVAL()'/><Cell N='FillPattern' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegnd' V='Themed' F='THEMEVAL()'/><Cell N='ShdwPattern' V='Themed' F='THEMEVAL()'/><Cell N='FillForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='FillBkgndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShdwForegndTrans' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwType' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetX' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwOffsetY' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwObliqueAngle' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwScaleFactor' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwBlur' V='Themed' F='THEMEVAL()'/><Cell N='ShapeShdwShow' V='0' F='Inh'/><Cell N='LineGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientDir' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientAngle' V='Themed' F='THEMEVAL()'/><Cell N='LineGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='FillGradientEnabled' V='Themed' F='THEMEVAL()'/><Cell N='RotateGradientWithShape' V='Themed' F='THEMEVAL()'/><Cell N='UseGroupGradient' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopType' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopWidth' V='Themed' F='THEMEVAL()'/><Cell N='BevelTopHeight' V='Themed' F='THEMEVAL()'/><Cell N='BevelBottomType' V='0' F='Inh'/><Cell N='BevelBottomWidth' V='0' F='Inh'/><Cell N='BevelBottomHeight' V='0' F='Inh'/><Cell N='BevelDepthColor' V='1' F='Inh'/><Cell N='BevelDepthSize' V='0' F='Inh'/><Cell N='BevelContourColor' V='Themed' F='THEMEVAL()'/><Cell N='BevelContourSize' V='Themed' F='THEMEVAL()'/><Cell N='BevelMaterialType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingType' V='Themed' F='THEMEVAL()'/><Cell N='BevelLightingAngle' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionTrans' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionSize' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionDist' V='Themed' F='THEMEVAL()'/><Cell N='ReflectionBlur' V='Themed' F='THEMEVAL()'/><Cell N='GlowColor' V='Themed' F='THEMEVAL()'/><Cell N='GlowColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GlowSize' V='Themed' F='THEMEVAL()'/><Cell N='SoftEdgesSize' V='Themed' F='THEMEVAL()'/><Cell N='SketchSeed' V='0' F='Inh'/><Cell N='SketchEnabled' V='Themed' F='THEMEVAL()'/><Cell N='SketchAmount' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineWeight' V='Themed' F='THEMEVAL()'/><Cell N='SketchLineChange' V='Themed' F='THEMEVAL()'/><Cell N='SketchFillChange' V='Themed' F='THEMEVAL()'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='100'/><Cell N='QuickStyleFillMatrix' V='100'/><Cell N='QuickStyleEffectsMatrix' V='100'/><Cell N='QuickStyleFontMatrix' V='100'/><Cell N='QuickStyleType' V='0' F='Inh'/><Cell N='QuickStyleVariation' V='0' F='Inh'/><Cell N='ColorSchemeIndex' V='65534'/><Cell N='EffectSchemeIndex' V='65534'/><Cell N='ConnectorSchemeIndex' V='65534'/><Cell N='FontSchemeIndex' V='65534'/><Cell N='ThemeIndex' V='65534'/><Cell N='VariationColorIndex' V='65534'/><Cell N='VariationStyleIndex' V='65534'/><Cell N='EmbellishmentIndex' V='65534'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='THEMEVAL()'/><Cell N='Color' V='Themed' F='THEMEVAL()'/><Cell N='Style' V='Themed' F='THEMEVAL()'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1666666666666667' F='Inh'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptFont' V='Themed' F='THEMEVAL()'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section><Section N='FillGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section><Section N='LineGradient'><Row IX='0'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='1'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='2'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='3'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='4'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='5'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='6'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='7'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='8'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row><Row IX='9'><Cell N='GradientStopColor' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopColorTrans' V='Themed' F='THEMEVAL()'/><Cell N='GradientStopPosition' V='Themed' F='THEMEVAL()'/></Row></Section></StyleSheet><StyleSheet ID='7' NameU='Connector' IsCustomNameU='1' Name='Connector' IsCustomName='1' LineStyle='3' FillStyle='3' TextStyle='3'><Cell N='EnableLineProps' V='1'/><Cell N='EnableFillProps' V='1'/><Cell N='EnableTextProps' V='1'/><Cell N='HideForApply' V='0'/><Cell N='LeftMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='RightMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='TopMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='BottomMargin' V='0.05555555555555555' U='PT' F='Inh'/><Cell N='VerticalAlign' V='1' F='Inh'/><Cell N='TextBkgnd' V='#ffffff' F='THEMEGUARD(THEMEVAL(\"BackgroundColor\")+1)'/><Cell N='DefaultTabStop' V='0.5' F='Inh'/><Cell N='TextDirection' V='0' F='Inh'/><Cell N='TextBkgndTrans' V='0' F='Inh'/><Cell N='NoObjHandles' V='0' F='Inh'/><Cell N='NonPrinting' V='0' F='Inh'/><Cell N='NoCtlHandles' V='0' F='Inh'/><Cell N='NoAlignBox' V='0' F='Inh'/><Cell N='UpdateAlignBox' V='0' F='Inh'/><Cell N='HideText' V='0' F='Inh'/><Cell N='DynFeedback' V='0' F='Inh'/><Cell N='GlueType' V='0' F='Inh'/><Cell N='WalkPreference' V='0' F='Inh'/><Cell N='BegTrigger' V='0' F='No Formula'/><Cell N='EndTrigger' V='0' F='No Formula'/><Cell N='ObjType' V='0' F='Inh'/><Cell N='Comment' V='' F='Inh'/><Cell N='IsDropSource' V='0' F='Inh'/><Cell N='NoLiveDynamics' V='0' F='Inh'/><Cell N='LocalizeMerge' V='0' F='Inh'/><Cell N='NoProofing' V='0' F='Inh'/><Cell N='Calendar' V='0' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/><Cell N='ShapeKeywords' V='' F='Inh'/><Cell N='DropOnPageScale' V='1' F='Inh'/><Cell N='QuickStyleLineColor' V='100'/><Cell N='QuickStyleFillColor' V='100'/><Cell N='QuickStyleShadowColor' V='100'/><Cell N='QuickStyleFontColor' V='100'/><Cell N='QuickStyleLineMatrix' V='1'/><Cell N='QuickStyleFillMatrix' V='1'/><Cell N='QuickStyleEffectsMatrix' V='1'/><Cell N='QuickStyleFontMatrix' V='1'/><Cell N='QuickStyleType' V='0'/><Cell N='QuickStyleVariation' V='0'/><Cell N='LineWeight' V='Themed' F='Inh'/><Cell N='LineColor' V='Themed' F='Inh'/><Cell N='LinePattern' V='Themed' F='Inh'/><Cell N='Rounding' V='Themed' F='Inh'/><Cell N='EndArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='BeginArrow' V='Themed' F='THEMEVAL()'/><Cell N='EndArrow' V='Themed' F='THEMEVAL()'/><Cell N='LineCap' V='Themed' F='Inh'/><Cell N='BeginArrowSize' V='Themed' F='THEMEVAL()'/><Cell N='LineColorTrans' V='Themed' F='Inh'/><Cell N='CompoundType' V='Themed' F='Inh'/><Section N='Character'><Row IX='0'><Cell N='Font' V='Themed' F='Inh'/><Cell N='Color' V='Themed' F='Inh'/><Cell N='Style' V='Themed' F='Inh'/><Cell N='Case' V='0' F='Inh'/><Cell N='Pos' V='0' F='Inh'/><Cell N='FontScale' V='1' F='Inh'/><Cell N='Size' V='0.1111111111111111'/><Cell N='DblUnderline' V='0' F='Inh'/><Cell N='Overline' V='0' F='Inh'/><Cell N='Strikethru' V='0' F='Inh'/><Cell N='DoubleStrikethrough' V='0' F='Inh'/><Cell N='Letterspace' V='0' F='Inh'/><Cell N='ColorTrans' V='0' F='Inh'/><Cell N='AsianFont' V='Themed' F='Inh'/><Cell N='ComplexScriptFont' V='Themed' F='Inh'/><Cell N='ComplexScriptSize' V='-1' F='Inh'/><Cell N='LangID' V='en-US' F='Inh'/></Row></Section></StyleSheet></StyleSheets><DocumentSheet NameU='TheDoc' IsCustomNameU='1' Name='TheDoc' IsCustomName='1' LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='OutputFormat' V='0'/><Cell N='LockPreview' V='0'/><Cell N='AddMarkup' V='0'/><Cell N='ViewMarkup' V='0'/><Cell N='DocLockReplace' V='0' U='BOOL'/><Cell N='NoCoauth' V='0' U='BOOL'/><Cell N='DocLockDuplicatePage' V='0' U='BOOL'/><Cell N='PreviewQuality' V='0'/><Cell N='PreviewScope' V='0'/><Cell N='DocLangID' V='en-US'/><Section N='User'><Row N='msvNoAutoConnect'><Cell N='Value' V='1'/><Cell N='Prompt' V='' F='No Formula'/></Row></Section></DocumentSheet></VisioDocument>",-"visio/windows.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />","visio/_rels/document.xml.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>",-"visio/masters/_rels/masters.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>',"visio/masters/masters.xml":"<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>",-"visio/masters/master1.xml":"<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>"},-M;for(M in J)if(1<N&&M==K.CONTENT_TYPES_XML){for(var T=mxUtils.parseXml(J[M]),ca=T.documentElement,V=ca.children,P=null,ea=0;ea<V.length;ea++){var Y=V[ea];"/visio/pages/page1.xml"==Y.getAttribute(K.PART_NAME)&&(P=Y)}for(ea=2;ea<=N;ea++)V=P.cloneNode(),V.setAttribute(K.PART_NAME,"/visio/pages/page"+ea+".xml"),ca.appendChild(V);C(H,M,T,!0)}else H.file(M,J[M])}function z(H,N,J){return null!=H.createElementNS?H.createElementNS(N,J):H.createElement(J)}function B(H){var N=S[H];null==N&&(N=R++,S[H]=N);return N}-function m(H){var N={};try{var J=H.getGraphBounds().clone(),M=H.view.scale,T=H.view.translate,ca=Math.round(J.x/M)-T.x,V=Math.round(J.y/M)-T.y,P=H.pageFormat.width,ea=H.pageFormat.height;0>ca&&(ca+=Math.ceil((T.x-J.x/M)/P)*P);0>V&&(V+=Math.ceil((T.y-J.y/M)/ea)*ea);var Y=Math.max(1,Math.ceil((J.width/M+ca)/P)),sa=Math.max(1,Math.ceil((J.height/M+V)/ea));N.gridEnabled=H.gridEnabled;N.gridSize=H.gridSize;N.guidesEnabled=H.graphHandler.guidesEnabled;N.pageVisible=H.pageVisible;N.pageScale=H.pageScale;-N.pageWidth=H.pageFormat.width*Y;N.pageHeight=H.pageFormat.height*sa;N.backgroundClr=H.background;N.mathEnabled=H.mathEnabled;N.shadowVisible=H.shadowVisible}catch(oa){}return N}function h(H,N,J,M){return b(H,N/K.CONVERSION_FACTOR,J,M)}function b(H,N,J,M){J=z(J,K.XMLNS,"Cell");J.setAttribute("N",H);J.setAttribute("V",N);M&&J.setAttribute("F",M);return J}function a(H,N,J,M,T){var ca=z(T,K.XMLNS,"Row");ca.setAttribute("T",H);ca.setAttribute("IX",N);ca.appendChild(h("X",J,T));ca.appendChild(h("Y",M,-T));return ca}function c(H){mxUtils.isLightDarkColor(H)&&(H=mxUtils.parseLightDarkColor(H).light);return mxUtils.rgba2hex(H)}function d(H,N,J){var M=c(H.style[mxConstants.STYLE_FILLCOLOR]);if(M&&"none"!=M){if(N.appendChild(b("FillForegnd",M,J)),(M=c(H.style[mxConstants.STYLE_GRADIENTCOLOR]))&&"none"!=M){N.appendChild(b("FillBkgnd",M,J));M=H.style[mxConstants.STYLE_GRADIENT_DIRECTION];var T=28;if(M)switch(M){case mxConstants.DIRECTION_EAST:T=25;break;case mxConstants.DIRECTION_WEST:T=27;break;case mxConstants.DIRECTION_NORTH:T=-30}N.appendChild(b("FillPattern",T,J))}}else N.appendChild(b("FillPattern",0,J));(M=c(H.style[mxConstants.STYLE_STROKECOLOR]))&&"none"!=M?N.appendChild(b("LineColor",M,J)):N.appendChild(b("LinePattern",0,J));(M=H.style[mxConstants.STYLE_STROKEWIDTH])&&N.appendChild(h("LineWeight",M,J));(T=H.style[mxConstants.STYLE_OPACITY])?M=T:(M=H.style[mxConstants.STYLE_FILL_OPACITY],T=H.style[mxConstants.STYLE_STROKE_OPACITY]);M&&N.appendChild(b("FillForegndTrans",1-parseInt(M)/100,J));T&&N.appendChild(b("LineColorTrans",-1-parseInt(T)/100,J));if(1==H.style[mxConstants.STYLE_DASHED]){M=H.style[mxConstants.STYLE_DASH_PATTERN];T=9;if(M)switch(M){case "1 1":T=10;break;case "1 2":T=3;break;case "1 4":T=17}N.appendChild(b("LinePattern",T,J))}1==H.style[mxConstants.STYLE_SHADOW]&&(N.appendChild(b("ShdwPattern",1,J)),N.appendChild(b("ShdwForegnd","#000000",J)),N.appendChild(b("ShdwForegndTrans",.6,J)),N.appendChild(b("ShapeShdwType",1,J)),N.appendChild(b("ShapeShdwOffsetX","0.02946278254943948",J)),N.appendChild(b("ShapeShdwOffsetY",-"-0.02946278254943948",J)),N.appendChild(b("ShapeShdwScaleFactor","1",J)),N.appendChild(b("ShapeShdwBlur","0.05555555555555555",J)),N.appendChild(b("ShapeShdwShow",2,J)));1==H.style[mxConstants.STYLE_FLIPH]&&N.appendChild(b("FlipX",1,J));1==H.style[mxConstants.STYLE_FLIPV]&&N.appendChild(b("FlipY",1,J));1==H.style[mxConstants.STYLE_ROUNDED]&&N.appendChild(h("Rounding",.1*H.cell.geometry.width,J));(H=c(H.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]))&&N.appendChild(b("TextBkgnd",H,J))}function f(H,-N,J,M,T,ca){var V=z(M,K.XMLNS,"Shape");V.setAttribute("ID",H);V.setAttribute("NameU","Shape"+H);V.setAttribute("LineStyle","0");V.setAttribute("FillStyle","0");V.setAttribute("TextStyle","0");H=N.width/2;var P=N.height/2;V.appendChild(h("PinX",N.x+H+(ca?0:L.shiftX),M));V.appendChild(h("PinY",T-N.y-P-(ca?0:L.shiftY),M));V.appendChild(h("Width",N.width,M));V.appendChild(h("Height",N.height,M));V.appendChild(h("LocPinX",H,M));V.appendChild(h("LocPinY",P,M));V.appendChild(b("LayerMember",J+"",M));return V}-function k(H,N){H=K.ARROWS_MAP[(null==H?"none":H)+"|"+(null==N?"1":N)];return null!=H?H:1}function n(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function q(H,N,J,M,T,ca){var V=J.view.getState(H,!0);if(null==V||null==V.absolutePoints||null==V.cellBounds)return null;J=z(M,K.XMLNS,"Shape");var P=B(H.id);J.setAttribute("ID",P);J.setAttribute("NameU","Dynamic connector."+P);J.setAttribute("Name","Dynamic connector."+P);J.setAttribute("Type","Shape");J.setAttribute("Master","4");var ea=-L.state;P=V.absolutePoints;var Y=V.cellBounds,sa=Y.width/2,oa=Y.height/2;J.appendChild(h("PinX",Y.x+sa+(ca?0:L.shiftX),M));J.appendChild(h("PinY",T-Y.y-oa-(ca?0:L.shiftY),M));J.appendChild(h("Width",Y.width,M));J.appendChild(h("Height",Y.height,M));J.appendChild(h("LocPinX",sa,M));J.appendChild(h("LocPinY",oa,M));L.newEdge(J,V,M);sa=function(Ra,la,Sa){var Xa=Ra.x;Ra=Ra.y;Xa=Xa*ea.scale-Y.x+ea.dx+(Sa||ca?0:L.shiftX);Ra=(la?0:Y.height)-Ra*ea.scale+Y.y-ea.dy-(Sa||ca?0:L.shiftY);return{x:Xa,y:Ra}};oa=-sa(P[0],!0);J.appendChild(h("BeginX",Y.x+oa.x,M,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));J.appendChild(h("BeginY",T-Y.y+oa.y,M,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));oa=sa(P[P.length-1],!0);J.appendChild(h("EndX",Y.x+oa.x,M,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));J.appendChild(h("EndY",T-Y.y+oa.y,M,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));J.appendChild(b("BegTrigger","2",M,H.source?"_XFTRIGGER(Sheet."+B(H.source.id)+"!EventXFMod)":null));J.appendChild(b("EndTrigger",-"2",M,H.target?"_XFTRIGGER(Sheet."+B(H.target.id)+"!EventXFMod)":null));J.appendChild(b("ConFixedCode","6",M));J.appendChild(b("LayerMember",N+"",M));d(V,J,M);N=V.style[mxConstants.STYLE_STARTSIZE];H=k(V.style[mxConstants.STYLE_STARTARROW],V.style[mxConstants.STYLE_STARTFILL]);J.appendChild(b("BeginArrow",H,M));J.appendChild(b("BeginArrowSize",n(N),M));N=V.style[mxConstants.STYLE_ENDSIZE];H=k(V.style[mxConstants.STYLE_ENDARROW],V.style[mxConstants.STYLE_ENDFILL]);J.appendChild(b("EndArrow",H,M));-J.appendChild(b("EndArrowSize",n(N),M));null!=V.text&&V.text.checkBounds()&&(L.save(),V.text.paint(L),L.restore());V=z(M,K.XMLNS,"Section");V.setAttribute("N","Geometry");V.setAttribute("IX","0");for(H=0;H<P.length;H++)N=sa(P[H],!1,!0),V.appendChild(a(0==H?"MoveTo":"LineTo",H+1,N.x,N.y,M));V.appendChild(b("NoFill","1",M));V.appendChild(b("NoLine","0",M));J.appendChild(V);return J}function t(H,N,J,M,T,ca,V){var P=H.geometry,ea=P;if(null!=P)try{P.relative&&ca&&(ea=P.clone(),P.x*=ca.width,P.y*=ca.height,-H.vertex&&null!=P.offset&&(P.x+=P.offset.x,P.y+=P.offset.y),P.relative=0);var Y=B(H.id);if(!H.treatAsSingle&&0<H.getChildCount()){var sa=f(Y+"10000",P,N,M,T,V);sa.setAttribute("Type","Group");var oa=z(M,K.XMLNS,"Shapes");L.save();L.translate(-P.x,-P.y);var Ra=P.clone();Ra.x=0;Ra.y=0;H.setGeometry(Ra);H.treatAsSingle=!0;var la=t(H,N,J,M,P.height,P,!0);delete H.treatAsSingle;H.setGeometry(P);null!=la&&oa.appendChild(la);for(T=0;T<H.getChildCount();T++)la=t(H.children[T],N,J,M,P.height,P,!0),null!=la&&-oa.appendChild(la);sa.appendChild(oa);L.restore();return sa}if(H.vertex){sa=f(Y,P,N,M,T,V);var Sa=J.view.getState(H,!0);null!=Sa&&(d(Sa,sa,M),L.newShape(sa,Sa,M),null!=Sa.text&&Sa.text.checkBounds()&&(L.save(),Sa.text.paint(L),L.restore()),null!=Sa.shape&&Sa.shape.checkBounds()&&(L.save(),Sa.shape.paint(L),L.restore()),sa.appendChild(L.getShapeGeo()),L.endShape(),sa.setAttribute("Type",L.getShapeType()));return sa}return q(H,N,J,M,T,V)}finally{H.geometry=ea}else return null}function A(H,N){var J=-mxUtils.createXmlDocument(),M=z(J,K.XMLNS,"PageContents");M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",K.XMLNS);M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",K.XMLNS_R);var T=z(J,K.XMLNS,"Shapes");M.appendChild(T);var ca=H.model,V=H.view.translate,P=H.view.scale,ea=H.getGraphBounds();L.shiftX=0;L.shiftY=0;if(ea.x/P<V.x||ea.y/P<V.y)L.shiftX=Math.ceil((V.x-ea.x/P)/H.pageFormat.width)*H.pageFormat.width,L.shiftY=Math.ceil((V.y-ea.y/P)/H.pageFormat.height)*H.pageFormat.height;-L.save();L.translate(-V.x,-V.y);L.scale(1/P);L.newPage();P=H.model.getChildCells(H.model.root);V={};for(ea=0;ea<P.length;ea++)V[P[ea].id]=ea;for(var Y in ca.cells)P=ca.cells[Y],ea=null!=P.parent?V[P.parent.id]:null,null!=ea&&(P=t(P,ea,H,J,N.pageHeight),null!=P&&T.appendChild(P));H=z(J,K.XMLNS,"Connects");M.appendChild(H);for(Y in ca.cells)P=ca.cells[Y],P.edge&&(P.source&&(N=z(J,K.XMLNS,"Connect"),N.setAttribute("FromSheet",B(P.id)),N.setAttribute("FromCell","BeginX"),N.setAttribute("ToSheet",B(P.source.id)),-H.appendChild(N)),P.target&&(N=z(J,K.XMLNS,"Connect"),N.setAttribute("FromSheet",B(P.id)),N.setAttribute("FromCell","EndX"),N.setAttribute("ToSheet",B(P.target.id)),H.appendChild(N)));J.appendChild(M);L.restore();return J}function C(H,N,J,M){H.file(N,(M?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(J,"\n"))}function I(H,N,J,M){var T=mxUtils.createXmlDocument(),ca=mxUtils.createXmlDocument(),V=z(T,K.XMLNS,"Pages");V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",-K.XMLNS);V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",K.XMLNS_R);var P=z(ca,K.RELS_XMLNS,"Relationships"),ea=1,Y;for(Y in N){var sa="page"+ea+".xml",oa=z(T,K.XMLNS,"Page");oa.setAttribute("ID",ea-1);oa.setAttribute("NameU",Y);oa.setAttribute("Name",Y);var Ra=z(T,K.XMLNS,"PageSheet"),la=M[Y];Ra.appendChild(h("PageWidth",la.pageWidth,T));Ra.appendChild(h("PageHeight",la.pageHeight,T));Ra.appendChild(b("PageScale",la.pageScale,T));Ra.appendChild(b("DrawingScale",1,T));la=z(T,K.XMLNS,"Rel");-la.setAttributeNS(K.XMLNS_R,"r:id","rId"+ea);var Sa=z(T,K.XMLNS,"Section");Sa.setAttribute("N","Layer");for(var Xa=J[Y],sc=0;sc<Xa.length;sc++){var yb=z(T,K.XMLNS,"Row");yb.setAttribute("IX",sc+"");Sa.appendChild(yb);yb.appendChild(b("Name",Xa[sc].name,T));yb.appendChild(b("Color","255",T));yb.appendChild(b("Status","0",T));yb.appendChild(b("Visible",Xa[sc].visible?"1":"0",T));yb.appendChild(b("Print","1",T));yb.appendChild(b("Active","0",T));yb.appendChild(b("Lock",Xa[sc].locked?"1":"0",T));yb.appendChild(b("Snap",-"1",T));yb.appendChild(b("Glue","1",T));yb.appendChild(b("NameUniv",Xa[sc].name,T));yb.appendChild(b("ColorTrans","0",T))}Ra.appendChild(Sa);oa.appendChild(Ra);oa.appendChild(la);V.appendChild(oa);oa=z(ca,K.RELS_XMLNS,"Relationship");oa.setAttribute("Id","rId"+ea);oa.setAttribute("Type",K.PAGES_TYPE);oa.setAttribute("Target",sa);P.appendChild(oa);C(H,K.VISIO_PAGES+sa,N[Y]);ea++}T.appendChild(V);ca.appendChild(P);C(H,K.VISIO_PAGES+"pages.xml",T);C(H,K.VISIO_PAGES+"_rels/pages.xml.rels",ca)}function Q(H,-N){N=K.VISIO_PAGES_RELS+"page"+N+".xml.rels";var J=mxUtils.createXmlDocument(),M=z(J,K.RELS_XMLNS,"Relationships"),T=z(J,K.RELS_XMLNS,"Relationship");T.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");T.setAttribute("Id","rId1");T.setAttribute("Target","../masters/master1.xml");M.appendChild(T);var ca=L.images;if(0<ca.length)for(var V=0;V<ca.length;V++)T=z(J,K.RELS_XMLNS,"Relationship"),T.setAttribute("Type",K.XMLNS_R+"/image"),T.setAttribute("Id","rId"+(V+2)),T.setAttribute("Target",-"../media/"+ca[V]),M.appendChild(T);J.appendChild(M);C(H,N,J)}var K=this,L=new mxVsdxCanvas2D,S={},R=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var N=function(la,Sa){la=la.model.getChildCells(la.model.root);T[Sa]=[];for(var Xa=0;Xa<la.length;Xa++)la[Xa].visible&&T[Sa].push({name:la[Xa].value||"Background",visible:la[Xa].visible,locked:la[Xa].style&&0<=la[Xa].style.indexOf("locked=1")})},J=new JSZip;L.init(J);S={};R=1;var M={},T={},ca=-{},V=null!=g.pages?g.pages.length:1;if(null!=g.pages){var P=function(la){la=la.getName();var Sa=g.editor.graph,Xa=m(Sa);M[la]=A(Sa,Xa);N(Sa,la);Q(J,sa+1);ca[la]=Xa},ea=g.editor.graph.getSelectionCells(),Y=g.currentPage;if(H)P(Y);else{for(var sa=0;sa<g.pages.length;sa++){var oa=g.pages[sa];g.currentPage!=oa&&g.selectPage(oa,!0);P(oa)}Y!=g.currentPage&&g.selectPage(Y,!0);g.editor.graph.setSelectionCells(ea)}}else{P=g.editor.graph;var Ra=m(P);M.Page1=A(P,Ra);N(P,"Page1");Q(J,1);ca.Page1=Ra}y(J,V);I(J,-M,T,ca);H=function(){J.generateAsync({type:"base64"}).then(function(la){g.spinner.stop();var Sa=g.getBaseFilename();g.saveData(Sa+".vsdx","vsdx",la,"application/vnd.visio2013",!0)})};0<L.filesLoading?L.onFilesLoaded=H:H()}return!0}catch(la){return console.log(la),g.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";-VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/";VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";-VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/";-VsdxExport.prototype.ARROWS_MAP={"none|1":0,"none|0":0,"open|1":1,"open|0":1,"block|1":4,"block|0":14,"classic|1":5,"classic|0":17,"oval|1":10,"oval|0":20,"diamond|1":11,"diamond|0":22,"blockThin|1":2,"blockThin|0":15,"dash|1":23,"dash|0":23,"ERone|1":24,"ERone|0":24,"ERmandOne|1":25,"ERmandOne|0":25,"ERmany|1":27,"ERmany|0":27,"ERoneToMany|1":28,"ERoneToMany|0":28,"ERzeroToMany|1":29,"ERzeroToMany|0":29,"ERzeroToOne|1":30,"ERzeroToOne|0":30,"openAsync|1":9,"openAsync|0":9};function mxVsdxCanvas2D(){mxAbstractCanvas2D.call(this);this.pageIndex=0}mxUtils.extend(mxVsdxCanvas2D,mxAbstractCanvas2D);mxVsdxCanvas2D.prototype.textEnabled=!0;mxVsdxCanvas2D.prototype.init=function(g){this.filesLoading=0;this.zip=g};mxVsdxCanvas2D.prototype.onFilesLoaded=function(){};mxVsdxCanvas2D.prototype.createElt=function(g){return null!=this.xmlDoc.createElementNS?this.xmlDoc.createElementNS(VsdxExport.prototype.XMLNS,g):this.xmlDoc.createElement(g)};-mxVsdxCanvas2D.prototype.createGeoSec=function(){null!=this.geoSec&&this.shape.appendChild(this.geoSec);var g=this.createElt("Section");g.setAttribute("N","Geometry");g.setAttribute("IX",this.geoIndex++);this.geoSec=g;this.geoStepIndex=1;this.lastMoveToY=this.lastMoveToX=this.lastY=this.lastX=0};mxVsdxCanvas2D.prototype.newShape=function(g,y,z){this.geoIndex=0;this.shape=g;this.cellState=y;this.xmGeo=y.cell.geometry;this.xmlDoc=z;this.shapeImg=this.geoSec=null;this.shapeType="Shape";this.createGeoSec()};-mxVsdxCanvas2D.prototype.newEdge=function(g,y,z){this.shape=g;this.cellState=y;this.xmGeo=y.cellBounds;this.xmlDoc=z};mxVsdxCanvas2D.prototype.endShape=function(){null!=this.shapeImg&&this.addForeignData(this.shapeImg.type,this.shapeImg.id)};mxVsdxCanvas2D.prototype.newPage=function(){this.images=[];this.pageIndex++};mxVsdxCanvas2D.prototype.getShapeType=function(){return this.shapeType};mxVsdxCanvas2D.prototype.getShapeGeo=function(){return this.geoSec};-mxVsdxCanvas2D.prototype.createCellElemScaled=function(g,y,z){return this.createCellElem(g,y/VsdxExport.prototype.CONVERSION_FACTOR,z)};mxVsdxCanvas2D.prototype.createCellElem=function(g,y,z){var B=this.createElt("Cell");B.setAttribute("N",g);B.setAttribute("V",y);z&&B.setAttribute("F",z);return B};-mxVsdxCanvas2D.prototype.createRowScaled=function(g,y,z,B,m,h,b,a,c,d,f,k,n,q){return this.createRowRel(g,y,z/VsdxExport.prototype.CONVERSION_FACTOR,B/VsdxExport.prototype.CONVERSION_FACTOR,m/VsdxExport.prototype.CONVERSION_FACTOR,h/VsdxExport.prototype.CONVERSION_FACTOR,b/VsdxExport.prototype.CONVERSION_FACTOR,a/VsdxExport.prototype.CONVERSION_FACTOR,c,d,f,k,n,q)};-mxVsdxCanvas2D.prototype.createRowRel=function(g,y,z,B,m,h,b,a,c,d,f,k,n,q){var t=this.createElt("Row");t.setAttribute("T",g);t.setAttribute("IX",y);t.appendChild(this.createCellElem("X",z,c));t.appendChild(this.createCellElem("Y",B,d));null!=m&&isFinite(m)&&t.appendChild(this.createCellElem("A",m,f));null!=h&&isFinite(h)&&t.appendChild(this.createCellElem("B",h,k));null!=b&&isFinite(b)&&t.appendChild(this.createCellElem("C",b,n));null!=a&&isFinite(a)&&t.appendChild(this.createCellElem("D",a,q));-return t};mxVsdxCanvas2D.prototype.begin=function(){1<this.geoStepIndex&&this.createGeoSec()};-mxVsdxCanvas2D.prototype.rect=function(g,y,z,B){1<this.geoStepIndex&&this.createGeoSec();var m=this.state;z*=m.scale;B*=m.scale;var h=this.xmGeo;g=(g-h.x+m.dx)*m.scale;y=(h.height-y+h.y-m.dy)*m.scale;this.geoSec.appendChild(this.createRowScaled("MoveTo",this.geoStepIndex++,g,y));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,g+z,y));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,g+z,y-B));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,-g,y-B));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,g,y))};mxVsdxCanvas2D.prototype.roundrect=function(g,y,z,B,m,h){this.rect(g,y,z,B);this.shape.appendChild(this.createCellElemScaled("Rounding",m))};-mxVsdxCanvas2D.prototype.ellipse=function(g,y,z,B){1<this.geoStepIndex&&this.createGeoSec();var m=this.state;z*=m.scale;B*=m.scale;var h=this.xmGeo,b=h.height*m.scale,a=h.width*m.scale;g=(g-h.x+m.dx)*m.scale;y=b+(-y+h.y-m.dy)*m.scale;this.geoSec.appendChild(this.createRowScaled("Ellipse",this.geoStepIndex++,g+z/2,y-B/2,g,y-B/2,g+z/2,y,"Width*"+(g+z/2)/a,"Height*"+(y-B/2)/b,"Width*"+g/a,"Height*"+(y-B/2)/b,"Width*"+(g+z/2)/a,"Height*"+y/b))};-mxVsdxCanvas2D.prototype.moveTo=function(g,y){1<this.geoStepIndex&&this.createGeoSec();this.lastMoveToX=g;this.lastMoveToY=y;this.lastX=g;this.lastY=y;var z=this.xmGeo,B=this.state;g=(g-z.x+B.dx)*B.scale;y=(z.height-y+z.y-B.dy)*B.scale;var m=z.height*B.scale;z=z.width*B.scale;this.geoSec.appendChild(this.createRowRel("RelMoveTo",this.geoStepIndex++,g/z,y/m))};-mxVsdxCanvas2D.prototype.lineTo=function(g,y){this.lastX=g;this.lastY=y;var z=this.xmGeo,B=this.state;g=(g-z.x+B.dx)*B.scale;y=(z.height-y+z.y-B.dy)*B.scale;var m=z.height*B.scale;z=z.width*B.scale;this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,g/z,y/m))};-mxVsdxCanvas2D.prototype.quadTo=function(g,y,z,B){this.lastX=z;this.lastY=B;var m=this.state,h=this.xmGeo,b=h.height*m.scale,a=h.width*m.scale;g=(g-h.x+m.dx)*m.scale;y=(h.height-y+h.y-m.dy)*m.scale;z=(z-h.x+m.dx)*m.scale;B=(h.height-B+h.y-m.dy)*m.scale;g/=a;y/=b;z/=a;B/=b;this.geoSec.appendChild(this.createRowRel("RelQuadBezTo",this.geoStepIndex++,z,B,g,y))};-mxVsdxCanvas2D.prototype.curveTo=function(g,y,z,B,m,h){this.lastX=m;this.lastY=h;var b=this.state,a=this.xmGeo,c=a.height*b.scale,d=a.width*b.scale;g=(g-a.x+b.dx)*b.scale;y=(a.height-y+a.y-b.dy)*b.scale;z=(z-a.x+b.dx)*b.scale;B=(a.height-B+a.y-b.dy)*b.scale;m=(m-a.x+b.dx)*b.scale;h=(a.height-h+a.y-b.dy)*b.scale;g/=d;y/=c;z/=d;B/=c;m/=d;h/=c;this.geoSec.appendChild(this.createRowRel("RelCubBezTo",this.geoStepIndex++,m,h,g,y,z,B))};-mxVsdxCanvas2D.prototype.close=function(){this.lastMoveToX==this.lastX&&this.lastMoveToY==this.lastY||this.lineTo(this.lastMoveToX,this.lastMoveToY)};mxVsdxCanvas2D.prototype.addForeignData=function(g,y){var z=this.createElt("ForeignData");z.setAttribute("ForeignType","Bitmap");g=g.toUpperCase();"BMP"!=g&&z.setAttribute("CompressionType",g);g=this.createElt("Rel");g.setAttribute("r:id","rId"+y);z.appendChild(g);this.shape.appendChild(z);this.shapeType="Foreign"};-mxVsdxCanvas2D.prototype.convertSvg2Png=function(g,y,z,B,m){var h=this;this.filesLoading++;try{var b=document.createElement("canvas"),a=b.getContext("2d");B||(g=String.fromCharCode.apply(null,new Uint8Array(g)),g=window.btoa?btoa(g):Base64.encode(g,!0));B="data:image/svg+xml;base64,"+g;img=new Image;img.onload=function(){b.width=Math.max(this.width,y);b.height=Math.max(this.height,z);a.drawImage(this,0,0,b.width,b.height);try{m(b.toDataURL("image/png"))}catch(c){}h.filesLoading--;if(0==h.filesLoading)h.onFilesLoaded()};-img.onerror=function(){console.log("SVG2PNG conversion failed");try{m(g)}catch(c){}h.filesLoading--;if(0==h.filesLoading)h.onFilesLoaded()};img.src=B}catch(c){console.log("SVG2PNG conversion failed"+c.message);try{m(g)}catch(d){}this.filesLoading--;if(0==h.filesLoading)h.onFilesLoaded()}};-mxVsdxCanvas2D.prototype.image=function(g,y,z,B,m,h,b,a){var c=this;h=this.state;z*=h.scale;B*=h.scale;var d=this.pageIndex+"_image"+(this.images.length+1)+".";if(0==m.indexOf("data:")){var f=m.indexOf("base64,");b=m.substring(f+7);f=m.substring(11,f-1);0==f.indexOf("svg")?(f="png",d+=f,this.convertSvg2Png(b,z,B,!0,function(n){c.zip.file("visio/media/"+d,n.substring(22),{base64:!0})})):(d+=f,this.zip.file("visio/media/"+d,b,{base64:!0}))}else if(window.XMLHttpRequest){m=this.converter.convert(m);-this.filesLoading++;f=m.lastIndexOf(".");f=m.substring(f+1);var k=!1;0==f.indexOf("svg")&&(f="png",k=!0);d+=f;b=new XMLHttpRequest;b.open("GET",m,!0);b.responseType="arraybuffer";b.onreadystatechange=function(n){if(4==this.readyState&&(200==this.status&&(k?c.convertSvg2Png(this.response,z,B,!1,function(q){c.zip.file("visio/media/"+d,q.substring(22),{base64:!0})}):c.zip.file("visio/media/"+d,this.response)),c.filesLoading--,0==c.filesLoading))c.onFilesLoaded()};b.send()}this.images.push(d);this.shapeImg=-{type:f,id:this.images.length+1};m=this.xmGeo;g=(g-m.x+h.dx)*h.scale;y=(m.height-y+m.y-h.dy)*h.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",g));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",y-B));this.shape.appendChild(this.createCellElemScaled("ImgWidth",z));this.shape.appendChild(this.createCellElemScaled("ImgHeight",B))};-mxVsdxCanvas2D.prototype.text=function(g,y,z,B,m,h,b,a,c,d,f,k,n){var q=this;if(this.textEnabled&&null!=m){mxUtils.isNode(m)&&(m=mxUtils.getOuterHtml(m));0==z&&0==B&&(B=mxUtils.getSizeForString(m,q.cellState.style.fontSize,q.cellState.style.fontFamily),z=2*B.width,B=2*B.height);"html"==c&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(m=m.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=Graph.sanitizeHtml(m),-m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));d=this.state;f=this.xmGeo;z*=d.scale;B*=d.scale;var t=this.createElt("Section");t.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var C=this.createElt("Text"),I=0,Q=0,K=0,L=0,S=0,R=0,H=0,N=function(V,P,ea,Y,sa){var oa=V.fontSize,Ra=V.fontFamily,la=mxUtils.getSizeForString(sa,oa,Ra);a&&la.width>z&&(la=mxUtils.getSizeForString(sa,oa,Ra,z));V.blockElem?(S+=la.width,K=Math.min(Math.max(K,S),-z),S=0,R=Math.max(R,la.height),L+=R+H,H=R,R=0):(S+=la.width,K=Math.min(Math.max(K,S),z),R=Math.max(R,la.height),L=Math.max(L,R));la=q.createElt("Row");la.setAttribute("IX",I);V.fontColor&&la.appendChild(q.createCellElem("Color",mxUtils.rgba2hex(V.fontColor)));oa&&la.appendChild(q.createCellElemScaled("Size",.97*oa));Ra&&la.appendChild(q.createCellElem("Font",Ra));oa=0;V.bold&&(oa|=17);V.italic&&(oa|=34);V.underline&&(oa|=4);la.appendChild(q.createCellElem("Style",oa));la.appendChild(q.createCellElem("Case",-"0"));la.appendChild(q.createCellElem("Pos","0"));la.appendChild(q.createCellElem("FontScale","1"));la.appendChild(q.createCellElem("Letterspace","0"));P.appendChild(la);P=q.createElt("Row");P.setAttribute("IX",Q);switch(V.align){case "left":oa=0;break;case "center":oa=1;break;case "right":oa=2;break;case "start":oa=0;break;case "end":oa=2;break;case "justify":oa=0;break;default:oa=1}P.appendChild(q.createCellElem("HorzAlign",oa));ea.appendChild(P);ea=q.createElt("cp");ea.setAttribute("IX",I++);Y.appendChild(ea);-V=q.xmlDoc.createTextNode(sa+(V.blockElem?"\n":""));Y.appendChild(V)},J=function(V,P){P=P||{};for(var ea=0;ea<V.length;ea++){var Y=V[ea];if(3==Y.nodeType){var sa=q.cellState.style.fontStyle;sa={fontColor:P.fontColor||q.cellState.style.fontColor,fontSize:P.fontSize||q.cellState.style.fontSize,fontFamily:P.fontFamily||q.cellState.style.fontFamily,align:P.align||q.cellState.style.align,bold:P.bold||sa&1,italic:P.italic||sa&2,underline:P.underline||sa&4};var oa=!1;ea+1<V.length&&"BR"==V[ea+1].nodeName.toUpperCase()&&-(oa=!0,ea++);N(sa,t,A,C,(P.OL?P.LiIndex+". ":"")+Y.textContent+(oa?"\n":""))}else if(1==Y.nodeType){oa=Y.nodeName.toUpperCase();var Ra=Y.childNodes.length;sa=window.getComputedStyle(Y,null);sa={bold:"bold"==sa.getPropertyValue("font-weight")||P.bold,italic:"italic"==sa.getPropertyValue("font-style")||P.italic,underline:0<=sa.getPropertyValue("text-decoration").indexOf("underline")||P.underline,align:sa.getPropertyValue("text-align"),fontColor:sa.getPropertyValue("color"),fontSize:parseFloat(sa.getPropertyValue("font-size")),-fontFamily:sa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==sa.getPropertyValue("display")||"BR"==oa||"LI"==oa,OL:P.OL,LiIndex:P.LiIndex};if("UL"==oa){var la=q.createElt("Row");la.setAttribute("IX",Q);la.appendChild(q.createCellElem("HorzAlign","0"));la.appendChild(q.createCellElem("Bullet","1"));A.appendChild(la);la=q.createElt("pp");la.setAttribute("IX",Q++);C.appendChild(la)}else"OL"==oa?sa.OL=!0:"LI"==oa&&(sa.LiIndex=ea+1);0<Ra?(J(Y.childNodes,sa),"UL"==oa&&(la=q.createElt("Row"),-la.setAttribute("IX",Q),la.appendChild(q.createCellElem("Bullet","0")),A.appendChild(la),la=q.createElt("pp"),la.setAttribute("IX",Q++),C.appendChild(la)),N(sa,t,A,C,"")):N(sa,t,A,C,(P.OL?P.LiIndex+". ":"")+Y.textContent)}}};"html"==c&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&J(m.childNodes,{})):N({fontColor:q.cellState.style.fontColor,fontSize:q.cellState.style.fontSize,fontFamily:q.cellState.style.fontFamily},t,A,C,m);c=m=0;B=Math.max(B,-L);z=Math.max(z,K);n=z/2;var M=B/2,T=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),ca=T*Math.PI/180;switch(h){case "right":0!=T?(g-=n*Math.cos(ca),y-=n*Math.sin(ca)):m=K/2;break;case "left":0!=T?(g+=n*Math.cos(ca),y+=n*Math.sin(ca)):m=-K/2}switch(b){case "top":0!=T?(g+=M*Math.sin(ca),y+=M*Math.cos(ca)):c=L/2;break;case "bottom":0!=T?(g-=M*Math.sin(ca),y-=M*Math.cos(ca)):c=-L/2}g=(g-f.x+d.dx)*d.scale;y=(f.height-y+f.y-d.dy)*d.scale;this.shape.appendChild(this.createCellElemScaled("TxtPinX",-g));this.shape.appendChild(this.createCellElemScaled("TxtPinY",y));this.shape.appendChild(this.createCellElemScaled("TxtWidth",z));this.shape.appendChild(this.createCellElemScaled("TxtHeight",B));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",n+m));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",M+c));k-=T;0!=k&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-k)*Math.PI/180));this.shape.appendChild(t);this.shape.appendChild(A);this.shape.appendChild(C)}};-mxVsdxCanvas2D.prototype.rotate=function(g,y,z,B,m){0!=g&&(y=this.state,B+=y.dx,m+=y.dy,B*=y.scale,m*=y.scale,this.shape.appendChild(this.createCellElem("Angle",(360-g)*Math.PI/180)),y.rotation+=g,y.rotationCx=B,y.rotationCy=m)};mxVsdxCanvas2D.prototype.stroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","1"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};-mxVsdxCanvas2D.prototype.fill=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","1"))};mxVsdxCanvas2D.prototype.fillAndStroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};function BmpDecoder(g,y){this.pos=0;this.buffer=g;this.is_with_alpha=!!y;if(66!=this.buffer[0]&&77!=this.buffer[1])throw Error("Invalid BMP File");this.pos+=2;this.parseHeader();this.parseBGR()}-BmpDecoder.prototype.parseHeader=function(){var g=this.buffer;this.fileSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.reserved=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.offset=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.headerSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.width=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];-this.pos+=4;this.height=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.planes=g[this.pos+1]<<8|g[this.pos];this.pos+=2;this.bitPP=g[this.pos+1]<<8|g[this.pos];this.pos+=2;this.compress=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.rawSize=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.hr=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.vr=g[this.pos+3]<<24|g[this.pos+-2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.colors=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;this.importantColors=g[this.pos+3]<<24|g[this.pos+2]<<16|g[this.pos+1]<<8|g[this.pos];this.pos+=4;16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15);if(15>this.bitPP){g=0===this.colors?1<<this.bitPP:this.colors;this.palette=Array(g);for(var y=0;y<g;y++){var z=this.buffer[this.pos++],B=this.buffer[this.pos++],m=this.buffer[this.pos++],h=this.buffer[this.pos++];-this.palette[y]={red:m,green:B,blue:z,quad:h}}}};BmpDecoder.prototype.parseBGR=function(){this.pos=this.offset;try{var g="bit"+this.bitPP,y=document.createElement("canvas").getContext("2d").createImageData(this.width,this.height);this.imageData=y;this.data=y.data;this[g]()}catch(z){console.log("bit decode error:"+z)}};-BmpDecoder.prototype.bit1=function(){for(var g=Math.ceil(this.width/8),y=g%4,z=this.height-1;0<=z;z--){for(var B=0;B<g;B++)for(var m=this.buffer[this.pos++],h=z*this.width*4+32*B,b=0;8>b;b++)if(8*B+b<this.width){var a=this.palette[m>>7-b&1];this.data[h+4*b]=a.red;this.data[h+4*b+1]=a.green;this.data[h+4*b+2]=a.blue;this.data[h+4*b+3]=255}else break;0!=y&&(this.pos+=4-y)}};-BmpDecoder.prototype.bit4=function(){for(var g=Math.ceil(this.width/2),y=g%4,z=this.height-1;0<=z;z--){for(var B=0;B<g;B++){var m=this.buffer[this.pos++],h=z*this.width*4+8*B,b=m&15;m=this.palette[m>>4];this.data[h]=m.red;this.data[h+1]=m.green;this.data[h+2]=m.blue;this.data[h+3]=255;if(2*B+1>=this.width)break;m=this.palette[b];this.data[h+4]=m.red;this.data[h+4+1]=m.green;this.data[h+4+2]=m.blue;this.data[h+4+3]=255}0!=y&&(this.pos+=4-y)}};-BmpDecoder.prototype.bit8=function(){for(var g=this.width%4,y=this.height-1;0<=y;y--){for(var z=0;z<this.width;z++){var B=this.buffer[this.pos++],m=y*this.width*4+4*z;B<this.palette.length?(B=this.palette[B],this.data[m]=B.red,this.data[m+1]=B.green,this.data[m+2]=B.blue):(this.data[m]=255,this.data[m+1]=255,this.data[m+2]=255);this.data[m+3]=255}0!=g&&(this.pos+=4-g)}};-BmpDecoder.prototype.bit15=function(){var g=2*this.width%4;0!=g&&(g=4-g);for(var y=this.height-1;0<=y;y--){for(var z=0;z<this.width;z++){var B=this.buffer[this.pos+1]<<8|this.buffer[this.pos];this.pos+=2;var m=(B&31)/31*255|0,h=(B>>5&31)/31*255|0,b=B>>15?255:0,a=y*this.width*4+4*z;this.data[a]=(B>>10&31)/31*255|0;this.data[a+1]=h;this.data[a+2]=m;this.data[a+3]=b}this.pos+=g}};-BmpDecoder.prototype.bit16=function(){var g=2*this.width%4;0!=g&&(g=4-g);for(var y=this.height-1;0<=y;y--){for(var z=0;z<this.width;z++){var B=this.buffer[this.pos+1]<<8|this.buffer[this.pos];this.pos+=2;var m=(B&31)/31*255|0,h=(B>>5&31)/31*255|0,b=y*this.width*4+4*z;this.data[b]=(B>>10&31)/31*255|0;this.data[b+1]=h;this.data[b+2]=m;this.data[b+3]=255}this.pos+=g}};-BmpDecoder.prototype.bit24=function(){var g=3*this.width%4;0!=g&&(g=4-g);for(var y=this.height-1;0<=y;y--){for(var z=0;z<this.width;z++){var B=this.buffer[this.pos++],m=this.buffer[this.pos++],h=this.buffer[this.pos++],b=y*this.width*4+4*z;this.data[b]=h;this.data[b+1]=m;this.data[b+2]=B;this.data[b+3]=255}this.pos+=g}};-BmpDecoder.prototype.bit32=function(){for(var g=this.height-1;0<=g;g--)for(var y=0;y<this.width;y++){var z=this.buffer[this.pos++],B=this.buffer[this.pos++],m=this.buffer[this.pos++],h=this.buffer[this.pos++],b=g*this.width*4+4*y;this.data[b]=m;this.data[b+1]=B;this.data[b+2]=z;this.data[b+3]=h}};BmpDecoder.prototype.getData=function(){return this.data};var __extends=this&&this.__extends||function(g,y){function z(){this.constructor=g}for(var B in y)y.hasOwnProperty(B)&&(g[B]=y[B]);g.prototype=null===y?Object.create(y):(z.prototype=y.prototype,new z)},com;-(function(g){(function(y){(function(z){var B=function(){function m(b){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.layerNames=[];this.debugPaths=!1;this.vsdxModel=null;this.editorUi=b;this.shapeIndexShift=0}function h(b,a,c,d,f){b=c.createLabelSubShape(b,a);null!=b&&(0!==d&&(a=b.getStyle().match(/;rotation=(\d+\.*\d+)/),-null!=a&&(d+=parseFloat(a[1])),b.setStyle(b.getStyle().replace(/;rotation=(\d+\.*\d+)/,"")+";rotation="+(60<d&&240>d?(d+180)%360:d))),d=b.getGeometry(),d.x=0,d.y=0,d.relative=!0,f=f||new mxPoint(0,0),d.offset=new mxPoint(f.x-d.width/2,f.y-d.height/2))}m.vsdxPlaceholder_$LI$=function(){null==m.vsdxPlaceholder&&(m.vsdxPlaceholder=window.atob?atob("dmlzaW8="):Base64.decode("dmlzaW8=",!0));return m.vsdxPlaceholder};m.parsererrorNS_$LI$=function(){m.parsererrorNS=mxConstants.NS_XHTML;return m.parsererrorNS};-m.parseXml=function(b){try{var a=mxUtils.parseXml(b);return 0<a.getElementsByTagNameNS(m.parsererrorNS,"parsererror").length?null:a}catch(c){return null}};m.decodeUTF16LE=function(b){for(var a="",c=0;c<b.length;c+=2)a+=String.fromCharCode(b.charCodeAt(c)|b.charCodeAt(c+1)<<8);return a};m.prototype.scaleGraph=function(b,a){if(1!==a){b=b.getModel();for(var c in b.cells){var d=b.cells[c],f=b.getGeometry(d);if(null!=f&&(this.scaleRect(f,a),this.scaleRect(f.alternateBounds,a),b.isEdge(d)&&(this.scalePoint(f.sourcePoint,-a),this.scalePoint(f.targetPoint,a),this.scalePoint(f.offset,a),d=f.points,null!=d)))for(f=0;f<d.length;f++)this.scalePoint(d[f],a)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&"}];m.prototype.decodeVsdx=function(b,a,c,d){function f(K,L,S){function R(){C++;I();L++;L==H&&f(K,L,S)}for(var H=Math.min(L+Q,K.length),N=L;N<H;N++)(function(J){function M(ca){var V=new FormData;V.append("img",ca,J.name);V.append("inputformat","emf");V.append("outputformat","png");var P=new XMLHttpRequest;-P.open("POST",EMF_CONVERT_URL);P.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(P);P.onreadystatechange=mxUtils.bind(this,function(){if(4==P.readyState)if(200<=P.status&&299>=P.status)try{var ea=new FileReader;ea.readAsDataURL(P.response);ea.onloadend=function(){var Y=ea.result.indexOf(",")+1;S[J.name]=ea.result.substr(Y);R()}}catch(Y){console.log(Y),R()}else T++,3>T?M(ca):R()});P.send(V)}var T=0;J.async("blob").then(M)})(K[N])}var k=this,n={},q={},t=function(){function K(){H=H.concat(k.RESPONSE_END);-a&&a(H)}for(var L=m.vsdxPlaceholder+"/document.xml",S=n[L]?n[L]:null,R=S.firstChild;null!=R&&1!=R.nodeType;)R=R.nextSibling;if(null!=R&&1==R.nodeType)k.importNodes(S,R,L,n);else return null;k.vsdxModel=new g.mxgraph.io.vsdx.mxVsdxModel(S,n,q);L=k.vsdxModel.getPages();var H=k.RESPONSE_HEADER;var N=function(ca){null==ca.entries&&(ca.entries=[]);return ca.entries}(L);m.pageTitleMap={};m.pageIdsSet={};try{for(L=0;L<N.length;L++){var J=N[L].getValue();m.pageTitleMap[J.getPageName()]=J.getPageNameU();m.pageIdsSet[J.getPageNameU()]=-!0}}catch(ca){}var M=function(ca,V){var P=N[ca].getValue(),ea=T.createMxGraph();ea.getModel().beginUpdate();T.importPage(P,ea,ea.getDefaultParent(),!0);T.scaleGraph(ea,P.getPageScale()/P.getDrawingScale());ea.getModel().endUpdate();T.postImportPage(P,ea,function(){T.sanitiseGraph(ea);H=H.concat(k.RESPONSE_DIAGRAM_START);H=H.concat(k.processPage(ea,P));H=H.concat(k.RESPONSE_DIAGRAM_END);ca<N.length-1?M(ca+1,V):V()})},T=k;0<N.length?M(0,K):K()},A=0,C=0,I=function(){if(C==A)try{t()}catch(K){console.log(K),-null!=d?d(K):a("")}},Q=window.EMF_CHUNK_SIZE||10;JSZip.loadAsync(b).then(function(K){if(0==Object.keys(K.files).length)null!=d&&d();else{var L=[];K.forEach(function(S,R){var H=R.name;S=H.toLowerCase();var N=S.length;S.indexOf(".xml")==N-4||S.indexOf(".rels")==N-5?(A++,R.async("string").then(function(J){if(0!==J.length){65279==J.charCodeAt(0)&&(J=J.substring(1));var M=m.parseXml(J);if(null==M)if(0===J.charCodeAt(1)&&0===J.charCodeAt(3)&&0===J.charCodeAt(5))M=m.parseXml(m.decodeUTF16LE(J));else{for(M=-0;M<m.incorrectXMLReqExp.length;M++)m.incorrectXMLReqExp[M].regExp.test(J)&&(J=J.replace(m.incorrectXMLReqExp[M].regExp,m.incorrectXMLReqExp[M].repl));M=m.parseXml(J)}null!=M&&(M.vsdxFileName=H,n[H]=M)}C++;I()})):0===S.indexOf(m.vsdxPlaceholder+"/media")&&(A++,function(J,M){var T=J.length-M.length;J=J.indexOf(M,T);return-1!==J&&J===T}(S,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?L.push(R):(C++,I()):function(J,M){var T=J.length-M.length;J=J.indexOf(M,T);return-1!==J&&J===T}(S,".bmp")?JSZip.support.uint8array&&-R.async("uint8array").then(function(J){J=new BmpDecoder(J);var M=document.createElement("canvas");M.width=J.width;M.height=J.height;M.getContext("2d").putImageData(J.imageData,0,0);J=M.toDataURL("image/jpeg");q[H]=J.substr(23);C++;I()}):R.async("base64").then(function(J){q[H]=J;C++;I()}))});f(L,0,q)}},function(K){null!=d&&d(K)})};m.prototype.createMxGraph=function(){var b=new Graph;b.setExtendParents(!1);b.setExtendParentsOnAdd(!1);b.setConstrainChildren(!1);b.setHtmlLabels(!0);b.getModel().maintainEdgeParent=-!1;return b};m.prototype.processPage=function(b,a){b=(new mxCodec).encode(b.getModel());b.setAttribute("style","default-style2");b=mxUtils.getXml(b);var c="";if(null!=a){var d=mxUtils.htmlEntities(a.getPageName())+(a.isBackground()?" (Background)":"");a=mxUtils.htmlEntities(a.getPageNameU());c+='<diagram name="'+d+'" id="'+a.replace(/\s/g,"_")+'">'}return c+=Graph.compress(b)};m.prototype.scalePoint=function(b,a){null!=b&&(b.x*=a,b.y*=a);return b};m.prototype.scaleRect=function(b,a){null!=b&&(b.x*=-a,b.y*=a,b.height*=a,b.width*=a);return b};m.prototype.importNodes=function(b,a,c,d){var f=c.lastIndexOf("/"),k=c,n=c;if(-1!==f&&(k=c.substring(0,f),n=c.substring(f+1,c.length),c=function(C,I){return C[I]?C[I]:null}(d,k+"/_rels/"+n+".rels"),null!=c)){var q=c.getElementsByTagName("Relationship");c={};for(f=0;f<q.length;f++){n=q.item(f);var t=n.getAttribute("Id");n=n.getAttribute("Target");c[t]=n}a=a.getElementsByTagName("Rel");for(f=0;f<a.length;f++)if(q=a.item(f),n=function(C,I){return C[I]?C[I]:-null}(c,q.getAttribute("r:id")),n=k+"/"+n,null!=n&&(t=d[n]?d[n]:null,null!=t)){q=q.parentNode;for(t=t.firstChild;null!=t&&1!=t.nodeType;)t=t.nextSibling;if(null!=t&&1==t.nodeType)for(t=t.firstChild;null!=t;){if(null!=t&&1==t.nodeType){var A=q.appendChild(b.importNode(t,!0));this.importNodes(b,A,n,d)}t=t.nextSibling}}}};m.prototype.layerIndexToNames=function(b){var a=[];if(b)for(var c=0;c<b.length;c++){var d=parseInt(b[c]);d<this.layerNames.length&&a.push(this.layerNames[d])}return 0<a.length?a:[mxResources.get("background")]};-m.prototype.importPage=function(b,a,c,d){var f=b.getBackPage();if(null!=f){a.getModel().setValue(a.getDefaultParent(),b.getPageName());var k=new mxCell(f.getPageName());a.addCell(k,a.getModel().getRoot(),0,null,null);this.importPage(f,a,a.getDefaultParent())}var n=b.getLayers();k=b.getShapes();f=[];for(var q=0;q<n.length;q++){var t=n[q],A=t.Name.replace(/\s/g,"_");this.layerNames.push(A);0==t.Visible&&f.push(A)}t=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<-C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(k));k=b.getPageDimensions().y;for(q=b.getId();t.hasNext();)n=t.next(),n=n.getValue(),A=this.addShape(a,n,c,q,k),n=this.layerIndexToNames(n.layerMember),null!=A&&null!=n&&a.addTagsForCells([A],n);for(b=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(b.getConnects()));b.hasNext();)n=b.next(),n=this.addConnectedEdge(a,-n.getValue(),q,k),null!=n&&function(C,I){null==C.entries&&(C.entries=[]);for(var Q=0;Q<C.entries.length;Q++)if(null!=C.entries[Q].key.equals&&C.entries[Q].key.equals(I)||C.entries[Q].key===I)return C.entries.splice(Q,1)[0]}(this.edgeShapeMap,n);for(b=function(C){var I=0;return{next:function(){return I<C.length?C[I++]:null},hasNext:function(){return I<C.length}}}(function(C){null==C.entries&&(C.entries=[]);return C.entries}(this.edgeShapeMap));b.hasNext();)n=b.next(),n.getKey().getPageNumber()===q&&-(t=this.addUnconnectedEdge(a,function(C,I){null==C.entries&&(C.entries=[]);for(var Q=0;Q<C.entries.length;Q++)if(null!=C.entries[Q].key.equals&&C.entries[Q].key.equals(I)||C.entries[Q].key===I)return C.entries[Q].value;return null}(this.parentsMap,n.getKey()),n.getValue(),k),n=this.layerIndexToNames(n.getValue().layerMember),null!=n&&a.addTagsForCells([t],n));if(0<this.layerNames.length){b=a.getAllTags();q=!1;for(n=0;n<this.layerNames.length;n++)if(0>mxUtils.indexOf(b,this.layerNames[n])){q=!0;break}q&&-(c=a.insertVertex(c,null,null,0,0,0,0),a.addTagsForCells([c],this.layerNames),c.setVisible(!1));a.setHiddenTags(f)}d||this.sanitiseGraph(a);return k};m.prototype.postImportPage=function(b,a,c){try{var d=function(q){if(null!=q){q=q.entries||[];for(var t=0;t<q.length;t++){var A=q[t].value||{};A.toBeCroppedImg&&k.push(A);d(A.getChildShapes())}}},f=this,k=[];d(b.getShapes());if(0<k.length){var n=function(q,t){function A(){q<k.length-1?n(q+1,t):t()}var C=k[q],I=C.toBeCroppedImg,Q=function(L,S){null==L.entries&&-(L.entries=[]);for(var R=0;R<L.entries.length;R++)if(null!=L.entries[R].key.equals&&L.entries[R].key.equals(S)||L.entries[R].key===S)return L.entries[R].value;return null}(f.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(b.Id,C.Id)),K=new Image;K.onload=function(){var L=I.iData,S=I.iType;try{var R=K.width/I.imgWidth,H=K.height/I.imgHeight,N=-I.imgOffsetX*R,J=(I.imgHeight-I.height+I.imgOffsetY)*H,M=document.createElement("canvas");M.width=I.width*R;M.height=I.height*H;var T=M.getContext("2d");T.fillStyle=-"#FFFFFF";T.fillRect(0,0,M.width,M.height);T.drawImage(K,N,J,M.width,M.height,0,0,M.width,M.height);L=M.toDataURL("image/jpeg").substr(23);S="jpg"}catch(ca){console.log(ca)}Q.style+=";image=data:image/"+S+","+L;A()};K.src="data:image/"+I.iType+";base64,"+I.iData;K.onerror=function(){Q.style+=";image=data:image/"+I.iType+","+I.iData;A()}};n(0,c)}else c()}catch(q){console.log(q),c()}};m.prototype.addShape=function(b,a,c,d,f){a.parentHeight=f;var k=g.mxgraph.io.vsdx.VsdxShape.getType(a.getShape());if(null!=-k&&(function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var n=a.getId();if(a.isVertex()){k=null;k=a.isGroup()?this.addGroup(b,a,c,d,f):this.addVertex(b,a,c,d,f);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=-q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),a);c=a.getHyperlink();c.pageLink?(d=c.pageLink,m.pageIdsSet[d]||null==m.pageTitleMap[d]||(d=m.pageTitleMap[d]+""),b.setLinkForCell(k,"data:page/id,"+d.replace(/\s/g,"_"))):c.extLink&&b.setLinkForCell(k,c.extLink);a=a.getProperties();-for(c=0;c<a.length;c++)try{b.setAttributeForCell(k,a[c].key,a[c].val)}catch(q){console.log('Attribute: "',a[c].key,'" with value "',a[c].val,'" not allowed in HTML')}return k}a.isGroup()&&this.addGroup(b,a,c,d,f,!0);a.setShapeIndex(b.getModel().getChildCount(c));(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},-getValue:function(){return this.value}})})(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),a);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,n),c)}return null};m.prototype.addGroup=function(b,-a,c,d,f,k){var n=a.getDimensions(),q=a.getMaster(),t=a.getStyleFromShape(),A=a.getGeomList();if(A.isNoFill()||k)t[mxConstants.STYLE_FILLCOLOR]="none",t[mxConstants.STYLE_GRADIENTCOLOR]="none";if(A.isNoLine()||k)t[mxConstants.STYLE_STROKECOLOR]="none";t.html="1";t[mxConstants.STYLE_WHITE_SPACE]="wrap";var C=g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"=");k=null;A=a.getChildShapes();k=null!=A&&0<function(K){null==K.entries&&(K.entries=[]);return K.entries.length}(A);t=a.isDisplacedLabel()||a.isRotatedLabel()||-k;k=a.getOriginPoint(f,!0);if(t)k=b.insertVertex(c,null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C);else{var I=a.noLabelGroup?null:a.getTextLabel();k=b.insertVertex(c,null,I,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),C)}c=k.geometry.height;for(A=function(K){var L=0;return{next:function(){return L<-K.length?K[L++]:null},hasNext:function(){return L<K.length}}}(function(K){null==K.entries&&(K.entries=[]);return K.entries}(A));A.hasNext();)if(C=A.next().getValue(),I=C.getId(),C.isVertex()){var Q=g.mxgraph.io.vsdx.VsdxShape.getType(C.getShape());null!=Q&&(function(K,L){return K&&K.equals?K.equals(L):K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(K,L){return K&&K.equals?K.equals(L):K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(K,L){return K&&K.equals?K.equals(L):-K===L}(Q,g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&C.isVertex()&&(C.propagateRotation(a.getRotation()),(Q=C.isGroup()?this.addGroup(b,C,k,d,n.y):this.addVertex(b,C,k,d,n.y))&&Q.geometry&&(c=Math.max(Q.geometry.height,c)));null==q&&function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,-new g.mxgraph.io.vsdx.ShapePageId(d,I),C)}else null==q?(function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),C),function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=-K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(d,I),k)):this.addUnconnectedEdge(b,k,C,f);if(k.children&&0==k.geometry.height&&0<c)for(k.geometry.height=c,f=0;f<k.children.length;f++)n=k.children[f],n.geometry&&(n.geometry.y+=c);t&&a.createLabelSubShape(b,k);b=a.getRotation();if(0!==b)for(f=-k.getGeometry(),q=f.width/2,t=f.height/2,f=0;f<k.getChildCount();f++)n=k.getChildAt(f),g.mxgraph.online.Utils.rotatedGeometry(n.getGeometry(),b,q,t);(function(K,L,S){null==K.entries&&(K.entries=[]);for(var R=0;R<K.entries.length;R++)if(null!=K.entries[R].key.equals&&K.entries[R].key.equals(L)||K.entries[R].key===L){K.entries[R].value=S;return}K.entries.push({key:L,value:S,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,-a.getId()),k);return k};m.rotatedEdgePoint=function(b,a,c,d){a=a*Math.PI/180;var f=Math.cos(a);a=Math.sin(a);var k=b.x-c,n=b.y-d;b.x=Math.round(k*f-n*a+c);b.y=Math.round(n*f+k*a+d)};m.prototype.addVertex=function(b,a,c,d,f){var k="",n=a.isDisplacedLabel()||a.isRotatedLabel();n||(k=a.getTextLabel());var q=a.getDimensions(),t=a.getStyleFromShape();t.html="1";var A=t.hasOwnProperty(mxConstants.STYLE_SHAPE)||t.hasOwnProperty("stencil");t.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&A||(t[mxConstants.STYLE_FILLCOLOR]=-"none");A||(t[mxConstants.STYLE_STROKECOLOR]="none");t.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&A||(t[mxConstants.STYLE_GRADIENTCOLOR]="none");t[mxConstants.STYLE_WHITE_SPACE]="wrap";f=a.getOriginPoint(f,!0);return A||null!=k?(t=g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"="),A=null,A=n?b.insertVertex(c,null,null,Math.floor(Math.round(100*f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t):b.insertVertex(c,null,k,Math.floor(Math.round(100*-f.x)/100),Math.floor(Math.round(100*f.y)/100),Math.floor(Math.round(100*q.x)/100),Math.floor(Math.round(100*q.y)/100),t),function(C,I,Q){null==C.entries&&(C.entries=[]);for(var K=0;K<C.entries.length;K++)if(null!=C.entries[K].key.equals&&C.entries[K].key.equals(I)||C.entries[K].key===I){C.entries[K].value=Q;return}C.entries.push({key:I,value:Q,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(d,a.getId()),A),a.setLabelOffset(A,-t),n&&a.createLabelSubShape(b,A),A):null};m.calculateAbsolutePoint=function(b){for(var a=0,c=0;null!=b;){var d=b.geometry;null!=d&&(a+=d.x,c+=d.y);b=b.parent}return new mxPoint(a,c)};m.prototype.processEdgeGeo=function(b,a){try{var c=b.geomList.geomList[0].rows;for(b=0;b<c.length;b++)if(c[b]instanceof g.mxgraph.io.vsdx.geometry.ArcTo){a.style+="jumpStyle=arc;";break}for(b=0;b<c.length;b++);}catch(d){}};m.prototype.addConnectedEdge=function(b,a,c,d){var f=a.getFromSheet();f=new g.mxgraph.io.vsdx.ShapePageId(c,-f);var k=function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.edgeShapeMap,f);if(null==k)return null;var n=function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.parentsMap,new g.mxgraph.io.vsdx.ShapePageId(c,-k.getId()));if(null!=n){var q=b.getModel().getGeometry(n);null!=q&&(d=q.height)}var t=k.getStartXY(d),A=k.getEndXY(d);q=k.getRoutingPoints(d,t,k.getRotation());this.rotateChildEdge(b.getModel(),n,t,A,q);var C=null,I=a.getSourceToSheet();I=null!=I?function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c,-I)):null;var Q=!0;if(null==I||0==I.geometry.width||0==I.geometry.height)I=b.insertVertex(n,null,null,Math.floor(Math.round(100*t.x)/100),Math.floor(Math.round(100*t.y)/100),0,0);else if(I.style&&-1==I.style.indexOf(";rotation=")){C=m.calculateAbsolutePoint(I);var K=m.calculateAbsolutePoint(n),L=I.geometry;C=new mxPoint((K.x+t.x-C.x)/L.width,(K.y+t.y-C.y)/L.height)}else Q=!1;t=null;a=a.getTargetToSheet();a=null!=a?function(H,N){null==H.entries&&(H.entries=[]);for(var J=0;J<H.entries.length;J++)if(null!=-H.entries[J].key.equals&&H.entries[J].key.equals(N)||H.entries[J].key===N)return H.entries[J].value;return null}(this.vertexMap,new g.mxgraph.io.vsdx.ShapePageId(c,a)):null;K=!0;null==a||0==a.geometry.width||0==a.geometry.height?a=b.insertVertex(n,null,null,Math.floor(Math.round(100*A.x)/100),Math.floor(Math.round(100*A.y)/100),0,0):a.style&&-1==a.style.indexOf(";rotation=")?(c=m.calculateAbsolutePoint(a),t=m.calculateAbsolutePoint(n),L=a.geometry,t=new mxPoint((t.x+A.x-c.x)/L.width,(t.y+A.y-c.y)/-L.height)):K=!1;c=k.getStyleFromEdgeShape(d);L=k.getRotation();A="";var S=k.isDisplacedLabel()||k.isRotatedLabel()||0!==L,R=k.getLblEdgeOffset(b.getView(),q);S||(A=k.getTextLabel(!0));A=b.insertEdge(n,null,A,I,a,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(c,"="));S?h(b,A,k,L,R):A.getGeometry().offset=R;null!=C&&b.setConnectionConstraint(A,I,!0,new mxConnectionConstraint(C,!1));Q&&q.shift();null!=t&&b.setConnectionConstraint(A,a,!1,new mxConnectionConstraint(t,!1));K&&q.pop();Q=b.getModel().getGeometry(A);-if(I.parent!=a.parent&&null!=n&&1!=n.id&&1==I.parent.id){a=C=0;do t=n.geometry,null!=t&&(C+=t.x,a+=t.y),n=n.parent;while(null!=n);A.parent=I.parent;for(n=0;n<q.length;n++)q[n].x+=C,q[n].y+=a}Q.points=q;c.hasOwnProperty("curved")&&function(H,N){return H&&H.equals?H.equals(N):H===N}(function(H,N){return H[N]?H[N]:null}(c,"curved"),"1")&&(Q=b.getModel().getGeometry(A),d=k.getControlPoints(d),Q.points=d);this.processEdgeGeo(k,A);k=this.layerIndexToNames(k.layerMember);null!=k&&b.addTagsForCells([A],k);-return f};m.prototype.addUnconnectedEdge=function(b,a,c,d){if(null!=a){var f=b.getModel().getGeometry(a);null!=f&&(d=f.height)}f=c.getStartXY(d);var k=c.getEndXY(d),n=c.getStyleFromEdgeShape(d),q=c.getRoutingPoints(d,f,c.getRotation()),t=c.getRotation();var A="";var C=c.isDisplacedLabel()||c.isRotatedLabel()||0!==t,I=c.getLblEdgeOffset(b.getView(),q);C||(A=c.getTextLabel(!0));0===c.getShapeIndex()?A=b.insertEdge(a,null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")):(A=b.createEdge(a,-null,A,null,null,g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(n,"=")),A=b.addEdge(A,a,null,null,c.getShapeIndex()+this.shapeIndexShift++));C?h(b,A,c,t,I):A.getGeometry().offset=I;this.rotateChildEdge(b.getModel(),a,f,k,q);a=b.getModel().getGeometry(A);q.pop();q.shift();a.points=q;a.setTerminalPoint(f,!0);a.setTerminalPoint(k,!1);n.hasOwnProperty("curved")&&function(Q,K){return Q&&Q.equals?Q.equals(K):Q===K}(function(Q,K){return Q[K]?Q[K]:null}(n,"curved"),"1")&&(a=b.getModel().getGeometry(A),b=c.getControlPoints(d),-a.points=b);this.processEdgeGeo(c,A);return A};m.prototype.rotateChildEdge=function(b,a,c,d,f){if(null!=a){var k=b.getGeometry(a);b=b.getStyle(a);if(null!=k&&null!=b&&(a=b.indexOf("rotation="),-1<a))for(b=parseFloat(b.substring(a+9,b.indexOf(";",a))),a=k.width/2,k=k.height/2,m.rotatedEdgePoint(c,b,a,k),m.rotatedEdgePoint(d,b,a,k),c=0;c<f.length;c++)m.rotatedEdgePoint(f[c],b,a,k)}};m.prototype.sanitiseGraph=function(b){var a=b.getModel().getRoot();this.sanitiseCell(b,a)};m.prototype.sanitiseCell=function(b,-a){for(var c=b.getModel(),d=c.getChildCount(a),f=[],k=0;k<d;k++){var n=c.getChildAt(a,k);this.sanitiseCell(b,n)&&f.push(n)}for(b=0;b<f.length;b++)c.remove(f[b]);f=a.geometry;null!=f&&(0>f.height&&(f.height=Math.abs(f.height),f.y-=f.height,a.style+=";flipV=1;"),0>f.width&&(f.width=Math.abs(f.width),f.x-=f.width,a.style+=";flipH=1;"));0<d&&(d=c.getChildCount(a));f=(new String(c.getValue(a))).toString();b=c.getStyle(a);return 0!==d||!c.isVertex(a)||null!=c.getValue(a)&&0!==f.length||null==b||-1==b.indexOf(mxConstants.STYLE_FILLCOLOR+-"=none")||-1==b.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=b.indexOf("image=")?!1:!0};return m}();z.mxVsdxCodec=B;B.__class="com.mxgraph.io.mxVsdxCodec"})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){var B=function(m){function h(b){var a=m.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=b;return a}__extends(h,m);h.prototype.decodeVssx=function(b,a,c,d){var f=this,k="<mxlibrary>[";this.decodeVsdx(b,function(n){k=k.concat(n);var q=f.vsdxModel.getMasterShapes(),t=function(L){var S=0;return{next:function(){return S<L.length?L[S++]:null},hasNext:function(){return S<L.length}}}(function(L){var S=-[];null==L.entries&&(L.entries=[]);for(var R=0;R<L.entries.length;R++)S.push(L.entries[R].value);return S}(f.vsdxModel.getPages())).next();if(null!=q){var A={str:"",toString:function(){return this.str}},C=0===n.length?"":",",I=function(L){return Object.keys(L).map(function(S){return L[S]})}(q);n=function(L){L=I[L];var S=Q.createMxGraph(),R=1;if(null!=L.pageSheet){var H=R=1,N=L.pageSheet.DrawingScale;null!=N&&(R=parseFloat(N.getAttribute("V"))||1);N=L.pageSheet.PageScale;null!=N&&(H=parseFloat(N.getAttribute("V"))||-1);R=H/R}H=!1;for(N=0;null!=L.firstLevelShapes&&N<L.firstLevelShapes.length;N++){var J=L.firstLevelShapes[N].getShape(),M=new g.mxgraph.io.vsdx.VsdxShape(t,J,!t.isEdge(J),q,null,Q.vsdxModel);J=null;if(M.isVertex()){Q.edgeShapeMap.entries=[];Q.parentsMap.entries=[];J=Q.addShape(S,M,S.getDefaultParent(),0,1169);M=function(P){null==P.entries&&(P.entries=[]);return P.entries}(Q.edgeShapeMap);for(var T=0;T<M.length;T++){var ca=M[T],V=function(P,ea){null==P.entries&&(P.entries=[]);for(var Y=0;Y<P.entries.length;Y++)if(null!=-P.entries[Y].key.equals&&P.entries[Y].key.equals(ea)||P.entries[Y].key===ea)return P.entries[Y].value;return null}(Q.parentsMap,ca.getKey());Q.addUnconnectedEdge(S,V,ca.getValue(),1169)}}else J=Q.addUnconnectedEdge(S,null,M,1169);H|=null!=J}if(H){Q.scaleGraph(S,R);R=Q.normalizeGraph(S);Q.sanitiseGraph(S);if(0===S.getModel().getChildCount(S.getDefaultParent()))return"continue";A.str=A.str.concat(C);A.str=A.str.concat('{"xml":"');S=m.prototype.processPage.call(Q,S,null);A.str=A.str.concat(S);A.str=-A.str.concat('","w":');A.str=A.str.concat(R.width);A.str=A.str.concat(',"h":');A.str=A.str.concat(R.height);A.str=A.str.concat(',"title":');L=L.getName();null==L&&(L="");L=mxUtils.htmlEntities(JSON.stringify(L));A.str=A.str.concat(L);A.str=A.str.concat("}");C=","}};for(var Q=f,K=0;K<I.length;K++)n(K);k=k.concat(A)}k=k.concat("]</mxlibrary>");if(a)try{a(k)}catch(L){null!=d?d(L):a("")}},c)};h.prototype.normalizeGeo=function(b){var a=b.getGeometry();a.x=0;a.y=0;var c=a.sourcePoint;if(b.isEdge()&&null!=-c){this.transPoint(a.targetPoint,c);this.transPoint(a.offset,c);b=a.points;if(null!=b)for(var d=0;d<b.length;d++)this.transPoint(b[d],c);this.transPoint(c,c)}return a};h.prototype.normalizeGraph=function(b){function a(C){null!=C&&(null==c?(c=C.x,d=C.y,f=C.x+(C.width||0),k=C.y+(C.height||0)):(c=Math.min(C.x,c),d=Math.min(C.y,d),f=Math.max(C.x+(C.width||0),f),k=Math.max(C.y+(C.height||0),k)))}var c,d,f,k,n;for(n in b.model.cells){var q=b.model.cells[n],t=q.geometry;if(null!=t&&1==q.parent.id)if(q.vertex)a(t);-else for(a(t.sourcePoint),a(t.targetPoint),q=t.points,t=0;null!=q&&t<q.length;t++)a(q[t])}var A={x:c,y:d};for(n in b.model.cells)if(q=b.model.cells[n],t=q.geometry,null!=t&&1==q.parent.id&&(t.x-=c,t.y-=d,q.isEdge()))for(this.transPoint(t.sourcePoint,A),this.transPoint(t.targetPoint,A),this.transPoint(t.offset,A),q=t.points,t=0;null!=q&&t<q.length;t++)this.transPoint(q[t],A);return{width:f-c,height:k-d}};h.prototype.transPoint=function(b,a){null!=b&&(b.x-=a.x,b.y-=a.y)};h.prototype.processPage=function(b,-a){var c=b.getModel(),d="",f="";for(q in c.cells){var k=c.cells[q];if(b.getDefaultParent()===c.getParent(k)){d=d.concat(f);d=d.concat('{"xml":"');var n=this.createMxGraph();n.addCell(k);this.sanitiseGraph(n);if(0===n.getModel().getChildCount(n.getDefaultParent()))return"continue";f=this.normalizeGeo(k);n=m.prototype.processPage.call(this,n,null);d=d.concat(n);d=d.concat('","w":');d=d.concat(f.width);d=d.concat(',"h":');d=d.concat(f.height);d=d.concat(',"title":"');f=c.getStyle(k);k="";if(null!=f&&-(n=f.indexOf(g.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID),0<=n)){n+=g.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID.length+1;var q=parseInt(f.substring(n,f.indexOf(";",n)));a:{f=this.vertexShapeMap;n=new g.mxgraph.io.vsdx.ShapePageId(a.getId(),q);null==f.entries&&(f.entries=[]);for(var t=0;t<f.entries.length;t++)if(null!=f.entries[t].key.equals&&f.entries[t].key.equals(n)||f.entries[t].key===n){f=f.entries[t].value;break a}f=null}null!=f&&(k=f.getName())}d=d.concat(k);d=d.concat('"}');f=","}}this.RESPONSE_DIAGRAM_START=-0<d.length?",":"";return d};return h}(g.mxgraph.io.mxVsdxCodec);z.mxVssxCodec=B;B.__class="com.mxgraph.io.mxVssxCodec"})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=c;this.y=d}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA=-function(){return this.formulaA};b.prototype.getFormulaE=function(){return this.formulaE};b.prototype.getIndex=function(){return this.index};return b}();m.Row=h;h.__class="com.mxgraph.io.vsdx.geometry.Row"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(c){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var c=parseFloat(a);if(isFinite(c))return c}}catch(d){}return null};b.getRowObj=function(a,c){var d=a.getAttribute("T"),f=b.getIndex(a);var k=(k=a.getAttribute("Del"))&&k.equals?k.equals("1"):"1"===k;if(!k){var n=null;f<=c.length&&(n=c[f-1]);var q=k=c=null,t=null,-A=null,C=null,I=null,Q=null;null!=n&&(c=n.x,k=n.y,q=n.getA(),t=n.getB(),A=n.getC(),C=n.getD(),Q=n.getFormulaA(),I=n.getFormulaE());a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(n=0;n<a.length;n++){var K=a[n],L=K.getAttribute("N"),S=K.getAttribute("V");switch(L){case "X":c=b.getDoubleVal(S);break;case "Y":k=b.getDoubleVal(S);break;case "A":q=b.getDoubleVal(S);Q=K.getAttribute("V");break;case "B":t=b.getDoubleVal(S);break;case "C":A=b.getDoubleVal(S);break;case "D":C=b.getDoubleVal(S);-break;case "E":I=S}}switch(d){case "MoveTo":return new g.mxgraph.io.vsdx.geometry.MoveTo(f,c,k);case "LineTo":return new g.mxgraph.io.vsdx.geometry.LineTo(f,c,k);case "ArcTo":return new g.mxgraph.io.vsdx.geometry.ArcTo(f,c,k,q);case "Ellipse":return new g.mxgraph.io.vsdx.geometry.Ellipse(f,c,k,q,t,A,C);case "EllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.EllipticalArcTo(f,c,k,q,t,A,C);case "InfiniteLine":return new g.mxgraph.io.vsdx.geometry.InfiniteLine(f,c,k,q,t);case "NURBSTo":return new g.mxgraph.io.vsdx.geometry.NURBSTo(f,-c,k,q,t,A,C,I);case "PolylineTo":return new g.mxgraph.io.vsdx.geometry.PolylineTo(f,c,k,Q);case "RelCubBezTo":return new g.mxgraph.io.vsdx.geometry.RelCubBezTo(f,c,k,q,t,A,C);case "RelEllipticalArcTo":return new g.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(f,c,k,q,t,A,C);case "RelLineTo":return new g.mxgraph.io.vsdx.geometry.RelLineTo(f,c,k);case "RelMoveTo":return new g.mxgraph.io.vsdx.geometry.RelMoveTo(f,c,k);case "RelQuadBezTo":return new g.mxgraph.io.vsdx.geometry.RelQuadBezTo(f,c,k,q,t);case "SplineKnot":return new g.mxgraph.io.vsdx.geometry.SplineKnot(f,-c,k,q);case "SplineStart":return new g.mxgraph.io.vsdx.geometry.SplineStart(f,c,k,q,t,A,C)}}return new g.mxgraph.io.vsdx.geometry.DelRow(f)};return b}();m.RowFactory=h;h.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(){this.colorElementMap={};this.fontElementMap={}}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0())};h.defaultColors_$LI$=function(){h.__static_initialize();null==h.defaultColors&&(h.defaultColors={});return h.defaultColors};h.__static_initializer_0=function(){h.defaultColors_$LI$()["0"]="#000000";h.defaultColors_$LI$()["1"]="#FFFFFF";h.defaultColors_$LI$()["2"]=-"#FF0000";h.defaultColors_$LI$()["3"]="#00FF00";h.defaultColors_$LI$()["4"]="#0000FF";h.defaultColors_$LI$()["5"]="#FFFF00";h.defaultColors_$LI$()["6"]="#FF00FF";h.defaultColors_$LI$()["7"]="#00FFFF";h.defaultColors_$LI$()["8"]="#800000";h.defaultColors_$LI$()["9"]="#008000";h.defaultColors_$LI$()["10"]="#000080";h.defaultColors_$LI$()["11"]="#808000";h.defaultColors_$LI$()["12"]="#800080";h.defaultColors_$LI$()["13"]="#008080";h.defaultColors_$LI$()["14"]="#C0C0C0";h.defaultColors_$LI$()["15"]="#E6E6E6";-h.defaultColors_$LI$()["16"]="#CDCDCD";h.defaultColors_$LI$()["17"]="#B3B3B3";h.defaultColors_$LI$()["18"]="#9A9A9A";h.defaultColors_$LI$()["19"]="#808080";h.defaultColors_$LI$()["20"]="#666666";h.defaultColors_$LI$()["21"]="#4D4D4D";h.defaultColors_$LI$()["22"]="#333333";h.defaultColors_$LI$()["23"]="#1A1A1A"};h.prototype.initialise=function(b,a){if(null!=b){a=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.COLORS);if(0<a.length){var c=a.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR_ENTRY),-d=c.length;for(a=0;a<d;a++){var f=c.item(a),k=f.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.INDEX);f=f.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.RGB);this.colorElementMap[k]=f}}a=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.FACE_NAMES);if(0<a.length)for(b=a.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.FACE_NAME),c=b.length,a=0;a<c;a++)k=b.item(a),d=k.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID),k=k.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FONT_NAME),-this.fontElementMap[d]=k}};h.prototype.getColor=function(b){var a=function(c,d){return c[d]?c[d]:null}(this.colorElementMap,b);return null==a&&(a=function(c,d){return c[d]?c[d]:null}(h.defaultColors_$LI$(),b),null==a)?"":a};h.prototype.getFont=function(b){var a=this.fontElementMap;b=a[b]?a[b]:null;return null==b?"":b};return h}();m.__static_initialized=!1;B.mxPropertiesManager=m;m.__class="com.mxgraph.io.vsdx.mxPropertiesManager"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||-(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b){this.sourceToSheet=this.fromSheet=null;this.sourceToPart=-1;this.targetToSheet=null;this.targetToPart=-1;this.endShape=this.fromCell=null;var a=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FROM_SHEET);this.fromSheet=null!=a&&0!==a.length?parseFloat(a):-1;a=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FROM_CELL);this.addFromCell(b,a)}h.prototype.addFromCell=function(b,a){var c=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TO_SHEET),d=-!0;null!=a&&function(f,k){return f&&f.equals?f.equals(k):f===k}(a,g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X)?(this.sourceToSheet=null!=c&&0!==c.length?parseFloat(c):-1,d=!0):null!=a&&function(f,k){return f&&f.equals?f.equals(k):f===k}(a,g.mxgraph.io.vsdx.mxVsdxConstants.END_X)?(this.targetToSheet=null!=c&&0!==c.length?parseFloat(c):-1,d=!1):null==this.sourceToSheet?(this.sourceToSheet=null!=c&&0!==c.length?parseFloat(c):-1,d=!0):null==this.targetToSheet&&(this.targetToSheet=null!=c&&0!==c.length?-parseFloat(c):-1,d=!1);this.findToPart(b,d)};h.prototype.findToPart=function(b,a){b=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TO_PART);b=null!=b&&0!==b.length?parseFloat(b):-1;a?this.sourceToPart=b:this.targetToPart=b};h.prototype.getFromSheet=function(){return this.fromSheet};h.prototype.getSourceToSheet=function(){return this.sourceToSheet};h.prototype.getTargetToSheet=function(){return this.targetToSheet};h.prototype.getSourceToPart=function(){return this.sourceToPart};h.prototype.getTargetToPart=-function(){return this.targetToPart};h.prototype.addConnect=function(b){this.endShape=b;var a=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FROM_CELL);this.addFromCell(b,a)};return h}();B.mxVsdxConnect=m;m.__class="com.mxgraph.io.vsdx.mxVsdxConnect"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(){}h.SET_VALUES_$LI$=function(){null==h.SET_VALUES&&(h.SET_VALUES=["a","b"]);return h.SET_VALUES};h.MY_SET_$LI$=function(){null==h.MY_SET&&(h.MY_SET=h.SET_VALUES_$LI$().slice(0).slice(0));return h.MY_SET};return h}();m.ANGLE="Angle";m.ARC_TO="ArcTo";m.BACKGROUND="Background";m.BACK_PAGE="BackPage";m.BEGIN_ARROW="BeginArrow";m.BEGIN_ARROW_SIZE="BeginArrowSize";m.BEGIN_X="BeginX";m.BEGIN_Y="BeginY";m.BOTTOM_MARGIN="BottomMargin";-m.BULLET="Bullet";m.CASE="Case";m.CHARACTER="Character";m.COLOR="Color";m.COLOR_ENTRY="ColorEntry";m.COLORS="Colors";m.COLOR_TRANS="ColorTrans";m.CONNECT="Connect";m.CONNECTS="Connects";m.CONNECTION="Connection";m.CONTROL="Control";m.DELETED="Del";m.DOCUMENT_SHEET="DocumentSheet";m.ELLIPSE="Ellipse";m.ELLIPTICAL_ARC_TO="EllipticalArcTo";m.END_ARROW="EndArrow";m.END_ARROW_SIZE="EndArrowSize";m.END_X="EndX";m.END_Y="EndY";m.FACE_NAME="FaceName";m.FACE_NAMES="FaceNames";m.FALSE="0";m.FILL="Fill";m.FILL_BKGND=-"FillBkgnd";m.FILL_BKGND_TRANS="FillBkgndTrans";m.FILL_FOREGND="FillForegnd";m.FILL_FOREGND_TRANS="FillForegndTrans";m.FILL_PATTERN="FillPattern";m.FILL_STYLE="FillStyle";m.FILL_GRADIENT_ENABLED="FillGradientEnabled";m.FLAGS="Flags";m.FLIP_X="FlipX";m.FLIP_Y="FlipY";m.FONT="Font";m.FONT_NAME="Name";m.FOREIGN="Foreign";m.FROM_CELL="FromCell";m.FROM_SHEET="FromSheet";m.GEOM="Geom";m.HEIGHT="Height";m.HORIZONTAL_ALIGN="HorzAlign";m.ID="ID";m.INDENT_FIRST="IndFirst";m.INDENT_LEFT="IndLeft";m.INDENT_RIGHT=-"IndRight";m.INDEX="IX";m.LEFT_MARGIN="LeftMargin";m.LETTER_SPACE="Letterspace";m.LINE="Line";m.LINE_COLOR="LineColor";m.LINE_COLOR_TRANS="LineColorTrans";m.LINE_PATTERN="LinePattern";m.LINE_STYLE="LineStyle";m.LINE_TO="LineTo";m.LINE_WEIGHT="LineWeight";m.LOC_PIN_X="LocPinX";m.LOC_PIN_Y="LocPinY";m.MASTER="Master";m.MASTER_SHAPE="MasterShape";m.MASTERS="Masters";m.MOVE_TO="MoveTo";m.NAME="Name";m.NAME_U="NameU";m.NO_LINE="NoLine";m.NURBS_TO="NURBSTo";m.PAGE="Page";m.PAGE_HEIGHT="PageHeight";m.PAGE_WIDTH=-"PageWidth";m.PAGES="Pages";m.PARAGRAPH="Paragraph";m.PIN_X="PinX";m.PIN_Y="PinY";m.POS="Pos";m.RGB="RGB";m.RIGHT_MARGIN="RightMargin";m.ROUNDING="Rounding";m.RTL_TEXT="RTLText";m.SIZE="Size";m.SHAPE="Shape";m.SHAPES="Shapes";m.SHAPE_SHDW_SHOW="ShapeShdwShow";m.SHDW_PATTERN="ShdwPattern";m.SPACE_AFTER="SpAfter";m.SPACE_BEFORE="SpBefore";m.SPACE_LINE="SpLine";m.STRIKETHRU="Strikethru";m.STYLE="Style";m.STYLE_SHEET="StyleSheet";m.STYLE_SHEETS="StyleSheets";m.TEXT="Text";m.TEXT_BKGND="TextBkgnd";m.TEXT_BLOCK=-"TextBlock";m.TEXT_STYLE="TextStyle";m.TO_PART="ToPart";m.TO_SHEET="ToSheet";m.TOP_MARGIN="TopMargin";m.TRUE="1";m.TXT_ANGLE="TxtAngle";m.TXT_HEIGHT="TxtHeight";m.TXT_LOC_PIN_X="TxtLocPinX";m.TXT_LOC_PIN_Y="TxtLocPinY";m.TXT_PIN_X="TxtPinX";m.TXT_PIN_Y="TxtPinY";m.TXT_WIDTH="TxtWidth";m.TYPE="Type";m.TYPE_GROUP="Group";m.TYPE_SHAPE="Shape";m.UNIQUE_ID="UniqueID";m.VERTICAL_ALIGN="VerticalAlign";m.WIDTH="Width";m.X_CON="XCon";m.X_DYN="XDyn";m.X="X";m.Y_CON="YCon";m.Y_DYN="YDyn";m.Y="Y";m.HIDE_TEXT=-"HideText";m.VSDX_ID="vsdxID";m.CONNECT_TO_PART_WHOLE_SHAPE=3;B.mxVsdxConstants=m;m.__class="com.mxgraph.io.vsdx.mxVsdxConstants"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1;this.rows=null;if((null!=b&&1==b.nodeType||null===b)&&(null!=a&&a instanceof Array||null===a))Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),null!=a&&this.index<a.length&&this.inheritGeo(a[this.index]),-this.processGeoElem(b);else if((null!=b&&1==b.nodeType||null===b)&&void 0===a)Array.prototype.slice.call(arguments),this.index=0,this.noQuickDrag=this.noSnap=this.noShow=this.noLine=this.noFill=!1,this.rows=null,this.index=0,this.index=this.getIndex$org_w3c_dom_Element(b),this.processGeoElem(b);else throw Error("invalid overload");}h.prototype.getIndex$org_w3c_dom_Element=function(b){try{return parseInt(b.getAttribute("IX"))||0}catch(a){return 0}};h.prototype.getIndex=function(b){if(null!=b&&1==b.nodeType||-null===b)return this.getIndex$org_w3c_dom_Element(b);if(void 0===b)return this.getIndex$();throw Error("invalid overload");};h.prototype.processGeoElem=function(b){var a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"Cell");b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"Row");if(null==this.rows){this.rows=[];for(var c=0;c<b.length;c++)this.rows.push(null)}for(c=0;c<a.length;c++){var d=a[c],f=d.getAttribute("N");d=d.getAttribute("V");switch(f){case "NoFill":this.noFill=-function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoLine":this.noLine=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoShow":this.noShow=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoSnap":this.noSnap=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d);break;case "NoQuickDrag":this.noQuickDrag=function(k,n){return k&&k.equals?k.equals(n):k===n}("1",d)}}a=this.rows.length;c=!1;for(f=0;f<b.length;f++)d=g.mxgraph.io.vsdx.geometry.RowFactory.getRowObj(b[f],-this.rows),d.getIndex()>a?(this.rows.push(d),c=!0):this.rows[d.getIndex()-1]=d;c&&function(k,n){n.compare?k.sort(function(q,t){return n.compare(q,t)}):k.sort(n)}(this.rows,new h.mxVsdxGeometry$0(this))};h.prototype.inheritGeo=function(b){this.noFill=b.noFill;this.noLine=b.noLine;this.noShow=b.noShow;this.noSnap=b.noSnap;this.noQuickDrag=b.noQuickDrag;var a=this.rows=[];a.push.apply(a,b.rows)};h.prototype.getIndex$=function(){return this.index};h.prototype.isNoFill=function(){return this.noFill};h.prototype.isNoLine=-function(){return this.noLine};h.prototype.isNoShow=function(){return this.noShow};h.prototype.isNoSnap=function(){return this.noSnap};h.prototype.isNoQuickDrag=function(){return this.noQuickDrag};h.prototype.getRows=function(){return this.rows};h.prototype.getPathXML=function(b,a){if(this.noShow)return"";for(var c="",d=0;d<this.rows.length;d++){var f=this.rows[d];c=c.concat(null!=f?f.handle(b,a):"")}return c};return h}();B.mxVsdxGeometry=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometry";(function(h){var b=-function(){function a(c){this.__parent=c}a.prototype.compare=function(c,d){c=null!=c?c.getIndex():0;d=null!=d?d.getIndex():0;return c-d};return a}();h.mxVsdxGeometry$0=b;b.__interfaces=["java.util.Comparator"]})(m=B.mxVsdxGeometry||(B.mxVsdxGeometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b){this.geomList=[];this.parentGeomList=null;this.sortNeeded=!1;if(null!=b){this.parentGeomList=b.geomList;var a=this.geomList;a.push.apply(a,b.geomList)}}h.prototype.addGeometry=function(b){b=new g.mxgraph.io.vsdx.mxVsdxGeometry(b,this.parentGeomList);b.getIndex()<this.geomList.length?this.geomList[b.getIndex()]=b:(this.geomList.push(b),this.sortNeeded=!0)};h.prototype.sort=function(){this.sortNeeded&&(function(b,a){a.compare?-b.sort(function(c,d){return a.compare(c,d)}):b.sort(a)}(this.geomList,new h.mxVsdxGeometryList$0(this)),this.sortNeeded=!1)};h.prototype.isNoShow=function(){for(var b=0;b<this.geomList.length;b++)if(!this.geomList[b].isNoShow())return!1;return!0};h.prototype.isNoFill=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&!a.isNoFill())return!1}return!0};h.prototype.isNoLine=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&-!a.isNoLine())return!1}return!0};h.prototype.hasGeom=function(){return 0!=this.geomList.length};h.prototype.getGeoCount=function(){for(var b=0,a=0;a<this.geomList.length;a++)this.geomList[a].isNoShow()||b++;return b};h.prototype.rotatedPoint=function(b,a,c){var d=b.y*a+b.x*c;b.x=b.x*a-b.y*c;b.y=d};h.prototype.getRoutingPoints=function(b,a,c){this.sort();b=[];b.push(a.clone());for(var d=0,f=0,k=0;k<this.geomList.length;k++){var n=this.geomList[k];if(!n.isNoShow()){n=n.getRows();for(var q=0;q<n.length;q++){var t=-n[q];if(0==q&&null!=t&&t instanceof g.mxgraph.io.vsdx.geometry.MoveTo)d=null!=t.x?t.x:0,f=null!=t.y?t.y:0;else if(null!=t&&t instanceof g.mxgraph.io.vsdx.geometry.LineTo){var A=null!=t.x?t.x:0;t=null!=t.y?t.y:0;var C=new mxPoint(A,t);0!==c&&(c=(360-c)*Math.PI/180,this.rotatedPoint(C,Math.cos(c),Math.sin(c)));A=(C.x-d)*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();A+=a.x;t=(C.y-f)*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()*-1;t+=a.y;A=Math.round(100*A)/100;t=Math.round(100*t)/100;-C.x=A;C.y=t;b.push(C)}}}}return b};h.prototype.getShapeXML=function(b){var a=new mxPoint(0,0),c={str:'<shape strokewidth="inherit"><foreground>',toString:function(){return this.str}},d=c.str.length;var f=this.processGeo(b,a,c,-1,!0);f=this.processGeo(b,a,c,f,!1);if(c.str.length===d)return"";this.closePath(c,f);c.str=c.str.concat("</foreground></shape>");return c.str};h.prototype.processGeo=function(b,a,c,d,f){var k=b.getRounding(),n="";0<k&&(n=' rounded="1" arcSize="'+k*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor+-'" ');for(k=0;k<this.geomList.length;k++){var q=this.geomList[k];if(f!==q.isNoFill()){var t=q.getPathXML(a,b);0!==t.length&&(q=this.getGeoStyle(q),-1===d?c.str=c.str.concat("<path"+n+">"):d!==q&&(this.closePath(c,d),c.str=c.str.concat("<path"+n+">")),c.str=c.str.concat(t),d=q)}}return d};h.prototype.getGeoStyle=function(b){var a=0;b.isNoLine()||b.isNoFill()?b.isNoFill()?b.isNoLine()||(a=3):a=2:a=1;return a};h.prototype.closePath=function(b,a){b.str=b.str.concat("</path>");1===a?b.str=b.str.concat("<fillstroke/>"):-2===a?b.str=b.str.concat("<fill/>"):3===a&&(b.str=b.str.concat("<stroke/>"))};return h}();B.mxVsdxGeometryList=m;m.__class="com.mxgraph.io.vsdx.mxVsdxGeometryList";(function(h){var b=function(){function a(c){this.__parent=c}a.prototype.compare=function(c,d){return c.getIndex()-d.getIndex()};return a}();h.mxVsdxGeometryList$0=b;b.__interfaces=["java.util.Comparator"]})(m=B.mxVsdxGeometryList||(B.mxVsdxGeometryList={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com=-{}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.masterShape=this.Id=null;this.childShapes={};this.master=b;this.Id=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID)||"";this.processMasterShapes(a)}h.prototype.processMasterShapes=function(b){for(var a=this.master.firstChild;null!=a;){if(null!=a&&1==a.nodeType&&function(k,n){return k&&k.equals?k.equals(n):k===n}(a.nodeName,"Rel")){var c=b.getRelationship(a.getAttribute("r:id"),g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/_rels/masters.xml.rels"),-d=c.getAttribute("Target");c=c.getAttribute("Type");var f=null;null!=c&&function(k,n){var q=k.length-n.length;k=k.indexOf(n,q);return-1!==k&&k===q}(c,"master")&&(f=b.getXmlDoc(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/"+d));if(null!=f)for(d=f.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(k,n){return k&&k.equals?k.equals(n):k===n}(d.nodeName,"MasterContents")){this.processMasterShape(d,b);break}d=d.nextSibling}}else if(1==a.nodeType&&"PageSheet"==a.nodeName)for(this.pageSheet={},-d=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Cell"),c=0;c<d.length;c++)this.pageSheet[d[c].getAttribute("N")]=d[c];a=a.nextSibling}};h.prototype.processMasterShape=function(b,a,c){c||(this.firstLevelShapes=[]);for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(q,t){return q&&q.equals?q.equals(t):q===t}(b.nodeName,"Shapes"))for(var d=b.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(q,t){return q&&q.equals?q.equals(t):q===t}(d.nodeName,"Shape")){var f=d,k=f.getAttribute("ID"),-n=new g.mxgraph.io.vsdx.Shape(f,a);this.masterShape=null==this.masterShape?n:this.masterShape;this.childShapes[k]=n;c||this.firstLevelShapes.push(n);this.processMasterShape(f,a,!0)}d=d.nextSibling}else if(null!=b&&1==b.nodeType&&"Connects"==b.nodeName)for(this.connects={},d=b.firstChild;null!=d;)null!=d&&1==d.nodeType&&"Connect"==d.nodeName&&(f=new g.mxgraph.io.vsdx.mxVsdxConnect(d),this.connects[f.getFromSheet()]=f),d=d.nextSibling;b=b.nextSibling}};h.prototype.getMasterShape=function(){return this.masterShape};-h.prototype.getSubShape=function(b){var a=this.childShapes;return a[b]?a[b]:null};h.prototype.getNameU=function(){return this.master.getAttribute("NameU")||""};h.prototype.getName=function(){return this.master.getAttribute("Name")||""};h.prototype.getUniqueID=function(){var b="";this.master.hasAttribute("UniqueID")&&(b=this.master.getAttribute("UniqueID"));return b};h.prototype.getId=function(){return this.Id};h.prototype.getMasterElement=function(){return this.master};return h}();B.mxVsdxMaster=-m;m.__class="com.mxgraph.io.vsdx.mxVsdxMaster"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a,c){this.pages=this.media=this.xmlDocs=null;this.masters={};this.stylesheets={};this.themes={};this.pm=this.rootElement=null;this.xmlDocs=a;this.media=c;for(b=b.firstChild;null!=b;){if(a=null!=b&&1==b.nodeType)a=b.tagName.toLowerCase(),c=g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"document",a=a&&a.equals?a.equals(c):a===c;if(a){this.rootElement=b;break}b=b.nextSibling}this.pm=new g.mxgraph.io.vsdx.mxPropertiesManager;-this.pm.initialise(this.rootElement,this);this.initStylesheets();this.initThemes();this.initMasters();this.initPages()}h.prototype.initThemes=function(){if(null!=this.xmlDocs)for(var b=!0,a=1;b;){var c=function(f,k){return f[k]?f[k]:null}(this.xmlDocs,g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/theme/theme"+a+".xml");if(null!=c){for(c=c.firstChild;null!=c;){if(null!=c&&1==c.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(c.tagName,"a:theme")){c=new g.mxgraph.io.vsdx.mxVsdxTheme(c);0>-c.getThemeIndex()&&c.processTheme();var d=function(f,k){null==f.entries&&(f.entries=[]);for(var n=0;n<f.entries.length;n++)if(null!=f.entries[n].key.equals&&f.entries[n].key.equals(k)||f.entries[n].key===k)return f.entries[n].value;return null}(this.themes,c.getThemeIndex());null!=d&&d.isPure()||function(f,k,n){null==f.entries&&(f.entries=[]);for(var q=0;q<f.entries.length;q++)if(null!=f.entries[q].key.equals&&f.entries[q].key.equals(k)||f.entries[q].key===k){f.entries[q].value=n;return}f.entries.push({key:k,-value:n,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.themes,c.getThemeIndex(),c);break}c=c.nextSibling}a++}else b=!1}};h.prototype.initStylesheets=function(){var b=this.rootElement.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEETS);if(0<b.length){b=b.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEET);for(var a=b.length,c=0;c<a;c++){var d=b.item(c),f=d.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID);d=new g.mxgraph.io.vsdx.Style(d,-this);this.stylesheets[f]=d}}for(b=function(k){var n=0;return{next:function(){return n<k.length?k[n++]:null},hasNext:function(){return n<k.length}}}(function(k){return Object.keys(k).map(function(n){return k[n]})}(this.stylesheets));b.hasNext();)d=b.next(),d.stylesheetRefs(this)};h.prototype.initMasters=function(){if(null!=this.xmlDocs){var b=function(c,d){return c[d]?c[d]:null}(this.xmlDocs,g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/masters.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=-b&&1==b.nodeType&&function(c,d){return c&&c.equals?c.equals(d):c===d}(b.tagName,g.mxgraph.io.vsdx.mxVsdxConstants.MASTERS)){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(c,d){return c&&c.equals?c.equals(d):c===d}(b.tagName,"Master")){var a=new g.mxgraph.io.vsdx.mxVsdxMaster(b,this);this.masters[a.getId()]=a}b=b.nextSibling}break}b=b.nextSibling}}};h.prototype.initPages=function(){if(null!=this.xmlDocs){var b=function(k,n){return k[n]?k[n]:null}(this.xmlDocs,g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+-"/pages/pages.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(k,n){return k&&k.equals?k.equals(n):k===n}(b.tagName,g.mxgraph.io.vsdx.mxVsdxConstants.PAGES)){var a=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.PAGE);if(null!=a&&0<a.length){this.pages={};b={};for(var c=a.length,d=0;d<c;d++){var f=a.item(d);f=this.createPage(f);f.isBackground()&&function(k,n,q){null==k.entries&&(k.entries=[]);for(var t=0;t<k.entries.length;t++)if(null!=k.entries[t].key.equals&&-k.entries[t].key.equals(n)||k.entries[t].key===n){k.entries[t].value=q;return}k.entries.push({key:n,value:q,getKey:function(){return this.key},getValue:function(){return this.value}})}(b,f.getId(),f);(function(k,n,q){null==k.entries&&(k.entries=[]);for(var t=0;t<k.entries.length;t++)if(null!=k.entries[t].key.equals&&k.entries[t].key.equals(n)||k.entries[t].key===n){k.entries[t].value=q;return}k.entries.push({key:n,value:q,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.pages,-f.getId(),f)}a=function(k){null==k.entries&&(k.entries=[]);return k.entries}(this.pages);for(c=0;c<a.length;c++)f=a[c].getValue(),d=f.getBackPageId(),null!=d&&(d=function(k,n){null==k.entries&&(k.entries=[]);for(var q=0;q<k.entries.length;q++)if(null!=k.entries[q].key.equals&&k.entries[q].key.equals(n)||k.entries[q].key===n)return k.entries[q].value;return null}(b,d),f.setBackPage(d))}break}b=b.nextSibling}}};h.prototype.getPages=function(){return this.pages};h.prototype.getThemes=function(){return this.themes};-h.prototype.getDefaultTheme=function(){null==this.defaultTheme&&null!=this.themes.entries&&0<this.themes.entries.length&&(this.defaultTheme=this.themes.entries[0].getValue());return this.defaultTheme};h.prototype.getRelationship=function(b,a){a=function(f,k){return f[k]?f[k]:null}(this.xmlDocs,a);if(null==a||null==b||0===b.length)return null;a=a.getElementsByTagName("Relationship");for(var c=0;c<a.length;c++){var d=a.item(c);if(function(f,k){return f&&f.equals?f.equals(k):f===k}(d.getAttribute("Id"),-b))return d}return null};h.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};h.prototype.createPage=function(b){return new g.mxgraph.io.vsdx.mxVsdxPage(b,this)};h.prototype.getPropertiesManager=function(){return this.pm};h.prototype.setPropertiesManager=function(b){this.pm=b};h.prototype.getMasterShapes=function(){return this.masters};h.prototype.setMasterShapes=function(b){this.masters=b};h.prototype.getStylesheet=function(b){var a=this.stylesheets;return a[b]?a[b]:null};-h.prototype.getXmlDoc=function(b){var a=this.xmlDocs;return a[b]?a[b]:null};h.prototype.getMedia=function(b){var a=this.media;return a[b]?a[b]:null};return h}();B.mxVsdxModel=m;m.__class="com.mxgraph.io.vsdx.mxVsdxModel"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.pageName=this.Id=null;this.__isBackground=!1;this.model=this.pageSheet=this.pageElement=this.backPage=this.backPageId=null;this.shapes={};this.connects={};this.connectsMap={};this.cellElements={};this.model=a;this.pageElement=b;this.layers=[];var c=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.BACKGROUND),d;if(d=null!=c)d=g.mxgraph.io.vsdx.mxVsdxConstants.TRUE,d=c&&c.equals?c.equals(d):c===d;this.__isBackground=-d?!0:!1;c=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.BACK_PAGE);null!=c&&0<c.length&&(this.backPageId=parseFloat(c));this.Id=parseFloat(b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID));this.pageName=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME)||"";this.pageNameU=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||this.pageName;c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"PageSheet");if(0<c.length){c=c[0];d=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(c,-"Cell");for(var f=0;f<d.length;f++){var k=d[f],n=k.getAttribute("N");this.cellElements[n]=k}c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(c,"Section");for(d=0;d<c.length;d++)if(f=c[d],n=f.getAttribute("N"),"Layer"==n)for(n=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(f,"Row"),f=0;f<n.length;f++){k=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(n[f],"Cell");for(var q={},t=0;t<k.length;t++)q[k[t].getAttribute("N")]=k[t].getAttribute("V");null==q.Name&&(q.Name="Layer "+-f);this.layers[parseInt(n[f].getAttribute("IX"))]=q}}this.parseNodes(b,a,"pages")}h.prototype.parseNodes=function(b,a,c){for(var d=b.firstChild;null!=d;){if(null!=d&&1==d.nodeType){var f=d,k=f.nodeName;if(function(t,A){return t&&t.equals?t.equals(A):t===A}(k,"Connects"))for(f=f.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONNECT),f=null!=f&&0<f.length?f.item(0):null;null!=f;){if(null!=f&&1==f.nodeType){k=f;var n=new g.mxgraph.io.vsdx.mxVsdxConnect(k),q=n.getFromSheet();this.connectsMap[q]=-(this.connectsMap[q]||0)+1;q=null!=q&&-1<q?function(t,A){null==t.entries&&(t.entries=[]);for(var C=0;C<t.entries.length;C++)if(null!=t.entries[C].key.equals&&t.entries[C].key.equals(A)||t.entries[C].key===A)return t.entries[C].value;return null}(this.connects,q):null;null!=q?q.addConnect(k):function(t,A,C){null==t.entries&&(t.entries=[]);for(var I=0;I<t.entries.length;I++)if(null!=t.entries[I].key.equals&&t.entries[I].key.equals(A)||t.entries[I].key===A){t.entries[I].value=C;return}t.entries.push({key:A,-value:C,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.connects,n.getFromSheet(),n)}f=f.nextSibling}}d=d.nextSibling}for(d=b.firstChild;null!=d;)null!=d&&1==d.nodeType&&(f=d,k=f.nodeName,function(t,A){return t&&t.equals?t.equals(A):t===A}(k,"Rel")?this.resolveRel(f,a,c):function(t,A){return t&&t.equals?t.equals(A):t===A}(k,"Shapes")?this.shapes=this.parseShapes(f,null,!1):function(t,A){return t&&t.equals?t.equals(A):t===A}(k,"PageSheet")&&(this.pageSheet=f)),d=d.nextSibling};-h.prototype.resolveRel=function(b,a,c){c=a.getRelationship(b.getAttribute("r:id"),g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/_rels/"+c+".xml.rels");b=c.getAttribute("Target");c=c.getAttribute("Type");if(function(f,k){var n=f.length-k.length;f=f.indexOf(k,n);return-1!==f&&f===n}((new String(c)).toString(),"page")){var d=null;null!=c&&function(f,k){var n=f.length-k.length;f=f.indexOf(k,n);return-1!==f&&f===n}(c,"page")&&(d=a.getXmlDoc(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/"+b));if(null!=-d)for(c=d.firstChild;null!=c;){if(null!=c&&1==c.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(c.tagName,"PageContents")){d=b.indexOf(".");-1!==d&&this.parseNodes(c,a,b.substring(0,d));break}c=c.nextSibling}}};h.prototype.parseShapes=function(b,a,c){c={};b=b.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.SHAPE);for(b=null!=b&&0<b.length?b.item(0):null;null!=b;){if(null!=b&&1==b.nodeType){var d=b,f=a;if(null==f){var k=d.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER);-null==k||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,"")||(f=this.model.getMaster(k))}var n=this.isEdge(d);n||null==f||(k=d.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE),n=f.getMasterElement(),null==k||function(q,t){return q&&q.equals?q.equals(t):q===t}(k,"")||(k=f.getSubShape(k),n=null!=k?k.getShape():n),n=this.isEdge(n));d=this.createCell(d,!n,f);(function(q,t,A){null==q.entries&&(q.entries=[]);for(var C=0;C<q.entries.length;C++)if(null!=q.entries[C].key.equals&&q.entries[C].key.equals(t)||-q.entries[C].key===t){q.entries[C].value=A;return}q.entries.push({key:t,value:A,getKey:function(){return this.key},getValue:function(){return this.value}})})(c,d.getId(),d)}b=b.nextSibling}return c};h.prototype.createCell=function(b,a,c){return new g.mxgraph.io.vsdx.VsdxShape(this,b,a,this.model.getMasterShapes(),c,this.model)};h.prototype.isEdge=function(b){if(null!=b&&(b=b.childNodes,null!=b))for(b=b.item(0);null!=b;){if(null!=b&&1==b.nodeType){var a=b;if(function(c,d){return c&&c.equals?c.equals(d):-c===d}(a.nodeName,"Cell")&&(a=a.getAttribute("N"),function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"BeginX")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"BeginY")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"EndY")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"EndX")))return!0}b=b.nextSibling}return!1};h.prototype.getPageDimensions=function(){var b=0,a=0,c=function(f,k){return f[k]?f[k]:null}(this.cellElements,"PageHeight"),d=function(f,k){return f[k]?f[k]:null}(this.cellElements,-"PageWidth");null!=c&&(b=parseFloat(c.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),b=Math.round(100*b)/100);null!=d&&(a=parseFloat(d.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),a=Math.round(100*a)/100);return new mxPoint(a,b)};h.prototype.getDrawingScale=function(){var b=this.cellElements;b=b.DrawingScale?b.DrawingScale:null;return null!=b?parseFloat(b.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};h.prototype.getPageScale=-function(){var b=this.cellElements;b=b.PageScale?b.PageScale:null;return null!=b?parseFloat(b.getAttribute("V"))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};h.prototype.getCellValue=function(b){var a=this.cellElements;b=a[b]?a[b]:null;return null!=b?b.getAttribute("V")||"":null};h.prototype.getCellIntValue=function(b,a){b=this.getCellValue(b);return null!=b?parseInt(b):a};h.prototype.getId=function(){return this.Id};h.prototype.getPageName=function(){return this.pageName};h.prototype.getPageNameU=-function(){return this.pageNameU};h.prototype.getShapes=function(){return this.shapes};h.prototype.getLayers=function(){return this.layers};h.prototype.getConnects=function(){return this.connects};h.prototype.isBackground=function(){return this.__isBackground};h.prototype.getBackPageId=function(){return this.backPageId};h.prototype.setBackPage=function(b){this.backPage=b};h.prototype.getBackPage=function(){return this.backPage};return h}();B.mxVsdxPage=m;m.__class="com.mxgraph.io.vsdx.mxVsdxPage"})(z.vsdx||-(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b){this.themeIndex=-1;this.themeVariant=0;this.baseColors={};this.variantsColors=function(a){var c=function(d){if(0!=d.length){for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f}};return c(a)}([4,7]);this.isMonotoneVariant=Array(4);this.defaultClr=new g.mxgraph.io.vsdx.theme.Color(255,255,255);this.defaultLineClr=new g.mxgraph.io.vsdx.theme.Color(0,0,0);this.defaultLineStyle=new g.mxgraph.io.vsdx.theme.LineStyle;-this.fillStyles=[];this.connFillStyles=[];this.lineStyles=[];this.connLineStyles=[];this.lineStylesExt=[];this.connLineStylesExt=[];this.connFontColors=[];this.connFontStyles=[];this.fontColors=[];this.fontStyles=[];this.variantEmbellishment=[0,0,0,0];this.variantFillIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.variantLineIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));-return f};return c(a)}([4,4]);this.variantEffectIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.variantFontIdx=function(a){var c=function(d){if(0==d.length)return 0;for(var f=[],k=0;k<d[0];k++)f.push(c(d.slice(1)));return f};return c(a)}([4,4]);this.isProcessed=!1;this.__isPure=!0;this.name=this.bkgndColor=this.theme=null;this.theme=b;this.name=b.getAttribute("name")||"";b=function(a,c){return a[c]?a[c]:-null}(h.themesIds_$LI$(),this.name);null!=b&&(this.themeIndex=b)}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0(),h.__static_initializer_1())};h.themesIds_$LI$=function(){h.__static_initialize();null==h.themesIds&&(h.themesIds={});return h.themesIds};h.__static_initializer_0=function(){h.themesIds_$LI$().Office=33;h.themesIds_$LI$().Linear=34;h.themesIds_$LI$().Zephyr=35;h.themesIds_$LI$().Integral=36;h.themesIds_$LI$().Simple=37;h.themesIds_$LI$().Whisp=-38;h.themesIds_$LI$().Daybreak=39;h.themesIds_$LI$().Parallel=40;h.themesIds_$LI$().Sequence=41;h.themesIds_$LI$().Slice=42;h.themesIds_$LI$().Ion=43;h.themesIds_$LI$().Retrospect=44;h.themesIds_$LI$().Organic=45;h.themesIds_$LI$().Bubble=46;h.themesIds_$LI$().Clouds=47;h.themesIds_$LI$().Gemstone=48;h.themesIds_$LI$().Lines=49;h.themesIds_$LI$().Facet=50;h.themesIds_$LI$().Prominence=51;h.themesIds_$LI$().Smoke=52;h.themesIds_$LI$().Radiance=53;h.themesIds_$LI$().Shade=54;h.themesIds_$LI$().Pencil=-55;h.themesIds_$LI$().Pen=56;h.themesIds_$LI$().Marker=57;h.themesIds_$LI$().Whiteboard=58};h.colorIds_$LI$=function(){h.__static_initialize();null==h.colorIds&&(h.colorIds={});return h.colorIds};h.__static_initializer_1=function(){(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),-0,"dk1");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),1,"lt1");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===-a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),2,"accent1");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),3,"accent2");-(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),4,"accent3");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=-c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),5,"accent4");(function(b,a,c){null==b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),6,"accent5");(function(b,a,c){null==-b.entries&&(b.entries=[]);for(var d=0;d<b.entries.length;d++)if(null!=b.entries[d].key.equals&&b.entries[d].key.equals(a)||b.entries[d].key===a){b.entries[d].value=c;return}b.entries.push({key:a,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(h.colorIds_$LI$(),7,"accent6")};h.prototype.getThemeIndex=function(){return this.themeIndex};h.prototype.setVariant=function(b){this.themeVariant=b};h.prototype.isPure=function(){return this.__isPure};h.prototype.processTheme=-function(){if(!this.isProcessed){try{for(var b=this.theme.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(f,k){return f&&f.equals?f.equals(k):f===k}(b.nodeName,"a:themeElements"))for(var a=b.firstChild;null!=a;){if(null!=a&&1==a.nodeType){var c=a,d=c.nodeName;(function(f,k){return f&&f.equals?f.equals(k):f===k})(d,"a:clrScheme")?(function(f,k){return f&&f.equals?f.equals(k):f===k}(this.name,c.getAttribute("name"))||(this.__isPure=!1),this.processColors(c)):function(f,k){return f&&f.equals?-f.equals(k):f===k}(d,"a:fontScheme")?(function(f,k){return f&&f.equals?f.equals(k):f===k}(this.name,c.getAttribute("name"))||(this.__isPure=!1),this.processFonts(c)):function(f,k){return f&&f.equals?f.equals(k):f===k}(d,"a:fmtScheme")?(function(f,k){return f&&f.equals?f.equals(k):f===k}(this.name,c.getAttribute("name"))||(this.__isPure=!1),this.processFormats(c)):function(f,k){return f&&f.equals?f.equals(k):f===k}(d,"a:extLst")&&this.processExtras(c)}a=a.nextSibling}b=b.nextSibling}}catch(f){}this.isProcessed=-!0}};h.prototype.processExtras=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=0;a<b.length;a++){var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b[a]);switch(c.nodeName){case "vt:fmtConnectorScheme":var d=this.name;var f=c.getAttribute("name");d=d&&d.equals?d.equals(f):d===f;d||(this.__isPure=!1);c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c);for(d=0;d<c.length;d++)switch(f=c[d],f.nodeName){case "a:fillStyleLst":f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f);-for(var k=0;k<f.length;k++)this.connFillStyles.push(g.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(f[k]));break;case "a:lnStyleLst":for(f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f),k=0;k<f.length;k++)this.connLineStyles.push(new g.mxgraph.io.vsdx.theme.LineStyle(f[k]))}break;case "vt:lineStyles":c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c);for(d=0;d<c.length;d++)switch(f=c[d],f.nodeName){case "vt:fmtConnectorSchemeLineStyles":f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f);-for(k=0;k<f.length;k++)this.connLineStylesExt.push(new g.mxgraph.io.vsdx.theme.LineStyleExt(f[k]));break;case "vt:fmtSchemeLineStyles":for(f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f),k=0;k<f.length;k++)this.lineStylesExt.push(new g.mxgraph.io.vsdx.theme.LineStyleExt(f[k]))}break;case "vt:fontStylesGroup":c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c);for(d=0;d<c.length;d++)switch(f=c[d],f.nodeName){case "vt:connectorFontStyles":this.fillFontStyles(f,this.connFontColors,this.connFontStyles);-break;case "vt:fontStyles":this.fillFontStyles(f,this.fontColors,this.fontStyles)}break;case "vt:variationStyleSchemeLst":for(c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c),f=d=0;f<c.length;f++){k=c[f];this.variantEmbellishment[d]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(k,"embellishment");k=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(k);for(var n=0,q=0;q<k.length;q++){var t=k[q];this.variantFillIdx[d][n]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,-"fillIdx");this.variantLineIdx[d][n]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"lineIdx");this.variantEffectIdx[d][n]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"effectIdx");this.variantFontIdx[d][n]=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"fontIdx");n++}d++}}}};h.prototype.fillFontStyles=function(b,a,c){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var d=0;d<b.length;d++){var f=-b[d];c.push(g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"style"));f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(f);null!=f&&a.push(g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(f)))}};h.prototype.processFormats=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=0;a<b.length;a++){var c=b[a];switch(c.nodeName){case "a:fillStyleLst":c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c);-for(var d=0;d<c.length;d++)this.fillStyles.push(g.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(c[d]));break;case "a:lnStyleLst":for(c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(c),d=0;d<c.length;d++)this.lineStyles.push(new g.mxgraph.io.vsdx.theme.LineStyle(c[d]))}}};h.prototype.processFonts=function(b){};h.prototype.processColors=function(b){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var a=b,c=a.nodeName;a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);var d=-(d=c)&&d.equals?d.equals("a:extLst"):"a:extLst"===d;d?3===a.length&&(0>this.themeIndex&&this.extractThemeIndex(a[0]),this.addBkgndColor(a[1]),this.addVariantColors(a[2])):(c=c.substring(2),0<a.length&&this.addBasicColor(c,a[0]))}b=b.nextSibling}};h.prototype.addVariantColors=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);if(null!=b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=0,c=0;c<b.length;c++){var d=b[c];this.addVariantColorsSet(a++,d)}}};h.prototype.addVariantColorsSet=-function(b,a){var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);this.isMonotoneVariant[b]=a.hasAttribute("monotone");for(a=0;a<c.length;a++){var d=c[a];switch(d.nodeName){case "vt:varColor1":this.variantsColors[b][0]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));break;case "vt:varColor2":this.variantsColors[b][1]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));-break;case "vt:varColor3":this.variantsColors[b][2]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));break;case "vt:varColor4":this.variantsColors[b][3]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));break;case "vt:varColor5":this.variantsColors[b][4]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));-break;case "vt:varColor6":this.variantsColors[b][5]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d));break;case "vt:varColor7":this.variantsColors[b][6]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(d))}}};h.prototype.addBkgndColor=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);null!=b&&(this.bkgndColor=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b)))};-h.prototype.extractThemeIndex=function(b){b=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b);null!=b&&(this.themeIndex=parseInt(b.getAttribute("schemeEnum")))};h.prototype.addBasicColor=function(b,a){this.baseColors[b]=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(a)};h.prototype.getSchemeColor=function(b){this.processTheme();var a=this.baseColors;b=a[b]?a[b]:null;return null!=b?b.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this):this.defaultClr};h.prototype.getStyleColor=function(b){this.processTheme();-if(8>b){var a=function(d,f){return d[f]?d[f]:null}(this.baseColors,function(d,f){null==d.entries&&(d.entries=[]);for(var k=0;k<d.entries.length;k++)if(null!=d.entries[k].key.equals&&d.entries[k].key.equals(f)||d.entries[k].key===f)return d.entries[k].value;return null}(h.colorIds_$LI$(),b));if(null!=a)return a.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}else if(8===b){if(null!=this.bkgndColor)return this.bkgndColor.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}else{a=null;var c=0;200<=b?c=b-200:-100<=b&&(c=b-100);0<=c&&6>=c&&(a=this.variantsColors[this.themeVariant][c]);if(null!=a)return a.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(this)}return this.defaultClr};h.prototype.getFillGraientColor=function(b){return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b,!0)};h.prototype.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b,!1)};h.prototype.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean=-function(b,a){this.processTheme();var c=b.getQuickStyleFillColor(),d=null;switch(b.getQuickStyleFillMatrix()){case 1:case 2:case 3:case 4:case 5:case 6:d=this.fillStyles[b.getQuickStyleFillMatrix()-1];break;case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&(c=100),d=b.getQuickStyleFillMatrix()-100,d=this.fillStyles[this.variantFillIdx[this.themeVariant][d]-1]}a=null!=d?a?null!=d&&d instanceof g.mxgraph.io.vsdx.theme.GradFill?d.applyStyle(c,this).getGradientClr():null:-d.applyStyle(c,this):a?null:this.getStyleColor(c);c=b.getQuickStyleVariation();if(null!=a&&0<(c&8)){c=this.getStyleColor(8).toHsl();b=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);d=b.toHsl();var f=a.toHsl();.1666<=Math.abs(c.getLum()-f.getLum())||(.7292>=c.getLum()?a=new g.mxgraph.io.vsdx.theme.Color(255,255,255):Math.abs(c.getLum()-d.getLum())>Math.abs(c.getLum()-f.getLum())&&(a=b))}return a};h.prototype.getFillColor=function(b,a){if(!(null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||-null===b)||"boolean"!==typeof a&&null!==a){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");}return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(b,a)};h.prototype.getLineStyle=function(b,a){this.processTheme();var c=null;switch(b){case 1:case 2:case 3:case 4:case 5:case 6:c=a[b-1];break;case 100:case 101:case 102:case 103:c=a===this.lineStyles?-this.lineStyles[this.variantLineIdx[this.themeVariant][b-100]-1]:this.defaultLineStyle}return c};h.prototype.getLineStyleExt=function(b,a){this.processTheme();var c=null;switch(b){case 0:case 1:case 2:case 3:case 4:case 5:case 6:c=a[b]}return c};h.prototype.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=function(b,a){this.processTheme();var c=b.getQuickStyleLineColor();a=this.getLineStyle(b.getQuickStyleLineMatrix(),a);switch(b.getQuickStyleLineMatrix()){case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&-(c=100)}c=null!=a?a.getLineColor(c,this):this.getStyleColor(c);if(0<(b.getQuickStyleVariation()&4)){a=this.getStyleColor(8).toHsl();b=this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);var d=b.toHsl(),f=c.toHsl();.1666<=Math.abs(a.getLum()-f.getLum())||(.7292>=a.getLum()?c=new g.mxgraph.io.vsdx.theme.Color(255,255,255):Math.abs(a.getLum()-d.getLum())>Math.abs(a.getLum()-f.getLum())&&(c=b))}return c};h.prototype.getLineColor=function(b,a){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||-null===b)&&(null!=a&&a instanceof Array||null===a))return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};h.prototype.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.lineStyles)};-h.prototype.getConnLineColor=function(b){return this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connLineStyles)};h.prototype.getDefaultLineClr=function(){return this.defaultLineClr};h.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=function(b,a,c){a=this.getLineStyleExt(b.getQuickStyleLineMatrix(),a);if(null!=a)return a.isDashed();b=this.getLineStyle(b.getQuickStyleLineMatrix(),c);return null!=b?b.isDashed():-!1};h.prototype.isLineDashed=function(b,a,c){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a)&&(null!=c&&c instanceof Array||null===c))return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,a,c);if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a&&void 0===c)return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");-};h.prototype.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.lineStylesExt,this.lineStyles)};h.prototype.isConnLineDashed=function(b){return this.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.connLineStylesExt,this.connLineStyles)};h.prototype.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList=-function(b,a,c){a=this.getLineStyleExt(b.getQuickStyleLineMatrix(),a);if(null!=a)return a.getLineDashPattern();b=this.getLineStyle(b.getQuickStyleLineMatrix(),c);return null!=b?b.getLineDashPattern():null};h.prototype.getLineDashPattern=function(b,a,c){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a)&&(null!=c&&c instanceof Array||null===c))return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,-a,c);if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a&&void 0===c)return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};h.prototype.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,this.lineStylesExt,this.lineStyles)};h.prototype.getConnLineDashPattern=function(b){return this.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList$java_util_ArrayList(b,-this.connLineStylesExt,this.connLineStyles)};h.prototype.getArrowSize=function(b,a,c,d){c=this.getLineStyleExt(b.getQuickStyleLineMatrix(),c);if(null!=c)return a?c.getStartSize():c.getEndSize();b=this.getLineStyle(b.getQuickStyleLineMatrix(),d);return null!=b?a?b.getStartSize():b.getEndSize():4};h.prototype.getStartSize=function(b){return this.getArrowSize(b,!0,this.lineStylesExt,this.lineStyles)};h.prototype.getConnStartSize=function(b){return this.getArrowSize(b,!0,this.connLineStylesExt,this.connLineStyles)};-h.prototype.getEndSize=function(b){return this.getArrowSize(b,!1,this.lineStylesExt,this.lineStyles)};h.prototype.getConnEndSize=function(b){return this.getArrowSize(b,!1,this.connLineStylesExt,this.connLineStyles)};h.prototype.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=function(b,a){this.processTheme();var c=b.getQuickStyleFontColor(),d=null;switch(b.getQuickStyleFontMatrix()){case 1:case 2:case 3:case 4:case 5:case 6:d=a[b.getQuickStyleFontMatrix()-1];break;case 100:case 101:case 102:case 103:this.isMonotoneVariant[this.themeVariant]&&-(c=100),d=b.getQuickStyleFontMatrix()-100,a!==this.fontColors?(a=this.baseColors,d=a.dk1?a.dk1:null):d=a[this.variantFontIdx[this.themeVariant][d]-1]}c=null!=d?d.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(c,this):this.getStyleColor(c);if(0<(b.getQuickStyleVariation()&2)){d=this.getStyleColor(8).toHsl();var f=c.toHsl();a=this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);var k=a.toHsl();b=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);var n=b.toHsl();.1666<=Math.abs(d.getLum()--f.getLum())||(.7292>=d.getLum()?c=new g.mxgraph.io.vsdx.theme.Color(255,255,255):(n=Math.abs(d.getLum()-n.getLum()),k=Math.abs(d.getLum()-k.getLum()),d=Math.abs(d.getLum()-f.getLum()),d=Math.max(n,k,d),d==n?c=b:d==k&&(c=a)))}return c};h.prototype.getFontColor=function(b,a){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a))return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof-g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);throw Error("invalid overload");};h.prototype.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.fontColors)};h.prototype.getConnFontColor=function(b){return this.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connFontColors)};h.prototype.getArrowType=-function(b,a,c,d){c=this.getLineStyleExt(b.getQuickStyleLineMatrix(),c);if(null!=c)return a?c.getStart():c.getEnd();b=this.getLineStyle(b.getQuickStyleLineMatrix(),d);return null!=b?a?b.getStart():b.getEnd():0};h.prototype.getEdgeMarker=function(b,a){return this.getArrowType(a,b,this.lineStylesExt,this.lineStyles)};h.prototype.getConnEdgeMarker=function(b,a){return this.getArrowType(a,b,this.connLineStylesExt,this.connLineStyles)};h.prototype.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList=-function(b,a){b=this.getLineStyle(b.getQuickStyleLineMatrix(),a);return null!=b?b.getLineWidth():0};h.prototype.getLineWidth=function(b,a){if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&(null!=a&&a instanceof Array||null===a))return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,a);if((null!=b&&b instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===b)&&void 0===a)return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(b);-throw Error("invalid overload");};h.prototype.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals=function(b){return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.lineStyles)};h.prototype.getConnLineWidth=function(b){return this.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals$java_util_ArrayList(b,this.connLineStyles)};return h}();m.__static_initialized=!1;B.mxVsdxTheme=m;m.__class="com.mxgraph.io.vsdx.mxVsdxTheme"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io=-{}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(){}h.conversionFactor_$LI$=function(){null==h.conversionFactor&&(h.conversionFactor=h.screenCoordinatesPerCm*h.CENTIMETERS_PER_INCHES);return h.conversionFactor};h.getDirectChildNamedElements=function(b,a){var c=[];for(b=b.firstChild;null!=b;b=b.nextSibling){var d;if(d=null!=b&&1==b.nodeType){d=a;var f=b.nodeName;d=d&&d.equals?d.equals(f):d===f}d&&c.push(b)}return c};h.getDirectChildElements=function(b){var a=[];for(b=-b.firstChild;null!=b;b=b.nextSibling)null!=b&&1==b.nodeType&&a.push(b);return a};h.getDirectFirstChildElement=function(b){for(b=b.firstChild;null!=b;b=b.nextSibling)if(null!=b&&1==b.nodeType)return b;return null};h.getIntAttr$org_w3c_dom_Element$java_lang_String$int=function(b,a,c){try{var d=b.getAttribute(a);if(null!=d)return parseInt(d)}catch(f){}return c};h.getIntAttr=function(b,a,c){if((null==b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||"number"!==typeof c&&null!==c){if((null==-b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||void 0!==c)throw Error("invalid overload");return g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(b,a)}return g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,c)};h.getIntAttr$org_w3c_dom_Element$java_lang_String=function(b,a){return h.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,0)};h.getStyleString=function(b,a){for(var c="",d=function(q){var t=0;return{next:function(){return t<-q.length?q[t++]:null},hasNext:function(){return t<q.length}}}(function(q){return Object.keys(q).map(function(t){return q[t]})}(b)),f=function(q){var t=0;return{next:function(){return t<q.length?q[t++]:null},hasNext:function(){return t<q.length}}}(Object.keys(b));f.hasNext();){var k=f.next(),n=d.next();if(!function(q,t){return q&&q.equals?q.equals(t):q===t}(k,mxConstants.STYLE_SHAPE)||!function(q,t,A){void 0===A&&(A=0);return q.substr(A,t.length)===t}(b[k]?b[k]:null,"image")&&!function(q,t,A){void 0===-A&&(A=0);return q.substr(A,t.length)===t}(b[k]?b[k]:null,"rounded="))try{c=c+k+a}catch(q){}c=c+n+";"}return c};h.surroundByTags=function(b,a,c){return"<"+a+(c?' style="'+c+'"':"")+">"+b+"</"+a+">"};h.htmlEntities=function(b){return b.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};h.toInitialCapital=function(b){b=b.split(" ");for(var a="",c=0;c<b.length;c++){var d=b[c],f=d.substring(0,-1);d=d.substring(1);f=f.toUpperCase();a+=f+d}return a.substring(0,a.length)};h.toSmallCaps=function(b,a){var c="",d=c;if(a&&a.equals?a.equals(d):a===d)c=b;else for(b=b.split(""),d=0;d<b.length;d++){var f=b[d];(null==f.charCodeAt?f:f.charCodeAt(0))>=(null=="a".charCodeAt?"a":97)&&(null==f.charCodeAt?f:f.charCodeAt(0))<=(null=="z".charCodeAt?"z":122)?(f=(new String(f)).toString(),f=f.toUpperCase(),c+='<font style="font-size:'+parseFloat(a)/1.28+'px">'+f+"</font>"):c+=f}return c};h.getStyleMap=function(b,-a){var c={};b=b.split(";");for(var d=0;d<b.length;d++){var f=b[d],k=f.indexOf(a),n=f.substring(0,k);f=f.substring(k+1);c[n]=f}return c};h.isInsideTriangle=function(b,a,c,d,f,k,n,q){var t=(b-f)*(d-k)-(c-f)*(a-k);f=(b-n)*(k-q)-(f-n)*(a-q);b=(b-c)*(q-d)-(n-c)*(a-d);return!((0>t||0>f||0>b)&&(0<t||0<f||0<b))};return h}();m.screenCoordinatesPerCm=40;m.CENTIMETERS_PER_INCHES=2.54;B.mxVsdxUtils=m;m.__class="com.mxgraph.io.vsdx.mxVsdxUtils"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=-{}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a,c,d){this.paraIndex=this.fields=this.charIndices=this.values=null;this.values=[];this.values.push(b);this.charIndices=[];this.charIndices.push(a);this.fields=[];this.fields.push(d);this.paraIndex=c}h.prototype.addText=function(b,a,c){this.values.push(b);this.charIndices.push(a);this.fields.push(c)};h.prototype.getParagraphIndex=function(){return this.paraIndex};h.prototype.getValue=function(b){return this.values[b]};h.prototype.numValues=-function(){return this.values.length};h.prototype.getChar=function(b){return this.charIndices[b]};h.prototype.getField=function(b){return this.fields[b]};return h}();B.Paragraph=m;m.__class="com.mxgraph.io.vsdx.Paragraph"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b){this.elem=b}h.prototype.getIndexedCell=function(b,a){for(var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.elem,"Row"),d=0;d<c.length;d++){var f=c[d],k=f.getAttribute("IX");if(function(t,A){return t&&t.equals?t.equals(A):t===A}(k,b)||null==b){f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(f,"Cell");for(var n=0;n<f.length;n++){var q=f[n];k=q.getAttribute("N");if(function(t,A){return t&&-t.equals?t.equals(A):t===A}(k,a))return q}}}return null};return h}();B.Section=m;m.__class="com.mxgraph.io.vsdx.Section"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.pageNumber=0;this.pageNumber=b;this.Id=a}h.prototype.getId=function(){return this.Id};h.prototype.getPageNumber=function(){return this.pageNumber};h.prototype.equals=function(b){return null==b||this.constructor!==b.constructor||this.pageNumber!==b.pageNumber||this.Id!==b.Id?!1:!0};h.prototype.hashCode=function(){return 1E5*this.pageNumber+this.Id};return h}();B.ShapePageId=m;m.__class="com.mxgraph.io.vsdx.ShapePageId"})(z.vsdx||-(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d){this.blue=this.green=this.red=0;this.gradientClr=null;this.red=a;this.green=c;this.blue=d}b.NONE_$LI$=function(){null==b.NONE&&(b.NONE=new b(-1,-1,-1));return b.NONE};b.prototype.getRed=function(){return this.red};b.prototype.setRed=function(a){this.red=a};b.prototype.getGreen=function(){return this.green};b.prototype.setGreen=function(a){this.green=a};b.prototype.getBlue=function(){return this.blue};-b.prototype.setBlue=function(a){this.blue=a};b.prototype.toHsl=function(){var a=this.getRed()/255,c=this.getGreen()/255,d=this.getBlue()/255,f=Math.max(a,Math.max(c,d)),k=Math.min(a,Math.min(c,d)),n=(f+k)/2;if(f===k)a=k=0;else{var q=f-k;k=.5<n?q/(2-f-k):q/(f+k);a=(f===a?(c-d)/q+(c<d?6:0):f===c?(d-a)/q+2:(a-c)/q+4)/6}return new g.mxgraph.io.vsdx.theme.HSLColor(a,k,n)};b.prototype.toHsv=function(){var a=this.getRed()/255,c=this.getGreen()/255,d=this.getBlue()/255,f=Math.max(a,Math.max(c,d)),k=Math.min(a,-Math.min(c,d)),n=f-k;a=f===k?0:(f===a?(c-d)/n+(c<d?6:0):f===c?(d-a)/n+2:(a-c)/n+4)/6;return new g.mxgraph.io.vsdx.theme.HSVColor(a,0===f?0:n/f,f)};b.decodeColorHex=function(a){a=parseInt(a,16);return new b(a>>16&255,a>>8&255,a&255)};b.prototype.toHexStr=function(){var a=this.red.toString(16);a=1==a.length?"0"+a:a;var c=this.green.toString(16);c=1==c.length?"0"+c:c;var d=this.blue.toString(16);d=1==d.length?"0"+d:d;return"#"+a+c+d};b.prototype.getGradientClr=function(){return this.gradientClr};b.prototype.setGradientClr=-function(a){this.gradientClr=a};return b}();m.Color=h;h.__class="com.mxgraph.io.vsdx.theme.Color"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){}b.getFillStyle=function(a){var c=null;switch(a.nodeName){case "a:solidFill":c=new g.mxgraph.io.vsdx.theme.SolidFillStyle(g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a)));break;case "a:noFill":c=new g.mxgraph.io.vsdx.theme.NoFillStyle;break;case "a:gradFill":c=new g.mxgraph.io.vsdx.theme.GradFill(a)}return c};return b}();m.FillStyleFactory=-h;h.__class="com.mxgraph.io.vsdx.theme.FillStyleFactory"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a){this.color2=this.color1=null;a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"a:gsLst");0<a.length&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a[0]),2<=a.length&&(this.color2=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a[0])),this.color1=g.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a[a.length--1]))));null==this.color1&&(this.color1=this.color2=new g.mxgraph.io.vsdx.theme.SrgbClr("FFFFFF"))}b.prototype.applyStyle=function(a,c){var d=this.color1.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,c);d.setGradientClr(this.color2.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,c));return d};return b}();m.GradFill=h;h.__class="com.mxgraph.io.vsdx.theme.GradFill";h.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=-{}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d){this.lum=this.sat=this.hue=0;this.hue=a;this.sat=c;this.lum=d}b.prototype.getHue=function(){return this.hue};b.prototype.setHue=function(a){this.hue=a};b.prototype.getSat=function(){return this.sat};b.prototype.setSat=function(a){this.sat=a};b.prototype.getLum=function(){return this.lum};b.prototype.setLum=function(a){this.lum=a};b.prototype.hue2rgb=function(a,c,d){0>d&&(d+=1);1<d&&--d;return d<1/6?-a+6*(c-a)*d:.5>d?c:d<2/3?a+(c-a)*(2/3-d)*6:a};b.prototype.toRgb=function(){var a=this.hue;var c=this.sat;var d=this.lum;if(0===c)d=c=a=d;else{var f=.5>d?d*(1+c):d+c-d*c,k=2*d-f;d=this.hue2rgb(k,f,a+1/3);c=this.hue2rgb(k,f,a);a=this.hue2rgb(k,f,a-1/3)}return new g.mxgraph.io.vsdx.theme.Color(255*d|0,255*c|0,255*a|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.lum*=1+a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.shade=function(a){this.lum*=-a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.satMod=function(a){this.sat*=a/100;this.sat=this.clamp01(this.sat);return this};b.prototype.lumMod=function(a){this.lum*=a/100;this.lum=this.clamp01(this.lum);return this};return b}();m.HSLColor=h;h.__class="com.mxgraph.io.vsdx.theme.HSLColor"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d){this.h=a;this.s=c;this.v=d}b.prototype.toRgb=function(){var a=6*this.h,c=this.s,d=Math.floor(a),f=a-d;a=this.v*(1-c);var k=this.v*(1-f*c);c=this.v*(1-(1-f)*c);d=(d|0)%6;return new g.mxgraph.io.vsdx.theme.Color(255*[this.v,k,a,a,c,this.v][d]|0,255*[c,this.v,this.v,k,a,a][d]|0,255*[a,a,c,this.v,this.v,k][d]|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.v*=-1+a/100;this.v=this.clamp01(this.v);return this};b.prototype.shade=function(a){this.v*=a/100;this.v=this.clamp01(this.v);return this};b.prototype.satMod=function(a){this.s*=a/100;this.s=this.clamp01(this.s);return this};b.prototype.lumMod=function(a){this.v*=a/100;this.v=this.clamp01(this.v);return this};b.prototype.hueMod=function(a){this.h*=a/100;this.h=this.clamp01(this.h);return this};return b}();m.HSVColor=h;h.__class="com.mxgraph.io.vsdx.theme.HSVColor"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx=-{}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a){this.isLineDashed=!1;this.lineDashPattern=[];this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1;if(null!=a&&1==a.nodeType||null===a){Array.prototype.slice.call(arguments);this.lineWidth=0;this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null;this.headEndLen=this.headEndWidth=0;this.tailEndType=null;this.tailEndLen=this.tailEndWidth=0;this.isLineDashed=!1;this.lineDashPattern=[];this.isMiterJoin=-this.isBevelJoin=this.isRoundJoin=!1;this.lineWidth=0;this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null;this.headEndLen=this.headEndWidth=0;this.tailEndType=null;this.tailEndLen=this.tailEndWidth=0;this.lineWidth=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"w");var c=a.getAttribute("cap");if(null!=c)switch(c){case "rnd":this.lineCap=b.LineCapType.ROUND;break;case "sq":this.lineCap=b.LineCapType.SQUARE;break;case "flat":this.lineCap=b.LineCapType.FLAT}c=-a.getAttribute("cmpd");if(null!=c)switch(c){case "sng":this.lineComp=b.CompoundLineType.SINGLE;break;case "dbl":this.lineComp=b.CompoundLineType.DOUBLE;break;case "thickThin":this.lineComp=b.CompoundLineType.THICK_THIN_DOUBLE;break;case "thinThick":this.lineComp=b.CompoundLineType.THIN_THICK_DOUBLE;break;case "tri":this.lineComp=b.CompoundLineType.THIN_THICK_THIN_TRIPLE}c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(var d=0;d<c.length;d++){var f=c[d];switch(f.nodeName){case "a:noFill":case "a:solidFill":case "a:gradFill":case "a:pattFill":this.fillStyle=-g.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(f);break;case "a:prstDash":f=f.getAttribute("val");this.isLineDashed=!0;switch(f){case "solid":this.isLineDashed=!1;break;case "sysDot":case "dot":this.lineDashPattern.push(1);this.lineDashPattern.push(4);break;case "lgDash":this.lineDashPattern.push(12);this.lineDashPattern.push(4);break;case "sysDashDot":case "dashDot":this.lineDashPattern.push(8);this.lineDashPattern.push(4);this.lineDashPattern.push(1);this.lineDashPattern.push(4);break;case "lgDashDot":this.lineDashPattern.push(12);-this.lineDashPattern.push(4);this.lineDashPattern.push(1);this.lineDashPattern.push(4);break;case "sysDashDotDot":case "lgDashDotDot":this.lineDashPattern.push(12),this.lineDashPattern.push(4),this.lineDashPattern.push(1),this.lineDashPattern.push(4),this.lineDashPattern.push(1),this.lineDashPattern.push(4)}break;case "a:custDash":this.isLineDashed=!0;f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(f,"a:ds");for(var k=0;k<f.length;k++){var n=f[k],q=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,-"d");n=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,"sp");this.lineDashPattern.push(q/1E4);this.lineDashPattern.push(n/1E4)}break;case "a:round":this.isRoundJoin=!0;break;case "a:bevel":this.isBevelJoin=!0;break;case "a:miter":g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"lim");this.isMiterJoin=!0;break;case "a:headEnd":this.headEndType=this.getLineEndType(f);this.headEndWidth=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,-"w");this.headEndLen=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"len");break;case "a:tailEnd":this.tailEndType=this.getLineEndType(f),this.tailEndWidth=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"w"),this.tailEndLen=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"len")}}}else if(void 0===a)Array.prototype.slice.call(arguments),this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=-null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0,this.isLineDashed=!1,this.lineDashPattern=[],this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1,this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0;else throw Error("invalid overload");}b.prototype.getLineEndType=function(a){var c=null;switch(a.getAttribute("type")){case "none":c=-b.LineEndType.NONE;break;case "triangle":c=b.LineEndType.TRIANGLE;break;case "stealth":c=b.LineEndType.STEALTH;break;case "diamond":c=b.LineEndType.DIAMOND;break;case "oval":c=b.LineEndType.OVAL;break;case "arrow":c=b.LineEndType.ARROW}return c};b.prototype.getLineColor=function(a,c){return null!=this.fillStyle?this.fillStyle.applyStyle(a,c):c.getDefaultLineClr()};b.prototype.isDashed=function(){return this.isLineDashed};b.prototype.getLineDashPattern=function(){return this.lineDashPattern};b.prototype.getStartSize=-function(){return 4};b.prototype.getEndSize=function(){return 4};b.prototype.getStart=function(){return 0};b.prototype.getEnd=function(){return 0};b.prototype.getLineWidth=function(){return this.lineWidth};return b}();m.LineStyle=h;h.__class="com.mxgraph.io.vsdx.theme.LineStyle";(function(b){(function(a){a[a.ROUND=0]="ROUND";a[a.SQUARE=1]="SQUARE";a[a.FLAT=2]="FLAT"})(b.LineCapType||(b.LineCapType={}));(function(a){a[a.SINGLE=0]="SINGLE";a[a.DOUBLE=1]="DOUBLE";a[a.THICK_THIN_DOUBLE=2]="THICK_THIN_DOUBLE";-a[a.THIN_THICK_DOUBLE=3]="THIN_THICK_DOUBLE";a[a.THIN_THICK_THIN_TRIPLE=4]="THIN_THICK_THIN_TRIPLE"})(b.CompoundLineType||(b.CompoundLineType={}));(function(a){a[a.NONE=0]="NONE";a[a.TRIANGLE=1]="TRIANGLE";a[a.STEALTH=2]="STEALTH";a[a.DIAMOND=3]="DIAMOND";a[a.OVAL=4]="OVAL";a[a.ARROW=5]="ARROW"})(b.LineEndType||(b.LineEndType={}))})(h=m.LineStyle||(m.LineStyle={}))})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a){this.pattern=this.endSize=this.end=this.startSize=this.start=this.rndg=0;this.lineDashPattern=null;a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a);this.rndg=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"rndg");this.start=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"start");this.startSize=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,-"startSize");this.end=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"end");this.endSize=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"endSize");this.pattern=g.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"pattern");this.lineDashPattern=g.mxgraph.io.vsdx.Style.getLineDashPattern(this.pattern)}b.prototype.getRndg=function(){return this.rndg};b.prototype.getStart=function(){return this.start};b.prototype.getStartSize=-function(){return this.startSize};b.prototype.getEnd=function(){return this.end};b.prototype.getEndSize=function(){return this.endSize};b.prototype.isDashed=function(){return 1<this.pattern};b.prototype.getLineDashPattern=function(){return this.lineDashPattern};return b}();m.LineStyleExt=h;h.__class="com.mxgraph.io.vsdx.theme.LineStyleExt"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){}b.prototype.applyStyle=function(a,c){return g.mxgraph.io.vsdx.theme.Color.NONE_$LI$()};return b}();m.NoFillStyle=h;h.__class="com.mxgraph.io.vsdx.theme.NoFillStyle";h.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){this.invGamma=this.gamma=this.blueMod=this.blueOff=this.blue=this.greenMod=this.greenOff=this.green=this.redMod=this.redOff=this.red=this.lumMod=this.lumOff=this.lum=this.satMod=this.satOff=this.sat=this.hueMod=this.hueOff=this.hue=this.alphaMod=this.alphaOff=this.alpha=this.gray=this.inv=this.comp=this.shade=this.tint=0;this.hasEffects=this.isInitialized=this.isDynamic=!1;this.color=null}b.prototype.calcColor=-function(a,c){this.hasEffects&&(a=this.color.toHsv(),0!==this.tint&&a.tint(this.tint),0!==this.shade&&a.shade(this.shade),0!==this.satMod&&a.satMod(this.satMod),0!==this.lumMod&&a.lumMod(this.lumMod),0!==this.hueMod&&a.hueMod(this.hueMod),this.color=a.toRgb())};b.prototype.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme=function(a,c){if(this.isDynamic||!this.isInitialized)this.calcColor(a,c),this.isInitialized=!0;return this.color};b.prototype.getColor=function(a,c){if("number"!==typeof a&&null!==a||-!(null!=c&&c instanceof g.mxgraph.io.vsdx.mxVsdxTheme||null===c)){if((null!=a&&a instanceof g.mxgraph.io.vsdx.mxVsdxTheme||null===a)&&void 0===c)return this.getColor$com_mxgraph_io_vsdx_mxVsdxTheme(a);throw Error("invalid overload");}return this.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,c)};b.prototype.getColor$com_mxgraph_io_vsdx_mxVsdxTheme=function(a){return this.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(-1,a)};b.prototype.setTint=function(a){this.tint=a;this.hasEffects=!0};b.prototype.setShade=-function(a){this.shade=a;this.hasEffects=!0};b.prototype.setComp=function(a){this.comp=a;this.hasEffects=!0};b.prototype.setInv=function(a){this.inv=a;this.hasEffects=!0};b.prototype.setGray=function(a){this.gray=a;this.hasEffects=!0};b.prototype.setAlpha=function(a){this.alpha=a;this.hasEffects=!0};b.prototype.setAlphaOff=function(a){this.alphaOff=a;this.hasEffects=!0};b.prototype.setAlphaMod=function(a){this.alphaMod=a;this.hasEffects=!0};b.prototype.setHue=function(a){this.hue=a;this.hasEffects=-!0};b.prototype.setHueOff=function(a){this.hueOff=a;this.hasEffects=!0};b.prototype.setHueMod=function(a){this.hueMod=a;this.hasEffects=!0};b.prototype.setSat=function(a){this.sat=a;this.hasEffects=!0};b.prototype.setSatOff=function(a){this.satOff=a;this.hasEffects=!0};b.prototype.setSatMod=function(a){this.satMod=a;this.hasEffects=!0};b.prototype.setLum=function(a){this.lum=a;this.hasEffects=!0};b.prototype.setLumOff=function(a){this.lumOff=a;this.hasEffects=!0};b.prototype.setLumMod=function(a){this.lumMod=-a;this.hasEffects=!0};b.prototype.setRed=function(a){this.red=a;this.hasEffects=!0};b.prototype.setRedOff=function(a){this.redOff=a;this.hasEffects=!0};b.prototype.setRedMod=function(a){this.redMod=a;this.hasEffects=!0};b.prototype.setGreen=function(a){this.green=a;this.hasEffects=!0};b.prototype.setGreenOff=function(a){this.greenOff=a;this.hasEffects=!0};b.prototype.setGreenMod=function(a){this.greenMod=a;this.hasEffects=!0};b.prototype.setBlue=function(a){this.blue=a;this.hasEffects=!0};b.prototype.setBlueOff=-function(a){this.blueOff=a;this.hasEffects=!0};b.prototype.setBlueMod=function(a){this.blueMod=a;this.hasEffects=!0};b.prototype.setGamma=function(a){this.gamma=a;this.hasEffects=!0};b.prototype.setInvGamma=function(a){this.invGamma=a;this.hasEffects=!0};return b}();m.OoxmlColor=h;h.__class="com.mxgraph.io.vsdx.theme.OoxmlColor"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(){}b.getOoxmlColor=function(a){var c=null;switch(a.nodeName){case "a:scrgbClr":c=new g.mxgraph.io.vsdx.theme.ScrgbClr(parseInt(a.getAttribute("r")),parseInt(a.getAttribute("g")),parseInt(a.getAttribute("b")));break;case "a:srgbClr":c=new g.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"));break;case "a:hslClr":c=new g.mxgraph.io.vsdx.theme.HslClr(parseInt(a.getAttribute("hue")),parseInt(a.getAttribute("sat")),-parseInt(a.getAttribute("lum")));break;case "a:sysClr":c=new g.mxgraph.io.vsdx.theme.SysClr(a.getAttribute("val"),a.getAttribute("lastClr"));break;case "a:schemeClr":c=new g.mxgraph.io.vsdx.theme.SchemeClr(a.getAttribute("val"));break;case "a:prstClr":c=new g.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"))}a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(var d=0;d<a.length;d++){var f=a[d],k=parseInt(f.getAttribute("val"))/1E3|0;switch(f.nodeName){case "a:tint":c.setTint(k);break;-case "a:shade":c.setShade(k);break;case "a:satMod":c.setSatMod(k);break;case "a:lumMod":c.setLumMod(k);break;case "a:hueMod":c.setHueMod(k)}}return c};return b}();m.OoxmlColorFactory=h;h.__class="com.mxgraph.io.vsdx.theme.OoxmlColorFactory"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a,c,d,f,k,n,q,t,A,C){this.quickStyleVariation=this.quickStyleType=this.quickStyleShadowColor=this.quickStyleLineColor=this.quickStyleFontMatrix=this.quickStyleFontColor=this.quickStyleFillMatrix=this.quickStyleFillColor=this.quickStyleEffectsMatrix=0;this.quickStyleEffectsMatrix=a;this.quickStyleFillColor=c;this.quickStyleFillMatrix=d;this.quickStyleFontColor=f;this.quickStyleFontMatrix=k;this.quickStyleLineColor=-n;this.quickStyleLineMatrix=q;this.quickStyleShadowColor=t;this.quickStyleType=A;this.quickStyleVariation=C}b.prototype.getQuickStyleEffectsMatrix=function(){return this.quickStyleEffectsMatrix};b.prototype.getQuickStyleFillColor=function(){return this.quickStyleFillColor};b.prototype.getQuickStyleFillMatrix=function(){return this.quickStyleFillMatrix};b.prototype.getQuickStyleFontColor=function(){return this.quickStyleFontColor};b.prototype.getQuickStyleFontMatrix=function(){return this.quickStyleFontMatrix};-b.prototype.getQuickStyleLineColor=function(){return this.quickStyleLineColor};b.prototype.getQuickStyleLineMatrix=function(){return this.quickStyleLineMatrix};b.prototype.getQuickStyleShadowColor=function(){return this.quickStyleShadowColor};b.prototype.getQuickStyleType=function(){return this.quickStyleType};b.prototype.getQuickStyleVariation=function(){return this.quickStyleVariation};b.prototype.setQuickStyleEffectsMatrix=function(a){this.quickStyleEffectsMatrix=a};b.prototype.setQuickStyleFillColor=-function(a){this.quickStyleFillColor=a};b.prototype.setQuickStyleFillMatrix=function(a){this.quickStyleFillMatrix=a};b.prototype.setQuickStyleFontColor=function(a){this.quickStyleFontColor=a};b.prototype.setQuickStyleFontMatrix=function(a){this.quickStyleFontMatrix=a};b.prototype.setQuickStyleLineColor=function(a){this.quickStyleLineColor=a};b.prototype.setQuickStyleLineMatrix=function(a){this.quickStyleLineMatrix=a};b.prototype.setQuickStyleShadowColor=function(a){this.quickStyleShadowColor=a};b.prototype.setQuickStyleType=-function(a){this.quickStyleType=a};b.prototype.setQuickStyleVariation=function(a){this.quickStyleVariation=a};return b}();m.QuickStyleVals=h;h.__class="com.mxgraph.io.vsdx.theme.QuickStyleVals"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(){function b(a){this.color=null;this.color=a}b.prototype.applyStyle=function(a,c){return this.color.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,c)};return b}();m.SolidFillStyle=h;h.__class="com.mxgraph.io.vsdx.theme.SolidFillStyle";h.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){var B=function(){function m(){}m.MAX_AREA_$LI$=function(){null==m.MAX_AREA&&(m.MAX_AREA=1E8);return m.MAX_AREA};return m}();B.MAX_REQUEST_SIZE=52428800;B.IMAGE_DOMAIN="http://img.diagramly.com/";z.Constants=B;B.__class="com.mxgraph.online.Constants"})(y.online||(y.online={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){var B=function(){function m(){}m.getRotatedPoint=function(h,b,a,c){var d=h.x-c.x;h=h.y-c.y;return new mxPoint(d*b-h*a+c.x,h*b+d*a+c.y)};m.rotatedGeometry=function(h,b,a,c){b=b*Math.PI/180;var d=Math.cos(b);b=Math.sin(b);var f=h.getCenterX()-a,k=h.getCenterY()-c;h.x=Math.round(f*d-k*b+a-h.width/2);h.y=Math.round(k*d+f*b+c-h.height/2)};return m}();B.CHARSET_FOR_URL_ENCODING="ISO-8859-1";z.Utils=B;B.__class="com.mxgraph.online.Utils"})(y.online||(y.online={}))})(g.mxgraph||-(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k){c=b.call(this,c,d,f)||this;c.a=k;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a){var f=d.getHeight(),k=d.getWidth(),n=Math.floor(Math.round(d.getLastX()*k)/100),q=Math.floor(Math.round(d.getLastY()*f)/100);c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var t=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();t=f-t;var A=-this.a*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=Math.abs(c-n);q=Math.abs(t-q);n=q=.5*A+(n*n+q*q)/(8*A);var C=Math.abs(q);q=Math.round(100*q/k*100)/100;n=Math.round(100*n/f*100)/100;c=Math.round(100*c/k*100)/100;t=Math.round(100*t/f*100)/100;A=Math.round(100*A)/100;q=Math.abs(q);n=Math.abs(n);f=0>A?"1":"0";A=C<Math.abs(A)?"1":"0";d.setLastX(c);d.setLastY(t);return'<arc rx="'+(new String(q)).toString()+'" ry="'+(new String(n)).toString()+'" x="'+(new String(c)).toString()+'" y="'+(new String(t)).toString()+-'" x-axis-rotation="0" large-arc-flag="'+A+'" sweep-flag="'+f+'"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.ArcTo=h;h.__class="com.mxgraph.io.vsdx.geometry.ArcTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c){return b.call(this,c,null,null)||this}__extends(a,b);a.prototype.handle=function(c,d){return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.DelRow=h;h.__class="com.mxgraph.io.vsdx.geometry.DelRow"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){c=d.getHeight();var f=d.getWidth(),k=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();d=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();d=c-d;var n=this.a*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),-q=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();q=c-q;var t=this.c*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),A=this.d*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=Math.abs(n-k);q=Math.abs(q-d);q=Math.sqrt(n*n+q*q);t=Math.abs(t-k);A=Math.abs(c-A-d);k=100*k/f;A=Math.round(100*Math.sqrt(t*t+A*A)/c/2*100)/100;f=Math.round(100*q/f/2*100)/100;t=Math.round(100*(k-2*f))/100;k=Math.round(100*(k+2*f))/100;c=Math.round(100*d/c*100)/100;return'<move x="'+(new String(t)).toString()+-'" y="'+(new String(c)).toString()+'"/><arc rx="'+(new String(f)).toString()+'" ry="'+(new String(A)).toString()+'" x="'+(new String(k)).toString()+'" y="'+(new String(c)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(f)).toString()+'" ry="'+(new String(A)).toString()+'" x="'+(new String(t)).toString()+'" y="'+(new String(c)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.Ellipse=-h;h.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var f=d.getHeight(),k=d.getWidth();c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var n=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=f-n;var q=this.a*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),-t=this.b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),A=this.c,C=this.d;c=100*c/k;n=100*n/f;var I=d.getLastX()*k/100,Q=d.getLastY()*f/100,K=c*k/100,L=n*f/100,S=f-t,R=-A;A=Math.sqrt(I*I+Q*Q)*Math.cos(Math.atan2(Q,I)-R);t=Math.sqrt(I*I+Q*Q)*Math.sin(Math.atan2(Q,I)-R);var H=Math.sqrt(K*K+L*L)*Math.cos(Math.atan2(L,K)-R),N=Math.sqrt(K*K+L*L)*Math.sin(Math.atan2(L,K)-R),J=Math.sqrt(q*q+S*S)*Math.cos(Math.atan2(S,q)-R),M=Math.sqrt(q*q+S*S)*Math.sin(Math.atan2(S,q)-R),T=((A-H)*(A+H)*(N-M)-(H-J)*-(H+J)*(t-N)+C*C*(t-N)*(N-M)*(t-M))/(2*((A-H)*(N-M)-(H-J)*(t-N))),ca=((A-H)*(H-J)*(A-J)/(C*C)+(H-J)*(t-N)*(t+N)-(A-H)*(N-M)*(N+M))/(2*((H-J)*(t-N)-(A-H)*(N-M))),V=A-T,P=t-ca;V=Math.sqrt(V*V+P*P*C*C);C=V/C;R=180*R/Math.PI;c=Math.round(100*c)/100;n=Math.round(100*n)/100;V=Math.round(100*V/k*100)/100;C=Math.round(100*C/f*100)/100;R=Math.round(100*R)/100;f=0<(K-I)*(S-Q)-(L-Q)*(q-I)?"0":"1";k="0";g.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(T,ca,A,t,H,N,J,M)&&(k="1");d.setLastX(c);d.setLastY(n);return'<arc rx="'+-(new String(V)).toString()+'" ry="'+(new String(C)).toString()+'" x="'+(new String(c)).toString()+'" y="'+(new String(n)).toString()+'" x-axis-rotation="'+(new String(R)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+f+'"/>'}return""};a.prototype.isReflexAngle=function(c,d,f,k,n,q,t,A){f-=c;k-=d;q-=d;n=t-c;A-=d;d=c=0;f=180*(Math.atan2(k,f)-Math.atan2(d,c))/Math.PI;n=180*(Math.atan2(q,n)-Math.atan2(d,c))/Math.PI;c=180*(Math.atan2(A,t)-Math.atan2(d,c))/Math.PI;f=(f-c)%360;n=(n-c)%360;180<f?f-=-360:-180>f&&(f+=360);180<n?n-=360:-180>n&&(n+=360);return(0<f&&0>n||0>f&&0<n)&&180<Math.abs(f-n)?!0:!1};return a}(g.mxgraph.io.vsdx.geometry.Row);m.EllipticalArcTo=h;h.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;return c}__extends(a,b);a.prototype.handle=function(c,d){return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.InfiniteLine=h;h.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){return b.call(this,c,d,f)||this}__extends(a,b);a.prototype.handle=function(c,d){var f=c.x,k=c.y,n=d.getHeight(),q=d.getWidth();null!=this.x&&null!=this.y&&(f=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());f=Math.round(100*f/q*100)/100;k=Math.round(100*(100-100*k/n))/100;c.x=f;c.y=k;d.setLastX(f);d.setLastY(k);return'<line x="'+-(new String(f)).toString()+'" y="'+(new String(k)).toString()+'"/>'};return a}(g.mxgraph.io.vsdx.geometry.Row);m.LineTo=h;h.__class="com.mxgraph.io.vsdx.geometry.LineTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){return b.call(this,c,d,f)||this}__extends(a,b);a.prototype.handle=function(c,d){var f=c.x,k=c.y,n=d.getHeight(),q=d.getWidth();null!=this.x&&null!=this.y&&(f=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());f=Math.round(100*f/q*100)/100;k=Math.round(100*(100-100*k/n))/100;c.x=f;c.y=k;d.setLastX(f);d.setLastY(k);d.setLastMoveX(f);-d.setLastMoveY(k);return'<move x="'+(new String(f)).toString()+'" y="'+(new String(k)).toString()+'"/>'};return a}(g.mxgraph.io.vsdx.geometry.Row);m.MoveTo=h;h.__class="com.mxgraph.io.vsdx.geometry.MoveTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t,A){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;c.formulaE=A;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.formulaE){var f=d.getHeight(),k=d.getWidth();c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var n=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=this.formulaE.split("NURBS(").join("");q=q.split(")").join("");-q=new a.Nurbs(this,q,k,f);if(2<=q.getSize()){var t=q.getX(0),A=q.getY(0),C=q.getX(1),I=q.getY(1);c=Math.round(100*c/k*100)/100;n=Math.round(100*(100-100*n/f))/100;t=Math.round(100*t)/100;A=Math.round(100*A)/100;C=Math.round(100*C)/100;I=Math.round(100*I)/100;d.setLastX(c);d.setLastY(n);if(3===q.getDegree()&&q.isOrderedByThree(this.getA())){d=[];f=[];k=[];A=q.getSize();for(t=0;t<A-1;t+=3)d.push(new mxPoint(q.getX(t),q.getY(t))),f.push(new mxPoint(q.getX(t+1),q.getY(t+1))),t<A-2?k.push(new mxPoint(q.getX(t+-2),q.getY(t+2))):k.push(new mxPoint(c,n));c="";for(t=0;t<d.length;t++)c+='<curve x1="'+d[t].x+'" y1="'+d[t].y+'" x2="'+f[t].x+'" y2="'+f[t].y+'" x3="'+k[t].x+'" y3="'+k[t].y+'"/>\n';return c}return'<curve x1="'+(new String(t)).toString()+'" y1="'+(new String(A)).toString()+'" x2="'+(new String(C)).toString()+'" y2="'+(new String(I)).toString()+'" x3="'+(new String(c)).toString()+'" y3="'+(new String(n)).toString()+'"/>'}}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.NURBSTo=h;h.__class="com.mxgraph.io.vsdx.geometry.NURBSTo";-(function(b){var a=function(){function c(d,f,k,n){this.__parent=d;this.nurbsValues=[];d=f.split(/\s*,\s*/).slice(0);for(f=0;f<d.length;f++)3<f&&0===f%4?this.nurbsValues.push(100*parseFloat(d[f])):3<f&&1===f%4?this.nurbsValues.push(100-100*parseFloat(d[f])):this.nurbsValues.push(parseFloat(d[f]))}c.prototype.isOrderedByThree=function(d){for(var f=0;f+2<this.getSize();f+=3){var k=Math.round(100*this.getKnot(f))/100,n=Math.round(100*this.getKnot(f+1))/100,q=Math.round(100*this.getKnot(f+2))/100;if(k!==-n||k!==q||n!==q)return!1}f=Math.round(10*this.getKnot(this.getSize()-2))/10;k=Math.round(10*this.getKnot(this.getSize()-1))/10;d=Math.round(10*d)/10;return f!==k||f!==d||k!==d?!1:!0};c.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};c.prototype.getKnotLast=function(){return this.nurbsValues[0]};c.prototype.getDegree=function(){return this.nurbsValues[1]};c.prototype.getXType=function(){return this.nurbsValues[2]};c.prototype.getYType=function(){return this.nurbsValues[3]};c.prototype.getX=-function(d){return this.nurbsValues[4*(d+1)]};c.prototype.getY=function(d){return this.nurbsValues[4*(d+1)+1]};c.prototype.getKnot=function(d){return this.nurbsValues[4*(d+1)+2]};c.prototype.getWeight=function(d){return this.nurbsValues[4*(d+1)+3]};return c}();b.Nurbs=a;a.__class="com.mxgraph.io.vsdx.geometry.NURBSTo.Nurbs"})(h=m.NURBSTo||(m.NURBSTo={}))})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k){c=b.call(this,c,d,f)||this;c.formulaA=k;return c}__extends(a,b);a.prototype.handle=function(c,d){c="";if(null!=this.x&&null!=this.y&&null!=this.formulaA){var f=d.getHeight(),k=d.getWidth(),n=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();n=Math.round(100*n/k*100)/100;q=Math.round(100*(100-100*q/f))/100;var t=this.formulaA.replace(RegExp("\\s",-"g"),"").toLowerCase().replace(RegExp("polyline\\(","g"),"").replace(RegExp("\\)","g"),"");var A=t&&t.equals?t.equals("inh"):"inh"===t;if(A)throw Object.defineProperty(Error(),"__classes",{configurable:!0,value:["java.lang.Throwable","java.lang.Object","java.lang.RuntimeException","java.lang.IllegalArgumentException","java.lang.Exception"]});t=t.split(",").slice(0).slice(0);A=parseFloat(t.splice(0,1));parseFloat(t.splice(0,1));for(var C,I;0<t.length;)C=parseFloat(t.splice(0,1))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),-I=parseFloat(t.splice(0,1))*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),1===A&&(C=100*C/k),1===A&&(I=100*I/f),I=100-I,C=Math.round(100*C)/100,I=Math.round(100*I)/100,d.setLastX(C),d.setLastY(I),c+='<line x="'+(new String(C)).toString()+'" y="'+(new String(I)).toString()+'"/>';c+='<line x="'+(new String(n)).toString()+'" y="'+(new String(q)).toString()+'"/>';d.getLastMoveX()===n&&d.getLastMoveY()===q&&(c+="<close/>")}return c};return a}(g.mxgraph.io.vsdx.geometry.Row);m.PolylineTo=h;h.__class=-"com.mxgraph.io.vsdx.geometry.PolylineTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){c=100*this.x;var f=100-100*this.y,k=100*this.a,n=100-100*this.b,q=100*this.c,t=100-100*this.d;c=Math.round(100*c)/100;f=Math.round(100*f)/100;k=Math.round(100*k)/100;n=Math.round(100*n)/100;q=Math.round(100*-q)/100;t=Math.round(100*t)/100;d.setLastX(c);d.setLastY(f);return'<curve x1="'+(new String(k)).toString()+'" y1="'+(new String(n)).toString()+'" x2="'+(new String(q)).toString()+'" y2="'+(new String(t)).toString()+'" x3="'+(new String(c)).toString()+'" y3="'+(new String(f)).toString()+'"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.RelCubBezTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelCubBezTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=-{}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){return b.call(this,c,d,f)||this}__extends(a,b);a.prototype.handle=function(c,d){var f=c.x,k=c.y;null!=this.x&&null!=this.y&&(f=100*this.x,k=100-100*this.y);f=Math.round(100*f)/100;k=Math.round(100*k)/100;c.x=f;c.y=k;d.setLastX(f);d.setLastY(k);return'<line x="'+(new String(f)).toString()+'" y="'+(new String(k)).toString()+'"/>'};return a}(g.mxgraph.io.vsdx.geometry.Row);m.RelLineTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelLineTo"})(B.geometry||-(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){return b.call(this,c,d,f)||this}__extends(a,b);a.prototype.handle=function(c,d){var f=c.x,k=c.y;null!=this.x&&null!=this.y&&(f=100*this.x,k=100-100*this.y);f=Math.round(100*f)/100;k=Math.round(100*k)/100;c.x=f;c.y=k;d.setLastX(f);d.setLastY(k);d.setLastMoveX(f);d.setLastMoveY(k);return'<move x="'+(new String(f)).toString()+'" y="'+(new String(k)).toString()+'"/>'};return a}(g.mxgraph.io.vsdx.geometry.Row);-m.RelMoveTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelMoveTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b){c=100*this.x;var f=100-100*this.y,k=100*this.a,n=100-100*this.b;c=Math.round(100*c)/100;f=Math.round(100*f)/100;k=Math.round(100*k)/100;n=Math.round(100*n)/100;d.setLastX(c);d.setLastY(f);return'<quad x1="'+(new String(k)).toString()+'" y1="'+-(new String(n)).toString()+'" x2="'+(new String(c)).toString()+'" y2="'+(new String(f)).toString()+'"/>'}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.RelQuadBezTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelQuadBezTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k){c=b.call(this,c,d,f)||this;c.a=k;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a){c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var f=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();c=Math.round(100*c)/100;f=Math.round(100*(100-f))/100;d.setLastX(c);d.setLastY(f)}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);-m.SplineKnot=h;h.__class="com.mxgraph.io.vsdx.geometry.SplineKnot"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){c=b.call(this,c,d,f)||this;c.a=k;c.b=n;c.c=q;c.d=t;return c}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){d.getHeight();d.getWidth();c=this.x*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();var f=this.y*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();d.setLastKnot(this.c);c=Math.round(100*c)/-100;f=Math.round(100*(100-f))/100;d.getLastX();d.getLastY();d.setLastX(c);d.setLastY(f);return"<curve "}return""};return a}(g.mxgraph.io.vsdx.geometry.Row);m.SplineStart=h;h.__class="com.mxgraph.io.vsdx.geometry.SplineStart"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(){function h(b,a){this.cellElements={};this.sections={};this.styleParents={};this.style=this.pm=this.Id=this.shape=null;this.shape=b;this.pm=a.getPropertiesManager();b=b.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.ID);try{this.Id=null!=b&&0!==b.length?parseFloat(b):-1}catch(c){this.Id=-1}this.cacheCells(a);this.stylesheetRefs(a)}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0(),-h.__static_initializer_1())};h.styleTypes_$LI$=function(){h.__static_initialize();null==h.styleTypes&&(h.styleTypes={});return h.styleTypes};h.__static_initializer_0=function(){h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND_TRANS]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;-h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN]=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE]=-g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$().QuickStyleFillColor=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$().QuickStyleFillMatrix=g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN]=-g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$().QuickStyleLineColor=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$().QuickStyleLineMatrix=-g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE]=g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.BOTTOM_MARGIN]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;-h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.LEFT_MARGIN]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.RIGHT_MARGIN]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.TOP_MARGIN]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH]=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$()[g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER]=-g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$().QuickStyleFontColor=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE;h.styleTypes_$LI$().QuickStyleFontMatrix=g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE};h.prototype.getTheme=function(){return null};h.prototype.getQuickStyleVals=function(){return null};h.prototype.isVertex=function(){return!1};h.prototype.styleDebug=function(b){h.vsdxStyleDebug&&console.info(b)};h.prototype.stylesheetRefs=function(b){this.styleParents[g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE]=-b.getStylesheet(this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE));this.styleParents[g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE]=b.getStylesheet(this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_STYLE));this.styleParents[g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE]=b.getStylesheet(this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_STYLE));this.style=b.getStylesheet("0")};h.prototype.cacheCells=function(b){if(null!=this.shape){var a=this.shape.childNodes;-if(null!=a)for(a=a.item(0);null!=a;)null!=a&&1==a.nodeType&&this.parseShapeElem(a,b),a=a.nextSibling}};h.prototype.parseShapeElem=function(b,a){a=b.nodeName;(function(c,d){return c&&c.equals?c.equals(d):c===d})(a,"Cell")?this.cellElements[b.getAttribute("N")]=b:function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Section")&&this.parseSection(b)};h.prototype.parseSection=function(b){var a=new g.mxgraph.io.vsdx.Section(b);this.sections[b.getAttribute("N")]=a};h.prototype.hasProperty=function(b,a){return this.cellElements.hasOwnProperty(a)};-h.prototype.getValue=function(b,a){return null!=b?b.getAttribute("V")||"":a};h.prototype.getValueAsDouble=function(b,a){if(null!=b){var c=b.getAttribute("V");if(null!=c){if(function(f,k){return f&&f.equals?f.equals(k):f===k}(c,"Themed"))return 0;try{var d=parseFloat(c);(function(f,k){return f&&f.equals?f.equals(k):f===k})(b.getAttribute("U"),"PT")&&(d*=g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());return Math.round(100*d)/100}catch(f){}}}return a};h.prototype.getScreenNumericalValue$org_w3c_dom_Element$double=-function(b,a){if(null!=b&&(b=b.getAttribute("V"),null!=b))try{var c=parseFloat(b);return this.getScreenNumericalValue$double(c)}catch(d){}return a};h.prototype.getScreenNumericalValue=function(b,a){if((null==b||1!=b.nodeType)&&null!==b||"number"!==typeof a&&null!==a){if("number"!==typeof b&&null!==b||void 0!==a)throw Error("invalid overload");return this.getScreenNumericalValue$double(b)}return this.getScreenNumericalValue$org_w3c_dom_Element$double(b,a)};h.prototype.getScreenNumericalValue$double=-function(b){return b*g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()};h.prototype.getAttribute=function(b,a,c){var d=this.cellElements;b=d[b]?d[b]:null;null!=b&&(c=b.getAttribute(a)||"");return c};h.prototype.getChildValues=function(b,a){var c={};for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var d=b,f;if((f=d.nodeName)&&f.equals?f.equals("Cell"):"Cell"===f){f=d.getAttribute("N")||"";var k=d.getAttribute("V")||""}else f=d.nodeName,k=d.textContent;if(null!=a){var n=a[f]?a[f]:null;null!=-n&&(k=d.getAttribute(n)||"")}c[f]=k}b=b.nextSibling}return c};h.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(b,a,c){var d=function(q,t){return q[t]?q[t]:null}(this.sections,c),f=null,k=!1;null!=d&&(f=d.getIndexedCell(a,b));if(null!=f){d=f.getAttribute("F");var n=f.getAttribute("V");if(null!=d&&null!=n)if(function(q,t){return q&&q.equals?q.equals(t):q===t}(d,"Inh")&&function(q,t){return q&&q.equals?q.equals(t):q===t}(n,"Themed"))k=!0;else if(function(q,t){return q&&-q.equals?q.equals(t):q===t}(d,"THEMEVAL()")&&function(q,t){return q&&q.equals?q.equals(t):q===t}(n,"Themed")&&null!=this.style){if(function(q,t){return q&&q.equals?q.equals(t):q===t}(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR,b))return f;d=this.style.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,a,c);if(null!=d)return d}}if(null==f||k)if(k=function(q,t){return q[t]?q[t]:null}(h.styleTypes_$LI$(),c),k=function(q,t){return q[t]?q[t]:null}(this.styleParents,k),null!=k&&(b=k.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,-a,c),null!=b))return b;return f};h.prototype.getCellElement=function(b,a,c){if("string"!==typeof b&&null!==b||"string"!==typeof a&&null!==a||"string"!==typeof c&&null!==c){if("string"!==typeof b&&null!==b||void 0!==a||void 0!==c)throw Error("invalid overload");return this.getCellElement$java_lang_String(b)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(b,a,c)};h.prototype.getCellElement$java_lang_String=function(b){var a=function(k,n){return k[n]?k[n]:null}(this.cellElements,-b),c=!1;if(null!=a){var d=a.getAttribute("F"),f=a.getAttribute("V");if(null!=d&&null!=f)if(function(k,n){return k&&k.equals?k.equals(n):k===n}(d,"Inh")&&function(k,n){return k&&k.equals?k.equals(n):k===n}(f,"Themed"))c=!0;else if(-1!=d.indexOf("THEMEVAL()")&&function(k,n){return k&&k.equals?k.equals(n):k===n}(f,"Themed")&&null!=this.style){if(function(k,n){return k&&k.equals?k.equals(n):k===n}("FillForegnd",b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR,-b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN,b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE,b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE,b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW,b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW,-b)||function(k,n){return k&&k.equals?k.equals(n):k===n}(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT,b))return a;d=this.style.getCellElement$java_lang_String(b);if(null!=d)return d}}if(null==a||c)if(c=function(k,n){return k[n]?k[n]:null}(h.styleTypes_$LI$(),b),c=function(k,n){return k[n]?k[n]:null}(this.styleParents,c),null!=c&&(b=c.getCellElement$java_lang_String(b),null!=b))return b;return a};h.prototype.getStrokeColor=function(){var b="";(function(a,c){return a&&a.equals?a.equals(c):a===c})(this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),-"1"),"0")?b="none":(b=this.getColor(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR)),function(a,c){return a&&a.equals?a.equals(c):a===c}("Themed",b)&&(b=this.getTheme(),b=null!=b?(this.isVertex()?b.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):b.getConnLineColor(this.getQuickStyleVals())).toHexStr():""));return b};h.prototype.getFillColor=function(){if(function(c,d){return c&&c.equals?c.equals(d):c===d}("1",this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),-"0"))){var b=function(c,d){return c[d]?c[d]:null}(this.sections,"FillGradient");if(null!=b&&(b=this.getColor(b.getIndexedCell("0","GradientStopColor")),null!=b&&0!==b.length))return b}b=this.getColor(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND));(function(c,d){return c&&c.equals?c.equals(d):c===d})("Themed",b)&&(b=this.getTheme(),null!=b?(b=b.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()),b=b.toHexStr()):b="#FFFFFF");var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),-"0");return null!=a&&function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")?"none":b};h.prototype.getColor=function(b){b=this.getValue(b,"");(function(a,c){return a&&a.equals?a.equals(c):a===c})("Themed",b)||function(a,c,d){void 0===d&&(d=0);return a.substr(d,c.length)===c}(b,"#")||(b=this.pm.getColor(b));return b};h.prototype.getTextBkgndColor=function(b){b=this.getValue(b,"");return function(a,c,d){void 0===d&&(d=0);return a.substr(d,c.length)===c}(b,"#")?b:function(a,c){return a&&a.equals?-a.equals(c):a===c}(b,"0")||function(a,c){return a&&a.equals?a.equals(c):a===c}(b,"255")||0===b.length?"none":this.pm.getColor((new String(parseInt(b)-1)).toString())};h.prototype.getLineWeight=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),0)};h.prototype.getStrokeTransparency=function(){return this.getValueAsDouble(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS),-0)};h.prototype.getNameU=function(){return this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||""};h.prototype.getName=function(){return this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME)||""};h.prototype.getUniqueID=function(){return this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.UNIQUE_ID)||""};h.prototype.getId=function(){return this.Id};h.prototype.getTextColor=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR,-b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);b=this.getValue(b,"#000000");(function(a,c){return a&&a.equals?a.equals(c):a===c})("Themed",b)?(b=this.getTheme(),b=null!=b?(this.isVertex()?b.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):b.getConnFontColor(this.getQuickStyleVals())).toHexStr():"#000000"):function(a,c,d){void 0===d&&(d=0);return a.substr(d,c.length)===c}(b,"#")||(b=this.pm.getColor(b));return b};h.prototype.getTextTopMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.TOP_MARGIN),-0)};h.prototype.getTextBottomMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BOTTOM_MARGIN),0)};h.prototype.getTextLeftMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LEFT_MARGIN),0)};h.prototype.getTextRightMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.RIGHT_MARGIN),-0)};h.prototype.getTextStyle=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.STYLE,b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};h.prototype.getTextFont=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FONT,b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};h.prototype.getTextPos=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.POS,-b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};h.prototype.getTextStrike=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.STRIKETHRU,b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);b=(b=this.getValue(b,""))&&b.equals?b.equals("1"):"1"===b;return b};h.prototype.getTextCase=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.CASE,b,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);-return this.getValue(b,"")};h.prototype.getHorizontalAlign=function(b,a){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.HORIZONTAL_ALIGN,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);switch(this.getValue(b,"")){case "0":a=a?"left":mxConstants.ALIGN_LEFT;break;case "2":a=a?"right":mxConstants.ALIGN_RIGHT;break;case "3":case "4":a=a?"justify":mxConstants.ALIGN_CENTER;break;default:a=a?"center":mxConstants.ALIGN_CENTER}return a};h.prototype.getIndentFirst=-function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.INDENT_FIRST,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))).toString()};h.prototype.getIndentLeft=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.INDENT_LEFT,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,-0))|0)).toString()};h.prototype.getIndentRight=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.INDENT_RIGHT,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};h.prototype.getSpBefore=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SPACE_BEFORE,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);-return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};h.prototype.getSpAfter=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SPACE_AFTER,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};h.prototype.getSpLine=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SPACE_LINE,-b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);b=this.getValue(b,"");var a=b&&b.equals?b.equals(""):""===b;return a?0:parseFloat(b)};h.prototype.getFlags=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FLAGS,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return this.getValue(b,"0")};h.prototype.getLetterSpace=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LETTER_SPACE,-b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))).toString()};h.prototype.getBullet=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BULLET,b,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return this.getValue(b,"0")};h.prototype.getShape=function(){return this.shape};h.prototype.setShape=function(b){this.shape=b};h.lineDashPatterns_$LI$=function(){h.__static_initialize();-null==h.lineDashPatterns&&(h.lineDashPatterns=[]);return h.lineDashPatterns};h.__static_initializer_1=function(){h.lineDashPatterns_$LI$().push([]);h.lineDashPatterns_$LI$().push([]);h.lineDashPatterns_$LI$().push([]);var b=[];b.push(h.DOT);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DASH);b.push(h.SPACE);b.push(h.DOT);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DASH);b.push(h.SPACE);b.push(h.DOT);b.push(h.SPACE);b.push(h.DOT);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);-b=[];b.push(h.DASH);b.push(h.SPACE);b.push(h.DASH);b.push(h.SPACE);b.push(h.DOT);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.SPACE);b.push(h.SHORT_DASH);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.SPACE);b.push(h.SHORT_DASH);b.push(h.SPACE);b.push(h.SHORT_DASH);b.push(h.SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DOT);b.push(h.SHORT_SPACE);-h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.DOT);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.DOT);b.push(h.SHORT_SPACE);b.push(h.DOT);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.DOT);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DASH);b.push(h.SHORT_SPACE);-b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DASH);b.push(h.SHORT_SPACE);b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);b.push(h.SHORT_DASH);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.DOT);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.LONG_SPACE);b.push(h.DOT);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);-b=[];b.push(h.LONG_DASH);b.push(h.LONG_SPACE);b.push(h.DOT);b.push(h.LONG_SPACE);b.push(h.DOT);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.LONG_DASH);b.push(h.LONG_SPACE);b.push(h.LONG_DASH);b.push(h.LONG_SPACE);b.push(h.DOT);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.XLONG_DASH);b.push(h.LONG_SPACE);b.push(h.DASH);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.XLONG_DASH);b.push(h.LONG_SPACE);b.push(h.DASH);b.push(h.LONG_SPACE);-b.push(h.DASH);b.push(h.LONG_SPACE);h.lineDashPatterns_$LI$().push(b);b=[];b.push(h.XSHORT_DASH);b.push(h.SHORT_SPACE);h.lineDashPatterns_$LI$().push(b)};h.getLineDashPattern=function(b){return 0<=b&&23>=b?h.lineDashPatterns_$LI$()[b]:h.lineDashPatterns_$LI$()[0]};return h}();m.__static_initialized=!1;m.vsdxStyleDebug=!1;m.SPACE=4;m.SHORT_SPACE=2;m.LONG_SPACE=6;m.DOT=1;m.DASH=8;m.LONG_DASH=12;m.SHORT_DASH=4;m.XLONG_DASH=20;m.XSHORT_DASH=2;B.Style=m;m.__class="com.mxgraph.io.vsdx.Style"})(z.vsdx||-(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){var k=b.call(this)||this;k.__com_mxgraph_io_vsdx_theme_HslClr_hue=c/360;k.__com_mxgraph_io_vsdx_theme_HslClr_sat=d/100;k.__com_mxgraph_io_vsdx_theme_HslClr_lum=f/100;k.color=(new g.mxgraph.io.vsdx.theme.HSLColor(c,d,f)).toRgb();return k}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.HslClr=h;h.__class="com.mxgraph.io.vsdx.theme.HslClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||-(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c){var d=b.call(this)||this;d.val=c;d.color=new g.mxgraph.io.vsdx.theme.Color(255,255,255);return d}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.PrstClr=h;h.__class="com.mxgraph.io.vsdx.theme.PrstClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c){var d=b.call(this)||this;d.isDynamic=!0;d.val=c;return d}__extends(a,b);a.prototype.calcColor=function(c,d){var f=this.val;f="phClr".equals?"phClr".equals(f):"phClr"===f;f?this.color=d.getStyleColor(c):(this.color=d.getSchemeColor(this.val),this.isDynamic=!1);b.prototype.calcColor.call(this,c,d)};return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.SchemeClr=h;h.__class="com.mxgraph.io.vsdx.theme.SchemeClr"})(B.theme||-(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f){var k=b.call(this)||this;k.r=0;k.g=0;k.b=0;k.r=c;k.g=d;k.b=f;k.color=new g.mxgraph.io.vsdx.theme.Color(c,d,f);return k}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.ScrgbClr=h;h.__class="com.mxgraph.io.vsdx.theme.ScrgbClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c){var d=b.call(this)||this;d.hexVal=null;d.hexVal=c;d.color=g.mxgraph.io.vsdx.theme.Color.decodeColorHex(c);return d}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.SrgbClr=h;h.__class="com.mxgraph.io.vsdx.theme.SrgbClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d){var f=b.call(this)||this;f.lastClr=null;f.val=c;f.lastClr=d;if(null==d)switch(c){case "windowText":d="000000";break;case "window":d="FFFFFF";break;default:d="FFFFFF"}f.color=g.mxgraph.io.vsdx.theme.Color.decodeColorHex(d);return f}__extends(a,b);return a}(g.mxgraph.io.vsdx.theme.OoxmlColor);m.SysClr=h;h.__class="com.mxgraph.io.vsdx.theme.SysClr"})(B.theme||(B.theme={}))})(z.vsdx||(z.vsdx={}))})(y.io||-(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){(function(m){var h=function(b){function a(c,d,f,k,n,q,t){return b.call(this,c,d,f,k,n,q,t)||this}__extends(a,b);a.prototype.handle=function(c,d){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var f=d.getHeight()/g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=d.getWidth()/g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();this.x*=k;this.y*=f;this.a*=k;this.b*=f}return b.prototype.handle.call(this,-c,d)};return a}(g.mxgraph.io.vsdx.geometry.EllipticalArcTo);m.RelEllipticalArcTo=h;h.__class="com.mxgraph.io.vsdx.geometry.RelEllipticalArcTo"})(B.geometry||(B.geometry={}))})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(h){function b(a,c){var d=this;d.text=null;d.fields=null;d.geom=null;d.imageData=null;d.theme=null;d.quickStyleVals=null;d=h.call(this,a,c)||this;d.paragraphs=null;d.styleMap={};d.width=0;d.height=0;d.rotation=0;d.lastX=0;d.lastY=0;d.lastMoveX=0;d.lastMoveY=0;d.lastKnot=-1;d.geomList=null;d.geomListProcessed=!1;d.themeVariant=0;d.cp="0";d.pp="0";d.tp="0";d.fld="0";d.width=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(f,-k){return f[k]?f[k]:null}(d.cellElements,g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0);d.height=d.getScreenNumericalValue$org_w3c_dom_Element$double(function(f,k){return f[k]?f[k]:null}(d.cellElements,g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return d}__extends(b,h);b.UNICODE_LINE_SEP_$LI$=function(){null==b.UNICODE_LINE_SEP&&(b.ERROR_IMAGE="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tIENyZWF0ZWQgd2l0aCBJbmtzY2FwZSAoaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvKSAtLT4NCjxzdmcNCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyINCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiDQogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiDQogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIg0KICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiDQogICB3aWR0aD0iMjUwIg0KICAgaGVpZ2h0PSIyNTAiDQogICBpZD0ic3ZnMzMxOSINCiAgIHNvZGlwb2RpOnZlcnNpb249IjAuMzIiDQogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2Ig0KICAgdmVyc2lvbj0iMS4wIg0KICAgc29kaXBvZGk6ZG9jbmFtZT0ibm9waG90b19pLnN2ZyINCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4NCiAgPGRlZnMNCiAgICAgaWQ9ImRlZnMzMzIxIj4NCiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUNCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIg0KICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIg0KICAgICAgIGlkPSJwZXJzcGVjdGl2ZTMzMjciIC8+DQogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlDQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzM0MiINCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSINCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIg0KICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCINCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSINCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPg0KICA8L2RlZnM+DQogIDxzb2RpcG9kaTpuYW1lZHZpZXcNCiAgICAgaWQ9ImJhc2UiDQogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiINCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiDQogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCINCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCINCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiINCiAgICAgaW5rc2NhcGU6em9vbT0iMi4yNDI5NDI3Ig0KICAgICBpbmtzY2FwZTpjeD0iMTIxLjk3NjQ4Ig0KICAgICBpbmtzY2FwZTpjeT0iMTIyLjQ0MTk4Ig0KICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiDQogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImxheWVyMSINCiAgICAgc2hvd2dyaWQ9ImZhbHNlIg0KICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjE2NjQiDQogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9Ijg0NCINCiAgICAgaW5rc2NhcGU6d2luZG93LXg9Ii0zIg0KICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTE4IiAvPg0KICA8bWV0YWRhdGENCiAgICAgaWQ9Im1ldGFkYXRhMzMyNCI+DQogICAgPHJkZjpSREY+DQogICAgICA8Y2M6V29yaw0KICAgICAgICAgcmRmOmFib3V0PSIiPg0KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4NCiAgICAgICAgPGRjOnR5cGUNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4NCiAgICAgICAgPGRjOnRpdGxlPkZvdG9ncmFmaWVydmVyYm90PC9kYzp0aXRsZT4NCiAgICAgICAgPGRjOmRhdGU+MjAwOC0wNi0yOTwvZGM6ZGF0ZT4NCiAgICAgICAgPGRjOmNyZWF0b3I+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnJzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOmNyZWF0b3I+DQogICAgICAgIDxkYzpyaWdodHM+DQogICAgICAgICAgPGNjOkFnZW50Pg0KICAgICAgICAgICAgPGRjOnRpdGxlPlRvcnN0ZW4gU2tvbXA8L2RjOnRpdGxlPg0KICAgICAgICAgIDwvY2M6QWdlbnQ+DQogICAgICAgIDwvZGM6cmlnaHRzPg0KICAgICAgICA8ZGM6cHVibGlzaGVyPg0KICAgICAgICAgIDxjYzpBZ2VudD4NCiAgICAgICAgICAgIDxkYzp0aXRsZT5Ub3JzdGVuIFNrb21wPC9kYzp0aXRsZT4NCiAgICAgICAgICA8L2NjOkFnZW50Pg0KICAgICAgICA8L2RjOnB1Ymxpc2hlcj4NCiAgICAgICAgPGRjOmxhbmd1YWdlPmRlX0RFPC9kYzpsYW5ndWFnZT4NCiAgICAgICAgPGRjOnN1YmplY3Q+DQogICAgICAgICAgPHJkZjpCYWc+DQogICAgICAgICAgICA8cmRmOmxpPlBpa3RvZ3JhbW07IEZvdG9ncmFmaWVydmVyYm90PC9yZGY6bGk+DQogICAgICAgICAgPC9yZGY6QmFnPg0KICAgICAgICA8L2RjOnN1YmplY3Q+DQogICAgICAgIDxkYzpkZXNjcmlwdGlvbj5Gb3RvZ3JhZmllcnZlcmJvdCBhbHMgUGlrdG9ncmFtbSA8L2RjOmRlc2NyaXB0aW9uPg0KICAgICAgICA8Y2M6bGljZW5zZQ0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL3B1YmxpY2RvbWFpbi8iIC8+DQogICAgICA8L2NjOldvcms+DQogICAgICA8Y2M6TGljZW5zZQ0KICAgICAgICAgcmRmOmFib3V0PSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9wdWJsaWNkb21haW4vIj4NCiAgICAgICAgPGNjOnBlcm1pdHMNCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyNSZXByb2R1Y3Rpb24iIC8+DQogICAgICAgIDxjYzpwZXJtaXRzDQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjRGlzdHJpYnV0aW9uIiAvPg0KICAgICAgICA8Y2M6cGVybWl0cw0KICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zI0Rlcml2YXRpdmVXb3JrcyIgLz4NCiAgICAgIDwvY2M6TGljZW5zZT4NCiAgICA8L3JkZjpSREY+DQogIDwvbWV0YWRhdGE+DQogIDxnDQogICAgIGlua3NjYXBlOmxhYmVsPSJFYmVuZSAxIg0KICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIg0KICAgICBpZD0ibGF5ZXIxIj4NCiAgICA8cGF0aA0KICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjEiDQogICAgICAgZD0iTSAxNjQuNTMxMjUgNjIuNjg3NSBDIDE2Mi43OTExNSA2Mi42ODc1MDEgMTYxLjM3NSA2NC4wNzI0MTYgMTYxLjM3NSA2NS44MTI1IEwgMTYxLjM3NSA2OC43NSBMIDM4LjM3NSA2OC43NSBDIDM1LjA5MjI5OCA2OC43NDk5OTkgMzIuNDY4NzUgNzEuMzczNTQ4IDMyLjQ2ODc1IDc0LjY1NjI1IEwgMzIuNDY4NzUgMTgxLjM3NSBDIDMyLjQ2ODc1IDE4NC42NTc3IDM1LjA5MjMwNyAxODcuMzEyNTEgMzguMzc1IDE4Ny4zMTI1IEwgMjExLjYyNSAxODcuMzEyNSBDIDIxNC45MDc2OSAxODcuMzEyNSAyMTcuNTMxMjcgMTg0LjY1NzcgMjE3LjUzMTI1IDE4MS4zNzUgTCAyMTcuNTMxMjUgNzQuNjU2MjUgQyAyMTcuNTMxMjUgNzEuMzczNTUxIDIxNC45MDc2OCA2OC43NSAyMTEuNjI1IDY4Ljc1IEwgMjAyLjA2MjUgNjguNzUgTCAyMDIuMDYyNSA2NS44MTI1IEMgMjAyLjA2MjUgNjQuMDcyNDEgMjAwLjY0NjM1IDYyLjY4NzUgMTk4LjkwNjI1IDYyLjY4NzUgTCAxNjQuNTMxMjUgNjIuNjg3NSB6IE0gNDYuODEyNSA3OCBMIDg4LjY1NjI1IDc4IEMgOTAuMzk2MzQyIDc4IDkxLjgxMjUgNzkuMzg0OTA3IDkxLjgxMjUgODEuMTI1IEwgOTEuODEyNSA5Ni4zMTI1IEMgOTEuODEyNSA5OC4wNTI1OTIgOTAuMzk2MzQzIDk5LjQzNzUgODguNjU2MjUgOTkuNDM3NSBMIDQ2LjgxMjUgOTkuNDM3NSBDIDQ1LjA3MjQwOCA5OS40Mzc1IDQzLjY4NzUgOTguMDUyNTkzIDQzLjY4NzUgOTYuMzEyNSBMIDQzLjY4NzUgODEuMTI1IEMgNDMuNjg3NSA3OS4zODQ5MDggNDUuMDcyNDA3IDc4IDQ2LjgxMjUgNzggeiBNIDE0NiA4OC4yMTg3NSBDIDE2Ny43MzQ3NSA4OC4yMTg3NTMgMTg1LjM3NSAxMDYuMTUwNzEgMTg1LjM3NSAxMjguMjUgQyAxODUuMzc0OTkgMTUwLjM0OTI4IDE2Ny43MzQ3NCAxNjguMjgxMjUgMTQ2IDE2OC4yODEyNSBDIDEyNC4yNjUyNyAxNjguMjgxMjYgMTA2LjYyNSAxNTAuMzQ5MjkgMTA2LjYyNSAxMjguMjUgQyAxMDYuNjI1IDEwNi4xNTA3MSAxMjQuMjY1MjYgODguMjE4NzUgMTQ2IDg4LjIxODc1IHogTSAxNDYgOTEuNzE4NzUgQyAxMjYuMTY1NTcgOTEuNzE4NzUgMTEwLjA2MjUgMTA4LjA4Mjg5IDExMC4wNjI1IDEyOC4yNSBDIDExMC4wNjI1IDE0OC40MTcxMSAxMjYuMTY1NTcgMTY0Ljc4MTI2IDE0NiAxNjQuNzgxMjUgQyAxNjUuODM0NDMgMTY0Ljc4MTI1IDE4MS45Mzc1IDE0OC40MTcxIDE4MS45Mzc1IDEyOC4yNSBDIDE4MS45Mzc1IDEwOC4wODI4OSAxNjUuODM0NDMgOTEuNzE4NzUgMTQ2IDkxLjcxODc1IHogTSAxNDYgOTYuNTkzNzUgQyAxNjMuMTc3NjggOTYuNTkzNzUyIDE3Ny4xMjUgMTEwLjc4NDIgMTc3LjEyNSAxMjguMjUgQyAxNzcuMTI0OTkgMTQ1LjcxNTggMTYzLjE3NzY5IDE1OS44NzUgMTQ2IDE1OS44NzUgQyAxMjguODIyMzEgMTU5Ljg3NSAxMTQuODc1IDE0NS43MTU4IDExNC44NzUgMTI4LjI1IEMgMTE0Ljg3NSAxMTAuNzg0MTkgMTI4LjgyMjMxIDk2LjU5Mzc1IDE0NiA5Ni41OTM3NSB6IE0gMTc2LjUgMTcyLjcxODc1IEwgMjA2LjE4NzUgMTcyLjcxODc1IEMgMjA3LjQyMTM4IDE3Mi43MTg3NSAyMDguNDA2MjUgMTczLjEyNzgzIDIwOC40MDYyNSAxNzMuNjI1IEwgMjA4LjQwNjI1IDE3Ny45Njg3NSBDIDIwOC40MDYyNSAxNzguNDY1OTIgMjA3LjQyMTM4IDE3OC44NDM3NSAyMDYuMTg3NSAxNzguODQzNzUgTCAxNzYuNSAxNzguODQzNzUgQyAxNzUuMjY2MTEgMTc4Ljg0Mzc1IDE3NC4yODEyNSAxNzguNDY1OTIgMTc0LjI4MTI1IDE3Ny45Njg3NSBMIDE3NC4yODEyNSAxNzMuNjI1IEMgMTc0LjI4MTI1IDE3My4xMjc4MyAxNzUuMjY2MTIgMTcyLjcxODc1IDE3Ni41IDE3Mi43MTg3NSB6ICINCiAgICAgICBpZD0icmVjdDMyMDkiIC8+DQogICAgPHBhdGgNCiAgICAgICBzdHlsZT0iZmlsbDojYzQyNjFkO2ZpbGwtb3BhY2l0eToxIg0KICAgICAgIGQ9Ik0gMjAgMCBDIDE4LjU1OTkzOCAwIDE3LjE2NDc0NyAwLjE1MDk4NjY2IDE1LjgxMjUgMC40Mzc1IEMgMTUuMjEwMjkxIDAuNTY1MTk1NzggMTQuNjExOTEzIDAuNzI2MjExMjYgMTQuMDMxMjUgMC45MDYyNSBDIDEzLjU1NDc3MyAxLjA1Mzk4NTIgMTMuMDg1MzQ5IDEuMjI0ODUzNiAxMi42MjUgMS40MDYyNSBDIDEyLjMyODc2NiAxLjUyMzA3MzkgMTIuMDM5MDMzIDEuNjUwOTE4MiAxMS43NSAxLjc4MTI1IEMgMTEuMzQ3Mjc4IDEuOTYyMzU5OCAxMC45NTA0MDYgMi4xMzc0MTY1IDEwLjU2MjUgMi4zNDM3NSBDIDEwLjUyMTU1NSAyLjM2NTU2ODggMTAuNDc4MjczIDIuMzg0MTU1NSAxMC40Mzc1IDIuNDA2MjUgQyAxMC40MTY5MzQgMi40MTczNzU0IDEwLjM5NTUyMiAyLjQyNjMwNDkgMTAuMzc1IDIuNDM3NSBDIDkuODMyNjg2MSAyLjczMzM0NDYgOS4zMjI2NDQ4IDMuMDYzMjQ1MiA4LjgxMjUgMy40MDYyNSBDIDguMjgzMTIyMSAzLjc2MjE4NjUgNy43NzI3NzI4IDQuMTU4OTIwOSA3LjI4MTI1IDQuNTYyNSBDIDcuMjc1MDU1IDQuNTY3NTg2NiA3LjI1NjE4ODggNC41NTc0MDYxIDcuMjUgNC41NjI1IEMgNy4yMzg1NDc5IDQuNTcxOTQzNCA3LjIzMDE4MDYgNC41ODQyODE2IDcuMjE4NzUgNC41OTM3NSBDIDcuMTA0NzM1MiA0LjY4ODAxNTkgNi45ODY4NTA3IDQuNzc4MjY4NyA2Ljg3NSA0Ljg3NSBDIDYuNTE1NzAyMSA1LjE4NjQyNjQgNi4xNzk3OTA5IDUuNTA3NzA5MSA1Ljg0Mzc1IDUuODQzNzUgQyA1LjQwNDQwMjUgNi4yODE4MDc4IDQuOTkwNzQ0OSA2Ljc0MTM1NTQgNC41OTM3NSA3LjIxODc1IEMgNC41NzkwMDg2IDcuMjM2NTQ2MiA0LjU3NzE4MDYgNy4yNjM0MDE1IDQuNTYyNSA3LjI4MTI1IEMgMy43Njc0ODk4IDguMjQzOTE4MSAzLjA0MjI3MjEgOS4yNzE4NzA1IDIuNDM3NSAxMC4zNzUgQyAyLjQyNjIyMzIgMTAuMzk1NjM1IDIuNDE3NDU2MSAxMC40MTY4MiAyLjQwNjI1IDEwLjQzNzUgQyAyLjEwODM5MDggMTAuOTg1MzQ4IDEuODQwMjIzMyAxMS41NDcyMTQgMS41OTM3NSAxMi4xMjUgQyAxLjU3NTU4NjUgMTIuMTY3NjY1IDEuNTQ5MTI1NSAxMi4yMDcxODIgMS41MzEyNSAxMi4yNSBDIDEuMjg3NzEzMSAxMi44MzI0MzMgMS4wOTQ2NzU0IDEzLjQyMTgyMiAwLjkwNjI1IDE0LjAzMTI1IEMgMC43Mjk2MzAxNCAxNC42MDI0OTUgMC41NjMwOTYzNCAxNS4xODg4MjggMC40Mzc1IDE1Ljc4MTI1IEMgMC4xNDY5MTQwNCAxNy4xNDI1NzggLTQuMzkwNjEzM2UtMTggMTguNTQ5NDY2IDAgMjAgTCAwIDIzMCBDIDAgMjQxLjA4IDguOTIgMjUwIDIwIDI1MCBMIDIzMCAyNTAgQyAyMzEuNDQwMDYgMjUwIDIzMi44MzUyNSAyNDkuODQ5MDEgMjM0LjE4NzUgMjQ5LjU2MjUgQyAyMzQuNzg5MDMgMjQ5LjQzNDk3IDIzNS4zODg2NiAyNDkuMjczODEgMjM1Ljk2ODc1IDI0OS4wOTM3NSBDIDIzNi40NDQ3NiAyNDguOTQ2IDIzNi45MTUwNSAyNDguNzc1MjYgMjM3LjM3NSAyNDguNTkzNzUgQyAyMzcuNjcxMjMgMjQ4LjQ3NjkzIDIzNy45NjA5NyAyNDguMzQ5MDggMjM4LjI1IDI0OC4yMTg3NSBDIDIzOC4yNzk4MSAyNDguMjA1MzEgMjM4LjMxNDAyIDI0OC4yMDEwOSAyMzguMzQzNzUgMjQ4LjE4NzUgQyAyMzguNzU4MzYgMjQ3Ljk5ODMgMjM5LjE2Mzc0IDI0Ny44MDk4MSAyMzkuNTYyNSAyNDcuNTkzNzUgQyAyMzkuNTgzMTggMjQ3LjU4MjU0IDIzOS42MDQzNiAyNDcuNTczNzggMjM5LjYyNSAyNDcuNTYyNSBDIDI0MC4xNjkyNSAyNDcuMjY1MTIgMjQwLjY3NTU4IDI0Ni45Mzg3MyAyNDEuMTg3NSAyNDYuNTkzNzUgQyAyNDEuNjY4NzggMjQ2LjI2OTQxIDI0Mi4xNDM1OSAyNDUuOTI2MzkgMjQyLjU5Mzc1IDI0NS41NjI1IEMgMjQyLjY0NDc0IDI0NS41MjEyOCAyNDIuNjk5NDMgMjQ1LjQ3OTIxIDI0Mi43NSAyNDUuNDM3NSBDIDI0Mi44NzY1MSAyNDUuMzMzMTggMjQzLjAwMTE1IDI0NS4yMzIzNSAyNDMuMTI1IDI0NS4xMjUgQyAyNDMuNDgyNjUgMjQ0LjgxNTM4IDI0My44MjE1NSAyNDQuNDkwMTkgMjQ0LjE1NjI1IDI0NC4xNTYyNSBDIDI0NC40OTIyOSAyNDMuODIwMjEgMjQ0LjgxMzU3IDI0My40ODQzIDI0NS4xMjUgMjQzLjEyNSBDIDI0NS4yMzE2NyAyNDMuMDAyMzQgMjQ1LjMzMzgxIDI0Mi44NzUyNyAyNDUuNDM3NSAyNDIuNzUgQyAyNDUuNDQyNzYgMjQyLjc0MzYyIDI0NS40MzIyNSAyNDIuNzI1MTMgMjQ1LjQzNzUgMjQyLjcxODc1IEMgMjQ1Ljg0MjQ5IDI0Mi4yMjgzIDI0Ni4yMzY0IDI0MS43MTU3NiAyNDYuNTkzNzUgMjQxLjE4NzUgQyAyNDYuOTM4MTIgMjQwLjY3ODQzIDI0Ny4yNjUzNiAyNDAuMTY2MjIgMjQ3LjU2MjUgMjM5LjYyNSBDIDI0Ny41NzM2MyAyMzkuNjA0NzIgMjQ3LjU4MjY4IDIzOS41ODI4MiAyNDcuNTkzNzUgMjM5LjU2MjUgQyAyNDcuODkxOTcgMjM5LjAxNDggMjQ4LjE1OTMxIDIzOC40NTIzOSAyNDguNDA2MjUgMjM3Ljg3NSBDIDI0OC40MTU1NCAyMzcuODUzMjggMjQ4LjQyODI5IDIzNy44MzQyNiAyNDguNDM3NSAyMzcuODEyNSBDIDI0OC40NDY0NCAyMzcuNzkxMjkgMjQ4LjQ1OTg4IDIzNy43NzEyNSAyNDguNDY4NzUgMjM3Ljc1IEMgMjQ4LjcwOTkyIDIzNy4xNzQ3NiAyNDguOTA2MjggMjM2LjU3MDA4IDI0OS4wOTM3NSAyMzUuOTY4NzUgQyAyNDkuMjczNzUgMjM1LjM5MTM3IDI0OS40MzQ2OCAyMzQuODE3NTQgMjQ5LjU2MjUgMjM0LjIxODc1IEMgMjQ5Ljg1MzA5IDIzMi44NTc0MiAyNTAgMjMxLjQ1MDUzIDI1MCAyMzAgTCAyNTAgMjAgQyAyNTAgOC45MiAyNDEuMDggLTMuMzUzNzk4N2UtMTcgMjMwIDAgTCAyMCAwIHogTSAzNC43ODEyNSAxOS40MDYyNSBMIDIyNS40Njg3NSAxOS40MDYyNSBDIDIyOC4zMDk0NiAxOS40MDYyNSAyMzAuNTkzNzUgMjEuNjkwNTQ0IDIzMC41OTM3NSAyNC41MzEyNSBMIDIzMC41OTM3NSAyMTUuMjUgTCAzNC43ODEyNSAxOS40MDYyNSB6IE0gMTkuNDA2MjUgMzQuNzUgTCAyMTUuMjE4NzUgMjMwLjU5Mzc1IEwgMjQuNTMxMjUgMjMwLjU5Mzc1IEMgMjEuNjkwNTQ0IDIzMC41OTM3NiAxOS40MDYyNSAyMjguMzA5NDYgMTkuNDA2MjUgMjI1LjQ2ODc1IEwgMTkuNDA2MjUgMzQuNzUgeiAiDQogICAgICAgaWQ9InBhdGgzMTk2IiAvPg0KICA8L2c+DQo8L3N2Zz4NCg==",-b.UNICODE_LINE_SEP=String.fromCharCode(8232));return b.UNICODE_LINE_SEP};b.prototype.setThemeAndVariant=function(a,c){this.theme=a;this.themeVariant=c};b.prototype.getTheme=function(){null!=this.theme&&this.theme.setVariant(this.themeVariant);return this.theme};b.prototype.getQuickStyleVals=function(){return this.quickStyleVals};b.prototype.processGeomList=function(a){if(!this.geomListProcessed){this.geomList=new g.mxgraph.io.vsdx.mxVsdxGeometryList(a);if(null!=this.geom)for(a=0;a<this.geom.length;a++)this.geomList.addGeometry(this.geom[a]);-this.geomListProcessed=!0}};b.prototype.parseShapeElem=function(a,c){h.prototype.parseShapeElem.call(this,a,c);var d=a.nodeName;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"ForeignData")){d=function(A,C){for(A=A.firstChild;null!=A;){if(1==A.nodeType){var I=A;if("rel"==I.nodeName.toLowerCase()&&(I=I.getAttribute("r:id"),null!=I&&0!==I.length)){A=C.lastIndexOf("/");var Q="",K="";try{Q=C.substring(0,A),K=C.substring(A,C.length)}catch(L){break}A=c.getRelationship(I,Q+"/_rels"+K+".rels");-if(null!=A){C=A.getAttribute("Target")||"";I=A.getAttribute("Type");A=C.lastIndexOf("/");try{C=C.substring(A+1,C.length)}catch(L){break}return{type:I,target:C}}break}}A=A.nextSibling}};var f=a.ownerDocument.vsdxFileName,k=a.getAttribute("ForeignType"),n=a.getAttribute("CompressionType")||"",q=null;if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"Bitmap"))n=n.toLowerCase();else if(function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"MetaFile"))n="png";else if(function(A,C){return A&&A.equals?-A.equals(C):A===C}(k,"Enhanced Metafile")||function(A,C){return A&&A.equals?A.equals(C):A===C}(k,"EnhMetaFile"))n="png";else if("Object"==k){if(q=d(a,f),0<q.type.indexOf("/oleObject"))if(n=c.getRelationship("rId1","visio/embeddings/_rels/"+q.target+".rels"),null!=n){q=n.getAttribute("Target");k=n.getAttribute("Type");try{var t=q.lastIndexOf("/");q=q.substring(t+1,q.length)}catch(A){return}n="png";q={type:k,target:q}}else return}else return;null==q&&(q=d(a,f));k=q.type;q=q.target;null!=k&&function(A,-C){var I=A.length-C.length;A=A.indexOf(C,I);return-1!==A&&A===I}(k,"image")&&(this.imageData={},(a=c.getMedia(g.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+q))?(this.imageData.iData=a,function(A,C){var I=A.length-C.length;A=A.indexOf(C,I);return-1!==A&&A===I}(q.toLowerCase(),".bmp")&&(n="jpg"),this.imageData.iType=n):(this.imageData.iData=b.ERROR_IMAGE,this.imageData.iType="svg+xml"))}else(function(A,C){return A&&A.equals?A.equals(C):A===C})(d,g.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&(this.text=-a)};b.prototype.parseSection=function(a){var c=a.getAttribute("N");if(function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(c,"Geometry"))null==this.geom&&(this.geom=[]),this.geom.push(a);else if(function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(c,"Field")){a=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var d=0;d<a.length;d++){c=a[d];var f=c.getAttribute("IX")||"";if(0!==f.length)if(null==this.fields&&(this.fields={}),function(I,Q){return I&&I.equals?I.equals(Q):I===Q}("1",-c.getAttribute("Del")))this.fields[f]="";else{for(var k=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(c,"Cell"),n="",q="",t=0;t<k.length;t++){var A=k[t];c=A.getAttribute("N");A=A.getAttribute("V")||A.textContent||"";switch(c){case "Value":n=A;break;case "Format":q=A}}if("esc(0)"==q)this.fields[f]=n;else if(0!==n.length){try{var C=isNaN(n)?new Date(n):new Date(b.VSDX_START_TIME+Math.floor(864E5*parseFloat(n)));q="c"==q?0==C.getHours()+C.getMinutes()+C.getSeconds()+C.getMilliseconds()?"m/d/yyyy":-"m/d/yyyy h:MM:ss tt":"ddddd"==q?"m/d/yyyy":"dddddd"==q?"dddd, mmmm dd, yyyy":"C"==q?"dddd, mmmm dd, yyyy h:MM:ss tt":"T"==q?"h:MM:ss tt":q.replace(/am\/pm/g,"tt").replace(/m/g,"@").replace(/M/g,"m").replace(/@/g,"M");n=Graph.prototype.formatDate(C,"UTC:"+q.replace(RegExp("\\{|\\}","g"),""))}catch(I){}this.fields[f]=n}}}}else h.prototype.parseSection.call(this,a)};b.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};b.prototype.getText=function(){return null!=-this.text?this.text.textContent:null};b.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};b.prototype.getWidth=function(){if(1>this.width&&null!=this.childShapes)try{for(var a=0;a<this.childShapes.entries.length;a++)this.width=Math.max(this.childShapes.entries[a].value.width,this.width)}catch(c){}return 0===this.width&&0<this.height?1:this.width};b.prototype.getHeight=function(){if(1>this.height&&null!=this.childShapes)try{for(var a=0;a<this.childShapes.entries.length;a++)this.height=-Math.max(this.childShapes.entries[a].value.height,this.height)}catch(c){}return 0===this.height&&0<this.width?1:this.height};b.prototype.getRotation=function(){return this.rotation};b.prototype.getStyleMap=function(){return this.styleMap};b.prototype.hasGeom=function(){return!(null==this.geom||0==this.geom.length)};b.prototype.hasGeomList=function(){return null!=this.geomList&&this.geomList.hasGeom()};b.prototype.getPPList=function(a){var c=null;""!=a&&(a=this.getBullet(a),"0"!=a&&(c='<ul style="margin: 0;list-style-type: '+-("4"==a?"square":"disc")+'">'));return c};b.prototype.getTextParagraphFormated=function(a){var c="",d={};d["text-align"]=this.getHorizontalAlign(this.pp,!0);d["margin-left"]=this.getIndentLeft(this.pp);d["margin-right"]=this.getIndentRight(this.pp);d["margin-top"]=this.getSpBefore(this.pp)+"px";d["margin-bottom"]=this.getSpAfter(this.pp)+"px";d["text-indent"]=this.getIndentFirst(this.pp);d["vertical-align"]=this.getAlignVertical();d.direction=this.getTextDirection(this.pp);return c+=this.insertAttributes(a,-d)};b.prototype.getTextCharFormated=function(a){var c="color:"+this.getTextColor(this.cp)+";",d="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",k="direction:"+this.getRtlText(this.cp)+";",n="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",q="line-height:"+this.getSpcLine(this.pp),t=";opacity:"+this.getTextOpacity(this.cp),A=this.getTextPos(this.cp),C=this.getTextCase(this.cp);(function(I,Q){return I&&I.equals?I.equals(Q):-I===Q})(C,"1")?a=a.toUpperCase():function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(C,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(I,Q){return I&&I.equals?I.equals(Q):I===Q})(A,"1")?a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(I,Q){return I&&I.equals?I.equals(Q):I===Q}(A,"2")&&(a=g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,-"i"):a;a=this.isUnderline(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;a=this.isSmallCaps(this.cp)?g.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return'<font style="'+d+f+c+k+n+q+t+'">'+a+"</font>"};b.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(c,d){return c&&c.equals?c.equals(d):c===d})(a,"0")?a="ltr":function(c,d){return c&&c.equals?c.equals(d):-c===d}(a,"1")&&(a="rtl");return a};b.prototype.getSpcLine=function(a){var c=!1;a=this.getSpLine(a);0<a?a*=g.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===a?100:100*Math.abs(a),c=!0);return(new String(a)).toString()+(c?"%":"px")};b.prototype.getSpcBefore=function(a){return this.getSpBefore(a)};b.prototype.insertAttributes=function(a,c){if(-1!=a.indexOf(">")){var d=a.indexOf(">"),f=a.substring(d);a=a.substring(0,d);c=' style="'+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(c,":")+'"';return a+-c+f}return a};b.prototype.getRtlText=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.RTL_TEXT,a,g.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);a=this.getValue(a,"ltr");(function(c,d){return c&&c.equals?c.equals(d):c===d})(a,"0")?a="ltr":function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"1")&&(a="rtl");return a};b.prototype.isBold=function(a){var c=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,-"")||function(d,f){return d&&d.equals?d.equals(f):d===f}(a.toLowerCase(),"themed")||(c=1===(parseInt(a)&1));return c};b.prototype.isItalic=function(a){var c=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,"")||function(d,f){return d&&d.equals?d.equals(f):d===f}(a.toLowerCase(),"themed")||(c=2===(parseInt(a)&2));return c};b.prototype.isUnderline=function(a){var c=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,"")||function(d,f){return d&&-d.equals?d.equals(f):d===f}(a.toLowerCase(),"themed")||(c=4===(parseInt(a)&4));return c};b.prototype.isSmallCaps=function(a){var c=!1;a=this.getTextStyle(a);(function(d,f){return d&&d.equals?d.equals(f):d===f})(a,"")||function(d,f){return d&&d.equals?d.equals(f):d===f}(a.toLowerCase(),"themed")||(c=8===(parseInt(a)&8));return c};b.prototype.getTextOpacity=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.COLOR_TRANS,a,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);-a=this.getValue(a,"0");var c="1";null!=a&&0!==a.length&&(a=1-parseFloat(a),c=(new String(a)).toString());return c};b.prototype.getTextSize=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SIZE,a,g.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);a=this.getScreenNumericalValue$org_w3c_dom_Element$double(a,12);return""+Math.round(100*a)/100};b.prototype.getAlignVertical=function(){var a=mxConstants.ALIGN_MIDDLE,c=parseInt(this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.VERTICAL_ALIGN),-"1"));0===c?a=mxConstants.ALIGN_TOP:2===c&&(a=mxConstants.ALIGN_BOTTOM);return a};b.prototype.getGeomList=function(){return this.geomList};b.prototype.getLastX=function(){return this.lastX};b.prototype.getLastY=function(){return this.lastY};b.prototype.getLastMoveX=function(){return this.lastMoveX};b.prototype.getLastMoveY=function(){return this.lastMoveY};b.prototype.getLastKnot=function(){return this.lastKnot};b.prototype.setLastX=function(a){this.lastX=a};b.prototype.setLastY=function(a){this.lastY=-a};b.prototype.setLastMoveX=function(a){this.lastMoveX=a};b.prototype.setLastMoveY=function(a){this.lastMoveY=a};b.prototype.setLastKnot=function(a){this.lastKnot=a};b.prototype.getConnections=function(){var a=[];if(this.sections&&this.sections.Connection)for(var c=this.getHeight(),d=this.getWidth(),f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.sections.Connection.elem,"Row"),k=0;k<f.length;k++){for(var n=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f[k]),q,t,A=0;A<n.length;A++){var C=-n[A],I=C.getAttribute("N");C=this.getScreenNumericalValue$org_w3c_dom_Element$double(C,0);"X"==I?q=mxUtils.format(C/d):"Y"==I&&(t=mxUtils.format(1-C/c))}null!=q&&null!=t&&a.push({x:q,y:t})}0==a.length&&this.master&&this.master.masterShape&&(a=this.master.masterShape.getConnections());return a};return b}(g.mxgraph.io.vsdx.Style);m.VSDX_START_TIME=(new Date("1899-12-30T00:00:00Z")).getTime();B.Shape=m;m.__class="com.mxgraph.io.vsdx.Shape"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph=-{}))})(com||(com={}));-(function(g){(function(y){(function(z){(function(B){var m=function(h){function b(a,c,d,f,k,n){function q(){var I;if(I=2!=a.connectsMap[t.Id])if(I=null!=t.childShapes)I=t.childShapes,null==I.entries&&(I.entries=[]),I=0!=I.entries.length;try{if(1==t.childShapes.entries.length){var Q=t.childShapes.entries[0].value,K=t.fields?Object.values(t.fields).join(""):t.text.textContent,L=Q.fields?Object.values(Q.fields).join(""):Q.text.textContent;K==L&&(I=!1,t.childShapes.entries=[],t.noLabelGroup=!0)}}catch(S){console.log(S)}return I}-var t=this;t.masterShape=null;t.master=null;t.parentHeight=0;t=h.call(this,c,n)||this;t.htmlLabels=!0;t.rootShape=t;t.shapeName=null;t.shapeIndex=0;t.vertex=!0;t.childShapes={};var A=t.getMasterId(),C=t.getShapeMasterId();t.master=null!=A?f[A]?f[A]:null:k;null!=t.master&&(t.masterShape=null==A&&null!=C?t.master.getSubShape(C):t.master.getMasterShape());f=t.getNameU();k=f.lastIndexOf(".");-1!==k&&(f=f.substring(0,k));t.shapeName=f;c=c.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);-null!=c&&0<c.length&&(c=c.item(0),t.childShapes=a.parseShapes(c,t.master,!1));c=t.calcRotation();t.rotation=100*c/100;t.rotation%=360;c=a.getCellIntValue("ThemeIndex",-100);-100===c&&(c=parseInt(t.getValue(t.getCellElement$java_lang_String("ThemeIndex"),"0")));n=function(I,Q){null==I.entries&&(I.entries=[]);for(var K=0;K<I.entries.length;K++)if(null!=I.entries[K].key.equals&&I.entries[K].key.equals(Q)||I.entries[K].key===Q)return I.entries[K].value;return null}(n.getThemes(),c);null==n&&"1"==urlParams.dev&&-console.log("No theme found for index "+c);c=a.getCellIntValue("VariationColorIndex",0);t.setThemeAndVariant(n,c);f=function(I){null==I.entries&&(I.entries=[]);return I.entries}(t.childShapes);for(k=0;k<f.length;k++)A=f[k].getValue(),A.setRootShape(t),null==A.theme&&A.setThemeAndVariant(n,c);t.quickStyleVals=new g.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFillColor"),-"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFillMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFontColor"),"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleFontMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleLineColor"),"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleLineMatrix"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleShadowColor"),-"1")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleType"),"0")),parseInt(t.getValue(t.getCellElement$java_lang_String("QuickStyleVariation"),"0")));null!=t.masterShape?(t.masterShape.processGeomList(null),t.processGeomList(t.masterShape.getGeomList()),0===t.width&&(t.width=t.getScreenNumericalValue$org_w3c_dom_Element$double(t.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0)),0===t.height&&(t.height=t.getScreenNumericalValue$org_w3c_dom_Element$double(t.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),-0))):t.processGeomList(null);t.vertex=d||q()||null!=t.geomList&&(!t.geomList.isNoFill()||1<t.geomList.getGeoCount());t.layerMember=t.getValue(t.getCellElement$java_lang_String("LayerMember"));t.layerMember&&(t.layerMember=t.layerMember.split(";"));return t}__extends(b,h);b.__static_initialize=function(){b.__static_initialized||(b.__static_initialized=!0,b.__static_initializer_0())};b.OFFSET_ARRAY_$LI$=function(){b.__static_initialize();null==b.OFFSET_ARRAY&&(b.OFFSET_ARRAY=["Organizational unit",-"Domain 3D"].slice(0).slice(0));return b.OFFSET_ARRAY};b.arrowSizes_$LI$=function(){b.__static_initialize();null==b.arrowSizes&&(b.arrowSizes=[2,3,5,7,9,22,45]);return b.arrowSizes};b.arrowTypes_$LI$=function(){b.__static_initialize();return b.arrowTypes};b.__static_initializer_0=function(){b.arrowTypes={};(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),0,mxConstants.NONE);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),1,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&-(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),2,"blockThin");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),3,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),4,mxConstants.ARROW_BLOCK);(function(a,c,d){null==-a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),5,mxConstants.ARROW_CLASSIC);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=-d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),10,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),13,mxConstants.ARROW_BLOCK);-(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),14,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||-a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),17,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_CLASSIC);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),-20,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),22,b.ARROW_NO_FILL_MARKER+"diamond");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=-a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),23,"dash");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),24,"ERone");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),25,"ERmandOne");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=-a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),27,"ERmany");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),28,"ERoneToMany");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),29,"ERzeroToMany");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=-a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),30,"ERzeroToOne");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),6,mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),7,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<-a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),8,mxConstants.ARROW_CLASSIC);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),9,"openAsync");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),11,"diamond");(function(a,c,d){null==a.entries&&(a.entries=-[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),12,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),15,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),16,b.ARROW_NO_FILL_MARKER+-mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),18,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&-a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),19,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_CLASSIC);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),21,b.ARROW_NO_FILL_MARKER+"diamond");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),26,"ERmandOne");(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<-a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),31,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),32,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),33,b.ARROW_NO_FILL_MARKER+-mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),34,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&-a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),35,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),-36,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),37,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||-a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),38,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),-39,mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),40,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_BLOCK);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&-a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),41,b.ARROW_NO_FILL_MARKER+mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},-getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),42,mxConstants.ARROW_OVAL);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),43,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<-a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),44,mxConstants.ARROW_OPEN);(function(a,c,d){null==a.entries&&(a.entries=[]);for(var f=0;f<a.entries.length;f++)if(null!=a.entries[f].key.equals&&a.entries[f].key.equals(c)||a.entries[f].key===c){a.entries[f].value=d;return}a.entries.push({key:c,-value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),45,mxConstants.ARROW_OPEN)};b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$=function(){b.__static_initialize();null==b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER&&(b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER={});return b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER};b.prototype.getShapeNode=function(a){var c=this.cellElements;c=c[a]?c[a]:null;return null==c&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):-c};b.prototype.getTextLabel=function(a){var c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.HIDE_TEXT),"0");c="1".equals?"1".equals(c):"1"===c;if(c)return null;c=this.getTextChildren();null==c&&null!=this.masterShape&&(c=this.masterShape.getTextChildren());if(this.htmlLabels){if(null!=c)return this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=this.getAlignVertical(),this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign("0",!1),a||(this.styleMap.overflow=-"width"),this.getHtmlTextContent(c)}else return a=this.getText(),null==a&&null!=this.masterShape?this.masterShape.getText():a;return null};b.prototype.getIndex=function(a){a=a.getAttribute("IX")||"";return 0===a.length?"0":a};b.prototype.initLabels=function(a){this.paragraphs={};for(var c=null,d=null,f=null,k=0;k<a.length;k++){var n=a.item(k);switch(n.nodeName){case "cp":c=this.getIndex(n);break;case "tp":this.getIndex(n);break;case "pp":d=this.getIndex(n);break;case "fld":f=this.getIndex(n);break;-case "#text":n=n.textContent;var q=this.paragraphs;q=q[d]?q[d]:null;null==q?(q=new g.mxgraph.io.vsdx.Paragraph(n,c,d,f),this.paragraphs[d]=q):q.addText(n,c,f)}}};b.prototype.createHybridLabel=function(a){var c=function(q,t){return q[t]?q[t]:null}(this.paragraphs,a);this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign(a,!1);this.styleMap[mxConstants.STYLE_SPACING_LEFT]=this.getIndentLeft(a);this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=this.getIndentRight(a);this.styleMap[mxConstants.STYLE_SPACING_TOP]=-this.getSpBefore(a);this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=this.getSpAfter(a);this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=this.getAlignVertical();this.styleMap.fontColor=this.getTextColor(a);this.styleMap.fontSize=this.getTextSize(a);this.styleMap.fontFamily=this.getTextFont(a);var d=this.isBold(a)?mxConstants.FONT_BOLD:0;d|=this.isItalic(a)?mxConstants.FONT_ITALIC:0;d|=this.isUnderline(a)?mxConstants.FONT_UNDERLINE:0;this.styleMap.fontStyle=(new String(d)).toString();a=c.numValues();-d=null;for(var f=0;f<a;f++){var k=c.getValue(f);if(0===k.length&&null!=this.fields){var n=c.getField(f);null!=n&&(k=function(q,t){return q[t]?q[t]:null}(this.fields,n),null==k&&null!=this.masterShape&&null!=this.masterShape.fields&&(k=function(q,t){return q[t]?q[t]:null}(this.masterShape.fields,n)))}null!=k&&(d=null==d?k:d+k)}return d};b.prototype.getHtmlTextContent=function(a){function c(A){A=g.mxgraph.io.vsdx.mxVsdxUtils.htmlEntities(A);n&&(A="<li>"+A,n=!1);k?(A=A.split("\n"),A[A.length-1]||(A.pop(),-n=!0),A=A.join("</li><li>")):A=A.replace(RegExp("\n","g"),"<br/>").replace(new RegExp(g.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP,"g"),"<br/>");return this.getTextCharFormated(A)}var d="",f=!0,k=!1,n=!1;if(null!=a&&0<a.length)for(var q=0;q<a.length;q++){var t=a.item(q);(function(A,C){return A&&A.equals?A.equals(C):A===C})(t.nodeName,"cp")?this.cp=this.getIndex(t):function(A,C){return A&&A.equals?A.equals(C):A===C}(t.nodeName,"tp")?this.tp=this.getIndex(t):function(A,C){return A&&A.equals?A.equals(C):-A===C}(t.nodeName,"pp")?(this.pp=this.getIndex(t),k&&(d+="</li></ul>"),f?f=!1:d+="</p>",d+=this.getTextParagraphFormated("<p>"),t=this.getPPList(this.pp),n=k=null!=t,d+=k?t:""):function(A,C){return A&&A.equals?A.equals(C):A===C}(t.nodeName,"fld")?(this.fld=this.getIndex(t),t=null,null!=this.fields&&(t=function(A,C){return A[C]?A[C]:null}(this.fields,this.fld)),null==t&&null!=this.masterShape&&null!=this.masterShape.fields&&(t=function(A,C){return A[C]?A[C]:null}(this.masterShape.fields,this.fld)),-null!=t&&(d+=c.call(this,t))):function(A,C){return A&&A.equals?A.equals(C):A===C}(t.nodeName,"#text")&&(t=t.textContent,d+=c.call(this,t))}k&&(d+="</li></ul>");return g.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(d+(f?"":"</p>"),"div","font-size: 1px")};b.prototype.isConnectorBigNameU=function(a){return function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"60 degree single")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"45 degree single")||function(c,d,f){void 0===-f&&(f=0);return c.substr(f,d.length)===d}(a,"45 degree double")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"60 degree double")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"45 degree tail")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"60 degree tail")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"45 degree tail")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"60 degree tail")||-function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Flexi-arrow 2")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Flexi-arrow 1")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Flexi-arrow 3")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Double flexi-arrow")||function(c,d,f){void 0===f&&(f=0);return c.substr(f,d.length)===d}(a,"Fancy arrow")};b.prototype.isVertex=function(){return this.vertex};b.prototype.getOriginPoint=-function(a,c){var d=this.getPinX(),f=this.getPinY(),k=this.getLocPinY(),n=this.getLocPinX(),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);d-=n;a-=f+(t-k);return!c||k===t/2&&n===q/2||0===this.rotation?new mxPoint(d,a):(c=q/2-n,k-=t/2,t=Math.cos((360-this.rotation)*Math.PI/180),n=Math.sin((360-this.rotation)*-Math.PI/180),new mxPoint(d+c-(c*t-k*n),c*n+k*t+a-k))};b.prototype.getDimensions=function(){var a=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),c=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return new mxPoint(0===a&&0<c?1:a,0===c&&0<a?1:c)};b.prototype.getPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.PIN_X),-0)};b.prototype.getPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.PIN_Y),0)};b.prototype.getLocPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_X),0)};b.prototype.getLocPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_Y),0)};b.prototype.getOpacity=-function(a){this.isGroup();a=this.getValueAsDouble(this.getCellElement$java_lang_String(a),0);a=Math.max(100-100*a,0);return a=Math.min(a,100)};b.prototype.getGradient=function(){if(function(d,f){return d&&d.equals?d.equals(f):d===f}("1",this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),"0"))){var a=function(d,f){return d[f]?d[f]:null}(this.sections,"FillGradient");if(null!=a){var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a.elem,-"Row");a=this.getColor(a.getIndexedCell(c[c.length-1].getAttribute("IX"),"GradientStopColor"));if(null!=a&&0!==a.length)return a}}a="";c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");25<=parseInt(c)?a=this.getColor(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND)):(c=this.getTheme(),null!=c&&(c=c.getFillGraientColor(this.getQuickStyleVals()),null!=c&&(a=c.toHexStr())));return a};b.prototype.getGradientDirection=-function(){var a="",c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");(function(d,f){return d&&d.equals?d.equals(f):d===f})(c,"25")?a=mxConstants.DIRECTION_EAST:function(d,f){return d&&d.equals?d.equals(f):d===f}(c,"27")?a=mxConstants.DIRECTION_WEST:function(d,f){return d&&d.equals?d.equals(f):d===f}(c,"28")?a=mxConstants.DIRECTION_SOUTH:function(d,f){return d&&d.equals?d.equals(f):d===f}(c,"30")&&(a=mxConstants.DIRECTION_NORTH);return a};b.prototype.calcRotation=-function(){var a=parseFloat(this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.ANGLE),"0"));a=180*a/Math.PI;return 360-a%360*100/100};b.prototype.propagateRotation=function(a){this.rotation+=a;this.rotation%=360;this.rotation=100*this.rotation/100};b.prototype.getTopSpacing=function(){return 100*(this.getTextTopMargin()/2-2.8)/100};b.prototype.getBottomSpacing=function(){return 100*(this.getTextBottomMargin()/2-2.8)/100};b.prototype.getLeftSpacing=function(){return 100*-(this.getTextLeftMargin()/2-2.8)/100};b.prototype.getRightSpacing=function(){return 100*(this.getTextRightMargin()/2-2.8)/100};b.prototype.getLabelRotation=function(){var a=!0,c=this.calcRotation(),d=parseFloat(this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),"0"));d=180*d/Math.PI;d-=c;45>Math.abs(d)||270<Math.abs(d)||(a=!1);return a};b.prototype.getHyperlink=function(){var a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("Address",-null,"Hyperlink");a=this.getValue(a,"");var c=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("SubAddress",null,"Hyperlink");c=this.getValue(c,"");return{extLink:a,pageLink:c}};b.prototype.getProperties=function(){var a=[];if(this.sections&&this.sections.Property)for(var c=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.sections.Property.elem,"Row"),d=0;d<c.length;d++){var f=c[d],k=f.getAttribute("N"),n=null;f=g.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f);-for(var q=0;q<f.length;q++){var t=f[q],A=t.getAttribute("N");"Value"==A?n=t.getAttribute("V"):"Label"==A&&(k=t.getAttribute("V"))}null!=n&&a.push({key:k,val:n})}return a};b.prototype.getStyleFromShape=function(){this.styleMap[g.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();this.rotation=Math.round(this.rotation);0!==this.rotation&&(this.styleMap[mxConstants.STYLE_ROTATION]=""+this.rotation);var a=this.getFillColor();(function(n,q){return n&&n.equals?n.equals(q):n===q})(a,"")?this.styleMap[mxConstants.STYLE_FILLCOLOR]=-"none":this.styleMap[mxConstants.STYLE_FILLCOLOR]=a;var c=this.getId();this.styleDebug("ID = "+c+" , Fill Color = "+a);a=this.getGradient();(function(n,q){return n&&n.equals?n.equals(q):n===q})(a,"")?this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]="none":(this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]=a,a=this.getGradientDirection(),function(n,q){return n&&n.equals?n.equals(q):n===q}(a,"")||function(n,q){return n&&n.equals?n.equals(q):n===q}(a,mxConstants.DIRECTION_SOUTH)||(this.styleMap[mxConstants.STYLE_GRADIENT_DIRECTION]=-a));a=this.getOpacity(g.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_FILL_OPACITY]=""+a);a=this.getOpacity(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_STROKE_OPACITY]=""+a);a=this.getForm();a.hasOwnProperty(mxConstants.STYLE_SHAPE)&&function(n,q,t){void 0===t&&(t=0);return n.substr(t,q.length)===q}(function(n,q){return n[q]?n[q]:null}(a,mxConstants.STYLE_SHAPE),"image;")&&(this.styleMap[mxConstants.STYLE_WHITE_SPACE]=-"wrap");for(var d in a)this.styleMap[d]=a[d];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",d=this.getDashPattern(),null!=d&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=d));d=this.getStrokeColor();var f=this.getStrokeTransparency();this.styleDebug("ID = "+c+" , Color = "+d+" , stroke transparency = "+f);(function(n,q){return n&&n.equals?n.equals(q):n===q})(d,"")||1===f||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=d);c=Math.round(this.getLineWidth())|0;1!==c&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=-""+c);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=g.mxgraph.io.vsdx.mxVsdxConstants.TRUE);c=Math.round(this.getTopSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+c);c=Math.round(this.getBottomSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+c);c=Math.round(this.getLeftSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+c);c=Math.round(this.getRightSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+c);a=-this.getDirection(a);a!==mxConstants.DIRECTION_EAST&&(this.styleMap[mxConstants.STYLE_DIRECTION]=a);a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FLIP_X),"0");c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.FLIP_Y),"0");(function(n,q){return n&&n.equals?n.equals(q):n===q})("1",a)&&(this.styleMap[mxConstants.STYLE_FLIPH]="1");(function(n,q){return n&&n.equals?n.equals(q):n===q})("1",c)&&(this.styleMap[mxConstants.STYLE_FLIPV]=-"1");try{var k=this.getConnections();a=[];for(c=0;c<k.length;c++)a.push("["+k[c].x+","+k[c].y+",0]");this.styleMap.points="["+a.join(",")+"]"}catch(n){console.log(n)}this.resolveCommonStyles();return this.styleMap};b.prototype.getDashPattern=function(){var a=null,c=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");(c&&c.equals?c.equals("Themed"):"Themed"===c)?(c=this.getTheme(),null!=c&&(a=this.isVertex()?c.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):-c.getConnLineDashPattern(this.getQuickStyleVals()))):a=B.Style.getLineDashPattern(parseInt(c));if(null!=a&&0!=a.length){c="";for(var d=0;d<a.length;d++)c=c.concat(a[d].toFixed(2)+" ");return c.trim()}return null};b.prototype.isDashed=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");if(function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Themed")){if(a=this.getTheme(),null!=a)return this.isVertex()?a.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):-a.isConnLineDashed(this.getQuickStyleVals())}else if(!function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")&&!function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"1"))return!0;return!1};b.prototype.getLineWidth=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),"1"),c=1;try{var d=a&&a.equals?a.equals("Themed"):"Themed"===a;if(d){var f=this.getTheme();null!=f&&(c=(this.isVertex()?f.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):-f.getConnLineWidth(this.getQuickStyleVals()))/1E4)}else c=parseFloat(a),c=this.getScreenNumericalValue$double(c)}catch(k){}1>c&&(c*=2);return c};b.prototype.getStartArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE),"4");try{var c=4;var d=a&&a.equals?a.equals("Themed"):"Themed"===a;if(d){var f=this.getTheme();null!=f&&(c=this.isVertex()?f.getStartSize(this.getQuickStyleVals()):f.getConnStartSize(this.getQuickStyleVals()))}else c=-parseFloat(a);return b.arrowSizes_$LI$()[c]}catch(k){}return 4};b.prototype.getFinalArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE),"4");try{var c=4;var d=a&&a.equals?a.equals("Themed"):"Themed"===a;if(d){var f=this.getTheme();null!=f&&(c=this.isVertex()?f.getEndSize(this.getQuickStyleVals()):f.getConnEndSize(this.getQuickStyleVals()))}else c=parseFloat(a);return b.arrowSizes_$LI$()[c]}catch(k){}return 4};b.prototype.getRounding=-function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.ROUNDING),"0");var c=a;c="Themed".equals?"Themed".equals(c):"Themed"===c;c&&(a="0");return parseFloat(a)};b.prototype.isShadow=function(){var a=this.getValue(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN),"0");return function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Themed")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")?!1:!0};b.prototype.getEdgeStyle$java_util_Map=-function(a){var c={};(function(d,f){return d&&d.equals?d.equals(f):d===f})(function(d,f){return d[f]?d[f]:null}(a,mxConstants.STYLE_SHAPE),"mxgraph.lean_mapping.electronic_info_flow_edge")?c[mxConstants.STYLE_EDGE]=mxConstants.NONE:c[mxConstants.STYLE_EDGE]=mxConstants.EDGESTYLE_ELBOW;return c};b.prototype.getEdgeStyle=function(a){if(null!=a&&a instanceof Object||null===a)return this.getEdgeStyle$java_util_Map(a);if(void 0===a)return this.getEdgeStyle$();throw Error("invalid overload");};b.prototype.getMasterId=-function(){return this.shape.hasAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER)?this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER):null};b.prototype.getShapeMasterId=function(){return this.shape.hasAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE)?this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE):null};b.prototype.isGroup=function(){var a=(a=this.shape.getAttribute("Type"))&&a.equals?a.equals("Group"):"Group"===a;return a};b.getType=function(a){return a.getAttribute("Type")};-b.prototype.getMaster=function(){return this.master};b.prototype.getNameU=function(){var a=this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||"",c;(c=null==a)||(c=(c=a)&&c.equals?c.equals(""):""===c);c&&null!=this.masterShape&&(a=this.masterShape.getNameU());return a};b.prototype.getName=function(){var a=this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME),c;(c=null==a)||(c=(c=a)&&c.equals?c.equals(""):""===c);c&&null!=this.masterShape&&(a=this.masterShape.getName());return a};-b.prototype.getMasterName=function(){return this.shapeName};b.prototype.setLabelOffset=function(a,c){var d="",f="";this.shape.hasAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(d=this.shape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));null!=this.getMaster()&&null!=this.getMaster().getMasterElement()&&this.getMaster().getMasterElement().hasAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(f=this.getMaster().getMasterElement().getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));-if(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(d,"Organizational unit")||function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(f,"Organizational unit")){var k=this.shape.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;d="0.0";f=null;f="-0.4";null!=k&&(d=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent,f=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),-f=f.hasAttribute("F")?f.getAttribute("F"):f.textContent);k=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");(function(A,C){return A&&A.equals?A.equals(C):A===C})(d,"Inh")&&(d="0.0");(function(A,C){return A&&A.equals?A.equals(C):A===C})(f,"Inh")&&(f="-0.4");-1!=f.indexOf("txtHeight")&&(f="-0.4");c=c.split(";");for(var n="",q=0;q<c.length;q++){var t=c[q];t=t.trim();(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C})(t,"tabHeight=")&&-(n=t.split("tabHeight=").join(""))}(function(A,C){return A&&A.equals?A.equals(C):A===C})(n,"")&&(n="20");c=parseFloat(n);d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f-c/2);a.getGeometry().offset=d}else if(function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(d,"Domain 3D")||function(A,C,I){void 0===I&&(I=0);return A.substr(I,C.length)===C}(f,"Domain 3D")){k=this.shape.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;-d="0.0";f=null;f="-0.4";null!=k&&(d=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.getAttribute("F")||"",f=k.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),f=f.getAttribute("F")||"");k=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");if(function(A,C){return A&&A.equals?A.equals(C):A===C}(d,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(d,""))d="0.0";if(function(A,C){return A&&A.equals?A.equals(C):-A===C}(f,"Inh")||function(A,C){return A&&A.equals?A.equals(C):A===C}(f,""))f="-0.4";-1!=f.indexOf("txtHeight")&&(f="-0.4");d=parseFloat(d);f=parseFloat(f);n=k.height;d=.1*k.width+100*d;d=new mxPoint(d,n-n*f);a.getGeometry().offset=d}};b.prototype.getForm=function(){var a={};if(this.isVertex())try{var c=b.getType(this.getShape());this.styleDebug("shape type = "+c);if(null!=this.imageData||function(L,S){return L&&L.equals?L.equals(S):L===S}(g.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,c)&&null!=this.masterShape&&-null!=this.masterShape.imageData){var d=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var f=function(L,S){return L[S]?L[S]:null}(d,"iType"),k=function(L,S){return L[S]?L[S]:null}(d,"iData"),n=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),q=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),t=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),-"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),I=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=n||0!=q||t!=C||A!=I?this.toBeCroppedImg={imgOffsetX:n,imgOffsetY:q,imgWidth:t,imgHeight:A,width:C,height:I,iType:f,iData:k}:a.image="data:image/"+f+","+k;return a}var Q=this.parseGeom();if(function(L,S){return L&&L.equals?L.equals(S):L===S}(Q,""))return this.styleDebug("No geom found"),a;var K=Graph.compress(Q);a[mxConstants.STYLE_SHAPE]=-"stencil("+K+")"}catch(L){}else return this.getEdgeStyle();return a};b.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Off-page reference")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"Lined/Shaded process")?!0:!1};b.prototype.isExternal_process=function(){var a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};b.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+-this.shapeName);if(null!=a&&!function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")&&!function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"")){if(function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};b.prototype.isSubproces=function(){var a=-(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};b.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};b.prototype.getChildShapes=function(){return this.childShapes};b.prototype.setChildShapes=function(a){this.childShapes=a};b.prototype.isDisplacedLabel=function(){var a=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),c=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),d=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,-"F",""),f=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(k,n){return k&&k.equals?k.equals(n):k===n}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F","");if(""===c||function(k,n){return k&&k.equals?k.equals(n):k===n}(c.toLowerCase(),"inh"))c=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===d||function(k,n){return k&&k.equals?k.equals(n):-k===n}(d.toLowerCase(),"inh"))d=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F","");if(""===f||function(k,n){return k&&k.equals?k.equals(n):k===n}(f.toLowerCase(),"inh"))f=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","")}return function(k,n){return k&&k.equals?k.equals(n):k===n}(a.toLowerCase(),"width*0.5")&&function(k,n){return k&&k.equals?k.equals(n):k===n}(c.toLowerCase(),"height*0.5")&&function(k,n){return k&&k.equals?k.equals(n):-k===n}(d.toLowerCase(),"width*1")&&function(k,n){return k&&k.equals?k.equals(n):k===n}(f.toLowerCase(),"height*1")||!(function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(a.toLowerCase(),"width*")&&function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(c.toLowerCase(),"height*")&&function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(d.toLowerCase(),"width*")&&function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(f.toLowerCase(),"height*")||function(k,-n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(a.toLowerCase(),"controls.row_")||function(k,n,q){void 0===q&&(q=0);return k.substr(q,n.length)===n}(c.toLowerCase(),"controls.row_"))?!1:!0};b.prototype.isVerticalLabel=function(){var a=this.getAttribute("TextDirection","V","");a||null==this.masterShape||(a=this.masterShape.getAttribute("TextDirection","V",""));return"1"==a};b.prototype.isRotatedLabel=function(){if(this.isVerticalLabel())return!0;var a=this.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,-"V","");null!=this.masterShape&&function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"")&&(a=this.masterShape.getAttribute(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,"V",""));return function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"0.0")||function(c,d){return c&&c.equals?c.equals(d):c===d}(a,"")?!1:!0};b.prototype.setRootShape=function(a){this.rootShape=a};b.prototype.getRootShape=function(){return this.rootShape};b.prototype.getStartXY=-function(a){var c=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X),0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_Y),0)))/100);return new mxPoint(c,a)};b.prototype.getEndXY=function(a){var c=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.END_X),-0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.END_Y),0)))/100);return new mxPoint(c,a)};b.prototype.getRoutingPoints=function(a,c,d){return null!=this.geomList?this.geomList.getRoutingPoints(a,c,d):null};b.prototype.getControlPoints=function(a){var c=this.getStartXY(a);a=this.getEndXY(a);var d=[];if(null!=this.shape){var f=this.shape.getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.GEOM);-if(0<f.length&&(f=f.item(0).getElementsByTagName(g.mxgraph.io.vsdx.mxVsdxConstants.NURBS_TO).item(0).getElementsByTagName("E").item(0),null!=f)){f=f.getAttribute("F")||"";f=f.replace(RegExp("NURBS\\(","g"),"");f=f.replace(RegExp("\\)","g"),"");f=f.replace(RegExp(",","g")," ");f=f.replace(RegExp("\\s\\s","g")," ");f=f.split(" ");for(var k=f.length,n=[];0<k--;)n.push(0);for(k=0;k<f.length;k++)n[k]=parseFloat(f[k]);for(k=2;k+4<f.length;k+=4){var q=new mxPoint,t=n[k+3];q.x=Math.floor(Math.round(100*(c.x+-Math.min(100,Math.abs(a.x-c.x))*n[k+2]))/100);q.y=Math.floor(Math.round(100*(c.y-100*t))/100);d.push(q)}return d}}return null};b.prototype.getStyleFromEdgeShape=function(a){this.styleMap[g.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();a=this.getForm();if(null!=a&&!function(d,f){return d&&d.equals?d.equals(f):d===f}(a,""))for(var c in a)this.styleMap[c]=a[c];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",c=this.getDashPattern(),null!=c&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=-c));c=this.getEdgeMarker(!0);null!=c&&(function(d,f,k){void 0===k&&(k=0);return d.substr(k,f.length)===f}(c,b.ARROW_NO_FILL_MARKER)&&(c=c.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_STARTFILL]="0"),this.styleMap[mxConstants.STYLE_STARTARROW]=c);c=this.getEdgeMarker(!1);null!=c&&(function(d,f,k){void 0===k&&(k=0);return d.substr(k,f.length)===f}(c,b.ARROW_NO_FILL_MARKER)&&(c=c.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_ENDFILL]="0"),this.styleMap[mxConstants.STYLE_ENDARROW]=-c);c=Math.round(this.getStartArrowSize())|0;6!==c&&(this.styleMap[mxConstants.STYLE_STARTSIZE]=""+c);c=Math.round(this.getFinalArrowSize())|0;6!==c&&(this.styleMap[mxConstants.STYLE_ENDSIZE]=""+c);c=Math.round(this.getLineWidth())|0;1!==c&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+c);c=this.getStrokeColor();(function(d,f){return d&&d.equals?d.equals(f):d===f})(c,"")||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=c);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=g.mxgraph.io.vsdx.mxVsdxConstants.TRUE);-this.isConnectorBigNameU(this.getNameU())&&(this.styleMap[mxConstants.STYLE_SHAPE]=mxConstants.SHAPE_ARROW,c=this.getFillColor(),function(d,f){return d&&d.equals?d.equals(f):d===f}(c,"")||(this.styleMap[mxConstants.STYLE_FILLCOLOR]=c));c=Math.round(this.getTopSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+c;c=Math.round(this.getBottomSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+c;c=Math.round(this.getLeftSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+-c;c=Math.round(this.getRightSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+c;c=this.getAlignVertical();this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=c;this.styleMap.html="1";this.resolveCommonStyles();return this.styleMap};b.prototype.resolveCommonStyles=function(){var a=this.getTextBkgndColor(this.getCellElement$java_lang_String(g.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND));var c=a&&a.equals?a.equals(""):""===a;c||"1"!=this.getValue(this.getCellElement$java_lang_String("TextBkgndTrans"),-"0")&&(this.styleMap[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]=a);this.styleMap[mxConstants.STYLE_ROUNDED]=0<this.getRounding()?g.mxgraph.io.vsdx.mxVsdxConstants.TRUE:g.mxgraph.io.vsdx.mxVsdxConstants.FALSE;return this.styleMap};b.prototype.getEdgeMarker=function(a){var c=this.getValue(this.getCellElement$java_lang_String(a?g.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW:g.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW),"0"),d=0;try{if(function(k,n){return k&&k.equals?k.equals(n):k===n}(c,"Themed")){var f=-this.getTheme();null!=f&&(d=this.isVertex()?f.getEdgeMarker(a,this.getQuickStyleVals()):f.getConnEdgeMarker(a,this.getQuickStyleVals()))}else d=parseInt(c)}catch(k){}a=function(k,n){null==k.entries&&(k.entries=[]);for(var q=0;q<k.entries.length;q++)if(null!=k.entries[q].key.equals&&k.entries[q].key.equals(n)||k.entries[q].key===n)return k.entries[q].value;return null}(b.arrowTypes_$LI$(),d);0<d&&null==a&&(a=function(k,n){null==k.entries&&(k.entries=[]);for(var q=0;q<k.entries.length;q++)if(null!=-k.entries[q].key.equals&&k.entries[q].key.equals(n)||k.entries[q].key===n)return k.entries[q].value;return null}(b.arrowTypes_$LI$(),1));return a};b.prototype.getCellElement$java_lang_String=function(a){var c=h.prototype.getCellElement$java_lang_String.call(this,a);return null==c&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):c};b.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(a,c,d){var f=h.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String.call(this,-a,c,d);return null==f&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,c,d):f};b.prototype.getCellElement=function(a,c,d){if("string"!==typeof a&&null!==a||"string"!==typeof c&&null!==c||"string"!==typeof d&&null!==d){if("string"!==typeof a&&null!==a||void 0!==c||void 0!==d)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,c,d)};b.prototype.createLabelSubShape=-function(a,c){var d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),f=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),d/2),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),-f/2),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),k),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),n),A=this.getValueAsDouble(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),C=this.getTextLabel(1>d||1>f);if(null!=C&&0!==C.length){var I=mxUtils.clone(this.getStyleMap())||{};I[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;I[mxConstants.STYLE_STROKECOLOR]=-mxConstants.NONE;I[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;I.hasOwnProperty("align")||(I.align="center");I.hasOwnProperty("verticalAlign")||(I.verticalAlign="middle");I.hasOwnProperty("whiteSpace")||(I.whiteSpace="wrap");delete I.shape;delete I.image;this.isVerticalLabel()&&(A+=Math.PI+.01,I.horizontal="0");var Q=this.getRotation();0!==A&&(A=360-180*A/Math.PI,A=Math.round((A+Q)%360*100)/100,0!==A&&(I.rotation=""+A));I="text;"+g.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(I,"=");n=c.getGeometry().height--(t+f-n);k=q-k;0<Q&&(q=new mxGeometry(k,n,d,f),k=c.getGeometry(),g.mxgraph.online.Utils.rotatedGeometry(q,Q,k.width/2,k.height/2),k=q.x,n=q.y);return a.insertVertex(c,null,C,Math.round(100*k)/100,Math.round(100*n)/100,Math.round(100*d)/100,Math.round(100*f)/100,I+";html=1;")}return null};b.prototype.getLblEdgeOffset=function(a,c){if(null!=c&&1<c.length){var d=new mxCellState;d.absolutePoints=c;a.updateEdgeBounds(d);a=a.getPoint(d);d=c[0];var f=c[c.length-1];c=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),-this.getWidth());var k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),t=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),-0),A=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(g.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0);f=(this.getHeight()-(d.y-f.y))/2+d.y-a.y-(A-q+k/2);a=t-n+c/2+(d.x-a.x);return 1E11<Math.abs(a)?null:new mxPoint(Math.floor(Math.round(100*a)/100),Math.floor(Math.round(100*f)/100))}return null};b.prototype.getShapeIndex=function(){return this.shapeIndex};b.prototype.setShapeIndex=function(a){this.shapeIndex=a};return b}(g.mxgraph.io.vsdx.Shape);m.__static_initialized=!1;m.ARROW_NO_FILL_MARKER=-"0";m.maxDp=2;m.USE_SHAPE_MATCH=!1;m.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';B.VsdxShape=m;m.__class="com.mxgraph.io.vsdx.VsdxShape"})(z.vsdx||(z.vsdx={}))})(y.io||(y.io={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));-(function(g){(function(y){(function(z){var B=function(){function m(){}m.__static_initialize=function(){m.__static_initialized||(m.__static_initialized=!0,m.__static_initializer_0())};m.CA_$LI$=function(){m.__static_initialize();null==m.CA&&(m.CA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""));return m.CA};m.IA_$LI$=function(){m.__static_initialize();if(null==m.IA){for(var h=256,b=[];0<h--;)b.push(0);m.IA=b}return m.IA};m.__static_initializer_0=function(){for(var h=m.IA_$LI$(),-b=0;b<h.length;b++)h[b]=-1;h=0;for(b=m.CA_$LI$().length;h<b;h++)m.IA_$LI$()[m.CA_$LI$()[h].charCodeAt(0)]=h;m.IA_$LI$()[61]=0};m.encodeToChar=function(h,b,a){var c=null!=h?h.length-b:0;if(0===c)return[];var d=3*(c/3|0),f=((c-1)/3|0)+1<<2;f+=a?((f-1)/76|0)<<1:0;for(var k=Array(f),n=b,q=0,t=0;n<d+b;){var A=(h[n++]&255)<<16|(h[n++]&255)<<8|h[n++]&255;k[q++]=m.CA_$LI$()[A>>>18&63];k[q++]=m.CA_$LI$()[A>>>12&63];k[q++]=m.CA_$LI$()[A>>>6&63];k[q++]=m.CA_$LI$()[A&63];a&&19===++t&&q<f-2&&(k[q++]="\r",k[q++]=-"\n",t=0)}a=c-d;0<a&&(A=(h[d+b]&255)<<10|(2===a?(h[c+b-1]&255)<<2:0),k[f-4]=m.CA_$LI$()[A>>12],k[f-3]=m.CA_$LI$()[A>>>6&63],k[f-2]=2===a?m.CA_$LI$()[A&63]:"=",k[f-1]="=");return k};m.decode$char_A=function(h){var b=null!=h?h.length:0;if(0===b)return[];for(var a=0,c=0;c<b;c++)0>m.IA_$LI$()[h[c].charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;var d=0;for(c=b;1<c&&0>=m.IA_$LI$()[h[--c].charCodeAt(0)];)61==function(q){return null==q.charCodeAt?q:q.charCodeAt(0)}(h[c])&&d++;b=(6*(b-a)>>3)-d;a=function(q){for(var t=-[];0<q--;)t.push(0);return t}(b);for(var f=d=0;f<b;){for(var k=c=0;4>k;k++){var n=m.IA_$LI$()[h[d++].charCodeAt(0)];0<=n?c|=n<<18-6*k:k--}a[f++]=c>>16|0;f<b&&(a[f++]=c>>8|0,f<b&&(a[f++]=c|0))}return a};m.decode=function(h){if(null!=h&&h instanceof Array&&(0==h.length||null==h[0]||"string"===typeof h[0])||null===h)return g.mxgraph.online.mxBase64.decode$char_A(h);if(null!=h&&h instanceof Array&&(0==h.length||null==h[0]||"number"===typeof h[0])||null===h)return g.mxgraph.online.mxBase64.decode$byte_A(h);-if("string"===typeof h||null===h)return g.mxgraph.online.mxBase64.decode$java_lang_String(h);throw Error("invalid overload");};m.decodeFast$char_A=function(h){var b=h.length;if(0===b)return[];for(var a=0,c=b-1;a<c&&0>m.IA_$LI$()[h[a].charCodeAt(0)];)a++;for(;0<c&&0>m.IA_$LI$()[h[c].charCodeAt(0)];)c--;var d=61==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h[c])?61==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h[c-1])?2:1:0,f=c-a+1,k=76<b?(13==function(C){return null==C.charCodeAt?-C:C.charCodeAt(0)}(h[76])?f/78|0:0)<<1:0;f=(6*(f-k)>>3)-d;b=function(C){for(var I=[];0<C--;)I.push(0);return I}(f);for(var n=0,q=0,t=3*(f/3|0);n<t;){var A=m.IA_$LI$()[h[a++].charCodeAt(0)]<<18|m.IA_$LI$()[h[a++].charCodeAt(0)]<<12|m.IA_$LI$()[h[a++].charCodeAt(0)]<<6|m.IA_$LI$()[h[a++].charCodeAt(0)];b[n++]=A>>16|0;b[n++]=A>>8|0;b[n++]=A|0;0<k&&19===++q&&(a+=2,q=0)}if(n<f){for(k=A=0;a<=c-d;k++)A|=m.IA_$LI$()[h[a++].charCodeAt(0)]<<18-6*k;for(h=16;n<f;h-=8)b[n++]=A>>h|0}return b};m.decodeFast=function(h){if(null!=-h&&h instanceof Array&&(0==h.length||null==h[0]||"string"===typeof h[0])||null===h)return g.mxgraph.online.mxBase64.decodeFast$char_A(h);if(null!=h&&h instanceof Array&&(0==h.length||null==h[0]||"number"===typeof h[0])||null===h)return g.mxgraph.online.mxBase64.decodeFast$byte_A(h);if("string"===typeof h||null===h)return g.mxgraph.online.mxBase64.decodeFast$java_lang_String(h);throw Error("invalid overload");};m.encodeToByte=function(h,b){var a=null!=h?h.length:0;if(0===a)return[];for(var c=3*(a/-3|0),d=((a-1)/3|0)+1<<2,f=d+=b?((d-1)/76|0)<<1:0,k=[];0<f--;)k.push(0);for(var n=0,q=0,t=0;n<c;)f=(h[n++]&255)<<16|(h[n++]&255)<<8|h[n++]&255,k[q++]=m.CA_$LI$()[f>>>18&63].charCodeAt(0),k[q++]=m.CA_$LI$()[f>>>12&63].charCodeAt(0),k[q++]=m.CA_$LI$()[f>>>6&63].charCodeAt(0),k[q++]=m.CA_$LI$()[f&63].charCodeAt(0),b&&19===++t&&q<d-2&&(k[q++]=13,k[q++]=10,t=0);b=a-c;0<b&&(f=(h[c]&255)<<10|(2===b?(h[a-1]&255)<<2:0),k[d-4]=m.CA_$LI$()[f>>12].charCodeAt(0),k[d-3]=m.CA_$LI$()[f>>>6&63].charCodeAt(0),k[d-2]=-2===b?m.CA_$LI$()[f&63].charCodeAt(0):61,k[d-1]=61);return k};m.decode$byte_A=function(h){for(var b=h.length,a=0,c=0;c<b;c++)0>m.IA_$LI$()[h[c]&255]&&a++;if(0!==(b-a)%4)return null;var d=0;for(c=b;1<c&&0>=m.IA_$LI$()[h[--c]&255];)61==h[c]&&d++;c=b=(6*(b-a)>>3)-d;for(a=[];0<c--;)a.push(0);for(var f=d=0;f<b;){for(var k=c=0;4>k;k++){var n=m.IA_$LI$()[h[d++]&255];0<=n?c|=n<<18-6*k:k--}a[f++]=c>>16|0;f<b&&(a[f++]=c>>8|0,f<b&&(a[f++]=c|0))}return a};m.decodeFast$byte_A=function(h){var b=h.length;if(0===-b)return[];for(var a=0,c=b-1;a<c&&0>m.IA_$LI$()[h[a]&255];)a++;for(;0<c&&0>m.IA_$LI$()[h[c]&255];)c--;var d=61==h[c]?61==h[c-1]?2:1:0,f=c-a+1,k=76<b?(13==h[76]?f/78|0:0)<<1:0,n=f=(6*(f-k)>>3)-d;for(b=[];0<n--;)b.push(0);for(var q=n=0,t=3*(f/3|0);n<t;){var A=m.IA_$LI$()[h[a++]]<<18|m.IA_$LI$()[h[a++]]<<12|m.IA_$LI$()[h[a++]]<<6|m.IA_$LI$()[h[a++]];b[n++]=A>>16|0;b[n++]=A>>8|0;b[n++]=A|0;0<k&&19===++q&&(a+=2,q=0)}if(n<f){for(k=A=0;a<=c-d;k++)A|=m.IA_$LI$()[h[a++]]<<18-6*k;for(h=16;n<f;h-=8)b[n++]=A>>-h|0}return b};m.encodeToString=function(h,b,a){return m.encodeToChar(h,b,a).join("")};m.decode$java_lang_String=function(h){var b=null!=h?h.length:0;if(0===b)return[];for(var a=0,c=0;c<b;c++)0>m.IA_$LI$()[h.charAt(c).charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;var d=0;for(c=b;1<c&&0>=m.IA_$LI$()[h.charAt(--c).charCodeAt(0)];)61==function(q){return null==q.charCodeAt?q:q.charCodeAt(0)}(h.charAt(c))&&d++;b=(6*(b-a)>>3)-d;a=function(q){for(var t=[];0<q--;)t.push(0);return t}(b);for(var f=d=0;f<b;){for(var k=-c=0;4>k;k++){var n=m.IA_$LI$()[h.charAt(d++).charCodeAt(0)];0<=n?c|=n<<18-6*k:k--}a[f++]=c>>16|0;f<b&&(a[f++]=c>>8|0,f<b&&(a[f++]=c|0))}return a};m.decodeFast$java_lang_String=function(h){var b=h.length;if(0===b)return[];for(var a=0,c=b-1;a<c&&0>m.IA_$LI$()[function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(a))&255];)a++;for(;0<c&&0>m.IA_$LI$()[function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(c))&255];)c--;var d=61==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(c))?-61==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(c-1))?2:1:0,f=c-a+1,k=76<b?(13==function(C){return null==C.charCodeAt?C:C.charCodeAt(0)}(h.charAt(76))?f/78|0:0)<<1:0;f=(6*(f-k)>>3)-d;b=function(C){for(var I=[];0<C--;)I.push(0);return I}(f);for(var n=0,q=0,t=3*(f/3|0);n<t;){var A=m.IA_$LI$()[h.charAt(a++).charCodeAt(0)]<<18|m.IA_$LI$()[h.charAt(a++).charCodeAt(0)]<<12|m.IA_$LI$()[h.charAt(a++).charCodeAt(0)]<<6|m.IA_$LI$()[h.charAt(a++).charCodeAt(0)];b[n++]=A>>16|0;b[n++]=A>>-8|0;b[n++]=A|0;0<k&&19===++q&&(a+=2,q=0)}if(n<f){for(k=A=0;a<=c-d;k++)A|=m.IA_$LI$()[h.charAt(a++).charCodeAt(0)]<<18-6*k;for(h=16;n<f;h-=8)b[n++]=A>>h|0}return b};return m}();B.__static_initialized=!1;z.mxBase64=B;B.__class="com.mxgraph.online.mxBase64"})(y.online||(y.online={}))})(g.mxgraph||(g.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$();-com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.arrowSizes_$LI$();com.mxgraph.io.vsdx.VsdxShape.OFFSET_ARRAY_$LI$();com.mxgraph.io.vsdx.VsdxShape.__static_initialize();com.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP_$LI$();com.mxgraph.io.vsdx.Style.lineDashPatterns_$LI$();com.mxgraph.io.vsdx.Style.styleTypes_$LI$();com.mxgraph.io.vsdx.Style.__static_initialize();com.mxgraph.online.Constants.MAX_AREA_$LI$();com.mxgraph.io.vsdx.theme.Color.NONE_$LI$();com.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();-com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$();-EditorUi.prototype.doImportVisio=function(g,y,z,B){B=B||g.name;null!=B&&/(\.vs(x|sx?))($|\?)/i.test(B)?(new com.mxgraph.io.mxVssxCodec(this)).decodeVssx(g,y,null,z):(new com.mxgraph.io.mxVsdxCodec(this)).decodeVsdx(g,y,null,z)};function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x:Static\s+(.+)\.(.+)\}$/;-mxGraphMlCodec.prototype.decode=function(g,y,z){try{var B=mxUtils.parseXml(g),m=this.getDirectChildNamedElements(B.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(B.documentElement);g='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(B=0;B<m.length;B++){var h=m[B],b=this.createMxGraph(),a=b.getModel();a.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(h,b,b.getDefaultParent()),B=0;B<this.edges.length;B++)for(var c=this.edges[B],d=c.edges,f=c.parent,k=c.dx,n=c.dy,-q=0;q<d.length;q++)this.importEdge(d[q],b,f,k,n)}catch(ca){throw console.log(ca),ca;}finally{a.endUpdate()}a.beginUpdate();try{var t=b.getModel().cells,A;for(A in t){var C=t[A];if(C.edge&&0<C.getChildCount())for(B=0;B<C.getChildCount();B++){var I=C.children[B].geometry;if(I.adjustIt){var Q=b.view.getState(C),K=Q.absolutePoints,L=K[0],S=K[K.length-1],R=I.x,H=I.y;k=S.x-L.x;n=S.y-L.y;var N=L.x+R*k,J=L.y+R*n,M=Math.sqrt(k*k+n*n);k/=M;n/=M;N-=H*n;J+=H*k;var T=b.view.getRelativePoint(Q,N,J);I.x=T.x;I.y=-T.y}}}}catch(ca){throw console.log(ca),ca;}finally{a.endUpdate()}g+=this.processPage(b,B+1)}y&&y(g+"</mxfile>")}catch(ca){z&&z(ca)}};-mxGraphMlCodec.prototype.initializeKeys=function(g){var y=this.getDirectChildNamedElements(g,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=-{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var z,B=0;B<y.length;B++){var m=this.dataElem2Obj(y[B]),h=m[mxGraphMlConstants.ID],b=m[mxGraphMlConstants.KEY_FOR],a=m[mxGraphMlConstants.KEY_NAME],c=m[mxGraphMlConstants.KEY_YTYPE];a==mxGraphMlConstants.SHARED_DATA&&(z=h);a=a?a:c;switch(b){case mxGraphMlConstants.NODE:this.nodesKeys[a]=-{key:h,keyObj:m};break;case mxGraphMlConstants.EDGE:this.edgesKeys[a]={key:h,keyObj:m};break;case mxGraphMlConstants.PORT:this.portsKeys[a]={key:h,keyObj:m};break;case mxGraphMlConstants.ALL:m={key:h,keyObj:m},this.nodesKeys[a]=m,this.edgesKeys[a]=m,this.portsKeys[a]=m}}g=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA);for(B=0;B<g.length;B++)if(g[B].getAttribute(mxGraphMlConstants.KEY)==z)for(b=this.getDirectChildNamedElements(g[B],mxGraphMlConstants.Y_SHARED_DATA),y=0;y<b.length;y++)for(a=-this.getDirectChildElements(b[y]),m=0;m<a.length;m++)h=a[m].getAttribute(mxGraphMlConstants.X_KEY),this.sharedData[h]=a[m];else for(b=this.getDirectChildNamedElements(g[B],mxGraphMlConstants.Y_RESOURCES),y=0;y<b.length;y++)for(a=this.getDirectChildElements(b[y]),m=0;m<a.length;m++)h=a[m].getAttribute(mxGraphMlConstants.ID),this.sharedData[h]=a[m]};-mxGraphMlCodec.prototype.parseAttributes=function(g,y){if(g=g.attributes)for(var z=0;z<g.length;z++){var B=g[z].nodeValue,m=this.refRegexp.exec(B),h=this.staticRegexp.exec(B);m?(B=m[1],m=this.cachedRefObj[B],m||(m={},m[this.sharedData[B].nodeName]=this.dataElem2Obj(this.sharedData[B]),this.cachedRefObj[B]=m),y[g[z].nodeName]=m):h?(y[g[z].nodeName]={},y[g[z].nodeName][h[1]]=h[2]):y[g[z].nodeName]=B}};-mxGraphMlCodec.prototype.dataElem2Obj=function(g){var y=this.getDirectFirstChildNamedElements(g,mxGraphMlConstants.GRAPHML_REFERENCE)||g.getAttribute(mxGraphMlConstants.REFID),z=null,B=g,m={};if(y){z="string"===typeof y?y:y.getAttribute(mxGraphMlConstants.RESOURCE_KEY);if(y=this.cachedRefObj[z])return this.parseAttributes(g,y),y;g=this.sharedData[z]}this.parseAttributes(g,m);for(y=0;y<g.childNodes.length;y++){var h=g.childNodes[y];if(1==h.nodeType){var b=h.nodeName;if(b==mxGraphMlConstants.X_LIST){var a=-[];h=this.getDirectChildElements(h);for(var c=0;c<h.length;c++)b=h[c].nodeName,a.push(this.dataElem2Obj(h[c]));m[b]=a}else b==mxGraphMlConstants.X_STATIC?(b=h.getAttribute(mxGraphMlConstants.MEMBER),a=b.lastIndexOf("."),m[b.substr(0,a)]=b.substr(a+1)):(a=b.lastIndexOf("."),0<a&&(b=b.substr(a+1)),null!=m[b]?(m[b]instanceof Array||(m[b]=[m[b]]),m[b].push(this.dataElem2Obj(h))):m[b]=this.dataElem2Obj(h))}else 3!=h.nodeType&&4!=h.nodeType||!h.textContent.trim()||(m["#text"]=h.textContent)}return z?(g=-{},this.parseAttributes(B,g),g[this.sharedData[z].nodeName]=m,this.cachedRefObj[z]=g):m};mxGraphMlCodec.prototype.mapArray=function(g,y,z){for(var B={},m=0;m<g.length;m++)g[m].name&&(B[g[m].name]=g[m].value||g[m]);this.mapObject(B,y,z)};-mxGraphMlCodec.prototype.mapObject=function(g,y,z){if(y.defaults)for(var B in y.defaults)z[B]=y.defaults[B];for(B in y){for(var m=B.split("."),h=g,b=0;b<m.length&&h;b++)h=h[m[b]];null==h&&g&&(h=g[B]);if(null!=h)if(m=y[B],"string"===typeof h)if("string"===typeof m)z[m]=h.toLowerCase();else if("object"===typeof m){b=h.toLowerCase();switch(m.mod){case "color":0==h.indexOf("#")&&9==h.length?b="#"+h.substr(3)+h.substr(1,2):"TRANSPARENT"==h&&(b="none");break;case "shape":b=mxGraphMlShapesMap[h.toLowerCase()];-break;case "bpmnOutline":b=mxGraphMlShapesMap.bpmnOutline[h.toLowerCase()];break;case "bpmnSymbol":b=mxGraphMlShapesMap.bpmnSymbol[h.toLowerCase()];break;case "bool":b="true"==h?"1":"0";break;case "scale":try{b=parseFloat(h)*m.scale}catch(a){}break;case "arrow":b=mxGraphMlArrowsMap[h]}null!=b&&(z[m.key]=b)}else m(h,z);else h instanceof Array?this.mapArray(h,m,z):null!=h.name&&null!=h.value?this.mapArray([h],m,z):this.mapObject(h,m,z)}};mxGraphMlCodec.prototype.createMxGraph=function(){return new mxGraph};-mxGraphMlCodec.prototype.importGraph=function(g,y,z){for(var B=this.getDirectChildNamedElements(g,mxGraphMlConstants.NODE),m=z,h=0,b=0;m&&m.geometry;)h+=m.geometry.x,b+=m.geometry.y,m=m.parent;for(m=0;m<B.length;m++)this.importNode(B[m],y,z,h,b);this.edges.push({edges:this.getDirectChildNamedElements(g,mxGraphMlConstants.EDGE),parent:z,dx:h,dy:b})};-mxGraphMlCodec.prototype.importPort=function(g,y){var z=g.getAttribute(mxGraphMlConstants.PORT_NAME),B={};g=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA);for(var m=0;m<g.length;m++){var h=g[m];h.getAttribute(mxGraphMlConstants.KEY);h=this.dataElem2Obj(h);h.key==this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER].key&&this.mapObject(h,{"y:FreeNodePortLocationModelParameter.Ratio":function(b,a){b=b.split(",");a.pos={x:b[0],y:b[1]}}},B)}y[z]=B};-mxGraphMlCodec.prototype.styleMap2Str=function(g){var y="",z="",B;for(B in g)z+=y+B+"="+g[B],y=";";return z};-mxGraphMlCodec.prototype.importNode=function(g,y,z,B,m){var h=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA),b=g.getAttribute(mxGraphMlConstants.ID),a=new mxCell;a.vertex=!0;a.geometry=new mxGeometry(0,0,30,30);y.addCell(a,z);z={graphMlID:b};for(var c=null,d=null,f=null,k=null,n=0;n<h.length;n++){var q=this.dataElem2Obj(h[n]);if(q.key)if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY].key)this.addNodeGeo(a,q,B,m);else if(q.key==this.nodesKeys[mxGraphMlConstants.USER_TAGS].key)f=-q;else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)c=q,q["yjs:StringTemplateNodeStyle"]?d=q["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(a,q,z);else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)k=q;else if(q.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var t=c=null;for(t in q)if("key"!=t&&"#text"!=t){if("y:ProxyAutoBoundsNode"==t){if(t=q[t]["y:Realizers"])for(var A in t)if("active"!=A&&"#text"!=A){c=t[A][t.active];q={};q[A]=c;break}}else c=-q[t];break}c&&(c[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(a,c[mxGraphMlConstants.GEOMETRY],B,m),c[mxGraphMlConstants.NODE_LABEL]&&(k=c[mxGraphMlConstants.NODE_LABEL]));c=q;this.addNodeStyle(a,q,z)}}m=this.getDirectChildNamedElements(g,mxGraphMlConstants.PORT);B={};for(n=0;n<m.length;n++)this.importPort(m[n],B);d&&this.handleTemplates(d,f,a,z);this.handleFixedRatio(a,z);this.handleCompoundShape(a,z,c,null);0==z.strokeWidth&&(z.strokeColor="none");a.style=this.styleMap2Str(z);g=this.getDirectChildNamedElements(g,-mxGraphMlConstants.GRAPH);for(n=0;n<g.length;n++)this.importGraph(g[n],y,a,B);k&&this.addLabels(a,k,z,y);this.nodesMap[b]={node:a,ports:B}};-mxGraphMlCodec.prototype.addNodeStyle=function(g,y,z){g=function(R,H){if("line"!=R){H.dashed=1;switch(R){case "DashDot":R="3 1 1 1";break;case "Dot":R="1 1";break;case "DashDotDot":R="3 1 1 1 1 1";break;case "Dash":R="3 1";break;case "dotted":R="1 3";break;case "dashed":R="5 2";break;default:R=R.replace(/0/g,"1")}R&&(0>R.indexOf(" ")&&(R=R+" "+R),H.dashPattern=R)}};g={shape:{key:"shape",mod:"shape"},"y:Shape.type":{key:"shape",mod:"shape"},configuration:{key:"shape",mod:"shape"},type:{key:"shape",-mod:"shape"},assetName:{key:"shape",mod:"shape"},activityType:{key:"shape",mod:"shape"},fill:{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"y:Fill":{color:{key:"fillColor",mod:"color"},transparent:function(R,H){"true"==R&&(H.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(R,H){"false"==R&&(H.strokeColor="none")},-type:g},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:g,"dashStyle.yjs:DashStyle.dashes":g,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var B=mxUtils.clone(g);B.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var m=mxUtils.clone(g);m.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var h=mxUtils.clone(g);h.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};-var b=mxUtils.clone(g);b.defaults={shape:"hexagon",strokeColor:"#007000"};var a=mxUtils.clone(g);a.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};a.characteristic={key:"outline",mod:"bpmnOutline"};var c=mxUtils.clone(g);c.defaults={shape:"js:bpmnDataObject"};var d=mxUtils.clone(g);d.defaults={shape:"datastore"};var f=mxUtils.clone(g);f.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};var k=-mxUtils.clone(g);k.defaults={shape:"js:BpmnChoreography"};var n=mxUtils.clone(g);n.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};n.inset="strokeWidth";n.radius="arcSize";n.drawShadow={key:"shadow",mod:"bool"};n.color={key:"fillColor",mod:"color",addGradient:"north"};n["color.yjs:Color.value"]=n.color;var q=mxUtils.clone(g);q.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};q.drawShadow={key:"shadow",mod:"bool"};var t=mxUtils.clone(g);t.defaults={shape:"swimlane",-startSize:20,strokeWidth:4,spacingLeft:10};t.isCollapsible={key:"collapsible",mod:"bool"};t.borderColor={key:"strokeColor",mod:"color"};t.folderFrontColor={key:"fillColor",mod:"color"};var A=mxUtils.clone(g);A.defaults={shape:"swimlane",startSize:20,spacingLeft:10};A["yjs:PanelNodeStyle"]={color:{key:"swimlaneFillColor",mod:"color"},"color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},labelInsetsColor:{key:"fillColor",mod:"color"},"labelInsetsColor.yjs:Color.value":{key:"fillColor",mod:"color"}};-var C=mxUtils.clone(g);C.defaults={shape:"js:table"};var I=mxUtils.clone(g);I.defaults={shape:"image"};I.image=function(R,H){H.image=R};var Q=mxUtils.clone(g);Q.defaults={shape:"image"};Q["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(R,H){H.image="data:image/svg+xml,"+(window.btoa?btoa(R):Base64.encode(R))};var K=mxUtils.clone(g);K.defaults={shape:"swimlane",startSize:20};K["y:Shape.type"]=function(R,H){"roundrectangle"==R&&(H.rounded=1,H.arcSize=5)};var L=mxUtils.clone(g);L.defaults={shape:"js:table2"};-var S=mxUtils.clone(g);S.defaults={gradientDirection:"east"};S["y:Fill"].color2={key:"gradientColor",mod:"color"};S["y:StyleProperties.y:Property"]={"com.yworks.bpmn.characteristic":{key:"outline",mod:"bpmnOutline"},"com.yworks.bpmn.icon.fill":{key:"gradientColor",mod:"color"},"com.yworks.bpmn.icon.fill2":{key:"fillColor",mod:"color"},"com.yworks.bpmn.type":{key:"symbol",mod:"bpmnSymbol"},"y.view.ShadowNodePainter.SHADOW_PAINTING":{key:"shadow",mod:"bool"},doubleBorder:{key:"double",mod:"bool"},"com.yworks.sbgn.style.radius":{key:"arcSize",-mod:"scale",scale:2},"com.yworks.sbgn.style.inverse":{key:"flipV",mod:"bool"}};this.mapObject(y,{"yjs:ShapeNodeStyle":g,"demostyle:FlowchartNodeStyle":g,"demostyle:AssetNodeStyle":B,"bpmn:ActivityNodeStyle":m,"bpmn:GatewayNodeStyle":h,"bpmn:ConversationNodeStyle":b,"bpmn:EventNodeStyle":a,"bpmn:DataObjectNodeStyle":c,"bpmn:DataStoreNodeStyle":d,"bpmn:GroupNodeStyle":f,"bpmn:ChoreographyNodeStyle":k,"yjs:BevelNodeStyle":n,"yjs:ShinyPlateNodeStyle":q,"demostyle:DemoGroupStyle":t,"yjs:CollapsibleNodeStyleDecorator":A,-"bpmn:PoolNodeStyle":C,"yjs:TableNodeStyle":C,"demotablestyle:DemoTableStyle":C,"yjs:ImageNodeStyle":I,"y:ShapeNode":g,"y:GenericNode":S,"y:GenericGroupNode":S,"y:TableNode":L,"y:SVGNode":Q,"y:GroupNode":K},z)};-mxGraphMlCodec.prototype.handleTemplates=function(g,y,z,B){if(g){var m=z.geometry.width,h=z.geometry.height;z='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+m+" "+h+'"><g>';for(var b,a=[],c=/\{TemplateBinding\s+([^}]+)\}/g;null!=(b=c.exec(g));){var d="";switch(b[1]){case "width":d=m;break;case "height":d=h}a.push({match:b[0],repl:d})}if(y&&y["y:Json"])for(y=JSON.parse(y["y:Json"]["#text"]),m=/\{Binding\s+([^}]+)\}/g;null!=(b=m.exec(g));)if(h=b[1].split(","),-c=y[h[0]])1<h.length&&h[1].indexOf("Converter=")&&(d=mxGraphMlConverters[h[1].substr(11)])&&(c=[c],h[2]&&c.push(h[2].substr(11)),c=d.apply(null,c)),a.push({match:b[0],repl:mxUtils.htmlEntities(c)});for(b=0;b<a.length;b++)g=g.replace(a[b].match,a[b].repl);a=[];for(y=/<text.+data-content="([^"]+).+<\/text>/g;null!=(b=y.exec(g));)c=b[0].substr(0,b[0].length-7)+b[1]+"</text>",a.push({match:b[0],repl:c});for(b=0;b<a.length;b++)g=g.replace(a[b].match,a[b].repl);g=z+g+"</g></svg>";B.shape="image";B.image=-"data:image/svg+xml,"+(window.btoa?btoa(g):Base64.encode(g))}};-mxGraphMlCodec.prototype.handleCompoundShape=function(g,y,z,B){var m=y.shape;if(m&&0==m.indexOf("js:")){switch(m){case "js:bpmnArtifactShadow":y.shadow="1";case "js:bpmnArtifact":y.shape=y.symbol;delete y.fillColor;delete y.strokeColor;delete y.gradientColor;this.handleCompoundShape(g,y,z,B);break;case "js:bpmnDataObjectShadow":case "js:bpmnDataObject":y.shape="note;size=16";z=z["bpmn:DataObjectNodeStyle"]||z["y:GenericNode"]||z["y:GenericGroupNode"];B={};this.mapObject(z,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.dataObjectType":"dataObjectType",-"com.yworks.bpmn.marker1":"marker1"}},B);if("true"==z.collection||"bpmn_marker_parallel"==B.marker1){var h=new mxCell("",new mxGeometry(.5,1,10,10),"html=1;whiteSpace=wrap;shape=parallelMarker;");h.vertex=!0;h.geometry.relative=!0;h.geometry.offset=new mxPoint(-5,-10);g.insert(h)}if("INPUT"==z.type||"data_object_type_input"==B.dataObjectType)h=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;"),h.vertex=!0,h.geometry.relative=!0,h.geometry.offset=new mxPoint(2,-2),g.insert(h);else if("OUTPUT"==z.type||"data_object_type_output"==B.dataObjectType)h=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;fillColor=#000000;"),h.vertex=!0,h.geometry.relative=!0,h.geometry.offset=new mxPoint(2,2),g.insert(h);break;case "js:BpmnChoreography":this.mapObject(z,{defaults:{shape:"swimlane;collapsible=0;rounded=1",startSize:"20",strokeColor:"#006000",fillColor:"#CCCCCC"}},y);h=g.geometry;h=new mxCell("",new mxGeometry(0,h.height--20,h.width,20),"strokeColor=#006000;fillColor=#777777;rounded=1");h.vertex=!0;g.insert(h);B&&B.lblTxts&&(g.value=B.lblTxts[0],h.value=B.lblTxts[1]);break;case "js:bpmnActivityShadow":case "js:bpmnActivity":y.shape="ext;rounded=1";B={};z=z["y:GenericNode"]||z["y:GenericGroupNode"];this.mapObject(z,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.taskType":"taskType","com.yworks.bpmn.activityType":"activityType","com.yworks.bpmn.marker1":"marker1","com.yworks.bpmn.marker2":"marker2","com.yworks.bpmn.marker3":"marker3",-"com.yworks.bpmn.marker4":"marker4"}},B);switch(B.activityType){case "activity_type_transaction":y["double"]="1"}switch(B.taskType){case "task_type_send":var b=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;fillColor=#000000;strokeColor=#FFFFFF;");b.geometry.offset=new mxPoint(4,7);break;case "task_type_receive":b=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");b.geometry.offset=new mxPoint(4,7);break;case "task_type_user":b=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");-b.geometry.offset=new mxPoint(4,5);break;case "task_type_manual":b=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");b.geometry.offset=new mxPoint(4,7);break;case "task_type_business_rule":b=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");b.geometry.offset=new mxPoint(4,7);break;case "task_type_service":b=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");b.geometry.offset=new mxPoint(4,5);break;case "task_type_script":b=-new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),b.geometry.offset=new mxPoint(4,5)}b&&(b.vertex=!0,b.geometry.relative=!0,g.insert(b),b=null);var a=0;for(h=1;4>=h;h++)B["marker"+h]&&a++;z=-7.5*a-2*(a-1);for(h=1;h<=a;h++){switch(B["marker"+h]){case "bpmn_marker_closed":b=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");b.geometry.offset=new mxPoint(z,-20);break;case "bpmn_marker_open":b=new mxCell("",new mxGeometry(.5,1,15,15),"shape=rect;part=1;");b.geometry.offset=-new mxPoint(z,-20);var c=new mxCell("",new mxGeometry(.5,.5,8,1),"shape=rect;part=1;");c.geometry.offset=new mxPoint(-4,-1);c.geometry.relative=!0;c.vertex=!0;b.insert(c);break;case "bpmn_marker_loop":b=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");b.geometry.offset=new mxPoint(z,-20);break;case "bpmn_marker_parallel":b=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");b.geometry.offset=new mxPoint(z,-20);break;case "bpmn_marker_sequential":b=new mxCell("",-new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");b.geometry.offset=new mxPoint(z,-20);break;case "bpmn_marker_ad_hoc":b=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;fillColor=#000000");b.geometry.offset=new mxPoint(z,-17);break;case "bpmn_marker_compensation":b=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),b.geometry.offset=new mxPoint(z,-18)}b.geometry.relative=!0;b.vertex=!0;g.insert(b);-z+=20}break;case "js:table":y.shape="swimlane;collapsible=0;swimlaneLine=0";B=z["yjs:TableNodeStyle"]||z["demotablestyle:DemoTableStyle"];!B&&z["bpmn:PoolNodeStyle"]&&(B=z["bpmn:PoolNodeStyle"]["yjs:TableNodeStyle"]);this.mapObject(B,{"backgroundStyle.demotablestyle:TableBackgroundStyle":{"insetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableBackgroundFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},"tableBackgroundStroke.yjs:Stroke":{fill:{key:"strokeColor",-mod:"color"},thickness:"strokeWidth"}},"backgroundStyle.yjs:ShapeNodeStyle.fill":{key:"fillColor",mod:"color"},"backgroundStyle.yjs:ShapeNodeStyle.fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"}},y);y.swimlaneFillColor=y.fillColor;B=B.table["y:Table"];var d=a=0,f={x:0};z=0;(h=B.Insets)?(h=h.split(","),"0"!=h[0]?(y.startSize=h[0],f.x=parseFloat(h[0]),y.horizontal="0"):"0"!=h[1]&&(y.startSize=h[1],z=parseFloat(h[1]),d+=z)):y.startSize="0";var k={},n={Insets:function(A,C){C.startSize=A.split(",")[0]},-"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",-mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"height"};this.mapObject(B.RowDefaults,{defaults:{shape:"swimlane;collapsible=0;horizontal=0",startSize:"0"},"y:StripeDefaults":n},k);b={};c={Insets:function(A,C){C.startSize=A.split(",")[1]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",-mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"width"};this.mapObject(B.ColumnDefaults,{defaults:{shape:"swimlane;collapsible=0",startSize:"0",fillColor:"none"},-"y:StripeDefaults":c},b);h=g.geometry;a=B.Rows["y:Row"];d+=parseFloat(b.startSize);var q=f.x,t=f.x;f.lx=f.x;if(a)for(a instanceof Array||(a=[a]),h=0;h<a.length;h++)f.x=t,f.lx=t,d=this.addRow(a[h],g,h&1,d,f,n,k),q=Math.max(f.x,q);B=B.Columns["y:Column"];a=q;if(B)for(B instanceof Array||(B=[B]),h=0;h<B.length;h++)a=this.addColumn(B[h],g,h&1,a,z,c,b);break;case "js:table2":y.shape="swimlane;collapsible=0;swimlaneLine=0";B={};this.mapObject(z,{"y:TableNode":{"y:StyleProperties.y:Property":{"yed.table.section.color":{key:"secColor",+InfographicsBlock:"mxCompositeShape",FlexiblePolygonBlock:"mxCompositeShape",PersonRoleBlock:"mxCompositeShape"},xf=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Ld.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Ld.prototype.getX=function(f){return Math.round(100*this.nurbsValues[4*(f+1)])/100};Ld.prototype.getY=function(f){return Math.round(100*this.nurbsValues[4*(f+1)+1])/100};LucidImporter.importState=function(f,n,l){function e(c){null!=c.state&&EditorUi.debug("convertLucidChart addPages",+c);if(c.Properties){for(var H in c.Properties)"Stencil-"==H.substr(0,8)&&Ke(H.substr(8),c.Properties[H]);LucidImporter.globalProps=c.Properties}for(var I in c.Pages)H=c.Pages[I],H.id=I,H.Data=c.Data,a.push(H);a.sort(function(C,ba){return C.Properties.Order<ba.Properties.Order?-1:C.Properties.Order>ba.Properties.Order?1:0});for(c=0;c<a.length;c++)LucidImporter.pageIdsMap[a[c].id]=c}oc=nc=0;LucidImporter.stencilsMap={};LucidImporter.imgSrcRepl=n;LucidImporter.advImpConfig=l;LucidImporter.globalProps=+{};LucidImporter.pageIdsMap={};LucidImporter.hasUnknownShapes=!1;LucidImporter.hasOrgChart=!1;LucidImporter.hasTimeLine=!1;LucidImporter.hasExtImgs=!1;n=['<?xml version="1.0" encoding="UTF-8"?>','<mxfile type="Lucidchart-Import" version="'+EditorUi.VERSION+'" host="'+mxUtils.htmlEntities(window.location.hostname)+'" agent="'+mxUtils.htmlEntities(navigator.appVersion)+'" modified="'+mxUtils.htmlEntities((new Date).toISOString())+'">'];l&&l.transparentEdgeLabels&&(ce=ce.replace("labelBackgroundColor=default;",+"labelBackgroundColor=none;"));var a=[];null!=f.state?e(JSON.parse(f.state)):null==f.Page&&null!=f.Pages?e(f):a.push(f);f=Df();l=new mxCodec;for(var y=0;y<a.length;y++){n.push("<diagram");null!=a[y].Properties&&null!=a[y].Properties.Title&&n.push(' name="'+mxUtils.htmlEntities(a[y].Properties.Title)+'"');n.push(' id="'+y+'"');zf(f,a[y],!0);var d=l.encode(f.getModel());null!=a[y].Properties&&(a[y].Properties.FillColor&&"#ffffff"!=a[y].Properties.FillColor&&d.setAttribute("background",Pa(a[y].Properties.FillColor)),+a[y].Properties.InfiniteCanvas?d.setAttribute("page",0):null!=a[y].Properties.Size&&(d.setAttribute("page",1),d.setAttribute("pageWidth",.75*a[y].Properties.Size.w),d.setAttribute("pageHeight",.75*a[y].Properties.Size.h)),null!=a[y].Properties.GridSpacing&&(d.setAttribute("grid",1),d.setAttribute("gridSize",.75*a[y].Properties.GridSpacing)));LucidImporter.hasMath&&d.setAttribute("math",1);f.getModel().clear();n.push(">"+Graph.compress(mxUtils.getXml(d))+"</diagram>")}n.push("</mxfile>");LucidImporter.imgSrcRepl=+null;return n.join("")}})();function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x:Static\s+(.+)\.(.+)\}$/;+mxGraphMlCodec.prototype.decode=function(r,w,x){try{var z=mxUtils.parseXml(r),k=this.getDirectChildNamedElements(z.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(z.documentElement);r='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(z=0;z<k.length;z++){var t=k[z],u=this.createMxGraph(),p=u.getModel();p.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(t,u,u.getDefaultParent()),z=0;z<this.edges.length;z++)for(var h=this.edges[z],D=h.edges,A=h.parent,N=h.dx,E=h.dy,+L=0;L<D.length;L++)this.importEdge(D[L],u,A,N,E)}catch(Eb){throw console.log(Eb),Eb;}finally{p.endUpdate()}p.beginUpdate();try{var X=u.getModel().cells,Oa;for(Oa in X){var xa=X[Oa];if(xa.edge&&0<xa.getChildCount())for(z=0;z<xa.getChildCount();z++){var Ka=xa.children[z].geometry;if(Ka.adjustIt){var Va=u.view.getState(xa),Fa=Va.absolutePoints,Ca=Fa[0],Ga=Fa[Fa.length-1],qa=Ka.x,U=Ka.y;N=Ga.x-Ca.x;E=Ga.y-Ca.y;var Gd=Ca.x+qa*N,Hd=Ca.y+qa*E,Xa=Math.sqrt(N*N+E*E);N/=Xa;E/=Xa;Gd-=U*E;Hd+=U*N;var mc=u.view.getRelativePoint(Va,+Gd,Hd);Ka.x=mc.x;Ka.y=mc.y}}}}catch(Eb){throw console.log(Eb),Eb;}finally{p.endUpdate()}r+=this.processPage(u,z+1)}w&&w(r+"</mxfile>")}catch(Eb){x&&x(Eb)}};+mxGraphMlCodec.prototype.initializeKeys=function(r){var w=this.getDirectChildNamedElements(r,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=+{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var x,z=0;z<w.length;z++){var k=this.dataElem2Obj(w[z]),t=k[mxGraphMlConstants.ID],u=k[mxGraphMlConstants.KEY_FOR],p=k[mxGraphMlConstants.KEY_NAME],h=k[mxGraphMlConstants.KEY_YTYPE];p==mxGraphMlConstants.SHARED_DATA&&(x=t);p=p?p:h;switch(u){case mxGraphMlConstants.NODE:this.nodesKeys[p]=+{key:t,keyObj:k};break;case mxGraphMlConstants.EDGE:this.edgesKeys[p]={key:t,keyObj:k};break;case mxGraphMlConstants.PORT:this.portsKeys[p]={key:t,keyObj:k};break;case mxGraphMlConstants.ALL:k={key:t,keyObj:k},this.nodesKeys[p]=k,this.edgesKeys[p]=k,this.portsKeys[p]=k}}r=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA);for(z=0;z<r.length;z++)if(r[z].getAttribute(mxGraphMlConstants.KEY)==x)for(u=this.getDirectChildNamedElements(r[z],mxGraphMlConstants.Y_SHARED_DATA),w=0;w<u.length;w++)for(p=+this.getDirectChildElements(u[w]),k=0;k<p.length;k++)t=p[k].getAttribute(mxGraphMlConstants.X_KEY),this.sharedData[t]=p[k];else for(u=this.getDirectChildNamedElements(r[z],mxGraphMlConstants.Y_RESOURCES),w=0;w<u.length;w++)for(p=this.getDirectChildElements(u[w]),k=0;k<p.length;k++)t=p[k].getAttribute(mxGraphMlConstants.ID),this.sharedData[t]=p[k]};+mxGraphMlCodec.prototype.parseAttributes=function(r,w){if(r=r.attributes)for(var x=0;x<r.length;x++){var z=r[x].nodeValue,k=this.refRegexp.exec(z),t=this.staticRegexp.exec(z);k?(z=k[1],k=this.cachedRefObj[z],k||(k={},k[this.sharedData[z].nodeName]=this.dataElem2Obj(this.sharedData[z]),this.cachedRefObj[z]=k),w[r[x].nodeName]=k):t?(w[r[x].nodeName]={},w[r[x].nodeName][t[1]]=t[2]):w[r[x].nodeName]=z}};+mxGraphMlCodec.prototype.dataElem2Obj=function(r){var w=this.getDirectFirstChildNamedElements(r,mxGraphMlConstants.GRAPHML_REFERENCE)||r.getAttribute(mxGraphMlConstants.REFID),x=null,z=r,k={};if(w){x="string"===typeof w?w:w.getAttribute(mxGraphMlConstants.RESOURCE_KEY);if(w=this.cachedRefObj[x])return this.parseAttributes(r,w),w;r=this.sharedData[x]}this.parseAttributes(r,k);for(w=0;w<r.childNodes.length;w++){var t=r.childNodes[w];if(1==t.nodeType){var u=t.nodeName;if(u==mxGraphMlConstants.X_LIST){var p=+[];t=this.getDirectChildElements(t);for(var h=0;h<t.length;h++)u=t[h].nodeName,p.push(this.dataElem2Obj(t[h]));k[u]=p}else u==mxGraphMlConstants.X_STATIC?(u=t.getAttribute(mxGraphMlConstants.MEMBER),p=u.lastIndexOf("."),k[u.substr(0,p)]=u.substr(p+1)):(p=u.lastIndexOf("."),0<p&&(u=u.substr(p+1)),null!=k[u]?(k[u]instanceof Array||(k[u]=[k[u]]),k[u].push(this.dataElem2Obj(t))):k[u]=this.dataElem2Obj(t))}else 3!=t.nodeType&&4!=t.nodeType||!t.textContent.trim()||(k["#text"]=t.textContent)}return x?(r=+{},this.parseAttributes(z,r),r[this.sharedData[x].nodeName]=k,this.cachedRefObj[x]=r):k};mxGraphMlCodec.prototype.mapArray=function(r,w,x){for(var z={},k=0;k<r.length;k++)r[k].name&&(z[r[k].name]=r[k].value||r[k]);this.mapObject(z,w,x)};+mxGraphMlCodec.prototype.mapObject=function(r,w,x){if(w.defaults)for(var z in w.defaults)x[z]=w.defaults[z];for(z in w){for(var k=z.split("."),t=r,u=0;u<k.length&&t;u++)t=t[k[u]];null==t&&r&&(t=r[z]);if(null!=t)if(k=w[z],"string"===typeof t)if("string"===typeof k)x[k]=t.toLowerCase();else if("object"===typeof k){u=t.toLowerCase();switch(k.mod){case "color":0==t.indexOf("#")&&9==t.length?u="#"+t.substr(3)+t.substr(1,2):"TRANSPARENT"==t&&(u="none");break;case "shape":u=mxGraphMlShapesMap[t.toLowerCase()];+break;case "bpmnOutline":u=mxGraphMlShapesMap.bpmnOutline[t.toLowerCase()];break;case "bpmnSymbol":u=mxGraphMlShapesMap.bpmnSymbol[t.toLowerCase()];break;case "bool":u="true"==t?"1":"0";break;case "scale":try{u=parseFloat(t)*k.scale}catch(p){}break;case "arrow":u=mxGraphMlArrowsMap[t]}null!=u&&(x[k.key]=u)}else k(t,x);else t instanceof Array?this.mapArray(t,k,x):null!=t.name&&null!=t.value?this.mapArray([t],k,x):this.mapObject(t,k,x)}};mxGraphMlCodec.prototype.createMxGraph=function(){return new mxGraph};+mxGraphMlCodec.prototype.importGraph=function(r,w,x){for(var z=this.getDirectChildNamedElements(r,mxGraphMlConstants.NODE),k=x,t=0,u=0;k&&k.geometry;)t+=k.geometry.x,u+=k.geometry.y,k=k.parent;for(k=0;k<z.length;k++)this.importNode(z[k],w,x,t,u);this.edges.push({edges:this.getDirectChildNamedElements(r,mxGraphMlConstants.EDGE),parent:x,dx:t,dy:u})};+mxGraphMlCodec.prototype.importPort=function(r,w){var x=r.getAttribute(mxGraphMlConstants.PORT_NAME),z={};r=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA);for(var k=0;k<r.length;k++){var t=r[k];t.getAttribute(mxGraphMlConstants.KEY);t=this.dataElem2Obj(t);t.key==this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER].key&&this.mapObject(t,{"y:FreeNodePortLocationModelParameter.Ratio":function(u,p){u=u.split(",");p.pos={x:u[0],y:u[1]}}},z)}w[x]=z};+mxGraphMlCodec.prototype.styleMap2Str=function(r){var w="",x="",z;for(z in r)x+=w+z+"="+r[z],w=";";return x};+mxGraphMlCodec.prototype.importNode=function(r,w,x,z,k){var t=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA),u=r.getAttribute(mxGraphMlConstants.ID),p=new mxCell;p.vertex=!0;p.geometry=new mxGeometry(0,0,30,30);w.addCell(p,x);x={graphMlID:u};for(var h=null,D=null,A=null,N=null,E=0;E<t.length;E++){var L=this.dataElem2Obj(t[E]);if(L.key)if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY].key)this.addNodeGeo(p,L,z,k);else if(L.key==this.nodesKeys[mxGraphMlConstants.USER_TAGS].key)A=+L;else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)h=L,L["yjs:StringTemplateNodeStyle"]?D=L["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(p,L,x);else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)N=L;else if(L.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var X=h=null;for(X in L)if("key"!=X&&"#text"!=X){if("y:ProxyAutoBoundsNode"==X){if(X=L[X]["y:Realizers"])for(var Oa in X)if("active"!=Oa&&"#text"!=Oa){h=X[Oa][X.active];L={};L[Oa]=h;break}}else h=+L[X];break}h&&(h[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(p,h[mxGraphMlConstants.GEOMETRY],z,k),h[mxGraphMlConstants.NODE_LABEL]&&(N=h[mxGraphMlConstants.NODE_LABEL]));h=L;this.addNodeStyle(p,L,x)}}k=this.getDirectChildNamedElements(r,mxGraphMlConstants.PORT);z={};for(E=0;E<k.length;E++)this.importPort(k[E],z);D&&this.handleTemplates(D,A,p,x);this.handleFixedRatio(p,x);this.handleCompoundShape(p,x,h,null);0==x.strokeWidth&&(x.strokeColor="none");p.style=this.styleMap2Str(x);r=this.getDirectChildNamedElements(r,+mxGraphMlConstants.GRAPH);for(E=0;E<r.length;E++)this.importGraph(r[E],w,p,z);N&&this.addLabels(p,N,x,w);this.nodesMap[u]={node:p,ports:z}};+mxGraphMlCodec.prototype.addNodeStyle=function(r,w,x){r=function(qa,U){if("line"!=qa){U.dashed=1;switch(qa){case "DashDot":qa="3 1 1 1";break;case "Dot":qa="1 1";break;case "DashDotDot":qa="3 1 1 1 1 1";break;case "Dash":qa="3 1";break;case "dotted":qa="1 3";break;case "dashed":qa="5 2";break;default:qa=qa.replace(/0/g,"1")}qa&&(0>qa.indexOf(" ")&&(qa=qa+" "+qa),U.dashPattern=qa)}};r={shape:{key:"shape",mod:"shape"},"y:Shape.type":{key:"shape",mod:"shape"},configuration:{key:"shape",mod:"shape"},+type:{key:"shape",mod:"shape"},assetName:{key:"shape",mod:"shape"},activityType:{key:"shape",mod:"shape"},fill:{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"y:Fill":{color:{key:"fillColor",mod:"color"},transparent:function(qa,U){"true"==qa&&(U.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(qa,U){"false"==qa&&+(U.strokeColor="none")},type:r},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:r,"dashStyle.yjs:DashStyle.dashes":r,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var z=mxUtils.clone(r);z.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var k=mxUtils.clone(r);k.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var t=mxUtils.clone(r);+t.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};var u=mxUtils.clone(r);u.defaults={shape:"hexagon",strokeColor:"#007000"};var p=mxUtils.clone(r);p.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};p.characteristic={key:"outline",mod:"bpmnOutline"};var h=mxUtils.clone(r);h.defaults={shape:"js:bpmnDataObject"};var D=mxUtils.clone(r);D.defaults={shape:"datastore"};var A=mxUtils.clone(r);A.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};+var N=mxUtils.clone(r);N.defaults={shape:"js:BpmnChoreography"};var E=mxUtils.clone(r);E.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};E.inset="strokeWidth";E.radius="arcSize";E.drawShadow={key:"shadow",mod:"bool"};E.color={key:"fillColor",mod:"color",addGradient:"north"};E["color.yjs:Color.value"]=E.color;var L=mxUtils.clone(r);L.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};L.drawShadow={key:"shadow",mod:"bool"};var X=mxUtils.clone(r);X.defaults={shape:"swimlane",+startSize:20,strokeWidth:4,spacingLeft:10};X.isCollapsible={key:"collapsible",mod:"bool"};X.borderColor={key:"strokeColor",mod:"color"};X.folderFrontColor={key:"fillColor",mod:"color"};var Oa=mxUtils.clone(r);Oa.defaults={shape:"swimlane",startSize:20,spacingLeft:10};Oa["yjs:PanelNodeStyle"]={color:{key:"swimlaneFillColor",mod:"color"},"color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},labelInsetsColor:{key:"fillColor",mod:"color"},"labelInsetsColor.yjs:Color.value":{key:"fillColor",mod:"color"}};+var xa=mxUtils.clone(r);xa.defaults={shape:"js:table"};var Ka=mxUtils.clone(r);Ka.defaults={shape:"image"};Ka.image=function(qa,U){U.image=qa};var Va=mxUtils.clone(r);Va.defaults={shape:"image"};Va["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(qa,U){U.image="data:image/svg+xml,"+(window.btoa?btoa(qa):Base64.encode(qa))};var Fa=mxUtils.clone(r);Fa.defaults={shape:"swimlane",startSize:20};Fa["y:Shape.type"]=function(qa,U){"roundrectangle"==qa&&(U.rounded=1,U.arcSize=5)};var Ca=mxUtils.clone(r);+Ca.defaults={shape:"js:table2"};var Ga=mxUtils.clone(r);Ga.defaults={gradientDirection:"east"};Ga["y:Fill"].color2={key:"gradientColor",mod:"color"};Ga["y:StyleProperties.y:Property"]={"com.yworks.bpmn.characteristic":{key:"outline",mod:"bpmnOutline"},"com.yworks.bpmn.icon.fill":{key:"gradientColor",mod:"color"},"com.yworks.bpmn.icon.fill2":{key:"fillColor",mod:"color"},"com.yworks.bpmn.type":{key:"symbol",mod:"bpmnSymbol"},"y.view.ShadowNodePainter.SHADOW_PAINTING":{key:"shadow",mod:"bool"},doubleBorder:{key:"double",+mod:"bool"},"com.yworks.sbgn.style.radius":{key:"arcSize",mod:"scale",scale:2},"com.yworks.sbgn.style.inverse":{key:"flipV",mod:"bool"}};this.mapObject(w,{"yjs:ShapeNodeStyle":r,"demostyle:FlowchartNodeStyle":r,"demostyle:AssetNodeStyle":z,"bpmn:ActivityNodeStyle":k,"bpmn:GatewayNodeStyle":t,"bpmn:ConversationNodeStyle":u,"bpmn:EventNodeStyle":p,"bpmn:DataObjectNodeStyle":h,"bpmn:DataStoreNodeStyle":D,"bpmn:GroupNodeStyle":A,"bpmn:ChoreographyNodeStyle":N,"yjs:BevelNodeStyle":E,"yjs:ShinyPlateNodeStyle":L,+"demostyle:DemoGroupStyle":X,"yjs:CollapsibleNodeStyleDecorator":Oa,"bpmn:PoolNodeStyle":xa,"yjs:TableNodeStyle":xa,"demotablestyle:DemoTableStyle":xa,"yjs:ImageNodeStyle":Ka,"y:ShapeNode":r,"y:GenericNode":Ga,"y:GenericGroupNode":Ga,"y:TableNode":Ca,"y:SVGNode":Va,"y:GroupNode":Fa},x)};+mxGraphMlCodec.prototype.handleTemplates=function(r,w,x,z){if(r){var k=x.geometry.width,t=x.geometry.height;x='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+k+" "+t+'"><g>';for(var u,p=[],h=/\{TemplateBinding\s+([^}]+)\}/g;null!=(u=h.exec(r));){var D="";switch(u[1]){case "width":D=k;break;case "height":D=t}p.push({match:u[0],repl:D})}if(w&&w["y:Json"])for(w=JSON.parse(w["y:Json"]["#text"]),k=/\{Binding\s+([^}]+)\}/g;null!=(u=k.exec(r));)if(t=u[1].split(","),+h=w[t[0]])1<t.length&&t[1].indexOf("Converter=")&&(D=mxGraphMlConverters[t[1].substr(11)])&&(h=[h],t[2]&&h.push(t[2].substr(11)),h=D.apply(null,h)),p.push({match:u[0],repl:mxUtils.htmlEntities(h)});for(u=0;u<p.length;u++)r=r.replace(p[u].match,p[u].repl);p=[];for(w=/<text.+data-content="([^"]+).+<\/text>/g;null!=(u=w.exec(r));)h=u[0].substr(0,u[0].length-7)+u[1]+"</text>",p.push({match:u[0],repl:h});for(u=0;u<p.length;u++)r=r.replace(p[u].match,p[u].repl);r=x+r+"</g></svg>";z.shape="image";z.image=+"data:image/svg+xml,"+(window.btoa?btoa(r):Base64.encode(r))}};+mxGraphMlCodec.prototype.handleCompoundShape=function(r,w,x,z){var k=w.shape;if(k&&0==k.indexOf("js:")){switch(k){case "js:bpmnArtifactShadow":w.shadow="1";case "js:bpmnArtifact":w.shape=w.symbol;delete w.fillColor;delete w.strokeColor;delete w.gradientColor;this.handleCompoundShape(r,w,x,z);break;case "js:bpmnDataObjectShadow":case "js:bpmnDataObject":w.shape="note;size=16";x=x["bpmn:DataObjectNodeStyle"]||x["y:GenericNode"]||x["y:GenericGroupNode"];z={};this.mapObject(x,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.dataObjectType":"dataObjectType",+"com.yworks.bpmn.marker1":"marker1"}},z);if("true"==x.collection||"bpmn_marker_parallel"==z.marker1){var t=new mxCell("",new mxGeometry(.5,1,10,10),"html=1;whiteSpace=wrap;shape=parallelMarker;");t.vertex=!0;t.geometry.relative=!0;t.geometry.offset=new mxPoint(-5,-10);r.insert(t)}if("INPUT"==x.type||"data_object_type_input"==z.dataObjectType)t=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;"),t.vertex=!0,t.geometry.relative=!0,t.geometry.offset=new mxPoint(2,+2),r.insert(t);else if("OUTPUT"==x.type||"data_object_type_output"==z.dataObjectType)t=new mxCell("",new mxGeometry(0,0,10,10),"html=1;shape=singleArrow;arrowWidth=0.4;arrowSize=0.4;fillColor=#000000;"),t.vertex=!0,t.geometry.relative=!0,t.geometry.offset=new mxPoint(2,2),r.insert(t);break;case "js:BpmnChoreography":this.mapObject(x,{defaults:{shape:"swimlane;collapsible=0;rounded=1",startSize:"20",strokeColor:"#006000",fillColor:"#CCCCCC"}},w);t=r.geometry;t=new mxCell("",new mxGeometry(0,t.height-+20,t.width,20),"strokeColor=#006000;fillColor=#777777;rounded=1");t.vertex=!0;r.insert(t);z&&z.lblTxts&&(r.value=z.lblTxts[0],t.value=z.lblTxts[1]);break;case "js:bpmnActivityShadow":case "js:bpmnActivity":w.shape="ext;rounded=1";z={};x=x["y:GenericNode"]||x["y:GenericGroupNode"];this.mapObject(x,{"y:StyleProperties.y:Property":{"com.yworks.bpmn.taskType":"taskType","com.yworks.bpmn.activityType":"activityType","com.yworks.bpmn.marker1":"marker1","com.yworks.bpmn.marker2":"marker2","com.yworks.bpmn.marker3":"marker3",+"com.yworks.bpmn.marker4":"marker4"}},z);switch(z.activityType){case "activity_type_transaction":w["double"]="1"}switch(z.taskType){case "task_type_send":var u=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;fillColor=#000000;strokeColor=#FFFFFF;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_receive":u=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_user":u=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");+u.geometry.offset=new mxPoint(4,5);break;case "task_type_manual":u=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_business_rule":u=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");u.geometry.offset=new mxPoint(4,7);break;case "task_type_service":u=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");u.geometry.offset=new mxPoint(4,5);break;case "task_type_script":u=+new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),u.geometry.offset=new mxPoint(4,5)}u&&(u.vertex=!0,u.geometry.relative=!0,r.insert(u),u=null);var p=0;for(t=1;4>=t;t++)z["marker"+t]&&p++;x=-7.5*p-2*(p-1);for(t=1;t<=p;t++){switch(z["marker"+t]){case "bpmn_marker_closed":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_open":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=rect;part=1;");u.geometry.offset=+new mxPoint(x,-20);var h=new mxCell("",new mxGeometry(.5,.5,8,1),"shape=rect;part=1;");h.geometry.offset=new mxPoint(-4,-1);h.geometry.relative=!0;h.vertex=!0;u.insert(h);break;case "bpmn_marker_loop":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_parallel":u=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_sequential":u=new mxCell("",+new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");u.geometry.offset=new mxPoint(x,-20);break;case "bpmn_marker_ad_hoc":u=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;fillColor=#000000");u.geometry.offset=new mxPoint(x,-17);break;case "bpmn_marker_compensation":u=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),u.geometry.offset=new mxPoint(x,-18)}u.geometry.relative=!0;u.vertex=!0;r.insert(u);+x+=20}break;case "js:table":w.shape="swimlane;collapsible=0;swimlaneLine=0";z=x["yjs:TableNodeStyle"]||x["demotablestyle:DemoTableStyle"];!z&&x["bpmn:PoolNodeStyle"]&&(z=x["bpmn:PoolNodeStyle"]["yjs:TableNodeStyle"]);this.mapObject(z,{"backgroundStyle.demotablestyle:TableBackgroundStyle":{"insetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableBackgroundFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},"tableBackgroundStroke.yjs:Stroke":{fill:{key:"strokeColor",+mod:"color"},thickness:"strokeWidth"}},"backgroundStyle.yjs:ShapeNodeStyle.fill":{key:"fillColor",mod:"color"},"backgroundStyle.yjs:ShapeNodeStyle.fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"}},w);w.swimlaneFillColor=w.fillColor;z=z.table["y:Table"];var D=p=0,A={x:0};x=0;(t=z.Insets)?(t=t.split(","),"0"!=t[0]?(w.startSize=t[0],A.x=parseFloat(t[0]),w.horizontal="0"):"0"!=t[1]&&(w.startSize=t[1],x=parseFloat(t[1]),D+=x)):w.startSize="0";var N={},E={Insets:function(Oa,xa){xa.startSize=+Oa.split(",")[0]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",+mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"height"};this.mapObject(z.RowDefaults,{defaults:{shape:"swimlane;collapsible=0;horizontal=0",startSize:"0"},"y:StripeDefaults":E},N);u={};h={Insets:function(Oa,xa){xa.startSize=Oa.split(",")[1]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",+mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"width"};this.mapObject(z.ColumnDefaults,{defaults:{shape:"swimlane;collapsible=0",startSize:"0",fillColor:"none"},+"y:StripeDefaults":h},u);t=r.geometry;p=z.Rows["y:Row"];D+=parseFloat(u.startSize);var L=A.x,X=A.x;A.lx=A.x;if(p)for(p instanceof Array||(p=[p]),t=0;t<p.length;t++)A.x=X,A.lx=X,D=this.addRow(p[t],r,t&1,D,A,E,N),L=Math.max(A.x,L);z=z.Columns["y:Column"];p=L;if(z)for(z instanceof Array||(z=[z]),t=0;t<z.length;t++)p=this.addColumn(z[t],r,t&1,p,x,h,u);break;case "js:table2":w.shape="swimlane;collapsible=0;swimlaneLine=0";z={};this.mapObject(x,{"y:TableNode":{"y:StyleProperties.y:Property":{"yed.table.section.color":{key:"secColor",mod:"color"},"yed.table.header.height":"headerH","yed.table.header.color.main":{key:"headerColor",mod:"color"},"yed.table.header.color.alternating":{key:"headerColorAlt",mod:"color"},"yed.table.lane.color.main":{key:"laneColor",mod:"color"},"yed.table.lane.color.alternating":{key:"laneColorAlt",mod:"color"},"yed.table.lane.style":"laneStyle","com.yworks.bpmn.type":"isHorz",POOL_LANE_COLOR_ALTERNATING:{key:"laneColorAlt",mod:"color"},POOL_LANE_COLOR_MAIN:{key:"laneColor",mod:"color"},POOL_LANE_STYLE:"laneStyle",-POOL_HEADER_COLOR_MAIN:{key:"headerColor",mod:"color"},POOL_HEADER_COLOR_ALTERNATING:{key:"headerColorAlt",mod:"color"},POOL_TABLE_SECTION_COLOR:{key:"secColor",mod:"color"}},"y:Table":{"y:DefaultColumnInsets.top":"colHHeight","y:DefaultRowInsets.left":"rowHWidth","y:Insets":{top:"tblHHeight",left:"tblHWidth"}}}},B);y.swimlaneFillColor=y.fillColor;n=b=0;"pool_type_lane_and_column"==B.isHorz||"pool_type_empty"==B.isHorz||"pool_type_lane"==B.isHorz?n=parseFloat(B.tblHWidth):b=parseFloat(B.tblHHeight);-y.startSize=b?b:n;try{a=z["y:TableNode"]["y:Table"]["y:Rows"]["y:Row"];c=z["y:TableNode"]["y:Table"]["y:Columns"]["y:Column"];d="lane.style.rows"==B.laneStyle||"lane_style_rows"==B.laneStyle;a instanceof Array||(a=[a]);c instanceof Array||(c=[c]);f=parseFloat(B.rowHWidth);for(h=0;h<a.length;h++)a[h]["y:Insets"]&&(f=Math.max(f,parseFloat(a[h]["y:Insets"].left)+parseFloat(a[h]["y:Insets"].right)));k=parseFloat(B.colHHeight);for(h=0;h<c.length;h++)c[h]["y:Insets"]&&(k=Math.max(k,parseFloat(c[h]["y:Insets"].top)+-parseFloat(c[h]["y:Insets"].bottom)));d?(this.addTbl2Rows(g,a,b,n,f,k,d,B),this.addTbl2Cols(g,c,b,n,f,k,d,B)):(this.addTbl2Cols(g,c,b,n,f,k,d,B),this.addTbl2Rows(g,a,b,n,f,k,d,B))}catch(A){}break;case "js:relationship_big_entity":y.shape="swimlane;startSize=30;rounded=1;arcSize=5;collapsible=0";if(g=z["y:GenericNode"]["y:Fill"])y.fillColor=g.color2,y.swimlaneFillColor=g.color;break;case "js:relationship_attribute":y.shape="1"==y["double"]?"doubleEllipse":"ellipse"}0<m.indexOf("Shadow")&&(y.shadow=+POOL_HEADER_COLOR_MAIN:{key:"headerColor",mod:"color"},POOL_HEADER_COLOR_ALTERNATING:{key:"headerColorAlt",mod:"color"},POOL_TABLE_SECTION_COLOR:{key:"secColor",mod:"color"}},"y:Table":{"y:DefaultColumnInsets.top":"colHHeight","y:DefaultRowInsets.left":"rowHWidth","y:Insets":{top:"tblHHeight",left:"tblHWidth"}}}},z);w.swimlaneFillColor=w.fillColor;E=u=0;"pool_type_lane_and_column"==z.isHorz||"pool_type_empty"==z.isHorz||"pool_type_lane"==z.isHorz?E=parseFloat(z.tblHWidth):u=parseFloat(z.tblHHeight);+w.startSize=u?u:E;try{p=x["y:TableNode"]["y:Table"]["y:Rows"]["y:Row"];h=x["y:TableNode"]["y:Table"]["y:Columns"]["y:Column"];D="lane.style.rows"==z.laneStyle||"lane_style_rows"==z.laneStyle;p instanceof Array||(p=[p]);h instanceof Array||(h=[h]);A=parseFloat(z.rowHWidth);for(t=0;t<p.length;t++)p[t]["y:Insets"]&&(A=Math.max(A,parseFloat(p[t]["y:Insets"].left)+parseFloat(p[t]["y:Insets"].right)));N=parseFloat(z.colHHeight);for(t=0;t<h.length;t++)h[t]["y:Insets"]&&(N=Math.max(N,parseFloat(h[t]["y:Insets"].top)++parseFloat(h[t]["y:Insets"].bottom)));D?(this.addTbl2Rows(r,p,u,E,A,N,D,z),this.addTbl2Cols(r,h,u,E,A,N,D,z)):(this.addTbl2Cols(r,h,u,E,A,N,D,z),this.addTbl2Rows(r,p,u,E,A,N,D,z))}catch(Oa){}break;case "js:relationship_big_entity":w.shape="swimlane;startSize=30;rounded=1;arcSize=5;collapsible=0";if(r=x["y:GenericNode"]["y:Fill"])w.fillColor=r.color2,w.swimlaneFillColor=r.color;break;case "js:relationship_attribute":w.shape="1"==w["double"]?"doubleEllipse":"ellipse"}0<k.indexOf("Shadow")&&(w.shadow="1")}};-mxGraphMlCodec.prototype.addTbl2Rows=function(g,y,z,B,m,h,b,a){z+=h;for(var c=null!=a.isHorz,d=0;d<y.length;d++){var f=d&1,k=new mxCell;k.vertex=!0;var n={shape:"swimlane;collapsible=0;horizontal=0",startSize:m,fillColor:a.secColor||"none",swimlaneLine:c?"0":"1"};0==parseFloat(n.startSize)&&(n.fillColor="none",n.swimlaneLine="0");if(b){var q=f?a.headerColorAlt:a.headerColor;n.swimlaneFillColor=f?a.laneColorAlt:a.laneColor;n.fillColor=q?q:n.swimlaneFillColor}f=parseFloat(y[d].height);q=c&&0==d?h:0;-k.geometry=new mxGeometry(B,z-q,g.geometry.width-B,f+q);z+=f;k.style=this.styleMap2Str(n);g.insert(k)}};-mxGraphMlCodec.prototype.addTbl2Cols=function(g,y,z,B,m,h,b,a){B=m+B;for(var c=null!=a.isHorz,d=0;d<y.length;d++){var f=d&1,k=new mxCell;k.vertex=!0;var n={shape:"swimlane;collapsible=0",startSize:h,fillColor:a.secColor||"none",swimlaneLine:c?"0":"1"};0==parseFloat(n.startSize)&&(n.fillColor="none");if(!b){var q=f?a.headerColorAlt:a.headerColor;n.swimlaneFillColor=f?a.laneColorAlt:a.laneColor;n.fillColor=q?q:n.swimlaneFillColor}f=parseFloat(y[d].width);q=c&&0==d?m:0;k.geometry=new mxGeometry(B-q,-z,f+q,g.geometry.height-z);B+=f;k.style=this.styleMap2Str(n);g.insert(k)}};-mxGraphMlCodec.prototype.addRow=function(g,y,z,B,m,h,b){var a=new mxCell;a.vertex=!0;var c=mxUtils.clone(b);this.mapObject(g,h,c);z?(c.oddFill&&(c.fillColor=c.oddFill),c.oddLaneFill&&(c.swimlaneFillColor=c.oddLaneFill)):(c.evenFill&&(c.fillColor=c.evenFill),c.evenLaneFill&&(c.swimlaneFillColor=c.evenLaneFill));z=parseFloat(c.height);a.geometry=new mxGeometry(m.lx,B,y.geometry.width-m.lx,z);var d=g.Labels;d&&this.addLabels(a,d,c);a.style=this.styleMap2Str(c);y.insert(a);g=g["y:Row"];m.lx=0;c.startSize&&-(m.lx=parseFloat(c.startSize),m.x+=m.lx);y=c=m.x;d=m.lx;var f=0;if(g){g instanceof Array||(g=[g]);for(var k=0;k<g.length;k++)m.x=c,m.lx=d,f=this.addRow(g[k],a,k&1,f,m,h,b),y=Math.max(m.x,y)}m.x=y;z=Math.max(z,f);a.geometry.height=z;return B+=z};-mxGraphMlCodec.prototype.addColumn=function(g,y,z,B,m,h,b){var a=new mxCell;a.vertex=!0;var c=mxUtils.clone(b);this.mapObject(g,h,c);z?(c.oddFill&&(c.fillColor=c.oddFill),c.oddLaneFill&&(c.swimlaneFillColor=c.oddLaneFill)):(c.evenFill&&(c.fillColor=c.evenFill),c.evenLaneFill&&(c.swimlaneFillColor=c.evenLaneFill));z=parseFloat(c.width);a.geometry=new mxGeometry(B,m,z,y.geometry.height-m);var d=g.Labels;d&&this.addLabels(a,d,c);a.style=this.styleMap2Str(c);y.insert(a);g=g["y:Column"];y=0;if(g)for(g instanceof-Array||(g=[g]),c=0;c<g.length;c++)y=this.addColumn(g[c],a,c&1,y,m,h,b);z=Math.max(z,y);a.geometry.width=z;return B+=z};mxGraphMlCodec.prototype.handleFixedRatio=function(g,y){y=y.shape;g=g.geometry;if(y&&g)if(0<y.indexOf(";aspect=fixed"))y=Math.min(g.height,g.width),y==g.height&&(g.x+=(g.width-y)/2),g.height=y,g.width=y;else if(0<y.indexOf(";rotation=90")||0<y.indexOf(";rotation=-90")){y=g.height;var z=g.width;g.height=z;g.width=y;y=(y-z)/2;g.x-=y;g.y+=y}};-mxGraphMlCodec.prototype.addNodeGeo=function(g,y,z,B){var m=y[mxGraphMlConstants.RECT],h=0,b=0,a=30,c=30;m?(h=m[mxGraphMlConstants.X],b=m[mxGraphMlConstants.Y],a=m[mxGraphMlConstants.WIDTH],c=m[mxGraphMlConstants.HEIGHT]):(h=y[mxGraphMlConstants.X_L]||h,b=y[mxGraphMlConstants.Y_L]||b,a=y[mxGraphMlConstants.WIDTH_L]||a,c=y[mxGraphMlConstants.HEIGHT_L]||c);g=g.geometry;g.x=parseFloat(h)-z;g.y=parseFloat(b)-B;g.width=parseFloat(a);g.height=parseFloat(c)};-mxGraphMlCodec.prototype.importEdge=function(g,y,z,B,m){var h=this.getDirectChildNamedElements(g,mxGraphMlConstants.DATA),b=g.getAttribute(mxGraphMlConstants.ID),a=g.getAttribute(mxGraphMlConstants.EDGE_SOURCE),c=g.getAttribute(mxGraphMlConstants.EDGE_TARGET),d=g.getAttribute(mxGraphMlConstants.EDGE_SOURCE_PORT);g=g.getAttribute(mxGraphMlConstants.EDGE_TARGET_PORT);a=this.nodesMap[a];c=this.nodesMap[c];z=y.insertEdge(z,null,"",a.node,c.node,"graphMLId="+b);b={graphMlID:b};for(var f=0;f<h.length;f++){var k=-this.dataElem2Obj(h[f]),n=k["y:PolyLineEdge"]||k["y:GenericEdge"]||k["y:ArcEdge"]||k["y:BezierEdge"]||k["y:QuadCurveEdge"]||k["y:SplineEdge"];k.key==this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY].key?this.addEdgeGeo(z,k,B,m):k.key==this.edgesKeys[mxGraphMlConstants.EDGE_STYLE].key?this.addEdgeStyle(z,k,b):k.key==this.edgesKeys[mxGraphMlConstants.EDGE_LABELS].key?this.addLabels(z,k,b,y):n&&(this.addEdgeStyle(z,k,b),k=this.addEdgePath(z,n["y:Path"],b,B,m),n["y:EdgeLabel"]&&this.addLabels(z,n["y:EdgeLabel"],-b,y,k),null!=b.shape&&0==b.shape.indexOf("link")&&(b.width=b.strokeWidth,b.strokeWidth=1))}a.ports&&d&&(y=a.ports[d],y.pos&&(b.exitX=y.pos.x,b.exitY=y.pos.y));c.ports&&g&&(y=c.ports[g],y.pos&&(b.entryX=y.pos.x,b.entryY=y.pos.y));z.style=this.styleMap2Str(b);return z};-mxGraphMlCodec.prototype.addEdgeGeo=function(g,y,z,B){if(y=y[mxGraphMlConstants.Y_BEND]){for(var m=[],h=0;h<y.length;h++){var b=y[h][mxGraphMlConstants.LOCATION];b&&(b=b.split(","),m.push(new mxPoint(parseFloat(b[0])-z,parseFloat(b[1])-B)))}g.geometry.points=m}};-mxGraphMlCodec.prototype.addEdgePath=function(g,y,z,B,m){var h=[];if(y){var b=parseFloat(y.sx),a=parseFloat(y.sy),c=parseFloat(y.tx),d=parseFloat(y.ty),f=g.source.geometry;0!=b||0!=a?(z.exitX=(b+f.width/2)/f.width,z.exitY=(a+f.height/2)/f.height,h.push(new mxPoint(f.x+z.exitX*f.width-B,f.y+z.exitY*f.height-m))):h.push(new mxPoint(f.x+f.width/2-B,f.y+f.height/2-m));b=g.target.geometry;0!=c||0!=d?(z.entryX=(c+b.width/2)/b.width,z.entryY=(d+b.height/2)/b.height,z=new mxPoint(b.x+z.entryX*b.width-B,b.y+-z.entryY*b.height-m)):z=new mxPoint(b.x+b.width/2-B,b.y+b.height/2-m);if(y=y["y:Point"]){y instanceof Array||(y=[y]);c=[];for(d=0;d<y.length;d++)b=new mxPoint(parseFloat(y[d].x)-B,parseFloat(y[d].y)-m),c.push(b),h.push(b);g.geometry.points=c}h.push(z)}return h};-mxGraphMlCodec.prototype.addEdgeStyle=function(g,y,z){g=function(a,c){c.dashed=1;switch(a){case "DashDot":a="3 1 1 1";break;case "Dot":a="1 1";break;case "DashDotDot":a="3 1 1 1 1 1";break;case "Dash":a="3 1";break;default:a=a.replace(/0/g,"1")}a&&(0>a.indexOf(" ")&&(a=a+" "+a),c.dashPattern=a)};var B=function(a,c){c.endFill="WHITE"==a||0==a.indexOf("white_")||0==a.indexOf("transparent_")?"0":"1"},m=function(a,c){c.startFill="WHITE"==a||0==a.indexOf("white_")||0==a.indexOf("transparent_")?"0":"1"},-h={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(a,c){"line"!=a&&(c.dashed=1);var d=null;switch(a){case "dashed":d="3 1";break;case "dotted":d="1 1";break;case "dashed_dotted":d="3 2 1 2"}d&&(c.dashPattern=d)},width:"strokeWidth"},"y:Arrows":{source:function(a,c){c.startArrow=mxGraphMlArrowsMap[a]||"classic";m(a,c)},target:function(a,c){c.endArrow=mxGraphMlArrowsMap[a]||"classic";B(a,c)}},"y:BendStyle":{smoothed:{key:"rounded",-mod:"bool"}}},b=mxUtils.clone(h);b.defaults.curved="1";this.mapObject(y,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(a,c){c.rounded=a&&0<parseFloat(a)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:g,"dashStyle.yjs:DashStyle.dashes":g,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"},targetArrow:{key:"endArrow",-mod:"arrow"},"targetArrow.yjs:Arrow":{defaults:{endArrow:"classic",endFill:"1",endSize:"6"},fill:B,scale:{key:"endSize",mod:"scale",scale:5},type:{key:"endArrow",mod:"arrow"}},sourceArrow:{key:"startArrow",mod:"arrow"},"sourceArrow.yjs:Arrow":{defaults:{startArrow:"classic",startFill:"1",startSize:"6"},fill:m,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":h,"y:GenericEdge":h,"y:ArcEdge":b,"y:BezierEdge":b,"y:QuadCurveEdge":b,"y:SplineEdge":b},z)};-mxGraphMlCodec.prototype.addLabels=function(g,y,z,B,m){z=g.getChildCount();var h=y[mxGraphMlConstants.Y_LABEL]||y;y=[];var b=[],a=[];if(h){h instanceof Array||(h=[h]);for(var c=0;c<h.length;c++){var d=h[c],f={},k=d[mxGraphMlConstants.TEXT]||d;k&&(k=k["#text"]);var n=d[mxGraphMlConstants.LAYOUTPARAMETER]||d||{},q=function(K,L){K&&(K=K.toUpperCase());var S=L.fontStyle||0;switch(K){case "ITALIC":S|=2;break;case "BOLD":S|=1;break;case "UNDERLINE":S|=4}L.fontStyle=S};this.mapObject(d,{"Style.yjs:DefaultLabelStyle":{backgroundFill:{key:"labelBackgroundColor",-mod:"color"},"backgroundFill.yjs:SolidColorFill.color":{key:"labelBackgroundColor",mod:"color"},backgroundStroke:{key:"labelBorderColor",mod:"color"},"backgroundStroke.yjs:Stroke.fill":{key:"labelBorderColor",mod:"color"},textFill:{key:"fontColor",mod:"color"},"textFill.yjs:SolidColorFill.color":{key:"fontColor",mod:"color"},textSize:"fontSize",horizontalTextAlignment:"align",verticalTextAlignment:"verticalAlign",wrapping:function(K,L){K&&(L.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",-fontSize:"fontSize",fontStyle:q,fontWeight:q,textDecoration:q}},"Style.y:VoidLabelStyle":function(K,L){L.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:q,underlinedText:function(K,L){var S=L.fontStyle||0;"true"==K&&(S|=4);L.fontStyle=S},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},f);f.VoidLbl||"0"==f.hasText||(y.push(k),b.push(f),a.push(n))}}for(c=-0;c<y.length;c++)if(y[c]&&(!a[c]||!a[c]["bpmn:ParticipantParameter"])){y[c]=mxUtils.htmlEntities(y[c],!1).replace(/\n/g,"<br/>");n=g.geometry;f=new mxCell(y[c],new mxGeometry(0,0,n.width,n.height),"text;html=1;spacing=0;"+this.styleMap2Str(b[c]));f.vertex=!0;g.insert(f,z);h=f.geometry;if(a[c]["y:RatioAnchoredLabelModelParameter"])n=mxUtils.getSizeForString(y[c],b[c].fontSize,b[c].fontFamily),(d=a[c]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(d=d.split(","),h.x=parseFloat(d[0]),h.y=parseFloat(d[1]),-h.width=n.width,h.height=n.height,f.style+=";spacingTop=-4;"):f.style+=";align=center;";else if(a[c]["y:InteriorLabelModel"]){switch(a[c]["y:InteriorLabelModel"]){case "Center":f.style+=";verticalAlign=middle;";break;case "North":h.height=1;break;case "West":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90"}f.style+=";align=center;"}else if(a[c]["y:StretchStripeLabelModel"]||a[c]["y:StripeLabelModelParameter"])switch(a[c]["y:StretchStripeLabelModel"]||a[c]["y:StripeLabelModelParameter"].Position){case "North":h.height=-1;break;case "West":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90;"}else if(a[c]["bpmn:PoolHeaderLabelModel"]){switch(a[c]["bpmn:PoolHeaderLabelModel"]){case "NORTH":h.height=1;break;case "WEST":h.width=n.height,h.height=n.width,h.y=n.height/2-n.width/2,h.x=-h.y,f.style+=";rotation=-90;"}f.style+=";align=center;"}else if(a[c]["y:InteriorStretchLabelModelParameter"])f.style+=";align=center;";else if(a[c]["y:ExteriorLabelModel"])switch(a[c]["y:ExteriorLabelModel"]){case "East":f.style+=-";labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;";break;case "South":f.style+=";labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;";break;case "North":f.style+=";labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;";break;case "West":f.style+=";labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;"}else if(a[c]["y:FreeEdgeLabelModelParameter"]){h.relative=!0;h.adjustIt=!0;n=a[c]["y:FreeEdgeLabelModelParameter"];-d=n.Ratio;q=n.Distance;var t=n.Angle;d&&(h.x=parseFloat(d));q&&(h.y=parseFloat(q));t&&(f.style+=";rotation="+parseFloat(t)*(180/Math.PI));f.style+=";verticalAlign=middle;"}else if(a[c]["y:EdgePathLabelModelParameter"]){h.relative=!0;n=a[c]["y:EdgePathLabelModelParameter"];k=n.SideOfEdge;d=n.SegmentRatio;h.x=d?2*parseFloat(d)-1:0;if(k)switch(k){case "RightOfEdge":h.y=-15;break;case "LeftOfEdge":h.y=15}f.style+=";verticalAlign=middle;"}else if(n=parseFloat(a[c].x),d=parseFloat(a[c].y),a[c].width&&(h.width=-parseFloat(a[c].width)),a[c].height&&(h.height=parseFloat(a[c].height)),g.edge)if(h.relative=!0,h.x=0,h.y=0,f=g.source.geometry.getCenterX()-g.target.geometry.getCenterX(),k=g.source.geometry.getCenterY()-g.target.geometry.getCenterY(),B&&m&&a[c]["y:ModelParameter"]&&a[c]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){n=a[c]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"];t=parseFloat(n.angle);q=parseFloat(n.distance);var A=n.position;d=parseFloat(n.ratio);n=parseFloat(n.segment);var C=-new mxCellState;C.absolutePoints=m;B.view.updateEdgeBounds(C);var I="left"==A?1:-1;if(-1==n&&6.283185307179586==t)h.offset=new mxPoint(1>Math.abs(d)?C.segments[0]*d:d,I*q);else{-1==n&&(n=0);for(var Q=t=0;Q<n;Q++)t+=C.segments[Q];t+=C.segments[n]*d;h.x=t/C.length*2-1;h.y=(("center"==A?0:q)+h.height/2*I*(Math.abs(f)>Math.abs(k)?1:-1))*I}}else isNaN(n)||isNaN(d)||(h.offset=new mxPoint(n+f/2+(0<f?-h.width:h.width),d));else h.x=n||0,h.y=d||0;b[c].rotation&&270==b[c].rotation&&(h.x-=h.height/2)}return{lblTxts:y,-lblStyles:b}};mxGraphMlCodec.prototype.processPage=function(g,y){g=(new mxCodec).encode(g.getModel());g.setAttribute("style","default-style2");g=mxUtils.getXml(g);y='<diagram name="Page '+y+'">'+Graph.compress(g);return y+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(g,y){var z=[];for(g=g.firstChild;null!=g;g=g.nextSibling)null!=g&&1==g.nodeType&&y==g.nodeName&&z.push(g);return z};-mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(g,y){for(g=g.firstChild;null!=g;g=g.nextSibling)if(null!=g&&1==g.nodeType&&y==g.nodeName)return g;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(g){var y=[];for(g=g.firstChild;null!=g;g=g.nextSibling)null!=g&&1==g.nodeType&&y.push(g);return y};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(g){for(g=g.firstChild;null!=g;g=g.nextSibling)if(null!=g&&1==g.nodeType)return g;return null};-var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(g,y){if("string"===typeof g){for(var z=g;20<z.length&&-1<z.indexOf(" ");)z=z.substring(0,z.lastIndexOf(" "));return"true"===y?z:g.substring(z.length)}return""},"orgchartconverters.borderconverter":function(g,y){return"boolean"===typeof g?g?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(g,y){return"string"===typeof g?"string"===typeof y?"#"+g+y:"#"+g:g},"orgchartconverters.intermediateconverter":function(g,-y){return"string"===typeof g&&17<g.length?g.replace(/^(.)(\S*)(.*)/,"$1.$3"):g},"orgchartconverters.overviewconverter":function(g,y){return"string"===typeof g&&0<g.length?g.replace(/^(.)(\S*)(.*)/,"$1.$3"):""}},mxGraphMlArrowsMap={SIMPLE:"open",TRIANGLE:"block",DIAMOND:"diamond",CIRCLE:"oval",CROSS:"cross",SHORT:"classicThin",DEFAULT:"classic",NONE:"none",none:"none",white_delta_bar:"block",delta:"block",standard:"classic",diamond:"diamond",white_diamond:"diamond",white_delta:"block",plain:"open",+mxGraphMlCodec.prototype.addTbl2Rows=function(r,w,x,z,k,t,u,p){x+=t;for(var h=null!=p.isHorz,D=0;D<w.length;D++){var A=D&1,N=new mxCell;N.vertex=!0;var E={shape:"swimlane;collapsible=0;horizontal=0",startSize:k,fillColor:p.secColor||"none",swimlaneLine:h?"0":"1"};0==parseFloat(E.startSize)&&(E.fillColor="none",E.swimlaneLine="0");if(u){var L=A?p.headerColorAlt:p.headerColor;E.swimlaneFillColor=A?p.laneColorAlt:p.laneColor;E.fillColor=L?L:E.swimlaneFillColor}A=parseFloat(w[D].height);L=h&&0==D?t:0;+N.geometry=new mxGeometry(z,x-L,r.geometry.width-z,A+L);x+=A;N.style=this.styleMap2Str(E);r.insert(N)}};+mxGraphMlCodec.prototype.addTbl2Cols=function(r,w,x,z,k,t,u,p){z=k+z;for(var h=null!=p.isHorz,D=0;D<w.length;D++){var A=D&1,N=new mxCell;N.vertex=!0;var E={shape:"swimlane;collapsible=0",startSize:t,fillColor:p.secColor||"none",swimlaneLine:h?"0":"1"};0==parseFloat(E.startSize)&&(E.fillColor="none");if(!u){var L=A?p.headerColorAlt:p.headerColor;E.swimlaneFillColor=A?p.laneColorAlt:p.laneColor;E.fillColor=L?L:E.swimlaneFillColor}A=parseFloat(w[D].width);L=h&&0==D?k:0;N.geometry=new mxGeometry(z-L,+x,A+L,r.geometry.height-x);z+=A;N.style=this.styleMap2Str(E);r.insert(N)}};+mxGraphMlCodec.prototype.addRow=function(r,w,x,z,k,t,u){var p=new mxCell;p.vertex=!0;var h=mxUtils.clone(u);this.mapObject(r,t,h);x?(h.oddFill&&(h.fillColor=h.oddFill),h.oddLaneFill&&(h.swimlaneFillColor=h.oddLaneFill)):(h.evenFill&&(h.fillColor=h.evenFill),h.evenLaneFill&&(h.swimlaneFillColor=h.evenLaneFill));x=parseFloat(h.height);p.geometry=new mxGeometry(k.lx,z,w.geometry.width-k.lx,x);var D=r.Labels;D&&this.addLabels(p,D,h);p.style=this.styleMap2Str(h);w.insert(p);r=r["y:Row"];k.lx=0;h.startSize&&+(k.lx=parseFloat(h.startSize),k.x+=k.lx);w=h=k.x;D=k.lx;var A=0;if(r){r instanceof Array||(r=[r]);for(var N=0;N<r.length;N++)k.x=h,k.lx=D,A=this.addRow(r[N],p,N&1,A,k,t,u),w=Math.max(k.x,w)}k.x=w;x=Math.max(x,A);p.geometry.height=x;return z+=x};+mxGraphMlCodec.prototype.addColumn=function(r,w,x,z,k,t,u){var p=new mxCell;p.vertex=!0;var h=mxUtils.clone(u);this.mapObject(r,t,h);x?(h.oddFill&&(h.fillColor=h.oddFill),h.oddLaneFill&&(h.swimlaneFillColor=h.oddLaneFill)):(h.evenFill&&(h.fillColor=h.evenFill),h.evenLaneFill&&(h.swimlaneFillColor=h.evenLaneFill));x=parseFloat(h.width);p.geometry=new mxGeometry(z,k,x,w.geometry.height-k);var D=r.Labels;D&&this.addLabels(p,D,h);p.style=this.styleMap2Str(h);w.insert(p);r=r["y:Column"];w=0;if(r)for(r instanceof+Array||(r=[r]),h=0;h<r.length;h++)w=this.addColumn(r[h],p,h&1,w,k,t,u);x=Math.max(x,w);p.geometry.width=x;return z+=x};mxGraphMlCodec.prototype.handleFixedRatio=function(r,w){w=w.shape;r=r.geometry;if(w&&r)if(0<w.indexOf(";aspect=fixed"))w=Math.min(r.height,r.width),w==r.height&&(r.x+=(r.width-w)/2),r.height=w,r.width=w;else if(0<w.indexOf(";rotation=90")||0<w.indexOf(";rotation=-90")){w=r.height;var x=r.width;r.height=x;r.width=w;w=(w-x)/2;r.x-=w;r.y+=w}};+mxGraphMlCodec.prototype.addNodeGeo=function(r,w,x,z){var k=w[mxGraphMlConstants.RECT],t=0,u=0,p=30,h=30;k?(t=k[mxGraphMlConstants.X],u=k[mxGraphMlConstants.Y],p=k[mxGraphMlConstants.WIDTH],h=k[mxGraphMlConstants.HEIGHT]):(t=w[mxGraphMlConstants.X_L]||t,u=w[mxGraphMlConstants.Y_L]||u,p=w[mxGraphMlConstants.WIDTH_L]||p,h=w[mxGraphMlConstants.HEIGHT_L]||h);r=r.geometry;r.x=parseFloat(t)-x;r.y=parseFloat(u)-z;r.width=parseFloat(p);r.height=parseFloat(h)};+mxGraphMlCodec.prototype.importEdge=function(r,w,x,z,k){var t=this.getDirectChildNamedElements(r,mxGraphMlConstants.DATA),u=r.getAttribute(mxGraphMlConstants.ID),p=r.getAttribute(mxGraphMlConstants.EDGE_SOURCE),h=r.getAttribute(mxGraphMlConstants.EDGE_TARGET),D=r.getAttribute(mxGraphMlConstants.EDGE_SOURCE_PORT);r=r.getAttribute(mxGraphMlConstants.EDGE_TARGET_PORT);p=this.nodesMap[p];h=this.nodesMap[h];x=w.insertEdge(x,null,"",p.node,h.node,"graphMLId="+u);u={graphMlID:u};for(var A=0;A<t.length;A++){var N=+this.dataElem2Obj(t[A]),E=N["y:PolyLineEdge"]||N["y:GenericEdge"]||N["y:ArcEdge"]||N["y:BezierEdge"]||N["y:QuadCurveEdge"]||N["y:SplineEdge"];N.key==this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY].key?this.addEdgeGeo(x,N,z,k):N.key==this.edgesKeys[mxGraphMlConstants.EDGE_STYLE].key?this.addEdgeStyle(x,N,u):N.key==this.edgesKeys[mxGraphMlConstants.EDGE_LABELS].key?this.addLabels(x,N,u,w):E&&(this.addEdgeStyle(x,N,u),N=this.addEdgePath(x,E["y:Path"],u,z,k),E["y:EdgeLabel"]&&this.addLabels(x,E["y:EdgeLabel"],+u,w,N),null!=u.shape&&0==u.shape.indexOf("link")&&(u.width=u.strokeWidth,u.strokeWidth=1))}p.ports&&D&&(w=p.ports[D],w.pos&&(u.exitX=w.pos.x,u.exitY=w.pos.y));h.ports&&r&&(w=h.ports[r],w.pos&&(u.entryX=w.pos.x,u.entryY=w.pos.y));x.style=this.styleMap2Str(u);return x};+mxGraphMlCodec.prototype.addEdgeGeo=function(r,w,x,z){if(w=w[mxGraphMlConstants.Y_BEND]){for(var k=[],t=0;t<w.length;t++){var u=w[t][mxGraphMlConstants.LOCATION];u&&(u=u.split(","),k.push(new mxPoint(parseFloat(u[0])-x,parseFloat(u[1])-z)))}r.geometry.points=k}};+mxGraphMlCodec.prototype.addEdgePath=function(r,w,x,z,k){var t=[];if(w){var u=parseFloat(w.sx),p=parseFloat(w.sy),h=parseFloat(w.tx),D=parseFloat(w.ty),A=r.source.geometry;0!=u||0!=p?(x.exitX=(u+A.width/2)/A.width,x.exitY=(p+A.height/2)/A.height,t.push(new mxPoint(A.x+x.exitX*A.width-z,A.y+x.exitY*A.height-k))):t.push(new mxPoint(A.x+A.width/2-z,A.y+A.height/2-k));u=r.target.geometry;0!=h||0!=D?(x.entryX=(h+u.width/2)/u.width,x.entryY=(D+u.height/2)/u.height,x=new mxPoint(u.x+x.entryX*u.width-z,u.y++x.entryY*u.height-k)):x=new mxPoint(u.x+u.width/2-z,u.y+u.height/2-k);if(w=w["y:Point"]){w instanceof Array||(w=[w]);h=[];for(D=0;D<w.length;D++)u=new mxPoint(parseFloat(w[D].x)-z,parseFloat(w[D].y)-k),h.push(u),t.push(u);r.geometry.points=h}t.push(x)}return t};+mxGraphMlCodec.prototype.addEdgeStyle=function(r,w,x){r=function(p,h){h.dashed=1;switch(p){case "DashDot":p="3 1 1 1";break;case "Dot":p="1 1";break;case "DashDotDot":p="3 1 1 1 1 1";break;case "Dash":p="3 1";break;default:p=p.replace(/0/g,"1")}p&&(0>p.indexOf(" ")&&(p=p+" "+p),h.dashPattern=p)};var z=function(p,h){h.endFill="WHITE"==p||0==p.indexOf("white_")||0==p.indexOf("transparent_")?"0":"1"},k=function(p,h){h.startFill="WHITE"==p||0==p.indexOf("white_")||0==p.indexOf("transparent_")?"0":"1"},+t={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(p,h){"line"!=p&&(h.dashed=1);var D=null;switch(p){case "dashed":D="3 1";break;case "dotted":D="1 1";break;case "dashed_dotted":D="3 2 1 2"}D&&(h.dashPattern=D)},width:"strokeWidth"},"y:Arrows":{source:function(p,h){h.startArrow=mxGraphMlArrowsMap[p]||"classic";k(p,h)},target:function(p,h){h.endArrow=mxGraphMlArrowsMap[p]||"classic";z(p,h)}},"y:BendStyle":{smoothed:{key:"rounded",+mod:"bool"}}},u=mxUtils.clone(t);u.defaults.curved="1";this.mapObject(w,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(p,h){h.rounded=p&&0<parseFloat(p)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:r,"dashStyle.yjs:DashStyle.dashes":r,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"},targetArrow:{key:"endArrow",+mod:"arrow"},"targetArrow.yjs:Arrow":{defaults:{endArrow:"classic",endFill:"1",endSize:"6"},fill:z,scale:{key:"endSize",mod:"scale",scale:5},type:{key:"endArrow",mod:"arrow"}},sourceArrow:{key:"startArrow",mod:"arrow"},"sourceArrow.yjs:Arrow":{defaults:{startArrow:"classic",startFill:"1",startSize:"6"},fill:k,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":t,"y:GenericEdge":t,"y:ArcEdge":u,"y:BezierEdge":u,"y:QuadCurveEdge":u,"y:SplineEdge":u},x)};+mxGraphMlCodec.prototype.addLabels=function(r,w,x,z,k){x=r.getChildCount();var t=w[mxGraphMlConstants.Y_LABEL]||w;w=[];var u=[],p=[];if(t){t instanceof Array||(t=[t]);for(var h=0;h<t.length;h++){var D=t[h],A={},N=D[mxGraphMlConstants.TEXT]||D;N&&(N=N["#text"]);var E=D[mxGraphMlConstants.LAYOUTPARAMETER]||D||{},L=function(Fa,Ca){Fa&&(Fa=Fa.toUpperCase());var Ga=Ca.fontStyle||0;switch(Fa){case "ITALIC":Ga|=2;break;case "BOLD":Ga|=1;break;case "UNDERLINE":Ga|=4}Ca.fontStyle=Ga};this.mapObject(D,{"Style.yjs:DefaultLabelStyle":{backgroundFill:{key:"labelBackgroundColor",+mod:"color"},"backgroundFill.yjs:SolidColorFill.color":{key:"labelBackgroundColor",mod:"color"},backgroundStroke:{key:"labelBorderColor",mod:"color"},"backgroundStroke.yjs:Stroke.fill":{key:"labelBorderColor",mod:"color"},textFill:{key:"fontColor",mod:"color"},"textFill.yjs:SolidColorFill.color":{key:"fontColor",mod:"color"},textSize:"fontSize",horizontalTextAlignment:"align",verticalTextAlignment:"verticalAlign",wrapping:function(Fa,Ca){Fa&&(Ca.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",+fontSize:"fontSize",fontStyle:L,fontWeight:L,textDecoration:L}},"Style.y:VoidLabelStyle":function(Fa,Ca){Ca.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:L,underlinedText:function(Fa,Ca){var Ga=Ca.fontStyle||0;"true"==Fa&&(Ga|=4);Ca.fontStyle=Ga},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},A);A.VoidLbl||"0"==A.hasText||(w.push(N),u.push(A),p.push(E))}}for(h=+0;h<w.length;h++)if(w[h]&&(!p[h]||!p[h]["bpmn:ParticipantParameter"])){w[h]=mxUtils.htmlEntities(w[h],!1).replace(/\n/g,"<br/>");E=r.geometry;A=new mxCell(w[h],new mxGeometry(0,0,E.width,E.height),"text;html=1;spacing=0;"+this.styleMap2Str(u[h]));A.vertex=!0;r.insert(A,x);t=A.geometry;if(p[h]["y:RatioAnchoredLabelModelParameter"])E=mxUtils.getSizeForString(w[h],u[h].fontSize,u[h].fontFamily),(D=p[h]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(D=D.split(","),t.x=parseFloat(D[0]),t.y=parseFloat(D[1]),+t.width=E.width,t.height=E.height,A.style+=";spacingTop=-4;"):A.style+=";align=center;";else if(p[h]["y:InteriorLabelModel"]){switch(p[h]["y:InteriorLabelModel"]){case "Center":A.style+=";verticalAlign=middle;";break;case "North":t.height=1;break;case "West":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90"}A.style+=";align=center;"}else if(p[h]["y:StretchStripeLabelModel"]||p[h]["y:StripeLabelModelParameter"])switch(p[h]["y:StretchStripeLabelModel"]||p[h]["y:StripeLabelModelParameter"].Position){case "North":t.height=+1;break;case "West":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90;"}else if(p[h]["bpmn:PoolHeaderLabelModel"]){switch(p[h]["bpmn:PoolHeaderLabelModel"]){case "NORTH":t.height=1;break;case "WEST":t.width=E.height,t.height=E.width,t.y=E.height/2-E.width/2,t.x=-t.y,A.style+=";rotation=-90;"}A.style+=";align=center;"}else if(p[h]["y:InteriorStretchLabelModelParameter"])A.style+=";align=center;";else if(p[h]["y:ExteriorLabelModel"])switch(p[h]["y:ExteriorLabelModel"]){case "East":A.style+=+";labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;";break;case "South":A.style+=";labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;";break;case "North":A.style+=";labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;";break;case "West":A.style+=";labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;"}else if(p[h]["y:FreeEdgeLabelModelParameter"]){t.relative=!0;t.adjustIt=!0;E=p[h]["y:FreeEdgeLabelModelParameter"];+D=E.Ratio;L=E.Distance;var X=E.Angle;D&&(t.x=parseFloat(D));L&&(t.y=parseFloat(L));X&&(A.style+=";rotation="+parseFloat(X)*(180/Math.PI));A.style+=";verticalAlign=middle;"}else if(p[h]["y:EdgePathLabelModelParameter"]){t.relative=!0;E=p[h]["y:EdgePathLabelModelParameter"];N=E.SideOfEdge;D=E.SegmentRatio;t.x=D?2*parseFloat(D)-1:0;if(N)switch(N){case "RightOfEdge":t.y=-15;break;case "LeftOfEdge":t.y=15}A.style+=";verticalAlign=middle;"}else if(E=parseFloat(p[h].x),D=parseFloat(p[h].y),p[h].width&&(t.width=+parseFloat(p[h].width)),p[h].height&&(t.height=parseFloat(p[h].height)),r.edge)if(t.relative=!0,t.x=0,t.y=0,A=r.source.geometry.getCenterX()-r.target.geometry.getCenterX(),N=r.source.geometry.getCenterY()-r.target.geometry.getCenterY(),z&&k&&p[h]["y:ModelParameter"]&&p[h]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){E=p[h]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"];X=parseFloat(E.angle);L=parseFloat(E.distance);var Oa=E.position;D=parseFloat(E.ratio);E=parseFloat(E.segment);var xa=+new mxCellState;xa.absolutePoints=k;z.view.updateEdgeBounds(xa);var Ka="left"==Oa?1:-1;if(-1==E&&6.283185307179586==X)t.offset=new mxPoint(1>Math.abs(D)?xa.segments[0]*D:D,Ka*L);else{-1==E&&(E=0);for(var Va=X=0;Va<E;Va++)X+=xa.segments[Va];X+=xa.segments[E]*D;t.x=X/xa.length*2-1;t.y=(("center"==Oa?0:L)+t.height/2*Ka*(Math.abs(A)>Math.abs(N)?1:-1))*Ka}}else isNaN(E)||isNaN(D)||(t.offset=new mxPoint(E+A/2+(0<A?-t.width:t.width),D));else t.x=E||0,t.y=D||0;u[h].rotation&&270==u[h].rotation&&(t.x-=t.height/+2)}return{lblTxts:w,lblStyles:u}};mxGraphMlCodec.prototype.processPage=function(r,w){r=(new mxCodec).encode(r.getModel());r.setAttribute("style","default-style2");r=mxUtils.getXml(r);w='<diagram name="Page '+w+'">'+Graph.compress(r);return w+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(r,w){var x=[];for(r=r.firstChild;null!=r;r=r.nextSibling)null!=r&&1==r.nodeType&&w==r.nodeName&&x.push(r);return x};+mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(r,w){for(r=r.firstChild;null!=r;r=r.nextSibling)if(null!=r&&1==r.nodeType&&w==r.nodeName)return r;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(r){var w=[];for(r=r.firstChild;null!=r;r=r.nextSibling)null!=r&&1==r.nodeType&&w.push(r);return w};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(r){for(r=r.firstChild;null!=r;r=r.nextSibling)if(null!=r&&1==r.nodeType)return r;return null};+var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(r,w){if("string"===typeof r){for(var x=r;20<x.length&&-1<x.indexOf(" ");)x=x.substring(0,x.lastIndexOf(" "));return"true"===w?x:r.substring(x.length)}return""},"orgchartconverters.borderconverter":function(r,w){return"boolean"===typeof r?r?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(r,w){return"string"===typeof r?"string"===typeof w?"#"+r+w:"#"+r:r},"orgchartconverters.intermediateconverter":function(r,+w){return"string"===typeof r&&17<r.length?r.replace(/^(.)(\S*)(.*)/,"$1.$3"):r},"orgchartconverters.overviewconverter":function(r,w){return"string"===typeof r&&0<r.length?r.replace(/^(.)(\S*)(.*)/,"$1.$3"):""}},mxGraphMlArrowsMap={SIMPLE:"open",TRIANGLE:"block",DIAMOND:"diamond",CIRCLE:"oval",CROSS:"cross",SHORT:"classicThin",DEFAULT:"classic",NONE:"none",none:"none",white_delta_bar:"block",delta:"block",standard:"classic",diamond:"diamond",white_diamond:"diamond",white_delta:"block",plain:"open",skewed_dash:"dash",concave:"openThin",transparent_circle:"oval",crows_foot_many:"ERmany",crows_foot_one:"ERone",crows_foot_one_optional:"ERzeroToOne",crows_foot_one_mandatory:"ERmandOne",crows_foot_many_optional:"ERzeroToMany",crows_foot_many_mandatory:"ERoneToMany",white_circle:"oval",t_shape:"ERone","short":"classicThin",convex:"",cross:"cross"},mxGraphMlShapesMap={star5:"mxgraph.basic.star;flipV=1",star6:"mxgraph.basic.6_point_star",star8:"mxgraph.basic.8_point_star",sheared_rectangle:"parallelogram",sheared_rectangle2:"parallelogram;flipH=1",hexagon:"hexagon",octagon:"mxgraph.basic.octagon",ellipse:"ellipse",round_rectangle:"rect;rounded=1;arcsize=30",diamond:"rhombus",fat_arrow:"step;perimeter=stepPerimeter",fat_arrow2:"step;perimeter=stepPerimeter;flipH=1",trapez:"trapezoid;perimeter=trapezoidPerimeter;flipV=1",trapez2:"trapezoid;perimeter=trapezoidPerimeter",triangle:"triangle",triangle2:"triangle",rectangle:"rect",rectangle3d:"",roundrectangle:"rect;rounded=1;arcsize=30",fatarrow:"step;perimeter=stepPerimeter",fatarrow2:"step;perimeter=stepPerimeter;flipH=1",parallelogram:"parallelogram",parallelogram2:"parallelogram;flipH=1",trapezoid2:"trapezoid;perimeter=trapezoidPerimeter;flipV=1",trapezoid:"trapezoid;perimeter=trapezoidPerimeter",bevelnode:"rect;glass=1;",bevelnodewithshadow:"rect;glass=1;shadow=1",bevelnode2:"rect;glass=1;rounded=1;arcsize=30",bevelnode3:"rect;glass=1;rounded=1;arcsize=30;shadow=1",shinyplatenode:"rect;glass=1",shinyplatenodewithshadow:"rect;glass=1;shadow=1",shinyplatenode2:"rect;glass=1;rounded=1;arcsize=30",@@ -16060,7 +15503,7 @@ artifact_type_request_message:"message",connection_type_sequence_flow:"",connectHYPEREDGE:"hyperedge",PORT:"port",ENDPOINT:"endpoint",KEY:"key",DATA:"data",ALL:"all",EDGE_SOURCE:"source",EDGE_SOURCE_PORT:"sourceport",EDGE_TARGET:"target",EDGE_TARGET_PORT:"targetport",EDGE_DIRECTED:"directed",EDGE_UNDIRECTED:"undirected",EDGE_DEFAULT:"edgedefault",PORT_NAME:"name",HEIGHT:"Height",WIDTH:"Width",X:"X",Y:"Y",HEIGHT_L:"height",WIDTH_L:"width",X_L:"x",Y_L:"y",JGRAPH:"jGraph:",GEOMETRY:"y:Geometry",FILL:"Fill",SHAPENODE:"y:ShapeNode",SHAPEEDGE:"ShapeEdge",JGRAPH_URL:"http://www.jgraph.com/",KEY_NODE_ID:"d0",KEY_NODE_NAME:"nodeData",KEY_EDGE_ID:"d1",KEY_EDGE_NAME:"edgeData",STYLE:"Style",SHAPE:"Shape",TYPE:"type",LABEL:"label",TEXT:"text",PROPERTIES:"properties",SOURCETARGET:"SourceTarget",RECT:"y:RectD",NODE_LABELS:"NodeLabels",NODE_LABEL:"y:NodeLabel",NODE_GEOMETRY:"NodeGeometry",USER_TAGS:"UserTags",NODE_STYLE:"NodeStyle",NODE_GRAPHICS:"nodegraphics",NODE_VIEW_STATE:"NodeViewState",EDGE_LABELS:"EdgeLabels",EDGE_GEOMETRY:"EdgeGeometry",EDGE_STYLE:"EdgeStyle",EDGE_VIEW_STATE:"EdgeViewState",PORT_LOCATION_PARAMETER:"PortLocationParameter",PORT_STYLE:"PortStyle",PORT_VIEW_STATE:"PortViewState",SHARED_DATA:"SharedData",Y_SHARED_DATA:"y:SharedData",X_KEY:"x:Key",GRAPHML_REFERENCE:"y:GraphMLReference",RESOURCE_KEY:"ResourceKey",Y_RESOURCES:"y:Resources",Y_RESOURCE:"y:Resource",REFID:"refid",X_LIST:"x:List",X_STATIC:"x:Static",Y_BEND:"y:Bend",LOCATION:"Location",Y_LABEL:"y:Label",LAYOUTPARAMETER:"LayoutParameter",YJS_DEFAULTLABELSTYLE:"yjs:DefaultLabelStyle",MEMBER:"Member"};-EditorUi.prototype.doImportGraphML=function(g,y,z){(new mxGraphMlCodec).decode(g,y,z)};/*!+EditorUi.prototype.doImportGraphML=function(r,w,x){(new mxGraphMlCodec).decode(r,w,x)};/*!JSZip v3.10.0 - A JavaScript class for generating and reading zip files<http://stuartk.com/jszip>diff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.jsindex 10d39b706..f3a8c62ba 100644--- a/src/main/webapp/js/viewer-static.min.js+++ b/src/main/webapp/js/viewer-static.min.js@@ -30,7 +30,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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||"mxgraph";-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.1.0",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.1.1",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&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:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().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:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||@@ -223,10 +223,10 @@ mxForm.prototype.addCombo=function(a,b,c){var d=document.createElement("select")mxForm.prototype.addField=function(a,b){var c=document.createElement("tr"),d=document.createElement("td");mxUtils.write(d,a);c.appendChild(d);d=document.createElement("td");d.appendChild(b);c.appendChild(d);this.body.appendChild(c);return b};function mxImage(a,b,c,d,e){this.src=a;this.width=null!=b?b:this.width;this.height=null!=c?c:this.height;this.x=null!=d?d:this.x;this.y=null!=e?e:this.y}mxImage.prototype.src=null;mxImage.prototype.width=0;mxImage.prototype.height=0;mxImage.prototype.x=0;mxImage.prototype.y=0;function mxDivResizer(a,b){"div"==a.nodeName.toLowerCase()&&(null==b&&(b=window),this.div=a,a=mxUtils.getCurrentStyle(a),null!=a&&(this.resizeWidth="auto"==a.width,this.resizeHeight="auto"==a.height),mxEvent.addListener(b,"resize",mxUtils.bind(this,function(c){this.handlingResize||(this.handlingResize=!0,this.resize(),this.handlingResize=!1)})),this.resize())}mxDivResizer.prototype.resizeWidth=!0;mxDivResizer.prototype.resizeHeight=!0;mxDivResizer.prototype.handlingResize=!1;mxDivResizer.prototype.resize=function(){var a=this.getDocumentWidth(),b=this.getDocumentHeight(),c=parseInt(this.div.style.left),d=parseInt(this.div.style.right),e=parseInt(this.div.style.top),f=parseInt(this.div.style.bottom);this.resizeWidth&&!isNaN(c)&&!isNaN(d)&&0<=c&&0<=d&&0<a-d-c&&(this.div.style.width=a-d-c+"px");this.resizeHeight&&!isNaN(e)&&!isNaN(f)&&0<=e&&0<=f&&0<b-e-f&&(this.div.style.height=b-e-f+"px")};mxDivResizer.prototype.getDocumentWidth=function(){return document.body.clientWidth};-mxDivResizer.prototype.getDocumentHeight=function(){return document.body.clientHeight};function mxDragSource(a,b){this.element=a;this.dropHandler=b;mxEvent.addGestureListeners(a,mxUtils.bind(this,function(c){this.mouseDown(c)}));mxEvent.addListener(a,"dragstart",function(c){mxEvent.consume(c)});this.eventConsumer=function(c,d){c=d.getProperty("eventName");d=d.getProperty("event");c!=mxEvent.MOUSE_DOWN&&d.consume()}}mxDragSource.prototype.element=null;mxDragSource.prototype.dropHandler=null;-mxDragSource.prototype.dragOffset=null;mxDragSource.prototype.dragElement=null;mxDragSource.prototype.previewElement=null;mxDragSource.prototype.previewOffset=null;mxDragSource.prototype.enabled=!0;mxDragSource.prototype.currentGraph=null;mxDragSource.prototype.currentDropTarget=null;mxDragSource.prototype.currentPoint=null;mxDragSource.prototype.currentGuide=null;mxDragSource.prototype.currentHighlight=null;mxDragSource.prototype.autoscroll=!0;mxDragSource.prototype.guidesEnabled=!0;-mxDragSource.prototype.gridEnabled=!0;mxDragSource.prototype.highlightDropTargets=!0;mxDragSource.prototype.dragElementZIndex=100;mxDragSource.prototype.dragElementOpacity=70;mxDragSource.prototype.checkEventSource=!0;mxDragSource.prototype.isEnabled=function(){return this.enabled};mxDragSource.prototype.setEnabled=function(a){this.enabled=a};mxDragSource.prototype.isGuidesEnabled=function(){return this.guidesEnabled};mxDragSource.prototype.setGuidesEnabled=function(a){this.guidesEnabled=a};-mxDragSource.prototype.isGridEnabled=function(){return this.gridEnabled};mxDragSource.prototype.setGridEnabled=function(a){this.gridEnabled=a};mxDragSource.prototype.getGraphForEvent=function(a){return null};mxDragSource.prototype.getDropTarget=function(a,b,c,d){return a.getCellAt(b,c)};mxDragSource.prototype.createDragElement=function(a){return this.element.cloneNode(!0)};mxDragSource.prototype.createPreviewElement=function(a){return null};+mxDivResizer.prototype.getDocumentHeight=function(){return document.body.clientHeight};function mxDragSource(a,b){this.element=a;this.dropHandler=b;mxEvent.addGestureListeners(a,mxUtils.bind(this,function(c){this.mouseDown(c);mxEvent.consume(c)}));mxEvent.addListener(a,"dragstart",function(c){mxEvent.consume(c)});this.eventConsumer=function(c,d){c=d.getProperty("eventName");d=d.getProperty("event");c!=mxEvent.MOUSE_DOWN&&d.consume()}}mxDragSource.prototype.element=null;+mxDragSource.prototype.dropHandler=null;mxDragSource.prototype.dragOffset=null;mxDragSource.prototype.dragElement=null;mxDragSource.prototype.previewElement=null;mxDragSource.prototype.previewOffset=null;mxDragSource.prototype.enabled=!0;mxDragSource.prototype.currentGraph=null;mxDragSource.prototype.currentDropTarget=null;mxDragSource.prototype.currentPoint=null;mxDragSource.prototype.currentGuide=null;mxDragSource.prototype.currentHighlight=null;mxDragSource.prototype.autoscroll=!0;+mxDragSource.prototype.guidesEnabled=!0;mxDragSource.prototype.gridEnabled=!0;mxDragSource.prototype.highlightDropTargets=!0;mxDragSource.prototype.dragElementZIndex=100;mxDragSource.prototype.dragElementOpacity=70;mxDragSource.prototype.checkEventSource=!0;mxDragSource.prototype.isEnabled=function(){return this.enabled};mxDragSource.prototype.setEnabled=function(a){this.enabled=a};mxDragSource.prototype.isGuidesEnabled=function(){return this.guidesEnabled};+mxDragSource.prototype.setGuidesEnabled=function(a){this.guidesEnabled=a};mxDragSource.prototype.isGridEnabled=function(){return this.gridEnabled};mxDragSource.prototype.setGridEnabled=function(a){this.gridEnabled=a};mxDragSource.prototype.getGraphForEvent=function(a){return null};mxDragSource.prototype.getDropTarget=function(a,b,c,d){return a.getCellAt(b,c)};mxDragSource.prototype.createDragElement=function(a){return this.element.cloneNode(!0)};mxDragSource.prototype.createPreviewElement=function(a){return null};mxDragSource.prototype.isActive=function(){return null!=this.mouseMoveHandler};mxDragSource.prototype.reset=function(){null!=this.currentGraph&&(this.dragExit(this.currentGraph),this.currentGraph=null);this.removeDragElement();this.removeListeners();this.stopDrag()};mxDragSource.prototype.mouseDown=function(a){this.enabled&&!mxEvent.isConsumed(a)&&null==this.mouseMoveHandler&&(this.startDrag(a),this.mouseMoveHandler=mxUtils.bind(this,this.mouseMove),this.mouseUpHandler=mxUtils.bind(this,this.mouseUp),mxEvent.addGestureListeners(document,null,this.mouseMoveHandler,this.mouseUpHandler),mxClient.IS_TOUCH&&!mxEvent.isMouseEvent(a)&&(this.eventSource=mxEvent.getSource(a),mxEvent.addGestureListeners(this.eventSource,null,this.mouseMoveHandler,this.mouseUpHandler)))};mxDragSource.prototype.startDrag=function(a){this.dragElement=this.createDragElement(a);this.dragElement.style.position="absolute";this.dragElement.style.zIndex=this.dragElementZIndex;mxUtils.setOpacity(this.dragElement,this.dragElementOpacity);this.checkEventSource&&mxClient.IS_SVG&&(this.dragElement.style.pointerEvents="none")};mxDragSource.prototype.stopDrag=function(){this.removeDragElement()};@@ -494,7 +494,7 @@ mxStencil.prototype.evaluateTextAttribute=function(a,b,c){b=this.evaluateAttribumxStencil.prototype.drawShape=function(a,b,c,d,e,f,g){var k=a.states.slice(),l=mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,null);l=this.computeAspect(b.style,c,d,e,f,l);var m=Math.min(l.width,l.height);m="inherit"==this.strokewidth?Number(mxUtils.getNumber(b.style,mxConstants.STYLE_STROKEWIDTH,1)):Number(this.strokewidth)*m;a.setStrokeWidth(m);null!=b.style&&"1"==mxUtils.getValue(b.style,mxConstants.STYLE_POINTER_EVENTS,"0")&&(a.setStrokeColor(mxConstants.NONE),a.rect(c,d,e,f),a.stroke(),a.setStrokeColor(b.stroke));this.drawChildren(a,b,c,d,e,f,this.bgNode,l,!1,!0,g);this.drawChildren(a,b,c,d,e,f,this.fgNode,l,!0,!b.outline||null==b.style||0==mxUtils.getValue(b.style,mxConstants.STYLE_BACKGROUND_OUTLINE,0),g);a.states.length!=k.length&&(a.states=k)};mxStencil.prototype.drawChildren=function(a,b,c,d,e,f,g,k,l,m,n){if(null!=g&&0<e&&0<f)for(c=g.firstChild;null!=c;)c.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,c,k,l,m,n),c=c.nextSibling};mxStencil.prototype.computeAspect=function(a,b,c,d,e,f){a=b;b=d/this.w0;var g=e/this.h0;if(f=f==mxConstants.DIRECTION_NORTH||f==mxConstants.DIRECTION_SOUTH){g=d/this.h0;b=e/this.w0;var k=(d-e)/2;a+=k;c-=k}"fixed"==this.aspect&&(b=g=Math.min(b,g),f?(a+=(e-this.w0*b)/2,c+=(d-this.h0*g)/2):(a+=(d-this.w0*b)/2,c+=(e-this.h0*g)/2));return new mxRectangle(a,c,b,g)};-mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style&&(d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"));return d};+mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style?d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"):null==b.style||mxUtils.isValidColor(d)||(a=mxUtils.getValue(b.style,d,mxConstants.NONE),"default"==a&&(a="fillcolor"==c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor),d=a);return d};mxStencil.prototype.drawNode=function(a,b,c,d,e,f,g){var k=c.nodeName,l=d.x,m=d.y,n=d.width,p=d.height,q=Math.min(n,p);if("save"==k)a.save();else if("restore"==k)a.restore();else if(f){if("path"==k){a.begin();q=!0;if("1"==c.getAttribute("rounded")){q=!1;for(var r=Number(c.getAttribute("arcSize")),t=0,u=[],x=c.firstChild;null!=x;){if(x.nodeType==mxConstants.NODETYPE_ELEMENT){var y=x.nodeName;if("move"==y||"line"==y)"move"!=y&&0!=u.length||u.push([]),u[u.length-1].push(new mxPoint(l+Number(x.getAttribute("x"))*n,m+Number(x.getAttribute("y"))*p)),t++;else{q=!0;break}}x=x.nextSibling}if(!q&&0<t)for(n=0;n<u.length;n++)p=!1,m=u[n][0],l=u[n][u[n].length-1],m.x==l.x&&m.y==l.y&&(u[n].pop(),p=!0),this.addPoints(a,u[n],!0,r,p);else q=!0}if(q)for(x=c.firstChild;null!=x;)x.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,x,d,e,f,g),x=x.nextSibling}else if("close"==k)a.close();else if("move"==k)a.moveTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("line"==k)a.lineTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("quad"==k)a.quadTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p);else if("curve"==k)a.curveTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p,l+Number(c.getAttribute("x3"))*n,m+Number(c.getAttribute("y3"))*p);else if("arc"==k)a.arcTo(Number(c.getAttribute("rx"))*n,Number(c.getAttribute("ry"))*@@ -1667,9 +1667,9 @@ l,d.height+=2*d.height*l),null==k?k=d:(k=mxRectangle.fromRectangle(k),k.interseck.y+k.height&&(this.unscaledBounds.height-=this.unscaledBounds.y+this.unscaledBounds.height-k.y-k.height)));d=this.bounds;this.bounds=new mxRectangle((null!=this.parentState?this.parentState.x:e.x*f)+this.unscaledBounds.x*f,(null!=this.parentState?this.parentState.y:e.y*f)+this.unscaledBounds.y*f,this.unscaledBounds.width*f,this.unscaledBounds.height*f);g.relative&&null!=this.parentState&&(this.bounds.x+=this.state.x-this.parentState.x,this.bounds.y+=this.state.y-this.parentState.y);g=Math.cos(c);k=Math.sin(c);c=new mxPoint(this.bounds.getCenterX(),this.bounds.getCenterY());l=c.x-b.x;m=c.y-b.y;b=g*l-k*m-l;c=k*l+g*m-m;l=this.bounds.x-this.state.x;m=this.bounds.y-this.state.y;e=g*l-k*m;g=k*l+g*m;this.bounds.x+=b;this.bounds.y+=c;this.unscaledBounds.x=this.roundLength(this.unscaledBounds.x+b/f);this.unscaledBounds.y=this.roundLength(this.unscaledBounds.y+c/f);this.unscaledBounds.width=this.roundLength(this.unscaledBounds.width);this.unscaledBounds.height=this.roundLength(this.unscaledBounds.height);this.graph.isCellCollapsed(this.state.cell)||0==b&&0==c?this.childOffsetY=this.childOffsetX=0:(this.childOffsetX=this.state.x-this.bounds.x+e,this.childOffsetY=this.state.y-this.bounds.y+g);d.equals(this.bounds)||(this.livePreviewActive&&this.updateLivePreview(a),null!=this.preview?this.drawPreview():this.updateParentHighlight())};-mxVertexHandler.prototype.updateLivePreview=function(a){var b=this.graph.view.scale,c=this.graph.view.translate;a=this.state.clone();this.state.x=this.bounds.x;this.state.y=this.bounds.y;this.state.origin=new mxPoint(this.state.x/b-c.x,this.state.y/b-c.y);this.state.width=this.bounds.width;this.state.height=this.bounds.height;b=this.state.absoluteOffset;new mxPoint(b.x,b.y);this.state.absoluteOffset.x=0;this.state.absoluteOffset.y=0;b=this.graph.getCellGeometry(this.state.cell);null!=b&&(c=b.offset||-this.EMPTY_POINT,null==c||b.relative||(this.state.absoluteOffset.x=this.state.view.scale*c.x,this.state.absoluteOffset.y=this.state.view.scale*c.y),this.state.view.updateVertexLabelOffset(this.state));this.state.view.graph.cellRenderer.redraw(this.state,!0);this.state.view.invalidate(this.state.cell);this.state.invalid=!1;this.state.view.validate();this.redrawHandles();this.movePreviewToFront&&this.moveToFront();null!=this.state.control&&null!=this.state.control.node&&(this.state.control.node.style.visibility=-"hidden");this.state.setState(a)};+mxVertexHandler.prototype.updateLivePreview=function(a){a=this.graph.view.scale;var b=this.graph.view.translate,c=this.state.clone();this.state.x=this.bounds.x;this.state.y=this.bounds.y;this.state.origin=new mxPoint(this.state.x/a-b.x,this.state.y/a-b.y);this.state.width=this.bounds.width;this.state.height=this.bounds.height;b=this.state.absoluteOffset;new mxPoint(b.x,b.y);this.state.absoluteOffset.x=0;this.state.absoluteOffset.y=0;b=this.graph.getCellGeometry(this.state.cell);if(null!=b){var d=+b.offset||this.EMPTY_POINT;null==d||b.relative||(this.state.absoluteOffset.x=this.state.view.scale*d.x,this.state.absoluteOffset.y=this.state.view.scale*d.y);this.state.view.updateVertexLabelOffset(this.state)}b=this.state.cell.geometry.width;d=this.state.cell.geometry.height;this.state.cell.geometry.width=this.roundLength(this.bounds.width/a);this.state.cell.geometry.height=this.roundLength(this.bounds.height/a);this.state.view.graph.cellRenderer.redraw(this.state,!0);this.state.cell.geometry.width=+b;this.state.cell.geometry.height=d;this.state.view.invalidate(this.state.cell);this.state.invalid=!1;this.state.view.validate();this.redrawHandles();this.movePreviewToFront&&this.moveToFront();null!=this.state.control&&null!=this.state.control.node&&(this.state.control.node.style.visibility="hidden");this.state.setState(c)};mxVertexHandler.prototype.moveToFront=function(){if(null!=this.state.text&&null!=this.state.text.node&&null!=this.state.text.node.nextSibling||null!=this.state.shape&&null!=this.state.shape.node&&null!=this.state.shape.node.nextSibling&&(null==this.state.text||this.state.shape.node.nextSibling!=this.state.text.node))null!=this.state.shape&&null!=this.state.shape.node&&this.state.shape.node.parentNode.appendChild(this.state.shape.node),null!=this.state.text&&null!=this.state.text.node&&this.state.text.node.parentNode.appendChild(this.state.text.node)};mxVertexHandler.prototype.mouseUp=function(a,b){if(null!=this.index&&null!=this.state){var c=new mxPoint(b.getGraphX(),b.getGraphY());a=this.index;this.index=null;null==this.ghostPreview&&this.state.view.invalidate(this.state.cell,!1,!1);this.graph.getModel().beginUpdate();try{if(a<=mxEvent.CUSTOM_HANDLE){if(null!=this.customHandles&&null!=this.customHandles[mxEvent.CUSTOM_HANDLE-a]){var d=this.state.view.graph.getCellStyle(this.state.cell);this.customHandles[mxEvent.CUSTOM_HANDLE-a].active=!1;this.customHandles[mxEvent.CUSTOM_HANDLE-a].execute(b);null!=this.customHandles&&null!=this.customHandles[mxEvent.CUSTOM_HANDLE-a]&&(this.state.style=d,this.customHandles[mxEvent.CUSTOM_HANDLE-a].positionChanged())}}else if(a==mxEvent.ROTATION_HANDLE)if(null!=this.currentAlpha){var e=this.currentAlpha-(this.state.style[mxConstants.STYLE_ROTATION]||0);0!=e&&this.rotateCell(this.state.cell,e)}else this.rotateClick();else{var f=this.graph.isGridEnabledEvent(b.getEvent()),g=mxUtils.toRadians(this.state.style[mxConstants.STYLE_ROTATION]||"0"),@@ -2024,7 +2024,7 @@ e.style.width="100%",f.appendChild(e));null!=B&&c.appendChild(B);row=document.crb.editor.cancelFirst&&row.appendChild(f);mxEvent.addListener(t,"keypress",function(C){13==C.keyCode&&z.click()});row.appendChild(z);b.editor.cancelFirst||row.appendChild(f);c.appendChild(row);Q.appendChild(c);this.container=Q};FilenameDialog.filenameHelpLink=null;FilenameDialog.createFileTypes=function(b,e,g){var m=document.createElement("select");for(b=0;b<g.length;b++){var u=document.createElement("option");u.setAttribute("value",b);mxUtils.write(u,mxResources.get(g[b].description)+" (."+g[b].extension+")");m.appendChild(u)}mxEvent.addListener(m,"change",function(p){p=g[m.value].extension;var B=e.value.lastIndexOf(".drawio.");B=0<B?B:e.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);e.value=0<B?e.value.substring(0,B+1)+p:e.value+"."+p;"createEvent"indocument?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),e.dispatchEvent(p)):e.fireEvent("onchange")});b=function(p){p=e.value.toLowerCase();for(var B=0,H=0;H<g.length;H++){var S=g[H].extension,G=null;"drawio"!=S&&(G=S,S=".drawio."+S);if(p.substring(p.length-S.length-1)=="."+S||null!=G&&p.substring(p.length-G.length-1)=="."+G){B=H;break}}m.value=B};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};-var WrapperWindow=function(b,e,g,m,u,p,B){var H=b.createSidebarContainer();B(H);this.window=new mxWindow(e,H,g,m,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(S){null==S&&(S=window.event);return null!=S&&b.isSelectionAllowed(S)}))};+var WrapperWindow=function(b,e,g,m,u,p,B){var H=b.createSidebarContainer();B(H);this.window=new mxWindow(e,H,g,m,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0)};(function(){mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph;if(null!=B.container&&!B.transparentBackground){if(B.pageVisible){var H=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var S=B.container.firstChild;null!=S&&S.nodeType!=mxConstants.NODETYPE_ELEMENT;)S=S.nextSibling;null!=S&&(this.backgroundPageShape=this.createBackgroundPageShape(H),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,this.backgroundPageShape.init(B.container),S.style.position="absolute",B.container.insertBefore(this.backgroundPageShape.node,S),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(G){B.dblClick(G)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){null!=B.tooltipHandler&&B.tooltipHandler.isHideOnHover()&&B.tooltipHandler.hide();B.isMouseDown&&!mxEvent.isConsumed(G)&&B.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(G))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=H,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};@@ -3479,7 +3479,7 @@ function(){try{k.hideDialog(),U(!1)}catch(Fa){k.handleError(Fa)}}),fa.className=arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(k=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var ma=document.createElement("canvas"),Z=new Image;Z.onload=function(){try{ma.getContext("2d").drawImage(Z,0,0);var k=ma.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(A){}};Z.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(k){}Editor.prototype.useCanvasForExport=!1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){m.previousColor=m.color;m.previousImage=m.image;m.previousFormat=m.format;m.previousAdaptiveColors=m.adaptiveColors;null!=m.foldingEnabled&&(m.foldingEnabled=!m.foldingEnabled);null!=m.mathEnabled&&(m.mathEnabled=!m.mathEnabled);null!=m.shadowVisible&&(m.shadowVisible=!m.shadowVisible);return m};mxCodecRegistry.register(b)})();-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.1.0";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.1.1";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};@@ -4194,7 +4194,7 @@ mxEvent.consume(fa);else if("geMenuItem"==mxEvent.getSource(fa).className||mxEvefunction(sa,qa,wa){fa.innerText="";mxUtils.write(fa,Math.round(100*F.editor.graph.view.scale*(null!=wa?wa:1))+"%")});F.editor.graph.view.addListener(mxEvent.EVENT_SCALE,pa);F.editor.addListener("resetGraphView",pa);F.editor.addListener("pageSelected",pa);F.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(sa,qa){pa(sa,qa,qa.getProperty("factor"))}))})(V);var ba=F.setGraphEnabled;F.setGraphEnabled=function(){ba.apply(this,arguments);null!=this.tabContainer&&(V.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}C.appendChild(K);C.appendChild(F.diagramContainer);z.appendChild(C);F.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);C.appendChild(F.tabContainer);t();F.addListener("lockedChanged",t);mxEvent.addListener(window,"resize",function(){t();null!=F.sidebarWindow&&F.sidebarWindow.window.fit();null!=F.formatWindow&&F.formatWindow.window.fit();null!=F.actions.outlineWindow&&F.actions.outlineWindow.window.fit();null!=F.actions.layersWindow&&F.actions.layersWindow.window.fit();null!=F.menus.chatWindow&&F.menus.chatWindow.window.fit();null!=F.menus.tagsWindow&&F.menus.tagsWindow.window.fit();null!=F.menus.findWindow&&F.menus.findWindow.window.fit();null!=F.menus.findReplaceWindow&&F.menus.findReplaceWindow.window.fit()})}}};-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,e,g,m,u,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=u;this.isResolved=p;this.user=B;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,u){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,u){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=u};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save As\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,e,g,m,u,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=u;this.isResolved=p;this.user=B;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,u){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,u){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=u};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save As\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,e,g){this.init(b,e,g)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;GraphViewer.prototype.darkMode=null;GraphViewer.prototype.init=function(b,e,g){GraphViewer.initCss();this.graphConfig=null!=g?g:{};this.autoFit=null!=this.graphConfig["auto-fit"]?this.graphConfig["auto-fit"]:this.autoFit;this.autoCrop=null!=this.graphConfig["auto-crop"]?this.graphConfig["auto-crop"]:this.autoCrop;this.autoOrigin=null!=this.graphConfig["auto-origin"]?this.graphConfig["auto-origin"]:this.autoOrigin;this.allowZoomOut=null!=this.graphConfig["allow-zoom-out"]?this.graphConfig["allow-zoom-out"]:this.allowZoomOut;this.allowZoomIn=diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.jsindex ba0a4f324..976a93801 100644--- a/src/main/webapp/js/viewer.min.js+++ b/src/main/webapp/js/viewer.min.js@@ -30,7 +30,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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||"mxgraph";-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.1.0",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.1.1",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&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:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().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:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||@@ -223,10 +223,10 @@ mxForm.prototype.addCombo=function(a,b,c){var d=document.createElement("select")mxForm.prototype.addField=function(a,b){var c=document.createElement("tr"),d=document.createElement("td");mxUtils.write(d,a);c.appendChild(d);d=document.createElement("td");d.appendChild(b);c.appendChild(d);this.body.appendChild(c);return b};function mxImage(a,b,c,d,e){this.src=a;this.width=null!=b?b:this.width;this.height=null!=c?c:this.height;this.x=null!=d?d:this.x;this.y=null!=e?e:this.y}mxImage.prototype.src=null;mxImage.prototype.width=0;mxImage.prototype.height=0;mxImage.prototype.x=0;mxImage.prototype.y=0;function mxDivResizer(a,b){"div"==a.nodeName.toLowerCase()&&(null==b&&(b=window),this.div=a,a=mxUtils.getCurrentStyle(a),null!=a&&(this.resizeWidth="auto"==a.width,this.resizeHeight="auto"==a.height),mxEvent.addListener(b,"resize",mxUtils.bind(this,function(c){this.handlingResize||(this.handlingResize=!0,this.resize(),this.handlingResize=!1)})),this.resize())}mxDivResizer.prototype.resizeWidth=!0;mxDivResizer.prototype.resizeHeight=!0;mxDivResizer.prototype.handlingResize=!1;mxDivResizer.prototype.resize=function(){var a=this.getDocumentWidth(),b=this.getDocumentHeight(),c=parseInt(this.div.style.left),d=parseInt(this.div.style.right),e=parseInt(this.div.style.top),f=parseInt(this.div.style.bottom);this.resizeWidth&&!isNaN(c)&&!isNaN(d)&&0<=c&&0<=d&&0<a-d-c&&(this.div.style.width=a-d-c+"px");this.resizeHeight&&!isNaN(e)&&!isNaN(f)&&0<=e&&0<=f&&0<b-e-f&&(this.div.style.height=b-e-f+"px")};mxDivResizer.prototype.getDocumentWidth=function(){return document.body.clientWidth};-mxDivResizer.prototype.getDocumentHeight=function(){return document.body.clientHeight};function mxDragSource(a,b){this.element=a;this.dropHandler=b;mxEvent.addGestureListeners(a,mxUtils.bind(this,function(c){this.mouseDown(c)}));mxEvent.addListener(a,"dragstart",function(c){mxEvent.consume(c)});this.eventConsumer=function(c,d){c=d.getProperty("eventName");d=d.getProperty("event");c!=mxEvent.MOUSE_DOWN&&d.consume()}}mxDragSource.prototype.element=null;mxDragSource.prototype.dropHandler=null;-mxDragSource.prototype.dragOffset=null;mxDragSource.prototype.dragElement=null;mxDragSource.prototype.previewElement=null;mxDragSource.prototype.previewOffset=null;mxDragSource.prototype.enabled=!0;mxDragSource.prototype.currentGraph=null;mxDragSource.prototype.currentDropTarget=null;mxDragSource.prototype.currentPoint=null;mxDragSource.prototype.currentGuide=null;mxDragSource.prototype.currentHighlight=null;mxDragSource.prototype.autoscroll=!0;mxDragSource.prototype.guidesEnabled=!0;-mxDragSource.prototype.gridEnabled=!0;mxDragSource.prototype.highlightDropTargets=!0;mxDragSource.prototype.dragElementZIndex=100;mxDragSource.prototype.dragElementOpacity=70;mxDragSource.prototype.checkEventSource=!0;mxDragSource.prototype.isEnabled=function(){return this.enabled};mxDragSource.prototype.setEnabled=function(a){this.enabled=a};mxDragSource.prototype.isGuidesEnabled=function(){return this.guidesEnabled};mxDragSource.prototype.setGuidesEnabled=function(a){this.guidesEnabled=a};-mxDragSource.prototype.isGridEnabled=function(){return this.gridEnabled};mxDragSource.prototype.setGridEnabled=function(a){this.gridEnabled=a};mxDragSource.prototype.getGraphForEvent=function(a){return null};mxDragSource.prototype.getDropTarget=function(a,b,c,d){return a.getCellAt(b,c)};mxDragSource.prototype.createDragElement=function(a){return this.element.cloneNode(!0)};mxDragSource.prototype.createPreviewElement=function(a){return null};+mxDivResizer.prototype.getDocumentHeight=function(){return document.body.clientHeight};function mxDragSource(a,b){this.element=a;this.dropHandler=b;mxEvent.addGestureListeners(a,mxUtils.bind(this,function(c){this.mouseDown(c);mxEvent.consume(c)}));mxEvent.addListener(a,"dragstart",function(c){mxEvent.consume(c)});this.eventConsumer=function(c,d){c=d.getProperty("eventName");d=d.getProperty("event");c!=mxEvent.MOUSE_DOWN&&d.consume()}}mxDragSource.prototype.element=null;+mxDragSource.prototype.dropHandler=null;mxDragSource.prototype.dragOffset=null;mxDragSource.prototype.dragElement=null;mxDragSource.prototype.previewElement=null;mxDragSource.prototype.previewOffset=null;mxDragSource.prototype.enabled=!0;mxDragSource.prototype.currentGraph=null;mxDragSource.prototype.currentDropTarget=null;mxDragSource.prototype.currentPoint=null;mxDragSource.prototype.currentGuide=null;mxDragSource.prototype.currentHighlight=null;mxDragSource.prototype.autoscroll=!0;+mxDragSource.prototype.guidesEnabled=!0;mxDragSource.prototype.gridEnabled=!0;mxDragSource.prototype.highlightDropTargets=!0;mxDragSource.prototype.dragElementZIndex=100;mxDragSource.prototype.dragElementOpacity=70;mxDragSource.prototype.checkEventSource=!0;mxDragSource.prototype.isEnabled=function(){return this.enabled};mxDragSource.prototype.setEnabled=function(a){this.enabled=a};mxDragSource.prototype.isGuidesEnabled=function(){return this.guidesEnabled};+mxDragSource.prototype.setGuidesEnabled=function(a){this.guidesEnabled=a};mxDragSource.prototype.isGridEnabled=function(){return this.gridEnabled};mxDragSource.prototype.setGridEnabled=function(a){this.gridEnabled=a};mxDragSource.prototype.getGraphForEvent=function(a){return null};mxDragSource.prototype.getDropTarget=function(a,b,c,d){return a.getCellAt(b,c)};mxDragSource.prototype.createDragElement=function(a){return this.element.cloneNode(!0)};mxDragSource.prototype.createPreviewElement=function(a){return null};mxDragSource.prototype.isActive=function(){return null!=this.mouseMoveHandler};mxDragSource.prototype.reset=function(){null!=this.currentGraph&&(this.dragExit(this.currentGraph),this.currentGraph=null);this.removeDragElement();this.removeListeners();this.stopDrag()};mxDragSource.prototype.mouseDown=function(a){this.enabled&&!mxEvent.isConsumed(a)&&null==this.mouseMoveHandler&&(this.startDrag(a),this.mouseMoveHandler=mxUtils.bind(this,this.mouseMove),this.mouseUpHandler=mxUtils.bind(this,this.mouseUp),mxEvent.addGestureListeners(document,null,this.mouseMoveHandler,this.mouseUpHandler),mxClient.IS_TOUCH&&!mxEvent.isMouseEvent(a)&&(this.eventSource=mxEvent.getSource(a),mxEvent.addGestureListeners(this.eventSource,null,this.mouseMoveHandler,this.mouseUpHandler)))};mxDragSource.prototype.startDrag=function(a){this.dragElement=this.createDragElement(a);this.dragElement.style.position="absolute";this.dragElement.style.zIndex=this.dragElementZIndex;mxUtils.setOpacity(this.dragElement,this.dragElementOpacity);this.checkEventSource&&mxClient.IS_SVG&&(this.dragElement.style.pointerEvents="none")};mxDragSource.prototype.stopDrag=function(){this.removeDragElement()};@@ -494,7 +494,7 @@ mxStencil.prototype.evaluateTextAttribute=function(a,b,c){b=this.evaluateAttribumxStencil.prototype.drawShape=function(a,b,c,d,e,f,g){var k=a.states.slice(),l=mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,null);l=this.computeAspect(b.style,c,d,e,f,l);var m=Math.min(l.width,l.height);m="inherit"==this.strokewidth?Number(mxUtils.getNumber(b.style,mxConstants.STYLE_STROKEWIDTH,1)):Number(this.strokewidth)*m;a.setStrokeWidth(m);null!=b.style&&"1"==mxUtils.getValue(b.style,mxConstants.STYLE_POINTER_EVENTS,"0")&&(a.setStrokeColor(mxConstants.NONE),a.rect(c,d,e,f),a.stroke(),a.setStrokeColor(b.stroke));this.drawChildren(a,b,c,d,e,f,this.bgNode,l,!1,!0,g);this.drawChildren(a,b,c,d,e,f,this.fgNode,l,!0,!b.outline||null==b.style||0==mxUtils.getValue(b.style,mxConstants.STYLE_BACKGROUND_OUTLINE,0),g);a.states.length!=k.length&&(a.states=k)};mxStencil.prototype.drawChildren=function(a,b,c,d,e,f,g,k,l,m,n){if(null!=g&&0<e&&0<f)for(c=g.firstChild;null!=c;)c.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,c,k,l,m,n),c=c.nextSibling};mxStencil.prototype.computeAspect=function(a,b,c,d,e,f){a=b;b=d/this.w0;var g=e/this.h0;if(f=f==mxConstants.DIRECTION_NORTH||f==mxConstants.DIRECTION_SOUTH){g=d/this.h0;b=e/this.w0;var k=(d-e)/2;a+=k;c-=k}"fixed"==this.aspect&&(b=g=Math.min(b,g),f?(a+=(e-this.w0*b)/2,c+=(d-this.h0*g)/2):(a+=(d-this.w0*b)/2,c+=(e-this.h0*g)/2));return new mxRectangle(a,c,b,g)};-mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style&&(d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"));return d};+mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style?d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"):null==b.style||mxUtils.isValidColor(d)||(a=mxUtils.getValue(b.style,d,mxConstants.NONE),"default"==a&&(a="fillcolor"==c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor),d=a);return d};mxStencil.prototype.drawNode=function(a,b,c,d,e,f,g){var k=c.nodeName,l=d.x,m=d.y,n=d.width,p=d.height,q=Math.min(n,p);if("save"==k)a.save();else if("restore"==k)a.restore();else if(f){if("path"==k){a.begin();q=!0;if("1"==c.getAttribute("rounded")){q=!1;for(var r=Number(c.getAttribute("arcSize")),t=0,u=[],x=c.firstChild;null!=x;){if(x.nodeType==mxConstants.NODETYPE_ELEMENT){var y=x.nodeName;if("move"==y||"line"==y)"move"!=y&&0!=u.length||u.push([]),u[u.length-1].push(new mxPoint(l+Number(x.getAttribute("x"))*n,m+Number(x.getAttribute("y"))*p)),t++;else{q=!0;break}}x=x.nextSibling}if(!q&&0<t)for(n=0;n<u.length;n++)p=!1,m=u[n][0],l=u[n][u[n].length-1],m.x==l.x&&m.y==l.y&&(u[n].pop(),p=!0),this.addPoints(a,u[n],!0,r,p);else q=!0}if(q)for(x=c.firstChild;null!=x;)x.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,x,d,e,f,g),x=x.nextSibling}else if("close"==k)a.close();else if("move"==k)a.moveTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("line"==k)a.lineTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("quad"==k)a.quadTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p);else if("curve"==k)a.curveTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p,l+Number(c.getAttribute("x3"))*n,m+Number(c.getAttribute("y3"))*p);else if("arc"==k)a.arcTo(Number(c.getAttribute("rx"))*n,Number(c.getAttribute("ry"))*@@ -1667,9 +1667,9 @@ l,d.height+=2*d.height*l),null==k?k=d:(k=mxRectangle.fromRectangle(k),k.interseck.y+k.height&&(this.unscaledBounds.height-=this.unscaledBounds.y+this.unscaledBounds.height-k.y-k.height)));d=this.bounds;this.bounds=new mxRectangle((null!=this.parentState?this.parentState.x:e.x*f)+this.unscaledBounds.x*f,(null!=this.parentState?this.parentState.y:e.y*f)+this.unscaledBounds.y*f,this.unscaledBounds.width*f,this.unscaledBounds.height*f);g.relative&&null!=this.parentState&&(this.bounds.x+=this.state.x-this.parentState.x,this.bounds.y+=this.state.y-this.parentState.y);g=Math.cos(c);k=Math.sin(c);c=new mxPoint(this.bounds.getCenterX(),this.bounds.getCenterY());l=c.x-b.x;m=c.y-b.y;b=g*l-k*m-l;c=k*l+g*m-m;l=this.bounds.x-this.state.x;m=this.bounds.y-this.state.y;e=g*l-k*m;g=k*l+g*m;this.bounds.x+=b;this.bounds.y+=c;this.unscaledBounds.x=this.roundLength(this.unscaledBounds.x+b/f);this.unscaledBounds.y=this.roundLength(this.unscaledBounds.y+c/f);this.unscaledBounds.width=this.roundLength(this.unscaledBounds.width);this.unscaledBounds.height=this.roundLength(this.unscaledBounds.height);this.graph.isCellCollapsed(this.state.cell)||0==b&&0==c?this.childOffsetY=this.childOffsetX=0:(this.childOffsetX=this.state.x-this.bounds.x+e,this.childOffsetY=this.state.y-this.bounds.y+g);d.equals(this.bounds)||(this.livePreviewActive&&this.updateLivePreview(a),null!=this.preview?this.drawPreview():this.updateParentHighlight())};-mxVertexHandler.prototype.updateLivePreview=function(a){var b=this.graph.view.scale,c=this.graph.view.translate;a=this.state.clone();this.state.x=this.bounds.x;this.state.y=this.bounds.y;this.state.origin=new mxPoint(this.state.x/b-c.x,this.state.y/b-c.y);this.state.width=this.bounds.width;this.state.height=this.bounds.height;b=this.state.absoluteOffset;new mxPoint(b.x,b.y);this.state.absoluteOffset.x=0;this.state.absoluteOffset.y=0;b=this.graph.getCellGeometry(this.state.cell);null!=b&&(c=b.offset||-this.EMPTY_POINT,null==c||b.relative||(this.state.absoluteOffset.x=this.state.view.scale*c.x,this.state.absoluteOffset.y=this.state.view.scale*c.y),this.state.view.updateVertexLabelOffset(this.state));this.state.view.graph.cellRenderer.redraw(this.state,!0);this.state.view.invalidate(this.state.cell);this.state.invalid=!1;this.state.view.validate();this.redrawHandles();this.movePreviewToFront&&this.moveToFront();null!=this.state.control&&null!=this.state.control.node&&(this.state.control.node.style.visibility=-"hidden");this.state.setState(a)};+mxVertexHandler.prototype.updateLivePreview=function(a){a=this.graph.view.scale;var b=this.graph.view.translate,c=this.state.clone();this.state.x=this.bounds.x;this.state.y=this.bounds.y;this.state.origin=new mxPoint(this.state.x/a-b.x,this.state.y/a-b.y);this.state.width=this.bounds.width;this.state.height=this.bounds.height;b=this.state.absoluteOffset;new mxPoint(b.x,b.y);this.state.absoluteOffset.x=0;this.state.absoluteOffset.y=0;b=this.graph.getCellGeometry(this.state.cell);if(null!=b){var d=+b.offset||this.EMPTY_POINT;null==d||b.relative||(this.state.absoluteOffset.x=this.state.view.scale*d.x,this.state.absoluteOffset.y=this.state.view.scale*d.y);this.state.view.updateVertexLabelOffset(this.state)}b=this.state.cell.geometry.width;d=this.state.cell.geometry.height;this.state.cell.geometry.width=this.roundLength(this.bounds.width/a);this.state.cell.geometry.height=this.roundLength(this.bounds.height/a);this.state.view.graph.cellRenderer.redraw(this.state,!0);this.state.cell.geometry.width=+b;this.state.cell.geometry.height=d;this.state.view.invalidate(this.state.cell);this.state.invalid=!1;this.state.view.validate();this.redrawHandles();this.movePreviewToFront&&this.moveToFront();null!=this.state.control&&null!=this.state.control.node&&(this.state.control.node.style.visibility="hidden");this.state.setState(c)};mxVertexHandler.prototype.moveToFront=function(){if(null!=this.state.text&&null!=this.state.text.node&&null!=this.state.text.node.nextSibling||null!=this.state.shape&&null!=this.state.shape.node&&null!=this.state.shape.node.nextSibling&&(null==this.state.text||this.state.shape.node.nextSibling!=this.state.text.node))null!=this.state.shape&&null!=this.state.shape.node&&this.state.shape.node.parentNode.appendChild(this.state.shape.node),null!=this.state.text&&null!=this.state.text.node&&this.state.text.node.parentNode.appendChild(this.state.text.node)};mxVertexHandler.prototype.mouseUp=function(a,b){if(null!=this.index&&null!=this.state){var c=new mxPoint(b.getGraphX(),b.getGraphY());a=this.index;this.index=null;null==this.ghostPreview&&this.state.view.invalidate(this.state.cell,!1,!1);this.graph.getModel().beginUpdate();try{if(a<=mxEvent.CUSTOM_HANDLE){if(null!=this.customHandles&&null!=this.customHandles[mxEvent.CUSTOM_HANDLE-a]){var d=this.state.view.graph.getCellStyle(this.state.cell);this.customHandles[mxEvent.CUSTOM_HANDLE-a].active=!1;this.customHandles[mxEvent.CUSTOM_HANDLE-a].execute(b);null!=this.customHandles&&null!=this.customHandles[mxEvent.CUSTOM_HANDLE-a]&&(this.state.style=d,this.customHandles[mxEvent.CUSTOM_HANDLE-a].positionChanged())}}else if(a==mxEvent.ROTATION_HANDLE)if(null!=this.currentAlpha){var e=this.currentAlpha-(this.state.style[mxConstants.STYLE_ROTATION]||0);0!=e&&this.rotateCell(this.state.cell,e)}else this.rotateClick();else{var f=this.graph.isGridEnabledEvent(b.getEvent()),g=mxUtils.toRadians(this.state.style[mxConstants.STYLE_ROTATION]||"0"),@@ -2024,7 +2024,7 @@ e.style.width="100%",f.appendChild(e));null!=B&&c.appendChild(B);row=document.crb.editor.cancelFirst&&row.appendChild(f);mxEvent.addListener(t,"keypress",function(C){13==C.keyCode&&z.click()});row.appendChild(z);b.editor.cancelFirst||row.appendChild(f);c.appendChild(row);Q.appendChild(c);this.container=Q};FilenameDialog.filenameHelpLink=null;FilenameDialog.createFileTypes=function(b,e,g){var m=document.createElement("select");for(b=0;b<g.length;b++){var u=document.createElement("option");u.setAttribute("value",b);mxUtils.write(u,mxResources.get(g[b].description)+" (."+g[b].extension+")");m.appendChild(u)}mxEvent.addListener(m,"change",function(p){p=g[m.value].extension;var B=e.value.lastIndexOf(".drawio.");B=0<B?B:e.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);e.value=0<B?e.value.substring(0,B+1)+p:e.value+"."+p;"createEvent"indocument?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),e.dispatchEvent(p)):e.fireEvent("onchange")});b=function(p){p=e.value.toLowerCase();for(var B=0,H=0;H<g.length;H++){var S=g[H].extension,G=null;"drawio"!=S&&(G=S,S=".drawio."+S);if(p.substring(p.length-S.length-1)=="."+S||null!=G&&p.substring(p.length-G.length-1)=="."+G){B=H;break}}m.value=B};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};-var WrapperWindow=function(b,e,g,m,u,p,B){var H=b.createSidebarContainer();B(H);this.window=new mxWindow(e,H,g,m,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(S){null==S&&(S=window.event);return null!=S&&b.isSelectionAllowed(S)}))};+var WrapperWindow=function(b,e,g,m,u,p,B){var H=b.createSidebarContainer();B(H);this.window=new mxWindow(e,H,g,m,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0)};(function(){mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph;if(null!=B.container&&!B.transparentBackground){if(B.pageVisible){var H=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var S=B.container.firstChild;null!=S&&S.nodeType!=mxConstants.NODETYPE_ELEMENT;)S=S.nextSibling;null!=S&&(this.backgroundPageShape=this.createBackgroundPageShape(H),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,this.backgroundPageShape.init(B.container),S.style.position="absolute",B.container.insertBefore(this.backgroundPageShape.node,S),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(G){B.dblClick(G)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){null!=B.tooltipHandler&&B.tooltipHandler.isHideOnHover()&&B.tooltipHandler.hide();B.isMouseDown&&!mxEvent.isConsumed(G)&&B.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(G))}),mxUtils.bind(this,function(G){B.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(G))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=H,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};@@ -3479,7 +3479,7 @@ function(){try{k.hideDialog(),U(!1)}catch(Fa){k.handleError(Fa)}}),fa.className=arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(k=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var ma=document.createElement("canvas"),Z=new Image;Z.onload=function(){try{ma.getContext("2d").drawImage(Z,0,0);var k=ma.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(A){}};Z.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(k){}Editor.prototype.useCanvasForExport=!1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){m.previousColor=m.color;m.previousImage=m.image;m.previousFormat=m.format;m.previousAdaptiveColors=m.adaptiveColors;null!=m.foldingEnabled&&(m.foldingEnabled=!m.foldingEnabled);null!=m.mathEnabled&&(m.mathEnabled=!m.mathEnabled);null!=m.shadowVisible&&(m.shadowVisible=!m.shadowVisible);return m};mxCodecRegistry.register(b)})();-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.1.0";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.1.1";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};@@ -4194,7 +4194,7 @@ mxEvent.consume(fa);else if("geMenuItem"==mxEvent.getSource(fa).className||mxEvefunction(sa,qa,wa){fa.innerText="";mxUtils.write(fa,Math.round(100*F.editor.graph.view.scale*(null!=wa?wa:1))+"%")});F.editor.graph.view.addListener(mxEvent.EVENT_SCALE,pa);F.editor.addListener("resetGraphView",pa);F.editor.addListener("pageSelected",pa);F.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(sa,qa){pa(sa,qa,qa.getProperty("factor"))}))})(V);var ba=F.setGraphEnabled;F.setGraphEnabled=function(){ba.apply(this,arguments);null!=this.tabContainer&&(V.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}C.appendChild(K);C.appendChild(F.diagramContainer);z.appendChild(C);F.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);C.appendChild(F.tabContainer);t();F.addListener("lockedChanged",t);mxEvent.addListener(window,"resize",function(){t();null!=F.sidebarWindow&&F.sidebarWindow.window.fit();null!=F.formatWindow&&F.formatWindow.window.fit();null!=F.actions.outlineWindow&&F.actions.outlineWindow.window.fit();null!=F.actions.layersWindow&&F.actions.layersWindow.window.fit();null!=F.menus.chatWindow&&F.menus.chatWindow.window.fit();null!=F.menus.tagsWindow&&F.menus.tagsWindow.window.fit();null!=F.menus.findWindow&&F.menus.findWindow.window.fit();null!=F.menus.findReplaceWindow&&F.menus.findReplaceWindow.window.fit()})}}};-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,e,g,m,u,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=u;this.isResolved=p;this.user=B;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,u){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,u){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=u};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save As\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,e,g,m,u,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=u;this.isResolved=p;this.user=B;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,u){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,u){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=u};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save As\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,e,g){this.init(b,e,g)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;GraphViewer.prototype.darkMode=null;GraphViewer.prototype.init=function(b,e,g){GraphViewer.initCss();this.graphConfig=null!=g?g:{};this.autoFit=null!=this.graphConfig["auto-fit"]?this.graphConfig["auto-fit"]:this.autoFit;this.autoCrop=null!=this.graphConfig["auto-crop"]?this.graphConfig["auto-crop"]:this.autoCrop;this.autoOrigin=null!=this.graphConfig["auto-origin"]?this.graphConfig["auto-origin"]:this.autoOrigin;this.allowZoomOut=null!=this.graphConfig["allow-zoom-out"]?this.graphConfig["allow-zoom-out"]:this.allowZoomOut;this.allowZoomIn=diff --git a/src/main/webapp/resources/dia.txt b/src/main/webapp/resources/dia.txtindex e9ddabc00..50a902ca6 100644--- a/src/main/webapp/resources/dia.txt+++ b/src/main/webapp/resources/dia.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_am.txt b/src/main/webapp/resources/dia_am.txtindex 6bb2ec5fd..6c81946ed 100644--- a/src/main/webapp/resources/dia_am.txt+++ b/src/main/webapp/resources/dia_am.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_ar.txt b/src/main/webapp/resources/dia_ar.txtindex 859ca7890..634f7d436 100644--- a/src/main/webapp/resources/dia_ar.txt+++ b/src/main/webapp/resources/dia_ar.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_bg.txt b/src/main/webapp/resources/dia_bg.txtindex 9270fb246..61165a137 100644--- a/src/main/webapp/resources/dia_bg.txt+++ b/src/main/webapp/resources/dia_bg.txt@@ -1014,7 +1014,6 @@ character=ПерсонажconfAConfPageDesc=Тази страница съдържа конфигурационен файл draw.io (configuration.json) като прикачен файлconfALibPageDesc=Тази страница съдържа персонализирани библиотеки draw.io като прикачени файловеconfATempPageDesc=Тази страница съдържа персонализирани шаблони draw.io като прикачени файлове-working=РаботещиconfAConfSpaceDesc=Това пространство се използва за съхраняване на конфигурационни файлове draw.io и персонализирани библиотеки/шаблониconfANoCustLib=Няма персонализирани библиотекиdelFailed=Изтриването не бе успешно!diff --git a/src/main/webapp/resources/dia_bn.txt b/src/main/webapp/resources/dia_bn.txtindex 2974c9657..c1be67db7 100644--- a/src/main/webapp/resources/dia_bn.txt+++ b/src/main/webapp/resources/dia_bn.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_bs.txt b/src/main/webapp/resources/dia_bs.txtindex 021c7fefb..18089882d 100644--- a/src/main/webapp/resources/dia_bs.txt+++ b/src/main/webapp/resources/dia_bs.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_ca.txt b/src/main/webapp/resources/dia_ca.txtindex a21ee230d..c37a6a503 100644--- a/src/main/webapp/resources/dia_ca.txt+++ b/src/main/webapp/resources/dia_ca.txt@@ -1014,7 +1014,6 @@ character=CaràcterconfAConfPageDesc=Aquesta pàgina conté el fitxer de configuració draw.io (configuration.json) com a fitxer adjuntconfALibPageDesc=Aquesta pàgina conté biblioteques personalitzades de draw.io com a fitxers adjuntsconfATempPageDesc=Aquesta pàgina conté plantilles personalitzades de draw.io com a fitxers adjunts-working=S'està treballantconfAConfSpaceDesc=Aquest espai s'utilitza per emmagatzemar fitxers de configuració de draw.io i biblioteques/plantilles personalitzadesconfANoCustLib=No hi ha biblioteques personalitzadesdelFailed=Ha fallat l'esborrat@@ -1277,7 +1276,7 @@ outOfDateRevisionAlert=Esteu editant una revisió històrica del diagrama, comprconfAErrFaqs=Hi ha {1} error(s), les instruccions següents poden ajudar a solucionar la majoria dels casos. (Descarregueu el registre per a futures referències)confA403ErrFaq=Hi ha ({1}) error(s) 403. Els usuaris actuals han de tenir permisos per afegir (escriptura) a totes les pàgines i fitxers adjunts. Fins i tot els administradors de vegades no poden escriure en algunes pàgines mitjançant restriccions de pàginaconfA404ErrFaq=Hi ha ({1}) error(s) 404. No s'ha trobat l'adjunt/pàgina. Això es deu a una migració incorrecta o s'ha suprimit el fitxer del diagrama (un fitxer adjunt de la pàgina).-confA500ErrFaq=Hi ha ({1}) error(s) 500. Un error intern del servidor a Confluence Cloud. Aquests errors es deuen a la sobrecàrrega del servidor i normalment es solucionen tornant a intentar el procés.+confA500ErrFaq=Hi ha ({1}) error(s) 500. Un error intern del servidor a Confluence Cloud. Aquests errors es deuen a la sobrecàrrega del servidor i normalment se solucionen tornant a intentar el procés.confAOtherErrFaq=Hi ha ({1}) altre(s) error(s). Comproveu la descripció de l'error. Si la descripció no és clara, poseu-vos en contacte amb el nostre servei d'assistència.confAReplaceBaseUrl=Substituïu l'URL base als enllaços del diagrama quan no es trobi cap assignació d'ID de pàginadrawSvgPrev=Previsualització SVG de draw.io@@ -1294,18 +1293,18 @@ otherUsersEditing=Altres usuaris estan editant aquest diagramafirstTimeGD=Primer cop que accediu a aquest fitxer?drawioGDAppNotInstalled=L'aplicació draw.io de Google Drive no està instal·lada, primer instal·leu-laConfDC415Error=Desar esborranys està bloquejat. Si teniu l'aplicació "Attachment Checker for Confluence", actualitzeu-la a la darrera versió.-remove=Remove-selectPgLyr=Select Page and Layers-errGenPreview=There was an error generating a diagram preview. Please consult technical support.-attAccessErr=Diagram attachment access error: cannot display diagram-widthIntOrFixed=Width must be a valid integer or of value 'fixed'-dupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected-cantDupPickDiffName=Could not duplicate diagram. Please choose a different name.-ownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.-cantDupTryLater=Could not duplicate diagram. Please try again later.-cantEditLnkd=Cannot edit linked diagram-diagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?-diagInTemps=draw.io diagrams in templates-diagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.-confDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.-confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.+remove=Elimina+selectPgLyr=Selecciona la Pàgina i les Capes+errGenPreview=S'ha produït un error en generar la vista prèvia del diagrama. Consulteu el servei tècnic.+attAccessErr=Error d'accés al fitxer adjunt del diagrama: no es pot mostrar el diagrama+widthIntOrFixed=L'amplada ha de ser un nombre enter vàlid, o el valor "fixed"+dupDisabledPgLyrSlct=La duplicació de diagrames està desactivada quan la pàgina i les capes estan seleccionades+cantDupPickDiffName=No s'ha pogut duplicar el diagrama. Si us plau, trieu un nom diferent.+ownPgAccessDupErr=Restricció d'accés a la pàgina: no es pot duplicar el diagrama.+cantDupTryLater=No s'ha pogut duplicar el diagrama. Si us plau, torna-ho a provar més tard.+cantEditLnkd=No es pot editar el diagrama enllaçat+diagEditOwnPgOnlyOpen=El diagrama només es pot editar des de la pàgina propietària que el conté. Vols obrir la pàgina propietària per editar-la?+diagInTemps=diagrames draw.io en plantilles+diagInTempsCantEdit=Els diagrames de les plantilles de pàgina no es poden editar. Només es poden editar en pàgines i publicacions de blogs.+confDirectEditDraftLost=Aquesta pàgina de Confluence té canvis no publicats. Editar el diagrama des de la vista de pàgina pot provocar la pèrdua de dades. Editeu primer la pàgina Confluence i després editeu el diagrama.+confConfigSpacePerm=Nota: si recentment heu migrat des de l'aplicació DC, comproveu els permisos de l'espai de Configuració de draw.io de manera que tots els usuaris puguin llegir i només els administradors puguin escriure. A més, elimineu les restriccions de pàgina a les pàgines "Configuració" i "Biblioteques". És possible que necessiteu claus d'administració per accedir-hi. A més, comproveu que el fitxer "configuration.json" a la pàgina "Configuració" es pot descarregar.diff --git a/src/main/webapp/resources/dia_cs.txt b/src/main/webapp/resources/dia_cs.txtindex f59ac69ff..474892829 100644--- a/src/main/webapp/resources/dia_cs.txt+++ b/src/main/webapp/resources/dia_cs.txt@@ -1014,7 +1014,6 @@ character=ZnakconfAConfPageDesc=Tato stránka obsahuje uživatelsky soubor s nastaveními pro draw.io v podobě přílohyconfALibPageDesc=Tato stránka obsahuje uživatelsky určené knihovny pro draw.io v podobě přílohconfATempPageDesc=Tato stránka obsahuje uživatelsky určené šablony pro draw.io v podobě příloh-working=Pracuje seconfAConfSpaceDesc=Tento prostor slouží k ukládání souborů s nastaveními pro draw.io a uživatelsky určené knihovny/šablonyconfANoCustLib=Žádné uživatelsky určené knihovnydelFailed=Smazání se nezdařilo!diff --git a/src/main/webapp/resources/dia_da.txt b/src/main/webapp/resources/dia_da.txtindex 9e9fbe76a..0127959dd 100644--- a/src/main/webapp/resources/dia_da.txt+++ b/src/main/webapp/resources/dia_da.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_de.txt b/src/main/webapp/resources/dia_de.txtindex 6451a3fb8..ffe7e1871 100644--- a/src/main/webapp/resources/dia_de.txt+++ b/src/main/webapp/resources/dia_de.txt@@ -1014,7 +1014,6 @@ character=ZeichenconfAConfPageDesc=Diese Seite enthält die draw.io Konfigurationsdatei (configuration.json) als AnhangconfALibPageDesc=Diese Seite enthält benutzerdefinierte draw.io Bibliotheken als Anhänge.confATempPageDesc=Diese Seite enthält benutzerdefinierte draw.io Vorlagen als Anhänge.-working=Wird ausgeführtconfAConfSpaceDesc=Dieser Space wird verwendet, um die draw.io Konfiguration und benutzerdefinierte Bibliotheken/Vorlagen zu speichern.confANoCustLib=Keine benutzerdefinierten BibliothekendelFailed=Löschen fehlgeschlagendiff --git a/src/main/webapp/resources/dia_el.txt b/src/main/webapp/resources/dia_el.txtindex b059ed8ab..aab56255b 100644--- a/src/main/webapp/resources/dia_el.txt+++ b/src/main/webapp/resources/dia_el.txt@@ -1014,7 +1014,6 @@ character=ΧαρακτήραςconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=Δεν υπάρχουν Προσαρμοσμένες Βιβλιοθήκες.delFailed=Η διαγραφή απέτυχε!diff --git a/src/main/webapp/resources/dia_eo.txt b/src/main/webapp/resources/dia_eo.txtindex 8d1d96c98..6659d56a8 100644--- a/src/main/webapp/resources/dia_eo.txt+++ b/src/main/webapp/resources/dia_eo.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_es.txt b/src/main/webapp/resources/dia_es.txtindex 7cc778637..ade2458d6 100644--- a/src/main/webapp/resources/dia_es.txt+++ b/src/main/webapp/resources/dia_es.txt@@ -1014,7 +1014,6 @@ character=CaractérconfAConfPageDesc=Ésta página contiene un archivo de configuración draw.io (configuration.json) adjuntoconfALibPageDesc=Ésta página contiene librerias personalizadas adjuntasconfATempPageDesc=Ésta página contiene plantillas personalizadas adjuntas-working=TrabajandoconfAConfSpaceDesc=Este espacio es usado para almacenar archivos de configuración y librerías/plantillas personalizadas de draw.ioconfANoCustLib=Sin Librerias PersonalizadasdelFailed=¡La eliminiación falló!@@ -1084,7 +1083,7 @@ smart=InteligenteparentChildSpacing=Espaciado entre Padre e HijossiblingSpacing=Espaciado entre hermanosconfNoPermErr=Lo sentimos, no tiene suficientes permisos para ver el diagrama embebido de la página {1}-copyAsImage=Copiar como Imágen+copyAsImage=Copiar como ImagencopyAsText=Copy as TextlucidImport=Importación LucidchartlucidImportInst1=Presione el botón 'Comenzar Importación' para importar todos los diagramas de Lucidchartdiff --git a/src/main/webapp/resources/dia_et.txt b/src/main/webapp/resources/dia_et.txtindex c75995456..4e7cc3353 100644--- a/src/main/webapp/resources/dia_et.txt+++ b/src/main/webapp/resources/dia_et.txt@@ -1014,7 +1014,6 @@ character=SümbolconfAConfPageDesc=See leht sisaldab manusena draw.io konfiguratsiooni failiconfALibPageDesc=See leht sisaldab manustena kohandatud draw.io kogumikkeconfATempPageDesc=See leht sisaldab manustena kohandatud draw.io malle-working=ToimetatakseconfAConfSpaceDesc=Seda ruumi kasutatakse draw.io konfiguratsioonifailide ja kohandatud kogumike/ mallide salvestamiseksconfANoCustLib=Kohandatud kogumikke poledelFailed=Kustutamine ei õnnestunud!diff --git a/src/main/webapp/resources/dia_eu.txt b/src/main/webapp/resources/dia_eu.txtindex e3af6cd1d..8d789ac58 100644--- a/src/main/webapp/resources/dia_eu.txt+++ b/src/main/webapp/resources/dia_eu.txt@@ -1014,7 +1014,6 @@ character=KaraktereaconfAConfPageDesc=Orri honek erantsita du draw.io ezarpenen (configuration.json) fitxategiaconfALibPageDesc=Orri honek erantsita du draw.io liburutegi pertsonalizatuakconfATempPageDesc=Orri honek erantsita du draw.io txantiloi pertsonalizatuak-working=LaneanconfAConfSpaceDesc=Toki hau erabiltzen da gordetzeko draw.io ezarpenak eta libreria/txantiloi pertsonalizatuakconfANoCustLib=Ez dago liburutegi pertsonalikdelFailed=Huts egin du ezabatzean!diff --git a/src/main/webapp/resources/dia_fa.txt b/src/main/webapp/resources/dia_fa.txtindex a03b6edb0..30f294c41 100644--- a/src/main/webapp/resources/dia_fa.txt+++ b/src/main/webapp/resources/dia_fa.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_fi.txt b/src/main/webapp/resources/dia_fi.txtindex 2087264e0..4187eccc9 100644--- a/src/main/webapp/resources/dia_fi.txt+++ b/src/main/webapp/resources/dia_fi.txt@@ -1014,7 +1014,6 @@ character=MerkkiconfAConfPageDesc=Tämä sivu sisältää liitteenä draw.io-määritystiedoston (configuration.json).confALibPageDesc=Tämä sivu sisältää liitteinä mukautettuja draw.io-kirjastojaconfATempPageDesc=Tämä sivu sisältää mukautettuja draw.io-mallipohjia liitteinä-working=KäynnissäconfAConfSpaceDesc=Tätä tilaa käytetään draw.io-määritystiedostojen ja mukautettujen kirjastojen/mallipohjien tallentamiseenconfANoCustLib=Ei mukautettuja kirjastojadelFailed=Poistaminen epäonnistui!diff --git a/src/main/webapp/resources/dia_fil.txt b/src/main/webapp/resources/dia_fil.txtindex 122e9aae7..bc2e4dcdc 100644--- a/src/main/webapp/resources/dia_fil.txt+++ b/src/main/webapp/resources/dia_fil.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_fr.txt b/src/main/webapp/resources/dia_fr.txtindex 3d33db64a..eca126342 100644--- a/src/main/webapp/resources/dia_fr.txt+++ b/src/main/webapp/resources/dia_fr.txt@@ -1014,7 +1014,6 @@ character=CaractèreconfAConfPageDesc=Cette page contient un fichier de configuration draw.io (configuration.json) en pièce jointe.confALibPageDesc=Cette page contient des bibliothèques personnalisées draw.io en pièces jointesconfATempPageDesc=Cette page contient des modèles personnalisés draw.io en pièces jointes-working=TravaillerconfAConfSpaceDesc=Cet espace est utilisé pour stocker les fichiers de configuration de draw.io et les bibliothèques/modèles personnalisés.confANoCustLib=Pas de bibliothèques personnaliséesdelFailed=La suppression a échoué !diff --git a/src/main/webapp/resources/dia_gl.txt b/src/main/webapp/resources/dia_gl.txtindex 086a1d602..2bc6564f1 100644--- a/src/main/webapp/resources/dia_gl.txt+++ b/src/main/webapp/resources/dia_gl.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_gu.txt b/src/main/webapp/resources/dia_gu.txtindex d74502ff4..10219349d 100644--- a/src/main/webapp/resources/dia_gu.txt+++ b/src/main/webapp/resources/dia_gu.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_he.txt b/src/main/webapp/resources/dia_he.txtindex 1b6858629..be497caa1 100644--- a/src/main/webapp/resources/dia_he.txt+++ b/src/main/webapp/resources/dia_he.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_hi.txt b/src/main/webapp/resources/dia_hi.txtindex ebcc9ae25..8b0fc7c52 100644--- a/src/main/webapp/resources/dia_hi.txt+++ b/src/main/webapp/resources/dia_hi.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_hr.txt b/src/main/webapp/resources/dia_hr.txtindex 250cdfe1a..ea057e0e8 100644--- a/src/main/webapp/resources/dia_hr.txt+++ b/src/main/webapp/resources/dia_hr.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_hu.txt b/src/main/webapp/resources/dia_hu.txtindex 9473fd9fa..1597e3765 100644--- a/src/main/webapp/resources/dia_hu.txt+++ b/src/main/webapp/resources/dia_hu.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_i18n.txt b/src/main/webapp/resources/dia_i18n.txtindex eeb923d49..21cbc7a94 100644--- a/src/main/webapp/resources/dia_i18n.txt+++ b/src/main/webapp/resources/dia_i18n.txt@@ -1014,7 +1014,6 @@ character=characterconfAConfPageDesc=confAConfPageDescconfALibPageDesc=confALibPageDescconfATempPageDesc=confATempPageDesc-working=workingconfAConfSpaceDesc=confAConfSpaceDescconfANoCustLib=confANoCustLibdelFailed=delFaileddiff --git a/src/main/webapp/resources/dia_id.txt b/src/main/webapp/resources/dia_id.txtindex 1ed51c8fd..c196e7e73 100644--- a/src/main/webapp/resources/dia_id.txt+++ b/src/main/webapp/resources/dia_id.txt@@ -1014,7 +1014,6 @@ character=KarakterconfAConfPageDesc=Halaman ini memuat berkas konfigurasi draw.io (configuration.json) sebagai lampiranconfALibPageDesc=Halaman ini memuat pustaka ubahan draw.io sebagai lampiranconfATempPageDesc=Halaman ini memuat templat ubahan draw.io sebagai lampiran-working=Sedang BekerjaconfAConfSpaceDesc=Ruang ini dipakai untuk menyimpan berkas konfigurasi dan pustaka/templat ubahan draw.ioconfANoCustLib=Tidak Ada Pustaka UbahandelFailed=Penghapusan gagal!diff --git a/src/main/webapp/resources/dia_it.txt b/src/main/webapp/resources/dia_it.txtindex 4e2628cce..46d26e11a 100644--- a/src/main/webapp/resources/dia_it.txt+++ b/src/main/webapp/resources/dia_it.txt@@ -1014,7 +1014,6 @@ character=CarattereconfAConfPageDesc=Questa pagina contiene il file di configurazione di draw.io (configuration.json) come allegatoconfALibPageDesc=Questa pagina contiene librerie personalizzate di draw.io come allegaticonfATempPageDesc=Questa pagina contiene modelli personalizzati di draw.io come allegati-working=LavorazioneconfAConfSpaceDesc=Questo spazio è utilizzato per memorizzare i file di configurazione e le librerie/modelli personalizzati di draw.ioconfANoCustLib=Nessun libreria personalizzatadelFailed=Eliminazione non riuscita!diff --git a/src/main/webapp/resources/dia_ja.txt b/src/main/webapp/resources/dia_ja.txtindex 8c45c45ec..3657b5c0a 100644--- a/src/main/webapp/resources/dia_ja.txt+++ b/src/main/webapp/resources/dia_ja.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_kn.txt b/src/main/webapp/resources/dia_kn.txtindex fe2eef823..25e2e92fb 100644--- a/src/main/webapp/resources/dia_kn.txt+++ b/src/main/webapp/resources/dia_kn.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_ko.txt b/src/main/webapp/resources/dia_ko.txtindex f1aae7a94..0d8211077 100644--- a/src/main/webapp/resources/dia_ko.txt+++ b/src/main/webapp/resources/dia_ko.txt@@ -1014,7 +1014,6 @@ character=문자confAConfPageDesc=이 페이지는 draw.io 환경설정 파일이 첨부되어 있습니다.confALibPageDesc=이 페이지는 draw.io 커스텀 라이브러리가 첨부되어 있습니다.confATempPageDesc=이 페이지는 draw.io 커스텀 템플릿이 첨부되어 있습니다.-working=작업중confAConfSpaceDesc=이 공간은 draw.io 환경설정 파일과 커스텀 라이브러리/템플릿을 저장하기 위해 사용됩니다.confANoCustLib=커스텀 라이브러리가 없습니다.delFailed=삭제에 실패했습니다.diff --git a/src/main/webapp/resources/dia_lt.txt b/src/main/webapp/resources/dia_lt.txtindex addc0dd70..322fea721 100644--- a/src/main/webapp/resources/dia_lt.txt+++ b/src/main/webapp/resources/dia_lt.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_lv.txt b/src/main/webapp/resources/dia_lv.txtindex 2f8fc8e50..ba0cfef35 100644--- a/src/main/webapp/resources/dia_lv.txt+++ b/src/main/webapp/resources/dia_lv.txt@@ -1014,7 +1014,6 @@ character=SimbolsconfAConfPageDesc=Šajā lapā kā pielikums ir draw.io konfigurācijas fails (configuration.json)confALibPageDesc=Šajā lapā kā pielikumi ir iekļautas draw.io pielāgotās bibliotēkasconfATempPageDesc=Šajā lapā kā pielikumi ir iekļautas draw.io pielāgotas veidnes-working=DarbojasconfAConfSpaceDesc=Šī vieta tiek izmantota, lai saglabātu draw.io konfigurācijas failus un pielāgotas bibliotēkas/veidnesconfANoCustLib=Nav pielāgotu bibliotēkudelFailed=Dzēst neizdevās!diff --git a/src/main/webapp/resources/dia_ml.txt b/src/main/webapp/resources/dia_ml.txtindex 563a8f4cf..bdb36d67f 100644--- a/src/main/webapp/resources/dia_ml.txt+++ b/src/main/webapp/resources/dia_ml.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_mr.txt b/src/main/webapp/resources/dia_mr.txtindex 1a8097d98..83a88184a 100644--- a/src/main/webapp/resources/dia_mr.txt+++ b/src/main/webapp/resources/dia_mr.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_ms.txt b/src/main/webapp/resources/dia_ms.txtindex 360b337fc..7a219f17b 100644--- a/src/main/webapp/resources/dia_ms.txt+++ b/src/main/webapp/resources/dia_ms.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_my.txt b/src/main/webapp/resources/dia_my.txtindex a4a3a5dcb..4af68e128 100644--- a/src/main/webapp/resources/dia_my.txt+++ b/src/main/webapp/resources/dia_my.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_nl.txt b/src/main/webapp/resources/dia_nl.txtindex 47f68e138..c60f25537 100644--- a/src/main/webapp/resources/dia_nl.txt+++ b/src/main/webapp/resources/dia_nl.txt@@ -1014,7 +1014,6 @@ character=LettertekenconfAConfPageDesc=Deze pagina bevat het draw.io-configuratiebestand (configuration.json) als bijlageconfALibPageDesc=Deze pagina bevat aangepaste draw.io-bibliotheken als bijlagenconfATempPageDesc=Deze pagina bevat aangepaste draw.io-sjablonen als bijlagen-working=BezigconfAConfSpaceDesc=Deze ruimte wordt gebruikt om draw.io-configuratiebestanden en aangepaste bibliotheken/sjablonen op te slaanconfANoCustLib=Geen aangepaste bibliothekendelFailed=Verwijderen mislukt!@@ -1308,4 +1307,4 @@ diagEditOwnPgOnlyOpen=Het diagram kan alleen worden bewerkt vanaf de bovenliggendiagInTemps=draw.io diagrammen in sjablonendiagInTempsCantEdit=Diagrammen in paginasjablonen kunnen niet worden bewerkt. Ze kunnen alleen worden bewerkt op pagina's en blogposts.confDirectEditDraftLost=Deze Confluence-pagina bevat niet-gepubliceerde wijzigingen. Het bewerken van het diagram vanuit de paginaweergave kan gegevensverlies veroorzaken. Bewerk eerst de Confluence-pagina en bewerk vervolgens het diagram.-confConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.+confConfigSpacePerm=Opmerking: Als je onlangs vanuit de DC-app bent gemigreerd, controleer dan de machtigingen voor draw.io-configuratieruimte, zodat alle gebruikers kunnen lezen en alleen beheerders kunnen schrijven. Verwijder bovendien de paginabeperkingen op de pagina's "Configuratie" en "Bibliotheken". Mogelijk heb je beheerdersleutels nodig om er toegang toe te krijgen. Controleer ook het bestand "configuration.json" op de pagina "Configuration" kan worden gedownload.diff --git a/src/main/webapp/resources/dia_no.txt b/src/main/webapp/resources/dia_no.txtindex 69269ad4e..ae7dd6cac 100644--- a/src/main/webapp/resources/dia_no.txt+++ b/src/main/webapp/resources/dia_no.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_pl.txt b/src/main/webapp/resources/dia_pl.txtindex e9b972f00..3f3740809 100644--- a/src/main/webapp/resources/dia_pl.txt+++ b/src/main/webapp/resources/dia_pl.txt@@ -1014,7 +1014,6 @@ character=ZnakconfAConfPageDesc=Ta strona zawiera plik konfiguracyjny draw.io (configuration.json) jako załącznikconfALibPageDesc=Ta strona zawiera niestandardowe biblioteki draw.io jako załącznikiconfATempPageDesc=Ta strona zawiera niestandardowe szablony draw.io jako załączniki-working=DziałanieconfAConfSpaceDesc=Ta przestrzeń jest używana do przechowywania plików konfiguracyjnych draw.io oraz własnych bibliotek/szablonów.confANoCustLib=Brak własnych bibliotekdelFailed=Kasowanie nie powiodło się!diff --git a/src/main/webapp/resources/dia_pt-br.txt b/src/main/webapp/resources/dia_pt-br.txtindex f783043e8..218ccf8f8 100644--- a/src/main/webapp/resources/dia_pt-br.txt+++ b/src/main/webapp/resources/dia_pt-br.txt@@ -1014,7 +1014,6 @@ character=CaractereconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=Nenhuma biblioteca personalizadadelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_pt.txt b/src/main/webapp/resources/dia_pt.txtindex fe0c309f2..4f8368b25 100644--- a/src/main/webapp/resources/dia_pt.txt+++ b/src/main/webapp/resources/dia_pt.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_ro.txt b/src/main/webapp/resources/dia_ro.txtindex b2b79f984..e1042e469 100644--- a/src/main/webapp/resources/dia_ro.txt+++ b/src/main/webapp/resources/dia_ro.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_ru.txt b/src/main/webapp/resources/dia_ru.txtindex e67ecb945..e69b7e248 100644--- a/src/main/webapp/resources/dia_ru.txt+++ b/src/main/webapp/resources/dia_ru.txt@@ -1014,7 +1014,6 @@ character=СимволconfAConfPageDesc=Эта страница содержит файл настроек draw.io (configuration.json) как вложениеconfALibPageDesc=Эта страница содержит пользовательские библиотеки draw.io как вложенияconfATempPageDesc=Эта страница содержит пользовательские шаблоны draw.io как вложения-working=Работаем...confAConfSpaceDesc=Это пространство используется как хранилище файлов настроек и пользовательских библиотек/шаблонов для draw.ioconfANoCustLib=Нет пользовательских библиотекdelFailed=Не удалось удалить (ошибка при удалении)!diff --git a/src/main/webapp/resources/dia_si.txt b/src/main/webapp/resources/dia_si.txtindex 6612b1f31..def4708d5 100644--- a/src/main/webapp/resources/dia_si.txt+++ b/src/main/webapp/resources/dia_si.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_sk.txt b/src/main/webapp/resources/dia_sk.txtindex 3c716a4fa..3078256df 100644--- a/src/main/webapp/resources/dia_sk.txt+++ b/src/main/webapp/resources/dia_sk.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_sl.txt b/src/main/webapp/resources/dia_sl.txtindex 7eb6f3ab0..abd8ff41b 100644--- a/src/main/webapp/resources/dia_sl.txt+++ b/src/main/webapp/resources/dia_sl.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_sr.txt b/src/main/webapp/resources/dia_sr.txtindex 79ffbbcea..8d6a26051 100644--- a/src/main/webapp/resources/dia_sr.txt+++ b/src/main/webapp/resources/dia_sr.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_sv.txt b/src/main/webapp/resources/dia_sv.txtindex b6ced42e6..cecd15a35 100644--- a/src/main/webapp/resources/dia_sv.txt+++ b/src/main/webapp/resources/dia_sv.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_sw.txt b/src/main/webapp/resources/dia_sw.txtindex ed90e288d..82fd6445e 100644--- a/src/main/webapp/resources/dia_sw.txt+++ b/src/main/webapp/resources/dia_sw.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_ta.txt b/src/main/webapp/resources/dia_ta.txtindex 701fdd4f6..385e618ba 100644--- a/src/main/webapp/resources/dia_ta.txt+++ b/src/main/webapp/resources/dia_ta.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_te.txt b/src/main/webapp/resources/dia_te.txtindex 7779fb241..7730a670c 100644--- a/src/main/webapp/resources/dia_te.txt+++ b/src/main/webapp/resources/dia_te.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_th.txt b/src/main/webapp/resources/dia_th.txtindex b61ae15b1..2843bfe2c 100644--- a/src/main/webapp/resources/dia_th.txt+++ b/src/main/webapp/resources/dia_th.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_tr.txt b/src/main/webapp/resources/dia_tr.txtindex c1dac941f..a1c442c2c 100644--- a/src/main/webapp/resources/dia_tr.txt+++ b/src/main/webapp/resources/dia_tr.txt@@ -1014,7 +1014,6 @@ character=KarakterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_uk.txt b/src/main/webapp/resources/dia_uk.txtindex d033cee2b..ff7767b10 100644--- a/src/main/webapp/resources/dia_uk.txt+++ b/src/main/webapp/resources/dia_uk.txt@@ -1014,7 +1014,6 @@ character=СімволconfAConfPageDesc=Ця сторінка містить конфігураційний файл draw.io (configuration.json) як вкладенняconfALibPageDesc=Ця сторінка містить користувальницькі бібліотеки як вкладенняconfATempPageDesc=Ця сторінка містить користувальницькі шаблони як вкладення-working=ПрацююconfAConfSpaceDesc=Цей простір використовується для зберігання конфігураційних файлів draw.io та користувальницькіх бібліотек/шаблонівconfANoCustLib=Нема користувальницькіх бібліотекdelFailed=Видалення не вдалося!diff --git a/src/main/webapp/resources/dia_vi.txt b/src/main/webapp/resources/dia_vi.txtindex 8f2889cc7..bb3a4e3ad 100644--- a/src/main/webapp/resources/dia_vi.txt+++ b/src/main/webapp/resources/dia_vi.txt@@ -1014,7 +1014,6 @@ character=CharacterconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=Delete failed!diff --git a/src/main/webapp/resources/dia_zh-tw.txt b/src/main/webapp/resources/dia_zh-tw.txtindex 5ee0825ce..ddb3356df 100644--- a/src/main/webapp/resources/dia_zh-tw.txt+++ b/src/main/webapp/resources/dia_zh-tw.txt@@ -1014,7 +1014,6 @@ character=字元confAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachmentconfALibPageDesc=This page contains draw.io custom libraries as attachmentsconfATempPageDesc=This page contains draw.io custom templates as attachments-working=WorkingconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templatesconfANoCustLib=No Custom LibrariesdelFailed=刪除失敗!diff --git a/src/main/webapp/resources/dia_zh.txt b/src/main/webapp/resources/dia_zh.txtindex aaa1a6f4b..6c59d6f05 100644--- a/src/main/webapp/resources/dia_zh.txt+++ b/src/main/webapp/resources/dia_zh.txt@@ -1014,7 +1014,6 @@ character=字符confAConfPageDesc=此页面包含 draw.io 配置文件 (configuration.json) 附件confALibPageDesc=此页面包含 draw.io 自定义库附件confATempPageDesc=此页面包含 draw.io 自定义模板附件-working=WorkingconfAConfSpaceDesc=此空间用于存储 draw.io 配置文件以及自定义库和模板confANoCustLib=没有自定义库delFailed=删除失败!diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.jsindex 239693d60..f5c07ec01 100644--- a/src/main/webapp/service-worker.js+++ b/src/main/webapp/service-worker.js@@ -1,2 +1,2 @@-if(!self.define){let e,i={};const r=(r,a)=>(r=new URL(r+".js",a).href,i[r]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=i,document.head.appendChild(e)}else e=r,importScripts(r),i()})).then((()=>{let e=i[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(a,c)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(i[s])return;let d={};const o=e=>r(e,s),f={module:{uri:s},exports:d,require:o};i[s]=Promise.all(a.map((e=>f[e]||o(e)))).then((e=>(c(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/app.min.js",revision:"6343026eeb52bda9bf8b51c75f0b2a4d"},{url:"js/extensions.min.js",revision:"94ab8fc247de742146e5cc8ea27307c6"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"f760278d924467fb1d2289448c73fe27"},{url:"js/shapes-14-6-5.min.js",revision:"71913a30c93bc9aff182a3a2b3da1a21"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"57fe6012597666439de3e76c9bb681c1"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"1c4b010eb053bfb9aed1caee8a3d3689"},{url:"styles/atlas.css",revision:"05873c4bba51f571b1da549a967ea06c"},{url:"styles/dark.css",revision:"99dc5495d36d5ebaddababefde083c8c"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"517f8a2042bbb2fd4d16d21c847f17f3"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"75f816c208d0c621e3066a97ff0ee6cf"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"c41221a9a51ff293f05ed13c7b142e5c"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"d3269625ce04b7a277b779ff175957d0"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"c4cb6b60234b04b2c8bc09e555746615"},{url:"plugins/cConf-comments.js",revision:"8af574bd1ae86be37b83b094a5011a4f"},{url:"plugins/cConf-1-4-8.js",revision:"0b1c0d105b4cc2c228fbcdd7d09310ae"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"261a7494161cee976ecfb110ac7571d2"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"b82e366bf57ecced9435c2a8ba9cb9b9"},{url:"connect/confluence/viewer.js",revision:"6542434cf3df5c60163e2767678f1bfc"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"30ff609b31d4a8c38da6c28e555947ea"},{url:"connect/confluence/includeDiagram.html",revision:"9613fec05b19ddef081ca6e9d8b057bf"},{url:"connect/confluence/macro-editor.js",revision:"03a8dcfc69612b44b6e75e6926a956fc"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"a726a58a2d59523ca753f8b0903532ee"},{url:"resources/dia_am.txt",revision:"f7a8e69eebd1d8f0c2f6a70f400f41a3"},{url:"resources/dia_ar.txt",revision:"65016a8534f38bf6da6f376885d4d69b"},{url:"resources/dia_bg.txt",revision:"d22ffbc3b9f16db712de7b1599713ddb"},{url:"resources/dia_bn.txt",revision:"27fdbdec421253a9b34a6b774adb84ad"},{url:"resources/dia_bs.txt",revision:"bed197c99542dff2f0cfa06ffa5bb12e"},{url:"resources/dia_ca.txt",revision:"53517047fa990942ca8072117a8dc811"},{url:"resources/dia_cs.txt",revision:"8827f488d3a442b743c14fda3cf76d0c"},{url:"resources/dia_da.txt",revision:"b270690419e09c2146e2e6c86c4b76ec"},{url:"resources/dia_de.txt",revision:"0460823830c493a9fc6233026653e8c8"},{url:"resources/dia_el.txt",revision:"3a8c65931767aee90a613d1e8d3e2335"},{url:"resources/dia_eo.txt",revision:"dbd3a69346a7337e52dce734525dea8d"},{url:"resources/dia_es.txt",revision:"ee605383ddb2e211fda1d3610e433e5a"},{url:"resources/dia_et.txt",revision:"4588d8aeadd4e4de360e1cfc2bb56a56"},{url:"resources/dia_eu.txt",revision:"95a8404f4821b4be9021549275e4ae52"},{url:"resources/dia_fa.txt",revision:"0ae92f3d8a33fe0068710ddfc5106cf4"},{url:"resources/dia_fi.txt",revision:"3df4e7235950196c45ca1d9a3c50c7da"},{url:"resources/dia_fil.txt",revision:"d980d719b67fe354964d6757331270e9"},{url:"resources/dia_fr.txt",revision:"c5f64561a12f9b50bac2e325bc5fe4f6"},{url:"resources/dia_gl.txt",revision:"962c461b66718b0340c339b42d99c3fe"},{url:"resources/dia_gu.txt",revision:"15fe4cfedc6f83d0e8f63c5ffb05fa77"},{url:"resources/dia_he.txt",revision:"d58a014851bc8dd145b2c771185c1e33"},{url:"resources/dia_hi.txt",revision:"832093a7a401d574a5f896b4ed4122af"},{url:"resources/dia_hr.txt",revision:"fe57292f5d617ee3eef396714f22ccd0"},{url:"resources/dia_hu.txt",revision:"38c44f5f307a289c42be8587b536eba7"},{url:"resources/dia_id.txt",revision:"dacaf8327a6dca3b0d2fc2ce66f058ef"},{url:"resources/dia_it.txt",revision:"7b1bc2cb511d92ef8f76ff7133a3f035"},{url:"resources/dia_ja.txt",revision:"1322e77f9672c020104bdb179ea7f90d"},{url:"resources/dia_kn.txt",revision:"828501585da7ca9a18beff8e45371c03"},{url:"resources/dia_ko.txt",revision:"ad8459e751d7d5ef360c3443f466e0f8"},{url:"resources/dia_lt.txt",revision:"154efafa92951ea901c6d3ffaca044fe"},{url:"resources/dia_lv.txt",revision:"1fa2d0067f6532b26dfcb0fe83a980e9"},{url:"resources/dia_ml.txt",revision:"a2a67d628adf4aedc0a100e8bd0fcc03"},{url:"resources/dia_mr.txt",revision:"185d046dda09b25c8506b59571fa0cb8"},{url:"resources/dia_ms.txt",revision:"8edf40f4033e9274a823e40c7432c106"},{url:"resources/dia_my.txt",revision:"323eaa97b615ae165080606a2b71c3fb"},{url:"resources/dia_nl.txt",revision:"5b11e87d0936e74a1ff96d577afe0236"},{url:"resources/dia_no.txt",revision:"6c456ca98d726f1ea97820939e6cd54c"},{url:"resources/dia_pl.txt",revision:"9eb8e3085201cc6856fb1ac680950c5d"},{url:"resources/dia_pt-br.txt",revision:"4ad4b10582380b1f4dabaf890e5e7622"},{url:"resources/dia_pt.txt",revision:"a8f441d6fe23bbb3ea14f792e18c09a9"},{url:"resources/dia_ro.txt",revision:"9a20019c05c86c92dc46007b6055c151"},{url:"resources/dia_ru.txt",revision:"814e7dc74061cafb7949906af277d78c"},{url:"resources/dia_si.txt",revision:"6a434bb202a421077e8b7ed63ac231b1"},{url:"resources/dia_sk.txt",revision:"e883518f5cbc4f4f216b60764cf0f057"},{url:"resources/dia_sl.txt",revision:"d66b17e155e3bfe410b3648f139a8cdc"},{url:"resources/dia_sr.txt",revision:"5b421e26c8bc23d7b530746317b0363c"},{url:"resources/dia_sv.txt",revision:"54f5357ef865f19267633c3972189ba0"},{url:"resources/dia_sw.txt",revision:"f2417d57409c8c5f272e83c8238ef42e"},{url:"resources/dia_ta.txt",revision:"b8fc87e296a2cfe5cf0e7bc00e9e37dd"},{url:"resources/dia_te.txt",revision:"87705e0f363b0dd3b191e2f24c5f21b0"},{url:"resources/dia_th.txt",revision:"6b9767d5418e9ec658b61725f9bd8f06"},{url:"resources/dia_tr.txt",revision:"13ae94ba7bf69f8f46b24010293356df"},{url:"resources/dia_uk.txt",revision:"c8c88609ae31bead9e2eab1e04aa215d"},{url:"resources/dia_vi.txt",revision:"258761d474d278d597f93f9002890302"},{url:"resources/dia_zh-tw.txt",revision:"41019f97cd5318cd12f0249f9d848c86"},{url:"resources/dia_zh.txt",revision:"bfda714d8cf978bbec05065dce4fb747"},{url:"favicon.ico",revision:"83014b0f32b6c7b15b66cf3c6d6d7c16"},{url:"images/manifest.json",revision:"38d3a7e4b63e8175f0aab6f03e000f07"},{url:"images/logo.png",revision:"e4e0d092abdb1e668b5ec41a7fe0713c"},{url:"images/drawlogo.svg",revision:"4bf4d14ebcf072d8bd4c5a1c89e88fc6"},{url:"images/drawlogo48.png",revision:"8b13428373aca67b895364d025f42417"},{url:"images/drawlogo-gray.svg",revision:"0aabacbc0873816e1e09e4736ae44c7d"},{url:"images/drawlogo-text-bottom.svg",revision:"f6c438823ab31f290940bd4feb8dd9c2"},{url:"images/default-user.jpg",revision:"2c399696a87c8921f12d2f9e1990cc6e"},{url:"images/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"732c29e21332a926318a7005d21ec450"},{url:"images/icon-192-maskable.png",revision:"47e006d0ce4a35eb5beaa97f0c2bfed0"},{url:"images/icon-192.png",revision:"d022403d52435d76afec82c4e24a17ef"},{url:"images/icon-512-maskable.png",revision:"cf152feeb01fb21f3148a71a3540266e"},{url:"images/icon-512.png",revision:"a3a0df7e7a385244b74073f81ecc45de"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{url:"images/help.png",revision:"9266c6c3915bd33c243d80037d37bf61"},{url:"images/download.png",revision:"35418dd7bd48d87502c71b578cc6c37f"},{url:"images/logo-flat.png",revision:"038070ab43aee6e54a791211859fc67b"},{url:"images/google-drive-logo.svg",revision:"5d9f2f5bbc7dcc252730a0072bb23059"},{url:"images/onedrive-logo.svg",revision:"3645b344ec0634c1290dd58d7dc87b97"},{url:"images/dropbox-logo.svg",revision:"e6be408c77cf9c82d41ac64fa854280a"},{url:"images/github-logo.svg",revision:"a1a999b69a275eac0cb918360ac05ae1"},{url:"images/gitlab-logo.svg",revision:"0faea8c818899e58533e153c44b10517"},{url:"images/trello-logo.svg",revision:"006fd0d7d70d7e95dc691674cb12e044"},{url:"images/osa_drive-harddisk.png",revision:"b954e1ae772087c5b4c6ae797e1f9649"},{url:"images/osa_database.png",revision:"c350d9d9b95f37b6cfe798b40ede5fb0"},{url:"images/google-drive-logo-white.svg",revision:"f329d8b1be7778515a85b93fc35d9f26"},{url:"images/dropbox-logo-white.svg",revision:"4ea8299ac3bc31a16f199ee3aec223bf"},{url:"images/onedrive-logo-white.svg",revision:"b3602fa0fc947009cff3f33a581cff4d"},{url:"images/github-logo-white.svg",revision:"537b1127b3ca0f95b45782d1304fb77a"},{url:"images/gitlab-logo-white.svg",revision:"5fede9ac2f394c716b8c23e3fddc3910"},{url:"images/trello-logo-white-orange.svg",revision:"e2a0a52ba3766682f138138d10a75eb5"},{url:"images/logo-confluence.png",revision:"ed1e55d44ae5eba8f999aba2c93e8331"},{url:"images/logo-jira.png",revision:"f8d460555a0d1f87cfd901e940666629"},{url:"images/clear.gif",revision:"db13c778e4382e0b55258d0f811d5d70"},{url:"images/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/checkmark.gif",revision:"ba764ce62f2bf952df5bbc2bb4d381c5"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"7985b4d1692766a7db52cbdd10893ad9"},{url:"mxgraph/images/expanded.gif",revision:"2b67c2c035af1e9a5cc814f0d22074cf"},{url:"mxgraph/images/collapsed.gif",revision:"73cc826da002a3d740ca4ce6ec5c1f4a"},{url:"mxgraph/images/maximize.gif",revision:"5cd13d6925493ab51e876694cc1c2ec2"},{url:"mxgraph/images/minimize.gif",revision:"8957741b9b0f86af9438775f2aadbb54"},{url:"mxgraph/images/close.gif",revision:"8b84669812ac7382984fca35de8da48b"},{url:"mxgraph/images/resize.gif",revision:"a6477612b3567a34033f9cac6184eed3"},{url:"mxgraph/images/separator.gif",revision:"7819742ff106c97da7a801c2372bbbe5"},{url:"mxgraph/images/window.gif",revision:"fd9a21dd4181f98052a202a0a01f18ab"},{url:"mxgraph/images/window-title.gif",revision:"3fb1d6c43246cdf991a11dfe826dfe99"},{url:"mxgraph/images/button.gif",revision:"00759bdc3ad218fa739f584369541809"},{url:"mxgraph/images/point.gif",revision:"83a43717b284902442620f61bc4e9fa6"}],{ignoreURLParametersMatching:[/.*/]})}));+if(!self.define){let e,i={};const r=(r,a)=>(r=new URL(r+".js",a).href,i[r]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=i,document.head.appendChild(e)}else e=r,importScripts(r),i()})).then((()=>{let e=i[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(a,c)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(i[s])return;let d={};const o=e=>r(e,s),f={module:{uri:s},exports:d,require:o};i[s]=Promise.all(a.map((e=>f[e]||o(e)))).then((e=>(c(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/app.min.js",revision:"527b7ed64706021969864a9181cab6d0"},{url:"js/extensions.min.js",revision:"6214024dcc723ed8bc6b4ef398ccc315"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"f760278d924467fb1d2289448c73fe27"},{url:"js/shapes-14-6-5.min.js",revision:"71913a30c93bc9aff182a3a2b3da1a21"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"57fe6012597666439de3e76c9bb681c1"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"1c4b010eb053bfb9aed1caee8a3d3689"},{url:"styles/atlas.css",revision:"05873c4bba51f571b1da549a967ea06c"},{url:"styles/dark.css",revision:"99dc5495d36d5ebaddababefde083c8c"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"cd2826605b71c836086f287074d6735a"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"75f816c208d0c621e3066a97ff0ee6cf"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"c41221a9a51ff293f05ed13c7b142e5c"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"d3269625ce04b7a277b779ff175957d0"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"c4cb6b60234b04b2c8bc09e555746615"},{url:"plugins/cConf-comments.js",revision:"8af574bd1ae86be37b83b094a5011a4f"},{url:"plugins/cConf-1-4-8.js",revision:"0b1c0d105b4cc2c228fbcdd7d09310ae"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"261a7494161cee976ecfb110ac7571d2"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"b82e366bf57ecced9435c2a8ba9cb9b9"},{url:"connect/confluence/viewer.js",revision:"6542434cf3df5c60163e2767678f1bfc"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"30ff609b31d4a8c38da6c28e555947ea"},{url:"connect/confluence/includeDiagram.html",revision:"9613fec05b19ddef081ca6e9d8b057bf"},{url:"connect/confluence/macro-editor.js",revision:"03a8dcfc69612b44b6e75e6926a956fc"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"b44638cfed6404ac07cb82d0ee7d0437"},{url:"resources/dia_am.txt",revision:"0b1eb26b186aacfd5b6d67f88d144d0b"},{url:"resources/dia_ar.txt",revision:"bed70fa15f59b312c168b9ef9528d578"},{url:"resources/dia_bg.txt",revision:"1c846465cb20bf155acc937ba8cbc446"},{url:"resources/dia_bn.txt",revision:"0a7cc401f17390b415417153d8b87b84"},{url:"resources/dia_bs.txt",revision:"b5908edbf7e697b23a2bf90adcbb49c7"},{url:"resources/dia_ca.txt",revision:"c745e8f057b24e85f3f0eecba7af19eb"},{url:"resources/dia_cs.txt",revision:"5e0cf43a649bfdcd56bbebfba6db00ca"},{url:"resources/dia_da.txt",revision:"4766eaa4150ecbe04b89f767835b9406"},{url:"resources/dia_de.txt",revision:"4f0596f7aedfbb808095762f0bd63306"},{url:"resources/dia_el.txt",revision:"a8fa799c3eda7ed001ef011a1e5806dd"},{url:"resources/dia_eo.txt",revision:"6bd806494299f0ac942d1ca21c065478"},{url:"resources/dia_es.txt",revision:"5ea8d76e6966383bcc92bbc4752db5db"},{url:"resources/dia_et.txt",revision:"70aa0cb2ecbbe167a3e4a38aac6dbbdc"},{url:"resources/dia_eu.txt",revision:"1e5419dbdd0da6a6be4e9c48bd99220f"},{url:"resources/dia_fa.txt",revision:"13be854b8db535400e1cd1ec245e740e"},{url:"resources/dia_fi.txt",revision:"8947362d39bee93460c0d86713ee65b7"},{url:"resources/dia_fil.txt",revision:"74efdec615b1003983f77aa12834a75c"},{url:"resources/dia_fr.txt",revision:"8dd13eaca0fcd7e41072c571c201d661"},{url:"resources/dia_gl.txt",revision:"6e09dfae5d18a933d3bc11ba5de44f3c"},{url:"resources/dia_gu.txt",revision:"b9837957b0ca73e4414377b53b53a70b"},{url:"resources/dia_he.txt",revision:"7a8aef0306c6a94f6872896d219d1dc4"},{url:"resources/dia_hi.txt",revision:"3029801be7a36b67a29314a04d5d7d42"},{url:"resources/dia_hr.txt",revision:"57b724efdceb29d21ca8a64c59350b1a"},{url:"resources/dia_hu.txt",revision:"818262e6bcb84ed26563611045490649"},{url:"resources/dia_id.txt",revision:"71d0eb41a8336acdfff7a405c609e18f"},{url:"resources/dia_it.txt",revision:"c3574cb9042adcaea63a3944a09c518e"},{url:"resources/dia_ja.txt",revision:"1c3d11a6636c946d5a22ea52889a19e7"},{url:"resources/dia_kn.txt",revision:"457144ed2c2f51a5ec1d383cbfe9bbf7"},{url:"resources/dia_ko.txt",revision:"e20f9bd4bbf52bf9e3df6e92d7ee1722"},{url:"resources/dia_lt.txt",revision:"bd25b4eab36f6d663c66e4c957b8ef60"},{url:"resources/dia_lv.txt",revision:"e8d8899460a1c81632d7cac287f15354"},{url:"resources/dia_ml.txt",revision:"3b20dfcc809d4b13e3e705a1ae5fbc9f"},{url:"resources/dia_mr.txt",revision:"dd27583c966df6663526af940f7df5d6"},{url:"resources/dia_ms.txt",revision:"253bfb31cf6c8af7ff65527a9137bb9d"},{url:"resources/dia_my.txt",revision:"15f93018ad77289defe0d26df43c6846"},{url:"resources/dia_nl.txt",revision:"abc7305430780a7f3a611e95aa3d6d11"},{url:"resources/dia_no.txt",revision:"cc385ba00d44d6b025fc8b2cffc6721f"},{url:"resources/dia_pl.txt",revision:"485155d3dc8c3d20f42d2ce4689a225f"},{url:"resources/dia_pt-br.txt",revision:"d0bbfa8e826a73098fed085a83a72cdd"},{url:"resources/dia_pt.txt",revision:"18907cf9172320e86fa8aa2a91090ec7"},{url:"resources/dia_ro.txt",revision:"0581872bd0fe468143c7dba864257020"},{url:"resources/dia_ru.txt",revision:"c3789211d3006115131baeea8aab53f7"},{url:"resources/dia_si.txt",revision:"6905439a8ccb386864df2d708be0e8a2"},{url:"resources/dia_sk.txt",revision:"e05d29a790dab92f32a46d0228b5b696"},{url:"resources/dia_sl.txt",revision:"32608759b877e9e942ce209695e841f4"},{url:"resources/dia_sr.txt",revision:"4633d649f40d5b7cf610b6eeb7e6c840"},{url:"resources/dia_sv.txt",revision:"f81f1c1af4df00d757781e3d3b856e05"},{url:"resources/dia_sw.txt",revision:"4f7f39ab83d4ce75b980e1be971ee910"},{url:"resources/dia_ta.txt",revision:"9a768d64f80c5e1887b412f1a4cd1c3b"},{url:"resources/dia_te.txt",revision:"476a89c596d24e1b1d80f90b76eea1b5"},{url:"resources/dia_th.txt",revision:"6c98c7c4d45c2c260be975ba4db965d3"},{url:"resources/dia_tr.txt",revision:"a4f04603060a5f900fefe32e7aa858a9"},{url:"resources/dia_uk.txt",revision:"2a9c088b5a04a843af42911a0e203fc9"},{url:"resources/dia_vi.txt",revision:"7ada081c11fd313ceee6f51bbc166e34"},{url:"resources/dia_zh-tw.txt",revision:"24281a99696e767ff085dfd6c49a3fe9"},{url:"resources/dia_zh.txt",revision:"3128f6e90a0db91c9d6adcdb94ca7522"},{url:"favicon.ico",revision:"83014b0f32b6c7b15b66cf3c6d6d7c16"},{url:"images/manifest.json",revision:"38d3a7e4b63e8175f0aab6f03e000f07"},{url:"images/logo.png",revision:"e4e0d092abdb1e668b5ec41a7fe0713c"},{url:"images/drawlogo.svg",revision:"4bf4d14ebcf072d8bd4c5a1c89e88fc6"},{url:"images/drawlogo48.png",revision:"8b13428373aca67b895364d025f42417"},{url:"images/drawlogo-gray.svg",revision:"0aabacbc0873816e1e09e4736ae44c7d"},{url:"images/drawlogo-text-bottom.svg",revision:"f6c438823ab31f290940bd4feb8dd9c2"},{url:"images/default-user.jpg",revision:"2c399696a87c8921f12d2f9e1990cc6e"},{url:"images/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"732c29e21332a926318a7005d21ec450"},{url:"images/icon-192-maskable.png",revision:"47e006d0ce4a35eb5beaa97f0c2bfed0"},{url:"images/icon-192.png",revision:"d022403d52435d76afec82c4e24a17ef"},{url:"images/icon-512-maskable.png",revision:"cf152feeb01fb21f3148a71a3540266e"},{url:"images/icon-512.png",revision:"a3a0df7e7a385244b74073f81ecc45de"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{url:"images/help.png",revision:"9266c6c3915bd33c243d80037d37bf61"},{url:"images/download.png",revision:"35418dd7bd48d87502c71b578cc6c37f"},{url:"images/logo-flat.png",revision:"038070ab43aee6e54a791211859fc67b"},{url:"images/google-drive-logo.svg",revision:"5d9f2f5bbc7dcc252730a0072bb23059"},{url:"images/onedrive-logo.svg",revision:"3645b344ec0634c1290dd58d7dc87b97"},{url:"images/dropbox-logo.svg",revision:"e6be408c77cf9c82d41ac64fa854280a"},{url:"images/github-logo.svg",revision:"a1a999b69a275eac0cb918360ac05ae1"},{url:"images/gitlab-logo.svg",revision:"0faea8c818899e58533e153c44b10517"},{url:"images/trello-logo.svg",revision:"006fd0d7d70d7e95dc691674cb12e044"},{url:"images/osa_drive-harddisk.png",revision:"b954e1ae772087c5b4c6ae797e1f9649"},{url:"images/osa_database.png",revision:"c350d9d9b95f37b6cfe798b40ede5fb0"},{url:"images/google-drive-logo-white.svg",revision:"f329d8b1be7778515a85b93fc35d9f26"},{url:"images/dropbox-logo-white.svg",revision:"4ea8299ac3bc31a16f199ee3aec223bf"},{url:"images/onedrive-logo-white.svg",revision:"b3602fa0fc947009cff3f33a581cff4d"},{url:"images/github-logo-white.svg",revision:"537b1127b3ca0f95b45782d1304fb77a"},{url:"images/gitlab-logo-white.svg",revision:"5fede9ac2f394c716b8c23e3fddc3910"},{url:"images/trello-logo-white-orange.svg",revision:"e2a0a52ba3766682f138138d10a75eb5"},{url:"images/logo-confluence.png",revision:"ed1e55d44ae5eba8f999aba2c93e8331"},{url:"images/logo-jira.png",revision:"f8d460555a0d1f87cfd901e940666629"},{url:"images/clear.gif",revision:"db13c778e4382e0b55258d0f811d5d70"},{url:"images/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/checkmark.gif",revision:"ba764ce62f2bf952df5bbc2bb4d381c5"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"7985b4d1692766a7db52cbdd10893ad9"},{url:"mxgraph/images/expanded.gif",revision:"2b67c2c035af1e9a5cc814f0d22074cf"},{url:"mxgraph/images/collapsed.gif",revision:"73cc826da002a3d740ca4ce6ec5c1f4a"},{url:"mxgraph/images/maximize.gif",revision:"5cd13d6925493ab51e876694cc1c2ec2"},{url:"mxgraph/images/minimize.gif",revision:"8957741b9b0f86af9438775f2aadbb54"},{url:"mxgraph/images/close.gif",revision:"8b84669812ac7382984fca35de8da48b"},{url:"mxgraph/images/resize.gif",revision:"a6477612b3567a34033f9cac6184eed3"},{url:"mxgraph/images/separator.gif",revision:"7819742ff106c97da7a801c2372bbbe5"},{url:"mxgraph/images/window.gif",revision:"fd9a21dd4181f98052a202a0a01f18ab"},{url:"mxgraph/images/window-title.gif",revision:"3fb1d6c43246cdf991a11dfe826dfe99"},{url:"mxgraph/images/button.gif",revision:"00759bdc3ad218fa739f584369541809"},{url:"mxgraph/images/point.gif",revision:"83a43717b284902442620f61bc4e9fa6"}],{ignoreURLParametersMatching:[/.*/]})}));//# sourceMappingURL=service-worker.js.mapdiff --git a/src/main/webapp/service-worker.js.map b/src/main/webapp/service-worker.js.mapindex 03adb4889..e61eee539 100644--- a/src/main/webapp/service-worker.js.map+++ b/src/main/webapp/service-worker.js.map@@ -1 +1 @@-{"version":3,"file":"service-worker.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/345940593e5bcdd4e1ce068e6abeb4ae/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"6343026eeb52bda9bf8b51c75f0b2a4d\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"94ab8fc247de742146e5cc8ea27307c6\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"f760278d924467fb1d2289448c73fe27\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"71913a30c93bc9aff182a3a2b3da1a21\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"57fe6012597666439de3e76c9bb681c1\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"shortcuts.svg\",\n \"revision\": \"2381dd779ce6cfee954042a7f784c7e6\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"1c4b010eb053bfb9aed1caee8a3d3689\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"05873c4bba51f571b1da549a967ea06c\"\n },\n {\n \"url\": \"styles/dark.css\",\n \"revision\": \"99dc5495d36d5ebaddababefde083c8c\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"517f8a2042bbb2fd4d16d21c847f17f3\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"75f816c208d0c621e3066a97ff0ee6cf\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"c41221a9a51ff293f05ed13c7b142e5c\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"d3269625ce04b7a277b779ff175957d0\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"c4cb6b60234b04b2c8bc09e555746615\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"8af574bd1ae86be37b83b094a5011a4f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"0b1c0d105b4cc2c228fbcdd7d09310ae\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"261a7494161cee976ecfb110ac7571d2\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"b82e366bf57ecced9435c2a8ba9cb9b9\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"6542434cf3df5c60163e2767678f1bfc\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"30ff609b31d4a8c38da6c28e555947ea\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"9613fec05b19ddef081ca6e9d8b057bf\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"03a8dcfc69612b44b6e75e6926a956fc\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"a726a58a2d59523ca753f8b0903532ee\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"f7a8e69eebd1d8f0c2f6a70f400f41a3\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"65016a8534f38bf6da6f376885d4d69b\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"d22ffbc3b9f16db712de7b1599713ddb\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"27fdbdec421253a9b34a6b774adb84ad\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"bed197c99542dff2f0cfa06ffa5bb12e\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"53517047fa990942ca8072117a8dc811\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"8827f488d3a442b743c14fda3cf76d0c\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"b270690419e09c2146e2e6c86c4b76ec\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"0460823830c493a9fc6233026653e8c8\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"3a8c65931767aee90a613d1e8d3e2335\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"dbd3a69346a7337e52dce734525dea8d\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"ee605383ddb2e211fda1d3610e433e5a\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"4588d8aeadd4e4de360e1cfc2bb56a56\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"95a8404f4821b4be9021549275e4ae52\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"0ae92f3d8a33fe0068710ddfc5106cf4\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"3df4e7235950196c45ca1d9a3c50c7da\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"d980d719b67fe354964d6757331270e9\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"c5f64561a12f9b50bac2e325bc5fe4f6\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"962c461b66718b0340c339b42d99c3fe\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"15fe4cfedc6f83d0e8f63c5ffb05fa77\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"d58a014851bc8dd145b2c771185c1e33\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"832093a7a401d574a5f896b4ed4122af\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"fe57292f5d617ee3eef396714f22ccd0\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"38c44f5f307a289c42be8587b536eba7\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"dacaf8327a6dca3b0d2fc2ce66f058ef\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"7b1bc2cb511d92ef8f76ff7133a3f035\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"1322e77f9672c020104bdb179ea7f90d\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"828501585da7ca9a18beff8e45371c03\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"ad8459e751d7d5ef360c3443f466e0f8\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"154efafa92951ea901c6d3ffaca044fe\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"1fa2d0067f6532b26dfcb0fe83a980e9\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"a2a67d628adf4aedc0a100e8bd0fcc03\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"185d046dda09b25c8506b59571fa0cb8\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"8edf40f4033e9274a823e40c7432c106\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"323eaa97b615ae165080606a2b71c3fb\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"5b11e87d0936e74a1ff96d577afe0236\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"6c456ca98d726f1ea97820939e6cd54c\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"9eb8e3085201cc6856fb1ac680950c5d\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"4ad4b10582380b1f4dabaf890e5e7622\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"a8f441d6fe23bbb3ea14f792e18c09a9\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"9a20019c05c86c92dc46007b6055c151\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"814e7dc74061cafb7949906af277d78c\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"6a434bb202a421077e8b7ed63ac231b1\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"e883518f5cbc4f4f216b60764cf0f057\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"d66b17e155e3bfe410b3648f139a8cdc\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"5b421e26c8bc23d7b530746317b0363c\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"54f5357ef865f19267633c3972189ba0\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"f2417d57409c8c5f272e83c8238ef42e\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"b8fc87e296a2cfe5cf0e7bc00e9e37dd\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"87705e0f363b0dd3b191e2f24c5f21b0\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"6b9767d5418e9ec658b61725f9bd8f06\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"13ae94ba7bf69f8f46b24010293356df\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"c8c88609ae31bead9e2eab1e04aa215d\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"258761d474d278d597f93f9002890302\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"41019f97cd5318cd12f0249f9d848c86\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"bfda714d8cf978bbec05065dce4fb747\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"83014b0f32b6c7b15b66cf3c6d6d7c16\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"38d3a7e4b63e8175f0aab6f03e000f07\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"e4e0d092abdb1e668b5ec41a7fe0713c\"\n },\n {\n \"url\": \"images/drawlogo.svg\",\n \"revision\": \"4bf4d14ebcf072d8bd4c5a1c89e88fc6\"\n },\n {\n \"url\": \"images/drawlogo48.png\",\n \"revision\": \"8b13428373aca67b895364d025f42417\"\n },\n {\n \"url\": \"images/drawlogo-gray.svg\",\n \"revision\": \"0aabacbc0873816e1e09e4736ae44c7d\"\n },\n {\n \"url\": \"images/drawlogo-text-bottom.svg\",\n \"revision\": \"f6c438823ab31f290940bd4feb8dd9c2\"\n },\n {\n \"url\": \"images/default-user.jpg\",\n \"revision\": \"2c399696a87c8921f12d2f9e1990cc6e\"\n },\n {\n \"url\": \"images/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"732c29e21332a926318a7005d21ec450\"\n },\n {\n \"url\": \"images/icon-192-maskable.png\",\n \"revision\": \"47e006d0ce4a35eb5beaa97f0c2bfed0\"\n },\n {\n \"url\": \"images/icon-192.png\",\n \"revision\": \"d022403d52435d76afec82c4e24a17ef\"\n },\n {\n \"url\": \"images/icon-512-maskable.png\",\n \"revision\": \"cf152feeb01fb21f3148a71a3540266e\"\n },\n {\n \"url\": \"images/icon-512.png\",\n \"revision\": \"a3a0df7e7a385244b74073f81ecc45de\"\n },\n {\n \"url\": \"images/delete.png\",\n \"revision\": \"5f2350f2fd20f1a229637aed32ed8f29\"\n },\n {\n \"url\": \"images/droptarget.png\",\n \"revision\": \"bbf7f563fb6784de1ce96f329519b043\"\n },\n {\n \"url\": \"images/help.png\",\n \"revision\": \"9266c6c3915bd33c243d80037d37bf61\"\n },\n {\n \"url\": \"images/download.png\",\n \"revision\": \"35418dd7bd48d87502c71b578cc6c37f\"\n },\n {\n \"url\": \"images/logo-flat.png\",\n \"revision\": \"038070ab43aee6e54a791211859fc67b\"\n },\n {\n \"url\": \"images/google-drive-logo.svg\",\n \"revision\": \"5d9f2f5bbc7dcc252730a0072bb23059\"\n },\n {\n \"url\": \"images/onedrive-logo.svg\",\n \"revision\": \"3645b344ec0634c1290dd58d7dc87b97\"\n },\n {\n \"url\": \"images/dropbox-logo.svg\",\n \"revision\": \"e6be408c77cf9c82d41ac64fa854280a\"\n },\n {\n \"url\": \"images/github-logo.svg\",\n \"revision\": \"a1a999b69a275eac0cb918360ac05ae1\"\n },\n {\n \"url\": \"images/gitlab-logo.svg\",\n \"revision\": \"0faea8c818899e58533e153c44b10517\"\n },\n {\n \"url\": \"images/trello-logo.svg\",\n \"revision\": \"006fd0d7d70d7e95dc691674cb12e044\"\n },\n {\n \"url\": \"images/osa_drive-harddisk.png\",\n \"revision\": \"b954e1ae772087c5b4c6ae797e1f9649\"\n },\n {\n \"url\": \"images/osa_database.png\",\n \"revision\": \"c350d9d9b95f37b6cfe798b40ede5fb0\"\n },\n {\n \"url\": \"images/google-drive-logo-white.svg\",\n \"revision\": \"f329d8b1be7778515a85b93fc35d9f26\"\n },\n {\n \"url\": \"images/dropbox-logo-white.svg\",\n \"revision\": \"4ea8299ac3bc31a16f199ee3aec223bf\"\n },\n {\n \"url\": \"images/onedrive-logo-white.svg\",\n \"revision\": \"b3602fa0fc947009cff3f33a581cff4d\"\n },\n {\n \"url\": \"images/github-logo-white.svg\",\n \"revision\": \"537b1127b3ca0f95b45782d1304fb77a\"\n },\n {\n \"url\": \"images/gitlab-logo-white.svg\",\n \"revision\": \"5fede9ac2f394c716b8c23e3fddc3910\"\n },\n {\n \"url\": \"images/trello-logo-white-orange.svg\",\n \"revision\": \"e2a0a52ba3766682f138138d10a75eb5\"\n },\n {\n \"url\": \"images/logo-confluence.png\",\n \"revision\": \"ed1e55d44ae5eba8f999aba2c93e8331\"\n },\n {\n \"url\": \"images/logo-jira.png\",\n \"revision\": \"f8d460555a0d1f87cfd901e940666629\"\n },\n {\n \"url\": \"images/clear.gif\",\n \"revision\": \"db13c778e4382e0b55258d0f811d5d70\"\n },\n {\n \"url\": \"images/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/checkmark.gif\",\n \"revision\": \"ba764ce62f2bf952df5bbc2bb4d381c5\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"7985b4d1692766a7db52cbdd10893ad9\"\n },\n {\n \"url\": \"mxgraph/images/expanded.gif\",\n \"revision\": \"2b67c2c035af1e9a5cc814f0d22074cf\"\n },\n {\n \"url\": \"mxgraph/images/collapsed.gif\",\n \"revision\": \"73cc826da002a3d740ca4ce6ec5c1f4a\"\n },\n {\n \"url\": \"mxgraph/images/maximize.gif\",\n \"revision\": \"5cd13d6925493ab51e876694cc1c2ec2\"\n },\n {\n \"url\": \"mxgraph/images/minimize.gif\",\n \"revision\": \"8957741b9b0f86af9438775f2aadbb54\"\n },\n {\n \"url\": \"mxgraph/images/close.gif\",\n \"revision\": \"8b84669812ac7382984fca35de8da48b\"\n },\n {\n \"url\": \"mxgraph/images/resize.gif\",\n \"revision\": \"a6477612b3567a34033f9cac6184eed3\"\n },\n {\n \"url\": \"mxgraph/images/separator.gif\",\n \"revision\": \"7819742ff106c97da7a801c2372bbbe5\"\n },\n {\n \"url\": \"mxgraph/images/window.gif\",\n \"revision\": \"fd9a21dd4181f98052a202a0a01f18ab\"\n },\n {\n \"url\": \"mxgraph/images/window-title.gif\",\n \"revision\": \"3fb1d6c43246cdf991a11dfe826dfe99\"\n },\n {\n \"url\": \"mxgraph/images/button.gif\",\n \"revision\": \"00759bdc3ad218fa739f584369541809\"\n },\n {\n \"url\": \"mxgraph/images/point.gif\",\n \"revision\": \"83a43717b284902442620f61bc4e9fa6\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","skipWaiting","workbox_precaching_precacheAndRoute","url","revision","ignoreURLParametersMatching"],"mappings":"0nBAmBAA,KAAKC,cAULC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,uCACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of file+{"version":3,"file":"service-worker.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/4990f8989133060e76255725b4a45dfd/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"527b7ed64706021969864a9181cab6d0\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"6214024dcc723ed8bc6b4ef398ccc315\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"f760278d924467fb1d2289448c73fe27\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"71913a30c93bc9aff182a3a2b3da1a21\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"57fe6012597666439de3e76c9bb681c1\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"shortcuts.svg\",\n \"revision\": \"2381dd779ce6cfee954042a7f784c7e6\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"1c4b010eb053bfb9aed1caee8a3d3689\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"05873c4bba51f571b1da549a967ea06c\"\n },\n {\n \"url\": \"styles/dark.css\",\n \"revision\": \"99dc5495d36d5ebaddababefde083c8c\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"cd2826605b71c836086f287074d6735a\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"75f816c208d0c621e3066a97ff0ee6cf\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"c41221a9a51ff293f05ed13c7b142e5c\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"d3269625ce04b7a277b779ff175957d0\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"c4cb6b60234b04b2c8bc09e555746615\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"8af574bd1ae86be37b83b094a5011a4f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"0b1c0d105b4cc2c228fbcdd7d09310ae\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"261a7494161cee976ecfb110ac7571d2\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"b82e366bf57ecced9435c2a8ba9cb9b9\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"6542434cf3df5c60163e2767678f1bfc\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"30ff609b31d4a8c38da6c28e555947ea\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"9613fec05b19ddef081ca6e9d8b057bf\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"03a8dcfc69612b44b6e75e6926a956fc\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"b44638cfed6404ac07cb82d0ee7d0437\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"0b1eb26b186aacfd5b6d67f88d144d0b\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"bed70fa15f59b312c168b9ef9528d578\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"1c846465cb20bf155acc937ba8cbc446\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"0a7cc401f17390b415417153d8b87b84\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"b5908edbf7e697b23a2bf90adcbb49c7\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"c745e8f057b24e85f3f0eecba7af19eb\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"5e0cf43a649bfdcd56bbebfba6db00ca\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"4766eaa4150ecbe04b89f767835b9406\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"4f0596f7aedfbb808095762f0bd63306\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"a8fa799c3eda7ed001ef011a1e5806dd\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"6bd806494299f0ac942d1ca21c065478\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"5ea8d76e6966383bcc92bbc4752db5db\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"70aa0cb2ecbbe167a3e4a38aac6dbbdc\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"1e5419dbdd0da6a6be4e9c48bd99220f\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"13be854b8db535400e1cd1ec245e740e\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"8947362d39bee93460c0d86713ee65b7\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"74efdec615b1003983f77aa12834a75c\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"8dd13eaca0fcd7e41072c571c201d661\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"6e09dfae5d18a933d3bc11ba5de44f3c\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"b9837957b0ca73e4414377b53b53a70b\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"7a8aef0306c6a94f6872896d219d1dc4\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"3029801be7a36b67a29314a04d5d7d42\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"57b724efdceb29d21ca8a64c59350b1a\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"818262e6bcb84ed26563611045490649\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"71d0eb41a8336acdfff7a405c609e18f\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"c3574cb9042adcaea63a3944a09c518e\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"1c3d11a6636c946d5a22ea52889a19e7\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"457144ed2c2f51a5ec1d383cbfe9bbf7\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"e20f9bd4bbf52bf9e3df6e92d7ee1722\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"bd25b4eab36f6d663c66e4c957b8ef60\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"e8d8899460a1c81632d7cac287f15354\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"3b20dfcc809d4b13e3e705a1ae5fbc9f\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"dd27583c966df6663526af940f7df5d6\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"253bfb31cf6c8af7ff65527a9137bb9d\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"15f93018ad77289defe0d26df43c6846\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"abc7305430780a7f3a611e95aa3d6d11\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"cc385ba00d44d6b025fc8b2cffc6721f\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"485155d3dc8c3d20f42d2ce4689a225f\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"d0bbfa8e826a73098fed085a83a72cdd\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"18907cf9172320e86fa8aa2a91090ec7\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"0581872bd0fe468143c7dba864257020\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"c3789211d3006115131baeea8aab53f7\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"6905439a8ccb386864df2d708be0e8a2\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"e05d29a790dab92f32a46d0228b5b696\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"32608759b877e9e942ce209695e841f4\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"4633d649f40d5b7cf610b6eeb7e6c840\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"f81f1c1af4df00d757781e3d3b856e05\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"4f7f39ab83d4ce75b980e1be971ee910\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"9a768d64f80c5e1887b412f1a4cd1c3b\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"476a89c596d24e1b1d80f90b76eea1b5\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"6c98c7c4d45c2c260be975ba4db965d3\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"a4f04603060a5f900fefe32e7aa858a9\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"2a9c088b5a04a843af42911a0e203fc9\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"7ada081c11fd313ceee6f51bbc166e34\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"24281a99696e767ff085dfd6c49a3fe9\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"3128f6e90a0db91c9d6adcdb94ca7522\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"83014b0f32b6c7b15b66cf3c6d6d7c16\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"38d3a7e4b63e8175f0aab6f03e000f07\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"e4e0d092abdb1e668b5ec41a7fe0713c\"\n },\n {\n \"url\": \"images/drawlogo.svg\",\n \"revision\": \"4bf4d14ebcf072d8bd4c5a1c89e88fc6\"\n },\n {\n \"url\": \"images/drawlogo48.png\",\n \"revision\": \"8b13428373aca67b895364d025f42417\"\n },\n {\n \"url\": \"images/drawlogo-gray.svg\",\n \"revision\": \"0aabacbc0873816e1e09e4736ae44c7d\"\n },\n {\n \"url\": \"images/drawlogo-text-bottom.svg\",\n \"revision\": \"f6c438823ab31f290940bd4feb8dd9c2\"\n },\n {\n \"url\": \"images/default-user.jpg\",\n \"revision\": \"2c399696a87c8921f12d2f9e1990cc6e\"\n },\n {\n \"url\": \"images/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"732c29e21332a926318a7005d21ec450\"\n },\n {\n \"url\": \"images/icon-192-maskable.png\",\n \"revision\": \"47e006d0ce4a35eb5beaa97f0c2bfed0\"\n },\n {\n \"url\": \"images/icon-192.png\",\n \"revision\": \"d022403d52435d76afec82c4e24a17ef\"\n },\n {\n \"url\": \"images/icon-512-maskable.png\",\n \"revision\": \"cf152feeb01fb21f3148a71a3540266e\"\n },\n {\n \"url\": \"images/icon-512.png\",\n \"revision\": \"a3a0df7e7a385244b74073f81ecc45de\"\n },\n {\n \"url\": \"images/delete.png\",\n \"revision\": \"5f2350f2fd20f1a229637aed32ed8f29\"\n },\n {\n \"url\": \"images/droptarget.png\",\n \"revision\": \"bbf7f563fb6784de1ce96f329519b043\"\n },\n {\n \"url\": \"images/help.png\",\n \"revision\": \"9266c6c3915bd33c243d80037d37bf61\"\n },\n {\n \"url\": \"images/download.png\",\n \"revision\": \"35418dd7bd48d87502c71b578cc6c37f\"\n },\n {\n \"url\": \"images/logo-flat.png\",\n \"revision\": \"038070ab43aee6e54a791211859fc67b\"\n },\n {\n \"url\": \"images/google-drive-logo.svg\",\n \"revision\": \"5d9f2f5bbc7dcc252730a0072bb23059\"\n },\n {\n \"url\": \"images/onedrive-logo.svg\",\n \"revision\": \"3645b344ec0634c1290dd58d7dc87b97\"\n },\n {\n \"url\": \"images/dropbox-logo.svg\",\n \"revision\": \"e6be408c77cf9c82d41ac64fa854280a\"\n },\n {\n \"url\": \"images/github-logo.svg\",\n \"revision\": \"a1a999b69a275eac0cb918360ac05ae1\"\n },\n {\n \"url\": \"images/gitlab-logo.svg\",\n \"revision\": \"0faea8c818899e58533e153c44b10517\"\n },\n {\n \"url\": \"images/trello-logo.svg\",\n \"revision\": \"006fd0d7d70d7e95dc691674cb12e044\"\n },\n {\n \"url\": \"images/osa_drive-harddisk.png\",\n \"revision\": \"b954e1ae772087c5b4c6ae797e1f9649\"\n },\n {\n \"url\": \"images/osa_database.png\",\n \"revision\": \"c350d9d9b95f37b6cfe798b40ede5fb0\"\n },\n {\n \"url\": \"images/google-drive-logo-white.svg\",\n \"revision\": \"f329d8b1be7778515a85b93fc35d9f26\"\n },\n {\n \"url\": \"images/dropbox-logo-white.svg\",\n \"revision\": \"4ea8299ac3bc31a16f199ee3aec223bf\"\n },\n {\n \"url\": \"images/onedrive-logo-white.svg\",\n \"revision\": \"b3602fa0fc947009cff3f33a581cff4d\"\n },\n {\n \"url\": \"images/github-logo-white.svg\",\n \"revision\": \"537b1127b3ca0f95b45782d1304fb77a\"\n },\n {\n \"url\": \"images/gitlab-logo-white.svg\",\n \"revision\": \"5fede9ac2f394c716b8c23e3fddc3910\"\n },\n {\n \"url\": \"images/trello-logo-white-orange.svg\",\n \"revision\": \"e2a0a52ba3766682f138138d10a75eb5\"\n },\n {\n \"url\": \"images/logo-confluence.png\",\n \"revision\": \"ed1e55d44ae5eba8f999aba2c93e8331\"\n },\n {\n \"url\": \"images/logo-jira.png\",\n \"revision\": \"f8d460555a0d1f87cfd901e940666629\"\n },\n {\n \"url\": \"images/clear.gif\",\n \"revision\": \"db13c778e4382e0b55258d0f811d5d70\"\n },\n {\n \"url\": \"images/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/checkmark.gif\",\n \"revision\": \"ba764ce62f2bf952df5bbc2bb4d381c5\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"7985b4d1692766a7db52cbdd10893ad9\"\n },\n {\n \"url\": \"mxgraph/images/expanded.gif\",\n \"revision\": \"2b67c2c035af1e9a5cc814f0d22074cf\"\n },\n {\n \"url\": \"mxgraph/images/collapsed.gif\",\n \"revision\": \"73cc826da002a3d740ca4ce6ec5c1f4a\"\n },\n {\n \"url\": \"mxgraph/images/maximize.gif\",\n \"revision\": \"5cd13d6925493ab51e876694cc1c2ec2\"\n },\n {\n \"url\": \"mxgraph/images/minimize.gif\",\n \"revision\": \"8957741b9b0f86af9438775f2aadbb54\"\n },\n {\n \"url\": \"mxgraph/images/close.gif\",\n \"revision\": \"8b84669812ac7382984fca35de8da48b\"\n },\n {\n \"url\": \"mxgraph/images/resize.gif\",\n \"revision\": \"a6477612b3567a34033f9cac6184eed3\"\n },\n {\n \"url\": \"mxgraph/images/separator.gif\",\n \"revision\": \"7819742ff106c97da7a801c2372bbbe5\"\n },\n {\n \"url\": \"mxgraph/images/window.gif\",\n \"revision\": \"fd9a21dd4181f98052a202a0a01f18ab\"\n },\n {\n \"url\": \"mxgraph/images/window-title.gif\",\n \"revision\": \"3fb1d6c43246cdf991a11dfe826dfe99\"\n },\n {\n \"url\": \"mxgraph/images/button.gif\",\n \"revision\": \"00759bdc3ad218fa739f584369541809\"\n },\n {\n \"url\": \"mxgraph/images/point.gif\",\n \"revision\": \"83a43717b284902442620f61bc4e9fa6\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","skipWaiting","workbox_precaching_precacheAndRoute","url","revision","ignoreURLParametersMatching"],"mappings":"0nBAmBAA,KAAKC,cAULC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,uCACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of file